@vue-pdf-viewer/viewer 0.0.0-beta.9 → 0.0.0-experimental.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/README.md +185 -13
  2. package/dist/annotation-circle-tIpRci60.js +21 -0
  3. package/dist/annotation-freetext-zmKZ4GuW.js +21 -0
  4. package/dist/annotation-highlight-CBhenBLo.js +23 -0
  5. package/dist/annotation-ink-Cr5tjD8f.js +31 -0
  6. package/dist/annotation-line-CBubP1QZ.js +23 -0
  7. package/dist/annotation-link-DI9mj24Y.js +21 -0
  8. package/dist/annotation-signature-DQVfU7hJ.js +21 -0
  9. package/dist/annotation-square-_rIuUCHT.js +21 -0
  10. package/dist/annotation-squiggly-DfLrUnSa.js +23 -0
  11. package/dist/annotation-stamp-B5gaCO0X.js +21 -0
  12. package/dist/annotation-strikeout-Cn_VHn_N.js +21 -0
  13. package/dist/annotation-text-pKHfDK_Q.js +21 -0
  14. package/dist/annotation-underline-BDgmfJQk.js +21 -0
  15. package/dist/arrow-up-DhoV0HvK.js +21 -0
  16. package/dist/assets/pdf-annotations/altText_add.svg +3 -0
  17. package/dist/assets/pdf-annotations/altText_disclaimer.svg +3 -0
  18. package/dist/assets/pdf-annotations/altText_done.svg +3 -0
  19. package/dist/assets/pdf-annotations/altText_spinner.svg +37 -0
  20. package/dist/assets/pdf-annotations/altText_warning.svg +3 -0
  21. package/dist/assets/pdf-annotations/annotation-check.svg +11 -0
  22. package/dist/assets/pdf-annotations/annotation-comment.svg +16 -0
  23. package/dist/assets/pdf-annotations/annotation-help.svg +26 -0
  24. package/dist/assets/pdf-annotations/annotation-insert.svg +10 -0
  25. package/dist/assets/pdf-annotations/annotation-key.svg +11 -0
  26. package/dist/assets/pdf-annotations/annotation-noicon.svg +7 -0
  27. package/dist/assets/pdf-annotations/annotation-note.svg +44 -0
  28. package/dist/assets/pdf-annotations/annotation-paperclip.svg +6 -0
  29. package/dist/assets/pdf-annotations/annotation-paragraph.svg +16 -0
  30. package/dist/assets/pdf-annotations/annotation-pushpin.svg +7 -0
  31. package/dist/assets/pdf-annotations/cursor-editorFreeHighlight.svg +6 -0
  32. package/dist/assets/pdf-annotations/cursor-editorFreeText.svg +3 -0
  33. package/dist/assets/pdf-annotations/cursor-editorInk.svg +4 -0
  34. package/dist/assets/pdf-annotations/cursor-editorTextHighlight.svg +8 -0
  35. package/dist/assets/pdf-annotations/editor-toolbar-delete.svg +5 -0
  36. package/dist/assets/pdf-annotations/messageBar_closingButton.svg +3 -0
  37. package/dist/assets/pdf-annotations/messageBar_warning.svg +3 -0
  38. package/dist/assets/pdf-annotations/secondaryToolbarButton-documentProperties.svg +3 -0
  39. package/dist/assets/pdf-annotations/toolbarButton-editorHighlight.svg +6 -0
  40. package/dist/assets/pdf-annotations/toolbarButton-menuArrow.svg +3 -0
  41. package/dist/check-BRo7Q5UG.js +21 -0
  42. package/dist/chevron-down-BEs3P7KI.js +21 -0
  43. package/dist/clear-DP391aEz.js +31 -0
  44. package/dist/close-CnbAWKuA.js +21 -0
  45. package/dist/comment-panel-BkFw3FUB.js +21 -0
  46. package/dist/download-C45QpUvK.js +21 -0
  47. package/dist/{drag-icon-CJSwJaYj.mjs → drag-icon-CpENKa0y.js} +12 -11
  48. package/dist/drag-icon-dark-B0sqKXav.js +18 -0
  49. package/dist/ellipsis-vertical-X1VRRfZe.js +21 -0
  50. package/dist/empty-comment-dark-DdPeDeR5.js +18 -0
  51. package/dist/empty-comment-light-Dgc1r5xv.js +18 -0
  52. package/dist/file-C2gjRcLU.js +21 -0
  53. package/dist/first-page-32lvRrjG.js +21 -0
  54. package/dist/fullscreen-Cuegwls4.js +21 -0
  55. package/dist/hand-BvbzlDGf.js +21 -0
  56. package/dist/index.js +17710 -0
  57. package/dist/index.umd.cjs +71 -0
  58. package/dist/info-2-wEcru0.js +21 -0
  59. package/dist/last-page-DDJIJ2gp.js +21 -0
  60. package/dist/magnifier-shuB09Te.js +21 -0
  61. package/dist/moon-Cf7pmsnw.js +21 -0
  62. package/dist/page-view-dual-f5-I0-4D.js +21 -0
  63. package/dist/page-view-single-DTduusoS.js +21 -0
  64. package/dist/pointer-CdvbhXLR.js +21 -0
  65. package/dist/printer-ERNx1Q88.js +21 -0
  66. package/dist/rotate-counter-clockwise-CEN3P8nT.js +21 -0
  67. package/dist/scrolling-horizontal-CdariRpO.js +23 -0
  68. package/dist/scrolling-page-wFZlGv_K.js +23 -0
  69. package/dist/scrolling-vertical-B1Doxmyt.js +23 -0
  70. package/dist/scrolling-wrapped-BBipRQ-N.js +23 -0
  71. package/dist/sun-C0fX-A5U.js +21 -0
  72. package/dist/thumbnail-HzftUNEp.js +21 -0
  73. package/dist/types/assets/pdf-annotations/index.d.ts +2 -0
  74. package/dist/types/components/AppButton.vue.d.ts +3 -3
  75. package/dist/types/components/AppFormControl.vue.d.ts +30 -0
  76. package/dist/types/components/AppIcon.vue.d.ts +3 -3
  77. package/dist/types/components/AppInput.vue.d.ts +1 -1
  78. package/dist/types/components/AppLoader.vue.d.ts +3 -3
  79. package/dist/types/components/AppPopover.vue.d.ts +80 -0
  80. package/dist/types/components/AppTooltip.vue.d.ts +18 -3
  81. package/dist/types/components/DragFileMask.vue.d.ts +8 -12
  82. package/dist/types/components/HighlightColorPicker.vue.d.ts +2 -0
  83. package/dist/types/components/{layers/AnnotationLayer.vue.d.ts → LayerAnnotation.vue.d.ts} +15 -11
  84. package/dist/types/components/LayerCanvas.vue.d.ts +25 -0
  85. package/dist/types/components/{layers/TextLayer.vue.d.ts → LayerText.vue.d.ts} +9 -11
  86. package/dist/types/components/LayerTextHighlight.vue.d.ts +20 -0
  87. package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +19 -0
  88. package/dist/types/components/{layers/XFALayer.vue.d.ts → LayerXFA.vue.d.ts} +4 -4
  89. package/dist/types/components/ModalPassword.vue.d.ts +19 -0
  90. package/dist/types/components/ModalPdfProperties.vue.d.ts +3 -3
  91. package/dist/types/components/ModalPrintLoadingProgress.vue.d.ts +3 -3
  92. package/dist/types/components/SwitchAppearance.vue.d.ts +5 -3
  93. package/dist/types/components/ToolCommentPanel.vue.d.ts +31 -0
  94. package/dist/types/components/ToolDownload.vue.d.ts +4 -3
  95. package/dist/types/components/ToolFullscreen.vue.d.ts +4 -3
  96. package/dist/types/components/ToolMenuOthers.vue.d.ts +67 -26
  97. package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +2 -2
  98. package/dist/types/components/ToolOpenFile.vue.d.ts +4 -3
  99. package/dist/types/components/ToolOpenFileInput.vue.d.ts +2 -2
  100. package/dist/types/components/ToolPagination.vue.d.ts +14 -19
  101. package/dist/types/components/ToolPrint.vue.d.ts +10 -45
  102. package/dist/types/components/ToolSearch.vue.d.ts +43 -23
  103. package/dist/types/components/ToolThumbnail.vue.d.ts +8 -10
  104. package/dist/types/components/ToolZoom.vue.d.ts +24 -27
  105. package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +12 -11
  106. package/dist/types/components/VPdfComments.vue.d.ts +28 -0
  107. package/dist/types/components/VPdfCommentsDate.vue.d.ts +15 -0
  108. package/dist/types/components/VPdfCommentsHeader.vue.d.ts +16 -0
  109. package/dist/types/components/VPdfCommentsIcon.vue.d.ts +16 -0
  110. package/dist/types/components/VPdfCommentsReplies.vue.d.ts +16 -0
  111. package/dist/types/components/VPdfCommentsSidebar.vue.d.ts +15 -0
  112. package/dist/types/components/VPdfCommentsText.vue.d.ts +2 -0
  113. package/dist/types/components/VPdfPage.vue.d.ts +17 -32
  114. package/dist/types/components/VPdfSplitter.vue.d.ts +1 -1
  115. package/dist/types/components/VPdfThumbnail.vue.d.ts +7 -5
  116. package/dist/types/components/VPdfThumbnails.vue.d.ts +5 -5
  117. package/dist/types/components/VPdfViewer.vue.d.ts +522 -276
  118. package/dist/types/components/index.d.ts +2 -2
  119. package/dist/types/components/ui/button/Button.vue.d.ts +6 -8
  120. package/dist/types/components/ui/button/index.d.ts +1 -1
  121. package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +35 -0
  122. package/dist/types/components/ui/checkbox/index.d.ts +1 -0
  123. package/dist/types/components/ui/collapsible/Collapsible.vue.d.ts +30 -0
  124. package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +28 -0
  125. package/dist/types/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +28 -0
  126. package/dist/types/components/ui/collapsible/index.d.ts +3 -0
  127. package/dist/types/components/ui/dialog/Dialog.vue.d.ts +3 -3
  128. package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +3 -3
  129. package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +4 -6
  130. package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +4 -6
  131. package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +4 -6
  132. package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +4 -6
  133. package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +4 -6
  134. package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +3 -3
  135. package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +3 -3
  136. package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +4 -6
  137. package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +6 -10
  138. package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +3 -3
  139. package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +7 -7
  140. package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +4 -7
  141. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +3 -3
  142. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +7 -6
  143. package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +3 -3
  144. package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +4 -6
  145. package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +3 -3
  146. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +4 -6
  147. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +4 -6
  148. package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +3 -3
  149. package/dist/types/components/ui/input/Input.vue.d.ts +3 -3
  150. package/dist/types/components/ui/popover/Popover.vue.d.ts +3 -3
  151. package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +6 -12
  152. package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +3 -3
  153. package/dist/types/components/ui/progress/Progress.vue.d.ts +4 -4
  154. package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +3 -3
  155. package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +6 -10
  156. package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +3 -3
  157. package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +3 -3
  158. package/dist/types/components/utils/annotations.d.ts +1 -11
  159. package/dist/types/components/utils/destination.d.ts +1 -1
  160. package/dist/types/components/utils/helpers.d.ts +0 -8
  161. package/dist/types/composables/useDownload.d.ts +11 -4
  162. package/dist/types/composables/useHighlight.d.ts +11 -0
  163. package/dist/types/composables/useLicense.d.ts +18 -8
  164. package/dist/types/composables/{usePDF.d.ts → usePdf.d.ts} +7 -5
  165. package/dist/types/composables/usePdfComments.d.ts +5 -0
  166. package/dist/types/composables/usePdfPagesSizes.d.ts +8 -0
  167. package/dist/types/composables/usePdfProperties.d.ts +3 -17
  168. package/dist/types/composables/usePinch.d.ts +2 -1
  169. package/dist/types/composables/usePlugins.d.ts +252 -0
  170. package/dist/types/composables/usePrintControl.d.ts +22 -0
  171. package/dist/types/composables/usePrintProcess.d.ts +3 -3
  172. package/dist/types/composables/useRenderQueue.d.ts +13 -0
  173. package/dist/types/composables/useRequestAnimationFrame.d.ts +1 -0
  174. package/dist/types/composables/useRotation.d.ts +3 -2
  175. package/dist/types/composables/useScale.d.ts +21 -0
  176. package/dist/types/composables/useSearch.d.ts +3 -37
  177. package/dist/types/composables/useTextLayers.d.ts +5 -0
  178. package/dist/types/composables/useVirtualPages.d.ts +32 -0
  179. package/dist/types/composables/useVisibilities.d.ts +9 -0
  180. package/dist/types/const.d.ts +86 -18
  181. package/dist/types/index.d.ts +4 -0
  182. package/dist/types/utils/appConsole.d.ts +24 -0
  183. package/dist/types/utils/characters.d.ts +16 -0
  184. package/dist/types/utils/enumerators.d.ts +76 -0
  185. package/dist/types/utils/highlight.d.ts +8 -0
  186. package/dist/types/utils/promiseWithResolvers.d.ts +7 -0
  187. package/dist/types/utils/searchHighlight.d.ts +10 -0
  188. package/dist/types/utils/smoothScroll.d.ts +2 -0
  189. package/dist/types/utils/types.d.ts +683 -0
  190. package/dist/types/utils/uiViewer.d.ts +4 -0
  191. package/dist/types/utils/validators.d.ts +26 -0
  192. package/dist/types/utils.d.ts +6 -3
  193. package/dist/zoom-in-CPqqALGr.js +21 -0
  194. package/dist/zoom-out-BpilF8O_.js +21 -0
  195. package/package.json +29 -30
  196. package/dist/arrow-up-CZcWar0V.mjs +0 -20
  197. package/dist/check-BDQ_1xOK.mjs +0 -21
  198. package/dist/chevron-down-BGvKkqoz.mjs +0 -21
  199. package/dist/clear-BdBsR989.mjs +0 -31
  200. package/dist/close-CbywujCY.mjs +0 -20
  201. package/dist/download-DwxdC2cz.mjs +0 -21
  202. package/dist/drag-icon-dark-DslxK0op.mjs +0 -17
  203. package/dist/ellipsis-vertical-DU4RrfN8.mjs +0 -21
  204. package/dist/first-page-D2sUix1F.mjs +0 -20
  205. package/dist/fullscreen-CDD3D91y.mjs +0 -21
  206. package/dist/hand-BdufQ7PJ.mjs +0 -21
  207. package/dist/index.mjs +0 -28783
  208. package/dist/index.umd.js +0 -54
  209. package/dist/info-CnzWbChw.mjs +0 -20
  210. package/dist/last-page-BlLcdVDC.mjs +0 -20
  211. package/dist/magnifier-D5effak1.mjs +0 -21
  212. package/dist/moon-jjKfhCeP.mjs +0 -21
  213. package/dist/pointer-CosfQ2Bj.mjs +0 -21
  214. package/dist/printer-CZndb-XY.mjs +0 -21
  215. package/dist/rotate-counter-clockwise-BnC8SAwc.mjs +0 -21
  216. package/dist/sun-f_yo-49i.mjs +0 -21
  217. package/dist/thumbnail-BrLTlvMi.mjs +0 -21
  218. package/dist/types/components/types.d.ts +0 -216
  219. package/dist/types/components/utils/highlight.d.ts +0 -6
  220. package/dist/types/composables/useCalculatePages.d.ts +0 -12
  221. package/dist/types/composables/usePageQueue.d.ts +0 -10
  222. package/dist/types/composables/usePrint.d.ts +0 -9
  223. package/dist/types/composables/useRenderTask.d.ts +0 -8
  224. package/dist/zoom-in-MHWLskY5.mjs +0 -21
  225. package/dist/zoom-out-BOe91xpp.mjs +0 -21
