@vue-pdf-viewer/viewer 3.0.0-alpha.3 → 3.0.0-alpha.30
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/dist/annotation-font-Dz5-utxy.js +21 -0
- package/dist/annotation-font-style-italic-DrQU7N-a.js +21 -0
- package/dist/annotation-font-style-underline-D7zPcuK6.js +21 -0
- package/dist/annotation-font-weight-bold-Ba2Ix8G4.js +23 -0
- package/dist/index.js +16150 -13316
- package/dist/index.umd.cjs +23 -22
- package/dist/types/assets/pdf-annotations/index.d.ts +2 -0
- package/dist/types/components/AppButton.vue.d.ts +18 -0
- package/dist/types/components/AppFormControl.vue.d.ts +30 -0
- package/dist/types/components/AppIcon.vue.d.ts +15 -0
- package/dist/types/components/AppInput.vue.d.ts +12 -0
- package/dist/types/components/AppLoader.vue.d.ts +19 -0
- package/dist/types/components/AppPopover.vue.d.ts +93 -0
- package/dist/types/components/AppTooltip.vue.d.ts +34 -0
- package/dist/types/components/ColorButton.vue.d.ts +15 -0
- package/dist/types/components/DragFileMask.vue.d.ts +55 -0
- package/dist/types/components/FreeTextPanel.vue.d.ts +2 -0
- package/dist/types/components/FreeTextPanelFontColors.vue.d.ts +2 -0
- package/dist/types/components/FreeTextPanelFontFamilySelector.vue.d.ts +2 -0
- package/dist/types/components/FreeTextPanelFontSizeSelector.vue.d.ts +2 -0
- package/dist/types/components/FreeTextPanelTextStyle.vue.d.ts +2 -0
- package/dist/types/components/HighlightColorPicker.vue.d.ts +2 -0
- package/dist/types/components/LayerAnnotation.vue.d.ts +47 -0
- package/dist/types/components/LayerAnnotationEditor.vue.d.ts +26 -0
- package/dist/types/components/LayerAnnotationEditorFreeText.vue.d.ts +37 -0
- package/dist/types/components/LayerAnnotationEditorFreeTextItem.vue.d.ts +33 -0
- package/dist/types/components/LayerAnnotationEditorHighlight.vue.d.ts +37 -0
- package/dist/types/components/LayerAnnotationEditorHighlightItem.vue.d.ts +26 -0
- package/dist/types/components/LayerAnnotationEditorImage.vue.d.ts +28 -0
- package/dist/types/components/LayerAnnotationStampResizer.vue.d.ts +28 -0
- package/dist/types/components/LayerCanvas.vue.d.ts +25 -0
- package/dist/types/components/LayerText.vue.d.ts +30 -0
- package/dist/types/components/LayerTextHighlight.vue.d.ts +20 -0
- package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +19 -0
- package/dist/types/components/LayerXFA.vue.d.ts +23 -0
- package/dist/types/components/ModalPassword.vue.d.ts +19 -0
- package/dist/types/components/ModalPdfProperties.vue.d.ts +18 -0
- package/dist/types/components/ModalPrintLoadingProgress.vue.d.ts +20 -0
- package/dist/types/components/Signatures.vue.d.ts +2 -0
- package/dist/types/components/SwitchAppearance.vue.d.ts +23 -0
- package/dist/types/components/ToolCommentPanel.vue.d.ts +31 -0
- package/dist/types/components/ToolDownload.vue.d.ts +21 -0
- package/dist/types/components/ToolFullscreen.vue.d.ts +22 -0
- package/dist/types/components/ToolMenuOthers.vue.d.ts +88 -0
- package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +21 -0
- package/dist/types/components/ToolOpenFile.vue.d.ts +21 -0
- package/dist/types/components/ToolOpenFileInput.vue.d.ts +11 -0
- package/dist/types/components/ToolPagination.vue.d.ts +68 -0
- package/dist/types/components/ToolPrint.vue.d.ts +35 -0
- package/dist/types/components/ToolSearch.vue.d.ts +73 -0
- package/dist/types/components/ToolThumbnail.vue.d.ts +43 -0
- package/dist/types/components/ToolZoom.vue.d.ts +55 -0
- package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +25 -0
- 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 +44 -0
- package/dist/types/components/VPdfSplitter.vue.d.ts +2 -0
- package/dist/types/components/VPdfThumbnail.vue.d.ts +26 -0
- package/dist/types/components/VPdfThumbnails.vue.d.ts +22 -0
- package/dist/types/components/VPdfViewer.vue.d.ts +606 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/ui/button/Button.vue.d.ts +52 -0
- package/dist/types/components/ui/button/index.d.ts +7 -0
- 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 +28 -0
- package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +28 -0
- package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +35 -0
- package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +35 -0
- package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +34 -0
- package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +34 -0
- package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +35 -0
- package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +28 -0
- package/dist/types/components/ui/dialog/index.d.ts +8 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +28 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +35 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +52 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +28 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +41 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +38 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +28 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +38 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +17 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +34 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +28 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +35 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +35 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +28 -0
- package/dist/types/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/types/components/ui/input/Input.vue.d.ts +16 -0
- package/dist/types/components/ui/input/index.d.ts +7 -0
- package/dist/types/components/ui/popover/Popover.vue.d.ts +28 -0
- package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +64 -0
- package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +28 -0
- package/dist/types/components/ui/popover/index.d.ts +3 -0
- package/dist/types/components/ui/progress/Progress.vue.d.ts +28 -0
- package/dist/types/components/ui/progress/index.d.ts +1 -0
- package/dist/types/components/ui/select/Select.vue.d.ts +28 -0
- package/dist/types/components/ui/select/SelectContent.vue.d.ts +55 -0
- package/dist/types/components/ui/select/SelectGroup.vue.d.ts +35 -0
- package/dist/types/components/ui/select/SelectItem.vue.d.ts +35 -0
- package/dist/types/components/ui/select/SelectItemText.vue.d.ts +28 -0
- package/dist/types/components/ui/select/SelectLabel.vue.d.ts +35 -0
- package/dist/types/components/ui/select/SelectScrollDownButton.vue.d.ts +35 -0
- package/dist/types/components/ui/select/SelectScrollUpButton.vue.d.ts +35 -0
- package/dist/types/components/ui/select/SelectSeparator.vue.d.ts +17 -0
- package/dist/types/components/ui/select/SelectTrigger.vue.d.ts +35 -0
- package/dist/types/components/ui/select/SelectValue.vue.d.ts +28 -0
- package/dist/types/components/ui/select/index.d.ts +11 -0
- package/dist/types/components/ui/toast/Toast.vue.d.ts +28 -0
- package/dist/types/components/ui/toast/ToastAction.vue.d.ts +35 -0
- package/dist/types/components/ui/toast/ToastClose.vue.d.ts +17 -0
- package/dist/types/components/ui/toast/ToastDescription.vue.d.ts +35 -0
- package/dist/types/components/ui/toast/ToastProvider.vue.d.ts +28 -0
- package/dist/types/components/ui/toast/ToastTitle.vue.d.ts +35 -0
- package/dist/types/components/ui/toast/ToastViewport.vue.d.ts +17 -0
- package/dist/types/components/ui/toast/Toaster.vue.d.ts +2 -0
- package/dist/types/components/ui/toast/index.d.ts +21 -0
- package/dist/types/components/ui/toast/use-toast.d.ts +272 -0
- package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +28 -0
- package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +52 -0
- package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +28 -0
- package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +28 -0
- package/dist/types/components/ui/tooltip/index.d.ts +4 -0
- package/dist/types/components/utils/annotations.d.ts +5 -0
- package/dist/types/components/utils/destination.d.ts +7 -0
- package/dist/types/components/utils/helpers.d.ts +2 -0
- package/dist/types/components/utils/link_service.d.ts +71 -0
- package/dist/types/components/utils/sanitizeExternalURL.d.ts +1 -0
- package/dist/types/composables/__mocks__/useLicense.d.ts +12 -0
- package/dist/types/composables/useAnnotationDrag.d.ts +72 -0
- package/dist/types/composables/useAnnotationFreeText.d.ts +1542 -0
- package/dist/types/composables/useAnnotationHighlight.d.ts +389 -0
- package/dist/types/composables/useAnnotationStamp.d.ts +513 -0
- package/dist/types/composables/useAnnotationStorage.d.ts +72 -0
- package/dist/types/composables/useCommandHistory.d.ts +6 -0
- package/dist/types/composables/useDownload.d.ts +13 -0
- package/dist/types/composables/useHighlight.d.ts +11 -0
- package/dist/types/composables/useLicense.d.ts +22 -0
- package/dist/types/composables/usePdf.d.ts +28 -0
- 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 +10 -0
- package/dist/types/composables/usePinch.d.ts +3 -0
- 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 +8 -0
- 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 +7 -0
- package/dist/types/composables/useScale.d.ts +21 -0
- package/dist/types/composables/useSearch.d.ts +5 -0
- 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 +151 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/utils/annotation-command.d.ts +18 -0
- package/dist/types/utils/annotation-display.d.ts +28 -0
- package/dist/types/utils/annotation-free-text.d.ts +3 -0
- package/dist/types/utils/annotation-highlight.d.ts +100 -0
- package/dist/types/utils/annotation-image.d.ts +111 -0
- package/dist/types/utils/annotation-pdf.d.ts +35 -0
- package/dist/types/utils/appConsole.d.ts +24 -0
- package/dist/types/utils/characters.d.ts +16 -0
- package/dist/types/utils/color.d.ts +4 -0
- package/dist/types/utils/convertPDFDate.d.ts +1 -0
- package/dist/types/utils/enumerators.d.ts +81 -0
- package/dist/types/utils/highlight.d.ts +8 -0
- package/dist/types/utils/historyManager.d.ts +55 -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 +741 -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 +21 -0
- package/package.json +7 -7
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, PdfProperties } from '@/utils/types';
|
|
2
|
+
import { ScrollMode, ViewMode, ZoomLevel } from '@/utils/enumerators';
|
|
3
|
+
import '../style.scss';
|
|
4
|
+
import { Localization } from '@vue-pdf-viewer/shared';
|
|
5
|
+
declare const _default: {
|
|
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
|
+
onScroll?: ((scrollEvent: Event) => any) | undefined;
|
|
80
|
+
onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
|
|
81
|
+
onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
|
|
82
|
+
onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
|
|
83
|
+
onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
|
|
84
|
+
onXfaLoaded?: (() => any) | undefined;
|
|
85
|
+
onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
|
|
86
|
+
onLoadError?: ((error: any) => any) | undefined;
|
|
87
|
+
onLoading?: (() => any) | undefined;
|
|
88
|
+
onLoadProgress?: ((progress: number) => any) | undefined;
|
|
89
|
+
onAfterGoToPage?: ((progress: number) => any) | undefined;
|
|
90
|
+
onPageChanged?: ((progress: number) => any) | undefined;
|
|
91
|
+
}>, {
|
|
92
|
+
highlightControl: {
|
|
93
|
+
highlight: (args: import("@/utils/types").TextHighlight[]) => Promise<Record<string, import("@/utils/types").MatchHighlightResult[]>>;
|
|
94
|
+
clear: () => void;
|
|
95
|
+
};
|
|
96
|
+
printControl: {
|
|
97
|
+
print: (options?: {
|
|
98
|
+
visibleDefaultProgress: boolean;
|
|
99
|
+
} | undefined) => void;
|
|
100
|
+
cancel: () => void;
|
|
101
|
+
onProgress?: ((progress: import("@/utils/types").PreparePrintProgress) => void) | undefined;
|
|
102
|
+
onError?: ((error: Error) => void) | undefined;
|
|
103
|
+
onComplete?: (() => void) | undefined;
|
|
104
|
+
};
|
|
105
|
+
pageControl: {
|
|
106
|
+
goToPage: (pageNumber: number) => void;
|
|
107
|
+
totalPages: number;
|
|
108
|
+
currentPage: number;
|
|
109
|
+
};
|
|
110
|
+
searchControl: {
|
|
111
|
+
searchMatches: {
|
|
112
|
+
totalMatches: number;
|
|
113
|
+
matches: {
|
|
114
|
+
index: number;
|
|
115
|
+
page: number;
|
|
116
|
+
}[];
|
|
117
|
+
} | {
|
|
118
|
+
totalMatches: number;
|
|
119
|
+
matches: {
|
|
120
|
+
index: number;
|
|
121
|
+
page: number;
|
|
122
|
+
}[];
|
|
123
|
+
};
|
|
124
|
+
searching: boolean;
|
|
125
|
+
goToMatch: (index: number) => void;
|
|
126
|
+
search: (value: string) => Promise<import("@/utils/types").MatchHighlightResult[]>;
|
|
127
|
+
nextSearchMatch: () => void;
|
|
128
|
+
prevSearchMatch: () => void;
|
|
129
|
+
};
|
|
130
|
+
rotateControl: {
|
|
131
|
+
rotateClockwise: () => void;
|
|
132
|
+
rotateCounterclockwise: () => void;
|
|
133
|
+
currentRotation: number;
|
|
134
|
+
};
|
|
135
|
+
downloadControl: {
|
|
136
|
+
download: () => void;
|
|
137
|
+
onError?: ((error: Error) => void) | undefined;
|
|
138
|
+
onComplete?: (() => void) | undefined;
|
|
139
|
+
};
|
|
140
|
+
zoomControl: {
|
|
141
|
+
scale: number;
|
|
142
|
+
zoom: (scale: number | ZoomLevel) => void;
|
|
143
|
+
};
|
|
144
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
145
|
+
annotation: (data: AnnotationEventPayload) => void;
|
|
146
|
+
} & {
|
|
147
|
+
loaded: (properties?: PdfProperties | undefined) => void;
|
|
148
|
+
} & {
|
|
149
|
+
loadError: (error: any) => void;
|
|
150
|
+
} & {
|
|
151
|
+
loading: () => void;
|
|
152
|
+
} & {
|
|
153
|
+
loadProgress: (progress: number) => void;
|
|
154
|
+
} & {
|
|
155
|
+
textLoaded: (data: TextLayerLoadedEventPayload) => void;
|
|
156
|
+
} & {
|
|
157
|
+
annotationLoaded: (annotations: any[]) => void;
|
|
158
|
+
} & {
|
|
159
|
+
xfaLoaded: () => void;
|
|
160
|
+
} & {
|
|
161
|
+
rotate: (rotateEvent: RotateEvent) => void;
|
|
162
|
+
} & {
|
|
163
|
+
scroll: (scrollEvent: Event) => void;
|
|
164
|
+
} & {
|
|
165
|
+
afterGoToPage: (progress: number) => void;
|
|
166
|
+
} & {
|
|
167
|
+
pageChanged: (progress: number) => void;
|
|
168
|
+
}, import("vue").PublicProps, {
|
|
169
|
+
readonly initialViewMode: ViewMode;
|
|
170
|
+
readonly initialScrollMode: ScrollMode;
|
|
171
|
+
readonly workerUrl: string;
|
|
172
|
+
readonly initialPage: number;
|
|
173
|
+
readonly initialScale: number | ZoomLevel;
|
|
174
|
+
readonly initialRotation: number;
|
|
175
|
+
readonly initialThumbnailsVisible: boolean;
|
|
176
|
+
readonly initialSearch: string;
|
|
177
|
+
readonly textLayer: boolean;
|
|
178
|
+
readonly characterMap: import("@/utils/types").CharacterMap;
|
|
179
|
+
readonly toolbarOptions: false | Partial<ToolbarOptions>;
|
|
180
|
+
readonly localization: Record<string, Localization>;
|
|
181
|
+
readonly afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
|
|
182
|
+
readonly textHighlights: import("@/utils/types").TextHighlight[];
|
|
183
|
+
readonly plugins: import("@vue-pdf-viewer/shared").Plugin[];
|
|
184
|
+
readonly downloadFilename: string;
|
|
185
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
186
|
+
P: {};
|
|
187
|
+
B: {};
|
|
188
|
+
D: {};
|
|
189
|
+
C: {};
|
|
190
|
+
M: {};
|
|
191
|
+
Defaults: {};
|
|
192
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
193
|
+
readonly src: {
|
|
194
|
+
readonly type: import("vue").PropType<string | import("@/utils/types").VPVSrc>;
|
|
195
|
+
readonly required: true;
|
|
196
|
+
};
|
|
197
|
+
readonly workerUrl: {
|
|
198
|
+
readonly type: import("vue").PropType<string>;
|
|
199
|
+
readonly default: undefined;
|
|
200
|
+
};
|
|
201
|
+
readonly initialPage: {
|
|
202
|
+
readonly type: import("vue").PropType<number>;
|
|
203
|
+
readonly default: () => number;
|
|
204
|
+
};
|
|
205
|
+
readonly initialScale: {
|
|
206
|
+
readonly type: import("vue").PropType<number | ZoomLevel>;
|
|
207
|
+
readonly default: () => ZoomLevel;
|
|
208
|
+
};
|
|
209
|
+
readonly initialScrollMode: {
|
|
210
|
+
readonly type: import("vue").PropType<ScrollMode>;
|
|
211
|
+
readonly default: () => ScrollMode;
|
|
212
|
+
readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
|
|
213
|
+
};
|
|
214
|
+
readonly initialViewMode: {
|
|
215
|
+
readonly type: import("vue").PropType<ViewMode>;
|
|
216
|
+
readonly default: () => ViewMode;
|
|
217
|
+
readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
|
|
218
|
+
};
|
|
219
|
+
readonly initialRotation: {
|
|
220
|
+
readonly type: import("vue").PropType<number>;
|
|
221
|
+
readonly default: () => number;
|
|
222
|
+
};
|
|
223
|
+
readonly initialThumbnailsVisible: {
|
|
224
|
+
readonly type: import("vue").PropType<boolean>;
|
|
225
|
+
readonly default: undefined;
|
|
226
|
+
};
|
|
227
|
+
readonly textLayer: {
|
|
228
|
+
readonly type: import("vue").PropType<boolean>;
|
|
229
|
+
readonly default: () => boolean;
|
|
230
|
+
};
|
|
231
|
+
readonly characterMap: {
|
|
232
|
+
readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
|
|
233
|
+
readonly default: undefined;
|
|
234
|
+
};
|
|
235
|
+
readonly toolbarOptions: {
|
|
236
|
+
readonly type: import("vue").PropType<false | Partial<ToolbarOptions>>;
|
|
237
|
+
readonly default: () => ToolbarOptions;
|
|
238
|
+
};
|
|
239
|
+
readonly localization: {
|
|
240
|
+
readonly type: import("vue").PropType<Record<string, Localization>>;
|
|
241
|
+
readonly default: () => Record<string, Localization>;
|
|
242
|
+
};
|
|
243
|
+
readonly initialSearch: {
|
|
244
|
+
readonly type: StringConstructor;
|
|
245
|
+
readonly default: undefined;
|
|
246
|
+
};
|
|
247
|
+
readonly afterCanvasLoaded: {
|
|
248
|
+
readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
|
|
249
|
+
readonly default: undefined;
|
|
250
|
+
};
|
|
251
|
+
readonly textHighlights: {
|
|
252
|
+
readonly type: import("vue").PropType<import("@/utils/types").TextHighlight[]>;
|
|
253
|
+
readonly default: undefined;
|
|
254
|
+
readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
|
|
255
|
+
};
|
|
256
|
+
readonly downloadFilename: {
|
|
257
|
+
readonly type: StringConstructor;
|
|
258
|
+
readonly default: undefined;
|
|
259
|
+
};
|
|
260
|
+
readonly plugins: {
|
|
261
|
+
readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin[]>;
|
|
262
|
+
readonly default: undefined;
|
|
263
|
+
};
|
|
264
|
+
}>> & Readonly<{
|
|
265
|
+
onScroll?: ((scrollEvent: Event) => any) | undefined;
|
|
266
|
+
onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
|
|
267
|
+
onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
|
|
268
|
+
onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
|
|
269
|
+
onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
|
|
270
|
+
onXfaLoaded?: (() => any) | undefined;
|
|
271
|
+
onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
|
|
272
|
+
onLoadError?: ((error: any) => any) | undefined;
|
|
273
|
+
onLoading?: (() => any) | undefined;
|
|
274
|
+
onLoadProgress?: ((progress: number) => any) | undefined;
|
|
275
|
+
onAfterGoToPage?: ((progress: number) => any) | undefined;
|
|
276
|
+
onPageChanged?: ((progress: number) => any) | undefined;
|
|
277
|
+
}>, {
|
|
278
|
+
highlightControl: {
|
|
279
|
+
highlight: (args: import("@/utils/types").TextHighlight[]) => Promise<Record<string, import("@/utils/types").MatchHighlightResult[]>>;
|
|
280
|
+
clear: () => void;
|
|
281
|
+
};
|
|
282
|
+
printControl: {
|
|
283
|
+
print: (options?: {
|
|
284
|
+
visibleDefaultProgress: boolean;
|
|
285
|
+
} | undefined) => void;
|
|
286
|
+
cancel: () => void;
|
|
287
|
+
onProgress?: ((progress: import("@/utils/types").PreparePrintProgress) => void) | undefined;
|
|
288
|
+
onError?: ((error: Error) => void) | undefined;
|
|
289
|
+
onComplete?: (() => void) | undefined;
|
|
290
|
+
};
|
|
291
|
+
pageControl: {
|
|
292
|
+
goToPage: (pageNumber: number) => void;
|
|
293
|
+
totalPages: number;
|
|
294
|
+
currentPage: number;
|
|
295
|
+
};
|
|
296
|
+
searchControl: {
|
|
297
|
+
searchMatches: {
|
|
298
|
+
totalMatches: number;
|
|
299
|
+
matches: {
|
|
300
|
+
index: number;
|
|
301
|
+
page: number;
|
|
302
|
+
}[];
|
|
303
|
+
} | {
|
|
304
|
+
totalMatches: number;
|
|
305
|
+
matches: {
|
|
306
|
+
index: number;
|
|
307
|
+
page: number;
|
|
308
|
+
}[];
|
|
309
|
+
};
|
|
310
|
+
searching: boolean;
|
|
311
|
+
goToMatch: (index: number) => void;
|
|
312
|
+
search: (value: string) => Promise<import("@/utils/types").MatchHighlightResult[]>;
|
|
313
|
+
nextSearchMatch: () => void;
|
|
314
|
+
prevSearchMatch: () => void;
|
|
315
|
+
};
|
|
316
|
+
rotateControl: {
|
|
317
|
+
rotateClockwise: () => void;
|
|
318
|
+
rotateCounterclockwise: () => void;
|
|
319
|
+
currentRotation: number;
|
|
320
|
+
};
|
|
321
|
+
downloadControl: {
|
|
322
|
+
download: () => void;
|
|
323
|
+
onError?: ((error: Error) => void) | undefined;
|
|
324
|
+
onComplete?: (() => void) | undefined;
|
|
325
|
+
};
|
|
326
|
+
zoomControl: {
|
|
327
|
+
scale: number;
|
|
328
|
+
zoom: (scale: number | ZoomLevel) => void;
|
|
329
|
+
};
|
|
330
|
+
}, {}, {}, {}, {
|
|
331
|
+
readonly initialViewMode: ViewMode;
|
|
332
|
+
readonly initialScrollMode: ScrollMode;
|
|
333
|
+
readonly workerUrl: string;
|
|
334
|
+
readonly initialPage: number;
|
|
335
|
+
readonly initialScale: number | ZoomLevel;
|
|
336
|
+
readonly initialRotation: number;
|
|
337
|
+
readonly initialThumbnailsVisible: boolean;
|
|
338
|
+
readonly initialSearch: string;
|
|
339
|
+
readonly textLayer: boolean;
|
|
340
|
+
readonly characterMap: import("@/utils/types").CharacterMap;
|
|
341
|
+
readonly toolbarOptions: false | Partial<ToolbarOptions>;
|
|
342
|
+
readonly localization: Record<string, Localization>;
|
|
343
|
+
readonly afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
|
|
344
|
+
readonly textHighlights: import("@/utils/types").TextHighlight[];
|
|
345
|
+
readonly plugins: import("@vue-pdf-viewer/shared").Plugin[];
|
|
346
|
+
readonly downloadFilename: string;
|
|
347
|
+
}>;
|
|
348
|
+
__isFragment?: undefined;
|
|
349
|
+
__isTeleport?: undefined;
|
|
350
|
+
__isSuspense?: undefined;
|
|
351
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
352
|
+
readonly src: {
|
|
353
|
+
readonly type: import("vue").PropType<string | import("@/utils/types").VPVSrc>;
|
|
354
|
+
readonly required: true;
|
|
355
|
+
};
|
|
356
|
+
readonly workerUrl: {
|
|
357
|
+
readonly type: import("vue").PropType<string>;
|
|
358
|
+
readonly default: undefined;
|
|
359
|
+
};
|
|
360
|
+
readonly initialPage: {
|
|
361
|
+
readonly type: import("vue").PropType<number>;
|
|
362
|
+
readonly default: () => number;
|
|
363
|
+
};
|
|
364
|
+
readonly initialScale: {
|
|
365
|
+
readonly type: import("vue").PropType<number | ZoomLevel>;
|
|
366
|
+
readonly default: () => ZoomLevel;
|
|
367
|
+
};
|
|
368
|
+
readonly initialScrollMode: {
|
|
369
|
+
readonly type: import("vue").PropType<ScrollMode>;
|
|
370
|
+
readonly default: () => ScrollMode;
|
|
371
|
+
readonly validator: (initialScrollMode: ScrollMode, args: unknown) => boolean;
|
|
372
|
+
};
|
|
373
|
+
readonly initialViewMode: {
|
|
374
|
+
readonly type: import("vue").PropType<ViewMode>;
|
|
375
|
+
readonly default: () => ViewMode;
|
|
376
|
+
readonly validator: (initialViewMode: ViewMode, args: unknown) => boolean;
|
|
377
|
+
};
|
|
378
|
+
readonly initialRotation: {
|
|
379
|
+
readonly type: import("vue").PropType<number>;
|
|
380
|
+
readonly default: () => number;
|
|
381
|
+
};
|
|
382
|
+
readonly initialThumbnailsVisible: {
|
|
383
|
+
readonly type: import("vue").PropType<boolean>;
|
|
384
|
+
readonly default: undefined;
|
|
385
|
+
};
|
|
386
|
+
readonly textLayer: {
|
|
387
|
+
readonly type: import("vue").PropType<boolean>;
|
|
388
|
+
readonly default: () => boolean;
|
|
389
|
+
};
|
|
390
|
+
readonly characterMap: {
|
|
391
|
+
readonly type: import("vue").PropType<import("@/utils/types").CharacterMap>;
|
|
392
|
+
readonly default: undefined;
|
|
393
|
+
};
|
|
394
|
+
readonly toolbarOptions: {
|
|
395
|
+
readonly type: import("vue").PropType<false | Partial<ToolbarOptions>>;
|
|
396
|
+
readonly default: () => ToolbarOptions;
|
|
397
|
+
};
|
|
398
|
+
readonly localization: {
|
|
399
|
+
readonly type: import("vue").PropType<Record<string, Localization>>;
|
|
400
|
+
readonly default: () => Record<string, Localization>;
|
|
401
|
+
};
|
|
402
|
+
readonly initialSearch: {
|
|
403
|
+
readonly type: StringConstructor;
|
|
404
|
+
readonly default: undefined;
|
|
405
|
+
};
|
|
406
|
+
readonly afterCanvasLoaded: {
|
|
407
|
+
readonly type: import("vue").PropType<Record<number, import("@/utils/types").CanvasLoadedCallback>>;
|
|
408
|
+
readonly default: undefined;
|
|
409
|
+
};
|
|
410
|
+
readonly textHighlights: {
|
|
411
|
+
readonly type: import("vue").PropType<import("@/utils/types").TextHighlight[]>;
|
|
412
|
+
readonly default: undefined;
|
|
413
|
+
readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
|
|
414
|
+
};
|
|
415
|
+
readonly downloadFilename: {
|
|
416
|
+
readonly type: StringConstructor;
|
|
417
|
+
readonly default: undefined;
|
|
418
|
+
};
|
|
419
|
+
readonly plugins: {
|
|
420
|
+
readonly type: import("vue").PropType<import("@vue-pdf-viewer/shared").Plugin[]>;
|
|
421
|
+
readonly default: undefined;
|
|
422
|
+
};
|
|
423
|
+
}>> & Readonly<{
|
|
424
|
+
onScroll?: ((scrollEvent: Event) => any) | undefined;
|
|
425
|
+
onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
|
|
426
|
+
onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
|
|
427
|
+
onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
|
|
428
|
+
onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
|
|
429
|
+
onXfaLoaded?: (() => any) | undefined;
|
|
430
|
+
onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
|
|
431
|
+
onLoadError?: ((error: any) => any) | undefined;
|
|
432
|
+
onLoading?: (() => any) | undefined;
|
|
433
|
+
onLoadProgress?: ((progress: number) => any) | undefined;
|
|
434
|
+
onAfterGoToPage?: ((progress: number) => any) | undefined;
|
|
435
|
+
onPageChanged?: ((progress: number) => any) | undefined;
|
|
436
|
+
}>, {
|
|
437
|
+
highlightControl: {
|
|
438
|
+
highlight: (args: import("@/utils/types").TextHighlight[]) => Promise<Record<string, import("@/utils/types").MatchHighlightResult[]>>;
|
|
439
|
+
clear: () => void;
|
|
440
|
+
};
|
|
441
|
+
printControl: {
|
|
442
|
+
print: (options?: {
|
|
443
|
+
visibleDefaultProgress: boolean;
|
|
444
|
+
} | undefined) => void;
|
|
445
|
+
cancel: () => void;
|
|
446
|
+
onProgress?: ((progress: import("@/utils/types").PreparePrintProgress) => void) | undefined;
|
|
447
|
+
onError?: ((error: Error) => void) | undefined;
|
|
448
|
+
onComplete?: (() => void) | undefined;
|
|
449
|
+
};
|
|
450
|
+
pageControl: {
|
|
451
|
+
goToPage: (pageNumber: number) => void;
|
|
452
|
+
totalPages: number;
|
|
453
|
+
currentPage: number;
|
|
454
|
+
};
|
|
455
|
+
searchControl: {
|
|
456
|
+
searchMatches: {
|
|
457
|
+
totalMatches: number;
|
|
458
|
+
matches: {
|
|
459
|
+
index: number;
|
|
460
|
+
page: number;
|
|
461
|
+
}[];
|
|
462
|
+
} | {
|
|
463
|
+
totalMatches: number;
|
|
464
|
+
matches: {
|
|
465
|
+
index: number;
|
|
466
|
+
page: number;
|
|
467
|
+
}[];
|
|
468
|
+
};
|
|
469
|
+
searching: boolean;
|
|
470
|
+
goToMatch: (index: number) => void;
|
|
471
|
+
search: (value: string) => Promise<import("@/utils/types").MatchHighlightResult[]>;
|
|
472
|
+
nextSearchMatch: () => void;
|
|
473
|
+
prevSearchMatch: () => void;
|
|
474
|
+
};
|
|
475
|
+
rotateControl: {
|
|
476
|
+
rotateClockwise: () => void;
|
|
477
|
+
rotateCounterclockwise: () => void;
|
|
478
|
+
currentRotation: number;
|
|
479
|
+
};
|
|
480
|
+
downloadControl: {
|
|
481
|
+
download: () => void;
|
|
482
|
+
onError?: ((error: Error) => void) | undefined;
|
|
483
|
+
onComplete?: (() => void) | undefined;
|
|
484
|
+
};
|
|
485
|
+
zoomControl: {
|
|
486
|
+
scale: number;
|
|
487
|
+
zoom: (scale: number | ZoomLevel) => void;
|
|
488
|
+
};
|
|
489
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
490
|
+
annotation: (data: AnnotationEventPayload) => void;
|
|
491
|
+
} & {
|
|
492
|
+
loaded: (properties?: PdfProperties | undefined) => void;
|
|
493
|
+
} & {
|
|
494
|
+
loadError: (error: any) => void;
|
|
495
|
+
} & {
|
|
496
|
+
loading: () => void;
|
|
497
|
+
} & {
|
|
498
|
+
loadProgress: (progress: number) => void;
|
|
499
|
+
} & {
|
|
500
|
+
textLoaded: (data: TextLayerLoadedEventPayload) => void;
|
|
501
|
+
} & {
|
|
502
|
+
annotationLoaded: (annotations: any[]) => void;
|
|
503
|
+
} & {
|
|
504
|
+
xfaLoaded: () => void;
|
|
505
|
+
} & {
|
|
506
|
+
rotate: (rotateEvent: RotateEvent) => void;
|
|
507
|
+
} & {
|
|
508
|
+
scroll: (scrollEvent: Event) => void;
|
|
509
|
+
} & {
|
|
510
|
+
afterGoToPage: (progress: number) => void;
|
|
511
|
+
} & {
|
|
512
|
+
pageChanged: (progress: number) => void;
|
|
513
|
+
}, string, {
|
|
514
|
+
readonly initialViewMode: ViewMode;
|
|
515
|
+
readonly initialScrollMode: ScrollMode;
|
|
516
|
+
readonly workerUrl: string;
|
|
517
|
+
readonly initialPage: number;
|
|
518
|
+
readonly initialScale: number | ZoomLevel;
|
|
519
|
+
readonly initialRotation: number;
|
|
520
|
+
readonly initialThumbnailsVisible: boolean;
|
|
521
|
+
readonly initialSearch: string;
|
|
522
|
+
readonly textLayer: boolean;
|
|
523
|
+
readonly characterMap: import("@/utils/types").CharacterMap;
|
|
524
|
+
readonly toolbarOptions: false | Partial<ToolbarOptions>;
|
|
525
|
+
readonly localization: Record<string, Localization>;
|
|
526
|
+
readonly afterCanvasLoaded: Record<number, import("@/utils/types").CanvasLoadedCallback>;
|
|
527
|
+
readonly textHighlights: import("@/utils/types").TextHighlight[];
|
|
528
|
+
readonly plugins: import("@vue-pdf-viewer/shared").Plugin[];
|
|
529
|
+
readonly downloadFilename: string;
|
|
530
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
531
|
+
$slots: {
|
|
532
|
+
dropFileZone: (_: {
|
|
533
|
+
isDark: boolean;
|
|
534
|
+
}) => any;
|
|
535
|
+
loader: (_: {
|
|
536
|
+
progress: number;
|
|
537
|
+
loaded: boolean;
|
|
538
|
+
}) => any;
|
|
539
|
+
loaderImage: (_: {}) => any;
|
|
540
|
+
loaderProgress: (_: {
|
|
541
|
+
progress: number;
|
|
542
|
+
}) => any;
|
|
543
|
+
thumbnailTool: (_: {
|
|
544
|
+
onToggle: () => void;
|
|
545
|
+
}) => any;
|
|
546
|
+
iconThumbnail: (_: {}) => any;
|
|
547
|
+
iconSearch: (_: {}) => any;
|
|
548
|
+
pageNavigationTool: (_: {
|
|
549
|
+
total: number;
|
|
550
|
+
current: number;
|
|
551
|
+
onNext: () => void;
|
|
552
|
+
onPrev: () => void;
|
|
553
|
+
onChangePage: (pageNumber: number) => void;
|
|
554
|
+
}) => any;
|
|
555
|
+
iconPrevPage: (_: {}) => any;
|
|
556
|
+
iconNextPage: (_: {}) => any;
|
|
557
|
+
zoomTool: (_: {
|
|
558
|
+
currentScale: number;
|
|
559
|
+
zoom: (nextScale: number | ZoomLevel) => void;
|
|
560
|
+
}) => any;
|
|
561
|
+
iconZoomOut: (_: {}) => any;
|
|
562
|
+
iconZoomIn: (_: {}) => any;
|
|
563
|
+
commentPanelTool: (_: {
|
|
564
|
+
onClick: () => void;
|
|
565
|
+
}) => any;
|
|
566
|
+
iconCommentPanel: (_: {}) => any;
|
|
567
|
+
themeTool: (_: {
|
|
568
|
+
isDark: boolean;
|
|
569
|
+
onClick: () => void;
|
|
570
|
+
}) => any;
|
|
571
|
+
iconThemeDark: (_: {}) => any;
|
|
572
|
+
iconThemeLight: (_: {}) => any;
|
|
573
|
+
openFileTool: (_: {
|
|
574
|
+
onClick: () => void;
|
|
575
|
+
}) => any;
|
|
576
|
+
iconOpenFile: (_: {}) => any;
|
|
577
|
+
downloadTool: (_: {
|
|
578
|
+
onClick: () => void;
|
|
579
|
+
}) => any;
|
|
580
|
+
iconDownload: (_: {}) => any;
|
|
581
|
+
printTool: (_: {
|
|
582
|
+
onClick: ((showProgress?: boolean | undefined) => Promise<void>) & Promise<void>;
|
|
583
|
+
}) => any;
|
|
584
|
+
iconPrint: (_: {}) => any;
|
|
585
|
+
fullScreenTool: (_: {
|
|
586
|
+
onClick: () => Promise<void>;
|
|
587
|
+
isSupported: boolean;
|
|
588
|
+
}) => any;
|
|
589
|
+
iconFullScreen: (_: {}) => any;
|
|
590
|
+
iconMoreOptions: (_: {}) => any;
|
|
591
|
+
iconFirstPage: (_: {}) => any;
|
|
592
|
+
iconLastPage: (_: {}) => any;
|
|
593
|
+
iconRotateClockwise: (_: {}) => any;
|
|
594
|
+
iconRotateCounterClockwise: (_: {}) => any;
|
|
595
|
+
iconTextSelection: (_: {}) => any;
|
|
596
|
+
iconHandMode: (_: {}) => any;
|
|
597
|
+
iconScrollingPage: (_: {}) => any;
|
|
598
|
+
iconScrollingVertical: (_: {}) => any;
|
|
599
|
+
iconScrollingHorizontal: (_: {}) => any;
|
|
600
|
+
iconScrollingWrapped: (_: {}) => any;
|
|
601
|
+
iconPageViewSingle: (_: {}) => any;
|
|
602
|
+
iconPageViewDual: (_: {}) => any;
|
|
603
|
+
iconDocProperties: (_: {}) => any;
|
|
604
|
+
};
|
|
605
|
+
});
|
|
606
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import { type PrimitiveProps } from 'radix-vue';
|
|
3
|
+
import { type ButtonVariants } from '.';
|
|
4
|
+
interface Props extends PrimitiveProps {
|
|
5
|
+
variant?: ButtonVariants['variant'];
|
|
6
|
+
size?: ButtonVariants['size'];
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
}
|
|
9
|
+
declare const _default: {
|
|
10
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
|
+
as: string;
|
|
12
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
13
|
+
as: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>;
|
|
14
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
15
|
+
P: {};
|
|
16
|
+
B: {};
|
|
17
|
+
D: {};
|
|
18
|
+
C: {};
|
|
19
|
+
M: {};
|
|
20
|
+
Defaults: {};
|
|
21
|
+
}, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
22
|
+
as: string;
|
|
23
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
24
|
+
as: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>;
|
|
25
|
+
}>;
|
|
26
|
+
__isFragment?: undefined;
|
|
27
|
+
__isTeleport?: undefined;
|
|
28
|
+
__isSuspense?: undefined;
|
|
29
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
30
|
+
as: string;
|
|
31
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
32
|
+
as: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>;
|
|
33
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
34
|
+
$slots: {
|
|
35
|
+
default: (_: {}) => any;
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
+
} : {
|
|
44
|
+
type: import('vue').PropType<T[K]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
type __VLS_WithDefaults<P, D> = {
|
|
49
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
50
|
+
default: D[K];
|
|
51
|
+
} : P[K];
|
|
52
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export { default as Button } from './Button.vue';
|
|
3
|
+
export declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|