@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.
Files changed (138) hide show
  1. 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
  2. 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
  3. package/dist/{index-D1HreucU.cjs → index-B2bnNcQK.cjs} +1 -1
  4. package/dist/{index-DQJPH6A2.js → index-BAl2kzgK.js} +1 -1
  5. package/dist/index.cjs +16 -16
  6. package/dist/index.js +5513 -5490
  7. package/dist/license.cjs +1 -1
  8. package/dist/license.js +1 -1
  9. package/dist/types/components/AppButton.vue.d.ts +11 -17
  10. package/dist/types/components/AppColorPicker.vue.d.ts +11 -14
  11. package/dist/types/components/AppFormControl.vue.d.ts +6 -24
  12. package/dist/types/components/AppIcon.vue.d.ts +3 -13
  13. package/dist/types/components/AppInput.vue.d.ts +1 -10
  14. package/dist/types/components/AppLoader.vue.d.ts +13 -18
  15. package/dist/types/components/AppPopover.vue.d.ts +21 -76
  16. package/dist/types/components/AppTooltip.vue.d.ts +14 -31
  17. package/dist/types/components/ColorButton.vue.d.ts +10 -13
  18. package/dist/types/components/DragFileMask.vue.d.ts +11 -45
  19. package/dist/types/components/FreeTextPanel.vue.d.ts +9 -1
  20. package/dist/types/components/FreeTextPanelFontColors.vue.d.ts +8 -1
  21. package/dist/types/components/FreeTextPanelFontFamilySelector.vue.d.ts +8 -1
  22. package/dist/types/components/FreeTextPanelFontSizeSelector.vue.d.ts +8 -1
  23. package/dist/types/components/LayerAnnotation.vue.d.ts +15 -36
  24. package/dist/types/components/LayerAnnotationEditor.vue.d.ts +3 -18
  25. package/dist/types/components/LayerAnnotationEditorFreeText.vue.d.ts +20 -31
  26. package/dist/types/components/LayerAnnotationEditorFreeTextItem.vue.d.ts +8 -19
  27. package/dist/types/components/LayerAnnotationEditorHighlight.vue.d.ts +22 -31
  28. package/dist/types/components/LayerAnnotationEditorHighlightItem.vue.d.ts +3 -18
  29. package/dist/types/components/LayerAnnotationEditorImage.vue.d.ts +13 -20
  30. package/dist/types/components/LayerAnnotationEditorTextSelectionItem.vue.d.ts +7 -18
  31. package/dist/types/components/LayerAnnotationEditorTextSelectionItemMenu.vue.d.ts +15 -19
  32. package/dist/types/components/LayerAnnotationStampResizer.vue.d.ts +7 -17
  33. package/dist/types/components/LayerCanvas.vue.d.ts +5 -13
  34. package/dist/types/components/LayerCanvasDetail.vue.d.ts +1 -10
  35. package/dist/types/components/LayerOverlay.vue.d.ts +15 -35
  36. package/dist/types/components/LayerText.vue.d.ts +9 -23
  37. package/dist/types/components/LayerTextHighlight.vue.d.ts +1 -10
  38. package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +1 -10
  39. package/dist/types/components/LayerXFA.vue.d.ts +10 -21
  40. package/dist/types/components/ModalPassword.vue.d.ts +11 -14
  41. package/dist/types/components/ModalPdfProperties.vue.d.ts +4 -13
  42. package/dist/types/components/ModalPrintLoadingProgress.vue.d.ts +4 -13
  43. package/dist/types/components/SwitchAppearance.vue.d.ts +25 -22
  44. package/dist/types/components/ToolCommentPanel.vue.d.ts +24 -29
  45. package/dist/types/components/ToolDownload.vue.d.ts +15 -20
  46. package/dist/types/components/ToolFullscreen.vue.d.ts +16 -21
  47. package/dist/types/components/ToolMenuOthers.vue.d.ts +37 -76
  48. package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +7 -12
  49. package/dist/types/components/ToolOpenFile.vue.d.ts +15 -20
  50. package/dist/types/components/ToolOpenFileInput.vue.d.ts +3 -4
  51. package/dist/types/components/ToolPagination.vue.d.ts +26 -60
  52. package/dist/types/components/ToolPrint.vue.d.ts +10 -27
  53. package/dist/types/components/ToolSearch.vue.d.ts +23 -57
  54. package/dist/types/components/ToolThumbnail.vue.d.ts +13 -36
  55. package/dist/types/components/ToolZoom.vue.d.ts +21 -45
  56. package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +7 -18
  57. package/dist/types/components/VPdfComments.vue.d.ts +6 -17
  58. package/dist/types/components/VPdfCommentsDate.vue.d.ts +3 -13
  59. package/dist/types/components/VPdfCommentsHeader.vue.d.ts +3 -13
  60. package/dist/types/components/VPdfCommentsIcon.vue.d.ts +3 -13
  61. package/dist/types/components/VPdfCommentsReplies.vue.d.ts +3 -13
  62. package/dist/types/components/VPdfCommentsSidebar.vue.d.ts +3 -4
  63. package/dist/types/components/VPdfCommentsText.vue.d.ts +11 -1
  64. package/dist/types/components/VPdfPage.vue.d.ts +16 -55
  65. package/dist/types/components/VPdfThumbnail.vue.d.ts +6 -17
  66. package/dist/types/components/VPdfThumbnails.vue.d.ts +6 -15
  67. package/dist/types/components/VPdfViewer.vue.d.ts +317 -604
  68. package/dist/types/components/ui/button/Button.vue.d.ts +8 -41
  69. package/dist/types/components/ui/button/index.d.ts +1 -1
  70. package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +15 -29
  71. package/dist/types/components/ui/collapsible/Collapsible.vue.d.ts +15 -26
  72. package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +9 -24
  73. package/dist/types/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +9 -24
  74. package/dist/types/components/ui/dialog/Dialog.vue.d.ts +13 -24
  75. package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +9 -24
  76. package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +25 -29
  77. package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +11 -29
  78. package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +11 -29
  79. package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +11 -29
  80. package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +11 -29
  81. package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +9 -24
  82. package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +13 -24
  83. package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +17 -29
  84. package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +23 -44
  85. package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +9 -24
  86. package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +13 -35
  87. package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +12 -32
  88. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +13 -24
  89. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +16 -32
  90. package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +3 -13
  91. package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +11 -29
  92. package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +13 -24
  93. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +27 -29
  94. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +11 -29
  95. package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +9 -24
  96. package/dist/types/components/ui/input/Input.vue.d.ts +4 -13
  97. package/dist/types/components/ui/popover/Popover.vue.d.ts +13 -24
  98. package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +27 -55
  99. package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +9 -24
  100. package/dist/types/components/ui/progress/Progress.vue.d.ts +4 -23
  101. package/dist/types/components/ui/select/Select.vue.d.ts +16 -24
  102. package/dist/types/components/ui/select/SelectContent.vue.d.ts +21 -48
  103. package/dist/types/components/ui/select/SelectGroup.vue.d.ts +11 -29
  104. package/dist/types/components/ui/select/SelectItem.vue.d.ts +11 -29
  105. package/dist/types/components/ui/select/SelectItemText.vue.d.ts +9 -24
  106. package/dist/types/components/ui/select/SelectLabel.vue.d.ts +11 -29
  107. package/dist/types/components/ui/select/SelectScrollDownButton.vue.d.ts +11 -29
  108. package/dist/types/components/ui/select/SelectScrollUpButton.vue.d.ts +11 -29
  109. package/dist/types/components/ui/select/SelectSeparator.vue.d.ts +3 -13
  110. package/dist/types/components/ui/select/SelectTrigger.vue.d.ts +11 -29
  111. package/dist/types/components/ui/select/SelectValue.vue.d.ts +9 -24
  112. package/dist/types/components/ui/toast/Toast.vue.d.ts +91 -24
  113. package/dist/types/components/ui/toast/ToastAction.vue.d.ts +11 -29
  114. package/dist/types/components/ui/toast/ToastClose.vue.d.ts +3 -13
  115. package/dist/types/components/ui/toast/ToastDescription.vue.d.ts +11 -29
  116. package/dist/types/components/ui/toast/ToastProvider.vue.d.ts +9 -24
  117. package/dist/types/components/ui/toast/ToastTitle.vue.d.ts +11 -29
  118. package/dist/types/components/ui/toast/ToastViewport.vue.d.ts +3 -13
  119. package/dist/types/components/ui/toast/index.d.ts +1 -1
  120. package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +13 -24
  121. package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +17 -44
  122. package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +9 -24
  123. package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +9 -24
  124. package/dist/types/composables/useAnnotationFreeText.d.ts +454 -248
  125. package/dist/types/composables/useAnnotationHighlight.d.ts +288 -178
  126. package/dist/types/composables/useAnnotationStamp.d.ts +344 -212
  127. package/dist/types/composables/useAnnotationStrikethrough.d.ts +326 -216
  128. package/dist/types/composables/useAnnotationUnderline.d.ts +326 -216
  129. package/dist/types/composables/useDownload.d.ts +1 -1
  130. package/dist/types/composables/usePinch.d.ts +2 -2
  131. package/dist/types/composables/usePrintControl.d.ts +1 -1
  132. package/dist/types/composables/useRotation.d.ts +1 -1
  133. package/dist/types/composables/useScale.d.ts +4 -4
  134. package/dist/types/const.d.ts +30 -1065
  135. package/dist/types/utils/CanvasRender.d.ts +0 -1
  136. package/dist/types/utils/searchHighlight.d.ts +1 -1
  137. package/dist/types/utils/types.d.ts +4 -3
  138. 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 const _default: {
7
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
8
- readonly src: {
9
- readonly type: import("vue").PropType<string | import("@/utils/types").VPVSrc>;
10
- readonly required: true;
11
- };
12
- readonly workerUrl: {
13
- readonly type: import("vue").PropType<string>;
14
- readonly default: undefined;
15
- };
16
- readonly initialPage: {
17
- readonly type: import("vue").PropType<number>;
18
- readonly default: () => number;
19
- };
20
- readonly initialScale: {
21
- readonly type: import("vue").PropType<number | ZoomLevel>;
22
- readonly default: () => ZoomLevel;
23
- };
24
- readonly scrollMode: {
25
- readonly type: import("vue").PropType<ScrollMode>;
26
- readonly validator: (scrollMode: ScrollMode, args: unknown) => boolean;
27
- };
28
- readonly viewMode: {
29
- readonly type: import("vue").PropType<ViewMode>;
30
- readonly validator: (viewMode: ViewMode, args: unknown) => boolean;
31
- };
32
- readonly initialScrollMode: {
33
- readonly type: import("vue").PropType<ScrollMode>;
34
- readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
35
- };
36
- readonly initialViewMode: {
37
- readonly type: import("vue").PropType<ViewMode>;
38
- readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
39
- };
40
- readonly initialRotation: {
41
- readonly type: import("vue").PropType<number>;
42
- readonly default: () => number;
43
- };
44
- readonly initialThumbnailsVisible: {
45
- readonly type: import("vue").PropType<boolean>;
46
- readonly default: undefined;
47
- };
48
- readonly textLayer: {
49
- readonly type: import("vue").PropType<boolean>;
50
- readonly default: () => boolean;
51
- };
52
- readonly selectionMode: {
53
- readonly type: import("vue").PropType<SelectionMode>;
54
- readonly default: undefined;
55
- };
56
- readonly characterMap: {
57
- readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
58
- readonly default: undefined;
59
- };
60
- readonly toolbarOptions: {
61
- readonly type: import("vue").PropType<false | Partial<ToolbarOptions>>;
62
- readonly default: () => ToolbarOptions;
63
- };
64
- readonly localization: {
65
- readonly type: import("vue").PropType<Record<string, Localization>>;
66
- readonly default: () => Record<string, Localization>;
67
- };
68
- readonly initialSearch: {
69
- /**
70
- * Free & Freemium cannot utilize other props except `src`
71
- */
72
- readonly type: StringConstructor;
73
- readonly default: undefined;
74
- };
75
- readonly afterCanvasLoaded: {
76
- readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
77
- readonly default: undefined;
78
- };
79
- readonly textHighlights: {
80
- readonly type: import("vue").PropType<import("@/utils/types").TextHighlight[]>;
81
- readonly default: undefined;
82
- readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
83
- };
84
- readonly downloadFilename: {
85
- readonly type: StringConstructor;
86
- readonly default: undefined;
87
- };
88
- readonly plugins: {
89
- readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[]>;
90
- readonly default: undefined;
91
- };
92
- readonly documentOptions: {
93
- readonly type: import("vue").PropType<import("@/utils/types").PDFDocumentOptions>;
94
- readonly default: undefined;
95
- };
96
- readonly showPasswordModal: {
97
- readonly type: import("vue").PropType<boolean>;
98
- readonly default: true;
99
- };
100
- }>> & Readonly<{
101
- onScroll?: ((scrollEvent: Event) => any) | undefined;
102
- onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
103
- onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
104
- onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
105
- onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
106
- onXfaLoaded?: (() => any) | undefined;
107
- onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
108
- onLoadError?: ((error: any) => any) | undefined;
109
- onLoading?: (() => any) | undefined;
110
- onLoadProgress?: ((progress: number) => any) | undefined;
111
- onAfterGoToPage?: ((progress: number) => any) | undefined;
112
- onPageChanged?: ((progress: number) => any) | undefined;
113
- "onUpdate:scrollMode"?: ((scrollMode: ScrollMode) => any) | undefined;
114
- "onUpdate:viewMode"?: ((viewMode: ViewMode) => any) | undefined;
115
- onPasswordRequired?: ((payload: PasswordRequiredPayload) => any) | undefined;
116
- onPasswordError?: (() => any) | undefined;
117
- onPasswordSuccess?: (() => any) | undefined;
118
- }>, {
119
- highlightControl: {
120
- highlight: (args: import("@/utils/types").TextHighlight[]) => Promise<Record<string, import("@/utils/types").MatchHighlightResult[]>>;
121
- clear: () => void;
122
- };
123
- printControl: {
124
- print: (options?: {
125
- visibleDefaultProgress: boolean;
126
- } | undefined) => void;
127
- cancel: () => void;
128
- onProgress?: ((progress: import("@/utils/types").PreparePrintProgress) => void) | undefined;
129
- onError?: ((error: Error) => void) | undefined;
130
- onComplete?: (() => void) | undefined;
131
- };
132
- pageControl: {
133
- goToPage: (pageNumber: number) => void;
134
- totalPages: number;
135
- currentPage: number;
136
- getTextContent: (pageNumber: number) => Promise<import("pdfjs-dist/types/src/display/api").TextContent> | undefined;
137
- };
138
- searchControl: {
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
- readonly workerUrl: {
141
+ workerUrl: {
444
142
  readonly type: import("vue").PropType<string>;
445
143
  readonly default: undefined;
446
144
  };
447
- readonly initialPage: {
145
+ initialPage: {
448
146
  readonly type: import("vue").PropType<number>;
449
147
  readonly default: () => number;
450
148
  };
451
- readonly initialScale: {
149
+ initialScale: {
452
150
  readonly type: import("vue").PropType<number | ZoomLevel>;
453
151
  readonly default: () => ZoomLevel;
454
152
  };
455
- readonly scrollMode: {
153
+ scrollMode: {
456
154
  readonly type: import("vue").PropType<ScrollMode>;
457
155
  readonly validator: (scrollMode: ScrollMode, args: unknown) => boolean;
458
156
  };
459
- readonly viewMode: {
157
+ viewMode: {
460
158
  readonly type: import("vue").PropType<ViewMode>;
461
159
  readonly validator: (viewMode: ViewMode, args: unknown) => boolean;
462
160
  };
463
- readonly initialScrollMode: {
161
+ initialScrollMode: {
464
162
  readonly type: import("vue").PropType<ScrollMode>;
465
163
  readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
466
164
  };
467
- readonly initialViewMode: {
165
+ initialViewMode: {
468
166
  readonly type: import("vue").PropType<ViewMode>;
469
167
  readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
470
168
  };
471
- readonly initialRotation: {
169
+ initialRotation: {
472
170
  readonly type: import("vue").PropType<number>;
473
171
  readonly default: () => number;
474
172
  };
475
- readonly initialThumbnailsVisible: {
173
+ initialThumbnailsVisible: {
476
174
  readonly type: import("vue").PropType<boolean>;
477
175
  readonly default: undefined;
478
176
  };
479
- readonly textLayer: {
177
+ textLayer: {
480
178
  readonly type: import("vue").PropType<boolean>;
481
179
  readonly default: () => boolean;
482
180
  };
483
- readonly selectionMode: {
181
+ selectionMode: {
484
182
  readonly type: import("vue").PropType<SelectionMode>;
485
183
  readonly default: undefined;
486
184
  };
487
- readonly characterMap: {
185
+ characterMap: {
488
186
  readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
489
187
  readonly default: undefined;
490
188
  };
491
- readonly toolbarOptions: {
492
- readonly type: import("vue").PropType<false | Partial<ToolbarOptions>>;
189
+ toolbarOptions: {
190
+ readonly type: import("vue").PropType<Partial<ToolbarOptions> | false>;
493
191
  readonly default: () => ToolbarOptions;
494
192
  };
495
- readonly localization: {
193
+ localization: {
496
194
  readonly type: import("vue").PropType<Record<string, Localization>>;
497
195
  readonly default: () => Record<string, Localization>;
498
196
  };
499
- readonly initialSearch: {
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
- readonly afterCanvasLoaded: {
201
+ afterCanvasLoaded: {
507
202
  readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
508
203
  readonly default: undefined;
509
204
  };
510
- readonly textHighlights: {
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[]) => boolean;
208
+ readonly validator: (value: Array<import("@/utils/types").TextHighlight>) => boolean;
514
209
  };
515
- readonly downloadFilename: {
210
+ downloadFilename: {
516
211
  readonly type: StringConstructor;
517
212
  readonly default: undefined;
518
213
  };
519
- readonly plugins: {
214
+ plugins: {
520
215
  readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[]>;
521
216
  readonly default: undefined;
522
217
  };
523
- readonly documentOptions: {
218
+ documentOptions: {
524
219
  readonly type: import("vue").PropType<import("@/utils/types").PDFDocumentOptions>;
525
220
  readonly default: undefined;
526
221
  };
527
- readonly showPasswordModal: {
222
+ showPasswordModal: {
528
223
  readonly type: import("vue").PropType<boolean>;
529
224
  readonly default: true;
530
225
  };
531
- }>> & Readonly<{
532
- onScroll?: ((scrollEvent: Event) => any) | undefined;
533
- onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
534
- onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
535
- onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
536
- onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
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
- } | undefined) => void;
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 | undefined;
607
- origin?: [number, number] | undefined;
608
- } | undefined) => void;
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
- afterGoToPage: (progress: number) => void;
645
- } & {
646
- pageChanged: (progress: number) => void;
647
- }, string, {
648
- readonly workerUrl: string;
649
- readonly initialPage: number;
650
- readonly initialScale: number | ZoomLevel;
651
- readonly initialRotation: number;
652
- readonly initialThumbnailsVisible: boolean;
653
- readonly initialSearch: string;
654
- readonly textLayer: boolean;
655
- readonly selectionMode: SelectionMode;
656
- readonly characterMap: import("@/utils/types").CharacterMap;
657
- readonly toolbarOptions: false | Partial<ToolbarOptions>;
658
- readonly localization: Record<string, Localization>;
659
- readonly afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
660
- readonly textHighlights: import("@/utils/types").TextHighlight[];
661
- readonly plugins: import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[];
662
- readonly documentOptions: import("@/utils/types").PDFDocumentOptions;
663
- readonly downloadFilename: string;
664
- readonly showPasswordModal: boolean;
665
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
666
- $slots: {
667
- dropFileZone: (_: {
668
- isDark: boolean;
669
- }) => any;
670
- loader: (_: {
671
- progress: number;
672
- loaded: boolean;
673
- }) => any;
674
- loaderImage: (_: {}) => any;
675
- loaderProgress: (_: {
676
- progress: number;
677
- }) => any;
678
- iconSearch: (_: {}) => any;
679
- pageNavigationTool: (_: {
680
- total: number;
681
- current: number;
682
- onNext: () => void;
683
- onPrev: () => void;
684
- onChangePage: (pageNumber: number) => void;
685
- }) => any;
686
- iconPrevPage: (_: {}) => any;
687
- iconNextPage: (_: {}) => any;
688
- zoomTool: (_: {
689
- currentScale: number;
690
- zoom: (nextScale: number | ZoomLevel) => void;
691
- }) => any;
692
- iconZoomOut: (_: {}) => any;
693
- iconZoomIn: (_: {}) => any;
694
- commentPanelTool: (_: {
695
- onClick: () => void;
696
- }) => any;
697
- iconCommentPanel: (_: {}) => any;
698
- themeTool: (_: {
699
- isDark: boolean;
700
- onClick: () => void;
701
- }) => any;
702
- iconThemeDark: (_: {}) => any;
703
- iconThemeLight: (_: {}) => any;
704
- openFileTool: (_: {
705
- onClick: () => void;
706
- }) => any;
707
- iconOpenFile: (_: {}) => any;
708
- downloadTool: (_: {
709
- onClick: () => void;
710
- }) => any;
711
- iconDownload: (_: {}) => any;
712
- printTool: (_: {
713
- onClick: () => ((showProgress?: boolean | undefined) => Promise<void>) & Promise<void>;
714
- }) => any;
715
- iconPrint: (_: {}) => any;
716
- fullScreenTool: (_: {
717
- onClick: () => Promise<void>;
718
- isSupported: boolean;
719
- }) => any;
720
- iconFullScreen: (_: {}) => any;
721
- iconMoreOptions: (_: {}) => any;
722
- iconFirstPage: (_: {}) => any;
723
- iconLastPage: (_: {}) => any;
724
- iconRotateClockwise: (_: {}) => any;
725
- iconRotateCounterClockwise: (_: {}) => any;
726
- iconTextSelection: (_: {}) => any;
727
- iconHandMode: (_: {}) => any;
728
- iconScrollingPage: (_: {}) => any;
729
- iconScrollingVertical: (_: {}) => any;
730
- iconScrollingHorizontal: (_: {}) => any;
731
- iconScrollingWrapped: (_: {}) => any;
732
- iconPageViewSingle: (_: {}) => any;
733
- iconPageViewDual: (_: {}) => any;
734
- iconPageViewDualWithCover: (_: {}) => any;
735
- iconDocProperties: (_: {}) => any;
736
- thumbnailTool: (_: {
737
- onToggle: () => void;
738
- }) => any;
739
- iconThumbnail: (_: {}) => any;
740
- pageOverlay: (_: {
741
- pageIndex: number;
742
- scale: number;
743
- pageElement: HTMLElement | SVGElement | null | undefined;
744
- }) => any;
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
+ };