@@ -1,296 +1,526 @@
1
- import { MaybeRef } from 'vue';
2
- import type { AnnotationEventPayload, HighlightEventPayload, PDFSrc, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, CharacterMap } from './types';
1
+ import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, PdfProperties } from '@/utils/types';
2
+ import { ScrollMode, ViewMode, ZoomLevel } from '@/utils/enumerators';
3
3
  import '../style.scss';
4
+ import { Localization } from '@vue-pdf-viewer/shared';
4
5
  declare const _default: {
5
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
- src: MaybeRef<Omit<PDFSrc, 'DocumentInitParameters' | 'PDFDataRangeTransport'>>;
7
- /**
8
- * The path of your prefer pdfjs worker
9
- * If unspecified, the viewer will use the worker from pdfjs-dist@3.11.174
10
- */
11
- workerUrl?: string | undefined;
12
- /**
13
- * The number of page that will be displayed initially
14
- */
15
- initialPage?: number | undefined;
16
- /**
17
- * The initial zoom level default
18
- * If unspecified, the initial zoom level is determined by the page dimensions and the width of the container
19
- */
20
- initialScale?: number | undefined;
21
- /**
22
- * The initial rotation must be divisible by 90
23
- */
24
- initialRotation?: number | undefined;
25
- /**
26
- * The initial thumbnails visible default
27
- * If unspecified, the thumbnails visible will be `false`
28
- */
29
- initialThumbnailsVisible?: boolean | undefined;
30
- /**
31
- * A layer on a PDF to allow text selection
32
- */
33
- textLayer?: boolean | undefined;
34
- /**
35
- * Specifies the character map (CMap) to be used for text rendering.
36
- * A CMap associates character codes with corresponding glyphs in CID fonts.
37
- * Use this property when displaying PDFs with complex character sets (e.g., East Asian languages).
38
- */
39
- characterMap?: CharacterMap | undefined;
40
- /**
41
- * Determine whether the toolbar is visible in the VPV.
42
- * Remark: The toolbar consists of top bar and left sidebar.
43
- */
44
- toolbarOptions?: false | Partial<ToolbarOptions> | undefined;
45
- }>, {
46
- textLayer: boolean;
47
- initialPage: number;
48
- initialRotation: number;
49
- intent: string;
50
- annotationLayer: boolean;
51
- toolbarOptions: () => ToolbarOptions;
52
- }>>> & {
53
- onHighlight?: ((payload: HighlightEventPayload) => any) | undefined;
54
- onTextLoaded?: ((payload: TextLayerLoadedEventPayload) => any) | undefined;
55
- onAnnotation?: ((payload: AnnotationEventPayload) => any) | undefined;
56
- onAnnotationLoaded?: ((payload: any[]) => any) | undefined;
6
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
7
+ readonly src: {
8
+ readonly type: import("vue").PropType<string | import("@/utils/types").VPVSrc>;
9
+ readonly required: true;
10
+ };
11
+ readonly workerUrl: {
12
+ readonly type: import("vue").PropType<string>;
13
+ readonly default: undefined;
14
+ };
15
+ readonly initialPage: {
16
+ readonly type: import("vue").PropType<number>;
17
+ readonly default: () => number;
18
+ };
19
+ readonly initialScale: {
20
+ readonly type: import("vue").PropType<number | ZoomLevel>;
21
+ readonly default: () => ZoomLevel;
22
+ };
23
+ readonly initialScrollMode: {
24
+ readonly type: import("vue").PropType<ScrollMode>;
25
+ readonly default: () => ScrollMode;
26
+ readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
27
+ };
28
+ readonly initialViewMode: {
29
+ readonly type: import("vue").PropType<ViewMode>;
30
+ readonly default: () => ViewMode;
31
+ readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
32
+ };
33
+ readonly initialRotation: {
34
+ readonly type: import("vue").PropType<number>;
35
+ readonly default: () => number;
36
+ };
37
+ readonly initialThumbnailsVisible: {
38
+ readonly type: import("vue").PropType<boolean>;
39
+ readonly default: undefined;
40
+ };
41
+ readonly textLayer: {
42
+ readonly type: import("vue").PropType<boolean>;
43
+ readonly default: () => boolean;
44
+ };
45
+ readonly characterMap: {
46
+ readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
47
+ readonly default: undefined;
48
+ };
49
+ readonly toolbarOptions: {
50
+ readonly type: import("vue").PropType<false | Partial<ToolbarOptions>>;
51
+ readonly default: () => ToolbarOptions;
52
+ };
53
+ readonly localization: {
54
+ readonly type: import("vue").PropType<Record<string, Localization>>;
55
+ readonly default: () => Record<string, Localization>;
56
+ };
57
+ readonly initialSearch: {
58
+ readonly type: StringConstructor;
59
+ readonly default: undefined;
60
+ };
61
+ readonly afterCanvasLoaded: {
62
+ readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
63
+ readonly default: undefined;
64
+ };
65
+ readonly textHighlights: {
66
+ readonly type: import("vue").PropType<import("@/utils/types").TextHighlight[]>;
67
+ readonly default: undefined;
68
+ readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
69
+ };
70
+ readonly downloadFilename: {
71
+ readonly type: StringConstructor;
72
+ readonly default: undefined;
73
+ };
74
+ readonly plugins: {
75
+ readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin[]>;
76
+ readonly default: undefined;
77
+ };
78
+ }>> & Readonly<{
79
+ onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
80
+ onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
81
+ onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
82
+ onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
57
83
  onXfaLoaded?: (() => any) | undefined;
58
- onLoaded?: (() => any) | undefined;
59
- onRotate?: ((payload: RotateEvent) => any) | undefined;
60
- onLoadProgress?: ((payload: number) => any) | undefined;
61
- }, {
62
- goToPage: (page: number) => void;
63
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
- annotation: (payload: AnnotationEventPayload) => void;
84
+ onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
85
+ onLoadError?: ((error: any) => any) | undefined;
86
+ onLoading?: (() => any) | undefined;
87
+ onLoadProgress?: ((progress: number) => any) | undefined;
88
+ onAfterGoToPage?: ((progress: number) => any) | undefined;
89
+ onPageChanged?: ((progress: number) => any) | undefined;
90
+ }>, {
91
+ highlightControl: {
92
+ highlight: (args: import("@/utils/types").TextHighlight[]) => Promise<Record<string, import("@/utils/types").MatchHighlightResult[]>>;
93
+ clear: () => void;
94
+ };
95
+ printControl: {
96
+ print: (options?: {
97
+ visibleDefaultProgress: boolean;
98
+ } | undefined) => void;
99
+ cancel: () => void;
100
+ onProgress?: ((progress: import("@/utils/types").PreparePrintProgress) => void) | undefined;
101
+ onError?: ((error: Error) => void) | undefined;
102
+ onComplete?: (() => void) | undefined;
103
+ };
104
+ pageControl: {
105
+ goToPage: (pageNumber: number) => void;
106
+ totalPages: number;
107
+ currentPage: number;
108
+ };
109
+ searchControl: {
110
+ searchMatches: {
111
+ totalMatches: number;
112
+ matches: {
113
+ index: number;
114
+ page: number;
115
+ }[];
116
+ } | {
117
+ totalMatches: number;
118
+ matches: {
119
+ index: number;
120
+ page: number;
121
+ }[];
122
+ };
123
+ searching: boolean;
124
+ goToMatch: (index: number) => void;
125
+ search: (value: string) => Promise<import("@/utils/types").MatchHighlightResult[]>;
126
+ nextSearchMatch: () => void;
127
+ prevSearchMatch: () => void;
128
+ };
129
+ rotateControl: {
130
+ rotateClockwise: () => void;
131
+ rotateCounterclockwise: () => void;
132
+ currentRotation: number;
133
+ };
134
+ downloadControl: {
135
+ download: () => void;
136
+ onError?: ((error: Error) => void) | undefined;
137
+ onComplete?: (() => void) | undefined;
138
+ };
139
+ zoomControl: {
140
+ scale: number;
141
+ zoom: (scale: number | ZoomLevel) => void;
142
+ };
143
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
144
+ annotation: (data: AnnotationEventPayload) => void;
145
+ } & {
146
+ loaded: (properties?: PdfProperties | undefined) => void;
65
147
  } & {
66
- highlight: (payload: HighlightEventPayload) => void;
148
+ loadError: (error: any) => void;
67
149
  } & {
68
- loaded: () => void;
150
+ loading: () => void;
69
151
  } & {
70
- loadProgress: (payload: number) => void;
152
+ loadProgress: (progress: number) => void;
71
153
  } & {
72
- textLoaded: (payload: TextLayerLoadedEventPayload) => void;
154
+ textLoaded: (data: TextLayerLoadedEventPayload) => void;
73
155
  } & {
74
- annotationLoaded: (payload: any[]) => void;
156
+ annotationLoaded: (annotations: any[]) => void;
75
157
  } & {
76
158
  xfaLoaded: () => void;
77
159
  } & {
78
- rotate: (payload: RotateEvent) => void;
79
- }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
80
- src: MaybeRef<Omit<PDFSrc, 'DocumentInitParameters' | 'PDFDataRangeTransport'>>;
81
- /**
82
- * The path of your prefer pdfjs worker
83
- * If unspecified, the viewer will use the worker from pdfjs-dist@3.11.174
84
- */
85
- workerUrl?: string | undefined;
86
- /**
87
- * The number of page that will be displayed initially
88
- */
89
- initialPage?: number | undefined;
90
- /**
91
- * The initial zoom level default
92
- * If unspecified, the initial zoom level is determined by the page dimensions and the width of the container
93
- */
94
- initialScale?: number | undefined;
95
- /**
96
- * The initial rotation must be divisible by 90
97
- */
98
- initialRotation?: number | undefined;
99
- /**
100
- * The initial thumbnails visible default
101
- * If unspecified, the thumbnails visible will be `false`
102
- */
103
- initialThumbnailsVisible?: boolean | undefined;
104
- /**
105
- * A layer on a PDF to allow text selection
106
- */
107
- textLayer?: boolean | undefined;
108
- /**
109
- * Specifies the character map (CMap) to be used for text rendering.
110
- * A CMap associates character codes with corresponding glyphs in CID fonts.
111
- * Use this property when displaying PDFs with complex character sets (e.g., East Asian languages).
112
- */
113
- characterMap?: CharacterMap | undefined;
114
- /**
115
- * Determine whether the toolbar is visible in the VPV.
116
- * Remark: The toolbar consists of top bar and left sidebar.
117
- */
118
- toolbarOptions?: false | Partial<ToolbarOptions> | undefined;
119
- }>, {
120
- textLayer: boolean;
121
- initialPage: number;
122
- initialRotation: number;
123
- intent: string;
124
- annotationLayer: boolean;
125
- toolbarOptions: () => ToolbarOptions;
126
- }>>> & {
127
- onHighlight?: ((payload: HighlightEventPayload) => any) | undefined;
128
- onTextLoaded?: ((payload: TextLayerLoadedEventPayload) => any) | undefined;
129
- onAnnotation?: ((payload: AnnotationEventPayload) => any) | undefined;
130
- onAnnotationLoaded?: ((payload: any[]) => any) | undefined;
131
- onXfaLoaded?: (() => any) | undefined;
132
- onLoaded?: (() => any) | undefined;
133
- onRotate?: ((payload: RotateEvent) => any) | undefined;
134
- onLoadProgress?: ((payload: number) => any) | undefined;
135
- }, {
136
- textLayer: boolean;
137
- toolbarOptions: Partial<ToolbarOptions> | false;
138
- initialPage: number;
139
- initialRotation: number;
140
- }, true, {}, {}, {
160
+ rotate: (rotateEvent: RotateEvent) => void;
161
+ } & {
162
+ afterGoToPage: (progress: number) => void;
163
+ } & {
164
+ pageChanged: (progress: number) => void;
165
+ }, import("vue").PublicProps, {
166
+ readonly initialViewMode: ViewMode;
167
+ readonly initialScrollMode: ScrollMode;
168
+ readonly workerUrl: string;
169
+ readonly initialPage: number;
170
+ readonly initialScale: number | ZoomLevel;
171
+ readonly initialRotation: number;
172
+ readonly initialThumbnailsVisible: boolean;
173
+ readonly initialSearch: string;
174
+ readonly textLayer: boolean;
175
+ readonly characterMap: import("@/utils/types").CharacterMap;
176
+ readonly toolbarOptions: false | Partial<ToolbarOptions>;
177
+ readonly localization: Record<string, Localization>;
178
+ readonly afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
179
+ readonly textHighlights: import("@/utils/types").TextHighlight[];
180
+ readonly plugins: import("@vue-pdf-viewer/shared").Plugin[];
181
+ readonly downloadFilename: string;
182
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
141
183
  P: {};
142
184
  B: {};
143
185
  D: {};
144
186
  C: {};
145
187
  M: {};
146
188
  Defaults: {};
147
- }, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
148
- src: MaybeRef<Omit<PDFSrc, 'DocumentInitParameters' | 'PDFDataRangeTransport'>>;
149
- /**
150
- * The path of your prefer pdfjs worker
151
- * If unspecified, the viewer will use the worker from pdfjs-dist@3.11.174
152
- */
153
- workerUrl?: string | undefined;
154
- /**
155
- * The number of page that will be displayed initially
156
- */
157
- initialPage?: number | undefined;
158
- /**
159
- * The initial zoom level default
160
- * If unspecified, the initial zoom level is determined by the page dimensions and the width of the container
161
- */
162
- initialScale?: number | undefined;
163
- /**
164
- * The initial rotation must be divisible by 90
165
- */
166
- initialRotation?: number | undefined;
167
- /**
168
- * The initial thumbnails visible default
169
- * If unspecified, the thumbnails visible will be `false`
170
- */
171
- initialThumbnailsVisible?: boolean | undefined;
172
- /**
173
- * A layer on a PDF to allow text selection
174
- */
175
- textLayer?: boolean | undefined;
176
- /**
177
- * Specifies the character map (CMap) to be used for text rendering.
178
- * A CMap associates character codes with corresponding glyphs in CID fonts.
179
- * Use this property when displaying PDFs with complex character sets (e.g., East Asian languages).
180
- */
181
- characterMap?: CharacterMap | undefined;
182
- /**
183
- * Determine whether the toolbar is visible in the VPV.
184
- * Remark: The toolbar consists of top bar and left sidebar.
185
- */
186
- toolbarOptions?: false | Partial<ToolbarOptions> | undefined;
187
- }>, {
188
- textLayer: boolean;
189
- initialPage: number;
190
- initialRotation: number;
191
- intent: string;
192
- annotationLayer: boolean;
193
- toolbarOptions: () => ToolbarOptions;
194
- }>>> & {
195
- onHighlight?: ((payload: HighlightEventPayload) => any) | undefined;
196
- onTextLoaded?: ((payload: TextLayerLoadedEventPayload) => any) | undefined;
197
- onAnnotation?: ((payload: AnnotationEventPayload) => any) | undefined;
198
- onAnnotationLoaded?: ((payload: any[]) => any) | undefined;
189
+ }, Readonly<import("vue").ExtractPropTypes<{
190
+ readonly src: {
191
+ readonly type: import("vue").PropType<string | import("@/utils/types").VPVSrc>;
192
+ readonly required: true;
193
+ };
194
+ readonly workerUrl: {
195
+ readonly type: import("vue").PropType<string>;
196
+ readonly default: undefined;
197
+ };
198
+ readonly initialPage: {
199
+ readonly type: import("vue").PropType<number>;
200
+ readonly default: () => number;
201
+ };
202
+ readonly initialScale: {
203
+ readonly type: import("vue").PropType<number | ZoomLevel>;
204
+ readonly default: () => ZoomLevel;
205
+ };
206
+ readonly initialScrollMode: {
207
+ readonly type: import("vue").PropType<ScrollMode>;
208
+ readonly default: () => ScrollMode;
209
+ readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
210
+ };
211
+ readonly initialViewMode: {
212
+ readonly type: import("vue").PropType<ViewMode>;
213
+ readonly default: () => ViewMode;
214
+ readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
215
+ };
216
+ readonly initialRotation: {
217
+ readonly type: import("vue").PropType<number>;
218
+ readonly default: () => number;
219
+ };
220
+ readonly initialThumbnailsVisible: {
221
+ readonly type: import("vue").PropType<boolean>;
222
+ readonly default: undefined;
223
+ };
224
+ readonly textLayer: {
225
+ readonly type: import("vue").PropType<boolean>;
226
+ readonly default: () => boolean;
227
+ };
228
+ readonly characterMap: {
229
+ readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
230
+ readonly default: undefined;
231
+ };
232
+ readonly toolbarOptions: {
233
+ readonly type: import("vue").PropType<false | Partial<ToolbarOptions>>;
234
+ readonly default: () => ToolbarOptions;
235
+ };
236
+ readonly localization: {
237
+ readonly type: import("vue").PropType<Record<string, Localization>>;
238
+ readonly default: () => Record<string, Localization>;
239
+ };
240
+ readonly initialSearch: {
241
+ readonly type: StringConstructor;
242
+ readonly default: undefined;
243
+ };
244
+ readonly afterCanvasLoaded: {
245
+ readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
246
+ readonly default: undefined;
247
+ };
248
+ readonly textHighlights: {
249
+ readonly type: import("vue").PropType<import("@/utils/types").TextHighlight[]>;
250
+ readonly default: undefined;
251
+ readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
252
+ };
253
+ readonly downloadFilename: {
254
+ readonly type: StringConstructor;
255
+ readonly default: undefined;
256
+ };
257
+ readonly plugins: {
258
+ readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin[]>;
259
+ readonly default: undefined;
260
+ };
261
+ }>> & Readonly<{
262
+ onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
263
+ onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
264
+ onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
265
+ onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
199
266
  onXfaLoaded?: (() => any) | undefined;
200
- onLoaded?: (() => any) | undefined;
201
- onRotate?: ((payload: RotateEvent) => any) | undefined;
202
- onLoadProgress?: ((payload: number) => any) | undefined;
203
- }, {
204
- goToPage: (page: number) => void;
267
+ onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
268
+ onLoadError?: ((error: any) => any) | undefined;
269
+ onLoading?: (() => any) | undefined;
270
+ onLoadProgress?: ((progress: number) => any) | undefined;
271
+ onAfterGoToPage?: ((progress: number) => any) | undefined;
272
+ onPageChanged?: ((progress: number) => any) | undefined;
273
+ }>, {
274
+ highlightControl: {
275
+ highlight: (args: import("@/utils/types").TextHighlight[]) => Promise<Record<string, import("@/utils/types").MatchHighlightResult[]>>;
276
+ clear: () => void;
277
+ };
278
+ printControl: {
279
+ print: (options?: {
280
+ visibleDefaultProgress: boolean;
281
+ } | undefined) => void;
282
+ cancel: () => void;
283
+ onProgress?: ((progress: import("@/utils/types").PreparePrintProgress) => void) | undefined;
284
+ onError?: ((error: Error) => void) | undefined;
285
+ onComplete?: (() => void) | undefined;
286
+ };
287
+ pageControl: {
288
+ goToPage: (pageNumber: number) => void;
289
+ totalPages: number;
290
+ currentPage: number;
291
+ };
292
+ searchControl: {
293
+ searchMatches: {
294
+ totalMatches: number;
295
+ matches: {
296
+ index: number;
297
+ page: number;
298
+ }[];
299
+ } | {
300
+ totalMatches: number;
301
+ matches: {
302
+ index: number;
303
+ page: number;
304
+ }[];
305
+ };
306
+ searching: boolean;
307
+ goToMatch: (index: number) => void;
308
+ search: (value: string) => Promise<import("@/utils/types").MatchHighlightResult[]>;
309
+ nextSearchMatch: () => void;
310
+ prevSearchMatch: () => void;
311
+ };
312
+ rotateControl: {
313
+ rotateClockwise: () => void;
314
+ rotateCounterclockwise: () => void;
315
+ currentRotation: number;
316
+ };
317
+ downloadControl: {
318
+ download: () => void;
319
+ onError?: ((error: Error) => void) | undefined;
320
+ onComplete?: (() => void) | undefined;
321
+ };
322
+ zoomControl: {
323
+ scale: number;
324
+ zoom: (scale: number | ZoomLevel) => void;
325
+ };
205
326
  }, {}, {}, {}, {
206
- textLayer: boolean;
207
- toolbarOptions: Partial<ToolbarOptions> | false;
208
- initialPage: number;
209
- initialRotation: number;
327
+ readonly initialViewMode: ViewMode;
328
+ readonly initialScrollMode: ScrollMode;
329
+ readonly workerUrl: string;
330
+ readonly initialPage: number;
331
+ readonly initialScale: number | ZoomLevel;
332
+ readonly initialRotation: number;
333
+ readonly initialThumbnailsVisible: boolean;
334
+ readonly initialSearch: string;
335
+ readonly textLayer: boolean;
336
+ readonly characterMap: import("@/utils/types").CharacterMap;
337
+ readonly toolbarOptions: false | Partial<ToolbarOptions>;
338
+ readonly localization: Record<string, Localization>;
339
+ readonly afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
340
+ readonly textHighlights: import("@/utils/types").TextHighlight[];
341
+ readonly plugins: import("@vue-pdf-viewer/shared").Plugin[];
342
+ readonly downloadFilename: string;
210
343
  }>;
