@gct-paas/core 0.1.4-dev.10 → 0.1.4-dev.11
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.mjs +13345 -3124
- package/dist/index.min.cjs +22 -15
- package/dist/index.system.min.js +22 -15
- package/es/constants/default-date-type/default-date-type.d.ts +70 -0
- package/es/constants/default-date-type/default-date-type.mjs +22 -0
- package/es/constants/expression-type/BuiltOperators.mjs +2 -0
- package/es/constants/index.d.ts +2 -1
- package/es/constants/page-designer/model.d.ts +4 -0
- package/es/constants/page-designer/model.mjs +7 -0
- package/es/enums/globalEnum.d.ts +15 -0
- package/es/enums/globalEnum.mjs +13 -1
- package/es/enums/page-designer/widget.d.ts +5 -0
- package/es/enums/page-designer/widget.mjs +6 -1
- package/es/global/gct/gct.d.ts +9 -3
- package/es/global/gct/gct.mjs +11 -6
- package/es/hooks/index.d.ts +0 -2
- package/es/index.d.ts +1 -3
- package/es/index.mjs +15 -35
- package/es/interface/i-dictionary/i-dictionary-item.d.ts +6 -0
- package/es/interface/i-global-register/i-global-register.d.ts +8 -0
- package/es/interface/i-pinia-action/i-global-actions.d.ts +4 -0
- package/es/interface/i-pinia-getter/i-global-getters.d.ts +2 -0
- package/es/interface/i-pinia-state/i-global-state.d.ts +12 -1
- package/es/interface/index.d.ts +3 -6
- package/es/interface/model-desginer/entity.d.ts +110 -0
- package/es/interface/provider/index.d.ts +0 -2
- package/es/modules/mqtt/constants/mqtt.const.d.ts +33 -0
- package/es/modules/mqtt/constants/mqtt.const.mjs +27 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.d.ts +20 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.mjs +10 -0
- package/es/modules/mqtt/index.d.ts +5 -0
- package/es/modules/mqtt/interfaces/i-mqtt.d.ts +139 -0
- package/es/modules/mqtt/mqtt-client.d.ts +117 -0
- package/es/modules/mqtt/mqtt-client.mjs +262 -0
- package/es/modules/mqtt/mqtt-manager.d.ts +87 -0
- package/es/modules/mqtt/mqtt-manager.mjs +78 -0
- package/es/modules/platform-config/enums/platform.enum.d.ts +0 -15
- package/es/modules/platform-config/enums/platform.enum.mjs +1 -13
- package/es/modules/platform-config/interfaces/index.d.ts +0 -1
- package/es/modules/platform-config/store.mjs +4 -1
- package/es/modules/user-stores/store/user.store.d.ts +74 -0
- package/es/modules/user-stores/store/user.store.mjs +16 -1
- package/es/modules/user-stores/types/user.d.ts +1 -0
- package/es/setup-app.mjs +11 -0
- package/es/state/global-pinia-state/global-pinia-state.d.ts +15 -1
- package/es/state/global-pinia-state/global-pinia-state.mjs +14 -0
- package/es/state/index.d.ts +0 -9
- package/es/store/global-store.mjs +14 -0
- package/es/utils/design/design.d.ts +11 -0
- package/es/utils/design/design.mjs +15 -0
- package/es/utils/file/base64Conver.d.ts +9 -0
- package/es/utils/file/base64Conver.mjs +35 -0
- package/es/utils/file/download.d.ts +44 -0
- package/es/utils/file/download.mjs +107 -0
- package/es/utils/index.d.ts +6 -2
- package/es/utils/permission.d.ts +19 -0
- package/es/utils/permission.mjs +38 -0
- package/es/utils/uploader/uploader.d.ts +20 -0
- package/es/utils/uploader/uploader.mjs +120 -0
- package/es/utils/validate.d.ts +5 -0
- package/es/utils/validate.mjs +25 -0
- package/package.json +5 -4
- package/es/constants/editor-type/editor-type.d.ts +0 -244
- package/es/constants/editor-type/editor-type.mjs +0 -63
- package/es/controller/edit-form/edit-form.controller.d.ts +0 -28
- package/es/controller/edit-form/edit-form.controller.mjs +0 -47
- package/es/controller/editor/color-editor.controller.d.ts +0 -13
- package/es/controller/editor/color-editor.controller.mjs +0 -6
- package/es/controller/editor/length-unit-editor.controller.d.ts +0 -13
- package/es/controller/editor/length-unit-editor.controller.mjs +0 -6
- package/es/controller/editor-item/editor-item.controller.d.ts +0 -14
- package/es/controller/editor-item/editor-item.controller.mjs +0 -8
- package/es/controller/form/form.controller.d.ts +0 -76
- package/es/controller/form/form.controller.mjs +0 -147
- package/es/controller/form-collapse/form-collapse.controller.d.ts +0 -18
- package/es/controller/form-collapse/form-collapse.controller.mjs +0 -14
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +0 -18
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.mjs +0 -14
- package/es/controller/form-edit-item/form-edit-item.controller.d.ts +0 -27
- package/es/controller/form-edit-item/form-edit-item.controller.mjs +0 -74
- package/es/controller/form-group/form-group.controller.d.ts +0 -18
- package/es/controller/form-group/form-group.controller.mjs +0 -14
- package/es/controller/form-item/form-item.controller.d.ts +0 -21
- package/es/controller/form-item/form-item.controller.mjs +0 -43
- package/es/controller/form-item-basic/form-item-basic.controller.d.ts +0 -57
- package/es/controller/form-item-basic/form-item-basic.controller.mjs +0 -49
- package/es/controller/form-item-hidden/form-item-hidden.controller.d.ts +0 -17
- package/es/controller/form-item-hidden/form-item-hidden.controller.mjs +0 -7
- package/es/controller/form-tab/form-tab.controller.d.ts +0 -18
- package/es/controller/form-tab/form-tab.controller.mjs +0 -14
- package/es/controller/form-tab-pane/form-tab-pane.controller.d.ts +0 -18
- package/es/controller/form-tab-pane/form-tab-pane.controller.mjs +0 -14
- package/es/controller/gct-form/gct-form.controller.d.ts +0 -101
- package/es/controller/gct-form/gct-form.controller.mjs +0 -214
- package/es/controller/index.d.ts +0 -15
- package/es/hooks/use-form/use-form.d.ts +0 -10
- package/es/hooks/use-form/use-form.mjs +0 -8
- package/es/hooks/use-gct-form-value/use-gct-form-value.d.ts +0 -22
- package/es/hooks/use-gct-form-value/use-gct-form-value.mjs +0 -89
- package/es/hooks/use-overlay-scrollbars/use-overlay-scrollbars.d.ts +0 -11
- package/es/interface/controller/edit-form/edit-form.controller.d.ts +0 -26
- package/es/interface/controller/editor/i-color-editor.controller.d.ts +0 -11
- package/es/interface/controller/editor/i-length-unit-editor.controller.d.ts +0 -11
- package/es/interface/controller/editor-item/editor-item.controller.d.ts +0 -19
- package/es/interface/controller/form/form.controller.d.ts +0 -121
- package/es/interface/controller/form-collapse/form-collapse.controller.d.ts +0 -23
- package/es/interface/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +0 -23
- package/es/interface/controller/form-edit-item/form-edit-item.controller.d.ts +0 -59
- package/es/interface/controller/form-group/form-group.controller.d.ts +0 -24
- package/es/interface/controller/form-hidden-item/form-hidden-item.controller.d.ts +0 -24
- package/es/interface/controller/form-item/form-item.controller.d.ts +0 -40
- package/es/interface/controller/form-item-basic/form-item-basic.controller.d.ts +0 -51
- package/es/interface/controller/form-tab/form-tab.controller.d.ts +0 -23
- package/es/interface/controller/form-tab-pane/form-tab-pane.controller.d.ts +0 -23
- package/es/interface/controller/index.d.ts +0 -14
- package/es/interface/events/form/i-form.event.d.ts +0 -11
- package/es/interface/events/index.d.ts +0 -1
- package/es/interface/form/i-editor/i-check-switch.d.ts +0 -29
- package/es/interface/form/i-editor/i-checkbox-editor.d.ts +0 -9
- package/es/interface/form/i-editor/i-color-editor.d.ts +0 -13
- package/es/interface/form/i-editor/i-editor-basic.d.ts +0 -87
- package/es/interface/form/i-editor/i-icon-select-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-info-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-length-unit-editor.d.ts +0 -13
- package/es/interface/form/i-editor/i-model-field-select-editor.d.ts +0 -18
- package/es/interface/form/i-editor/i-number-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-picker-editor.d.ts +0 -30
- package/es/interface/form/i-editor/i-radio-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-select-editor.d.ts +0 -14
- package/es/interface/form/i-editor/i-span-editor.d.ts +0 -30
- package/es/interface/form/i-editor/i-switch-editor.d.ts +0 -14
- package/es/interface/form/i-editor/i-text-editor.d.ts +0 -46
- package/es/interface/form/i-editor/i-textarea-editor.d.ts +0 -25
- package/es/interface/form/i-form/i-edit-form.d.ts +0 -48
- package/es/interface/form/i-form/i-form-collapse-pane.d.ts +0 -30
- package/es/interface/form/i-form/i-form-collapse.d.ts +0 -35
- package/es/interface/form/i-form/i-form-container.d.ts +0 -53
- package/es/interface/form/i-form/i-form-edit-item.d.ts +0 -140
- package/es/interface/form/i-form/i-form-group-container.d.ts +0 -24
- package/es/interface/form/i-form/i-form-group.d.ts +0 -35
- package/es/interface/form/i-form/i-form-hidden-item.d.ts +0 -11
- package/es/interface/form/i-form/i-form-item-basic.d.ts +0 -126
- package/es/interface/form/i-form/i-form-item.d.ts +0 -11
- package/es/interface/form/i-form/i-form-tab-pane.d.ts +0 -23
- package/es/interface/form/i-form/i-form-tab.d.ts +0 -21
- package/es/interface/form/i-form/i-form.d.ts +0 -79
- package/es/interface/form/index.d.ts +0 -29
- package/es/interface/layout/i-flex-layout/i-flex-container.d.ts +0 -75
- package/es/interface/layout/i-flex-layout/i-flex-item.d.ts +0 -51
- package/es/interface/layout/i-grid-layout/i-grid-container.d.ts +0 -29
- package/es/interface/layout/i-grid-layout/i-grid-item-span.d.ts +0 -54
- package/es/interface/layout/i-grid-layout/i-grid-item.d.ts +0 -37
- package/es/interface/layout/i-layout-basis/i-layout-container-basis.d.ts +0 -11
- package/es/interface/layout/index.d.ts +0 -6
- package/es/interface/provider/i-editor-provider/i-editor-provider.d.ts +0 -24
- package/es/interface/provider/i-form-item-provider/i-form-item-provider.d.ts +0 -44
- package/es/interface/state/form/form.state.d.ts +0 -53
- package/es/interface/state/form-collapse/form-collapse.state.d.ts +0 -11
- package/es/interface/state/form-collapse-pane/form-collapse-pane.state.d.ts +0 -11
- package/es/interface/state/form-edit-item/form-edit-item.state.d.ts +0 -38
- package/es/interface/state/form-group/form-group.state.d.ts +0 -21
- package/es/interface/state/form-hidden-item/form-hidden-item.state.d.ts +0 -5
- package/es/interface/state/form-item/form-item.state.d.ts +0 -20
- package/es/interface/state/form-item-basic/form-item-basic.state.d.ts +0 -63
- package/es/interface/state/form-tab/form-tab.state.d.ts +0 -19
- package/es/interface/state/form-tab-pane/form-tab-pane.state.d.ts +0 -11
- package/es/interface/state/index.d.ts +0 -10
- package/es/modules/platform-config/interfaces/global-setting.interface.d.ts +0 -7
- package/es/register/editor-register/editor-register.d.ts +0 -49
- package/es/register/editor-register/editor-register.mjs +0 -57
- package/es/register/form-item-register/form-item-register.d.ts +0 -36
- package/es/register/form-item-register/form-item-register.mjs +0 -42
- package/es/register/index.d.ts +0 -14
- package/es/state/form/form.state.d.ts +0 -24
- package/es/state/form/form.state.mjs +0 -16
- package/es/state/form-collapse/form-collapse.state.d.ts +0 -14
- package/es/state/form-collapse/form-collapse.state.mjs +0 -6
- package/es/state/form-collapse-pane/form-collapse-pane.state.d.ts +0 -14
- package/es/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -6
- package/es/state/form-edit-item/form-edit-item.state.d.ts +0 -17
- package/es/state/form-edit-item/form-edit-item.state.mjs +0 -10
- package/es/state/form-group/form-group.state.d.ts +0 -21
- package/es/state/form-group/form-group.state.mjs +0 -14
- package/es/state/form-item/form-item.state.d.ts +0 -14
- package/es/state/form-item/form-item.state.mjs +0 -6
- package/es/state/form-item-basic/form-item-basic.state.d.ts +0 -17
- package/es/state/form-item-basic/form-item-basic.state.mjs +0 -9
- package/es/state/form-tab/form-tab.state.d.ts +0 -15
- package/es/state/form-tab/form-tab.state.mjs +0 -7
- package/es/state/form-tab-pane/form-tab-pane.state.d.ts +0 -14
- package/es/state/form-tab-pane/form-tab-pane.state.mjs +0 -6
- package/es/utils/props/gct-form-item/gct-form-item.props.d.ts +0 -63
- package/es/utils/props/gct-form-item/gct-form-item.props.mjs +0 -66
- package/es/utils/props/index.d.ts +0 -1
- package/es/utils/width-install/width-install.d.ts +0 -17
- package/es/utils/width-install/width-install.mjs +0 -23
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare enum DefaultDateTypeConst {
|
|
2
|
+
/**
|
|
3
|
+
* 系统日期
|
|
4
|
+
*/
|
|
5
|
+
SystemDate = "system-date",
|
|
6
|
+
/**
|
|
7
|
+
* 昨天
|
|
8
|
+
*/
|
|
9
|
+
Yesterday = "yesterday",
|
|
10
|
+
/**
|
|
11
|
+
* 近7天
|
|
12
|
+
*/
|
|
13
|
+
Past7Days = "past-7-days",
|
|
14
|
+
/**
|
|
15
|
+
* 近30天
|
|
16
|
+
*/
|
|
17
|
+
Past30Days = "past-30-days",
|
|
18
|
+
/**
|
|
19
|
+
* 近N天
|
|
20
|
+
*/
|
|
21
|
+
PastDays = "past-days",
|
|
22
|
+
/**
|
|
23
|
+
* 本周
|
|
24
|
+
*/
|
|
25
|
+
ThisWeek = "this-week",
|
|
26
|
+
/**
|
|
27
|
+
* 上周
|
|
28
|
+
*/
|
|
29
|
+
LastWeek = "last-week",
|
|
30
|
+
/**
|
|
31
|
+
* 近N周
|
|
32
|
+
*/
|
|
33
|
+
PastWeeks = "past-weeks",
|
|
34
|
+
/**
|
|
35
|
+
* 本月
|
|
36
|
+
*/
|
|
37
|
+
ThisMonth = "this-month",
|
|
38
|
+
/**
|
|
39
|
+
* 上月
|
|
40
|
+
*/
|
|
41
|
+
LastMonth = "last-month",
|
|
42
|
+
/**
|
|
43
|
+
* 近N月
|
|
44
|
+
*/
|
|
45
|
+
PastMonths = "past-months",
|
|
46
|
+
/**
|
|
47
|
+
* 本季度
|
|
48
|
+
*/
|
|
49
|
+
ThisQuarter = "this-quarter",
|
|
50
|
+
/**
|
|
51
|
+
* 上季度
|
|
52
|
+
*/
|
|
53
|
+
LastQuarter = "last-quarter",
|
|
54
|
+
/**
|
|
55
|
+
* 近N季度
|
|
56
|
+
*/
|
|
57
|
+
PastQuarters = "past-quarters",
|
|
58
|
+
/**
|
|
59
|
+
* 今年
|
|
60
|
+
*/
|
|
61
|
+
ThisYear = "this-year",
|
|
62
|
+
/**
|
|
63
|
+
* 去年
|
|
64
|
+
*/
|
|
65
|
+
LastYear = "last-year",
|
|
66
|
+
/**
|
|
67
|
+
* 近N年
|
|
68
|
+
*/
|
|
69
|
+
PastYears = "past-years"
|
|
70
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var DefaultDateTypeConst = /* @__PURE__ */ ((DefaultDateTypeConst2) => {
|
|
2
|
+
DefaultDateTypeConst2["SystemDate"] = "system-date";
|
|
3
|
+
DefaultDateTypeConst2["Yesterday"] = "yesterday";
|
|
4
|
+
DefaultDateTypeConst2["Past7Days"] = "past-7-days";
|
|
5
|
+
DefaultDateTypeConst2["Past30Days"] = "past-30-days";
|
|
6
|
+
DefaultDateTypeConst2["PastDays"] = "past-days";
|
|
7
|
+
DefaultDateTypeConst2["ThisWeek"] = "this-week";
|
|
8
|
+
DefaultDateTypeConst2["LastWeek"] = "last-week";
|
|
9
|
+
DefaultDateTypeConst2["PastWeeks"] = "past-weeks";
|
|
10
|
+
DefaultDateTypeConst2["ThisMonth"] = "this-month";
|
|
11
|
+
DefaultDateTypeConst2["LastMonth"] = "last-month";
|
|
12
|
+
DefaultDateTypeConst2["PastMonths"] = "past-months";
|
|
13
|
+
DefaultDateTypeConst2["ThisQuarter"] = "this-quarter";
|
|
14
|
+
DefaultDateTypeConst2["LastQuarter"] = "last-quarter";
|
|
15
|
+
DefaultDateTypeConst2["PastQuarters"] = "past-quarters";
|
|
16
|
+
DefaultDateTypeConst2["ThisYear"] = "this-year";
|
|
17
|
+
DefaultDateTypeConst2["LastYear"] = "last-year";
|
|
18
|
+
DefaultDateTypeConst2["PastYears"] = "past-years";
|
|
19
|
+
return DefaultDateTypeConst2;
|
|
20
|
+
})(DefaultDateTypeConst || {});
|
|
21
|
+
|
|
22
|
+
export { DefaultDateTypeConst };
|
package/es/constants/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const VITE_MINIO_PATH = "/minio";
|
|
|
16
16
|
export declare const APP_INST = "app_inst";
|
|
17
17
|
export * from './expression-type';
|
|
18
18
|
export { EditorRegisterConst } from './editor-register/editor-register';
|
|
19
|
-
export { EditorType, EditorTypeOld } from './editor-type/editor-type';
|
|
20
19
|
export { FormContainerType } from './form-container-type/form-container-type';
|
|
20
|
+
export { DefaultDateTypeConst } from './default-date-type/default-date-type';
|
|
21
21
|
export { CoreConst } from './core';
|
|
22
|
+
export { ModelTypeOptions } from './page-designer/model';
|
package/es/enums/globalEnum.d.ts
CHANGED
|
@@ -36,3 +36,18 @@ export declare enum DeviceParamsTypeEnum {
|
|
|
36
36
|
BOOLEAN = "Boolean",
|
|
37
37
|
DATE = "Date"
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* 平台设置相关枚举定义
|
|
41
|
+
*/
|
|
42
|
+
/** 平台设置配置类型枚举 */
|
|
43
|
+
export declare enum PlatformSettingEnum {
|
|
44
|
+
BASIC = "BASE_CFG",
|
|
45
|
+
WATERMARK = "MARK_CFG",
|
|
46
|
+
SECURITY = "SECURITY_CFG",
|
|
47
|
+
LOGIN = "LOGIN_CFG",
|
|
48
|
+
THEME = "THEME_CFG",
|
|
49
|
+
ORGANIZATION = "ORG_CFG",
|
|
50
|
+
APK = "APK_CFG",
|
|
51
|
+
DEPLOY = "DEPLOY_CFG",
|
|
52
|
+
GLOBAL = "GLOBAL_CFG"
|
|
53
|
+
}
|
package/es/enums/globalEnum.mjs
CHANGED
|
@@ -21,5 +21,17 @@ var DeviceParamsTypeEnum = /* @__PURE__ */ ((DeviceParamsTypeEnum2) => {
|
|
|
21
21
|
DeviceParamsTypeEnum2["DATE"] = "Date";
|
|
22
22
|
return DeviceParamsTypeEnum2;
|
|
23
23
|
})(DeviceParamsTypeEnum || {});
|
|
24
|
+
var PlatformSettingEnum = /* @__PURE__ */ ((PlatformSettingEnum2) => {
|
|
25
|
+
PlatformSettingEnum2["BASIC"] = "BASE_CFG";
|
|
26
|
+
PlatformSettingEnum2["WATERMARK"] = "MARK_CFG";
|
|
27
|
+
PlatformSettingEnum2["SECURITY"] = "SECURITY_CFG";
|
|
28
|
+
PlatformSettingEnum2["LOGIN"] = "LOGIN_CFG";
|
|
29
|
+
PlatformSettingEnum2["THEME"] = "THEME_CFG";
|
|
30
|
+
PlatformSettingEnum2["ORGANIZATION"] = "ORG_CFG";
|
|
31
|
+
PlatformSettingEnum2["APK"] = "APK_CFG";
|
|
32
|
+
PlatformSettingEnum2["DEPLOY"] = "DEPLOY_CFG";
|
|
33
|
+
PlatformSettingEnum2["GLOBAL"] = "GLOBAL_CFG";
|
|
34
|
+
return PlatformSettingEnum2;
|
|
35
|
+
})(PlatformSettingEnum || {});
|
|
24
36
|
|
|
25
|
-
export { DeviceParamsTypeEnum, PlatformType, nullDisplayEnum };
|
|
37
|
+
export { DeviceParamsTypeEnum, PlatformSettingEnum, PlatformType, nullDisplayEnum };
|
|
@@ -308,6 +308,11 @@ export declare enum SignatureTypeEnum {
|
|
|
308
308
|
SIGNATURE_DATE = "signature_date",
|
|
309
309
|
SIGNATURE_DATETIME = "signature_datetime"
|
|
310
310
|
}
|
|
311
|
+
/** 签名显示样式 */
|
|
312
|
+
export declare enum SignatureStyleEnum {
|
|
313
|
+
VERTICAL = "vertical",
|
|
314
|
+
HORIZONTAL = "horizontal"
|
|
315
|
+
}
|
|
311
316
|
/**重置规则 */
|
|
312
317
|
export declare enum ResetRuleType {
|
|
313
318
|
/**清空数据 */
|
|
@@ -326,10 +326,15 @@ var SignatureTypeEnum = /* @__PURE__ */ ((SignatureTypeEnum2) => {
|
|
|
326
326
|
SignatureTypeEnum2["SIGNATURE_DATETIME"] = "signature_datetime";
|
|
327
327
|
return SignatureTypeEnum2;
|
|
328
328
|
})(SignatureTypeEnum || {});
|
|
329
|
+
var SignatureStyleEnum = /* @__PURE__ */ ((SignatureStyleEnum2) => {
|
|
330
|
+
SignatureStyleEnum2["VERTICAL"] = "vertical";
|
|
331
|
+
SignatureStyleEnum2["HORIZONTAL"] = "horizontal";
|
|
332
|
+
return SignatureStyleEnum2;
|
|
333
|
+
})(SignatureStyleEnum || {});
|
|
329
334
|
var ResetRuleType = /* @__PURE__ */ ((ResetRuleType2) => {
|
|
330
335
|
ResetRuleType2["WIPE_DATA"] = "wipe_data";
|
|
331
336
|
ResetRuleType2["REFRESHDATA"] = "refresh_data";
|
|
332
337
|
return ResetRuleType2;
|
|
333
338
|
})(ResetRuleType || {});
|
|
334
339
|
|
|
335
|
-
export { 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, SignatureTypeEnum, StatisticalMethodEnums, TIMETYPE_ENUM, TIMETYPE_LANG_ENUM, TableEditingMethodEnum, TableSearchTypeEnum, TableTypeEnum, TransactionMode, WidgetInScopeEnum, openWindowEnums, operateSysEnums };
|
|
340
|
+
export { 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 };
|
package/es/global/gct/gct.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { I18n } from 'vue-i18n';
|
|
2
|
-
import {
|
|
3
|
-
import { IMessageUtil, IOverlayController } from '../../interface';
|
|
2
|
+
import { ApiMap } from '@gct-paas/api';
|
|
3
|
+
import { IGlobalRegister, IMessageUtil, IOverlayController } from '../../interface';
|
|
4
4
|
import { DictionaryUtil } from '../../utils';
|
|
5
5
|
import { EnvironmentManager } from '../../modules/env-manager';
|
|
6
|
-
import {
|
|
6
|
+
import { MqttManager } from '../../modules/mqtt';
|
|
7
7
|
import { RouterUtil } from '../../router';
|
|
8
8
|
/**
|
|
9
9
|
* gct paas 平台全局对象
|
|
@@ -51,6 +51,12 @@ export declare class GctGlobal {
|
|
|
51
51
|
* 环境管理器
|
|
52
52
|
*/
|
|
53
53
|
readonly env: EnvironmentManager;
|
|
54
|
+
/**
|
|
55
|
+
* MQTT 实例管理中心
|
|
56
|
+
*
|
|
57
|
+
* @description 管理多个 MQTT 客户端实例的生命周期,支持多实例连接、订阅、发布
|
|
58
|
+
*/
|
|
59
|
+
readonly mqtt: MqttManager;
|
|
54
60
|
/**
|
|
55
61
|
* 综合性注册中心
|
|
56
62
|
*/
|
package/es/global/gct/gct.mjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { GlobalStoreUtil } from '../../store/index.mjs';
|
|
2
|
-
import { EditorRegister } from '../../register/editor-register/editor-register.mjs';
|
|
3
|
-
import { FormItemRegister } from '../../register/form-item-register/form-item-register.mjs';
|
|
4
2
|
import 'qs';
|
|
5
3
|
import { DictionaryUtil } from '../../utils/dictionary/dictionary.mjs';
|
|
6
4
|
import 'lodash-es';
|
|
@@ -19,7 +17,11 @@ import '../../utils/uuid/uuid.mjs';
|
|
|
19
17
|
import 'axios';
|
|
20
18
|
import '@fingerprintjs/fingerprintjs';
|
|
21
19
|
import '../../utils/useUUid.mjs';
|
|
20
|
+
import 'dayjs';
|
|
21
|
+
import '../../utils/permission.mjs';
|
|
22
22
|
import { EnvironmentManager } from '../../modules/env-manager/env-manager.mjs';
|
|
23
|
+
import 'mqtt';
|
|
24
|
+
import { MqttManager } from '../../modules/mqtt/mqtt-manager.mjs';
|
|
23
25
|
import { LocaleUtil } from '../../locale/index.mjs';
|
|
24
26
|
import { RouterUtil } from '../../router/index.mjs';
|
|
25
27
|
|
|
@@ -63,13 +65,16 @@ class GctGlobal {
|
|
|
63
65
|
* 环境管理器
|
|
64
66
|
*/
|
|
65
67
|
env = new EnvironmentManager();
|
|
68
|
+
/**
|
|
69
|
+
* MQTT 实例管理中心
|
|
70
|
+
*
|
|
71
|
+
* @description 管理多个 MQTT 客户端实例的生命周期,支持多实例连接、订阅、发布
|
|
72
|
+
*/
|
|
73
|
+
mqtt = new MqttManager();
|
|
66
74
|
/**
|
|
67
75
|
* 综合性注册中心
|
|
68
76
|
*/
|
|
69
|
-
register = {
|
|
70
|
-
editor: new EditorRegister(),
|
|
71
|
-
formItem: new FormItemRegister()
|
|
72
|
-
};
|
|
77
|
+
register = {};
|
|
73
78
|
/**
|
|
74
79
|
* 全局呈现容器控制器,这里只是声明了类型,具体实例需要由主项目根据实际情况进行实现和挂载
|
|
75
80
|
*
|
package/es/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { useAppInst } from './use-app-inst/use-app-inst';
|
|
2
|
-
export { useForm } from './use-form/use-form';
|
|
3
|
-
export { useGctFormValue, useGctFormValueByText, } from './use-gct-form-value/use-gct-form-value';
|
|
4
2
|
export { useModal } from './use-modal/use-modal';
|
|
5
3
|
export { useIFrameProps, useWuJieBus, useWuJieProps, } from './use-sub-app-utils/use-sub-app-utils';
|
|
6
4
|
export { copyTextToClipboard, isDef, useCopyToClipboard, } from './useCopyToClipboard';
|
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
|
-
export * from './controller';
|
|
3
2
|
export * from './enums';
|
|
4
3
|
export * from './global';
|
|
5
4
|
export * from './hooks';
|
|
@@ -7,10 +6,9 @@ export * from './interface';
|
|
|
7
6
|
export * from './locale';
|
|
8
7
|
export * from './modules/env-manager';
|
|
9
8
|
export * from './modules/error-handler';
|
|
9
|
+
export * from './modules/mqtt';
|
|
10
10
|
export * from './modules/platform-config';
|
|
11
11
|
export * from './modules/user-stores';
|
|
12
|
-
export * from './register';
|
|
13
|
-
export * from './state';
|
|
14
12
|
export * from './store';
|
|
15
13
|
export * from './utils';
|
|
16
14
|
export { createAppVue } from './create-app-vue';
|
package/es/index.mjs
CHANGED
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
import { GctGlobal } from './global/gct/gct.mjs';
|
|
2
2
|
import { api } from '@gct-paas/api';
|
|
3
3
|
export { APP_INST, PLUGIN_BASE_URL, STYLE_NAMESPACE_TAG, VITE_MINIO_PATH } from './constants/index.mjs';
|
|
4
|
-
export { EditFormController, useEditFormController } from './controller/edit-form/edit-form.controller.mjs';
|
|
5
|
-
export { EditorController } from './controller/editor-item/editor-item.controller.mjs';
|
|
6
|
-
export { FormController, useFormController } from './controller/form/form.controller.mjs';
|
|
7
|
-
export { GctFormController } from './controller/gct-form/gct-form.controller.mjs';
|
|
8
|
-
export { FormCollapsePaneController } from './controller/form-collapse-pane/form-collapse-pane.controller.mjs';
|
|
9
|
-
export { FormCollapseController } from './controller/form-collapse/form-collapse.controller.mjs';
|
|
10
|
-
export { FormTabController } from './controller/form-tab/form-tab.controller.mjs';
|
|
11
|
-
export { FormTabPaneController } from './controller/form-tab-pane/form-tab-pane.controller.mjs';
|
|
12
|
-
export { FormGroupController } from './controller/form-group/form-group.controller.mjs';
|
|
13
|
-
export { FormEditItemController } from './controller/form-edit-item/form-edit-item.controller.mjs';
|
|
14
|
-
export { FormItemController } from './controller/form-item/form-item.controller.mjs';
|
|
15
|
-
export { FormItemBasicController, useFormItemController } from './controller/form-item-basic/form-item-basic.controller.mjs';
|
|
16
|
-
export { FormHiddenItemController } from './controller/form-item-hidden/form-item-hidden.controller.mjs';
|
|
17
|
-
export { LengthUnitEditorController } from './controller/editor/length-unit-editor.controller.mjs';
|
|
18
|
-
export { ColorEditorController } from './controller/editor/color-editor.controller.mjs';
|
|
19
4
|
export { GctMqttTopsEnum, GlobalParamEnum } from './enums/index.mjs';
|
|
20
5
|
export { useAppInst } from './hooks/use-app-inst/use-app-inst.mjs';
|
|
21
|
-
export { useForm } from './hooks/use-form/use-form.mjs';
|
|
22
|
-
export { useGctFormValue, useGctFormValueByText } from './hooks/use-gct-form-value/use-gct-form-value.mjs';
|
|
23
6
|
export { useModal } from './hooks/use-modal/use-modal.mjs';
|
|
24
7
|
export { useIFrameProps, useWuJieBus, useWuJieProps } from './hooks/use-sub-app-utils/use-sub-app-utils.mjs';
|
|
25
8
|
export { copyTextToClipboard, isDef, useCopyToClipboard } from './hooks/useCopyToClipboard.mjs';
|
|
@@ -28,8 +11,12 @@ export { EnvironmentType } from './modules/env-manager/env-manager.interface.mjs
|
|
|
28
11
|
export { 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';
|
|
29
12
|
export { EnvironmentManager } from './modules/env-manager/env-manager.mjs';
|
|
30
13
|
export { ErrorHandler, setupErrorHandler } from './modules/error-handler/index.mjs';
|
|
14
|
+
export { MQTT_CLIENT_EVENT, MQTT_DEFAULT_CONNECT_OPTIONS } from './modules/mqtt/constants/mqtt.const.mjs';
|
|
15
|
+
export { MqttConnectionStatus } from './modules/mqtt/enums/mqtt-status.enum.mjs';
|
|
16
|
+
export { MqttClient } from './modules/mqtt/mqtt-client.mjs';
|
|
17
|
+
export { MqttManager } from './modules/mqtt/mqtt-manager.mjs';
|
|
31
18
|
export { LoginSortTypeEnum, LoginTypeEnum } from './modules/platform-config/enums/login.enum.mjs';
|
|
32
|
-
export { KickRuleEnum, PassRule
|
|
19
|
+
export { KickRuleEnum, PassRule } from './modules/platform-config/enums/platform.enum.mjs';
|
|
33
20
|
export { DeployModeEnum } from './modules/platform-config/enums/deploy.enum.mjs';
|
|
34
21
|
export { OTHER_LOGIN_KEYS, SYSTEM_LOGIN_KEYS, getLoginTypeOptions } from './modules/platform-config/constants/login.const.mjs';
|
|
35
22
|
export { RELATION_FIELDS } from './modules/platform-config/constants/org.const.mjs';
|
|
@@ -39,18 +26,6 @@ export { usePlatformConfigStore } from './modules/platform-config/store.mjs';
|
|
|
39
26
|
export { useUserStore } from './modules/user-stores/store/user.store.mjs';
|
|
40
27
|
export { useTenantStore } from './modules/user-stores/store/tenant.store.mjs';
|
|
41
28
|
export { usePermissionStore } from './modules/user-stores/store/permission.store.mjs';
|
|
42
|
-
export { EditorRegister } from './register/editor-register/editor-register.mjs';
|
|
43
|
-
export { FormItemRegister } from './register/form-item-register/form-item-register.mjs';
|
|
44
|
-
export { GlobalPiniaState } from './state/global-pinia-state/global-pinia-state.mjs';
|
|
45
|
-
export { FormState } from './state/form/form.state.mjs';
|
|
46
|
-
export { FormCollapsePaneState } from './state/form-collapse-pane/form-collapse-pane.state.mjs';
|
|
47
|
-
export { FormCollapseState } from './state/form-collapse/form-collapse.state.mjs';
|
|
48
|
-
export { FormTabState } from './state/form-tab/form-tab.state.mjs';
|
|
49
|
-
export { FormTabPaneState } from './state/form-tab-pane/form-tab-pane.state.mjs';
|
|
50
|
-
export { FormEditItemState } from './state/form-edit-item/form-edit-item.state.mjs';
|
|
51
|
-
export { FormGroupState } from './state/form-group/form-group.state.mjs';
|
|
52
|
-
export { FormItemState } from './state/form-item/form-item.state.mjs';
|
|
53
|
-
export { FormItemBasicState } from './state/form-item-basic/form-item-basic.state.mjs';
|
|
54
29
|
export { GlobalStoreUtil } from './store/index.mjs';
|
|
55
30
|
export { gctMemoizeAsync } from './utils/cache-adapter/cache-adapter.mjs';
|
|
56
31
|
export { DictionaryUtil } from './utils/dictionary/dictionary.mjs';
|
|
@@ -65,11 +40,9 @@ export { Namespace, useNamespace } from './utils/namespace/namespace.mjs';
|
|
|
65
40
|
export { Modal } from './utils/openUtil/modal/modal.mjs';
|
|
66
41
|
export { OverlayContainer } from './utils/openUtil/overlay-container/overlay-container.mjs';
|
|
67
42
|
export { PluginStaticResource } from './utils/plugin-static-resource/plugin-static-resource.mjs';
|
|
68
|
-
export { gctFormItemEditorProps } from './utils/props/gct-form-item/gct-form-item.props.mjs';
|
|
69
43
|
export { deepMerge, getTenant, getTimezone, getToken, isMobile, parseMatrixParams, setTenant, setToken, stringifyMatrixParams } from './utils/tools/tools.mjs';
|
|
70
44
|
export { buildShortUUID, buildUUID, uuid2 } from './utils/uuid/uuid.mjs';
|
|
71
45
|
export { afterFieldSet, afterValueSet, cacheFnReturn, computedEx, emitFieldSet, parseValueUnit } from './utils/value-helper/value-helper.mjs';
|
|
72
|
-
export { widthEditorInstall } from './utils/width-install/width-install.mjs';
|
|
73
46
|
export { interceptors } from './utils/axios/interceptors.mjs';
|
|
74
47
|
export { getDeviceFingerprint, getPageIdentification } from './utils/deviceFingerprint.mjs';
|
|
75
48
|
export { TreeHelper } from './utils/treeHelper/treeHelper.mjs';
|
|
@@ -77,6 +50,12 @@ export { calcFontStyle, calcStyle } from './utils/style/index.mjs';
|
|
|
77
50
|
export { genUrl, openWindow } from './utils/util.mjs';
|
|
78
51
|
export { isSortFiled } from './utils/is-sort-filed/is-sort-filed.mjs';
|
|
79
52
|
export { randomUUID, useUUid } from './utils/useUUid.mjs';
|
|
53
|
+
export { hasEmojiAndSpecStr, hasEmojiAndSpecStr1, validateEmoji, validateIsModelName, validateModelName } from './utils/validate.mjs';
|
|
54
|
+
export { Uploader } from './utils/uploader/uploader.mjs';
|
|
55
|
+
export { downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, uploaderFiles } from './utils/file/download.mjs';
|
|
56
|
+
export { dataURLtoBlob, urlToBase64 } from './utils/file/base64Conver.mjs';
|
|
57
|
+
export { isMultipleOperator } from './utils/design/design.mjs';
|
|
58
|
+
export { permission } from './utils/permission.mjs';
|
|
80
59
|
export { createAppVue } from './create-app-vue.mjs';
|
|
81
60
|
export { setupApp } from './setup-app.mjs';
|
|
82
61
|
export { AGLINE_ENUMS, ButtonOpeEnum, RdoButtonOpeEnum, SEARCH_SERVICE, notSingleArr, presetColor } from './enums/designEnum.mjs';
|
|
@@ -90,13 +69,13 @@ export { BindCmpStyleEnum, BindCmpStyleTypeEnum, Ch_BindCmpStyleEnum, FormCompon
|
|
|
90
69
|
export { BizServiceEnum, ContentTypeEnum, RequestEnum, ResultEnum } from './enums/httpEnum.mjs';
|
|
91
70
|
export { BpmnNodeTypeEnum, ButtonTypeEnum, ExamineAndApproveStateEnum, OpinionTypeEnum, ProcessStatusEnum, ch_ProcessStatusMap } from './enums/processEnum.mjs';
|
|
92
71
|
export { BuiltOperators, allOperator, booleanOperator, getOperatorList, numberOperator, returnBolOperator } from './constants/expression-type/BuiltOperators.mjs';
|
|
93
|
-
export { 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, SignatureTypeEnum, StatisticalMethodEnums, TIMETYPE_ENUM, TIMETYPE_LANG_ENUM, TableEditingMethodEnum, TableSearchTypeEnum, TableTypeEnum, TransactionMode, WidgetInScopeEnum, openWindowEnums, operateSysEnums } from './enums/page-designer/widget.mjs';
|
|
72
|
+
export { 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';
|
|
94
73
|
export { CUSTOM_LANGUAGE, CUSTOM_THEME } from './constants/expression-type/editor.mjs';
|
|
95
74
|
export { CoreConst } from './constants/core.mjs';
|
|
96
75
|
export { DataSetReturnTypeEnum, EntityFormulaReturnTypeEnum, ExpressionModeEnum, ExpressionTabEnum, IdentifierAddon, OperatorTypeEnum, ReturnTypeEnum, VarTypeEnum, zeroWidthSpace } from './enums/expressionEnum.mjs';
|
|
97
|
-
export {
|
|
76
|
+
export { DefaultDateTypeConst } from './constants/default-date-type/default-date-type.mjs';
|
|
77
|
+
export { DeviceParamsTypeEnum, PlatformSettingEnum, PlatformType, nullDisplayEnum } from './enums/globalEnum.mjs';
|
|
98
78
|
export { EditorRegisterConst } from './constants/editor-register/editor-register.mjs';
|
|
99
|
-
export { EditorType, EditorTypeOld } from './constants/editor-type/editor-type.mjs';
|
|
100
79
|
export { EntityModelCategoryEnum, EntityModelTypeEnum, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, SHOW_FIELDTYPES, UserServiceType, pageLayoutModeEnum, scriptTypeEnum } from './enums/app-designer/index.mjs';
|
|
101
80
|
export { ErrorStrategyFactory } from './modules/error-handler/error-strategy.mjs';
|
|
102
81
|
export { ErrorTypeEnum, ExceptionEnum } from './enums/exceptionEnum.mjs';
|
|
@@ -104,6 +83,7 @@ export { FUNC_KEYS } from './constants/expression-type/FunctionKeys.mjs';
|
|
|
104
83
|
export { FormContainerType } from './constants/form-container-type/form-container-type.mjs';
|
|
105
84
|
export { MenuModeEnum, MenuSplitTyeEnum, MenuTypeEnum, MixSidebarTriggerEnum, TopMenuAlignEnum, TriggerEnum } from './enums/menuEnum.mjs';
|
|
106
85
|
export { ModeFnMap, ModeTabDict, ModeTabMap, ReturnTypeMaps } from './constants/expression-type/modeCfg.mjs';
|
|
86
|
+
export { ModelTypeOptions } from './constants/page-designer/model.mjs';
|
|
107
87
|
export { PageEnum } from './enums/pageEnum.mjs';
|
|
108
88
|
export { PluginModeEnum } from './enums/plugin-enum.mjs';
|
|
109
89
|
export { PrintResourceEnum } from './enums/developer-center/integration.mjs';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StateTree } from 'pinia';
|
|
2
|
-
import { ProjectName } from '../../enums';
|
|
2
|
+
import { ProjectName, nullDisplayEnum } from '../../enums';
|
|
3
3
|
import { IAppContext } from '../i-app-context/i-app-context';
|
|
4
|
+
import { UserLoginResp } from '@gct-paas/api/platform';
|
|
4
5
|
/**
|
|
5
6
|
* 全局 store 状态
|
|
6
7
|
*
|
|
@@ -37,4 +38,14 @@ export interface IGlobalState extends StateTree {
|
|
|
37
38
|
* @type {IObject}
|
|
38
39
|
*/
|
|
39
40
|
appInfo: IObject;
|
|
41
|
+
/**
|
|
42
|
+
* 用户信息(user.store.ts 中加载后赋值)
|
|
43
|
+
*
|
|
44
|
+
* @type {UserLoginResp}
|
|
45
|
+
*/
|
|
46
|
+
userInfo: UserLoginResp;
|
|
47
|
+
globalSetting: {
|
|
48
|
+
emptyDisplay: emptyDisplayType;
|
|
49
|
+
};
|
|
40
50
|
}
|
|
51
|
+
export type emptyDisplayType = keyof typeof nullDisplayEnum;
|
package/es/interface/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export type * from './controller';
|
|
2
|
-
export type * from './events';
|
|
3
|
-
export type * from './form';
|
|
4
1
|
export type * from './i-app-context/i-app-context';
|
|
2
|
+
export type * from './model-desginer/entity';
|
|
3
|
+
export type { IGlobalRegister } from './i-global-register/i-global-register';
|
|
5
4
|
export type { IDictionary } from './i-dictionary/i-dictionary';
|
|
6
5
|
export type { IDictionaryItem } from './i-dictionary/i-dictionary-item';
|
|
7
6
|
export type { IFieldCodeChain } from './i-field-code-chain/i-field-code-chain';
|
|
@@ -10,9 +9,7 @@ export type { IMobileHomeMenuItem } from './i-mobile-home-menu-item/i-mobile-hom
|
|
|
10
9
|
export type { IStyleIMportMap } from './i-import-style-map/i-import-style-map';
|
|
11
10
|
export type { IGlobalActions } from './i-pinia-action/i-global-actions';
|
|
12
11
|
export type { IGlobalGetters } from './i-pinia-getter/i-global-getters';
|
|
13
|
-
export type { IGlobalState } from './i-pinia-state/i-global-state';
|
|
12
|
+
export type { IGlobalState, emptyDisplayType, } from './i-pinia-state/i-global-state';
|
|
14
13
|
export type * from './open-util';
|
|
15
|
-
export type * from './layout';
|
|
16
14
|
export type * from './provider';
|
|
17
|
-
export type * from './state';
|
|
18
15
|
export type * from './style';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { FIELD_TYPE, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, UniqueConstraintType } from '../../enums';
|
|
2
|
+
export interface FieldFormState {
|
|
3
|
+
id?: string;
|
|
4
|
+
modelKey: string;
|
|
5
|
+
name: string;
|
|
6
|
+
key: string;
|
|
7
|
+
type: FIELD_TYPE;
|
|
8
|
+
required: number;
|
|
9
|
+
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
|
+
description: string;
|
|
21
|
+
/** 字段特性配置 */
|
|
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 如:枚举/主子/关联 */
|
|
88
|
+
bindInfo?: string;
|
|
89
|
+
/** 主子/引用关联模型类型 */
|
|
90
|
+
refModelType?: string;
|
|
91
|
+
i18nConfig?: string;
|
|
92
|
+
/**
|
|
93
|
+
* 普通数据类型 值为fieldType
|
|
94
|
+
* 映射类型(公式、函数等实际映射的类型)
|
|
95
|
+
*/
|
|
96
|
+
mappingType?: string;
|
|
97
|
+
/** 主子关联 绑定子模型字段 */
|
|
98
|
+
bindFieldKey?: string;
|
|
99
|
+
/** 在线表单新建字段中的子模型key */
|
|
100
|
+
subModelKey?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface SpecificConfig {
|
|
103
|
+
exp?: string;
|
|
104
|
+
expression?: string;
|
|
105
|
+
relationColumns?: IObject[];
|
|
106
|
+
aggFunc?: string;
|
|
107
|
+
bindField?: string;
|
|
108
|
+
refModelType?: string;
|
|
109
|
+
digits?: number;
|
|
110
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MQTT 默认连接选项
|
|
3
|
+
*
|
|
4
|
+
* @description 连接时未显式指定的选项将使用以下默认值
|
|
5
|
+
*/
|
|
6
|
+
export declare const MQTT_DEFAULT_CONNECT_OPTIONS: {
|
|
7
|
+
/** 心跳保活间隔(秒),0 表示禁用 */
|
|
8
|
+
readonly keepalive: 60;
|
|
9
|
+
/** 连接超时时间(毫秒) */
|
|
10
|
+
readonly connectTimeout: 30000;
|
|
11
|
+
/**
|
|
12
|
+
* 重连间隔(毫秒),由 mqtt.js 内置重连机制使用
|
|
13
|
+
* 设为 0 可禁用自动重连
|
|
14
|
+
*/
|
|
15
|
+
readonly reconnectPeriod: 5000;
|
|
16
|
+
/** 是否清除会话,true 表示每次重连后订阅信息不保留 */
|
|
17
|
+
readonly clean: false;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* MQTT 连接级事件名称常量
|
|
21
|
+
*/
|
|
22
|
+
export declare const MQTT_CLIENT_EVENT: {
|
|
23
|
+
/** 成功建立连接 */
|
|
24
|
+
readonly CONNECT: "connect";
|
|
25
|
+
/** 重连中 */
|
|
26
|
+
readonly RECONNECT: "reconnect";
|
|
27
|
+
/** 连接已断开 */
|
|
28
|
+
readonly DISCONNECT: "disconnect";
|
|
29
|
+
/** 发生错误 */
|
|
30
|
+
readonly ERROR: "error";
|
|
31
|
+
/** 收到消息 */
|
|
32
|
+
readonly MESSAGE: "message";
|
|
33
|
+
};
|