@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.
- package/README.md +185 -13
- package/dist/annotation-circle-tIpRci60.js +21 -0
- package/dist/annotation-freetext-zmKZ4GuW.js +21 -0
- package/dist/annotation-highlight-CBhenBLo.js +23 -0
- package/dist/annotation-ink-Cr5tjD8f.js +31 -0
- package/dist/annotation-line-CBubP1QZ.js +23 -0
- package/dist/annotation-link-DI9mj24Y.js +21 -0
- package/dist/annotation-signature-DQVfU7hJ.js +21 -0
- package/dist/annotation-square-_rIuUCHT.js +21 -0
- package/dist/annotation-squiggly-DfLrUnSa.js +23 -0
- package/dist/annotation-stamp-B5gaCO0X.js +21 -0
- package/dist/annotation-strikeout-Cn_VHn_N.js +21 -0
- package/dist/annotation-text-pKHfDK_Q.js +21 -0
- package/dist/annotation-underline-BDgmfJQk.js +21 -0
- package/dist/arrow-up-DhoV0HvK.js +21 -0
- package/dist/assets/pdf-annotations/altText_add.svg +3 -0
- package/dist/assets/pdf-annotations/altText_disclaimer.svg +3 -0
- package/dist/assets/pdf-annotations/altText_done.svg +3 -0
- package/dist/assets/pdf-annotations/altText_spinner.svg +37 -0
- package/dist/assets/pdf-annotations/altText_warning.svg +3 -0
- package/dist/assets/pdf-annotations/annotation-check.svg +11 -0
- package/dist/assets/pdf-annotations/annotation-comment.svg +16 -0
- package/dist/assets/pdf-annotations/annotation-help.svg +26 -0
- package/dist/assets/pdf-annotations/annotation-insert.svg +10 -0
- package/dist/assets/pdf-annotations/annotation-key.svg +11 -0
- package/dist/assets/pdf-annotations/annotation-noicon.svg +7 -0
- package/dist/assets/pdf-annotations/annotation-note.svg +44 -0
- package/dist/assets/pdf-annotations/annotation-paperclip.svg +6 -0
- package/dist/assets/pdf-annotations/annotation-paragraph.svg +16 -0
- package/dist/assets/pdf-annotations/annotation-pushpin.svg +7 -0
- package/dist/assets/pdf-annotations/cursor-editorFreeHighlight.svg +6 -0
- package/dist/assets/pdf-annotations/cursor-editorFreeText.svg +3 -0
- package/dist/assets/pdf-annotations/cursor-editorInk.svg +4 -0
- package/dist/assets/pdf-annotations/cursor-editorTextHighlight.svg +8 -0
- package/dist/assets/pdf-annotations/editor-toolbar-delete.svg +5 -0
- package/dist/assets/pdf-annotations/messageBar_closingButton.svg +3 -0
- package/dist/assets/pdf-annotations/messageBar_warning.svg +3 -0
- package/dist/assets/pdf-annotations/secondaryToolbarButton-documentProperties.svg +3 -0
- package/dist/assets/pdf-annotations/toolbarButton-editorHighlight.svg +6 -0
- package/dist/assets/pdf-annotations/toolbarButton-menuArrow.svg +3 -0
- package/dist/check-BRo7Q5UG.js +21 -0
- package/dist/chevron-down-BEs3P7KI.js +21 -0
- package/dist/clear-DP391aEz.js +31 -0
- package/dist/close-CnbAWKuA.js +21 -0
- package/dist/comment-panel-BkFw3FUB.js +21 -0
- package/dist/download-C45QpUvK.js +21 -0
- package/dist/{drag-icon-CJSwJaYj.mjs → drag-icon-CpENKa0y.js} +12 -11
- package/dist/drag-icon-dark-B0sqKXav.js +18 -0
- package/dist/ellipsis-vertical-X1VRRfZe.js +21 -0
- package/dist/empty-comment-dark-DdPeDeR5.js +18 -0
- package/dist/empty-comment-light-Dgc1r5xv.js +18 -0
- package/dist/file-C2gjRcLU.js +21 -0
- package/dist/first-page-32lvRrjG.js +21 -0
- package/dist/fullscreen-Cuegwls4.js +21 -0
- package/dist/hand-BvbzlDGf.js +21 -0
- package/dist/index.js +17710 -0
- package/dist/index.umd.cjs +71 -0
- package/dist/info-2-wEcru0.js +21 -0
- package/dist/last-page-DDJIJ2gp.js +21 -0
- package/dist/magnifier-shuB09Te.js +21 -0
- package/dist/moon-Cf7pmsnw.js +21 -0
- package/dist/page-view-dual-f5-I0-4D.js +21 -0
- package/dist/page-view-single-DTduusoS.js +21 -0
- package/dist/pointer-CdvbhXLR.js +21 -0
- package/dist/printer-ERNx1Q88.js +21 -0
- package/dist/rotate-counter-clockwise-CEN3P8nT.js +21 -0
- package/dist/scrolling-horizontal-CdariRpO.js +23 -0
- package/dist/scrolling-page-wFZlGv_K.js +23 -0
- package/dist/scrolling-vertical-B1Doxmyt.js +23 -0
- package/dist/scrolling-wrapped-BBipRQ-N.js +23 -0
- package/dist/sun-C0fX-A5U.js +21 -0
- package/dist/thumbnail-HzftUNEp.js +21 -0
- package/dist/types/assets/pdf-annotations/index.d.ts +2 -0
- package/dist/types/components/AppButton.vue.d.ts +3 -3
- package/dist/types/components/AppFormControl.vue.d.ts +30 -0
- package/dist/types/components/AppIcon.vue.d.ts +3 -3
- package/dist/types/components/AppInput.vue.d.ts +1 -1
- package/dist/types/components/AppLoader.vue.d.ts +3 -3
- package/dist/types/components/AppPopover.vue.d.ts +80 -0
- package/dist/types/components/AppTooltip.vue.d.ts +18 -3
- package/dist/types/components/DragFileMask.vue.d.ts +8 -12
- package/dist/types/components/HighlightColorPicker.vue.d.ts +2 -0
- package/dist/types/components/{layers/AnnotationLayer.vue.d.ts → LayerAnnotation.vue.d.ts} +15 -11
- package/dist/types/components/LayerCanvas.vue.d.ts +25 -0
- package/dist/types/components/{layers/TextLayer.vue.d.ts → LayerText.vue.d.ts} +9 -11
- package/dist/types/components/LayerTextHighlight.vue.d.ts +20 -0
- package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +19 -0
- package/dist/types/components/{layers/XFALayer.vue.d.ts → LayerXFA.vue.d.ts} +4 -4
- package/dist/types/components/ModalPassword.vue.d.ts +19 -0
- package/dist/types/components/ModalPdfProperties.vue.d.ts +3 -3
- package/dist/types/components/ModalPrintLoadingProgress.vue.d.ts +3 -3
- package/dist/types/components/SwitchAppearance.vue.d.ts +5 -3
- package/dist/types/components/ToolCommentPanel.vue.d.ts +31 -0
- package/dist/types/components/ToolDownload.vue.d.ts +4 -3
- package/dist/types/components/ToolFullscreen.vue.d.ts +4 -3
- package/dist/types/components/ToolMenuOthers.vue.d.ts +67 -26
- package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +2 -2
- package/dist/types/components/ToolOpenFile.vue.d.ts +4 -3
- package/dist/types/components/ToolOpenFileInput.vue.d.ts +2 -2
- package/dist/types/components/ToolPagination.vue.d.ts +14 -19
- package/dist/types/components/ToolPrint.vue.d.ts +10 -45
- package/dist/types/components/ToolSearch.vue.d.ts +43 -23
- package/dist/types/components/ToolThumbnail.vue.d.ts +8 -10
- package/dist/types/components/ToolZoom.vue.d.ts +24 -27
- package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +12 -11
- package/dist/types/components/VPdfComments.vue.d.ts +28 -0
- package/dist/types/components/VPdfCommentsDate.vue.d.ts +15 -0
- package/dist/types/components/VPdfCommentsHeader.vue.d.ts +16 -0
- package/dist/types/components/VPdfCommentsIcon.vue.d.ts +16 -0
- package/dist/types/components/VPdfCommentsReplies.vue.d.ts +16 -0
- package/dist/types/components/VPdfCommentsSidebar.vue.d.ts +15 -0
- package/dist/types/components/VPdfCommentsText.vue.d.ts +2 -0
- package/dist/types/components/VPdfPage.vue.d.ts +17 -32
- package/dist/types/components/VPdfSplitter.vue.d.ts +1 -1
- package/dist/types/components/VPdfThumbnail.vue.d.ts +7 -5
- package/dist/types/components/VPdfThumbnails.vue.d.ts +5 -5
- package/dist/types/components/VPdfViewer.vue.d.ts +522 -276
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/components/ui/button/Button.vue.d.ts +6 -8
- package/dist/types/components/ui/button/index.d.ts +1 -1
- package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +35 -0
- package/dist/types/components/ui/checkbox/index.d.ts +1 -0
- package/dist/types/components/ui/collapsible/Collapsible.vue.d.ts +30 -0
- package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +28 -0
- package/dist/types/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +28 -0
- package/dist/types/components/ui/collapsible/index.d.ts +3 -0
- package/dist/types/components/ui/dialog/Dialog.vue.d.ts +3 -3
- package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +3 -3
- package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +4 -6
- package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +4 -6
- package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +4 -6
- package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +4 -6
- package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +4 -6
- package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +3 -3
- package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +3 -3
- package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +4 -6
- package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +6 -10
- package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +3 -3
- package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +7 -7
- package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +4 -7
- package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +3 -3
- package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +7 -6
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +3 -3
- package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +4 -6
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +3 -3
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +4 -6
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +4 -6
- package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +3 -3
- package/dist/types/components/ui/input/Input.vue.d.ts +3 -3
- package/dist/types/components/ui/popover/Popover.vue.d.ts +3 -3
- package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +6 -12
- package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +3 -3
- package/dist/types/components/ui/progress/Progress.vue.d.ts +4 -4
- package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +3 -3
- package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +6 -10
- package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +3 -3
- package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +3 -3
- package/dist/types/components/utils/annotations.d.ts +1 -11
- package/dist/types/components/utils/destination.d.ts +1 -1
- package/dist/types/components/utils/helpers.d.ts +0 -8
- package/dist/types/composables/useDownload.d.ts +11 -4
- package/dist/types/composables/useHighlight.d.ts +11 -0
- package/dist/types/composables/useLicense.d.ts +18 -8
- package/dist/types/composables/{usePDF.d.ts → usePdf.d.ts} +7 -5
- package/dist/types/composables/usePdfComments.d.ts +5 -0
- package/dist/types/composables/usePdfPagesSizes.d.ts +8 -0
- package/dist/types/composables/usePdfProperties.d.ts +3 -17
- package/dist/types/composables/usePinch.d.ts +2 -1
- package/dist/types/composables/usePlugins.d.ts +252 -0
- package/dist/types/composables/usePrintControl.d.ts +22 -0
- package/dist/types/composables/usePrintProcess.d.ts +3 -3
- package/dist/types/composables/useRenderQueue.d.ts +13 -0
- package/dist/types/composables/useRequestAnimationFrame.d.ts +1 -0
- package/dist/types/composables/useRotation.d.ts +3 -2
- package/dist/types/composables/useScale.d.ts +21 -0
- package/dist/types/composables/useSearch.d.ts +3 -37
- package/dist/types/composables/useTextLayers.d.ts +5 -0
- package/dist/types/composables/useVirtualPages.d.ts +32 -0
- package/dist/types/composables/useVisibilities.d.ts +9 -0
- package/dist/types/const.d.ts +86 -18
- package/dist/types/index.d.ts +4 -0
- package/dist/types/utils/appConsole.d.ts +24 -0
- package/dist/types/utils/characters.d.ts +16 -0
- package/dist/types/utils/enumerators.d.ts +76 -0
- package/dist/types/utils/highlight.d.ts +8 -0
- package/dist/types/utils/promiseWithResolvers.d.ts +7 -0
- package/dist/types/utils/searchHighlight.d.ts +10 -0
- package/dist/types/utils/smoothScroll.d.ts +2 -0
- package/dist/types/utils/types.d.ts +683 -0
- package/dist/types/utils/uiViewer.d.ts +4 -0
- package/dist/types/utils/validators.d.ts +26 -0
- package/dist/types/utils.d.ts +6 -3
- package/dist/zoom-in-CPqqALGr.js +21 -0
- package/dist/zoom-out-BpilF8O_.js +21 -0
- package/package.json +29 -30
- package/dist/arrow-up-CZcWar0V.mjs +0 -20
- package/dist/check-BDQ_1xOK.mjs +0 -21
- package/dist/chevron-down-BGvKkqoz.mjs +0 -21
- package/dist/clear-BdBsR989.mjs +0 -31
- package/dist/close-CbywujCY.mjs +0 -20
- package/dist/download-DwxdC2cz.mjs +0 -21
- package/dist/drag-icon-dark-DslxK0op.mjs +0 -17
- package/dist/ellipsis-vertical-DU4RrfN8.mjs +0 -21
- package/dist/first-page-D2sUix1F.mjs +0 -20
- package/dist/fullscreen-CDD3D91y.mjs +0 -21
- package/dist/hand-BdufQ7PJ.mjs +0 -21
- package/dist/index.mjs +0 -28783
- package/dist/index.umd.js +0 -54
- package/dist/info-CnzWbChw.mjs +0 -20
- package/dist/last-page-BlLcdVDC.mjs +0 -20
- package/dist/magnifier-D5effak1.mjs +0 -21
- package/dist/moon-jjKfhCeP.mjs +0 -21
- package/dist/pointer-CosfQ2Bj.mjs +0 -21
- package/dist/printer-CZndb-XY.mjs +0 -21
- package/dist/rotate-counter-clockwise-BnC8SAwc.mjs +0 -21
- package/dist/sun-f_yo-49i.mjs +0 -21
- package/dist/thumbnail-BrLTlvMi.mjs +0 -21
- package/dist/types/components/types.d.ts +0 -216
- package/dist/types/components/utils/highlight.d.ts +0 -6
- package/dist/types/composables/useCalculatePages.d.ts +0 -12
- package/dist/types/composables/usePageQueue.d.ts +0 -10
- package/dist/types/composables/usePrint.d.ts +0 -9
- package/dist/types/composables/useRenderTask.d.ts +0 -8
- package/dist/zoom-in-MHWLskY5.mjs +0 -21
- package/dist/zoom-out-BOe91xpp.mjs +0 -21
|
@@ -1,296 +1,526 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
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").
|
|
6
|
-
src:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
148
|
+
loadError: (error: any) => void;
|
|
67
149
|
} & {
|
|
68
|
-
|
|
150
|
+
loading: () => void;
|
|
69
151
|
} & {
|
|
70
|
-
loadProgress: (
|
|
152
|
+
loadProgress: (progress: number) => void;
|
|
71
153
|
} & {
|
|
72
|
-
textLoaded: (
|
|
154
|
+
textLoaded: (data: TextLayerLoadedEventPayload) => void;
|
|
73
155
|
} & {
|
|
74
|
-
annotationLoaded: (
|
|
156
|
+
annotationLoaded: (annotations: any[]) => void;
|
|
75
157
|
} & {
|
|
76
158
|
xfaLoaded: () => void;
|
|
77
159
|
} & {
|
|
78
|
-
rotate: (
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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<
|
|
148
|
-
src:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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<
|
|
215
|
-
src:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
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
|
-
|
|
487
|
+
loaded: (properties?: PdfProperties | undefined) => void;
|
|
276
488
|
} & {
|
|
277
|
-
|
|
489
|
+
loadError: (error: any) => void;
|
|
278
490
|
} & {
|
|
279
|
-
|
|
491
|
+
loading: () => void;
|
|
280
492
|
} & {
|
|
281
|
-
|
|
493
|
+
loadProgress: (progress: number) => void;
|
|
282
494
|
} & {
|
|
283
|
-
|
|
495
|
+
textLoaded: (data: TextLayerLoadedEventPayload) => void;
|
|
496
|
+
} & {
|
|
497
|
+
annotationLoaded: (annotations: any[]) => void;
|
|
284
498
|
} & {
|
|
285
499
|
xfaLoaded: () => void;
|
|
286
500
|
} & {
|
|
287
|
-
rotate: (
|
|
501
|
+
rotate: (rotateEvent: RotateEvent) => void;
|
|
502
|
+
} & {
|
|
503
|
+
afterGoToPage: (progress: number) => void;
|
|
504
|
+
} & {
|
|
505
|
+
pageChanged: (progress: number) => void;
|
|
288
506
|
}, string, {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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
|
-
};
|