211
344
  __isFragment?: undefined;
212
345
  __isTeleport?: undefined;
213
346
  __isSuspense?: undefined;
214
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
215
- src: MaybeRef<Omit<PDFSrc, 'DocumentInitParameters' | 'PDFDataRangeTransport'>>;
216
- /**
217
- * The path of your prefer pdfjs worker
218
- * If unspecified, the viewer will use the worker from pdfjs-dist@3.11.174
219
- */
220
- workerUrl?: string | undefined;
221
- /**
222
- * The number of page that will be displayed initially
223
- */
224
- initialPage?: number | undefined;
225
- /**
226
- * The initial zoom level default
227
- * If unspecified, the initial zoom level is determined by the page dimensions and the width of the container
228
- */
229
- initialScale?: number | undefined;
230
- /**
231
- * The initial rotation must be divisible by 90
232
- */
233
- initialRotation?: number | undefined;
234
- /**
235
- * The initial thumbnails visible default
236
- * If unspecified, the thumbnails visible will be `false`
237
- */
238
- initialThumbnailsVisible?: boolean | undefined;
239
- /**
240
- * A layer on a PDF to allow text selection
241
- */
242
- textLayer?: boolean | undefined;
243
- /**
244
- * Specifies the character map (CMap) to be used for text rendering.
245
- * A CMap associates character codes with corresponding glyphs in CID fonts.
246
- * Use this property when displaying PDFs with complex character sets (e.g., East Asian languages).
247
- */
248
- characterMap?: CharacterMap | undefined;
249
- /**
250
- * Determine whether the toolbar is visible in the VPV.
251
- * Remark: The toolbar consists of top bar and left sidebar.
252
- */
253
- toolbarOptions?: false | Partial<ToolbarOptions> | undefined;
254
- }>, {
255
- textLayer: boolean;
256
- initialPage: number;
257
- initialRotation: number;
258
- intent: string;
259
- annotationLayer: boolean;
260
- toolbarOptions: () => ToolbarOptions;
261
- }>>> & {
262
- onHighlight?: ((payload: HighlightEventPayload) => any) | undefined;
263
- onTextLoaded?: ((payload: TextLayerLoadedEventPayload) => any) | undefined;
264
- onAnnotation?: ((payload: AnnotationEventPayload) => any) | undefined;
265
- onAnnotationLoaded?: ((payload: any[]) => any) | undefined;
347
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
348
+ readonly src: {
349
+ readonly type: import("vue").PropType<string | import("@/utils/types").VPVSrc>;
350
+ readonly required: true;
351
+ };
352
+ readonly workerUrl: {
353
+ readonly type: import("vue").PropType<string>;
354
+ readonly default: undefined;
355
+ };
356
+ readonly initialPage: {
357
+ readonly type: import("vue").PropType<number>;
358
+ readonly default: () => number;
359
+ };
360
+ readonly initialScale: {
361
+ readonly type: import("vue").PropType<number | ZoomLevel>;
362
+ readonly default: () => ZoomLevel;
363
+ };
364
+ readonly initialScrollMode: {
365
+ readonly type: import("vue").PropType<ScrollMode>;
366
+ readonly default: () => ScrollMode;
367
+ readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
368
+ };
369
+ readonly initialViewMode: {
370
+ readonly type: import("vue").PropType<ViewMode>;
371
+ readonly default: () => ViewMode;
372
+ readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
373
+ };
374
+ readonly initialRotation: {
375
+ readonly type: import("vue").PropType<number>;
376
+ readonly default: () => number;
377
+ };
378
+ readonly initialThumbnailsVisible: {
379
+ readonly type: import("vue").PropType<boolean>;
380
+ readonly default: undefined;
381
+ };
382
+ readonly textLayer: {
383
+ readonly type: import("vue").PropType<boolean>;
384
+ readonly default: () => boolean;
385
+ };
386
+ readonly characterMap: {
387
+ readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
388
+ readonly default: undefined;
389
+ };
390
+ readonly toolbarOptions: {
391
+ readonly type: import("vue").PropType<false | Partial<ToolbarOptions>>;
392
+ readonly default: () => ToolbarOptions;
393
+ };
394
+ readonly localization: {
395
+ readonly type: import("vue").PropType<Record<string, Localization>>;
396
+ readonly default: () => Record<string, Localization>;
397
+ };
398
+ readonly initialSearch: {
399
+ readonly type: StringConstructor;
400
+ readonly default: undefined;
401
+ };
402
+ readonly afterCanvasLoaded: {
403
+ readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
404
+ readonly default: undefined;
405
+ };
406
+ readonly textHighlights: {
407
+ readonly type: import("vue").PropType<import("@/utils/types").TextHighlight[]>;
408
+ readonly default: undefined;
409
+ readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
410
+ };
411
+ readonly downloadFilename: {
412
+ readonly type: StringConstructor;
413
+ readonly default: undefined;
414
+ };
415
+ readonly plugins: {
416
+ readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin[]>;
417
+ readonly default: undefined;
418
+ };
419
+ }>> & Readonly<{
420
+ onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
421
+ onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
422
+ onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
423
+ onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
266
424
  onXfaLoaded?: (() => any) | undefined;
267
- onLoaded?: (() => any) | undefined;
268
- onRotate?: ((payload: RotateEvent) => any) | undefined;
269
- onLoadProgress?: ((payload: number) => any) | undefined;
270
- }, {
271
- goToPage: (page: number) => void;
272
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
273
- annotation: (payload: AnnotationEventPayload) => void;
425
+ onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
426
+ onLoadError?: ((error: any) => any) | undefined;
427
+ onLoading?: (() => any) | undefined;
428
+ onLoadProgress?: ((progress: number) => any) | undefined;
429
+ onAfterGoToPage?: ((progress: number) => any) | undefined;
430
+ onPageChanged?: ((progress: number) => any) | undefined;
431
+ }>, {
432
+ highlightControl: {
433
+ highlight: (args: import("@/utils/types").TextHighlight[]) => Promise<Record<string, import("@/utils/types").MatchHighlightResult[]>>;
434
+ clear: () => void;
435
+ };
436
+ printControl: {
437
+ print: (options?: {
438
+ visibleDefaultProgress: boolean;
439
+ } | undefined) => void;
440
+ cancel: () => void;
441
+ onProgress?: ((progress: import("@/utils/types").PreparePrintProgress) => void) | undefined;
442
+ onError?: ((error: Error) => void) | undefined;
443
+ onComplete?: (() => void) | undefined;
444
+ };
445
+ pageControl: {
446
+ goToPage: (pageNumber: number) => void;
447
+ totalPages: number;
448
+ currentPage: number;
449
+ };
450
+ searchControl: {
451
+ searchMatches: {
452
+ totalMatches: number;
453
+ matches: {
454
+ index: number;
455
+ page: number;
456
+ }[];
457
+ } | {
458
+ totalMatches: number;
459
+ matches: {
460
+ index: number;
461
+ page: number;
462
+ }[];
463
+ };
464
+ searching: boolean;
465
+ goToMatch: (index: number) => void;
466
+ search: (value: string) => Promise<import("@/utils/types").MatchHighlightResult[]>;
467
+ nextSearchMatch: () => void;
468
+ prevSearchMatch: () => void;
469
+ };
470
+ rotateControl: {
471
+ rotateClockwise: () => void;
472
+ rotateCounterclockwise: () => void;
473
+ currentRotation: number;
474
+ };
475
+ downloadControl: {
476
+ download: () => void;
477
+ onError?: ((error: Error) => void) | undefined;
478
+ onComplete?: (() => void) | undefined;
479
+ };
480
+ zoomControl: {
481
+ scale: number;
482
+ zoom: (scale: number | ZoomLevel) => void;
483
+ };
484
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
485
+ annotation: (data: AnnotationEventPayload) => void;
274
486
  } & {
275
- highlight: (payload: HighlightEventPayload) => void;
487
+ loaded: (properties?: PdfProperties | undefined) => void;
276
488
  } & {
277
- loaded: () => void;
489
+ loadError: (error: any) => void;
278
490
  } & {
279
- loadProgress: (payload: number) => void;
491
+ loading: () => void;
280
492
  } & {
281
- textLoaded: (payload: TextLayerLoadedEventPayload) => void;
493
+ loadProgress: (progress: number) => void;
282
494
  } & {
283
- annotationLoaded: (payload: any[]) => void;
495
+ textLoaded: (data: TextLayerLoadedEventPayload) => void;
496
+ } & {
497
+ annotationLoaded: (annotations: any[]) => void;
284
498
  } & {
285
499
  xfaLoaded: () => void;
286
500
  } & {
287
- rotate: (payload: RotateEvent) => void;
501
+ rotate: (rotateEvent: RotateEvent) => void;
502
+ } & {
503
+ afterGoToPage: (progress: number) => void;
504
+ } & {
505
+ pageChanged: (progress: number) => void;
288
506
  }, string, {
289
- textLayer: boolean;
290
- toolbarOptions: Partial<ToolbarOptions> | false;
291
- initialPage: number;
292
- initialRotation: number;
293
- }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
507
+ readonly initialViewMode: ViewMode;
508
+ readonly initialScrollMode: ScrollMode;
509
+ readonly workerUrl: string;
510
+ readonly initialPage: number;
511
+ readonly initialScale: number | ZoomLevel;
512
+ readonly initialRotation: number;
513
+ readonly initialThumbnailsVisible: boolean;
514
+ readonly initialSearch: string;
515
+ readonly textLayer: boolean;
516
+ readonly characterMap: import("@/utils/types").CharacterMap;
517
+ readonly toolbarOptions: false | Partial<ToolbarOptions>;
518
+ readonly localization: Record<string, Localization>;
519
+ readonly afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
520
+ readonly textHighlights: import("@/utils/types").TextHighlight[];
521
+ readonly plugins: import("@vue-pdf-viewer/shared").Plugin[];
522
+ readonly downloadFilename: string;
523
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
294
524
  $slots: {
295
525
  dropFileZone: (_: {
296
526
  isDark: boolean;
@@ -306,6 +536,8 @@ declare const _default: {
306
536
  thumbnailTool: (_: {
307
537
  onToggle: () => void;
308
538
  }) => any;
539
+ iconThumbnail: (_: {}) => any;
540
+ iconSearch: (_: {}) => any;
309
541
  pageNavigationTool: (_: {
310
542
  total: number;
311
543
  current: number;
@@ -313,41 +545,55 @@ declare const _default: {
313
545
  onPrev: () => void;
314
546
  onChangePage: (pageNumber: number) => void;
315
547
  }) => any;
548
+ iconPrevPage: (_: {}) => any;
549
+ iconNextPage: (_: {}) => any;
316
550
  zoomTool: (_: {
317
551
  currentScale: number;
318
- zoom: (nextScale: number) => void;
552
+ zoom: (nextScale: number | ZoomLevel) => void;
553
+ }) => any;
554
+ iconZoomOut: (_: {}) => any;
555
+ iconZoomIn: (_: {}) => any;
556
+ commentPanelTool: (_: {
557
+ onClick: () => void;
319
558
  }) => any;
559
+ iconCommentPanel: (_: {}) => any;
320
560
  themeTool: (_: {
321
561
  isDark: boolean;
322
562
  onClick: () => void;
323
563
  }) => any;
564
+ iconThemeDark: (_: {}) => any;
565
+ iconThemeLight: (_: {}) => any;
324
566
  openFileTool: (_: {
325
567
  onClick: () => void;
326
568
  }) => any;
569
+ iconOpenFile: (_: {}) => any;
327
570
  downloadTool: (_: {
328
571
  onClick: () => void;
329
572
  }) => any;
573
+ iconDownload: (_: {}) => any;
330
574
  printTool: (_: {
331
- onClick: () => Promise<void>;
575
+ onClick: ((showProgress?: boolean | undefined) => Promise<void>) & Promise<void>;
332
576
  }) => any;
577
+ iconPrint: (_: {}) => any;
333
578
  fullScreenTool: (_: {
334
579
  onClick: () => Promise<void>;
335
580
  isSupported: boolean;
336
581
  }) => any;
582
+ iconFullScreen: (_: {}) => any;
583
+ iconMoreOptions: (_: {}) => any;
584
+ iconFirstPage: (_: {}) => any;
585
+ iconLastPage: (_: {}) => any;
586
+ iconRotateClockwise: (_: {}) => any;
587
+ iconRotateCounterClockwise: (_: {}) => any;
588
+ iconTextSelection: (_: {}) => any;
589
+ iconHandMode: (_: {}) => any;
590
+ iconScrollingPage: (_: {}) => any;
591
+ iconScrollingVertical: (_: {}) => any;
592
+ iconScrollingHorizontal: (_: {}) => any;
593
+ iconScrollingWrapped: (_: {}) => any;
594
+ iconPageViewSingle: (_: {}) => any;
595
+ iconPageViewDual: (_: {}) => any;
596
+ iconDocProperties: (_: {}) => any;
337
597
  };
338
598
  });
339
599
  export default _default;
340
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
341
- type __VLS_TypePropsToRuntimeProps<T> = {
342
- [K in keyof T]-?: {} extends Pick<T, K> ? {
343
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
344
- } : {
345
- type: import('vue').PropType<T[K]>;
346
- required: true;
347
- };
348
- };
349
- type __VLS_WithDefaults<P, D> = {
350
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
351
- default: D[K];
352
- } : P[K];
353
- };