@gct-paas/word 0.1.11 → 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/base/utils/image-size-util.d.ts +2 -0
- package/dist/capabilities/panel/schema/types.d.ts +4 -1
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/cursor/logic/getCursorTextRawList.d.ts +2 -0
- package/dist/core/cursor/logic/index.d.ts +1 -0
- package/dist/core/data/DataManager.d.ts +38 -36
- package/dist/core/event/types.d.ts +1 -1
- package/dist/core/index.d.ts +3 -0
- package/dist/core/interaction/useInteraction.d.ts +0 -1
- package/dist/core/layout/LayoutContext.d.ts +1 -0
- package/dist/core/layout/handlers/FieldHandler.d.ts +0 -18
- 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/WrField.d.ts +3 -126
- 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/Doc.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/ImageWidget.d.ts +3 -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/domain/active/active-types.d.ts +0 -1
- package/dist/domain/widget/component-type.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +6367 -4743
- package/dist/runtime/_register_/composables/panel/useActivePanel.d.ts +1 -2
- 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/canvas/table/design/table-structure-overlay/dynamic-label.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +0 -1
- package/dist/runtime/designer/doc-design-layout.vue.d.ts +3 -1
- package/dist/runtime/designer/ribbon/common/button-icon.vue.d.ts +3 -2
- package/dist/runtime/designer/ribbon/constant/font.d.ts +1 -1
- package/dist/runtime/factories/createValidateFactory.d.ts +3 -1
- package/dist/runtime/factories/useDependency.d.ts +5 -0
- package/dist/runtime/factories/useDocumentFactory.d.ts +2 -0
- package/dist/runtime/factories/useFormValidator.d.ts +3 -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 +10 -0
- package/dist/runtime/renderer/doc-render-layout.vue.d.ts +58 -2
- package/dist/runtime/renderer/main/preview-canvas.vue.d.ts +3 -1
- 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 +1005 -998
- package/package.json +2 -2
- package/dist/runtime/designer/ribbon/components/bullet-point-select.vue.d.ts +0 -73
- package/dist/runtime/designer/ribbon/components/multistage-no-select.vue.d.ts +0 -73
- package/dist/runtime/renderer/dialogs/upload-file/utils.d.ts +0 -16
|
@@ -4,13 +4,12 @@ export declare function useActivePanel(): {
|
|
|
4
4
|
readonly widgetId?: string | undefined;
|
|
5
5
|
readonly modelId?: string | undefined;
|
|
6
6
|
readonly context: {
|
|
7
|
-
readonly pageName?: string | undefined;
|
|
8
7
|
readonly mainModelKey?: string | undefined;
|
|
9
8
|
readonly subFieldKey?: string | undefined;
|
|
10
9
|
readonly regionId?: string | undefined;
|
|
11
10
|
};
|
|
12
11
|
} | null | undefined>;
|
|
13
|
-
widget: import('vue').ComputedRef<import('../../../../core').
|
|
12
|
+
widget: import('vue').ComputedRef<import('../../../../core/model/document').WrText | import('../../../../core/model/document').WrImage | import('../../../../core/model/document').Wp | import('../../../../core').Wtbl | import('../../../../core/model/document').Wtc | import('../../../../core/model/document').Wtr | import('../../../../core').LayoutNode | null | undefined>;
|
|
14
13
|
schemaKey: import('vue').ComputedRef<string | null>;
|
|
15
14
|
schema: import('vue').ComputedRef<import('../../../../capabilities/panel/schema/types').PanelSchema | null | undefined>;
|
|
16
15
|
};
|
|
@@ -2,6 +2,7 @@ import { OutlineResult, Pos } from '../../types/table';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
pos: Pos;
|
|
4
4
|
layer: OutlineResult;
|
|
5
|
+
isPreview: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
8
|
click: (...args: any[]) => void;
|
|
@@ -14,7 +14,6 @@ export declare function useTableSelection(): {
|
|
|
14
14
|
readonly widgetId?: string | undefined;
|
|
15
15
|
readonly modelId?: string | undefined;
|
|
16
16
|
readonly context: {
|
|
17
|
-
readonly pageName?: string | undefined;
|
|
18
17
|
readonly mainModelKey?: string | undefined;
|
|
19
18
|
readonly subFieldKey?: string | undefined;
|
|
20
19
|
readonly regionId?: string | undefined;
|
|
@@ -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;
|
|
@@ -3,10 +3,11 @@ type __VLS_Props = {
|
|
|
3
3
|
tooltip?: string;
|
|
4
4
|
tooltipExtraProps?: any;
|
|
5
5
|
iconExtraProps: any;
|
|
6
|
+
active?: boolean;
|
|
6
7
|
};
|
|
7
8
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
+
click: (...args: any[]) => void;
|
|
9
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
|
|
11
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
11
12
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
13
|
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;
|
|
@@ -36,6 +36,8 @@ export interface IDocPayload extends IDocTemplatePayload, IDocInstancePayload {
|
|
|
36
36
|
deviceConfig?: IDeviceConfig;
|
|
37
37
|
/** 是否是模拟填报 */
|
|
38
38
|
isMockReport: boolean;
|
|
39
|
+
/** 是否是预览模式 */
|
|
40
|
+
isPreview: boolean;
|
|
39
41
|
ctx: DesignSuiteContext;
|
|
40
42
|
}
|
|
41
43
|
export interface DocumentFactory {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { Doc } from '../../core';
|
|
1
2
|
export declare function createFormValidator(): {
|
|
2
3
|
validateField: (key: string, value: any, rules: any[], formData: Record<string, any>) => Promise<any>;
|
|
3
4
|
validateAll: (rulesMap: Record<string, any>, formData: Record<string, any>) => Promise<any>;
|
|
4
5
|
};
|
|
6
|
+
/** 校验全部字段 */
|
|
7
|
+
export declare const validateAllFields: (doc: Doc) => Promise<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,2 +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;
|
|
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>;
|
|
@@ -1,4 +1,60 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
onPrintView: () => void;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
4
|
+
renderRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
5
|
+
pages: Array<import('../../core').Page>;
|
|
6
|
+
}> & Readonly<{}>, {
|
|
7
|
+
exportCustomPdf: () => Promise<void>;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
9
|
+
scrollRef: HTMLDivElement;
|
|
10
|
+
pageStageRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
11
|
+
pages: Array<import('../../core').Page>;
|
|
12
|
+
scrollRef: HTMLElement | null;
|
|
13
|
+
}> & Readonly<{}>, {
|
|
14
|
+
stageRef: import('vue').Ref<any, any>;
|
|
15
|
+
contentLayerRef: import('vue').Ref<any, any>;
|
|
16
|
+
pageGroupRefs: import('vue').Ref<Record<string, import('konva/lib/Group').Group>, Record<string, import('konva/lib/Group').Group>>;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
18
|
+
stageRef: unknown;
|
|
19
|
+
contentLayerRef: unknown;
|
|
20
|
+
contextMenuRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
21
|
+
show: (params: import('../canvas/__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
23
|
+
P: {};
|
|
24
|
+
B: {};
|
|
25
|
+
D: {};
|
|
26
|
+
C: {};
|
|
27
|
+
M: {};
|
|
28
|
+
Defaults: {};
|
|
29
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
30
|
+
show: (params: import('../canvas/__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
31
|
+
}, {}, {}, {}, {}> | null;
|
|
32
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
33
|
+
P: {};
|
|
34
|
+
B: {};
|
|
35
|
+
D: {};
|
|
36
|
+
C: {};
|
|
37
|
+
M: {};
|
|
38
|
+
Defaults: {};
|
|
39
|
+
}, Readonly<{
|
|
40
|
+
pages: Array<import('../../core').Page>;
|
|
41
|
+
scrollRef: HTMLElement | null;
|
|
42
|
+
}> & Readonly<{}>, {
|
|
43
|
+
stageRef: import('vue').Ref<any, any>;
|
|
44
|
+
contentLayerRef: import('vue').Ref<any, any>;
|
|
45
|
+
pageGroupRefs: import('vue').Ref<Record<string, import('konva/lib/Group').Group>, Record<string, import('konva/lib/Group').Group>>;
|
|
46
|
+
}, {}, {}, {}, {}> | null;
|
|
47
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
48
|
+
P: {};
|
|
49
|
+
B: {};
|
|
50
|
+
D: {};
|
|
51
|
+
C: {};
|
|
52
|
+
M: {};
|
|
53
|
+
Defaults: {};
|
|
54
|
+
}, Readonly<{
|
|
55
|
+
pages: Array<import('../../core').Page>;
|
|
56
|
+
}> & Readonly<{}>, {
|
|
57
|
+
exportCustomPdf: () => Promise<void>;
|
|
58
|
+
}, {}, {}, {}, {}> | null;
|
|
3
59
|
}, HTMLDivElement>;
|
|
4
60
|
export default _default;
|
|
@@ -2,7 +2,9 @@ import { Page } from '../../../core';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
pages: Array<Page>;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
6
|
+
exportCustomPdf: () => Promise<void>;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
6
8
|
scrollRef: HTMLDivElement;
|
|
7
9
|
pageStageRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
8
10
|
pages: Array<Page>;
|
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;
|