@vue-pdf-viewer/shared 0.0.0-experimental.1 → 0.0.0-experimental.11
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/enumerators.d.ts +8 -0
- package/dist/enumerators.js +9 -0
- package/dist/locales/en_US.json +2 -0
- package/dist/locales/it_IT.json +2 -0
- package/dist/locales/pt_PT.json +2 -0
- package/dist/locales/th_TH.json +4 -2
- package/dist/locales/zh_CN.json +2 -0
- package/dist/types.d.ts +4 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -3
- package/package.json +4 -1
package/dist/enumerators.d.ts
CHANGED
|
@@ -3,3 +3,11 @@ export declare enum EventAnnotation {
|
|
|
3
3
|
freeText = "vpv:annotation:freeText",
|
|
4
4
|
signature = "vpv:annotation:signature"
|
|
5
5
|
}
|
|
6
|
+
export declare enum HighlightColor {
|
|
7
|
+
Purple = "#7862FF",
|
|
8
|
+
Cyan = "#3FE9E3",
|
|
9
|
+
Red = "#F87777",
|
|
10
|
+
Orange = "#FE9639",
|
|
11
|
+
Yellow = "#FBDA15",
|
|
12
|
+
Green = "#88F526"
|
|
13
|
+
}
|
package/dist/enumerators.js
CHANGED
|
@@ -4,3 +4,12 @@ export var EventAnnotation;
|
|
|
4
4
|
EventAnnotation["freeText"] = "vpv:annotation:freeText";
|
|
5
5
|
EventAnnotation["signature"] = "vpv:annotation:signature";
|
|
6
6
|
})(EventAnnotation || (EventAnnotation = {}));
|
|
7
|
+
export var HighlightColor;
|
|
8
|
+
(function (HighlightColor) {
|
|
9
|
+
HighlightColor["Purple"] = "#7862FF";
|
|
10
|
+
HighlightColor["Cyan"] = "#3FE9E3";
|
|
11
|
+
HighlightColor["Red"] = "#F87777";
|
|
12
|
+
HighlightColor["Orange"] = "#FE9639";
|
|
13
|
+
HighlightColor["Yellow"] = "#FBDA15";
|
|
14
|
+
HighlightColor["Green"] = "#88F526";
|
|
15
|
+
})(HighlightColor || (HighlightColor = {}));
|
package/dist/locales/en_US.json
CHANGED
|
@@ -83,6 +83,8 @@
|
|
|
83
83
|
"annotationToggleHideTooltip": "Hide annotation tools",
|
|
84
84
|
"annotationHighlightLabel": "Highlight",
|
|
85
85
|
"annotationHighlightTooltip": "Highlight",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "Highlight color",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "Delete highlight",
|
|
86
88
|
"annotationFreeTextLabel": "Free text",
|
|
87
89
|
"annotationFreeTextTooltip": "Free text",
|
|
88
90
|
"annotationSignatureLabel": "Signature",
|
package/dist/locales/it_IT.json
CHANGED
|
@@ -83,6 +83,8 @@
|
|
|
83
83
|
"annotationToggleHideTooltip": "Nascondi strumenti annotazione",
|
|
84
84
|
"annotationHighlightLabel": "Evidenzia",
|
|
85
85
|
"annotationHighlightTooltip": "Evidenzia",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "Colore evidenziazione",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "Elimina evidenziazione",
|
|
86
88
|
"annotationFreeTextLabel": "Testo libero",
|
|
87
89
|
"annotationFreeTextTooltip": "Testo libero",
|
|
88
90
|
"annotationSignatureLabel": "Firma",
|
package/dist/locales/pt_PT.json
CHANGED
|
@@ -83,6 +83,8 @@
|
|
|
83
83
|
"annotationToggleHideTooltip": "Ocultar ferramentas de anotação",
|
|
84
84
|
"annotationHighlightLabel": "Destacar",
|
|
85
85
|
"annotationHighlightTooltip": "Destacar",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "Cor de destaque",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "Excluir destaque",
|
|
86
88
|
"annotationFreeTextLabel": "Texto livre",
|
|
87
89
|
"annotationFreeTextTooltip": "Texto livre",
|
|
88
90
|
"annotationSignatureLabel": "Assinatura",
|
package/dist/locales/th_TH.json
CHANGED
|
@@ -81,8 +81,10 @@
|
|
|
81
81
|
"annotationLabel": "เครื่องมือการออกแบบ",
|
|
82
82
|
"annotationToggleShowTooltip": "แสดงเครื่องมือการออกแบบ",
|
|
83
83
|
"annotationToggleHideTooltip": "ซ่อนเครื่องมือการออกแบบ",
|
|
84
|
-
"annotationHighlightLabel": "
|
|
85
|
-
"annotationHighlightTooltip": "
|
|
84
|
+
"annotationHighlightLabel": "ไฮไลท์",
|
|
85
|
+
"annotationHighlightTooltip": "ไฮไลท์",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "สีไฮไลท์",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "ลบไฮไลท์",
|
|
86
88
|
"annotationFreeTextLabel": "ข้อความ",
|
|
87
89
|
"annotationFreeTextTooltip": "ข้อความ",
|
|
88
90
|
"annotationSignatureLabel": "ลายนิ้วมือ",
|
package/dist/locales/zh_CN.json
CHANGED
|
@@ -83,6 +83,8 @@
|
|
|
83
83
|
"annotationToggleHideTooltip": "隐藏注释工具",
|
|
84
84
|
"annotationHighlightLabel": "高亮",
|
|
85
85
|
"annotationHighlightTooltip": "高亮",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "高亮颜色",
|
|
87
|
+
"annotationHighlightDeleteTooltip": "删除高亮",
|
|
86
88
|
"annotationFreeTextLabel": "自由文本",
|
|
87
89
|
"annotationFreeTextTooltip": "自由文本",
|
|
88
90
|
"annotationSignatureLabel": "签名",
|
package/dist/types.d.ts
CHANGED
|
@@ -84,6 +84,8 @@ export type Localization = {
|
|
|
84
84
|
annotationToggleHideTooltip: string;
|
|
85
85
|
annotationHighlightLabel: string;
|
|
86
86
|
annotationHighlightTooltip: string;
|
|
87
|
+
annotationHighlightColorPickerLabel: string;
|
|
88
|
+
annotationHighlightDeleteTooltip: string;
|
|
87
89
|
annotationFreeTextLabel: string;
|
|
88
90
|
annotationFreeTextTooltip: string;
|
|
89
91
|
annotationSignatureLabel: string;
|
|
@@ -107,6 +109,8 @@ export interface PluginContext {
|
|
|
107
109
|
ui: {
|
|
108
110
|
AppButton?: Component;
|
|
109
111
|
AppTooltip?: Component;
|
|
112
|
+
AppPopover?: Component;
|
|
113
|
+
AppHighlightColorPicker?: Component;
|
|
110
114
|
};
|
|
111
115
|
};
|
|
112
116
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EventAnnotation } from "./enumerators";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const getEventName: (instanceId: number, event: EventAnnotation) => string;
|
package/dist/utils.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
return `${
|
|
3
|
-
}
|
|
1
|
+
export const getEventName = (instanceId, event) => {
|
|
2
|
+
return `${instanceId}-${event}`;
|
|
3
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-pdf-viewer/shared",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.0-experimental.
|
|
4
|
+
"version": "0.0.0-experimental.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
+
"version:prerelease": "npm version prerelease",
|
|
20
|
+
"prepublishOnly": "tsc",
|
|
21
|
+
"publish:experimental": "npm run version:prerelease && npm publish --tag=experimental",
|
|
19
22
|
"build": "tsc",
|
|
20
23
|
"dev": "tsc --watch"
|
|
21
24
|
},
|