@vue-pdf-viewer/viewer 3.12.0-beta.2 → 4.0.0-beta.1

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 (199) hide show
  1. package/README.md +2 -2
  2. package/dist/{VPdfViewer.vue_vue_type_style_index_1_scoped_9b7953f5_lang-CANTRuxC.js → VPdfViewer.vue_vue_type_style_index_1_scoped_b89b6109_lang-CbVNExyD.js} +2152 -1960
  3. package/dist/VPdfViewer.vue_vue_type_style_index_1_scoped_b89b6109_lang-CgZy-lRD.cjs +48 -0
  4. package/dist/{annotation-circle-0ubo5rf1.js → annotation-circle-BQBy6tn3.js} +2 -2
  5. package/dist/{annotation-font-style-italic-DcGlIJ1a.js → annotation-font-style-italic-BcdR3gg4.js} +2 -2
  6. package/dist/{annotation-font-style-underline-BTkTZ_Is.js → annotation-font-style-underline-BIIeUL-E.js} +2 -2
  7. package/dist/{annotation-font-weight-bold-xwBIbXyc.js → annotation-font-weight-bold-BjNpYNH-.js} +2 -2
  8. package/dist/{annotation-font-weSbdjgD.js → annotation-font-zZyS-SlV.js} +2 -2
  9. package/dist/{annotation-freetext-CQ_RRlBQ.js → annotation-freetext-ej2f4XcK.js} +2 -2
  10. package/dist/{annotation-highlight-ChCnie-U.js → annotation-highlight-C0eb8QWg.js} +2 -2
  11. package/dist/{annotation-ink-AUjv0MoR.js → annotation-ink-yBnUj3B7.js} +2 -2
  12. package/dist/{annotation-line-DNXr-JOS.js → annotation-line-BUVRX9rx.js} +2 -2
  13. package/dist/{annotation-link-D-YgulsY.js → annotation-link-DoW9ZY_d.js} +2 -2
  14. package/dist/{annotation-signature-Bkex5Nk1.js → annotation-signature-pDvKQWlM.js} +2 -2
  15. package/dist/{annotation-square-BfIB5mW3.js → annotation-square-Bk2373TM.js} +2 -2
  16. package/dist/{annotation-squiggly-DeBMymIe.js → annotation-squiggly-YtuSed0x.js} +2 -2
  17. package/dist/{annotation-stamp-DWiWsYdA.js → annotation-stamp-C2wpc7h6.js} +2 -2
  18. package/dist/{annotation-strikeout-CWDrP0rU.js → annotation-strikeout-BGVZPNAE.js} +2 -2
  19. package/dist/{annotation-text-DeYYDSKn.js → annotation-text-BOIyodIU.js} +2 -2
  20. package/dist/{annotation-underline-CgwFacyd.js → annotation-underline-DoWqt0zo.js} +2 -2
  21. package/dist/{arrow-up-BiwEJddu.js → arrow-up-Ctk-zewR.js} +2 -2
  22. package/dist/{check-dvYcg6X_.js → check-DQCKtaYd.js} +2 -2
  23. package/dist/{chevron-down-CVDp3iv9.js → chevron-down-D4_y88NG.js} +2 -2
  24. package/dist/{clear-D0d0aXhI.js → clear-BiZkcsym.js} +2 -2
  25. package/dist/{close-IpbbaszX.js → close-IMkeZ8kc.js} +2 -2
  26. package/dist/{comment-panel-D6A8yNfw.js → comment-panel-BdDz1A7Q.js} +2 -2
  27. package/dist/{download-CMOMvnwF.js → download-DzjxbCsv.js} +2 -2
  28. package/dist/{drag-icon-3GRPy1Gk.js → drag-icon-DOmc0ruK.js} +2 -2
  29. package/dist/{drag-icon-dark-DXLtAf-Z.js → drag-icon-dark-KP2APQRZ.js} +2 -2
  30. package/dist/{ellipsis-vertical-BdPl_QKK.js → ellipsis-vertical-Be4cs0zL.js} +2 -2
  31. package/dist/{empty-comment-dark-BCCY0a2L.js → empty-comment-dark-C727VX0e.js} +2 -2
  32. package/dist/{empty-comment-light-B4FDCCnF.js → empty-comment-light-C_MCSiSZ.js} +2 -2
  33. package/dist/{file-HYz_W_Bn.js → file-DxJhIWIs.js} +2 -2
  34. package/dist/{first-page-DF2-f8F5.js → first-page-D6g7jaNj.js} +2 -2
  35. package/dist/{fullscreen-DxRYZ3Qt.js → fullscreen-BbC1XVkp.js} +2 -2
  36. package/dist/{hand-CgNhcMPW.js → hand-BDnbYf2g.js} +2 -2
  37. package/dist/{index-BAHQSucx.js → index-D9-DcVaR.js} +1995 -1967
  38. package/dist/index-XDzAKC8V.cjs +27 -0
  39. package/dist/index.cjs +19 -19
  40. package/dist/index.js +13601 -13502
  41. package/dist/{info-CssPzj9L.js → info-CPe9YuhZ.js} +2 -2
  42. package/dist/{last-page-DrYSRMe5.js → last-page-DP_aiVT6.js} +2 -2
  43. package/dist/lib/assets/pdf-legacy/pdf.worker.min.mjs +8 -1
  44. package/dist/lib/assets/pdf.worker.min.mjs +8 -1
  45. package/dist/license.cjs +1 -1
  46. package/dist/license.js +1 -1
  47. package/dist/{magnifier-DQHbDi_X.js → magnifier-C_YQ-_dk.js} +2 -2
  48. package/dist/{moon-DXlgBCWH.js → moon-CFoAH0E8.js} +2 -2
  49. package/dist/{page-view-dual-CeQyiqfI.js → page-view-dual-Bvx14KbJ.js} +2 -2
  50. package/dist/{page-view-dual-with-cover-BT5sW_cl.js → page-view-dual-with-cover-DIHiS3rt.js} +2 -2
  51. package/dist/{page-view-single-Cp9W1OUV.js → page-view-single-srjCDw_P.js} +2 -2
  52. package/dist/{pointer-BppCj8EV.js → pointer-DDPsuK9z.js} +2 -2
  53. package/dist/{printer-BFl4fVY9.js → printer-C2onvDqO.js} +2 -2
  54. package/dist/{rotate-counter-clockwise-C4VIpGoU.js → rotate-counter-clockwise-d9-d6DQu.js} +2 -2
  55. package/dist/{scrolling-horizontal-CLl5lWK8.js → scrolling-horizontal-av5LVY8f.js} +2 -2
  56. package/dist/{scrolling-page-C5NJekbJ.js → scrolling-page-Cc6u7H1t.js} +2 -2
  57. package/dist/{scrolling-vertical-DjEDpf4E.js → scrolling-vertical-dsX3d6Yv.js} +2 -2
  58. package/dist/{scrolling-wrapped-BYH7Nvoa.js → scrolling-wrapped-BwcsO1WS.js} +2 -2
  59. package/dist/{sun-gPHy98wE.js → sun-3lZB5S__.js} +2 -2
  60. package/dist/{thumbnail-BIBuAei4.js → thumbnail-CIo49MEr.js} +2 -2
  61. package/dist/{trash-TzreR6N5.js → trash-22hixXTM.js} +2 -2
  62. package/dist/types/components/AppButton.vue.d.ts +11 -17
  63. package/dist/types/components/AppColorPicker.vue.d.ts +11 -14
  64. package/dist/types/components/AppFormControl.vue.d.ts +6 -24
  65. package/dist/types/components/AppIcon.vue.d.ts +3 -13
  66. package/dist/types/components/AppInput.vue.d.ts +1 -10
  67. package/dist/types/components/AppLoader.vue.d.ts +13 -18
  68. package/dist/types/components/AppPopover.vue.d.ts +21 -76
  69. package/dist/types/components/AppTooltip.vue.d.ts +14 -31
  70. package/dist/types/components/ColorButton.vue.d.ts +10 -13
  71. package/dist/types/components/DragFileMask.vue.d.ts +11 -45
  72. package/dist/types/components/FreeTextPanel.vue.d.ts +9 -1
  73. package/dist/types/components/FreeTextPanelFontColors.vue.d.ts +8 -1
  74. package/dist/types/components/FreeTextPanelFontFamilySelector.vue.d.ts +8 -1
  75. package/dist/types/components/FreeTextPanelFontSizeSelector.vue.d.ts +8 -1
  76. package/dist/types/components/LayerAnnotation.vue.d.ts +15 -36
  77. package/dist/types/components/LayerAnnotationEditor.vue.d.ts +3 -18
  78. package/dist/types/components/LayerAnnotationEditorFreeText.vue.d.ts +20 -31
  79. package/dist/types/components/LayerAnnotationEditorFreeTextItem.vue.d.ts +8 -19
  80. package/dist/types/components/LayerAnnotationEditorHighlight.vue.d.ts +22 -31
  81. package/dist/types/components/LayerAnnotationEditorHighlightItem.vue.d.ts +3 -18
  82. package/dist/types/components/LayerAnnotationEditorImage.vue.d.ts +13 -20
  83. package/dist/types/components/LayerAnnotationEditorTextSelectionItem.vue.d.ts +7 -18
  84. package/dist/types/components/LayerAnnotationEditorTextSelectionItemMenu.vue.d.ts +15 -19
  85. package/dist/types/components/LayerAnnotationStampResizer.vue.d.ts +7 -17
  86. package/dist/types/components/LayerCanvas.vue.d.ts +4 -13
  87. package/dist/types/components/LayerCanvasDetail.vue.d.ts +1 -10
  88. package/dist/types/components/LayerOverlay.vue.d.ts +15 -35
  89. package/dist/types/components/LayerText.vue.d.ts +9 -23
  90. package/dist/types/components/LayerTextHighlight.vue.d.ts +1 -10
  91. package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +1 -10
  92. package/dist/types/components/LayerXFA.vue.d.ts +10 -21
  93. package/dist/types/components/ModalPassword.vue.d.ts +11 -14
  94. package/dist/types/components/ModalPdfProperties.vue.d.ts +4 -13
  95. package/dist/types/components/ModalPrintLoadingProgress.vue.d.ts +4 -13
  96. package/dist/types/components/SwitchAppearance.vue.d.ts +25 -22
  97. package/dist/types/components/ToolCommentPanel.vue.d.ts +24 -29
  98. package/dist/types/components/ToolDownload.vue.d.ts +15 -20
  99. package/dist/types/components/ToolFullscreen.vue.d.ts +16 -21
  100. package/dist/types/components/ToolMenuOthers.vue.d.ts +37 -76
  101. package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +7 -12
  102. package/dist/types/components/ToolOpenFile.vue.d.ts +15 -20
  103. package/dist/types/components/ToolOpenFileInput.vue.d.ts +3 -4
  104. package/dist/types/components/ToolPagination.vue.d.ts +26 -60
  105. package/dist/types/components/ToolPrint.vue.d.ts +10 -27
  106. package/dist/types/components/ToolSearch.vue.d.ts +23 -57
  107. package/dist/types/components/ToolThumbnail.vue.d.ts +13 -36
  108. package/dist/types/components/ToolZoom.vue.d.ts +21 -45
  109. package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +7 -18
  110. package/dist/types/components/VPdfComments.vue.d.ts +6 -17
  111. package/dist/types/components/VPdfCommentsDate.vue.d.ts +3 -13
  112. package/dist/types/components/VPdfCommentsHeader.vue.d.ts +3 -13
  113. package/dist/types/components/VPdfCommentsIcon.vue.d.ts +3 -13
  114. package/dist/types/components/VPdfCommentsReplies.vue.d.ts +3 -13
  115. package/dist/types/components/VPdfCommentsSidebar.vue.d.ts +3 -4
  116. package/dist/types/components/VPdfCommentsText.vue.d.ts +11 -1
  117. package/dist/types/components/VPdfPage.vue.d.ts +16 -55
  118. package/dist/types/components/VPdfThumbnail.vue.d.ts +6 -17
  119. package/dist/types/components/VPdfThumbnails.vue.d.ts +6 -15
  120. package/dist/types/components/VPdfViewer.vue.d.ts +315 -603
  121. package/dist/types/components/ui/button/Button.vue.d.ts +8 -41
  122. package/dist/types/components/ui/button/index.d.ts +1 -1
  123. package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +15 -29
  124. package/dist/types/components/ui/collapsible/Collapsible.vue.d.ts +15 -26
  125. package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +9 -24
  126. package/dist/types/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +9 -24
  127. package/dist/types/components/ui/dialog/Dialog.vue.d.ts +13 -24
  128. package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +9 -24
  129. package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +25 -29
  130. package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +11 -29
  131. package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +11 -29
  132. package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +11 -29
  133. package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +11 -29
  134. package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +9 -24
  135. package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +13 -24
  136. package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +17 -29
  137. package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +23 -44
  138. package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +9 -24
  139. package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +13 -35
  140. package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +12 -32
  141. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +13 -24
  142. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +16 -32
  143. package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +3 -13
  144. package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +11 -29
  145. package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +13 -24
  146. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +27 -29
  147. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +11 -29
  148. package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +9 -24
  149. package/dist/types/components/ui/input/Input.vue.d.ts +4 -13
  150. package/dist/types/components/ui/popover/Popover.vue.d.ts +13 -24
  151. package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +27 -55
  152. package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +9 -24
  153. package/dist/types/components/ui/progress/Progress.vue.d.ts +4 -23
  154. package/dist/types/components/ui/select/Select.vue.d.ts +16 -24
  155. package/dist/types/components/ui/select/SelectContent.vue.d.ts +21 -48
  156. package/dist/types/components/ui/select/SelectGroup.vue.d.ts +11 -29
  157. package/dist/types/components/ui/select/SelectItem.vue.d.ts +11 -29
  158. package/dist/types/components/ui/select/SelectItemText.vue.d.ts +9 -24
  159. package/dist/types/components/ui/select/SelectLabel.vue.d.ts +11 -29
  160. package/dist/types/components/ui/select/SelectScrollDownButton.vue.d.ts +11 -29
  161. package/dist/types/components/ui/select/SelectScrollUpButton.vue.d.ts +11 -29
  162. package/dist/types/components/ui/select/SelectSeparator.vue.d.ts +3 -13
  163. package/dist/types/components/ui/select/SelectTrigger.vue.d.ts +11 -29
  164. package/dist/types/components/ui/select/SelectValue.vue.d.ts +9 -24
  165. package/dist/types/components/ui/toast/Toast.vue.d.ts +91 -24
  166. package/dist/types/components/ui/toast/ToastAction.vue.d.ts +11 -29
  167. package/dist/types/components/ui/toast/ToastClose.vue.d.ts +3 -13
  168. package/dist/types/components/ui/toast/ToastDescription.vue.d.ts +11 -29
  169. package/dist/types/components/ui/toast/ToastProvider.vue.d.ts +9 -24
  170. package/dist/types/components/ui/toast/ToastTitle.vue.d.ts +11 -29
  171. package/dist/types/components/ui/toast/ToastViewport.vue.d.ts +3 -13
  172. package/dist/types/components/ui/toast/index.d.ts +1 -1
  173. package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +13 -24
  174. package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +17 -44
  175. package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +9 -24
  176. package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +9 -24
  177. package/dist/types/components/utils/annotations.d.ts +2 -1
  178. package/dist/types/components/utils/link_service.d.ts +10 -0
  179. package/dist/types/composables/useAnnotationFreeText.d.ts +454 -248
  180. package/dist/types/composables/useAnnotationHighlight.d.ts +288 -178
  181. package/dist/types/composables/useAnnotationStamp.d.ts +344 -212
  182. package/dist/types/composables/useAnnotationStrikethrough.d.ts +326 -216
  183. package/dist/types/composables/useAnnotationUnderline.d.ts +326 -216
  184. package/dist/types/composables/useDownload.d.ts +1 -1
  185. package/dist/types/composables/usePinch.d.ts +2 -2
  186. package/dist/types/composables/usePrintControl.d.ts +1 -1
  187. package/dist/types/composables/useRotation.d.ts +1 -1
  188. package/dist/types/composables/useScale.d.ts +4 -4
  189. package/dist/types/const.d.ts +29 -1096
  190. package/dist/types/utils/CanvasRender.d.ts +0 -1
  191. package/dist/types/utils/highlight.d.ts +6 -1
  192. package/dist/types/utils/searchHighlight.d.ts +1 -1
  193. package/dist/types/utils/types.d.ts +3 -3
  194. package/dist/{zoom-in-CPaNSJ1z.js → zoom-in-BUg87bP_.js} +2 -2
  195. package/dist/{zoom-out-CLnidFKC.js → zoom-out-C7L8Ab_Y.js} +2 -2
  196. package/package.json +7 -5
  197. package/dist/VPdfViewer.vue_vue_type_style_index_1_scoped_9b7953f5_lang-CoSH1YWG.cjs +0 -48
  198. package/dist/index-B9gGGXMy.cjs +0 -27
  199. package/dist/types/utils/transformMatrix.d.ts +0 -3
