@vue-pdf-viewer/viewer 4.0.0-beta.0 → 4.0.0-beta.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/{VPdfViewer.vue_vue_type_style_index_1_scoped_b89b6109_lang-BDA6HkG2.js → VPdfViewer.vue_vue_type_style_index_1_scoped_9dcec999_lang-Bi72CW7K.js} +285 -284
- package/dist/{VPdfViewer.vue_vue_type_style_index_1_scoped_b89b6109_lang-DMA8_Vun.cjs → VPdfViewer.vue_vue_type_style_index_1_scoped_9dcec999_lang-CZEIhxSz.cjs} +4 -4
- package/dist/{index-D1HreucU.cjs → index-B2bnNcQK.cjs} +1 -1
- package/dist/{index-DQJPH6A2.js → index-BAl2kzgK.js} +1 -1
- package/dist/index.cjs +16 -16
- package/dist/index.js +5513 -5490
- package/dist/license.cjs +1 -1
- package/dist/license.js +1 -1
- package/dist/types/components/AppButton.vue.d.ts +11 -17
- package/dist/types/components/AppColorPicker.vue.d.ts +11 -14
- package/dist/types/components/AppFormControl.vue.d.ts +6 -24
- package/dist/types/components/AppIcon.vue.d.ts +3 -13
- package/dist/types/components/AppInput.vue.d.ts +1 -10
- package/dist/types/components/AppLoader.vue.d.ts +13 -18
- package/dist/types/components/AppPopover.vue.d.ts +21 -76
- package/dist/types/components/AppTooltip.vue.d.ts +14 -31
- package/dist/types/components/ColorButton.vue.d.ts +10 -13
- package/dist/types/components/DragFileMask.vue.d.ts +11 -45
- package/dist/types/components/FreeTextPanel.vue.d.ts +9 -1
- package/dist/types/components/FreeTextPanelFontColors.vue.d.ts +8 -1
- package/dist/types/components/FreeTextPanelFontFamilySelector.vue.d.ts +8 -1
- package/dist/types/components/FreeTextPanelFontSizeSelector.vue.d.ts +8 -1
- package/dist/types/components/LayerAnnotation.vue.d.ts +15 -36
- package/dist/types/components/LayerAnnotationEditor.vue.d.ts +3 -18
- package/dist/types/components/LayerAnnotationEditorFreeText.vue.d.ts +20 -31
- package/dist/types/components/LayerAnnotationEditorFreeTextItem.vue.d.ts +8 -19
- package/dist/types/components/LayerAnnotationEditorHighlight.vue.d.ts +22 -31
- package/dist/types/components/LayerAnnotationEditorHighlightItem.vue.d.ts +3 -18
- package/dist/types/components/LayerAnnotationEditorImage.vue.d.ts +13 -20
- package/dist/types/components/LayerAnnotationEditorTextSelectionItem.vue.d.ts +7 -18
- package/dist/types/components/LayerAnnotationEditorTextSelectionItemMenu.vue.d.ts +15 -19
- package/dist/types/components/LayerAnnotationStampResizer.vue.d.ts +7 -17
- package/dist/types/components/LayerCanvas.vue.d.ts +5 -13
- package/dist/types/components/LayerCanvasDetail.vue.d.ts +1 -10
- package/dist/types/components/LayerOverlay.vue.d.ts +15 -35
- package/dist/types/components/LayerText.vue.d.ts +9 -23
- package/dist/types/components/LayerTextHighlight.vue.d.ts +1 -10
- package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +1 -10
- package/dist/types/components/LayerXFA.vue.d.ts +10 -21
- package/dist/types/components/ModalPassword.vue.d.ts +11 -14
- package/dist/types/components/ModalPdfProperties.vue.d.ts +4 -13
- package/dist/types/components/ModalPrintLoadingProgress.vue.d.ts +4 -13
- package/dist/types/components/SwitchAppearance.vue.d.ts +25 -22
- package/dist/types/components/ToolCommentPanel.vue.d.ts +24 -29
- package/dist/types/components/ToolDownload.vue.d.ts +15 -20
- package/dist/types/components/ToolFullscreen.vue.d.ts +16 -21
- package/dist/types/components/ToolMenuOthers.vue.d.ts +37 -76
- package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +7 -12
- package/dist/types/components/ToolOpenFile.vue.d.ts +15 -20
- package/dist/types/components/ToolOpenFileInput.vue.d.ts +3 -4
- package/dist/types/components/ToolPagination.vue.d.ts +26 -60
- package/dist/types/components/ToolPrint.vue.d.ts +10 -27
- package/dist/types/components/ToolSearch.vue.d.ts +23 -57
- package/dist/types/components/ToolThumbnail.vue.d.ts +13 -36
- package/dist/types/components/ToolZoom.vue.d.ts +21 -45
- package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +7 -18
- package/dist/types/components/VPdfComments.vue.d.ts +6 -17
- package/dist/types/components/VPdfCommentsDate.vue.d.ts +3 -13
- package/dist/types/components/VPdfCommentsHeader.vue.d.ts +3 -13
- package/dist/types/components/VPdfCommentsIcon.vue.d.ts +3 -13
- package/dist/types/components/VPdfCommentsReplies.vue.d.ts +3 -13
- package/dist/types/components/VPdfCommentsSidebar.vue.d.ts +3 -4
- package/dist/types/components/VPdfCommentsText.vue.d.ts +11 -1
- package/dist/types/components/VPdfPage.vue.d.ts +16 -55
- package/dist/types/components/VPdfThumbnail.vue.d.ts +6 -17
- package/dist/types/components/VPdfThumbnails.vue.d.ts +6 -15
- package/dist/types/components/VPdfViewer.vue.d.ts +317 -604
- package/dist/types/components/ui/button/Button.vue.d.ts +8 -41
- package/dist/types/components/ui/button/index.d.ts +1 -1
- package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +15 -29
- package/dist/types/components/ui/collapsible/Collapsible.vue.d.ts +15 -26
- package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +9 -24
- package/dist/types/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +9 -24
- package/dist/types/components/ui/dialog/Dialog.vue.d.ts +13 -24
- package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +9 -24
- package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +25 -29
- package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +11 -29
- package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +11 -29
- package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +11 -29
- package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +11 -29
- package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +9 -24
- package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +13 -24
- package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +17 -29
- package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +23 -44
- package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +9 -24
- package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +13 -35
- package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +12 -32
- package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +13 -24
- package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +16 -32
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +3 -13
- package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +11 -29
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +13 -24
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +27 -29
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +11 -29
- package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +9 -24
- package/dist/types/components/ui/input/Input.vue.d.ts +4 -13
- package/dist/types/components/ui/popover/Popover.vue.d.ts +13 -24
- package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +27 -55
- package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +9 -24
- package/dist/types/components/ui/progress/Progress.vue.d.ts +4 -23
- package/dist/types/components/ui/select/Select.vue.d.ts +16 -24
- package/dist/types/components/ui/select/SelectContent.vue.d.ts +21 -48
- package/dist/types/components/ui/select/SelectGroup.vue.d.ts +11 -29
- package/dist/types/components/ui/select/SelectItem.vue.d.ts +11 -29
- package/dist/types/components/ui/select/SelectItemText.vue.d.ts +9 -24
- package/dist/types/components/ui/select/SelectLabel.vue.d.ts +11 -29
- package/dist/types/components/ui/select/SelectScrollDownButton.vue.d.ts +11 -29
- package/dist/types/components/ui/select/SelectScrollUpButton.vue.d.ts +11 -29
- package/dist/types/components/ui/select/SelectSeparator.vue.d.ts +3 -13
- package/dist/types/components/ui/select/SelectTrigger.vue.d.ts +11 -29
- package/dist/types/components/ui/select/SelectValue.vue.d.ts +9 -24
- package/dist/types/components/ui/toast/Toast.vue.d.ts +91 -24
- package/dist/types/components/ui/toast/ToastAction.vue.d.ts +11 -29
- package/dist/types/components/ui/toast/ToastClose.vue.d.ts +3 -13
- package/dist/types/components/ui/toast/ToastDescription.vue.d.ts +11 -29
- package/dist/types/components/ui/toast/ToastProvider.vue.d.ts +9 -24
- package/dist/types/components/ui/toast/ToastTitle.vue.d.ts +11 -29
- package/dist/types/components/ui/toast/ToastViewport.vue.d.ts +3 -13
- package/dist/types/components/ui/toast/index.d.ts +1 -1
- package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +13 -24
- package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +17 -44
- package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +9 -24
- package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +9 -24
- package/dist/types/composables/useAnnotationFreeText.d.ts +454 -248
- package/dist/types/composables/useAnnotationHighlight.d.ts +288 -178
- package/dist/types/composables/useAnnotationStamp.d.ts +344 -212
- package/dist/types/composables/useAnnotationStrikethrough.d.ts +326 -216
- package/dist/types/composables/useAnnotationUnderline.d.ts +326 -216
- package/dist/types/composables/useDownload.d.ts +1 -1
- package/dist/types/composables/usePinch.d.ts +2 -2
- package/dist/types/composables/usePrintControl.d.ts +1 -1
- package/dist/types/composables/useRotation.d.ts +1 -1
- package/dist/types/composables/useScale.d.ts +4 -4
- package/dist/types/const.d.ts +30 -1065
- package/dist/types/utils/CanvasRender.d.ts +0 -1
- package/dist/types/utils/searchHighlight.d.ts +1 -1
- package/dist/types/utils/types.d.ts +4 -3
- package/package.json +12 -5
|
@@ -3,549 +3,232 @@ import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent,
|
|
|
3
3
|
import { ScrollMode, SelectionMode, ViewMode, ZoomLevel } from '@/utils/enumerators';
|
|
4
4
|
import '../style.scss';
|
|
5
5
|
import { Localization } from '@vue-pdf-viewer/shared';
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
searchMatches: {
|
|
140
|
-
totalMatches: number;
|
|
141
|
-
matches: {
|
|
142
|
-
index: number;
|
|
143
|
-
page: number;
|
|
144
|
-
}[];
|
|
145
|
-
} | {
|
|
146
|
-
totalMatches: number;
|
|
147
|
-
matches: {
|
|
148
|
-
index: number;
|
|
149
|
-
page: number;
|
|
150
|
-
}[];
|
|
151
|
-
};
|
|
152
|
-
searching: boolean;
|
|
153
|
-
goToMatch: (index: number) => void;
|
|
154
|
-
search: (value: string) => Promise<import("@/utils/types").MatchHighlightResult[]>;
|
|
155
|
-
nextSearchMatch: () => void;
|
|
156
|
-
prevSearchMatch: () => void;
|
|
157
|
-
};
|
|
158
|
-
rotateControl: {
|
|
159
|
-
rotateClockwise: () => void;
|
|
160
|
-
rotateCounterclockwise: () => void;
|
|
161
|
-
currentRotation: number;
|
|
162
|
-
};
|
|
163
|
-
downloadControl: {
|
|
164
|
-
download: () => void;
|
|
165
|
-
getBlob: () => Promise<{
|
|
166
|
-
blob: Blob;
|
|
167
|
-
filename: string;
|
|
168
|
-
}>;
|
|
169
|
-
onError?: ((error: Error) => void) | undefined;
|
|
170
|
-
onComplete?: (() => void) | undefined;
|
|
171
|
-
};
|
|
172
|
-
zoomControl: {
|
|
173
|
-
scale: number;
|
|
174
|
-
zoom: (scale: number | ZoomLevel, options?: {
|
|
175
|
-
immediate?: boolean | undefined;
|
|
176
|
-
origin?: [number, number] | undefined;
|
|
177
|
-
} | undefined) => void;
|
|
178
|
-
};
|
|
179
|
-
passwordControl: {
|
|
180
|
-
submitPassword: (password: string) => Promise<boolean>;
|
|
181
|
-
};
|
|
182
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
183
|
-
annotation: (data: AnnotationEventPayload) => void;
|
|
184
|
-
} & {
|
|
185
|
-
loaded: (properties?: PdfProperties | undefined) => void;
|
|
186
|
-
} & {
|
|
187
|
-
loadError: (error: any) => void;
|
|
188
|
-
} & {
|
|
189
|
-
loading: () => void;
|
|
190
|
-
} & {
|
|
191
|
-
loadProgress: (progress: number) => void;
|
|
192
|
-
} & {
|
|
193
|
-
textLoaded: (data: TextLayerLoadedEventPayload) => void;
|
|
194
|
-
} & {
|
|
195
|
-
annotationLoaded: (annotations: any[]) => void;
|
|
196
|
-
} & {
|
|
197
|
-
xfaLoaded: () => void;
|
|
198
|
-
} & {
|
|
199
|
-
rotate: (rotateEvent: RotateEvent) => void;
|
|
200
|
-
} & {
|
|
201
|
-
scroll: (scrollEvent: Event) => void;
|
|
202
|
-
} & {
|
|
203
|
-
"update:scrollMode": (scrollMode: ScrollMode) => void;
|
|
204
|
-
} & {
|
|
205
|
-
"update:viewMode": (viewMode: ViewMode) => void;
|
|
206
|
-
} & {
|
|
207
|
-
passwordRequired: (payload: PasswordRequiredPayload) => void;
|
|
208
|
-
} & {
|
|
209
|
-
passwordError: () => void;
|
|
210
|
-
} & {
|
|
211
|
-
passwordSuccess: () => void;
|
|
212
|
-
} & {
|
|
213
|
-
afterGoToPage: (progress: number) => void;
|
|
214
|
-
} & {
|
|
215
|
-
pageChanged: (progress: number) => void;
|
|
216
|
-
}, import("vue").PublicProps, {
|
|
217
|
-
readonly workerUrl: string;
|
|
218
|
-
readonly initialPage: number;
|
|
219
|
-
readonly initialScale: number | ZoomLevel;
|
|
220
|
-
readonly initialRotation: number;
|
|
221
|
-
readonly initialThumbnailsVisible: boolean;
|
|
222
|
-
readonly initialSearch: string;
|
|
223
|
-
readonly textLayer: boolean;
|
|
224
|
-
readonly selectionMode: SelectionMode;
|
|
225
|
-
readonly characterMap: import("@/utils/types").CharacterMap;
|
|
226
|
-
readonly toolbarOptions: false | Partial<ToolbarOptions>;
|
|
227
|
-
readonly localization: Record<string, Localization>;
|
|
228
|
-
readonly afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
|
|
229
|
-
readonly textHighlights: import("@/utils/types").TextHighlight[];
|
|
230
|
-
readonly plugins: import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[];
|
|
231
|
-
readonly documentOptions: import("@/utils/types").PDFDocumentOptions;
|
|
232
|
-
readonly downloadFilename: string;
|
|
233
|
-
readonly showPasswordModal: boolean;
|
|
234
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
235
|
-
P: {};
|
|
236
|
-
B: {};
|
|
237
|
-
D: {};
|
|
238
|
-
C: {};
|
|
239
|
-
M: {};
|
|
240
|
-
Defaults: {};
|
|
241
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
242
|
-
readonly src: {
|
|
243
|
-
readonly type: import("vue").PropType<string | import("@/utils/types").VPVSrc>;
|
|
244
|
-
readonly required: true;
|
|
245
|
-
};
|
|
246
|
-
readonly workerUrl: {
|
|
247
|
-
readonly type: import("vue").PropType<string>;
|
|
248
|
-
readonly default: undefined;
|
|
249
|
-
};
|
|
250
|
-
readonly initialPage: {
|
|
251
|
-
readonly type: import("vue").PropType<number>;
|
|
252
|
-
readonly default: () => number;
|
|
253
|
-
};
|
|
254
|
-
readonly initialScale: {
|
|
255
|
-
readonly type: import("vue").PropType<number | ZoomLevel>;
|
|
256
|
-
readonly default: () => ZoomLevel;
|
|
257
|
-
};
|
|
258
|
-
readonly scrollMode: {
|
|
259
|
-
readonly type: import("vue").PropType<ScrollMode>;
|
|
260
|
-
readonly validator: (scrollMode: ScrollMode, args: unknown) => boolean;
|
|
261
|
-
};
|
|
262
|
-
readonly viewMode: {
|
|
263
|
-
readonly type: import("vue").PropType<ViewMode>;
|
|
264
|
-
readonly validator: (viewMode: ViewMode, args: unknown) => boolean;
|
|
265
|
-
};
|
|
266
|
-
readonly initialScrollMode: {
|
|
267
|
-
readonly type: import("vue").PropType<ScrollMode>;
|
|
268
|
-
readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
|
|
269
|
-
};
|
|
270
|
-
readonly initialViewMode: {
|
|
271
|
-
readonly type: import("vue").PropType<ViewMode>;
|
|
272
|
-
readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
|
|
273
|
-
};
|
|
274
|
-
readonly initialRotation: {
|
|
275
|
-
readonly type: import("vue").PropType<number>;
|
|
276
|
-
readonly default: () => number;
|
|
277
|
-
};
|
|
278
|
-
readonly initialThumbnailsVisible: {
|
|
279
|
-
readonly type: import("vue").PropType<boolean>;
|
|
280
|
-
readonly default: undefined;
|
|
281
|
-
};
|
|
282
|
-
readonly textLayer: {
|
|
283
|
-
readonly type: import("vue").PropType<boolean>;
|
|
284
|
-
readonly default: () => boolean;
|
|
285
|
-
};
|
|
286
|
-
readonly selectionMode: {
|
|
287
|
-
readonly type: import("vue").PropType<SelectionMode>;
|
|
288
|
-
readonly default: undefined;
|
|
289
|
-
};
|
|
290
|
-
readonly characterMap: {
|
|
291
|
-
readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
|
|
292
|
-
readonly default: undefined;
|
|
293
|
-
};
|
|
294
|
-
readonly toolbarOptions: {
|
|
295
|
-
readonly type: import("vue").PropType<false | Partial<ToolbarOptions>>;
|
|
296
|
-
readonly default: () => ToolbarOptions;
|
|
297
|
-
};
|
|
298
|
-
readonly localization: {
|
|
299
|
-
readonly type: import("vue").PropType<Record<string, Localization>>;
|
|
300
|
-
readonly default: () => Record<string, Localization>;
|
|
301
|
-
};
|
|
302
|
-
readonly initialSearch: {
|
|
303
|
-
/**
|
|
304
|
-
* Free & Freemium cannot utilize other props except `src`
|
|
305
|
-
*/
|
|
306
|
-
readonly type: StringConstructor;
|
|
307
|
-
readonly default: undefined;
|
|
308
|
-
};
|
|
309
|
-
readonly afterCanvasLoaded: {
|
|
310
|
-
readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
|
|
311
|
-
readonly default: undefined;
|
|
312
|
-
};
|
|
313
|
-
readonly textHighlights: {
|
|
314
|
-
readonly type: import("vue").PropType<import("@/utils/types").TextHighlight[]>;
|
|
315
|
-
readonly default: undefined;
|
|
316
|
-
readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
|
|
317
|
-
};
|
|
318
|
-
readonly downloadFilename: {
|
|
319
|
-
readonly type: StringConstructor;
|
|
320
|
-
readonly default: undefined;
|
|
321
|
-
};
|
|
322
|
-
readonly plugins: {
|
|
323
|
-
readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[]>;
|
|
324
|
-
readonly default: undefined;
|
|
325
|
-
};
|
|
326
|
-
readonly documentOptions: {
|
|
327
|
-
readonly type: import("vue").PropType<import("@/utils/types").PDFDocumentOptions>;
|
|
328
|
-
readonly default: undefined;
|
|
329
|
-
};
|
|
330
|
-
readonly showPasswordModal: {
|
|
331
|
-
readonly type: import("vue").PropType<boolean>;
|
|
332
|
-
readonly default: true;
|
|
333
|
-
};
|
|
334
|
-
}>> & Readonly<{
|
|
335
|
-
onScroll?: ((scrollEvent: Event) => any) | undefined;
|
|
336
|
-
onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
|
|
337
|
-
onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
|
|
338
|
-
onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
|
|
339
|
-
onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
|
|
340
|
-
onXfaLoaded?: (() => any) | undefined;
|
|
341
|
-
onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
|
|
342
|
-
onLoadError?: ((error: any) => any) | undefined;
|
|
343
|
-
onLoading?: (() => any) | undefined;
|
|
344
|
-
onLoadProgress?: ((progress: number) => any) | undefined;
|
|
345
|
-
onAfterGoToPage?: ((progress: number) => any) | undefined;
|
|
346
|
-
onPageChanged?: ((progress: number) => any) | undefined;
|
|
347
|
-
"onUpdate:scrollMode"?: ((scrollMode: ScrollMode) => any) | undefined;
|
|
348
|
-
"onUpdate:viewMode"?: ((viewMode: ViewMode) => any) | undefined;
|
|
349
|
-
onPasswordRequired?: ((payload: PasswordRequiredPayload) => any) | undefined;
|
|
350
|
-
onPasswordError?: (() => any) | undefined;
|
|
351
|
-
onPasswordSuccess?: (() => any) | undefined;
|
|
352
|
-
}>, {
|
|
353
|
-
highlightControl: {
|
|
354
|
-
highlight: (args: import("@/utils/types").TextHighlight[]) => Promise<Record<string, import("@/utils/types").MatchHighlightResult[]>>;
|
|
355
|
-
clear: () => void;
|
|
356
|
-
};
|
|
357
|
-
printControl: {
|
|
358
|
-
print: (options?: {
|
|
359
|
-
visibleDefaultProgress: boolean;
|
|
360
|
-
} | undefined) => void;
|
|
361
|
-
cancel: () => void;
|
|
362
|
-
onProgress?: ((progress: import("@/utils/types").PreparePrintProgress) => void) | undefined;
|
|
363
|
-
onError?: ((error: Error) => void) | undefined;
|
|
364
|
-
onComplete?: (() => void) | undefined;
|
|
365
|
-
};
|
|
366
|
-
pageControl: {
|
|
367
|
-
goToPage: (pageNumber: number) => void;
|
|
368
|
-
totalPages: number;
|
|
369
|
-
currentPage: number;
|
|
370
|
-
getTextContent: (pageNumber: number) => Promise<import("pdfjs-dist/types/src/display/api").TextContent> | undefined;
|
|
371
|
-
};
|
|
372
|
-
searchControl: {
|
|
373
|
-
searchMatches: {
|
|
374
|
-
totalMatches: number;
|
|
375
|
-
matches: {
|
|
376
|
-
index: number;
|
|
377
|
-
page: number;
|
|
378
|
-
}[];
|
|
379
|
-
} | {
|
|
380
|
-
totalMatches: number;
|
|
381
|
-
matches: {
|
|
382
|
-
index: number;
|
|
383
|
-
page: number;
|
|
384
|
-
}[];
|
|
385
|
-
};
|
|
386
|
-
searching: boolean;
|
|
387
|
-
goToMatch: (index: number) => void;
|
|
388
|
-
search: (value: string) => Promise<import("@/utils/types").MatchHighlightResult[]>;
|
|
389
|
-
nextSearchMatch: () => void;
|
|
390
|
-
prevSearchMatch: () => void;
|
|
391
|
-
};
|
|
392
|
-
rotateControl: {
|
|
393
|
-
rotateClockwise: () => void;
|
|
394
|
-
rotateCounterclockwise: () => void;
|
|
395
|
-
currentRotation: number;
|
|
396
|
-
};
|
|
397
|
-
downloadControl: {
|
|
398
|
-
download: () => void;
|
|
399
|
-
getBlob: () => Promise<{
|
|
400
|
-
blob: Blob;
|
|
401
|
-
filename: string;
|
|
402
|
-
}>;
|
|
403
|
-
onError?: ((error: Error) => void) | undefined;
|
|
404
|
-
onComplete?: (() => void) | undefined;
|
|
405
|
-
};
|
|
406
|
-
zoomControl: {
|
|
407
|
-
scale: number;
|
|
408
|
-
zoom: (scale: number | ZoomLevel, options?: {
|
|
409
|
-
immediate?: boolean | undefined;
|
|
410
|
-
origin?: [number, number] | undefined;
|
|
411
|
-
} | undefined) => void;
|
|
412
|
-
};
|
|
413
|
-
passwordControl: {
|
|
414
|
-
submitPassword: (password: string) => Promise<boolean>;
|
|
415
|
-
};
|
|
416
|
-
}, {}, {}, {}, {
|
|
417
|
-
readonly workerUrl: string;
|
|
418
|
-
readonly initialPage: number;
|
|
419
|
-
readonly initialScale: number | ZoomLevel;
|
|
420
|
-
readonly initialRotation: number;
|
|
421
|
-
readonly initialThumbnailsVisible: boolean;
|
|
422
|
-
readonly initialSearch: string;
|
|
423
|
-
readonly textLayer: boolean;
|
|
424
|
-
readonly selectionMode: SelectionMode;
|
|
425
|
-
readonly characterMap: import("@/utils/types").CharacterMap;
|
|
426
|
-
readonly toolbarOptions: false | Partial<ToolbarOptions>;
|
|
427
|
-
readonly localization: Record<string, Localization>;
|
|
428
|
-
readonly afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
|
|
429
|
-
readonly textHighlights: import("@/utils/types").TextHighlight[];
|
|
430
|
-
readonly plugins: import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[];
|
|
431
|
-
readonly documentOptions: import("@/utils/types").PDFDocumentOptions;
|
|
432
|
-
readonly downloadFilename: string;
|
|
433
|
-
readonly showPasswordModal: boolean;
|
|
434
|
-
}>;
|
|
435
|
-
__isFragment?: undefined;
|
|
436
|
-
__isTeleport?: undefined;
|
|
437
|
-
__isSuspense?: undefined;
|
|
438
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
439
|
-
readonly src: {
|
|
440
|
-
readonly type: import("vue").PropType<string | import("@/utils/types").VPVSrc>;
|
|
6
|
+
declare var __VLS_34: {
|
|
7
|
+
isDark: boolean;
|
|
8
|
+
}, __VLS_36: {
|
|
9
|
+
progress: number;
|
|
10
|
+
loaded: boolean;
|
|
11
|
+
}, __VLS_41: {}, __VLS_43: {
|
|
12
|
+
progress: number;
|
|
13
|
+
}, __VLS_59: {}, __VLS_61: {}, __VLS_72: {
|
|
14
|
+
total: number;
|
|
15
|
+
current: number;
|
|
16
|
+
onNext: () => void;
|
|
17
|
+
onPrev: () => void;
|
|
18
|
+
onChangePage: (pageNumber: number) => void;
|
|
19
|
+
}, __VLS_74: {}, __VLS_76: {}, __VLS_85: {
|
|
20
|
+
currentScale: number;
|
|
21
|
+
zoom: (nextScale: number | ZoomLevel) => void;
|
|
22
|
+
}, __VLS_87: {}, __VLS_89: {}, __VLS_98: {
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
}, __VLS_100: {}, __VLS_105: {
|
|
25
|
+
isDark: boolean;
|
|
26
|
+
onClick: () => void;
|
|
27
|
+
}, __VLS_107: {}, __VLS_109: {}, __VLS_114: {
|
|
28
|
+
onClick: () => void;
|
|
29
|
+
}, __VLS_116: {}, __VLS_121: {
|
|
30
|
+
onClick: () => void;
|
|
31
|
+
}, __VLS_123: {}, __VLS_128: {
|
|
32
|
+
onClick: () => Promise<void>;
|
|
33
|
+
}, __VLS_130: {}, __VLS_135: {
|
|
34
|
+
onClick: () => Promise<void>;
|
|
35
|
+
isSupported: boolean;
|
|
36
|
+
}, __VLS_137: {}, __VLS_150: {}, __VLS_152: {}, __VLS_154: {}, __VLS_156: {}, __VLS_158: {}, __VLS_160: {}, __VLS_162: {}, __VLS_164: {}, __VLS_166: {}, __VLS_168: {}, __VLS_170: {}, __VLS_172: {}, __VLS_174: {}, __VLS_176: {}, __VLS_178: {}, __VLS_183: {
|
|
37
|
+
onToggle: () => void;
|
|
38
|
+
}, __VLS_185: {}, __VLS_213: {
|
|
39
|
+
pageIndex: number;
|
|
40
|
+
scale: number;
|
|
41
|
+
pageElement: HTMLElement | SVGElement | null | undefined;
|
|
42
|
+
}, __VLS_223: {
|
|
43
|
+
pageIndex: number;
|
|
44
|
+
scale: number;
|
|
45
|
+
pageElement: HTMLElement | SVGElement | null | undefined;
|
|
46
|
+
};
|
|
47
|
+
type __VLS_Slots = {} & {
|
|
48
|
+
dropFileZone?: (props: typeof __VLS_34) => any;
|
|
49
|
+
} & {
|
|
50
|
+
loader?: (props: typeof __VLS_36) => any;
|
|
51
|
+
} & {
|
|
52
|
+
loaderImage?: (props: typeof __VLS_41) => any;
|
|
53
|
+
} & {
|
|
54
|
+
loaderProgress?: (props: typeof __VLS_43) => any;
|
|
55
|
+
} & {
|
|
56
|
+
loaderImage?: (props: typeof __VLS_59) => any;
|
|
57
|
+
} & {
|
|
58
|
+
iconSearch?: (props: typeof __VLS_61) => any;
|
|
59
|
+
} & {
|
|
60
|
+
pageNavigationTool?: (props: typeof __VLS_72) => any;
|
|
61
|
+
} & {
|
|
62
|
+
iconPrevPage?: (props: typeof __VLS_74) => any;
|
|
63
|
+
} & {
|
|
64
|
+
iconNextPage?: (props: typeof __VLS_76) => any;
|
|
65
|
+
} & {
|
|
66
|
+
zoomTool?: (props: typeof __VLS_85) => any;
|
|
67
|
+
} & {
|
|
68
|
+
iconZoomOut?: (props: typeof __VLS_87) => any;
|
|
69
|
+
} & {
|
|
70
|
+
iconZoomIn?: (props: typeof __VLS_89) => any;
|
|
71
|
+
} & {
|
|
72
|
+
commentPanelTool?: (props: typeof __VLS_98) => any;
|
|
73
|
+
} & {
|
|
74
|
+
iconCommentPanel?: (props: typeof __VLS_100) => any;
|
|
75
|
+
} & {
|
|
76
|
+
themeTool?: (props: typeof __VLS_105) => any;
|
|
77
|
+
} & {
|
|
78
|
+
iconThemeDark?: (props: typeof __VLS_107) => any;
|
|
79
|
+
} & {
|
|
80
|
+
iconThemeLight?: (props: typeof __VLS_109) => any;
|
|
81
|
+
} & {
|
|
82
|
+
openFileTool?: (props: typeof __VLS_114) => any;
|
|
83
|
+
} & {
|
|
84
|
+
iconOpenFile?: (props: typeof __VLS_116) => any;
|
|
85
|
+
} & {
|
|
86
|
+
downloadTool?: (props: typeof __VLS_121) => any;
|
|
87
|
+
} & {
|
|
88
|
+
iconDownload?: (props: typeof __VLS_123) => any;
|
|
89
|
+
} & {
|
|
90
|
+
printTool?: (props: typeof __VLS_128) => any;
|
|
91
|
+
} & {
|
|
92
|
+
iconPrint?: (props: typeof __VLS_130) => any;
|
|
93
|
+
} & {
|
|
94
|
+
fullScreenTool?: (props: typeof __VLS_135) => any;
|
|
95
|
+
} & {
|
|
96
|
+
iconFullScreen?: (props: typeof __VLS_137) => any;
|
|
97
|
+
} & {
|
|
98
|
+
iconMoreOptions?: (props: typeof __VLS_150) => any;
|
|
99
|
+
} & {
|
|
100
|
+
iconFirstPage?: (props: typeof __VLS_152) => any;
|
|
101
|
+
} & {
|
|
102
|
+
iconLastPage?: (props: typeof __VLS_154) => any;
|
|
103
|
+
} & {
|
|
104
|
+
iconRotateClockwise?: (props: typeof __VLS_156) => any;
|
|
105
|
+
} & {
|
|
106
|
+
iconRotateCounterClockwise?: (props: typeof __VLS_158) => any;
|
|
107
|
+
} & {
|
|
108
|
+
iconTextSelection?: (props: typeof __VLS_160) => any;
|
|
109
|
+
} & {
|
|
110
|
+
iconHandMode?: (props: typeof __VLS_162) => any;
|
|
111
|
+
} & {
|
|
112
|
+
iconScrollingPage?: (props: typeof __VLS_164) => any;
|
|
113
|
+
} & {
|
|
114
|
+
iconScrollingVertical?: (props: typeof __VLS_166) => any;
|
|
115
|
+
} & {
|
|
116
|
+
iconScrollingHorizontal?: (props: typeof __VLS_168) => any;
|
|
117
|
+
} & {
|
|
118
|
+
iconScrollingWrapped?: (props: typeof __VLS_170) => any;
|
|
119
|
+
} & {
|
|
120
|
+
iconPageViewSingle?: (props: typeof __VLS_172) => any;
|
|
121
|
+
} & {
|
|
122
|
+
iconPageViewDual?: (props: typeof __VLS_174) => any;
|
|
123
|
+
} & {
|
|
124
|
+
iconPageViewDualWithCover?: (props: typeof __VLS_176) => any;
|
|
125
|
+
} & {
|
|
126
|
+
iconDocProperties?: (props: typeof __VLS_178) => any;
|
|
127
|
+
} & {
|
|
128
|
+
thumbnailTool?: (props: typeof __VLS_183) => any;
|
|
129
|
+
} & {
|
|
130
|
+
iconThumbnail?: (props: typeof __VLS_185) => any;
|
|
131
|
+
} & {
|
|
132
|
+
pageOverlay?: (props: typeof __VLS_213) => any;
|
|
133
|
+
} & {
|
|
134
|
+
pageOverlay?: (props: typeof __VLS_223) => any;
|
|
135
|
+
};
|
|
136
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
137
|
+
src: {
|
|
138
|
+
readonly type: import("vue").PropType<import("@/utils/types").VPVSrc | string>;
|
|
441
139
|
readonly required: true;
|
|
442
140
|
};
|
|
443
|
-
|
|
141
|
+
workerUrl: {
|
|
444
142
|
readonly type: import("vue").PropType<string>;
|
|
445
143
|
readonly default: undefined;
|
|
446
144
|
};
|
|
447
|
-
|
|
145
|
+
initialPage: {
|
|
448
146
|
readonly type: import("vue").PropType<number>;
|
|
449
147
|
readonly default: () => number;
|
|
450
148
|
};
|
|
451
|
-
|
|
149
|
+
initialScale: {
|
|
452
150
|
readonly type: import("vue").PropType<number | ZoomLevel>;
|
|
453
151
|
readonly default: () => ZoomLevel;
|
|
454
152
|
};
|
|
455
|
-
|
|
153
|
+
scrollMode: {
|
|
456
154
|
readonly type: import("vue").PropType<ScrollMode>;
|
|
457
155
|
readonly validator: (scrollMode: ScrollMode, args: unknown) => boolean;
|
|
458
156
|
};
|
|
459
|
-
|
|
157
|
+
viewMode: {
|
|
460
158
|
readonly type: import("vue").PropType<ViewMode>;
|
|
461
159
|
readonly validator: (viewMode: ViewMode, args: unknown) => boolean;
|
|
462
160
|
};
|
|
463
|
-
|
|
161
|
+
initialScrollMode: {
|
|
464
162
|
readonly type: import("vue").PropType<ScrollMode>;
|
|
465
163
|
readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
|
|
466
164
|
};
|
|
467
|
-
|
|
165
|
+
initialViewMode: {
|
|
468
166
|
readonly type: import("vue").PropType<ViewMode>;
|
|
469
167
|
readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
|
|
470
168
|
};
|
|
471
|
-
|
|
169
|
+
initialRotation: {
|
|
472
170
|
readonly type: import("vue").PropType<number>;
|
|
473
171
|
readonly default: () => number;
|
|
474
172
|
};
|
|
475
|
-
|
|
173
|
+
initialThumbnailsVisible: {
|
|
476
174
|
readonly type: import("vue").PropType<boolean>;
|
|
477
175
|
readonly default: undefined;
|
|
478
176
|
};
|
|
479
|
-
|
|
177
|
+
textLayer: {
|
|
480
178
|
readonly type: import("vue").PropType<boolean>;
|
|
481
179
|
readonly default: () => boolean;
|
|
482
180
|
};
|
|
483
|
-
|
|
181
|
+
selectionMode: {
|
|
484
182
|
readonly type: import("vue").PropType<SelectionMode>;
|
|
485
183
|
readonly default: undefined;
|
|
486
184
|
};
|
|
487
|
-
|
|
185
|
+
characterMap: {
|
|
488
186
|
readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
|
|
489
187
|
readonly default: undefined;
|
|
490
188
|
};
|
|
491
|
-
|
|
492
|
-
readonly type: import("vue").PropType<
|
|
189
|
+
toolbarOptions: {
|
|
190
|
+
readonly type: import("vue").PropType<Partial<ToolbarOptions> | false>;
|
|
493
191
|
readonly default: () => ToolbarOptions;
|
|
494
192
|
};
|
|
495
|
-
|
|
193
|
+
localization: {
|
|
496
194
|
readonly type: import("vue").PropType<Record<string, Localization>>;
|
|
497
195
|
readonly default: () => Record<string, Localization>;
|
|
498
196
|
};
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Free & Freemium cannot utilize other props except `src`
|
|
502
|
-
*/
|
|
197
|
+
initialSearch: {
|
|
503
198
|
readonly type: StringConstructor;
|
|
504
199
|
readonly default: undefined;
|
|
505
200
|
};
|
|
506
|
-
|
|
201
|
+
afterCanvasLoaded: {
|
|
507
202
|
readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
|
|
508
203
|
readonly default: undefined;
|
|
509
204
|
};
|
|
510
|
-
|
|
511
|
-
readonly type: import("vue").PropType<import("@/utils/types").TextHighlight
|
|
205
|
+
textHighlights: {
|
|
206
|
+
readonly type: import("vue").PropType<Array<import("@/utils/types").TextHighlight>>;
|
|
512
207
|
readonly default: undefined;
|
|
513
|
-
readonly validator: (value: import("@/utils/types").TextHighlight
|
|
208
|
+
readonly validator: (value: Array<import("@/utils/types").TextHighlight>) => boolean;
|
|
514
209
|
};
|
|
515
|
-
|
|
210
|
+
downloadFilename: {
|
|
516
211
|
readonly type: StringConstructor;
|
|
517
212
|
readonly default: undefined;
|
|
518
213
|
};
|
|
519
|
-
|
|
214
|
+
plugins: {
|
|
520
215
|
readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[]>;
|
|
521
216
|
readonly default: undefined;
|
|
522
217
|
};
|
|
523
|
-
|
|
218
|
+
documentOptions: {
|
|
524
219
|
readonly type: import("vue").PropType<import("@/utils/types").PDFDocumentOptions>;
|
|
525
220
|
readonly default: undefined;
|
|
526
221
|
};
|
|
527
|
-
|
|
222
|
+
showPasswordModal: {
|
|
528
223
|
readonly type: import("vue").PropType<boolean>;
|
|
529
224
|
readonly default: true;
|
|
530
225
|
};
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
onXfaLoaded?: (() => any) | undefined;
|
|
538
|
-
onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
|
|
539
|
-
onLoadError?: ((error: any) => any) | undefined;
|
|
540
|
-
onLoading?: (() => any) | undefined;
|
|
541
|
-
onLoadProgress?: ((progress: number) => any) | undefined;
|
|
542
|
-
onAfterGoToPage?: ((progress: number) => any) | undefined;
|
|
543
|
-
onPageChanged?: ((progress: number) => any) | undefined;
|
|
544
|
-
"onUpdate:scrollMode"?: ((scrollMode: ScrollMode) => any) | undefined;
|
|
545
|
-
"onUpdate:viewMode"?: ((viewMode: ViewMode) => any) | undefined;
|
|
546
|
-
onPasswordRequired?: ((payload: PasswordRequiredPayload) => any) | undefined;
|
|
547
|
-
onPasswordError?: (() => any) | undefined;
|
|
548
|
-
onPasswordSuccess?: (() => any) | undefined;
|
|
226
|
+
darkMode: {
|
|
227
|
+
type: import("vue").PropType<boolean>;
|
|
228
|
+
};
|
|
229
|
+
locale: {
|
|
230
|
+
type: import("vue").PropType<string>;
|
|
231
|
+
};
|
|
549
232
|
}>, {
|
|
550
233
|
highlightControl: {
|
|
551
234
|
highlight: (args: import("@/utils/types").TextHighlight[]) => Promise<Record<string, import("@/utils/types").MatchHighlightResult[]>>;
|
|
@@ -554,7 +237,7 @@ declare const _default: {
|
|
|
554
237
|
printControl: {
|
|
555
238
|
print: (options?: {
|
|
556
239
|
visibleDefaultProgress: boolean;
|
|
557
|
-
}
|
|
240
|
+
}) => Awaited<void>;
|
|
558
241
|
cancel: () => void;
|
|
559
242
|
onProgress?: ((progress: import("@/utils/types").PreparePrintProgress) => void) | undefined;
|
|
560
243
|
onError?: ((error: Error) => void) | undefined;
|
|
@@ -564,7 +247,8 @@ declare const _default: {
|
|
|
564
247
|
goToPage: (pageNumber: number) => void;
|
|
565
248
|
totalPages: number;
|
|
566
249
|
currentPage: number;
|
|
567
|
-
getTextContent: (pageNumber: number) => Promise<import("pdfjs-dist/types/src/display/api").TextContent> | undefined;
|
|
250
|
+
getTextContent: (pageNumber: number) => Promise<import("pdfjs-dist/types/src/display/api.js").TextContent> | undefined;
|
|
251
|
+
rotatePage: (pageNumber: number, degree: 90 | 180 | 270 | -90 | ((currentDegree: number) => 90 | 180 | 270 | -90)) => void;
|
|
568
252
|
};
|
|
569
253
|
searchControl: {
|
|
570
254
|
searchMatches: {
|
|
@@ -592,7 +276,7 @@ declare const _default: {
|
|
|
592
276
|
currentRotation: number;
|
|
593
277
|
};
|
|
594
278
|
downloadControl: {
|
|
595
|
-
download: () => void
|
|
279
|
+
download: () => Awaited<void>;
|
|
596
280
|
getBlob: () => Promise<{
|
|
597
281
|
blob: Blob;
|
|
598
282
|
filename: string;
|
|
@@ -603,145 +287,174 @@ declare const _default: {
|
|
|
603
287
|
zoomControl: {
|
|
604
288
|
scale: number;
|
|
605
289
|
zoom: (scale: number | ZoomLevel, options?: {
|
|
606
|
-
immediate?: boolean
|
|
607
|
-
origin?: [number, number]
|
|
608
|
-
}
|
|
290
|
+
immediate?: boolean;
|
|
291
|
+
origin?: [number, number];
|
|
292
|
+
}) => void;
|
|
609
293
|
};
|
|
610
294
|
passwordControl: {
|
|
611
295
|
submitPassword: (password: string) => Promise<boolean>;
|
|
612
296
|
};
|
|
613
297
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
614
298
|
annotation: (data: AnnotationEventPayload) => void;
|
|
615
|
-
} & {
|
|
616
299
|
loaded: (properties?: PdfProperties | undefined) => void;
|
|
617
|
-
} & {
|
|
618
300
|
loadError: (error: any) => void;
|
|
619
|
-
} & {
|
|
620
301
|
loading: () => void;
|
|
621
|
-
} & {
|
|
622
302
|
loadProgress: (progress: number) => void;
|
|
623
|
-
|
|
303
|
+
afterGoToPage: (progress: number) => void;
|
|
304
|
+
pageChanged: (progress: number) => void;
|
|
624
305
|
textLoaded: (data: TextLayerLoadedEventPayload) => void;
|
|
625
|
-
} & {
|
|
626
306
|
annotationLoaded: (annotations: any[]) => void;
|
|
627
|
-
} & {
|
|
628
307
|
xfaLoaded: () => void;
|
|
629
|
-
} & {
|
|
630
308
|
rotate: (rotateEvent: RotateEvent) => void;
|
|
631
|
-
} & {
|
|
632
309
|
scroll: (scrollEvent: Event) => void;
|
|
633
|
-
} & {
|
|
634
310
|
"update:scrollMode": (scrollMode: ScrollMode) => void;
|
|
635
|
-
} & {
|
|
636
311
|
"update:viewMode": (viewMode: ViewMode) => void;
|
|
637
|
-
} & {
|
|
638
312
|
passwordRequired: (payload: PasswordRequiredPayload) => void;
|
|
639
|
-
} & {
|
|
640
313
|
passwordError: () => void;
|
|
641
|
-
} & {
|
|
642
314
|
passwordSuccess: () => void;
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
315
|
+
"update:darkMode": (value: boolean) => void;
|
|
316
|
+
"update:locale": (value: string) => void;
|
|
317
|
+
"update:selectionMode": (value: SelectionMode) => void;
|
|
318
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
319
|
+
src: {
|
|
320
|
+
readonly type: import("vue").PropType<import("@/utils/types").VPVSrc | string>;
|
|
321
|
+
readonly required: true;
|
|
322
|
+
};
|
|
323
|
+
workerUrl: {
|
|
324
|
+
readonly type: import("vue").PropType<string>;
|
|
325
|
+
readonly default: undefined;
|
|
326
|
+
};
|
|
327
|
+
initialPage: {
|
|
328
|
+
readonly type: import("vue").PropType<number>;
|
|
329
|
+
readonly default: () => number;
|
|
330
|
+
};
|
|
331
|
+
initialScale: {
|
|
332
|
+
readonly type: import("vue").PropType<number | ZoomLevel>;
|
|
333
|
+
readonly default: () => ZoomLevel;
|
|
334
|
+
};
|
|
335
|
+
scrollMode: {
|
|
336
|
+
readonly type: import("vue").PropType<ScrollMode>;
|
|
337
|
+
readonly validator: (scrollMode: ScrollMode, args: unknown) => boolean;
|
|
338
|
+
};
|
|
339
|
+
viewMode: {
|
|
340
|
+
readonly type: import("vue").PropType<ViewMode>;
|
|
341
|
+
readonly validator: (viewMode: ViewMode, args: unknown) => boolean;
|
|
342
|
+
};
|
|
343
|
+
initialScrollMode: {
|
|
344
|
+
readonly type: import("vue").PropType<ScrollMode>;
|
|
345
|
+
readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
|
|
346
|
+
};
|
|
347
|
+
initialViewMode: {
|
|
348
|
+
readonly type: import("vue").PropType<ViewMode>;
|
|
349
|
+
readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
|
|
350
|
+
};
|
|
351
|
+
initialRotation: {
|
|
352
|
+
readonly type: import("vue").PropType<number>;
|
|
353
|
+
readonly default: () => number;
|
|
354
|
+
};
|
|
355
|
+
initialThumbnailsVisible: {
|
|
356
|
+
readonly type: import("vue").PropType<boolean>;
|
|
357
|
+
readonly default: undefined;
|
|
358
|
+
};
|
|
359
|
+
textLayer: {
|
|
360
|
+
readonly type: import("vue").PropType<boolean>;
|
|
361
|
+
readonly default: () => boolean;
|
|
362
|
+
};
|
|
363
|
+
selectionMode: {
|
|
364
|
+
readonly type: import("vue").PropType<SelectionMode>;
|
|
365
|
+
readonly default: undefined;
|
|
366
|
+
};
|
|
367
|
+
characterMap: {
|
|
368
|
+
readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
|
|
369
|
+
readonly default: undefined;
|
|
370
|
+
};
|
|
371
|
+
toolbarOptions: {
|
|
372
|
+
readonly type: import("vue").PropType<Partial<ToolbarOptions> | false>;
|
|
373
|
+
readonly default: () => ToolbarOptions;
|
|
374
|
+
};
|
|
375
|
+
localization: {
|
|
376
|
+
readonly type: import("vue").PropType<Record<string, Localization>>;
|
|
377
|
+
readonly default: () => Record<string, Localization>;
|
|
378
|
+
};
|
|
379
|
+
initialSearch: {
|
|
380
|
+
readonly type: StringConstructor;
|
|
381
|
+
readonly default: undefined;
|
|
382
|
+
};
|
|
383
|
+
afterCanvasLoaded: {
|
|
384
|
+
readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
|
|
385
|
+
readonly default: undefined;
|
|
386
|
+
};
|
|
387
|
+
textHighlights: {
|
|
388
|
+
readonly type: import("vue").PropType<Array<import("@/utils/types").TextHighlight>>;
|
|
389
|
+
readonly default: undefined;
|
|
390
|
+
readonly validator: (value: Array<import("@/utils/types").TextHighlight>) => boolean;
|
|
391
|
+
};
|
|
392
|
+
downloadFilename: {
|
|
393
|
+
readonly type: StringConstructor;
|
|
394
|
+
readonly default: undefined;
|
|
395
|
+
};
|
|
396
|
+
plugins: {
|
|
397
|
+
readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[]>;
|
|
398
|
+
readonly default: undefined;
|
|
399
|
+
};
|
|
400
|
+
documentOptions: {
|
|
401
|
+
readonly type: import("vue").PropType<import("@/utils/types").PDFDocumentOptions>;
|
|
402
|
+
readonly default: undefined;
|
|
403
|
+
};
|
|
404
|
+
showPasswordModal: {
|
|
405
|
+
readonly type: import("vue").PropType<boolean>;
|
|
406
|
+
readonly default: true;
|
|
407
|
+
};
|
|
408
|
+
darkMode: {
|
|
409
|
+
type: import("vue").PropType<boolean>;
|
|
410
|
+
};
|
|
411
|
+
locale: {
|
|
412
|
+
type: import("vue").PropType<string>;
|
|
413
|
+
};
|
|
414
|
+
}>> & Readonly<{
|
|
415
|
+
onScroll?: ((scrollEvent: Event) => any) | undefined;
|
|
416
|
+
onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
|
|
417
|
+
onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
|
|
418
|
+
onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
|
|
419
|
+
onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
|
|
420
|
+
onXfaLoaded?: (() => any) | undefined;
|
|
421
|
+
"onUpdate:darkMode"?: ((value: boolean) => any) | undefined;
|
|
422
|
+
"onUpdate:locale"?: ((value: string) => any) | undefined;
|
|
423
|
+
"onUpdate:selectionMode"?: ((value: SelectionMode) => any) | undefined;
|
|
424
|
+
onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
|
|
425
|
+
onLoadError?: ((error: any) => any) | undefined;
|
|
426
|
+
onLoading?: (() => any) | undefined;
|
|
427
|
+
onLoadProgress?: ((progress: number) => any) | undefined;
|
|
428
|
+
onAfterGoToPage?: ((progress: number) => any) | undefined;
|
|
429
|
+
onPageChanged?: ((progress: number) => any) | undefined;
|
|
430
|
+
"onUpdate:scrollMode"?: ((scrollMode: ScrollMode) => any) | undefined;
|
|
431
|
+
"onUpdate:viewMode"?: ((viewMode: ViewMode) => any) | undefined;
|
|
432
|
+
onPasswordRequired?: ((payload: PasswordRequiredPayload) => any) | undefined;
|
|
433
|
+
onPasswordError?: (() => any) | undefined;
|
|
434
|
+
onPasswordSuccess?: (() => any) | undefined;
|
|
435
|
+
}>, {
|
|
436
|
+
workerUrl: string;
|
|
437
|
+
initialPage: number;
|
|
438
|
+
initialScale: number | ZoomLevel;
|
|
439
|
+
initialRotation: number;
|
|
440
|
+
initialThumbnailsVisible: boolean;
|
|
441
|
+
initialSearch: string;
|
|
442
|
+
textLayer: boolean;
|
|
443
|
+
selectionMode: SelectionMode;
|
|
444
|
+
characterMap: import("@/utils/types").CharacterMap;
|
|
445
|
+
toolbarOptions: false | Partial<ToolbarOptions>;
|
|
446
|
+
localization: Record<string, Localization>;
|
|
447
|
+
afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
|
|
448
|
+
textHighlights: import("@/utils/types").TextHighlight[];
|
|
449
|
+
plugins: import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[];
|
|
450
|
+
documentOptions: import("@/utils/types").PDFDocumentOptions;
|
|
451
|
+
downloadFilename: string;
|
|
452
|
+
showPasswordModal: boolean;
|
|
453
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
454
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
747
455
|
export default _default;
|
|
456
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
457
|
+
new (): {
|
|
458
|
+
$slots: S;
|
|
459
|
+
};
|
|
460
|
+
};
|