@agilehub/agile-editor 1.4.1 → 1.6.0
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/README.md +367 -225
- package/dist/agile-editor.css +1 -1
- package/dist/agile-editor.js +10054 -7692
- package/dist/types/components/editor/index.vue.d.ts +2 -2
- package/dist/types/components/index.d.ts +4 -2
- package/dist/types/components/index.vue.d.ts +186 -12
- package/dist/types/components/menus/toolbar/tools/bubble-note.vue.d.ts +22 -1
- package/dist/types/components/preview-toolbar/annotation-shape.vue.d.ts +58 -0
- package/dist/types/components/preview-toolbar/drawing-layer.vue.d.ts +91 -0
- package/dist/types/components/preview-toolbar/geometry.d.ts +56 -0
- package/dist/types/components/preview-toolbar/index.vue.d.ts +200 -0
- package/dist/types/components/preview-toolbar/types.d.ts +48 -0
- package/dist/types/components/statusbar/countdown.vue.d.ts +19 -7
- package/dist/types/components/toolbar/classic.vue.d.ts +13 -13
- package/dist/types/components/toolbar/ribbon.vue.d.ts +7 -7
- package/dist/types/composables/i18n.d.ts +186 -12
- package/dist/types/extensions/bubble-note.d.ts +3 -0
- package/dist/types/extensions/element-style.d.ts +0 -1
- package/dist/types/extensions/footnotes/utils.d.ts +1 -0
- package/dist/types/i18n.d.ts +186 -12
- package/dist/types/options/config/dicts.d.ts +8 -0
- package/dist/types/options/config/index.d.ts +10 -1
- package/dist/types/utils/bubble-note-icon.d.ts +19 -0
- package/dist/types/utils/docx-json.d.ts +4 -1
- package/dist/types/utils/html-element-id.d.ts +9 -0
- package/dist/types/utils/html-id.d.ts +1 -0
- package/dist/types/utils/iframe.d.ts +5 -0
- package/dist/types/utils/style-target.d.ts +49 -0
- package/docs/README.md +40 -40
- package/docs/api.md +155 -155
- package/docs/architecture.md +133 -133
- package/docs/configuration.md +233 -233
- package/docs/custom-components.md +427 -277
- package/docs/development.md +85 -85
- package/docs/faq.md +98 -98
- package/docs/features.md +181 -181
- package/docs/menu-extension.md +276 -276
- package/package.json +12 -10
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { PreviewAnnotation, PreviewAnnotationSnapshot, PreviewAnnotationsSaveHandler, PreviewDrawTool, PreviewPageSettings, PreviewStrokeStyle } from './types';
|
|
3
|
+
type PreviewToolbarAttach = string | ((triggerNode?: HTMLElement) => HTMLElement | Element | Document);
|
|
4
|
+
type PreviewDrawingTarget = string | HTMLElement;
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
6
|
+
layout: {
|
|
7
|
+
type: PropType<"page" | "web">;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
zoomLevel: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
minZoom: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
maxZoom: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
autoWidth: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
laserPointer: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
floating: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
visible: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
attach: {
|
|
39
|
+
type: PropType<PreviewToolbarAttach>;
|
|
40
|
+
default: any;
|
|
41
|
+
};
|
|
42
|
+
drawingTarget: {
|
|
43
|
+
type: PropType<PreviewDrawingTarget>;
|
|
44
|
+
default: any;
|
|
45
|
+
};
|
|
46
|
+
drawingColor: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
drawingWidth: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
pageSettings: {
|
|
55
|
+
type: PropType<PreviewPageSettings>;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
onAnnotationsSave: {
|
|
59
|
+
type: PropType<PreviewAnnotationsSaveHandler>;
|
|
60
|
+
default: any;
|
|
61
|
+
};
|
|
62
|
+
}>, {
|
|
63
|
+
getAnnotations: () => {
|
|
64
|
+
points: {
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
}[];
|
|
68
|
+
id: string;
|
|
69
|
+
tool: import("./types").PreviewAnnotationTool;
|
|
70
|
+
closed: boolean;
|
|
71
|
+
strokeStyle: PreviewStrokeStyle;
|
|
72
|
+
color: string;
|
|
73
|
+
strokeWidth: number;
|
|
74
|
+
}[];
|
|
75
|
+
serializeAnnotations: () => string;
|
|
76
|
+
setAnnotations: (items: PreviewAnnotation[]) => void;
|
|
77
|
+
restoreAnnotations: (value: PreviewAnnotationSnapshot | string) => boolean;
|
|
78
|
+
clearAnnotations: () => boolean;
|
|
79
|
+
saveAnnotations: () => Promise<boolean>;
|
|
80
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
81
|
+
hide: () => any;
|
|
82
|
+
"selection-change": (annotationId: string) => any;
|
|
83
|
+
"countdown-change": (value: string) => any;
|
|
84
|
+
"annotation-add": (annotation: PreviewAnnotation) => any;
|
|
85
|
+
"annotation-delete": (annotationId: string) => any;
|
|
86
|
+
"annotations-clear": () => any;
|
|
87
|
+
"annotations-change": (annotations: PreviewAnnotation[]) => any;
|
|
88
|
+
"zoom-in": () => any;
|
|
89
|
+
"zoom-out": () => any;
|
|
90
|
+
"auto-width": () => any;
|
|
91
|
+
"update:laserPointer": (value: boolean) => any;
|
|
92
|
+
"laser-pointer-change": (value: boolean) => any;
|
|
93
|
+
"countdown-exit": () => any;
|
|
94
|
+
"draw-tool-change": (tool: PreviewDrawTool) => any;
|
|
95
|
+
"stroke-style-change": (style: PreviewStrokeStyle) => any;
|
|
96
|
+
"drawing-color-change": (color: string) => any;
|
|
97
|
+
"drawing-width-change": (width: number) => any;
|
|
98
|
+
"annotations-undo": () => any;
|
|
99
|
+
"save-annotations": (snapshot: PreviewAnnotationSnapshot) => any;
|
|
100
|
+
"restore-annotation-page": (settings: PreviewPageSettings) => any;
|
|
101
|
+
"drawing-ready": () => any;
|
|
102
|
+
"annotations-visibility-change": (visible: boolean) => any;
|
|
103
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
104
|
+
layout: {
|
|
105
|
+
type: PropType<"page" | "web">;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
zoomLevel: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
default: number;
|
|
111
|
+
};
|
|
112
|
+
minZoom: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
maxZoom: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
120
|
+
autoWidth: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
laserPointer: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
floating: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
visible: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
attach: {
|
|
137
|
+
type: PropType<PreviewToolbarAttach>;
|
|
138
|
+
default: any;
|
|
139
|
+
};
|
|
140
|
+
drawingTarget: {
|
|
141
|
+
type: PropType<PreviewDrawingTarget>;
|
|
142
|
+
default: any;
|
|
143
|
+
};
|
|
144
|
+
drawingColor: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
drawingWidth: {
|
|
149
|
+
type: NumberConstructor;
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
pageSettings: {
|
|
153
|
+
type: PropType<PreviewPageSettings>;
|
|
154
|
+
default: any;
|
|
155
|
+
};
|
|
156
|
+
onAnnotationsSave: {
|
|
157
|
+
type: PropType<PreviewAnnotationsSaveHandler>;
|
|
158
|
+
default: any;
|
|
159
|
+
};
|
|
160
|
+
}>> & Readonly<{
|
|
161
|
+
onHide?: () => any;
|
|
162
|
+
"onSelection-change"?: (annotationId: string) => any;
|
|
163
|
+
"onCountdown-change"?: (value: string) => any;
|
|
164
|
+
"onAnnotation-add"?: (annotation: PreviewAnnotation) => any;
|
|
165
|
+
"onAnnotation-delete"?: (annotationId: string) => any;
|
|
166
|
+
"onAnnotations-clear"?: () => any;
|
|
167
|
+
"onAnnotations-change"?: (annotations: PreviewAnnotation[]) => any;
|
|
168
|
+
"onZoom-in"?: () => any;
|
|
169
|
+
"onZoom-out"?: () => any;
|
|
170
|
+
"onAuto-width"?: () => any;
|
|
171
|
+
"onUpdate:laserPointer"?: (value: boolean) => any;
|
|
172
|
+
"onLaser-pointer-change"?: (value: boolean) => any;
|
|
173
|
+
"onCountdown-exit"?: () => any;
|
|
174
|
+
"onDraw-tool-change"?: (tool: PreviewDrawTool) => any;
|
|
175
|
+
"onStroke-style-change"?: (style: PreviewStrokeStyle) => any;
|
|
176
|
+
"onDrawing-color-change"?: (color: string) => any;
|
|
177
|
+
"onDrawing-width-change"?: (width: number) => any;
|
|
178
|
+
"onAnnotations-undo"?: () => any;
|
|
179
|
+
"onSave-annotations"?: (snapshot: PreviewAnnotationSnapshot) => any;
|
|
180
|
+
"onRestore-annotation-page"?: (settings: PreviewPageSettings) => any;
|
|
181
|
+
"onDrawing-ready"?: () => any;
|
|
182
|
+
"onAnnotations-visibility-change"?: (visible: boolean) => any;
|
|
183
|
+
}>, {
|
|
184
|
+
layout: "page" | "web";
|
|
185
|
+
autoWidth: boolean;
|
|
186
|
+
laserPointer: boolean;
|
|
187
|
+
visible: boolean;
|
|
188
|
+
zoomLevel: number;
|
|
189
|
+
attach: PreviewToolbarAttach;
|
|
190
|
+
minZoom: number;
|
|
191
|
+
maxZoom: number;
|
|
192
|
+
floating: boolean;
|
|
193
|
+
drawingTarget: PreviewDrawingTarget;
|
|
194
|
+
drawingColor: string;
|
|
195
|
+
drawingWidth: number;
|
|
196
|
+
pageSettings: PreviewPageSettings;
|
|
197
|
+
onAnnotationsSave: PreviewAnnotationsSaveHandler;
|
|
198
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
199
|
+
declare const _default: typeof __VLS_export;
|
|
200
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** 预览工具栏当前交互工具。select 只用于选择已有标注。 */
|
|
2
|
+
export type PreviewDrawTool = 'select' | 'rectangle' | 'line' | 'path';
|
|
3
|
+
/** 会实际生成标注图形的工具。 */
|
|
4
|
+
export type PreviewAnnotationTool = Exclude<PreviewDrawTool, 'select'>;
|
|
5
|
+
/** 矩形和直线支持的 SVG 描边样式。 */
|
|
6
|
+
export type PreviewStrokeStyle = 'solid' | 'dashed' | 'wavy';
|
|
7
|
+
/** 相对文档页面左上角的归一化坐标,取值范围为 0–1。 */
|
|
8
|
+
export interface PreviewPoint {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}
|
|
12
|
+
/** 保存标注时的页面宽度和四边边距,单位均为 px。 */
|
|
13
|
+
export interface PreviewPageSettings {
|
|
14
|
+
width: number;
|
|
15
|
+
margin: {
|
|
16
|
+
left: number;
|
|
17
|
+
right: number;
|
|
18
|
+
top: number;
|
|
19
|
+
bottom: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 单条标注的持久化结构。
|
|
24
|
+
* 该对象只依赖归一化坐标,不保存屏幕位置,因此可跨滚动、缩放和窗口尺寸恢复。
|
|
25
|
+
*/
|
|
26
|
+
export interface PreviewAnnotation {
|
|
27
|
+
id: string;
|
|
28
|
+
tool: PreviewAnnotationTool;
|
|
29
|
+
points: PreviewPoint[];
|
|
30
|
+
closed: boolean;
|
|
31
|
+
strokeStyle: PreviewStrokeStyle;
|
|
32
|
+
color: string;
|
|
33
|
+
strokeWidth: number;
|
|
34
|
+
}
|
|
35
|
+
/** 绘制层向工具栏回传的运行时状态。 */
|
|
36
|
+
export interface PreviewDrawingState {
|
|
37
|
+
annotations: PreviewAnnotation[];
|
|
38
|
+
canUndo: boolean;
|
|
39
|
+
selectedId: string | null;
|
|
40
|
+
}
|
|
41
|
+
/** 保存到业务系统的版本化快照,后续结构升级可通过 version 做迁移。 */
|
|
42
|
+
export interface PreviewAnnotationSnapshot {
|
|
43
|
+
version: 1;
|
|
44
|
+
page?: PreviewPageSettings;
|
|
45
|
+
annotations: PreviewAnnotation[];
|
|
46
|
+
}
|
|
47
|
+
/** 保存按钮和业务回调共用的快照处理器。 */
|
|
48
|
+
export type PreviewAnnotationsSaveHandler = (snapshot: PreviewAnnotationSnapshot) => void | Promise<void>;
|
|
@@ -1,27 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
type CountdownAttach = string | ((triggerNode?: HTMLElement) => HTMLElement | Element | Document);
|
|
3
|
+
declare var __VLS_9: {};
|
|
2
4
|
type __VLS_Slots = {} & {
|
|
3
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_9) => any;
|
|
4
6
|
};
|
|
5
7
|
declare const __VLS_base: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
6
8
|
visible: {
|
|
7
9
|
type: BooleanConstructor;
|
|
8
|
-
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
attach: {
|
|
13
|
+
type: PropType<CountdownAttach>;
|
|
14
|
+
default: any;
|
|
9
15
|
};
|
|
10
16
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
17
|
close: (...args: any[]) => void;
|
|
12
18
|
"countdown-change": (...args: any[]) => void;
|
|
13
|
-
"exit-
|
|
19
|
+
"exit-preview": (...args: any[]) => void;
|
|
20
|
+
"visible-change": (...args: any[]) => void;
|
|
14
21
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
22
|
visible: {
|
|
16
23
|
type: BooleanConstructor;
|
|
17
|
-
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
attach: {
|
|
27
|
+
type: PropType<CountdownAttach>;
|
|
28
|
+
default: any;
|
|
18
29
|
};
|
|
19
30
|
}>> & Readonly<{
|
|
20
31
|
onClose?: (...args: any[]) => any;
|
|
21
32
|
"onCountdown-change"?: (...args: any[]) => any;
|
|
22
|
-
"onExit-
|
|
33
|
+
"onExit-preview"?: (...args: any[]) => any;
|
|
34
|
+
"onVisible-change"?: (...args: any[]) => any;
|
|
23
35
|
}>, {
|
|
24
|
-
|
|
36
|
+
attach: CountdownAttach;
|
|
25
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
39
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import type { PropType } from
|
|
2
|
-
declare var
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
declare var __VLS_172: {
|
|
3
3
|
toolbarMode: string;
|
|
4
|
-
},
|
|
4
|
+
}, __VLS_274: {
|
|
5
5
|
toolbarMode: string;
|
|
6
|
-
},
|
|
6
|
+
}, __VLS_386: {
|
|
7
7
|
toolbarMode: string;
|
|
8
|
-
},
|
|
8
|
+
}, __VLS_443: {
|
|
9
9
|
toolbarMode: string;
|
|
10
|
-
},
|
|
10
|
+
}, __VLS_490: {
|
|
11
11
|
toolbarMode: string;
|
|
12
|
-
},
|
|
12
|
+
}, __VLS_492: {
|
|
13
13
|
toolbarMode: string;
|
|
14
14
|
};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
|
-
toolbar_base?: (props: typeof
|
|
16
|
+
toolbar_base?: (props: typeof __VLS_172) => any;
|
|
17
17
|
} & {
|
|
18
|
-
toolbar_insert?: (props: typeof
|
|
18
|
+
toolbar_insert?: (props: typeof __VLS_274) => any;
|
|
19
19
|
} & {
|
|
20
|
-
toolbar_table?: (props: typeof
|
|
20
|
+
toolbar_table?: (props: typeof __VLS_386) => any;
|
|
21
21
|
} & {
|
|
22
|
-
toolbar_tools?: (props: typeof
|
|
22
|
+
toolbar_tools?: (props: typeof __VLS_443) => any;
|
|
23
23
|
} & {
|
|
24
|
-
toolbar_view?: (props: typeof
|
|
24
|
+
toolbar_view?: (props: typeof __VLS_490) => any;
|
|
25
25
|
} & {
|
|
26
|
-
toolbar_copyediting?: (props: typeof
|
|
26
|
+
toolbar_copyediting?: (props: typeof __VLS_492) => any;
|
|
27
27
|
};
|
|
28
28
|
declare const __VLS_base: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
29
29
|
menus: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { PropType } from
|
|
2
|
-
declare var
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
declare var __VLS_173: {
|
|
3
3
|
toolbarMode: string;
|
|
4
|
-
},
|
|
4
|
+
}, __VLS_275: {
|
|
5
5
|
toolbarMode: string;
|
|
6
|
-
},
|
|
6
|
+
}, __VLS_387: {
|
|
7
7
|
toolbarMode: string;
|
|
8
8
|
}, __VLS_444: {
|
|
9
9
|
toolbarMode: string;
|
|
@@ -13,11 +13,11 @@ declare var __VLS_178: {
|
|
|
13
13
|
toolbarMode: string;
|
|
14
14
|
};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
|
-
toolbar_base?: (props: typeof
|
|
16
|
+
toolbar_base?: (props: typeof __VLS_173) => any;
|
|
17
17
|
} & {
|
|
18
|
-
toolbar_insert?: (props: typeof
|
|
18
|
+
toolbar_insert?: (props: typeof __VLS_275) => any;
|
|
19
19
|
} & {
|
|
20
|
-
toolbar_table?: (props: typeof
|
|
20
|
+
toolbar_table?: (props: typeof __VLS_387) => any;
|
|
21
21
|
} & {
|
|
22
22
|
toolbar_tools?: (props: typeof __VLS_444) => any;
|
|
23
23
|
} & {
|
|
@@ -395,6 +395,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
395
395
|
placeholder: string;
|
|
396
396
|
};
|
|
397
397
|
footnote: string;
|
|
398
|
+
insertFootnote: string;
|
|
399
|
+
deleteFootnote: string;
|
|
398
400
|
prompt: {
|
|
399
401
|
text: string;
|
|
400
402
|
title: string;
|
|
@@ -735,6 +737,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
735
737
|
"bubble-note": {
|
|
736
738
|
title: string;
|
|
737
739
|
note: string;
|
|
740
|
+
"note-title": string;
|
|
741
|
+
"note-title-color": string;
|
|
742
|
+
"note-title-placeholder": string;
|
|
738
743
|
annotation: string;
|
|
739
744
|
"line-color": string;
|
|
740
745
|
"line-type": string;
|
|
@@ -746,6 +751,23 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
746
751
|
wavy: string;
|
|
747
752
|
};
|
|
748
753
|
placeholder: string;
|
|
754
|
+
"selection-required-error": string;
|
|
755
|
+
"non-text-content-error": string;
|
|
756
|
+
"cross-paragraph-error": string;
|
|
757
|
+
"max-length-error": string;
|
|
758
|
+
"already-exists-error": string;
|
|
759
|
+
"reference-link": string;
|
|
760
|
+
"reference-link-placeholder": string;
|
|
761
|
+
"invalid-reference-link": string;
|
|
762
|
+
"reference-icon": string;
|
|
763
|
+
"reference-icon-builtin": string;
|
|
764
|
+
"reference-icon-upload": string;
|
|
765
|
+
"reference-icon-placeholder": string;
|
|
766
|
+
"reference-icon-invalid": string;
|
|
767
|
+
"reference-icon-upload-failed": string;
|
|
768
|
+
edit: string;
|
|
769
|
+
delete: string;
|
|
770
|
+
"open-reference": string;
|
|
749
771
|
cancel: string;
|
|
750
772
|
confirm: string;
|
|
751
773
|
};
|
|
@@ -1035,10 +1057,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1035
1057
|
hide: string;
|
|
1036
1058
|
empty: string;
|
|
1037
1059
|
};
|
|
1038
|
-
spellcheck: {
|
|
1039
|
-
enable: string;
|
|
1040
|
-
disable: string;
|
|
1041
|
-
};
|
|
1042
1060
|
shortcut: {
|
|
1043
1061
|
title: string;
|
|
1044
1062
|
text: string;
|
|
@@ -1089,6 +1107,45 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1089
1107
|
preview: {
|
|
1090
1108
|
title: string;
|
|
1091
1109
|
disable: string;
|
|
1110
|
+
drawing: {
|
|
1111
|
+
title: string;
|
|
1112
|
+
hiddenTitle: string;
|
|
1113
|
+
tools: {
|
|
1114
|
+
title: string;
|
|
1115
|
+
rectangle: string;
|
|
1116
|
+
line: string;
|
|
1117
|
+
path: string;
|
|
1118
|
+
};
|
|
1119
|
+
color: {
|
|
1120
|
+
title: string;
|
|
1121
|
+
custom: string;
|
|
1122
|
+
};
|
|
1123
|
+
width: {
|
|
1124
|
+
title: string;
|
|
1125
|
+
thin: string;
|
|
1126
|
+
default: string;
|
|
1127
|
+
thick: string;
|
|
1128
|
+
extraThick: string;
|
|
1129
|
+
};
|
|
1130
|
+
strokeStyles: {
|
|
1131
|
+
title: string;
|
|
1132
|
+
solid: string;
|
|
1133
|
+
dashed: string;
|
|
1134
|
+
wavy: string;
|
|
1135
|
+
};
|
|
1136
|
+
select: string;
|
|
1137
|
+
deleteSelected: string;
|
|
1138
|
+
undo: string;
|
|
1139
|
+
save: string;
|
|
1140
|
+
saving: string;
|
|
1141
|
+
saved: string;
|
|
1142
|
+
hideAnnotations: string;
|
|
1143
|
+
showAnnotations: string;
|
|
1144
|
+
restorePage: string;
|
|
1145
|
+
clearAll: string;
|
|
1146
|
+
confirmClear: string;
|
|
1147
|
+
count: string;
|
|
1148
|
+
};
|
|
1092
1149
|
countdown: {
|
|
1093
1150
|
title: string;
|
|
1094
1151
|
select: string;
|
|
@@ -1113,6 +1170,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1113
1170
|
remaining: string;
|
|
1114
1171
|
};
|
|
1115
1172
|
laserPointer: string;
|
|
1173
|
+
hideToolbar: string;
|
|
1116
1174
|
};
|
|
1117
1175
|
fullscreen: {
|
|
1118
1176
|
title: string;
|
|
@@ -1597,6 +1655,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1597
1655
|
placeholder: string;
|
|
1598
1656
|
};
|
|
1599
1657
|
footnote: string;
|
|
1658
|
+
insertFootnote: string;
|
|
1659
|
+
deleteFootnote: string;
|
|
1600
1660
|
prompt: {
|
|
1601
1661
|
text: string;
|
|
1602
1662
|
title: string;
|
|
@@ -1952,6 +2012,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1952
2012
|
"bubble-note": {
|
|
1953
2013
|
title: string;
|
|
1954
2014
|
note: string;
|
|
2015
|
+
"note-title": string;
|
|
2016
|
+
"note-title-color": string;
|
|
2017
|
+
"note-title-placeholder": string;
|
|
1955
2018
|
annotation: string;
|
|
1956
2019
|
"line-color": string;
|
|
1957
2020
|
"line-type": string;
|
|
@@ -1963,6 +2026,23 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1963
2026
|
wavy: string;
|
|
1964
2027
|
};
|
|
1965
2028
|
placeholder: string;
|
|
2029
|
+
"selection-required-error": string;
|
|
2030
|
+
"non-text-content-error": string;
|
|
2031
|
+
"cross-paragraph-error": string;
|
|
2032
|
+
"max-length-error": string;
|
|
2033
|
+
"already-exists-error": string;
|
|
2034
|
+
"reference-link": string;
|
|
2035
|
+
"reference-link-placeholder": string;
|
|
2036
|
+
"invalid-reference-link": string;
|
|
2037
|
+
"reference-icon": string;
|
|
2038
|
+
"reference-icon-builtin": string;
|
|
2039
|
+
"reference-icon-upload": string;
|
|
2040
|
+
"reference-icon-placeholder": string;
|
|
2041
|
+
"reference-icon-invalid": string;
|
|
2042
|
+
"reference-icon-upload-failed": string;
|
|
2043
|
+
edit: string;
|
|
2044
|
+
delete: string;
|
|
2045
|
+
"open-reference": string;
|
|
1966
2046
|
cancel: string;
|
|
1967
2047
|
confirm: string;
|
|
1968
2048
|
};
|
|
@@ -2242,10 +2322,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2242
2322
|
hide: string;
|
|
2243
2323
|
empty: string;
|
|
2244
2324
|
};
|
|
2245
|
-
spellcheck: {
|
|
2246
|
-
enable: string;
|
|
2247
|
-
disable: string;
|
|
2248
|
-
};
|
|
2249
2325
|
shortcut: {
|
|
2250
2326
|
title: string;
|
|
2251
2327
|
text: string;
|
|
@@ -2296,6 +2372,45 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2296
2372
|
preview: {
|
|
2297
2373
|
title: string;
|
|
2298
2374
|
disable: string;
|
|
2375
|
+
drawing: {
|
|
2376
|
+
title: string;
|
|
2377
|
+
hiddenTitle: string;
|
|
2378
|
+
tools: {
|
|
2379
|
+
title: string;
|
|
2380
|
+
rectangle: string;
|
|
2381
|
+
line: string;
|
|
2382
|
+
path: string;
|
|
2383
|
+
};
|
|
2384
|
+
color: {
|
|
2385
|
+
title: string;
|
|
2386
|
+
custom: string;
|
|
2387
|
+
};
|
|
2388
|
+
width: {
|
|
2389
|
+
title: string;
|
|
2390
|
+
thin: string;
|
|
2391
|
+
default: string;
|
|
2392
|
+
thick: string;
|
|
2393
|
+
extraThick: string;
|
|
2394
|
+
};
|
|
2395
|
+
strokeStyles: {
|
|
2396
|
+
title: string;
|
|
2397
|
+
solid: string;
|
|
2398
|
+
dashed: string;
|
|
2399
|
+
wavy: string;
|
|
2400
|
+
};
|
|
2401
|
+
select: string;
|
|
2402
|
+
deleteSelected: string;
|
|
2403
|
+
undo: string;
|
|
2404
|
+
save: string;
|
|
2405
|
+
saving: string;
|
|
2406
|
+
saved: string;
|
|
2407
|
+
hideAnnotations: string;
|
|
2408
|
+
showAnnotations: string;
|
|
2409
|
+
restorePage: string;
|
|
2410
|
+
clearAll: string;
|
|
2411
|
+
confirmClear: string;
|
|
2412
|
+
count: string;
|
|
2413
|
+
};
|
|
2299
2414
|
countdown: {
|
|
2300
2415
|
title: string;
|
|
2301
2416
|
select: string;
|
|
@@ -2320,6 +2435,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2320
2435
|
remaining: string;
|
|
2321
2436
|
};
|
|
2322
2437
|
laserPointer: string;
|
|
2438
|
+
hideToolbar: string;
|
|
2323
2439
|
};
|
|
2324
2440
|
fullscreen: {
|
|
2325
2441
|
title: string;
|
|
@@ -2791,6 +2907,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2791
2907
|
placeholder: string;
|
|
2792
2908
|
};
|
|
2793
2909
|
footnote: string;
|
|
2910
|
+
insertFootnote: string;
|
|
2911
|
+
deleteFootnote: string;
|
|
2794
2912
|
prompt: {
|
|
2795
2913
|
text: string;
|
|
2796
2914
|
title: string;
|
|
@@ -3146,6 +3264,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3146
3264
|
"bubble-note": {
|
|
3147
3265
|
title: string;
|
|
3148
3266
|
note: string;
|
|
3267
|
+
"note-title": string;
|
|
3268
|
+
"note-title-color": string;
|
|
3269
|
+
"note-title-placeholder": string;
|
|
3149
3270
|
annotation: string;
|
|
3150
3271
|
"line-color": string;
|
|
3151
3272
|
"line-type": string;
|
|
@@ -3157,6 +3278,23 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3157
3278
|
wavy: string;
|
|
3158
3279
|
};
|
|
3159
3280
|
placeholder: string;
|
|
3281
|
+
"selection-required-error": string;
|
|
3282
|
+
"non-text-content-error": string;
|
|
3283
|
+
"cross-paragraph-error": string;
|
|
3284
|
+
"max-length-error": string;
|
|
3285
|
+
"already-exists-error": string;
|
|
3286
|
+
"reference-link": string;
|
|
3287
|
+
"reference-link-placeholder": string;
|
|
3288
|
+
"invalid-reference-link": string;
|
|
3289
|
+
"reference-icon": string;
|
|
3290
|
+
"reference-icon-builtin": string;
|
|
3291
|
+
"reference-icon-upload": string;
|
|
3292
|
+
"reference-icon-placeholder": string;
|
|
3293
|
+
"reference-icon-invalid": string;
|
|
3294
|
+
"reference-icon-upload-failed": string;
|
|
3295
|
+
edit: string;
|
|
3296
|
+
delete: string;
|
|
3297
|
+
"open-reference": string;
|
|
3160
3298
|
cancel: string;
|
|
3161
3299
|
confirm: string;
|
|
3162
3300
|
};
|
|
@@ -3436,10 +3574,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3436
3574
|
hide: string;
|
|
3437
3575
|
empty: string;
|
|
3438
3576
|
};
|
|
3439
|
-
spellcheck: {
|
|
3440
|
-
enable: string;
|
|
3441
|
-
disable: string;
|
|
3442
|
-
};
|
|
3443
3577
|
shortcut: {
|
|
3444
3578
|
title: string;
|
|
3445
3579
|
text: string;
|
|
@@ -3490,6 +3624,45 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3490
3624
|
preview: {
|
|
3491
3625
|
title: string;
|
|
3492
3626
|
disable: string;
|
|
3627
|
+
drawing: {
|
|
3628
|
+
title: string;
|
|
3629
|
+
hiddenTitle: string;
|
|
3630
|
+
tools: {
|
|
3631
|
+
title: string;
|
|
3632
|
+
rectangle: string;
|
|
3633
|
+
line: string;
|
|
3634
|
+
path: string;
|
|
3635
|
+
};
|
|
3636
|
+
color: {
|
|
3637
|
+
title: string;
|
|
3638
|
+
custom: string;
|
|
3639
|
+
};
|
|
3640
|
+
width: {
|
|
3641
|
+
title: string;
|
|
3642
|
+
thin: string;
|
|
3643
|
+
default: string;
|
|
3644
|
+
thick: string;
|
|
3645
|
+
extraThick: string;
|
|
3646
|
+
};
|
|
3647
|
+
strokeStyles: {
|
|
3648
|
+
title: string;
|
|
3649
|
+
solid: string;
|
|
3650
|
+
dashed: string;
|
|
3651
|
+
wavy: string;
|
|
3652
|
+
};
|
|
3653
|
+
select: string;
|
|
3654
|
+
deleteSelected: string;
|
|
3655
|
+
undo: string;
|
|
3656
|
+
save: string;
|
|
3657
|
+
saving: string;
|
|
3658
|
+
saved: string;
|
|
3659
|
+
hideAnnotations: string;
|
|
3660
|
+
showAnnotations: string;
|
|
3661
|
+
restorePage: string;
|
|
3662
|
+
clearAll: string;
|
|
3663
|
+
confirmClear: string;
|
|
3664
|
+
count: string;
|
|
3665
|
+
};
|
|
3493
3666
|
countdown: {
|
|
3494
3667
|
title: string;
|
|
3495
3668
|
select: string;
|
|
@@ -3514,6 +3687,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3514
3687
|
remaining: string;
|
|
3515
3688
|
};
|
|
3516
3689
|
laserPointer: string;
|
|
3690
|
+
hideToolbar: string;
|
|
3517
3691
|
};
|
|
3518
3692
|
fullscreen: {
|
|
3519
3693
|
title: string;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { Mark } from '@tiptap/core';
|
|
2
|
+
export declare const normalizeBubbleNoteLineType: (value: any) => any;
|
|
3
|
+
export declare const normalizeBubbleNoteLineColor: (value: any) => string;
|
|
4
|
+
export declare const normalizeBubbleNoteReferenceUrl: (value: any) => string;
|
|
2
5
|
declare const _default: Mark<any, any>;
|
|
3
6
|
export default _default;
|