@@ -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;
@@ -592,7 +275,7 @@ declare const _default: {
592
275
  currentRotation: number;
593
276
  };
594
277
  downloadControl: {
595
- download: () => void;
278
+ download: () => Awaited<void>;
596
279
  getBlob: () => Promise<{
597
280
  blob: Blob;
598
281
  filename: string;
@@ -603,145 +286,174 @@ declare const _default: {
603
286
  zoomControl: {
604
287
  scale: number;
605
288
  zoom: (scale: number | ZoomLevel, options?: {
606
- immediate?: boolean | undefined;
607
- origin?: [number, number] | undefined;
608
- } | undefined) => void;
289
+ immediate?: boolean;
290
+ origin?: [number, number];
291
+ }) => void;
609
292
  };
610
293
  passwordControl: {
611
294
  submitPassword: (password: string) => Promise<boolean>;
612
295
  };
613
296
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
614
297
  annotation: (data: AnnotationEventPayload) => void;
615
- } & {
616
298
  loaded: (properties?: PdfProperties | undefined) => void;
617
- } & {
618
299
  loadError: (error: any) => void;
619
- } & {
620
300
  loading: () => void;
621
- } & {
622
301
  loadProgress: (progress: number) => void;
623
- } & {
302
+ afterGoToPage: (progress: number) => void;
303
+ pageChanged: (progress: number) => void;
624
304
  textLoaded: (data: TextLayerLoadedEventPayload) => void;
625
- } & {
626
305
  annotationLoaded: (annotations: any[]) => void;
627
- } & {
628
306
  xfaLoaded: () => void;
629
- } & {
630
307
  rotate: (rotateEvent: RotateEvent) => void;
631
- } & {
632
308
  scroll: (scrollEvent: Event) => void;
633
- } & {
634
309
  "update:scrollMode": (scrollMode: ScrollMode) => void;
635
- } & {
636
310
  "update:viewMode": (viewMode: ViewMode) => void;
637
- } & {
638
311
  passwordRequired: (payload: PasswordRequiredPayload) => void;
639
- } & {
640
312
  passwordError: () => void;
641
- } & {
642
313
  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
- });
314
+ "update:darkMode": (value: boolean) => void;
315
+ "update:locale": (value: string) => void;
316
+ "update:selectionMode": (value: SelectionMode) => void;
317
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
318
+ src: {
319
+ readonly type: import("vue").PropType<import("@/utils/types").VPVSrc | string>;
320
+ readonly required: true;
321
+ };
322
+ workerUrl: {
323
+ readonly type: import("vue").PropType<string>;
324
+ readonly default: undefined;
325
+ };
326
+ initialPage: {
327
+ readonly type: import("vue").PropType<number>;
328
+ readonly default: () => number;
329
+ };
330
+ initialScale: {
331
+ readonly type: import("vue").PropType<number | ZoomLevel>;
332
+ readonly default: () => ZoomLevel;
333
+ };
334
+ scrollMode: {
335
+ readonly type: import("vue").PropType<ScrollMode>;
336
+ readonly validator: (scrollMode: ScrollMode, args: unknown) => boolean;
337
+ };
338
+ viewMode: {
339
+ readonly type: import("vue").PropType<ViewMode>;
340
+ readonly validator: (viewMode: ViewMode, args: unknown) => boolean;
341
+ };
342
+ initialScrollMode: {
343
+ readonly type: import("vue").PropType<ScrollMode>;
344
+ readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
345
+ };
346
+ initialViewMode: {
347
+ readonly type: import("vue").PropType<ViewMode>;
348
+ readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
349
+ };
350
+ initialRotation: {
351
+ readonly type: import("vue").PropType<number>;
352
+ readonly default: () => number;
353
+ };
354
+ initialThumbnailsVisible: {
355
+ readonly type: import("vue").PropType<boolean>;
356
+ readonly default: undefined;
357
+ };
358
+ textLayer: {
359
+ readonly type: import("vue").PropType<boolean>;
360
+ readonly default: () => boolean;
361
+ };
362
+ selectionMode: {
363
+ readonly type: import("vue").PropType<SelectionMode>;
364
+ readonly default: undefined;
365
+ };
366
+ characterMap: {
367
+ readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
368
+ readonly default: undefined;
369
+ };
370
+ toolbarOptions: {
371
+ readonly type: import("vue").PropType<Partial<ToolbarOptions> | false>;
372
+ readonly default: () => ToolbarOptions;
373
+ };
374
+ localization: {
375
+ readonly type: import("vue").PropType<Record<string, Localization>>;
376
+ readonly default: () => Record<string, Localization>;
377
+ };
378
+ initialSearch: {
379
+ readonly type: StringConstructor;
380
+ readonly default: undefined;
381
+ };
382
+ afterCanvasLoaded: {
383
+ readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
384
+ readonly default: undefined;
385
+ };
386
+ textHighlights: {
387
+ readonly type: import("vue").PropType<Array<import("@/utils/types").TextHighlight>>;
388
+ readonly default: undefined;
389
+ readonly validator: (value: Array<import("@/utils/types").TextHighlight>) => boolean;
390
+ };
391
+ downloadFilename: {
392
+ readonly type: StringConstructor;
393
+ readonly default: undefined;
394
+ };
395
+ plugins: {
396
+ readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[]>;
397
+ readonly default: undefined;
398
+ };
399
+ documentOptions: {
400
+ readonly type: import("vue").PropType<import("@/utils/types").PDFDocumentOptions>;
401
+ readonly default: undefined;
402
+ };
403
+ showPasswordModal: {
404
+ readonly type: import("vue").PropType<boolean>;
405
+ readonly default: true;
406
+ };
407
+ darkMode: {
408
+ type: import("vue").PropType<boolean>;
409
+ };
410
+ locale: {
411
+ type: import("vue").PropType<string>;
412
+ };
413
+ }>> & Readonly<{
414
+ onScroll?: ((scrollEvent: Event) => any) | undefined;
415
+ onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
416
+ onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
417
+ onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
418
+ onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
419
+ onXfaLoaded?: (() => any) | undefined;
420
+ "onUpdate:darkMode"?: ((value: boolean) => any) | undefined;
421
+ "onUpdate:locale"?: ((value: string) => any) | undefined;
422
+ "onUpdate:selectionMode"?: ((value: SelectionMode) => any) | undefined;
423
+ onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
424
+ onLoadError?: ((error: any) => any) | undefined;
425
+ onLoading?: (() => any) | undefined;
426
+ onLoadProgress?: ((progress: number) => any) | undefined;
427
+ onAfterGoToPage?: ((progress: number) => any) | undefined;
428
+ onPageChanged?: ((progress: number) => any) | undefined;
429
+ "onUpdate:scrollMode"?: ((scrollMode: ScrollMode) => any) | undefined;
430
+ "onUpdate:viewMode"?: ((viewMode: ViewMode) => any) | undefined;
431
+ onPasswordRequired?: ((payload: PasswordRequiredPayload) => any) | undefined;
432
+ onPasswordError?: (() => any) | undefined;
433
+ onPasswordSuccess?: (() => any) | undefined;
434
+ }>, {
435
+ workerUrl: string;
436
+ initialPage: number;
437
+ initialScale: number | ZoomLevel;
438
+ initialRotation: number;
439
+ initialThumbnailsVisible: boolean;
440
+ initialSearch: string;
441
+ textLayer: boolean;
442
+ selectionMode: SelectionMode;
443
+ characterMap: import("@/utils/types").CharacterMap;
444
+ toolbarOptions: false | Partial<ToolbarOptions>;
445
+ localization: Record<string, Localization>;
446
+ afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
447
+ textHighlights: import("@/utils/types").TextHighlight[];
448
+ plugins: import("@vue-pdf-viewer/shared").Plugin<PDFDocumentProxy>[];
449
+ documentOptions: import("@/utils/types").PDFDocumentOptions;
450
+ downloadFilename: string;
451
+ showPasswordModal: boolean;
452
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
453
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
747
454
  export default _default;
455
+ type __VLS_WithSlots<T, S> = T & {
456
+ new (): {
457
+ $slots: S;
458
+ };
459
+ };