@gct-paas/word 0.1.12 → 0.1.13
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/base/calendar/src/calendar.vue.d.ts +1 -0
- package/dist/base/calendar/src/time.vue.d.ts +1 -0
- package/dist/base/index.d.ts +2 -0
- package/dist/base/modal/src/ModalRoot.vue.d.ts +2 -0
- package/dist/base/modal/src/modal.type.d.ts +3 -0
- package/dist/base/select/src/basic-select.vue.d.ts +9 -1
- package/dist/base/table/src/table.type.d.ts +19 -0
- package/dist/base/table/src/table.vue.d.ts +31 -56
- package/dist/base/tree/index.d.ts +1 -0
- package/dist/base/tree/src/tree-node.vue.d.ts +14 -0
- package/dist/base/tree/src/tree.type.d.ts +6 -0
- package/dist/base/tree/src/tree.vue.d.ts +18 -0
- package/dist/base/tree-select/index.d.ts +1 -0
- package/dist/base/tree-select/src/tree-select.vue.d.ts +45 -0
- package/dist/capabilities/panel/schema/types.d.ts +4 -1
- package/dist/core/data/DataManager.d.ts +38 -36
- package/dist/core/index.d.ts +3 -0
- package/dist/core/layout/handlers/FieldHandler.d.ts +0 -21
- package/dist/core/layout/handlers/fields/AttachmentHandler.d.ts +14 -0
- package/dist/core/layout/handlers/fields/BaseHandler.d.ts +67 -0
- package/dist/core/layout/handlers/fields/ImgHandler.d.ts +5 -0
- package/dist/core/layout/handlers/fields/InputHandler.d.ts +5 -0
- package/dist/core/layout/handlers/fields/OptionHandler.d.ts +15 -0
- package/dist/core/layout/handlers/fields/SignatureHandler.d.ts +24 -0
- package/dist/core/layout/handlers/fields/index.d.ts +6 -0
- package/dist/core/model/document/WsecPr.d.ts +39 -0
- package/dist/core/sdk/types/public-types.d.ts +2 -0
- package/dist/core/utils/calculate-formula.d.ts +5 -0
- package/dist/core/view/Page.d.ts +0 -3
- package/dist/core/view/Section.d.ts +4 -18
- package/dist/core/view/runs/ImageRun.d.ts +12 -0
- package/dist/core/view/runs/TextRun.d.ts +1 -0
- package/dist/core/view/runs/TextWidget.d.ts +8 -8
- package/dist/core/widget/widget-state.d.ts +21 -0
- package/dist/index.es.js +4712 -3844
- package/dist/runtime/canvas/__common__/widget-container/overlay-layer.vue.d.ts +2 -0
- package/dist/runtime/canvas/__common__/widget-container/overlay-render.vue.d.ts +1 -1
- package/dist/runtime/designer/doc-design-layout.vue.d.ts +3 -1
- package/dist/runtime/factories/createValidateFactory.d.ts +3 -1
- package/dist/runtime/factories/useDependency.d.ts +5 -0
- package/dist/runtime/factories/useRenderData.d.ts +2 -0
- package/dist/runtime/interface/computed.d.ts +18 -0
- package/dist/runtime/interface/data.d.ts +1 -4
- package/dist/runtime/interface/render.d.ts +11 -0
- package/dist/runtime/interface/utils.d.ts +8 -0
- package/dist/setup.d.ts +11 -0
- package/dist/suites/edhr/field-manifest/_common_/basic.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/data-group/data-group.basic.d.ts +4 -1
- package/dist/suites/edhr/panel-schema/data-init/common/add-builtin-field/add-builtin-field-modal.vue.d.ts +1 -1
- package/dist/suites/edhr/panel-schema/data-init/common/add-builtin-param/add-builtin-param-modal.vue.d.ts +5 -3
- package/dist/suites/edhr/panel-schema/data-init/common/add-field/add-field-modal.vue.d.ts +15 -6
- package/dist/suites/edhr/panel-schema/data-init/common/add-field/add-field-select.vue.d.ts +1 -5
- package/dist/suites/edhr/panel-schema/data-init/common/add-field/useField.d.ts +1 -4
- package/dist/suites/edhr/panel-schema/data-init/common/add-online-form-model/online-form-model-select.vue.d.ts +12 -0
- package/dist/suites/edhr/panel-schema/data-init/common/add-sql/add-sql-modal.vue.d.ts +3 -4
- package/dist/suites/edhr/panel-schema/data-init/common/data-source-model-link.vue.d.ts +2 -2
- package/dist/suites/edhr/panel-schema/data-init/utils/index.d.ts +9 -17
- package/dist/suites/edhr/panel-schema/dynamic-table/dynamic-table.basic.d.ts +4 -1
- package/dist/suites/edhr/panel-schema/fixed-table/fixed-table.basic.d.ts +4 -1
- package/dist/suites/edhr/panel-schema/index.d.ts +12 -3
- package/dist/utils/ServiceUtil.d.ts +31 -4
- package/dist/utils/TriggerUtil.d.ts +27 -0
- package/dist/utils/func/core.d.ts +6 -0
- package/dist/utils/func/file.d.ts +2 -0
- package/dist/word.css +886 -889
- package/package.json +2 -2
- package/dist/core/layout/handlers/fields/image.d.ts +0 -1
- package/dist/core/layout/handlers/fields/signature.d.ts +0 -1
- package/dist/runtime/renderer/dialogs/upload-file/utils.d.ts +0 -16
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
onImportTemplate: (payload: any) => void;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
4
|
scrollRef: HTMLElement;
|
|
3
5
|
}, HTMLDivElement>;
|
|
4
6
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Doc } from '../../core';
|
|
2
|
+
export type ValidateTrigger = 'change' | 'blur' | 'focus' | 'manual';
|
|
1
3
|
/** 组装校验 */
|
|
2
4
|
export declare const assembleRules: (ctx: any) => any;
|
|
3
|
-
export declare const createValidatorContext: (ctx: any) => any;
|
|
5
|
+
export declare const createValidatorContext: (doc: Doc, ctx: any) => any;
|
|
@@ -33,6 +33,8 @@ export declare function useWidgetStaticAttrs(widget: any): {
|
|
|
33
33
|
showRequired: import('vue').ComputedRef<boolean>;
|
|
34
34
|
/** 是否禁用 */
|
|
35
35
|
showDisabled: import('vue').ComputedRef<boolean>;
|
|
36
|
+
/** 是否只读 */
|
|
37
|
+
showReadonly: import('vue').ComputedRef<boolean>;
|
|
36
38
|
/** 显示状态 */
|
|
37
39
|
showDisplayStatus: import('vue').ComputedRef<"readonly-component" | "readonly-text" | "edit-component">;
|
|
38
40
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { FIELD_TYPE } from '../../domain/field/field-type';
|
|
1
2
|
import { ComputedRule } from '../../domain/field/field-props-schema-type';
|
|
2
3
|
import { FieldDataBindingMeta } from '../../domain/field/field-binding';
|
|
3
4
|
import { DesignSuiteContext } from '../_register_/context/DesignSuiteContext';
|
|
4
5
|
import { FieldMeta } from '../../capabilities/model-field-runtime';
|
|
6
|
+
import { FieldManifest } from '../../capabilities/field-manifest';
|
|
5
7
|
export declare function resolveComputedRule(rule: ComputedRule, props: any): any;
|
|
6
8
|
/** 获取填充默认值 */
|
|
7
9
|
export declare function applyDefaultValue(props: any, payload: {
|
|
@@ -10,6 +12,22 @@ export declare function applyDefaultValue(props: any, payload: {
|
|
|
10
12
|
}): Record<string, any> | undefined;
|
|
11
13
|
/** 获取填充 API 类型的默认值 */
|
|
12
14
|
export declare function enrichApiDefaultValues(defaults: Record<string, any> | undefined, rule: ComputedRule, valuePath: string, fieldMeta: FieldDataBindingMeta, context: any, loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined>): Promise<Record<string, any> | undefined>;
|
|
15
|
+
export declare function computeFieldDefaultValue(params: {
|
|
16
|
+
/** 字段类型 */
|
|
17
|
+
fieldType: FIELD_TYPE;
|
|
18
|
+
/** 字段 meta */
|
|
19
|
+
fieldMeta: FieldDataBindingMeta;
|
|
20
|
+
/** valuePath */
|
|
21
|
+
valuePath: string;
|
|
22
|
+
/** 原始值 */
|
|
23
|
+
value: any;
|
|
24
|
+
/** props / widgetProps */
|
|
25
|
+
props: Record<string, any>;
|
|
26
|
+
/** 获取 manifest */
|
|
27
|
+
getFieldManifest: (type: FIELD_TYPE) => FieldManifest | undefined;
|
|
28
|
+
/** enrich 依赖 */
|
|
29
|
+
loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined>;
|
|
30
|
+
}): Promise<Record<string, any>>;
|
|
13
31
|
/** 默认值-数据填充 */
|
|
14
32
|
export declare function loadDefaultValueByAutofillRules(ctx: DesignSuiteContext, instances: any[], autofillRules: any[], field: FieldDataBindingMeta, masterSlaveList: FieldMeta[],
|
|
15
33
|
/** 外部传进来的信息 */
|
|
@@ -37,10 +37,7 @@ export declare function fetchRenderData(payload: {
|
|
|
37
37
|
/** 暂存状态 */
|
|
38
38
|
_gct_dataStatus_?: string;
|
|
39
39
|
} & Record<string, any>;
|
|
40
|
-
|
|
41
|
-
foreignFields: any;
|
|
42
|
-
/** 子模型的关联字段信息 */
|
|
43
|
-
subModelFields: any;
|
|
40
|
+
instances: any;
|
|
44
41
|
/** 是否是模拟填报 */
|
|
45
42
|
isMockReport: boolean;
|
|
46
43
|
}): Promise<void | object>;
|
|
@@ -24,3 +24,14 @@ export declare function getDefaultQueryIdsByFieldType(payload: {
|
|
|
24
24
|
};
|
|
25
25
|
/** 获取默认值集合 */
|
|
26
26
|
export declare function loadDefaultValuesByFields(instances: any[], ctx: DesignSuiteContext, context: any, masterSlaveList: FieldMeta[]): Promise<Record<string, any>>;
|
|
27
|
+
/** 收集模型关联字段(主表 + 子表) */
|
|
28
|
+
export declare const collectLinkedModelFields: (instances: any[]) => {
|
|
29
|
+
/** 主模型的关联字段信息 */
|
|
30
|
+
foreignFields: string[];
|
|
31
|
+
/** 子模型的关联字段信息 */
|
|
32
|
+
subModelFields: {
|
|
33
|
+
masterFieldKey: string | undefined;
|
|
34
|
+
subModelKey: string | undefined;
|
|
35
|
+
foreignFields: string[];
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
import { FieldMeta } from '../../capabilities/model-field-runtime';
|
|
1
2
|
/** 查找字段组件 */
|
|
2
3
|
export declare function findFieldWidget(instances: any[], fieldKey: string, modelKey: string): any;
|
|
3
4
|
/** 数据转成真实提交数据(二维表要平铺) */
|
|
4
5
|
export declare function getSubmitFormData(formData: any): any;
|
|
6
|
+
/** 转换formState */
|
|
7
|
+
export declare function conversionFormState(payload: {
|
|
8
|
+
/** 主从关联字段列表 */
|
|
9
|
+
masterSlaveList: FieldMeta[];
|
|
10
|
+
/** 渲染数据列表 */
|
|
11
|
+
interfaceData: any;
|
|
12
|
+
}): Record<string, any>;
|
package/dist/setup.d.ts
CHANGED
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
|
+
import { TriggerHandler } from './utils/TriggerUtil';
|
|
2
3
|
/**
|
|
3
4
|
* GCT PaaS 基础能力全局唯一注册入口
|
|
4
5
|
* @description 该方法用于注册GCT PaaS平台的核心全局能力,包括HTTP拦截器、文件处理方法、套件注册等,**整个应用生命周期内只需调用一次**
|
|
5
6
|
* @param {Object} options - 全局注册配置项
|
|
6
7
|
* @param {any} options.interceptors - HTTP请求拦截器配置,用于统一处理请求/响应的拦截逻辑
|
|
8
|
+
* @param {Function} options.getAppInfo - 获取应用信息/默认内置参数
|
|
7
9
|
* @param {Function} options.parseFile - 文件解析方法,用于解析上传/下载的文件内容
|
|
8
10
|
* @param {Function} options.uploadFile - 文件上传方法,封装文件上传到PaaS平台的逻辑
|
|
11
|
+
* @param {Function} options.formulaIdentify - 公式变量识别方法,用来识别字段配置的公式字符串
|
|
12
|
+
* @param {Function} options.formulaCalculate - 公式计算方法
|
|
13
|
+
* @param {Function} options.triggerHandler - 触发主工程交互
|
|
9
14
|
* @param {Function} [options.onRegisterSuite] - 套件注册回调函数(可选),用于注册业务相关的功能套件
|
|
10
15
|
* @example
|
|
11
16
|
* setupGlobalGctPaasWord({
|
|
12
17
|
* interceptors: httpInterceptors,
|
|
13
18
|
* parseFile: fileParser,
|
|
14
19
|
* uploadFile: fileUploader,
|
|
20
|
+
* formulaIdentify: identify,
|
|
21
|
+
* formulaCalculate: calculate,
|
|
15
22
|
* onRegisterSuite: () => { console.log('套件注册完成') }
|
|
16
23
|
* });
|
|
17
24
|
*/
|
|
18
25
|
export declare function setupGlobalGctPaasWord(options: {
|
|
19
26
|
interceptors: any;
|
|
27
|
+
getAppInfo: any;
|
|
20
28
|
parseFile: any;
|
|
21
29
|
uploadFile: any;
|
|
30
|
+
formulaIdentify?: any;
|
|
31
|
+
formulaCalculate?: any;
|
|
32
|
+
triggerHandler?: TriggerHandler;
|
|
22
33
|
onRegisterSuite: Function;
|
|
23
34
|
}): void;
|
|
24
35
|
/**
|
|
@@ -11,6 +11,8 @@ export declare const commonDefaultProps: {
|
|
|
11
11
|
readonly placeholder: null;
|
|
12
12
|
readonly componentDependency: ComponentDependency;
|
|
13
13
|
readonly computedOptions: null;
|
|
14
|
+
readonly cannotInput: false;
|
|
15
|
+
readonly newSpecificConfig: {};
|
|
14
16
|
};
|
|
15
17
|
export declare const dateFieldDefaultProps: {
|
|
16
18
|
readonly enableCustomFormat: false;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const schema: {
|
|
2
2
|
key: string;
|
|
3
|
-
title:
|
|
3
|
+
title: {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
4
7
|
render: import('vue').DefineComponent<{
|
|
5
8
|
widget: import('../../../../core').Wtbl;
|
|
6
9
|
active: import('../../../../domain/active/active-types').ActivePanelData;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
rows: any;
|
|
3
|
+
selectedKeys: string[];
|
|
4
4
|
callback?: any;
|
|
5
5
|
options?: object;
|
|
6
6
|
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
8
|
+
selectedKeys: import('vue').Ref<string[], string[]>;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
10
|
export default _default;
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { FIELD_TYPE } from '../../../../../../domain/field/field-type';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
isRequest?: boolean;
|
|
4
3
|
modelKey: string;
|
|
4
|
+
modelName: string;
|
|
5
|
+
useRequest?: boolean;
|
|
6
|
+
multiple?: boolean;
|
|
5
7
|
joinModelType: string;
|
|
6
8
|
joinFormRefId: string;
|
|
7
|
-
|
|
8
|
-
cascaderValue?: string;
|
|
9
|
-
fieldSelected: string;
|
|
10
|
-
isShowCascader: boolean;
|
|
9
|
+
selectedField: string | string[];
|
|
11
10
|
filterFieldType?: FIELD_TYPE | Function;
|
|
12
11
|
callback?: any;
|
|
13
12
|
options?: object;
|
|
14
13
|
};
|
|
15
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
15
|
+
selectedOptions: import('vue').ComputedRef<({
|
|
16
|
+
key?: string;
|
|
17
|
+
fieldKey?: string;
|
|
18
|
+
fieldName?: string;
|
|
19
|
+
fieldType?: FIELD_TYPE | string;
|
|
20
|
+
bindInfo?: string;
|
|
21
|
+
modelKey?: string;
|
|
22
|
+
createType?: import('../../../../../../domain/model/model-type').CreateType;
|
|
23
|
+
} | undefined)[]>;
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
25
|
export default _default;
|
|
@@ -3,10 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
joinModelType: string;
|
|
4
4
|
joinFormRefId: string;
|
|
5
5
|
joinModelKey: string;
|
|
6
|
-
actionType?: string;
|
|
7
6
|
selectFieldKey: string | undefined;
|
|
8
7
|
selectCascaderValue?: string | undefined;
|
|
9
|
-
isShowCascader: boolean;
|
|
10
8
|
filterFieldType?: FIELD_TYPE;
|
|
11
9
|
};
|
|
12
10
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -17,7 +15,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
17
15
|
"onUpdate:selectFieldKey"?: ((value?: string | undefined) => any) | undefined;
|
|
18
16
|
"onUpdate:selectCascaderValue"?: ((value?: string | undefined) => any) | undefined;
|
|
19
17
|
"onOn-select"?: ((data: any) => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
actionType: string;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
19
|
export default _default;
|
|
@@ -17,9 +17,6 @@ type IJoinModelMetaMap = Record<string, {
|
|
|
17
17
|
}>;
|
|
18
18
|
export declare function useField(): {
|
|
19
19
|
joinModelMetaMap: import('vue').Ref<IJoinModelMetaMap, IJoinModelMetaMap>;
|
|
20
|
-
initData: (modelKey:
|
|
21
|
-
joinModelType: any;
|
|
22
|
-
joinFormRefId: any;
|
|
23
|
-
}) => Promise<void>;
|
|
20
|
+
initData: (modelKey: string, { joinModelType, joinFormRefId }: any) => Promise<void>;
|
|
24
21
|
};
|
|
25
22
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
joinFormRefId?: string;
|
|
3
|
+
joinModelKey?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:joinFormRefId": (value?: string | undefined) => any;
|
|
7
|
+
"update:joinModelKey": (value?: string | undefined) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:joinFormRefId"?: ((value?: string | undefined) => any) | undefined;
|
|
10
|
+
"onUpdate:joinModelKey"?: ((value?: string | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
value: string;
|
|
3
|
-
dataSource: any;
|
|
4
|
-
callback?: any;
|
|
5
|
-
options?: object;
|
|
6
3
|
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
5
|
+
value: import('vue').Ref<string, string>;
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
7
|
export default _default;
|
|
@@ -16,9 +16,9 @@ type __VLS_Props = {
|
|
|
16
16
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
17
|
"update:items": (items: IExpressionItem[] | undefined) => any;
|
|
18
18
|
"on-clear-field": () => any;
|
|
19
|
-
"update:joinModelType": (value: string | undefined) => any;
|
|
20
19
|
"update:joinFormRefId": (value: string | undefined) => any;
|
|
21
20
|
"update:joinModelKey": (joinModelKey: string | undefined) => any;
|
|
21
|
+
"update:joinModelType": (value: string | undefined) => any;
|
|
22
22
|
"update:joinSubModel": (joinSubModel: boolean | undefined) => any;
|
|
23
23
|
"update:joinSqlJson": (joinSqlJson: string | undefined) => any;
|
|
24
24
|
"update:joinBuiltinConfig": (joinBuiltinConfig: string | undefined) => any;
|
|
@@ -27,9 +27,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
27
27
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
28
|
"onUpdate:items"?: ((items: IExpressionItem[] | undefined) => any) | undefined;
|
|
29
29
|
"onOn-clear-field"?: (() => any) | undefined;
|
|
30
|
-
"onUpdate:joinModelType"?: ((value: string | undefined) => any) | undefined;
|
|
31
30
|
"onUpdate:joinFormRefId"?: ((value: string | undefined) => any) | undefined;
|
|
32
31
|
"onUpdate:joinModelKey"?: ((joinModelKey: string | undefined) => any) | undefined;
|
|
32
|
+
"onUpdate:joinModelType"?: ((value: string | undefined) => any) | undefined;
|
|
33
33
|
"onUpdate:joinSubModel"?: ((joinSubModel: boolean | undefined) => any) | undefined;
|
|
34
34
|
"onUpdate:joinSqlJson"?: ((joinSqlJson: string | undefined) => any) | undefined;
|
|
35
35
|
"onUpdate:joinBuiltinConfig"?: ((joinBuiltinConfig: string | undefined) => any) | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CreateType } from '../../../../../domain/model/model-type';
|
|
2
|
+
export declare const translateFieldType: (key: string) => string | undefined;
|
|
2
3
|
/** 表单类型 */
|
|
3
4
|
export declare enum FormTypeEnum {
|
|
4
5
|
/** 基础表单 */
|
|
@@ -171,27 +172,18 @@ export interface IJoinIpaasConfig {
|
|
|
171
172
|
outputBodyParameters: string | undefined;
|
|
172
173
|
}
|
|
173
174
|
export declare const getField2Operators: (fieldType: any) => LinkOperatorEnum[];
|
|
174
|
-
export declare const
|
|
175
|
+
export declare const fieldColumns: any[];
|
|
175
176
|
export declare const modelListColumns: any[];
|
|
176
177
|
export declare const paramColumns: ({
|
|
177
178
|
key: string;
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
name: string;
|
|
180
|
+
width: number;
|
|
180
181
|
} | {
|
|
181
182
|
key: string;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
record: any;
|
|
185
|
-
}) => string | undefined;
|
|
183
|
+
name: string;
|
|
184
|
+
width?: undefined;
|
|
186
185
|
})[];
|
|
187
|
-
export declare const builtinFieldColumns:
|
|
186
|
+
export declare const builtinFieldColumns: {
|
|
188
187
|
key: string;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
} | {
|
|
192
|
-
key: string;
|
|
193
|
-
title: string;
|
|
194
|
-
customRender: ({ record }: {
|
|
195
|
-
record: any;
|
|
196
|
-
}) => string | undefined;
|
|
197
|
-
})[];
|
|
188
|
+
name: string;
|
|
189
|
+
}[];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const schema: {
|
|
2
2
|
key: string;
|
|
3
|
-
title:
|
|
3
|
+
title: {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
4
7
|
render: import('vue').DefineComponent<{
|
|
5
8
|
widget: import('../../../../core').Wtbl;
|
|
6
9
|
active: import('../../../../domain/active/active-types').ActivePanelData;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const schema: {
|
|
2
2
|
key: string;
|
|
3
|
-
title:
|
|
3
|
+
title: {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
4
7
|
render: import('vue').DefineComponent<{
|
|
5
8
|
widget: import('../../../../core').Wtbl;
|
|
6
9
|
active: import('../../../../domain/active/active-types').ActivePanelData;
|
|
@@ -6,7 +6,10 @@ export declare function registryPanelSchemas(): {
|
|
|
6
6
|
};
|
|
7
7
|
'dynamic-table.basic': {
|
|
8
8
|
key: string;
|
|
9
|
-
title:
|
|
9
|
+
title: {
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
10
13
|
render: import('vue').DefineComponent<{
|
|
11
14
|
widget: import('../../../core').Wtbl;
|
|
12
15
|
active: import('../../../domain/active/active-types').ActivePanelData;
|
|
@@ -17,7 +20,10 @@ export declare function registryPanelSchemas(): {
|
|
|
17
20
|
};
|
|
18
21
|
'fixed-table.basic': {
|
|
19
22
|
key: string;
|
|
20
|
-
title:
|
|
23
|
+
title: {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
21
27
|
render: import('vue').DefineComponent<{
|
|
22
28
|
widget: import('../../../core').Wtbl;
|
|
23
29
|
active: import('../../../domain/active/active-types').ActivePanelData;
|
|
@@ -28,7 +34,10 @@ export declare function registryPanelSchemas(): {
|
|
|
28
34
|
};
|
|
29
35
|
'data-group.basic': {
|
|
30
36
|
key: string;
|
|
31
|
-
title:
|
|
37
|
+
title: {
|
|
38
|
+
key: string;
|
|
39
|
+
value: string;
|
|
40
|
+
}[];
|
|
32
41
|
render: import('vue').DefineComponent<{
|
|
33
42
|
widget: import('../../../core').Wtbl;
|
|
34
43
|
active: import('../../../domain/active/active-types').ActivePanelData;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
type GetAppInfoMethod = () => Promise<any>;
|
|
1
2
|
type ParseFileMethod = (file: File) => Promise<any>;
|
|
2
3
|
type UploadPayload = {
|
|
3
4
|
onProgress?: (p: number) => void;
|
|
@@ -5,10 +6,22 @@ type UploadPayload = {
|
|
|
5
6
|
modelKey?: string;
|
|
6
7
|
};
|
|
7
8
|
type UploadFileMethod = (file: File, payload?: UploadPayload) => Promise<any>;
|
|
9
|
+
type FormulaIdentify = (expr: string) => string[];
|
|
10
|
+
type FormulaCalculate = (expr: string, values: Record<string, any>) => Promise<any>;
|
|
11
|
+
interface ServiceUtilHandlers {
|
|
12
|
+
getAppInfo?: GetAppInfoMethod;
|
|
13
|
+
parseFile?: ParseFileMethod;
|
|
14
|
+
uploadFile?: UploadFileMethod;
|
|
15
|
+
formulaIdentify?: FormulaIdentify;
|
|
16
|
+
formulaCalculate?: FormulaCalculate;
|
|
17
|
+
}
|
|
8
18
|
declare class ServiceUtil {
|
|
9
19
|
private static instance;
|
|
20
|
+
private _getAppInfo?;
|
|
10
21
|
private _parseFileImpl?;
|
|
11
22
|
private _uploadFileImpl?;
|
|
23
|
+
private _formulaIdentifyImpl?;
|
|
24
|
+
private _formulaCalculateImpl?;
|
|
12
25
|
private constructor();
|
|
13
26
|
/**
|
|
14
27
|
* 获取 ServiceUtil 单例实例
|
|
@@ -18,10 +31,11 @@ declare class ServiceUtil {
|
|
|
18
31
|
* 初始化/注册实现方法
|
|
19
32
|
* @param handlers - 包含 parseFile 和 uploadFile 实现的对象
|
|
20
33
|
*/
|
|
21
|
-
register(handlers?:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
34
|
+
register(handlers?: ServiceUtilHandlers): void;
|
|
35
|
+
/**
|
|
36
|
+
* 获取应用信息
|
|
37
|
+
*/
|
|
38
|
+
getAppInfo(): Promise<any>;
|
|
25
39
|
/**
|
|
26
40
|
* 解析文件
|
|
27
41
|
* @param file - 文件对象
|
|
@@ -32,6 +46,19 @@ declare class ServiceUtil {
|
|
|
32
46
|
* @param file - 文件对象
|
|
33
47
|
*/
|
|
34
48
|
uploadFile(file: File, payload?: UploadPayload): Promise<any>;
|
|
49
|
+
/**
|
|
50
|
+
* 变量识别
|
|
51
|
+
* @param expr
|
|
52
|
+
* @returns {Array}
|
|
53
|
+
*/
|
|
54
|
+
formulaIdentify(expr: string): string[] | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* 公式计算
|
|
57
|
+
* @param {string} expr 表达式
|
|
58
|
+
* @param {object} values 参数
|
|
59
|
+
* @returns
|
|
60
|
+
*/
|
|
61
|
+
formulaCalculate(expr: string, values: Record<string, any>): Promise<any>;
|
|
35
62
|
}
|
|
36
63
|
declare const serviceUtil: ServiceUtil;
|
|
37
64
|
export default serviceUtil;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type TriggerName = 'OPEN_DATA_INIT_DATASOURCE_FORM_MODEL_MODAL';
|
|
2
|
+
export type TriggerHandler = (name: TriggerName, options?: any) => Promise<any>;
|
|
3
|
+
interface TriggerUtilHandlers {
|
|
4
|
+
handle?: TriggerHandler;
|
|
5
|
+
}
|
|
6
|
+
declare class TriggerUtil {
|
|
7
|
+
private static instance;
|
|
8
|
+
private _handle?;
|
|
9
|
+
private constructor();
|
|
10
|
+
/**
|
|
11
|
+
* 获取 TriggerUtil 单例实例
|
|
12
|
+
*/
|
|
13
|
+
static getInstance(): TriggerUtil;
|
|
14
|
+
/**
|
|
15
|
+
* 初始化/注册实现方法
|
|
16
|
+
* @param handlers -
|
|
17
|
+
*/
|
|
18
|
+
register(handlers?: TriggerUtilHandlers): void;
|
|
19
|
+
/**
|
|
20
|
+
* 触发交互
|
|
21
|
+
* @param name 交互名称
|
|
22
|
+
* @param options 交互参数
|
|
23
|
+
*/
|
|
24
|
+
handle(name: TriggerName, options?: any): Promise<any>;
|
|
25
|
+
}
|
|
26
|
+
declare const triggerUtil: TriggerUtil;
|
|
27
|
+
export default triggerUtil;
|
|
@@ -27,6 +27,12 @@ export declare function replacePathIndexPlaceholder(refPath: string | number, te
|
|
|
27
27
|
* @returns 最后一个片段,空值返回空字符串
|
|
28
28
|
*/
|
|
29
29
|
export declare function getLastSegment(str?: string, separator?: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* 提取 $.变量名[内容] 格式的方法(截取到 ] 并包含 ])
|
|
32
|
+
* @param str
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare function getBeforeBracket(str: string): string;
|
|
30
36
|
/** 防抖特性的RAF,同一帧内多次调用 schedule() 只会执行一次 */
|
|
31
37
|
export declare function createRafOnce(): {
|
|
32
38
|
schedule: (fn: () => void) => void;
|