@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,61 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CanvasLoadedCallback } from '../utils/types';
|
|
2
|
+
interface OwnProps {
|
|
3
|
+
print: (showProgress?: boolean) => Promise<void>;
|
|
4
|
+
afterCanvasLoaded?: Record<number, CanvasLoadedCallback>;
|
|
5
|
+
}
|
|
2
6
|
declare const _default: {
|
|
3
|
-
new (...args: any[]): import("vue").
|
|
4
|
-
pages: ViewerPdfPage[];
|
|
5
|
-
isCancel: boolean;
|
|
6
|
-
}>>> & {
|
|
7
|
-
onProgress?: ((percent: number) => any) | undefined;
|
|
8
|
-
onLoading?: (() => any) | undefined;
|
|
9
|
-
onLoaded?: (() => any) | undefined;
|
|
10
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
loading: () => void;
|
|
12
|
-
} & {
|
|
13
|
-
loaded: () => void;
|
|
14
|
-
} & {
|
|
15
|
-
progress: (percent: number) => void;
|
|
16
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
-
pages: ViewerPdfPage[];
|
|
18
|
-
isCancel: boolean;
|
|
19
|
-
}>>> & {
|
|
20
|
-
onProgress?: ((percent: number) => any) | undefined;
|
|
21
|
-
onLoading?: (() => any) | undefined;
|
|
22
|
-
onLoaded?: (() => any) | undefined;
|
|
23
|
-
}, {}, true, {}, {}, {
|
|
7
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
24
8
|
P: {};
|
|
25
9
|
B: {};
|
|
26
10
|
D: {};
|
|
27
11
|
C: {};
|
|
28
12
|
M: {};
|
|
29
13
|
Defaults: {};
|
|
30
|
-
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
31
|
-
pages: ViewerPdfPage[];
|
|
32
|
-
isCancel: boolean;
|
|
33
|
-
}>>> & {
|
|
34
|
-
onProgress?: ((percent: number) => any) | undefined;
|
|
35
|
-
onLoading?: (() => any) | undefined;
|
|
36
|
-
onLoaded?: (() => any) | undefined;
|
|
37
|
-
}, {}, {}, {}, {}, {}>;
|
|
14
|
+
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
38
15
|
__isFragment?: undefined;
|
|
39
16
|
__isTeleport?: undefined;
|
|
40
17
|
__isSuspense?: undefined;
|
|
41
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
42
|
-
pages: ViewerPdfPage[];
|
|
43
|
-
isCancel: boolean;
|
|
44
|
-
}>>> & {
|
|
45
|
-
onProgress?: ((percent: number) => any) | undefined;
|
|
46
|
-
onLoading?: (() => any) | undefined;
|
|
47
|
-
onLoaded?: (() => any) | undefined;
|
|
48
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
-
loading: () => void;
|
|
50
|
-
} & {
|
|
51
|
-
loaded: () => void;
|
|
52
|
-
} & {
|
|
53
|
-
progress: (percent: number) => void;
|
|
54
|
-
}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
18
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
55
19
|
$slots: {
|
|
56
20
|
default: (_: {
|
|
57
|
-
onClick: () => Promise<void>;
|
|
21
|
+
onClick: ((showProgress?: boolean | undefined) => Promise<void>) & Promise<void>;
|
|
58
22
|
}) => any;
|
|
23
|
+
icon: (_: {}) => any;
|
|
59
24
|
};
|
|
60
25
|
});
|
|
61
26
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HighlightOptions } from '@/utils/types';
|
|
1
2
|
interface Props {
|
|
2
3
|
searching: boolean;
|
|
3
4
|
open: boolean;
|
|
@@ -5,39 +6,58 @@ interface Props {
|
|
|
5
6
|
current?: number;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: {
|
|
8
|
-
new (...args: any[]): import("vue").
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
9
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
10
|
+
onClose?: (() => any) | undefined;
|
|
11
|
+
onOpen?: (() => any) | undefined;
|
|
12
|
+
onNext?: (() => any) | undefined;
|
|
13
|
+
onPrev?: (() => any) | undefined;
|
|
14
|
+
"onUpdate:checkboxFilter"?: ((value: HighlightOptions) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
prev: () => void;
|
|
17
|
+
} & {
|
|
18
|
+
next: () => void;
|
|
19
|
+
} & {
|
|
20
|
+
open: () => void;
|
|
21
|
+
} & {
|
|
22
|
+
close: () => void;
|
|
23
|
+
} & {
|
|
24
|
+
"update:checkboxFilter": (value: HighlightOptions) => void;
|
|
25
|
+
}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
19
26
|
P: {};
|
|
20
27
|
B: {};
|
|
21
28
|
D: {};
|
|
22
29
|
C: {};
|
|
23
30
|
M: {};
|
|
24
31
|
Defaults: {};
|
|
25
|
-
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
33
|
+
onClose?: (() => any) | undefined;
|
|
34
|
+
onOpen?: (() => any) | undefined;
|
|
35
|
+
onNext?: (() => any) | undefined;
|
|
36
|
+
onPrev?: (() => any) | undefined;
|
|
37
|
+
"onUpdate:checkboxFilter"?: ((value: HighlightOptions) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, {}>;
|
|
31
39
|
__isFragment?: undefined;
|
|
32
40
|
__isTeleport?: undefined;
|
|
33
41
|
__isSuspense?: undefined;
|
|
34
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
43
|
+
onClose?: (() => any) | undefined;
|
|
44
|
+
onOpen?: (() => any) | undefined;
|
|
45
|
+
onNext?: (() => any) | undefined;
|
|
46
|
+
onPrev?: (() => any) | undefined;
|
|
47
|
+
"onUpdate:checkboxFilter"?: ((value: HighlightOptions) => any) | undefined;
|
|
48
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
prev: () => void;
|
|
50
|
+
} & {
|
|
51
|
+
next: () => void;
|
|
52
|
+
} & {
|
|
53
|
+
open: () => void;
|
|
54
|
+
} & {
|
|
55
|
+
close: () => void;
|
|
56
|
+
} & {
|
|
57
|
+
"update:checkboxFilter": (value: HighlightOptions) => void;
|
|
58
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
40
59
|
$slots: {
|
|
60
|
+
icon: (_: {}) => any;
|
|
41
61
|
loader: (_: {}) => any;
|
|
42
62
|
};
|
|
43
63
|
});
|
|
@@ -2,30 +2,28 @@ interface Props {
|
|
|
2
2
|
modelValue: boolean;
|
|
3
3
|
}
|
|
4
4
|
declare const _default: {
|
|
5
|
-
new (...args: any[]): import("vue").
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
6
6
|
"onUpdate:modelValue"?: ((payload: boolean) => any) | undefined;
|
|
7
|
-
}
|
|
7
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (payload: boolean) => void;
|
|
9
|
-
}, import("vue").
|
|
10
|
-
"onUpdate:modelValue"?: ((payload: boolean) => any) | undefined;
|
|
11
|
-
}, {}, true, {}, {}, {
|
|
9
|
+
}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
12
10
|
P: {};
|
|
13
11
|
B: {};
|
|
14
12
|
D: {};
|
|
15
13
|
C: {};
|
|
16
14
|
M: {};
|
|
17
15
|
Defaults: {};
|
|
18
|
-
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
16
|
+
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
19
17
|
"onUpdate:modelValue"?: ((payload: boolean) => any) | undefined;
|
|
20
|
-
}
|
|
18
|
+
}>, {}, {}, {}, {}, {}>;
|
|
21
19
|
__isFragment?: undefined;
|
|
22
20
|
__isTeleport?: undefined;
|
|
23
21
|
__isSuspense?: undefined;
|
|
24
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
22
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
25
23
|
"onUpdate:modelValue"?: ((payload: boolean) => any) | undefined;
|
|
26
|
-
}
|
|
24
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
25
|
"update:modelValue": (payload: boolean) => void;
|
|
28
|
-
}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
26
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
29
27
|
$slots: {
|
|
30
28
|
default: (_: {
|
|
31
29
|
onToggle: () => void;
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { ViewerPdfPage } from '
|
|
1
|
+
import { ViewerPdfPage } from '../utils/types';
|
|
2
|
+
import { ZoomLevel } from '@/utils/enumerators';
|
|
2
3
|
declare const _default: {
|
|
3
|
-
new (...args: any[]): import("vue").
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
scale: number;
|
|
5
|
-
focusedPage?: ViewerPdfPage | undefined;
|
|
6
|
-
pagesContainer
|
|
7
|
-
}>>> & {
|
|
8
|
-
onZoom?: ((nextScale: number) => any) | undefined;
|
|
9
|
-
}
|
|
10
|
-
zoom: (nextScale: number) => void;
|
|
11
|
-
}, import("vue").
|
|
12
|
-
scale: number;
|
|
13
|
-
focusedPage?: ViewerPdfPage | undefined;
|
|
14
|
-
pagesContainer: HTMLDivElement | null;
|
|
15
|
-
}>>> & {
|
|
16
|
-
onZoom?: ((nextScale: number) => any) | undefined;
|
|
17
|
-
}, {}, true, {}, {}, {
|
|
6
|
+
focusedPage?: Omit<ViewerPdfPage, "page"> | undefined;
|
|
7
|
+
pagesContainer?: HTMLDivElement | undefined;
|
|
8
|
+
}>>> & Readonly<{
|
|
9
|
+
onZoom?: ((nextScale: number | ZoomLevel) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
zoom: (nextScale: number | ZoomLevel) => void;
|
|
12
|
+
}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
18
13
|
P: {};
|
|
19
14
|
B: {};
|
|
20
15
|
D: {};
|
|
@@ -23,27 +18,29 @@ declare const _default: {
|
|
|
23
18
|
Defaults: {};
|
|
24
19
|
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
25
20
|
scale: number;
|
|
26
|
-
focusedPage?: ViewerPdfPage | undefined;
|
|
27
|
-
pagesContainer
|
|
28
|
-
}>>> & {
|
|
29
|
-
onZoom?: ((nextScale: number) => any) | undefined;
|
|
30
|
-
}
|
|
21
|
+
focusedPage?: Omit<ViewerPdfPage, "page"> | undefined;
|
|
22
|
+
pagesContainer?: HTMLDivElement | undefined;
|
|
23
|
+
}>>> & Readonly<{
|
|
24
|
+
onZoom?: ((nextScale: number | ZoomLevel) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, {}>;
|
|
31
26
|
__isFragment?: undefined;
|
|
32
27
|
__isTeleport?: undefined;
|
|
33
28
|
__isSuspense?: undefined;
|
|
34
29
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
35
30
|
scale: number;
|
|
36
|
-
focusedPage?: ViewerPdfPage | undefined;
|
|
37
|
-
pagesContainer
|
|
38
|
-
}>>> & {
|
|
39
|
-
onZoom?: ((nextScale: number) => any) | undefined;
|
|
40
|
-
}
|
|
41
|
-
zoom: (nextScale: number) => void;
|
|
42
|
-
}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
31
|
+
focusedPage?: Omit<ViewerPdfPage, "page"> | undefined;
|
|
32
|
+
pagesContainer?: HTMLDivElement | undefined;
|
|
33
|
+
}>>> & Readonly<{
|
|
34
|
+
onZoom?: ((nextScale: number | ZoomLevel) => any) | undefined;
|
|
35
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
zoom: (nextScale: number | ZoomLevel) => void;
|
|
37
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
43
38
|
$slots: {
|
|
44
39
|
default: (_: {
|
|
45
40
|
currentScale: number;
|
|
46
41
|
}) => any;
|
|
42
|
+
iconZoomOut: (_: {}) => any;
|
|
43
|
+
iconZoomIn: (_: {}) => any;
|
|
47
44
|
};
|
|
48
45
|
});
|
|
49
46
|
export default _default;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { ViewerPdfPage } from '
|
|
2
|
-
|
|
1
|
+
import { ViewerPdfPage } from '../utils/types';
|
|
2
|
+
import { ZoomLevel } from '@/utils/enumerators';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
currentPercentage: string;
|
|
4
|
-
currentPage?: ViewerPdfPage | undefined;
|
|
5
|
-
container
|
|
6
|
-
}
|
|
7
|
-
select: (scale: number) => void;
|
|
5
|
+
currentPage?: Omit<ViewerPdfPage, "page"> | undefined;
|
|
6
|
+
container?: HTMLDivElement | undefined;
|
|
7
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
select: (scale: number | ZoomLevel) => void;
|
|
8
9
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
10
|
currentPercentage: string;
|
|
10
|
-
currentPage?: ViewerPdfPage | undefined;
|
|
11
|
-
container
|
|
12
|
-
}>>> & {
|
|
13
|
-
onSelect?: ((scale: number) => any) | undefined;
|
|
14
|
-
}, {}, {}>;
|
|
11
|
+
currentPage?: Omit<ViewerPdfPage, "page"> | undefined;
|
|
12
|
+
container?: HTMLDivElement | undefined;
|
|
13
|
+
}>>> & Readonly<{
|
|
14
|
+
onSelect?: ((scale: number | ZoomLevel) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
16
|
export default _default;
|
|
16
17
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
18
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { PdfCommentPage } from '@/utils/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
height: string | number;
|
|
4
|
+
repliedCommentPages: PdfCommentPage[] | undefined;
|
|
5
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
navigate: (target: {
|
|
7
|
+
page: number;
|
|
8
|
+
rect: [number, number, number, number];
|
|
9
|
+
}) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
height: string | number;
|
|
12
|
+
repliedCommentPages: PdfCommentPage[] | undefined;
|
|
13
|
+
}>>> & Readonly<{
|
|
14
|
+
onNavigate?: ((target: {
|
|
15
|
+
page: number;
|
|
16
|
+
rect: [number, number, number, number];
|
|
17
|
+
}) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
+
} : {
|
|
25
|
+
type: import('vue').PropType<T[K]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
date: string | Date;
|
|
3
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
date: string | Date;
|
|
5
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Comment } from '@/utils/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
comment: Comment;
|
|
4
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
comment: Comment;
|
|
6
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AnnotationIconType } from '@/utils/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
type: AnnotationIconType;
|
|
4
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
type: AnnotationIconType;
|
|
6
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Comment } from '@/utils/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
replies: Comment[];
|
|
4
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
replies: Comment[];
|
|
6
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
close: () => void;
|
|
3
|
+
} & {
|
|
4
|
+
navigate: (target: {
|
|
5
|
+
page: number;
|
|
6
|
+
rect: [number, number, number, number];
|
|
7
|
+
}) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
onNavigate?: ((target: {
|
|
11
|
+
page: number;
|
|
12
|
+
rect: [number, number, number, number];
|
|
13
|
+
}) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -1,31 +1,24 @@
|
|
|
1
|
-
import type { AnnotationEventPayload, HighlightEventPayload, HighlightOptions, Match, TextLayerLoadedEventPayload } from './types';
|
|
2
1
|
import type { PageViewport, PDFPageProxy } from 'pdfjs-dist/types/web/interfaces';
|
|
3
2
|
import type { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
+
import type { CanvasLoadedCallback, AnnotationEventPayload, HighlightEventPayload, HighlightOptions, MatchValue, TextLayerLoadedEventPayload, VisibilityInfo, TextHighlight } from '../utils/types';
|
|
4
4
|
interface BaseProps {
|
|
5
|
-
|
|
6
|
-
rotation: number;
|
|
5
|
+
pageIndex: number;
|
|
7
6
|
page: PDFPageProxy;
|
|
8
7
|
viewport: PageViewport;
|
|
9
8
|
document: PDFDocumentProxy;
|
|
9
|
+
afterCanvasLoaded?: CanvasLoadedCallback;
|
|
10
|
+
annoImageResourcesPath?: string;
|
|
10
11
|
}
|
|
11
12
|
type TextProps = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
initialTextLayer: boolean;
|
|
14
|
+
textLayer: boolean;
|
|
15
|
+
searchKeyword?: string;
|
|
16
|
+
highlightTexts?: TextHighlight[];
|
|
17
|
+
currentHighlight?: MatchValue;
|
|
15
18
|
highlightOptions?: HighlightOptions;
|
|
16
|
-
} | {
|
|
17
|
-
initialTextLayer: true;
|
|
18
|
-
textLayer: false;
|
|
19
|
-
highlightText: string;
|
|
20
|
-
currentHighlight?: Match;
|
|
21
|
-
highlightOptions?: HighlightOptions;
|
|
22
|
-
};
|
|
23
|
-
type NonTextProps = {
|
|
24
|
-
initialTextLayer: false;
|
|
25
|
-
textLayer: false;
|
|
26
19
|
};
|
|
27
|
-
type OwnProps = BaseProps &
|
|
28
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<OwnProps
|
|
20
|
+
type OwnProps = BaseProps & TextProps;
|
|
21
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
22
|
highlight: (payload: HighlightEventPayload) => void;
|
|
30
23
|
} & {
|
|
31
24
|
textLoaded: (payload: TextLayerLoadedEventPayload) => void;
|
|
@@ -33,23 +26,15 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
33
26
|
annotated: (payload: AnnotationEventPayload) => void;
|
|
34
27
|
} & {
|
|
35
28
|
annotationLoaded: (payload?: any[] | undefined) => void;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
highlightOptions?: HighlightOptions | undefined;
|
|
41
|
-
}>> | import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<BaseProps & {
|
|
42
|
-
initialTextLayer: true;
|
|
43
|
-
textLayer: false;
|
|
44
|
-
highlightText: string;
|
|
45
|
-
currentHighlight?: Match | undefined;
|
|
46
|
-
highlightOptions?: HighlightOptions | undefined;
|
|
47
|
-
}>> | import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<BaseProps & NonTextProps>>> & {
|
|
29
|
+
} & {
|
|
30
|
+
intersected: (args: VisibilityInfo) => void;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>> & Readonly<{
|
|
32
|
+
onAnnotationLoaded?: ((payload?: any[] | undefined) => any) | undefined;
|
|
48
33
|
onHighlight?: ((payload: HighlightEventPayload) => any) | undefined;
|
|
49
34
|
onTextLoaded?: ((payload: TextLayerLoadedEventPayload) => any) | undefined;
|
|
50
|
-
onAnnotationLoaded?: ((payload?: any[] | undefined) => any) | undefined;
|
|
51
35
|
onAnnotated?: ((payload: AnnotationEventPayload) => any) | undefined;
|
|
52
|
-
|
|
36
|
+
onIntersected?: ((args: VisibilityInfo) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
38
|
export default _default;
|
|
54
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PDFPageProxy } from 'pdfjs-dist/types/web/interfaces';
|
|
2
2
|
interface Props {
|
|
3
3
|
page: PDFPageProxy;
|
|
4
|
-
viewport: PageViewport;
|
|
5
4
|
isPageFocused: boolean;
|
|
6
5
|
}
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props
|
|
6
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
7
|
click: (pageIndex: number) => void;
|
|
9
8
|
} & {
|
|
10
9
|
rendered: (pageIndex: number) => void;
|
|
10
|
+
} & {
|
|
11
|
+
error: (error: any) => void;
|
|
11
12
|
} & {
|
|
12
13
|
visibilityChanged: (dto: {
|
|
13
14
|
pageIndex: number;
|
|
14
15
|
visibility: boolean;
|
|
15
16
|
}) => void;
|
|
16
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
18
|
+
onError?: ((error: any) => any) | undefined;
|
|
17
19
|
onClick?: ((pageIndex: number) => any) | undefined;
|
|
18
20
|
onRendered?: ((pageIndex: number) => any) | undefined;
|
|
19
21
|
onVisibilityChanged?: ((dto: {
|
|
20
22
|
pageIndex: number;
|
|
21
23
|
visibility: boolean;
|
|
22
24
|
}) => any) | undefined;
|
|
23
|
-
}, {}, {}>;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
26
|
export default _default;
|
|
25
27
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
28
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { ViewerPdfPage } from '
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
import type { ViewerPdfPage } from '../utils/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
pages: ViewerPdfPage[];
|
|
4
4
|
isOpened: boolean;
|
|
5
|
-
}
|
|
5
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
6
|
navigate: (toPage: number) => void;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
8
|
pages: ViewerPdfPage[];
|
|
9
9
|
isOpened: boolean;
|
|
10
|
-
}>>> & {
|
|
10
|
+
}>>> & Readonly<{
|
|
11
11
|
onNavigate?: ((toPage: number) => any) | undefined;
|
|
12
|
-
}, {}, {}>;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
15
|
type __VLS_TypePropsToRuntimeProps<T> = {
|