@gct-paas/word 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/command/commands/SetDataGroup2D.d.ts +3 -11
- package/dist/core/model/document/Wtc.d.ts +1 -0
- package/dist/core/view/utils/TextUtil.d.ts +17 -0
- package/dist/index.es.js +384 -149
- package/dist/runtime/canvas/__common__/context-menu/index.type.d.ts +3 -0
- package/dist/runtime/canvas/__common__/context-menu/index.vue.d.ts +2 -1
- package/dist/runtime/canvas/__common__/context-menu/table-menu.vue.d.ts +6 -1
- package/dist/runtime/canvas/doc-layout.vue.d.ts +3 -1
- package/dist/runtime/designer/main/editable-canvas.vue.d.ts +3 -1
- package/dist/runtime/renderer/main/preview-canvas.vue.d.ts +3 -1
- package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +6 -0
- package/dist/sdk/engine/index.d.ts +1 -1
- package/dist/sdk/types/index.d.ts +6 -1
- package/dist/sdk/vue/layouts/doc-design-layout.vue.d.ts +2 -1
- package/dist/sdk/vue/layouts/doc-render-layout.vue.d.ts +3 -1
- package/dist/utils/composables/useDragLine.d.ts +18 -0
- package/dist/word.css +157 -150
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ContextMenuParams } from './index.type';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
3
|
show: (params: ContextMenuParams) => void;
|
|
4
|
+
hide: () => void;
|
|
4
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
5
|
-
|
|
6
|
+
contextMenuRef: HTMLDivElement;
|
|
6
7
|
}, any>;
|
|
7
8
|
export default _default;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
table?: any;
|
|
3
|
+
tableRow?: any;
|
|
4
|
+
tableCell?: any;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
2
7
|
export default _default;
|
|
@@ -17,8 +17,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
17
17
|
overlayLayerRef: unknown;
|
|
18
18
|
contextMenuRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
19
19
|
show: (params: import('./__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
20
|
+
hide: () => void;
|
|
20
21
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
21
|
-
|
|
22
|
+
contextMenuRef: HTMLDivElement;
|
|
22
23
|
}, any, import('vue').ComponentProvideOptions, {
|
|
23
24
|
P: {};
|
|
24
25
|
B: {};
|
|
@@ -28,6 +29,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
28
29
|
Defaults: {};
|
|
29
30
|
}, Readonly<{}> & Readonly<{}>, {
|
|
30
31
|
show: (params: import('./__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
32
|
+
hide: () => void;
|
|
31
33
|
}, {}, {}, {}, {}> | null;
|
|
32
34
|
}, any>;
|
|
33
35
|
export default _default;
|
|
@@ -17,8 +17,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
17
17
|
overlayLayerRef: unknown;
|
|
18
18
|
contextMenuRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
19
19
|
show: (params: import('../../canvas/__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
20
|
+
hide: () => void;
|
|
20
21
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
21
|
-
|
|
22
|
+
contextMenuRef: HTMLDivElement;
|
|
22
23
|
}, any, import('vue').ComponentProvideOptions, {
|
|
23
24
|
P: {};
|
|
24
25
|
B: {};
|
|
@@ -28,6 +29,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
28
29
|
Defaults: {};
|
|
29
30
|
}, Readonly<{}> & Readonly<{}>, {
|
|
30
31
|
show: (params: import('../../canvas/__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
32
|
+
hide: () => void;
|
|
31
33
|
}, {}, {}, {}, {}> | null;
|
|
32
34
|
}, any, import('vue').ComponentProvideOptions, {
|
|
33
35
|
P: {};
|
|
@@ -20,8 +20,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
20
20
|
overlayLayerRef: unknown;
|
|
21
21
|
contextMenuRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
22
22
|
show: (params: import('../../canvas/__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
23
|
+
hide: () => void;
|
|
23
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
24
|
-
|
|
25
|
+
contextMenuRef: HTMLDivElement;
|
|
25
26
|
}, any, import('vue').ComponentProvideOptions, {
|
|
26
27
|
P: {};
|
|
27
28
|
B: {};
|
|
@@ -31,6 +32,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
31
32
|
Defaults: {};
|
|
32
33
|
}, Readonly<{}> & Readonly<{}>, {
|
|
33
34
|
show: (params: import('../../canvas/__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
35
|
+
hide: () => void;
|
|
34
36
|
}, {}, {}, {}, {}> | null;
|
|
35
37
|
}, any, import('vue').ComponentProvideOptions, {
|
|
36
38
|
P: {};
|
|
@@ -6,6 +6,10 @@ export interface DocBaselineContext {
|
|
|
6
6
|
baselineSnapshot: Record<string, any> | undefined;
|
|
7
7
|
widgetMetaMap: WidgetFieldMetaMap;
|
|
8
8
|
}
|
|
9
|
+
export interface DocUnsavedChanges {
|
|
10
|
+
/** 是否存在未保存改动 */
|
|
11
|
+
dirty: boolean;
|
|
12
|
+
}
|
|
9
13
|
export interface DocOperations {
|
|
10
14
|
/** 校验所有字段,返回错误映射或 null(通过) */
|
|
11
15
|
validate(): Promise<Record<string, string[]> | null>;
|
|
@@ -22,6 +26,8 @@ export interface DocOperations {
|
|
|
22
26
|
computeBaselineChanges(ctx: DocBaselineContext): Promise<FieldChangeItem[]>;
|
|
23
27
|
/** 设置变更批注 */
|
|
24
28
|
setAnnotation(ids: string[], list: any[]): void;
|
|
29
|
+
/** 获取当前未保存改动状态,供外部在退出前做拦截 */
|
|
30
|
+
getUnsavedChanges(): DocUnsavedChanges;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* 文档操作组合式函数
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export { DocModeTypeConst, PageSizeEnumConst, BuiltinComponentTypeConst } from '../../core';
|
|
6
6
|
export type { DocModeType, CompleteComponentType, BuiltinComponentType } from '../../core';
|
|
7
|
-
export type { DocController, DocQueryAPI, WordRuntime, DocInfo, DocRuntimeMeta, DocRuntimeMetaHandleInfo, UseWordProps, UseWordOptions, } from '../types';
|
|
7
|
+
export type { DocController, DocQueryAPI, WordRuntime, DocInfo, DocRuntimeMeta, DocRuntimeMetaHandleInfo, DocUnsavedChanges, UseWordProps, UseWordOptions, } from '../types';
|
|
8
8
|
export { useWord } from '../doc-runtime/useWord';
|
|
9
9
|
export { useDocSuite } from '../doc-runtime/composables/useDocSuite';
|
|
10
10
|
export { useDocumentFactory } from '../doc-runtime/factories/useDocumentFactory';
|
|
@@ -2,10 +2,11 @@ import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
|
2
2
|
import { DocModeType } from '../../core/constants';
|
|
3
3
|
import { DocModel } from '../../core/model';
|
|
4
4
|
import { Page } from '../../core';
|
|
5
|
-
import { DocBaselineContext, DocOperations } from '../doc-runtime/composables/useDocOperations';
|
|
5
|
+
import { DocBaselineContext, DocUnsavedChanges, DocOperations } from '../doc-runtime/composables/useDocOperations';
|
|
6
6
|
import { OnlineFormInstanceResponse, OnlineFormTmplResponse } from '@gct-paas/api/apaas';
|
|
7
7
|
import { FieldChangeItem } from '../../runtime/interface/change-diff';
|
|
8
8
|
import { FormTmplConfigController } from '../../suites/edhr/panel-schema/data-load/hooks/form-tmpl-config';
|
|
9
|
+
export type { DocUnsavedChanges } from '../doc-runtime/composables/useDocOperations';
|
|
9
10
|
/** 字段权限信息 */
|
|
10
11
|
export interface FieldPermissionInfo {
|
|
11
12
|
modelKey: string;
|
|
@@ -64,6 +65,8 @@ export interface DocControllerMethods extends DocOperations {
|
|
|
64
65
|
enterBaseline(uniqueId: string): DocBaselineContext | null;
|
|
65
66
|
/** 与基线做差异计算,返回字段变更列表 */
|
|
66
67
|
computeBaselineChanges(ctx: DocBaselineContext): Promise<FieldChangeItem[]>;
|
|
68
|
+
/** 获取当前未保存改动状态,适合外部在退出前做校验 */
|
|
69
|
+
getUnsavedChanges(): DocUnsavedChanges;
|
|
67
70
|
/** 向指定字段/组件设置批注信息 */
|
|
68
71
|
setAnnotation(ids: string[], list: any[]): void;
|
|
69
72
|
}
|
|
@@ -105,6 +108,8 @@ export interface DocRuntimeMetaHandleInfo {
|
|
|
105
108
|
bpmnType?: string;
|
|
106
109
|
/** bpmn 字段权限映射 */
|
|
107
110
|
bpmnFieldAuthMap?: Record<string, any>;
|
|
111
|
+
/** 初始化的doc model 用来比对用 */
|
|
112
|
+
initDocModelJson: string;
|
|
108
113
|
}
|
|
109
114
|
/** 文档运行时元信息(接口返回字段 + 业务拼接字段) */
|
|
110
115
|
export interface DocRuntimeMeta extends OnlineFormInstanceResponse, OnlineFormTmplResponse {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DocDesignLayoutProps } from './doc-design-layout';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<DocDesignLayoutProps, {
|
|
3
|
-
onImportTemplate: (
|
|
3
|
+
onImportTemplate: () => void;
|
|
4
4
|
onImportData: (mainData: any) => void;
|
|
5
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DocDesignLayoutProps> & Readonly<{}>, {
|
|
6
6
|
IOTPermission: boolean;
|
|
7
7
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
+
layoutRef: HTMLDivElement;
|
|
8
9
|
scrollRef: HTMLElement;
|
|
9
10
|
}, HTMLDivElement>;
|
|
10
11
|
export default _default;
|
|
@@ -22,8 +22,9 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
22
22
|
overlayLayerRef: unknown;
|
|
23
23
|
contextMenuRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
24
24
|
show: (params: import('../../../runtime/canvas/__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
25
|
+
hide: () => void;
|
|
25
26
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
26
|
-
|
|
27
|
+
contextMenuRef: HTMLDivElement;
|
|
27
28
|
}, any, import('vue').ComponentProvideOptions, {
|
|
28
29
|
P: {};
|
|
29
30
|
B: {};
|
|
@@ -33,6 +34,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
33
34
|
Defaults: {};
|
|
34
35
|
}, Readonly<{}> & Readonly<{}>, {
|
|
35
36
|
show: (params: import('../../../runtime/canvas/__common__/context-menu/index.type').ContextMenuParams) => void;
|
|
37
|
+
hide: () => void;
|
|
36
38
|
}, {}, {}, {}, {}> | null;
|
|
37
39
|
}, any, import('vue').ComponentProvideOptions, {
|
|
38
40
|
P: {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
export declare enum COLUMNS_TYPE {
|
|
3
|
+
LEFT = "left",
|
|
4
|
+
CENTER = "center",
|
|
5
|
+
RIGHT = "right",
|
|
6
|
+
TOP = "top",
|
|
7
|
+
BOTTOM = "bottom"
|
|
8
|
+
}
|
|
9
|
+
interface UseDragLineConfig {
|
|
10
|
+
/** 最小值 */
|
|
11
|
+
minValue?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface UseDragLineReturn {
|
|
14
|
+
moveDomDown: (event: MouseEvent, el: HTMLElement, onMouseUp?: () => void) => void;
|
|
15
|
+
start: ComputedRef<number>;
|
|
16
|
+
}
|
|
17
|
+
export declare function useDragLine(startValue: number, rowType: COLUMNS_TYPE, config?: UseDragLineConfig): UseDragLineReturn;
|
|
18
|
+
export {};
|