@vue-pdf-viewer/shared 0.0.0-experimental.9 → 1.0.0-alpha.2
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/const.d.ts +3 -0
- package/dist/const.js +4 -0
- package/dist/enumerators.d.ts +3 -2
- package/dist/enumerators.js +10 -9
- package/dist/locales/en_US.json +9 -1
- package/dist/locales/it_IT.json +9 -1
- package/dist/locales/pt_PT.json +9 -1
- package/dist/locales/th_TH.json +11 -3
- package/dist/locales/zh_CN.json +11 -3
- package/dist/types.d.ts +11 -0
- package/package.json +4 -3
package/dist/const.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { InjectionKey, Reactive, ComputedRef } from "vue";
|
|
2
2
|
import type { LocaleKey, Localization, PluginContext } from "./index";
|
|
3
3
|
import { EventAnnotation } from "./enumerators";
|
|
4
|
+
export declare const PLUGIN_ID: {
|
|
5
|
+
ANNOTATIONS: string;
|
|
6
|
+
};
|
|
4
7
|
export declare const Locales: Record<LocaleKey, Localization>;
|
|
5
8
|
export declare const SHARED_UI_SYMBOL: InjectionKey<Reactive<PluginContext["shared"]["ui"]>>;
|
|
6
9
|
export declare const LOCALIZATION_SYMBOL: InjectionKey<ComputedRef<Localization> | undefined>;
|
package/dist/const.js
CHANGED
|
@@ -4,6 +4,10 @@ import cn from "./locales/zh_CN.json";
|
|
|
4
4
|
import it from "./locales/it_IT.json";
|
|
5
5
|
import pt from "./locales/pt_PT.json";
|
|
6
6
|
import th from "./locales/th_TH.json";
|
|
7
|
+
export const PLUGIN_ID = {
|
|
8
|
+
ANNOTATIONS: "annotations",
|
|
9
|
+
// ... other plugin ids
|
|
10
|
+
};
|
|
7
11
|
export const Locales = {
|
|
8
12
|
en_US: en,
|
|
9
13
|
zh_CN: cn,
|
package/dist/enumerators.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare enum EventAnnotation {
|
|
2
2
|
highlight = "vpv:annotation:highlight",
|
|
3
3
|
freeText = "vpv:annotation:freeText",
|
|
4
|
-
signature = "vpv:annotation:signature"
|
|
4
|
+
signature = "vpv:annotation:signature",
|
|
5
|
+
image = "vpv:annotation:image"
|
|
5
6
|
}
|
|
6
|
-
export declare enum
|
|
7
|
+
export declare enum DefaultHighlightColor {
|
|
7
8
|
Purple = "#7862FF",
|
|
8
9
|
Cyan = "#3FE9E3",
|
|
9
10
|
Red = "#F87777",
|
package/dist/enumerators.js
CHANGED
|
@@ -3,13 +3,14 @@ export var EventAnnotation;
|
|
|
3
3
|
EventAnnotation["highlight"] = "vpv:annotation:highlight";
|
|
4
4
|
EventAnnotation["freeText"] = "vpv:annotation:freeText";
|
|
5
5
|
EventAnnotation["signature"] = "vpv:annotation:signature";
|
|
6
|
+
EventAnnotation["image"] = "vpv:annotation:image";
|
|
6
7
|
})(EventAnnotation || (EventAnnotation = {}));
|
|
7
|
-
export var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})(
|
|
8
|
+
export var DefaultHighlightColor;
|
|
9
|
+
(function (DefaultHighlightColor) {
|
|
10
|
+
DefaultHighlightColor["Purple"] = "#7862FF";
|
|
11
|
+
DefaultHighlightColor["Cyan"] = "#3FE9E3";
|
|
12
|
+
DefaultHighlightColor["Red"] = "#F87777";
|
|
13
|
+
DefaultHighlightColor["Orange"] = "#FE9639";
|
|
14
|
+
DefaultHighlightColor["Yellow"] = "#FBDA15";
|
|
15
|
+
DefaultHighlightColor["Green"] = "#88F526";
|
|
16
|
+
})(DefaultHighlightColor || (DefaultHighlightColor = {}));
|
package/dist/locales/en_US.json
CHANGED
|
@@ -84,10 +84,18 @@
|
|
|
84
84
|
"annotationHighlightLabel": "Highlight",
|
|
85
85
|
"annotationHighlightTooltip": "Highlight",
|
|
86
86
|
"annotationHighlightColorPickerLabel": "Highlight color",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "Delete highlight",
|
|
87
88
|
"annotationFreeTextLabel": "Free text",
|
|
88
89
|
"annotationFreeTextTooltip": "Free text",
|
|
90
|
+
"annotationFreeTextDeleteTooltip": "Delete free text",
|
|
89
91
|
"annotationSignatureLabel": "Signature",
|
|
90
92
|
"annotationSignatureTooltip": "Signature",
|
|
93
|
+
"annotationSignatureAddLabel": "Add new signature",
|
|
94
|
+
"annotationSignatureAddTooltip": "Add new signature",
|
|
91
95
|
"annotationCommentLabel": "Comment",
|
|
92
|
-
"annotationCommentTooltip": "Comment"
|
|
96
|
+
"annotationCommentTooltip": "Comment",
|
|
97
|
+
"annotationImageLabel": "Image",
|
|
98
|
+
"annotationImageTooltip": "Add image",
|
|
99
|
+
"annotationImageUnsupportedFileMessage": "Unsupported file type",
|
|
100
|
+
"annotationImageDeleteTooltip": "Delete image"
|
|
93
101
|
}
|
package/dist/locales/it_IT.json
CHANGED
|
@@ -84,10 +84,18 @@
|
|
|
84
84
|
"annotationHighlightLabel": "Evidenzia",
|
|
85
85
|
"annotationHighlightTooltip": "Evidenzia",
|
|
86
86
|
"annotationHighlightColorPickerLabel": "Colore evidenziazione",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "Elimina evidenziazione",
|
|
87
88
|
"annotationFreeTextLabel": "Testo libero",
|
|
88
89
|
"annotationFreeTextTooltip": "Testo libero",
|
|
90
|
+
"annotationFreeTextDeleteTooltip": "Elimina testo libero",
|
|
89
91
|
"annotationSignatureLabel": "Firma",
|
|
90
92
|
"annotationSignatureTooltip": "Firma",
|
|
93
|
+
"annotationSignatureAddLabel": "Aggiungi nuova firma",
|
|
94
|
+
"annotationSignatureAddTooltip": "Aggiungi nuova firma",
|
|
91
95
|
"annotationCommentLabel": "Commento",
|
|
92
|
-
"annotationCommentTooltip": "Commento"
|
|
96
|
+
"annotationCommentTooltip": "Commento",
|
|
97
|
+
"annotationImageLabel": "Immagine",
|
|
98
|
+
"annotationImageTooltip": "Aggiungi immagine",
|
|
99
|
+
"annotationImageUnsupportedFileMessage": "Tipo di file non supportato",
|
|
100
|
+
"annotationImageDeleteTooltip": "Elimina immagine"
|
|
93
101
|
}
|
package/dist/locales/pt_PT.json
CHANGED
|
@@ -84,10 +84,18 @@
|
|
|
84
84
|
"annotationHighlightLabel": "Destacar",
|
|
85
85
|
"annotationHighlightTooltip": "Destacar",
|
|
86
86
|
"annotationHighlightColorPickerLabel": "Cor de destaque",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "Excluir destaque",
|
|
87
88
|
"annotationFreeTextLabel": "Texto livre",
|
|
88
89
|
"annotationFreeTextTooltip": "Texto livre",
|
|
90
|
+
"annotationFreeTextDeleteTooltip": "Excluir texto livre",
|
|
89
91
|
"annotationSignatureLabel": "Assinatura",
|
|
90
92
|
"annotationSignatureTooltip": "Assinatura",
|
|
93
|
+
"annotationSignatureAddLabel": "Adicionar nova assinatura",
|
|
94
|
+
"annotationSignatureAddTooltip": "Adicionar nova assinatura",
|
|
91
95
|
"annotationCommentLabel": "Comentário",
|
|
92
|
-
"annotationCommentTooltip": "Comentário"
|
|
96
|
+
"annotationCommentTooltip": "Comentário",
|
|
97
|
+
"annotationImageLabel": "Imagem",
|
|
98
|
+
"annotationImageTooltip": "Adicionar imagem",
|
|
99
|
+
"annotationImageUnsupportedFileMessage": "Tipo de arquivo não suportado",
|
|
100
|
+
"annotationImageDeleteTooltip": "Excluir imagem"
|
|
93
101
|
}
|
package/dist/locales/th_TH.json
CHANGED
|
@@ -84,10 +84,18 @@
|
|
|
84
84
|
"annotationHighlightLabel": "ไฮไลท์",
|
|
85
85
|
"annotationHighlightTooltip": "ไฮไลท์",
|
|
86
86
|
"annotationHighlightColorPickerLabel": "สีไฮไลท์",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "ลบไฮไลท์",
|
|
87
88
|
"annotationFreeTextLabel": "ข้อความ",
|
|
88
89
|
"annotationFreeTextTooltip": "ข้อความ",
|
|
89
|
-
"
|
|
90
|
-
"
|
|
90
|
+
"annotationFreeTextDeleteTooltip": "ลบข้อความ",
|
|
91
|
+
"annotationSignatureLabel": "ลายเซ็น",
|
|
92
|
+
"annotationSignatureTooltip": "ลายเซ็น",
|
|
93
|
+
"annotationSignatureAddLabel": "เพิ่มลายเซ็นใหม่",
|
|
94
|
+
"annotationSignatureAddTooltip": "เพิ่มลายเซ็นใหม่",
|
|
91
95
|
"annotationCommentLabel": "ความคิดเห็น",
|
|
92
|
-
"annotationCommentTooltip": "ความคิดเห็น"
|
|
96
|
+
"annotationCommentTooltip": "ความคิดเห็น",
|
|
97
|
+
"annotationImageLabel": "รูปภาพ",
|
|
98
|
+
"annotationImageTooltip": "เพิ่มรูปภาพ",
|
|
99
|
+
"annotationImageUnsupportedFileMessage": "ประเภทไฟล์ไม่รองรับ",
|
|
100
|
+
"annotationImageDeleteTooltip": "ลบรูปภาพ"
|
|
93
101
|
}
|
package/dist/locales/zh_CN.json
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"previousPageTooltip": "上一页",
|
|
13
13
|
"currentPageTooltip": "当前页",
|
|
14
14
|
"nextPageTooltip": "下一页",
|
|
15
|
-
"zoomOutTooltip": "
|
|
16
|
-
"zoomInTooltip": "
|
|
15
|
+
"zoomOutTooltip": "缩小",
|
|
16
|
+
"zoomInTooltip": "放大",
|
|
17
17
|
"zoomSelectTooltip": "选择缩放级别",
|
|
18
18
|
"zoomActualSize": "实际大小",
|
|
19
19
|
"zoomPageFit": "适合页面",
|
|
@@ -84,10 +84,18 @@
|
|
|
84
84
|
"annotationHighlightLabel": "高亮",
|
|
85
85
|
"annotationHighlightTooltip": "高亮",
|
|
86
86
|
"annotationHighlightColorPickerLabel": "高亮颜色",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "删除高亮",
|
|
87
88
|
"annotationFreeTextLabel": "自由文本",
|
|
88
89
|
"annotationFreeTextTooltip": "自由文本",
|
|
90
|
+
"annotationFreeTextDeleteTooltip": "删除自由文本",
|
|
89
91
|
"annotationSignatureLabel": "签名",
|
|
90
92
|
"annotationSignatureTooltip": "签名",
|
|
93
|
+
"annotationSignatureAddLabel": "添加新签名",
|
|
94
|
+
"annotationSignatureAddTooltip": "添加新签名",
|
|
91
95
|
"annotationCommentLabel": "注释",
|
|
92
|
-
"annotationCommentTooltip": "注释"
|
|
96
|
+
"annotationCommentTooltip": "注释",
|
|
97
|
+
"annotationImageLabel": "图片",
|
|
98
|
+
"annotationImageTooltip": "添加图片",
|
|
99
|
+
"annotationImageUnsupportedFileMessage": "不支持的文件类型",
|
|
100
|
+
"annotationImageDeleteTooltip": "删除图片"
|
|
93
101
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -85,12 +85,20 @@ export type Localization = {
|
|
|
85
85
|
annotationHighlightLabel: string;
|
|
86
86
|
annotationHighlightTooltip: string;
|
|
87
87
|
annotationHighlightColorPickerLabel: string;
|
|
88
|
+
annotationHighlightDeleteTooltip: string;
|
|
88
89
|
annotationFreeTextLabel: string;
|
|
89
90
|
annotationFreeTextTooltip: string;
|
|
91
|
+
annotationFreeTextDeleteTooltip: string;
|
|
90
92
|
annotationSignatureLabel: string;
|
|
91
93
|
annotationSignatureTooltip: string;
|
|
94
|
+
annotationSignatureAddLabel: string;
|
|
95
|
+
annotationSignatureAddTooltip: string;
|
|
92
96
|
annotationCommentLabel: string;
|
|
93
97
|
annotationCommentTooltip: string;
|
|
98
|
+
annotationImageLabel: string;
|
|
99
|
+
annotationImageTooltip: string;
|
|
100
|
+
annotationImageUnsupportedFileMessage: string;
|
|
101
|
+
annotationImageDeleteTooltip: string;
|
|
94
102
|
};
|
|
95
103
|
export type ToolbarDirection = "top" | "left" | "right";
|
|
96
104
|
export interface PluginItem {
|
|
@@ -110,6 +118,7 @@ export interface PluginContext {
|
|
|
110
118
|
AppTooltip?: Component;
|
|
111
119
|
AppPopover?: Component;
|
|
112
120
|
AppHighlightColorPicker?: Component;
|
|
121
|
+
AppSignatures?: Component;
|
|
113
122
|
};
|
|
114
123
|
};
|
|
115
124
|
}
|
|
@@ -117,3 +126,5 @@ export interface Plugin {
|
|
|
117
126
|
name: string;
|
|
118
127
|
setup: (ctx: PluginContext) => void;
|
|
119
128
|
}
|
|
129
|
+
export type HighlightColors = [string, string, string, string, string, string];
|
|
130
|
+
export type AnnotationHighlightColors = HighlightColors | null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-pdf-viewer/shared",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1.0.0-alpha.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"version:prerelease": "npm version prerelease",
|
|
20
|
+
"prepublishOnly": "tsc",
|
|
21
|
+
"publish:alpha": "npm run version:prerelease && npm publish --tag=alpha",
|
|
21
22
|
"build": "tsc",
|
|
22
23
|
"dev": "tsc --watch"
|
|
23
24
|
},
|