@vue-pdf-viewer/shared 0.0.0-alpha.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 ADDED
@@ -0,0 +1 @@
1
+ This library is for experimental
@@ -0,0 +1,10 @@
1
+ import type { InjectionKey, Reactive, ComputedRef } from "vue";
2
+ import type { LocaleKey, Localization, PluginContext } from "./index";
3
+ import { EventAnnotation } from "./enumerators";
4
+ export declare const PLUGIN_ID: {
5
+ ANNOTATIONS: string;
6
+ };
7
+ export declare const Locales: Record<LocaleKey, Localization>;
8
+ export declare const SHARED_UI_SYMBOL: InjectionKey<Reactive<PluginContext["shared"]["ui"]>>;
9
+ export declare const LOCALIZATION_SYMBOL: InjectionKey<ComputedRef<Localization> | undefined>;
10
+ export declare const EVENT_ANNOTATION: typeof EventAnnotation;
package/dist/const.js ADDED
@@ -0,0 +1,20 @@
1
+ import { EventAnnotation } from "./enumerators";
2
+ import en from "./locales/en_US.json";
3
+ import cn from "./locales/zh_CN.json";
4
+ import it from "./locales/it_IT.json";
5
+ import pt from "./locales/pt_PT.json";
6
+ import th from "./locales/th_TH.json";
7
+ export const PLUGIN_ID = {
8
+ ANNOTATIONS: "annotations",
9
+ // ... other plugin ids
10
+ };
11
+ export const Locales = {
12
+ en_US: en,
13
+ zh_CN: cn,
14
+ it_IT: it,
15
+ pt_PT: pt,
16
+ th_TH: th,
17
+ };
18
+ export const SHARED_UI_SYMBOL = Symbol("VPV Shared UIs");
19
+ export const LOCALIZATION_SYMBOL = Symbol("VPV Current Localization");
20
+ export const EVENT_ANNOTATION = EventAnnotation;
@@ -0,0 +1,14 @@
1
+ export declare enum EventAnnotation {
2
+ highlight = "vpv:annotation:highlight",
3
+ freeText = "vpv:annotation:freeText",
4
+ signature = "vpv:annotation:signature",
5
+ image = "vpv:annotation:image"
6
+ }
7
+ export declare enum DefaultHighlightColor {
8
+ Purple = "#7862FF",
9
+ Cyan = "#3FE9E3",
10
+ Red = "#F87777",
11
+ Orange = "#FE9639",
12
+ Yellow = "#FBDA15",
13
+ Green = "#88F526"
14
+ }
@@ -0,0 +1,16 @@
1
+ export var EventAnnotation;
2
+ (function (EventAnnotation) {
3
+ EventAnnotation["highlight"] = "vpv:annotation:highlight";
4
+ EventAnnotation["freeText"] = "vpv:annotation:freeText";
5
+ EventAnnotation["signature"] = "vpv:annotation:signature";
6
+ EventAnnotation["image"] = "vpv:annotation:image";
7
+ })(EventAnnotation || (EventAnnotation = {}));
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 = {}));
@@ -0,0 +1,4 @@
1
+ export * from "./types";
2
+ export * from "./const";
3
+ export * from "./utils";
4
+ export * from "./enumerators";
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./types";
2
+ export * from "./const";
3
+ export * from "./utils";
4
+ export * from "./enumerators";
@@ -0,0 +1,100 @@
1
+ {
2
+ "searchButtonTooltip": "Search in Document",
3
+ "searchInputPlaceholder": "Enter to search",
4
+ "searchInputTooltip": "Search",
5
+ "searchPrevTooltip": "Previous match",
6
+ "searchNextTooltip": "Next match",
7
+ "searchCloseButtonTooltip": "Close",
8
+ "searchMatchCaseLabel": "Match Case",
9
+ "searchMatchCaseTooltip": "Search case sensitive text",
10
+ "searchWholeWordsLabel": "Whole Words",
11
+ "searchWholeWordsTooltip": "Search exact and case insensitive word(s)",
12
+ "previousPageTooltip": "Previous page",
13
+ "currentPageTooltip": "Current page",
14
+ "nextPageTooltip": "Next page",
15
+ "zoomOutTooltip": "Zoom out",
16
+ "zoomInTooltip": "Zoom in",
17
+ "zoomSelectTooltip": "Select zoom level",
18
+ "zoomActualSize": "Actual size",
19
+ "zoomPageFit": "Page fit",
20
+ "zoomPageWidth": "Page width",
21
+ "themeEnableDarkTooltip": "Enable dark theme",
22
+ "themeEnableLightTooltip": "Enable light theme",
23
+ "openLocalFileLabel": "Open local file",
24
+ "openLocalFileTooltip": "Open local file",
25
+ "downloadFileLabel": "Download file",
26
+ "downloadFileTooltip": "Download file",
27
+ "printLabel": "Print",
28
+ "printTooltip": "Print",
29
+ "printLoadingMessage": "Preparing Document",
30
+ "printCancelLabel": "Cancel",
31
+ "fullScreenLabel": "Full screen",
32
+ "fullScreenTooltip": "Full screen",
33
+ "moreOptionTooltip": "More options",
34
+ "firstPageLabel": "First page",
35
+ "firstPageTooltip": "Go to first page",
36
+ "lastPageLabel": "Last page",
37
+ "lastPageTooltip": "Go to last page",
38
+ "rotateClockwiseLabel": "Rotate clockwise",
39
+ "rotateClockwiseTooltip": "Rotate clockwise",
40
+ "rotateCounterclockwiseLabel": "Rotate counterclockwise",
41
+ "rotateCounterclockwiseTooltip": "Rotate counterclockwise",
42
+ "textSelectionLabel": "Text selection tool",
43
+ "textSelectionTooltip": "Enable text selection tool",
44
+ "handToolLabel": "Hand tool",
45
+ "handToolTooltip": "Enable hand tool",
46
+ "documentPropertiesLabel": "Document properties",
47
+ "documentPropertiesTooltip": "View document properties",
48
+ "pageScrollingLabel": "Page Scrolling",
49
+ "pageScrollingTooltip": "Enable page scrolling",
50
+ "verticalScrollingLabel": "Vertical Scrolling",
51
+ "verticalScrollingTooltip": "Enable vertical scrolling",
52
+ "horizontalLabel": "Horizontal Scrolling",
53
+ "horizontalTooltip": "Enable horizontal scrolling",
54
+ "wrappedScrollingLabel": "Wrapped Scrolling",
55
+ "wrappedScrollingTooltip": "Enable wrapped scrolling",
56
+ "singlePageLabel": "Single Page",
57
+ "singlePageTooltip": "Enable single page view",
58
+ "dualPageLabel": "Dual Page",
59
+ "dualPageTooltip": "Enable dual page view",
60
+ "propertiesFilenameLabel": "File name",
61
+ "propertiesFileSizeLabel": "File size",
62
+ "propertiesTitleLabel": "Title",
63
+ "propertiesAuthorLabel": "Author",
64
+ "propertiesSubjectLabel": "Subject",
65
+ "propertiesKeywordLabel": "Keywords",
66
+ "propertiesCreatorLabel": "Creator",
67
+ "propertiesCreateOnLabel": "Created on",
68
+ "propertiesModifiedOnLabel": "Modified on",
69
+ "propertiesPDFProducerLabel": "PDF producer",
70
+ "propertiesPDFVersionLabel": "PDF version",
71
+ "propertiesPageCountLabel": "Page count",
72
+ "thumbnailTooltip": "Thumbnail",
73
+ "passwordModalTitle": "Password Required",
74
+ "passwordModalMessage": "This document is password protected. Please enter a password to open the file.",
75
+ "passwordPlaceholder": "Enter password",
76
+ "passwordConfirmLabel": "Submit",
77
+ "passwordError": "Incorrect password",
78
+ "dragDropFileMessage": "Drag and drop the PDF file here",
79
+ "commentPanelLabel": "View comment",
80
+ "commentPanelTooltip": "View comment",
81
+ "annotationLabel": "Annotation tools",
82
+ "annotationToggleShowTooltip": "Show annotation tools",
83
+ "annotationToggleHideTooltip": "Hide annotation tools",
84
+ "annotationHighlightLabel": "Highlight",
85
+ "annotationHighlightTooltip": "Highlight",
86
+ "annotationHighlightColorPickerLabel": "Highlight color",
87
+ "annotationHighlightDeleteTooltip": "Delete highlight",
88
+ "annotationFreeTextLabel": "Free text",
89
+ "annotationFreeTextTooltip": "Free text",
90
+ "annotationSignatureLabel": "Signature",
91
+ "annotationSignatureTooltip": "Signature",
92
+ "annotationSignatureAddLabel": "Add new signature",
93
+ "annotationSignatureAddTooltip": "Add new signature",
94
+ "annotationCommentLabel": "Comment",
95
+ "annotationCommentTooltip": "Comment",
96
+ "annotationImageLabel": "Image",
97
+ "annotationImageTooltip": "Add image",
98
+ "annotationImageUnsupportedFileMessage": "Unsupported file type",
99
+ "annotationImageDeleteTooltip": "Delete image"
100
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "searchButtonTooltip": "Cerca nel documento",
3
+ "searchInputPlaceholder": "Premi Invio per cercare",
4
+ "searchInputTooltip": "Cerca",
5
+ "searchPrevTooltip": "Corrispondenza precedente",
6
+ "searchNextTooltip": "Corrispondenza successiva",
7
+ "searchCloseButtonTooltip": "Chiudi",
8
+ "searchMatchCaseLabel": "Maiuscole/minuscole",
9
+ "searchMatchCaseTooltip": "Cerca testo con distinzione maiuscole/minuscole",
10
+ "searchWholeWordsLabel": "Parola intera",
11
+ "searchWholeWordsTooltip": "Cerca esatte parole senza distinzione maiuscole/minuscole",
12
+ "previousPageTooltip": "Pagina precedente",
13
+ "currentPageTooltip": "Pagina corrente",
14
+ "nextPageTooltip": "Pagina successiva",
15
+ "zoomOutTooltip": "Ridurre",
16
+ "zoomInTooltip": "Ingrandire",
17
+ "zoomSelectTooltip": "Seleziona un livello di zoom",
18
+ "zoomActualSize": "Dimensioni effettive",
19
+ "zoomPageFit": "Adatta pagina",
20
+ "zoomPageWidth": "Larghezza pagina",
21
+ "themeEnableDarkTooltip": "Abilita tema scuro",
22
+ "themeEnableLightTooltip": "Abilita tema chiaro",
23
+ "openLocalFileLabel": "Aprire file",
24
+ "openLocalFileTooltip": "Aprire file",
25
+ "downloadFileLabel": "Scaricare file",
26
+ "downloadFileTooltip": "Scaricare file",
27
+ "printLabel": "Stampa",
28
+ "printTooltip": "Stampa",
29
+ "printLoadingMessage": "Preparazione del documento",
30
+ "printCancelLabel": "Annulla",
31
+ "fullScreenLabel": "Schermo intero",
32
+ "fullScreenTooltip": "Schermo intero",
33
+ "moreOptionTooltip": "Altre opzioni",
34
+ "firstPageLabel": "Prima pagina",
35
+ "firstPageTooltip": "Vai alla prima pagina",
36
+ "lastPageLabel": "Ultima pagina",
37
+ "lastPageTooltip": "Vai all’ultima pagina",
38
+ "rotateClockwiseLabel": "Ruota in senso orario",
39
+ "rotateClockwiseTooltip": "Ruota in senso orario",
40
+ "rotateCounterclockwiseLabel": "Ruota in senso antiorario",
41
+ "rotateCounterclockwiseTooltip": "Ruota in senso antiorario",
42
+ "textSelectionLabel": "Strumento di selezione testo",
43
+ "textSelectionTooltip": "Abilita strumento di selezione testo",
44
+ "handToolLabel": "Strumento mano",
45
+ "handToolTooltip": "Abilita strumento mano",
46
+ "documentPropertiesLabel": "Proprietà documento",
47
+ "documentPropertiesTooltip": "Visualizza proprietà documento",
48
+ "pageScrollingLabel": "Scorrimento pagina",
49
+ "pageScrollingTooltip": "Abilita lo scorrimento delle pagine",
50
+ "verticalScrollingLabel": "Scorrimento verticale",
51
+ "verticalScrollingTooltip": "Abilita lo scorrimento verticale",
52
+ "horizontalLabel": "Scorrimento orizzontale",
53
+ "horizontalTooltip": "Abilita lo scorrimento orizzontale",
54
+ "wrappedScrollingLabel": "Scorrimento avvolto",
55
+ "wrappedScrollingTooltip": "Abilita lo scorrimento avvolto",
56
+ "singlePageLabel": "Doppio",
57
+ "singlePageTooltip": "Visualizzazione singola",
58
+ "dualPageLabel": "Singolo",
59
+ "dualPageTooltip": "Visualizzazione doppio",
60
+ "propertiesFilenameLabel": "Nome file",
61
+ "propertiesFileSizeLabel": "Dimensione file",
62
+ "propertiesTitleLabel": "Titolo",
63
+ "propertiesAuthorLabel": "Autore",
64
+ "propertiesSubjectLabel": "Oggetto",
65
+ "propertiesKeywordLabel": "Parole chiave",
66
+ "propertiesCreatorLabel": "Creatore",
67
+ "propertiesCreateOnLabel": "Creato il",
68
+ "propertiesModifiedOnLabel": "Modificato il",
69
+ "propertiesPDFProducerLabel": "Produttore PDF",
70
+ "propertiesPDFVersionLabel": "Versione PDF",
71
+ "propertiesPageCountLabel": "Numero di pagine",
72
+ "thumbnailTooltip": "Miniature",
73
+ "passwordModalTitle": "Password richiesta",
74
+ "passwordModalMessage": "Questo documento è protetto da password. Si prega di inserire una password per aprire il file.",
75
+ "passwordPlaceholder": "Inserisci la password",
76
+ "passwordConfirmLabel": "Invia",
77
+ "passwordError": "Password errata",
78
+ "dragDropFileMessage": "Trascina e rilascia il file PDF qui",
79
+ "commentPanelLabel": "Visualizza commenti",
80
+ "commentPanelTooltip": "Visualizza commenti",
81
+ "annotationLabel": "Strumenti annotazione",
82
+ "annotationToggleShowTooltip": "Mostra strumenti annotazione",
83
+ "annotationToggleHideTooltip": "Nascondi strumenti annotazione",
84
+ "annotationHighlightLabel": "Evidenzia",
85
+ "annotationHighlightTooltip": "Evidenzia",
86
+ "annotationHighlightColorPickerLabel": "Colore evidenziazione",
87
+ "annotationHighlightDeleteTooltip": "Elimina evidenziazione",
88
+ "annotationFreeTextLabel": "Testo libero",
89
+ "annotationFreeTextTooltip": "Testo libero",
90
+ "annotationSignatureLabel": "Firma",
91
+ "annotationSignatureTooltip": "Firma",
92
+ "annotationSignatureAddLabel": "Aggiungi nuova firma",
93
+ "annotationSignatureAddTooltip": "Aggiungi nuova firma",
94
+ "annotationCommentLabel": "Commento",
95
+ "annotationCommentTooltip": "Commento",
96
+ "annotationImageLabel": "Immagine",
97
+ "annotationImageTooltip": "Aggiungi immagine",
98
+ "annotationImageUnsupportedFileMessage": "Tipo di file non supportato",
99
+ "annotationImageDeleteTooltip": "Elimina immagine"
100
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "searchButtonTooltip": "Pesquisar no documento",
3
+ "searchInputPlaceholder": "Pressione Enter para pesquisar",
4
+ "searchInputTooltip": "Pesquisar",
5
+ "searchPrevTooltip": "Correspondência anterior",
6
+ "searchNextTooltip": "Correspondência seguinte",
7
+ "searchCloseButtonTooltip": "Fechar",
8
+ "searchMatchCaseLabel": "Diferenciar maiúsculas/minúsculas",
9
+ "searchMatchCaseTooltip": "Pesquisar texto com distinção de maiúsculas/minúsculas",
10
+ "searchWholeWordsLabel": "Palavra inteira",
11
+ "searchWholeWordsTooltip": "Pesquisar palavras exatas sem distinção de maiúsculas/minúsculas",
12
+ "previousPageTooltip": "Página anterior",
13
+ "currentPageTooltip": "Página atual",
14
+ "nextPageTooltip": "Próxima página",
15
+ "zoomOutTooltip": "Reduzir",
16
+ "zoomInTooltip": "Ampliar",
17
+ "zoomSelectTooltip": "Selecionar nível de zoom",
18
+ "zoomActualSize": "Tamanho real",
19
+ "zoomPageFit": "Ajustar à página",
20
+ "zoomPageWidth": "Largura da página",
21
+ "themeEnableDarkTooltip": "Ativar tema escuro",
22
+ "themeEnableLightTooltip": "Ativar tema claro",
23
+ "openLocalFileLabel": "Abrir arquivo",
24
+ "openLocalFileTooltip": "Abrir arquivo",
25
+ "downloadFileLabel": "Baixar arquivo",
26
+ "downloadFileTooltip": "Baixar arquivo",
27
+ "printLabel": "Imprimir",
28
+ "printTooltip": "Imprimir",
29
+ "printLoadingMessage": "Preparando documento",
30
+ "printCancelLabel": "Cancelar",
31
+ "fullScreenLabel": "Tela inteira",
32
+ "fullScreenTooltip": "Tela inteira",
33
+ "moreOptionTooltip": "Mais opções",
34
+ "firstPageLabel": "Primeira página",
35
+ "firstPageTooltip": "Ir para a primeira página",
36
+ "lastPageLabel": "Última página",
37
+ "lastPageTooltip": "Ir para a última página",
38
+ "rotateClockwiseLabel": "Girar no sentido horário",
39
+ "rotateClockwiseTooltip": "Girar no sentido horário",
40
+ "rotateCounterclockwiseLabel": "Girar no sentido anti-horário",
41
+ "rotateCounterclockwiseTooltip": "Girar no sentido anti-horário",
42
+ "textSelectionLabel": "Ferramenta de seleção de texto",
43
+ "textSelectionTooltip": "Ativar ferramenta de seleção de texto",
44
+ "handToolLabel": "Ferramenta de mão",
45
+ "handToolTooltip": "Ativar ferramenta de mão",
46
+ "documentPropertiesLabel": "Propriedades do documento",
47
+ "documentPropertiesTooltip": "Ver propriedades do documento",
48
+ "pageScrollingLabel": "Rolagem página",
49
+ "pageScrollingTooltip": "Ativar rolagem de página",
50
+ "verticalScrollingLabel": "Rolagem vertical",
51
+ "verticalScrollingTooltip": "Ativar rolagem vertical",
52
+ "horizontalLabel": "Rolagem horizontal",
53
+ "horizontalTooltip": "Ativar rolagem horizontal",
54
+ "wrappedScrollingLabel": "Rolagem envolvida",
55
+ "wrappedScrollingTooltip": "Ativar rolagem envolvente",
56
+ "singlePageLabel": "Página única",
57
+ "singlePageTooltip": "Ativar página única",
58
+ "dualPageLabel": "Página dupla",
59
+ "dualPageTooltip": "Ativar página dupla",
60
+ "propertiesFilenameLabel": "Nome do arquivo",
61
+ "propertiesFileSizeLabel": "Tamanho do arquivo",
62
+ "propertiesTitleLabel": "Título",
63
+ "propertiesAuthorLabel": "Autor",
64
+ "propertiesSubjectLabel": "Assunto",
65
+ "propertiesKeywordLabel": "Palavras-chave",
66
+ "propertiesCreatorLabel": "Criador",
67
+ "propertiesCreateOnLabel": "Criado em",
68
+ "propertiesModifiedOnLabel": "Modificado em",
69
+ "propertiesPDFProducerLabel": "Produtor do PDF",
70
+ "propertiesPDFVersionLabel": "Versão do PDF",
71
+ "propertiesPageCountLabel": "Número de páginas",
72
+ "thumbnailTooltip": "Miniatura",
73
+ "passwordModalTitle": "Senha necessária",
74
+ "passwordModalMessage": "Este documento é protegido por senha. Por favor, insira uma senha para abrir o arquivo.",
75
+ "passwordPlaceholder": "Insira a senha",
76
+ "passwordConfirmLabel": "Enviar",
77
+ "passwordError": "Senha incorreta",
78
+ "dragDropFileMessage": "Arraste e solte o arquivo PDF aqui",
79
+ "commentPanelLabel": "Ver comentários",
80
+ "commentPanelTooltip": "Ver comentários",
81
+ "annotationLabel": "Ferramentas de anotação",
82
+ "annotationToggleShowTooltip": "Mostrar ferramentas de anotação",
83
+ "annotationToggleHideTooltip": "Ocultar ferramentas de anotação",
84
+ "annotationHighlightLabel": "Destacar",
85
+ "annotationHighlightTooltip": "Destacar",
86
+ "annotationHighlightColorPickerLabel": "Cor de destaque",
87
+ "annotationHighlightDeleteTooltip": "Excluir destaque",
88
+ "annotationFreeTextLabel": "Texto livre",
89
+ "annotationFreeTextTooltip": "Texto livre",
90
+ "annotationSignatureLabel": "Assinatura",
91
+ "annotationSignatureTooltip": "Assinatura",
92
+ "annotationSignatureAddLabel": "Adicionar nova assinatura",
93
+ "annotationSignatureAddTooltip": "Adicionar nova assinatura",
94
+ "annotationCommentLabel": "Comentário",
95
+ "annotationCommentTooltip": "Comentário",
96
+ "annotationImageLabel": "Imagem",
97
+ "annotationImageTooltip": "Adicionar imagem",
98
+ "annotationImageUnsupportedFileMessage": "Tipo de arquivo não suportado",
99
+ "annotationImageDeleteTooltip": "Excluir imagem"
100
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "searchButtonTooltip": "ค้นหาในเอกสาร",
3
+ "searchInputPlaceholder": "กรอกคำค้นหา",
4
+ "searchInputTooltip": "ค้นหา",
5
+ "searchPrevTooltip": "ผลการค้นหาก่อนหน้า",
6
+ "searchNextTooltip": "ผลการค้นหาถัดไป",
7
+ "searchCloseButtonTooltip": "ปิด",
8
+ "searchMatchCaseLabel": "ข้อความที่มีคำ",
9
+ "searchMatchCaseTooltip": "ค้นหาข้อความที่มีการแยกตัวพิมพ์ใหญ่/พิมพ์เล็ก",
10
+ "searchWholeWordsLabel": "ทั้งคำ",
11
+ "searchWholeWordsTooltip": "ค้นหาคำที่ตรงตัวไม่มีการแยกตัวพิมพ์ใหญ่/พิมพ์เล็ก",
12
+ "previousPageTooltip": "หน้าก่อนหน้า",
13
+ "currentPageTooltip": "หน้าปัจจุบัน",
14
+ "nextPageTooltip": "หน้าถัดไป",
15
+ "zoomOutTooltip": "ย่อ",
16
+ "zoomInTooltip": "ขยาย",
17
+ "zoomSelectTooltip": "เลือกระดับซูม",
18
+ "zoomActualSize": "ขนาดจริง",
19
+ "zoomPageFit": "พอดีหน้า",
20
+ "zoomPageWidth": "พอดีความกว้าง",
21
+ "themeEnableDarkTooltip": "เปิดโหมดมืด",
22
+ "themeEnableLightTooltip": "เปิดโหมดสว่าง",
23
+ "openLocalFileLabel": "เปิดไฟล์",
24
+ "openLocalFileTooltip": "เปิดไฟล์",
25
+ "downloadFileLabel": "ดาวน์โหลดเอกสาร",
26
+ "downloadFileTooltip": "ดาวน์โหลดเอกสาร",
27
+ "printLabel": "พิมพ์",
28
+ "printTooltip": "พิมพ์",
29
+ "printLoadingMessage": "เตรียมเอกสาร",
30
+ "printCancelLabel": "ยกเลิก",
31
+ "fullScreenLabel": "เต็มจอ",
32
+ "fullScreenTooltip": "เต็มจอ",
33
+ "moreOptionTooltip": "ตัวเลือกเพิ่มเติม",
34
+ "firstPageLabel": "หน้าแรก",
35
+ "firstPageTooltip": "ไปที่หน้าแรก",
36
+ "lastPageLabel": "หน้าสุดท้าย",
37
+ "lastPageTooltip": "ไปที่หน้าสุดท้าย",
38
+ "rotateClockwiseLabel": "หมุนตามเข็มนาฬิกา",
39
+ "rotateClockwiseTooltip": "หมุนตามเข็มนาฬิกา",
40
+ "rotateCounterclockwiseLabel": "หมุนทวนเข็มนาฬิกา",
41
+ "rotateCounterclockwiseTooltip": "หมุนทวนเข็มนาฬิกา",
42
+ "textSelectionLabel": "เครื่องมือเลือกข้อความ",
43
+ "textSelectionTooltip": "เปิดใช้การเลือกข้อความ",
44
+ "handToolLabel": "เครื่องมือแฮนด์ทูล",
45
+ "handToolTooltip": "เปิดใช้แฮนด์ทูล",
46
+ "documentPropertiesLabel": "คุณสมบัติของเอกสาร",
47
+ "documentPropertiesTooltip": "ดูคุณสมบัติของเอกสาร",
48
+ "pageScrollingLabel": "การเลื่อนภายในหน้า",
49
+ "pageScrollingTooltip": "เปิดใช้การเลื่อนภายในหน้า",
50
+ "verticalScrollingLabel": "การเลื่อนแนวตั้ง",
51
+ "verticalScrollingTooltip": "เปิดใช้การเลื่อนแนวตั้ง",
52
+ "horizontalLabel": "การเลื่อนแนวนอน",
53
+ "horizontalTooltip": "เปิดใช้การเลื่อนแนวนอน",
54
+ "wrappedScrollingLabel": "การเลื่อนแบบแรพ",
55
+ "wrappedScrollingTooltip": "เปิดใช้การเลื่อนแบบแรพ",
56
+ "singlePageLabel": "หน้าเดี่ยว",
57
+ "singlePageTooltip": "เปิดใช้หน้าเดี่ยว",
58
+ "dualPageLabel": "หน้าคู่",
59
+ "dualPageTooltip": "เปิดใช้หน้าคู่",
60
+ "propertiesFilenameLabel": "ชื่อเอกสาร",
61
+ "propertiesFileSizeLabel": "ขนาดเอกสาร",
62
+ "propertiesTitleLabel": "ชื่อเรื่อง",
63
+ "propertiesAuthorLabel": "ผู้เขียน",
64
+ "propertiesSubjectLabel": "หัวข้อ",
65
+ "propertiesKeywordLabel": "คำสำคัญ",
66
+ "propertiesCreatorLabel": "ผู้สร้าง",
67
+ "propertiesCreateOnLabel": "วันที่สร้าง",
68
+ "propertiesModifiedOnLabel": "วันที่แก้ไข",
69
+ "propertiesPDFProducerLabel": "ผู้ผลิต PDF",
70
+ "propertiesPDFVersionLabel": "เวอร์ชัน PDF",
71
+ "propertiesPageCountLabel": "จำนวนหน้า",
72
+ "thumbnailTooltip": "ภาพย่อ",
73
+ "passwordModalTitle": "กรุณากรอกรหัสผ่าน",
74
+ "passwordModalMessage": "เอกสารนี้ได้รับการป้องกันด้วยรหัสผ่าน กรุณาใส่รหัสผ่านเพื่อเปิดไฟล์",
75
+ "passwordPlaceholder": "กรอกรหัสผ่าน",
76
+ "passwordConfirmLabel": "ส่ง",
77
+ "passwordError": "รหัสผ่านไม่ถูกต้อง",
78
+ "dragDropFileMessage": "ลากและวางไฟล์ PDF ที่นี่",
79
+ "commentPanelLabel": "ดูความคิดเห็น",
80
+ "commentPanelTooltip": "ดูความคิดเห็น",
81
+ "annotationLabel": "เครื่องมือการออกแบบ",
82
+ "annotationToggleShowTooltip": "แสดงเครื่องมือการออกแบบ",
83
+ "annotationToggleHideTooltip": "ซ่อนเครื่องมือการออกแบบ",
84
+ "annotationHighlightLabel": "ไฮไลท์",
85
+ "annotationHighlightTooltip": "ไฮไลท์",
86
+ "annotationHighlightColorPickerLabel": "สีไฮไลท์",
87
+ "annotationHighlightDeleteTooltip": "ลบไฮไลท์",
88
+ "annotationFreeTextLabel": "ข้อความ",
89
+ "annotationFreeTextTooltip": "ข้อความ",
90
+ "annotationSignatureLabel": "ลายเซ็น",
91
+ "annotationSignatureTooltip": "ลายเซ็น",
92
+ "annotationSignatureAddLabel": "เพิ่มลายเซ็นใหม่",
93
+ "annotationSignatureAddTooltip": "เพิ่มลายเซ็นใหม่",
94
+ "annotationCommentLabel": "ความคิดเห็น",
95
+ "annotationCommentTooltip": "ความคิดเห็น",
96
+ "annotationImageLabel": "รูปภาพ",
97
+ "annotationImageTooltip": "เพิ่มรูปภาพ",
98
+ "annotationImageUnsupportedFileMessage": "ประเภทไฟล์ไม่รองรับ",
99
+ "annotationImageDeleteTooltip": "ลบรูปภาพ"
100
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "searchButtonTooltip": "搜索文件",
3
+ "searchInputPlaceholder": "输入搜索词",
4
+ "searchInputTooltip": "搜索",
5
+ "searchPrevTooltip": "上一条",
6
+ "searchNextTooltip": "下一条",
7
+ "searchCloseButtonTooltip": "关闭",
8
+ "searchMatchCaseLabel": "区分大小写",
9
+ "searchMatchCaseTooltip": "搜索区分大小写",
10
+ "searchWholeWordsLabel": "全字匹配",
11
+ "searchWholeWordsTooltip": "搜索完全匹配",
12
+ "previousPageTooltip": "上一页",
13
+ "currentPageTooltip": "当前页",
14
+ "nextPageTooltip": "下一页",
15
+ "zoomOutTooltip": "缩小",
16
+ "zoomInTooltip": "放大",
17
+ "zoomSelectTooltip": "选择缩放级别",
18
+ "zoomActualSize": "实际大小",
19
+ "zoomPageFit": "适合页面",
20
+ "zoomPageWidth": "页面宽度",
21
+ "themeEnableDarkTooltip": "切换到深色模式",
22
+ "themeEnableLightTooltip": "切换到浅色模式",
23
+ "openLocalFileLabel": "打开文件",
24
+ "openLocalFileTooltip": "打开文件",
25
+ "downloadFileLabel": "下载文件",
26
+ "downloadFileTooltip": "下载文件",
27
+ "printLabel": "打印",
28
+ "printTooltip": "打印",
29
+ "printLoadingMessage": "准备文件",
30
+ "printCancelLabel": "取消",
31
+ "fullScreenLabel": "全屏",
32
+ "fullScreenTooltip": "全屏",
33
+ "moreOptionTooltip": "更多选项",
34
+ "firstPageLabel": "第一页",
35
+ "firstPageTooltip": "跳转到第一页",
36
+ "lastPageLabel": "最后一页",
37
+ "lastPageTooltip": "跳转到最后一页",
38
+ "rotateClockwiseLabel": "顺时针旋转",
39
+ "rotateClockwiseTooltip": "顺时针旋转",
40
+ "rotateCounterclockwiseLabel": "逆时针旋转",
41
+ "rotateCounterclockwiseTooltip": "逆时针旋转",
42
+ "textSelectionLabel": "文本选择工具",
43
+ "textSelectionTooltip": "启用文本选择工具",
44
+ "handToolLabel": "手型工具",
45
+ "handToolTooltip": "启用手型工具",
46
+ "documentPropertiesLabel": "文件属性",
47
+ "documentPropertiesTooltip": "查看文件属性",
48
+ "pageScrollingLabel": "页面滚动",
49
+ "pageScrollingTooltip": "启用页面滚动",
50
+ "verticalScrollingLabel": "垂直滚动",
51
+ "verticalScrollingTooltip": "启用垂直滚动",
52
+ "horizontalLabel": "水平滚动",
53
+ "horizontalTooltip": "启用水平滚动",
54
+ "wrappedScrollingLabel": "环绕滚动",
55
+ "wrappedScrollingTooltip": "启用环绕滚动",
56
+ "singlePageLabel": "单页面视图",
57
+ "singlePageTooltip": "启用单页视图",
58
+ "dualPageLabel": "双页面视图",
59
+ "dualPageTooltip": "启用双页视图",
60
+ "propertiesFilenameLabel": "文件名称",
61
+ "propertiesFileSizeLabel": "文件大小",
62
+ "propertiesTitleLabel": "标题",
63
+ "propertiesAuthorLabel": "作者",
64
+ "propertiesSubjectLabel": "主题",
65
+ "propertiesKeywordLabel": "关键字",
66
+ "propertiesCreatorLabel": "创建者",
67
+ "propertiesCreateOnLabel": "创建于",
68
+ "propertiesModifiedOnLabel": "修改于",
69
+ "propertiesPDFProducerLabel": "PDF 制作程序 ",
70
+ "propertiesPDFVersionLabel": "PDF版本",
71
+ "propertiesPageCountLabel": "页数",
72
+ "thumbnailTooltip": "缩略图",
73
+ "passwordModalTitle": "需要密码",
74
+ "passwordModalMessage": "此文件受密码保护。请输入密码以打开文件。",
75
+ "passwordPlaceholder": "输入密码",
76
+ "passwordConfirmLabel": "提交",
77
+ "passwordError": "密码错误",
78
+ "dragDropFileMessage": "将PDF文件拖放到这里",
79
+ "commentPanelLabel": "查看评论",
80
+ "commentPanelTooltip": "查看评论",
81
+ "annotationLabel": "注释工具",
82
+ "annotationToggleShowTooltip": "显示注释工具",
83
+ "annotationToggleHideTooltip": "隐藏注释工具",
84
+ "annotationHighlightLabel": "高亮",
85
+ "annotationHighlightTooltip": "高亮",
86
+ "annotationHighlightColorPickerLabel": "高亮颜色",
87
+ "annotationHighlightDeleteTooltip": "删除高亮",
88
+ "annotationFreeTextLabel": "自由文本",
89
+ "annotationFreeTextTooltip": "自由文本",
90
+ "annotationSignatureLabel": "签名",
91
+ "annotationSignatureTooltip": "签名",
92
+ "annotationSignatureAddLabel": "添加新签名",
93
+ "annotationSignatureAddTooltip": "添加新签名",
94
+ "annotationCommentLabel": "注释",
95
+ "annotationCommentTooltip": "注释",
96
+ "annotationImageLabel": "图片",
97
+ "annotationImageTooltip": "添加图片",
98
+ "annotationImageUnsupportedFileMessage": "不支持的文件类型",
99
+ "annotationImageDeleteTooltip": "删除图片"
100
+ }
@@ -0,0 +1,129 @@
1
+ import type { Component, ComponentInternalInstance, ComputedRef } from "vue";
2
+ export type LocaleKey = "en_US" | "zh_CN" | "it_IT" | "pt_PT" | "th_TH" | string;
3
+ export type Localization = {
4
+ searchButtonTooltip: string;
5
+ searchInputPlaceholder: string;
6
+ searchInputTooltip: string;
7
+ searchPrevTooltip: string;
8
+ searchNextTooltip: string;
9
+ searchCloseButtonTooltip: string;
10
+ searchMatchCaseLabel: string;
11
+ searchMatchCaseTooltip: string;
12
+ searchWholeWordsLabel: string;
13
+ searchWholeWordsTooltip: string;
14
+ previousPageTooltip: string;
15
+ currentPageTooltip: string;
16
+ nextPageTooltip: string;
17
+ zoomOutTooltip: string;
18
+ zoomInTooltip: string;
19
+ zoomSelectTooltip: string;
20
+ zoomActualSize: string;
21
+ zoomPageFit: string;
22
+ zoomPageWidth: string;
23
+ themeEnableDarkTooltip: string;
24
+ themeEnableLightTooltip: string;
25
+ openLocalFileLabel: string;
26
+ openLocalFileTooltip: string;
27
+ downloadFileLabel: string;
28
+ downloadFileTooltip: string;
29
+ commentPanelTooltip: string;
30
+ printLabel: string;
31
+ printTooltip: string;
32
+ printLoadingMessage: string;
33
+ printCancelLabel: string;
34
+ fullScreenLabel: string;
35
+ fullScreenTooltip: string;
36
+ moreOptionTooltip: string;
37
+ firstPageLabel: string;
38
+ firstPageTooltip: string;
39
+ lastPageLabel: string;
40
+ lastPageTooltip: string;
41
+ rotateClockwiseLabel: string;
42
+ rotateClockwiseTooltip: string;
43
+ rotateCounterclockwiseLabel: string;
44
+ rotateCounterclockwiseTooltip: string;
45
+ textSelectionLabel: string;
46
+ textSelectionTooltip: string;
47
+ handToolLabel: string;
48
+ handToolTooltip: string;
49
+ pageScrollingLabel: string;
50
+ pageScrollingTooltip: string;
51
+ verticalScrollingLabel: string;
52
+ verticalScrollingTooltip: string;
53
+ horizontalLabel: string;
54
+ horizontalTooltip: string;
55
+ wrappedScrollingLabel: string;
56
+ wrappedScrollingTooltip: string;
57
+ singlePageLabel: string;
58
+ singlePageTooltip: string;
59
+ dualPageLabel: string;
60
+ dualPageTooltip: string;
61
+ documentPropertiesLabel: string;
62
+ documentPropertiesTooltip: string;
63
+ propertiesFilenameLabel: string;
64
+ propertiesFileSizeLabel: string;
65
+ propertiesTitleLabel: string;
66
+ propertiesAuthorLabel: string;
67
+ propertiesSubjectLabel: string;
68
+ propertiesKeywordLabel: string;
69
+ propertiesCreatorLabel: string;
70
+ propertiesCreateOnLabel: string;
71
+ propertiesModifiedOnLabel: string;
72
+ propertiesPDFProducerLabel: string;
73
+ propertiesPDFVersionLabel: string;
74
+ propertiesPageCountLabel: string;
75
+ thumbnailTooltip: string;
76
+ passwordModalTitle: string;
77
+ passwordModalMessage: string;
78
+ passwordPlaceholder: string;
79
+ passwordConfirmLabel: string;
80
+ passwordError: string;
81
+ dragDropFileMessage: string;
82
+ annotationLabel: string;
83
+ annotationToggleShowTooltip: string;
84
+ annotationToggleHideTooltip: string;
85
+ annotationHighlightLabel: string;
86
+ annotationHighlightTooltip: string;
87
+ annotationHighlightColorPickerLabel: string;
88
+ annotationHighlightDeleteTooltip: string;
89
+ annotationFreeTextLabel: string;
90
+ annotationFreeTextTooltip: string;
91
+ annotationSignatureLabel: string;
92
+ annotationSignatureTooltip: string;
93
+ annotationSignatureAddLabel: string;
94
+ annotationSignatureAddTooltip: string;
95
+ annotationCommentLabel: string;
96
+ annotationCommentTooltip: string;
97
+ annotationImageLabel: string;
98
+ annotationImageTooltip: string;
99
+ annotationImageUnsupportedFileMessage: string;
100
+ annotationImageDeleteTooltip: string;
101
+ };
102
+ export type ToolbarDirection = "top" | "left" | "right";
103
+ export interface PluginItem {
104
+ id: string;
105
+ component: Component;
106
+ toolbarDirection: ToolbarDirection;
107
+ }
108
+ export interface PluginContext {
109
+ componentInstance: ComponentInternalInstance | null;
110
+ toolbar: {
111
+ addItem: (item: PluginItem) => void;
112
+ };
113
+ shared: {
114
+ localization: ComputedRef<Localization>;
115
+ ui: {
116
+ AppButton?: Component;
117
+ AppTooltip?: Component;
118
+ AppPopover?: Component;
119
+ AppHighlightColorPicker?: Component;
120
+ AppSignatures?: Component;
121
+ };
122
+ };
123
+ }
124
+ export interface Plugin {
125
+ name: string;
126
+ setup: (ctx: PluginContext) => void;
127
+ }
128
+ export type HighlightColors = [string, string, string, string, string, string];
129
+ export type AnnotationHighlightColors = HighlightColors | null;
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ // Type definitions for @vue-pdf-viewer
2
+ // This file contains only type definitions, interfaces, and enums
3
+ export {};
@@ -0,0 +1,2 @@
1
+ import { EventAnnotation } from "./enumerators";
2
+ export declare const getEventName: (instanceId: number, event: EventAnnotation) => string;
package/dist/utils.js ADDED
@@ -0,0 +1,3 @@
1
+ export const getEventName = (instanceId, event) => {
2
+ return `${instanceId}-${event}`;
3
+ };
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@vue-pdf-viewer/shared",
3
+ "private": false,
4
+ "version": "0.0.0-alpha.0",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "version:prerelease": "npm version prerelease",
20
+ "prepublishOnly": "tsc",
21
+ "publish:experimental": "npm run version:prerelease && npm publish --tag=experimental",
22
+ "build": "tsc",
23
+ "dev": "tsc --watch"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "peerDependencies": {
29
+ "vue": "^3.2.37"
30
+ },
31
+ "devDependencies": {
32
+ "@types/node": "^22.15.19",
33
+ "@vitejs/plugin-vue": "^3.1.0",
34
+ "typescript": "^5.0.0",
35
+ "vite": "^3.1.0",
36
+ "vue-tsc": "^0.40.4"
37
+ }
38
+ }