@vue-pdf-viewer/viewer 0.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist/arrow-up-CZcWar0V.mjs +20 -0
- package/dist/check-BDQ_1xOK.mjs +21 -0
- package/dist/chevron-down-BGvKkqoz.mjs +21 -0
- package/dist/clear-BdBsR989.mjs +31 -0
- package/dist/close-CbywujCY.mjs +20 -0
- package/dist/download-DwxdC2cz.mjs +21 -0
- package/dist/drag-icon-CJSwJaYj.mjs +18 -0
- package/dist/drag-icon-dark-DslxK0op.mjs +17 -0
- package/dist/ellipsis-vertical-DU4RrfN8.mjs +21 -0
- package/dist/first-page-D2sUix1F.mjs +20 -0
- package/dist/fullscreen-CDD3D91y.mjs +21 -0
- package/dist/hand-BdufQ7PJ.mjs +21 -0
- package/dist/index.mjs +28666 -0
- package/dist/index.umd.js +54 -0
- package/dist/info-CnzWbChw.mjs +20 -0
- package/dist/last-page-BlLcdVDC.mjs +20 -0
- package/dist/magnifier-D5effak1.mjs +21 -0
- package/dist/moon-jjKfhCeP.mjs +21 -0
- package/dist/pointer-CosfQ2Bj.mjs +21 -0
- package/dist/printer-CZndb-XY.mjs +21 -0
- package/dist/rotate-counter-clockwise-BnC8SAwc.mjs +21 -0
- package/dist/sun-f_yo-49i.mjs +21 -0
- package/dist/thumbnail-BrLTlvMi.mjs +21 -0
- package/dist/types/components/AppButton.vue.d.ts +18 -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/AppTooltip.vue.d.ts +19 -0
- package/dist/types/components/DragFileMask.vue.d.ts +59 -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/SwitchAppearance.vue.d.ts +21 -0
- package/dist/types/components/ToolDownload.vue.d.ts +20 -0
- package/dist/types/components/ToolFullscreen.vue.d.ts +21 -0
- package/dist/types/components/ToolMenuOthers.vue.d.ts +47 -0
- package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +21 -0
- package/dist/types/components/ToolOpenFile.vue.d.ts +20 -0
- package/dist/types/components/ToolOpenFileInput.vue.d.ts +11 -0
- package/dist/types/components/ToolPagination.vue.d.ts +73 -0
- package/dist/types/components/ToolPrint.vue.d.ts +70 -0
- package/dist/types/components/ToolSearch.vue.d.ts +53 -0
- package/dist/types/components/ToolThumbnail.vue.d.ts +45 -0
- package/dist/types/components/ToolZoom.vue.d.ts +58 -0
- package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +24 -0
- package/dist/types/components/VPdfPage.vue.d.ts +62 -0
- package/dist/types/components/VPdfSplitter.vue.d.ts +2 -0
- package/dist/types/components/VPdfThumbnail.vue.d.ts +25 -0
- package/dist/types/components/VPdfThumbnails.vue.d.ts +22 -0
- package/dist/types/components/VPdfViewer.vue.d.ts +353 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/layers/AnnotationLayer.vue.d.ts +39 -0
- package/dist/types/components/layers/TextLayer.vue.d.ts +32 -0
- package/dist/types/components/layers/XFALayer.vue.d.ts +23 -0
- package/dist/types/components/types.d.ts +213 -0
- package/dist/types/components/ui/button/Button.vue.d.ts +54 -0
- package/dist/types/components/ui/button/index.d.ts +7 -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 +37 -0
- package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +37 -0
- package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +36 -0
- package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +36 -0
- package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +37 -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 +37 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +56 -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 +41 -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 +37 -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 +36 -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 +37 -0
- package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +37 -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 +67 -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/tooltip/Tooltip.vue.d.ts +28 -0
- package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +56 -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 +15 -0
- package/dist/types/components/utils/destination.d.ts +7 -0
- package/dist/types/components/utils/helpers.d.ts +10 -0
- package/dist/types/components/utils/highlight.d.ts +6 -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/useCalculatePages.d.ts +12 -0
- package/dist/types/composables/useDownload.d.ts +5 -0
- package/dist/types/composables/useLicense.d.ts +10 -0
- package/dist/types/composables/usePDF.d.ts +26 -0
- package/dist/types/composables/usePageQueue.d.ts +10 -0
- package/dist/types/composables/usePdfProperties.d.ts +24 -0
- package/dist/types/composables/usePinch.d.ts +2 -0
- package/dist/types/composables/usePrint.d.ts +9 -0
- package/dist/types/composables/usePrintProcess.d.ts +8 -0
- package/dist/types/composables/useRenderTask.d.ts +8 -0
- package/dist/types/composables/useRotation.d.ts +6 -0
- package/dist/types/composables/useSearch.d.ts +39 -0
- package/dist/types/const.d.ts +40 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/utils/convertPDFDate.d.ts +1 -0
- package/dist/types/utils.d.ts +12 -0
- package/dist/zoom-in-MHWLskY5.mjs +21 -0
- package/dist/zoom-out-BOe91xpp.mjs +21 -0
- package/package.json +116 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Vue PDF Viewer
|
|
2
|
+
|
|
3
|
+
This package is a [Vue 3](https://vuejs.org/) component which is a handy way to integrate PDF viewing capabilities within your Vue or Nuxt applications.
|
|
4
|
+
|
|
5
|
+
### Prerequisites
|
|
6
|
+
|
|
7
|
+
Here are the basic system requirements to run the Vue PDF Viewer component:
|
|
8
|
+
|
|
9
|
+
- Vue version: >= 3.0
|
|
10
|
+
- Nuxt version: >= 3.0
|
|
11
|
+
|
|
12
|
+
_Remark: <br>- Vite version will affect the Vue or Nuxt version used. <br>- If using TypeScript, it requires >= TypeScript 4.6._
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
Install the package in your project directory with:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @vue-pdf-viewer/viewer
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Documentation
|
|
23
|
+
|
|
24
|
+
For more details on how to usage or other technical information, please visit [https://docs.vue-pdf-viewer.dev/](https://docs.vue-pdf-viewer.dev/).
|
|
25
|
+
|
|
26
|
+
## Starter Toolkit
|
|
27
|
+
|
|
28
|
+
Here are some sample projects to get started on Vue PDF Viewer quickly:
|
|
29
|
+
|
|
30
|
+
1. [Vue – Composition API - TypeScript](https://github.com/vue-pdf-viewer/starter-vpv-composition-ts)
|
|
31
|
+
2. [Vue – Options API - TypeScript](https://github.com/vue-pdf-viewer/starter-vpv-options-ts)
|
|
32
|
+
3. [Vue – Composition API - JavaScript](https://github.com/vue-pdf-viewer/starter-vpv-composition-js)
|
|
33
|
+
4. [Vue – Options API - JavaScript](https://github.com/vue-pdf-viewer/starter-vpv-options-js)
|
|
34
|
+
5. [Nuxt - TypeScript](https://github.com/vue-pdf-viewer/starter-vpv-nuxt-ts)
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
Vue PDF Viewer is distributed under our proprietary license. Please refer to our [License page](https://www.vue-pdf-viewer/license-agreement) file for more details.
|
|
39
|
+
|
|
40
|
+
If you would like to use Vue PDF Viewer commercially, please purchase a license from [our website](https://www.vue-pdf-viewer.dev) or reach out to us directly at [david@vue-pdf-viewer.dev](mailto:david@vue-pdf-viewer.dev).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "20",
|
|
5
|
+
height: "20",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, r = /* @__PURE__ */ o("path", {
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
d: "M16.692 12.942a.625.625 0 0 1-.884 0L10 7.134l-5.808 5.808a.625.625 0 1 1-.884-.884l6.25-6.25a.625.625 0 0 1 .884 0l6.25 6.25a.623.623 0 0 1 0 .884"
|
|
10
|
+
}, null, -1), l = [
|
|
11
|
+
r
|
|
12
|
+
];
|
|
13
|
+
function c(a, s) {
|
|
14
|
+
return e(), t("svg", n, [...l]);
|
|
15
|
+
}
|
|
16
|
+
const h = { render: c };
|
|
17
|
+
export {
|
|
18
|
+
h as default,
|
|
19
|
+
c as render
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 17"
|
|
8
|
+
}, c = /* @__PURE__ */ o("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "m14.354 5.354-8 8a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 0 1 .708-.708L6 12.293l7.646-7.647a.5.5 0 0 1 .708.708"
|
|
11
|
+
}, null, -1), l = [
|
|
12
|
+
c
|
|
13
|
+
];
|
|
14
|
+
function r(s, h) {
|
|
15
|
+
return e(), t("svg", n, [...l]);
|
|
16
|
+
}
|
|
17
|
+
const a = { render: r };
|
|
18
|
+
export {
|
|
19
|
+
a as default,
|
|
20
|
+
r as render
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 20 20"
|
|
8
|
+
}, r = /* @__PURE__ */ o("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "m16.692 7.942-6.25 6.25a.625.625 0 0 1-.884 0l-6.25-6.25a.625.625 0 0 1 .884-.884L10 12.866l5.808-5.808a.625.625 0 0 1 .884.884"
|
|
11
|
+
}, null, -1), l = [
|
|
12
|
+
r
|
|
13
|
+
];
|
|
14
|
+
function c(s, h) {
|
|
15
|
+
return e(), t("svg", n, [...l]);
|
|
16
|
+
}
|
|
17
|
+
const a = { render: c };
|
|
18
|
+
export {
|
|
19
|
+
a as default,
|
|
20
|
+
c as render
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as l, createElementVNode as e } from "vue";
|
|
2
|
+
const o = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 12 12"
|
|
8
|
+
}, c = /* @__PURE__ */ e("g", { "clip-path": "url(#a)" }, [
|
|
9
|
+
/* @__PURE__ */ e("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M6 .75a5.25 5.25 0 1 0 0 10.5A5.25 5.25 0 0 0 6 .75m1.938 7.245-.773-.004L6 6.602 4.836 7.99l-.774.003a.093.093 0 0 1-.094-.093q0-.035.022-.061l1.525-1.817L3.99 4.207a.094.094 0 0 1 .071-.155l.775.004L6 5.445l1.164-1.388.773-.003c.052 0 .094.04.094.093a.1.1 0 0 1-.022.061L6.486 6.023 8.01 7.84a.094.094 0 0 1-.071.155"
|
|
12
|
+
})
|
|
13
|
+
], -1), n = /* @__PURE__ */ e("defs", null, [
|
|
14
|
+
/* @__PURE__ */ e("clipPath", { id: "a" }, [
|
|
15
|
+
/* @__PURE__ */ e("path", {
|
|
16
|
+
fill: "#fff",
|
|
17
|
+
d: "M0 0h12v12H0z"
|
|
18
|
+
})
|
|
19
|
+
])
|
|
20
|
+
], -1), a = [
|
|
21
|
+
c,
|
|
22
|
+
n
|
|
23
|
+
];
|
|
24
|
+
function r(i, h) {
|
|
25
|
+
return t(), l("svg", o, [...a]);
|
|
26
|
+
}
|
|
27
|
+
const d = { render: r };
|
|
28
|
+
export {
|
|
29
|
+
d as default,
|
|
30
|
+
r as render
|
|
31
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "20",
|
|
5
|
+
height: "20",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, l = /* @__PURE__ */ o("path", {
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
d: "M16.067 15.183a.625.625 0 1 1-.884.884L10 10.884l-5.183 5.183a.626.626 0 0 1-.884-.884L9.116 10 3.933 4.817a.625.625 0 0 1 .884-.884L10 9.116l5.183-5.183a.625.625 0 1 1 .884.884L10.884 10z"
|
|
10
|
+
}, null, -1), r = [
|
|
11
|
+
l
|
|
12
|
+
];
|
|
13
|
+
function c(s, a) {
|
|
14
|
+
return e(), t("svg", n, [...r]);
|
|
15
|
+
}
|
|
16
|
+
const h = { render: c };
|
|
17
|
+
export {
|
|
18
|
+
h as default,
|
|
19
|
+
c as render
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 20 20"
|
|
8
|
+
}, l = /* @__PURE__ */ o("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M17.5 11.875v4.375a1.25 1.25 0 0 1-1.25 1.25H3.75a1.25 1.25 0 0 1-1.25-1.25v-4.375a.625.625 0 1 1 1.25 0v4.375h12.5v-4.375a.624.624 0 1 1 1.25 0m-7.942.442a.626.626 0 0 0 .884 0l3.125-3.125a.624.624 0 1 0-.884-.884l-2.058 2.058V3.125a.625.625 0 1 0-1.25 0v7.241L7.317 8.308a.625.625 0 0 0-.884.884z"
|
|
11
|
+
}, null, -1), a = [
|
|
12
|
+
l
|
|
13
|
+
];
|
|
14
|
+
function r(c, d) {
|
|
15
|
+
return e(), t("svg", n, [...a]);
|
|
16
|
+
}
|
|
17
|
+
const h = { render: r };
|
|
18
|
+
export {
|
|
19
|
+
h as default,
|
|
20
|
+
r as render
|
|
21
|
+
};
|