@privyid/persona 1.1.2 → 1.2.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/dist/module.d.cts +2 -0
- package/dist/module.d.mts +2 -27
- package/dist/module.json +12 -0
- package/dist/module.mjs +13 -92
- package/dist/types.d.mts +13 -0
- package/package.json +25 -27
- package/dist/components/accordion/Accordion.vue +0 -121
- package/dist/components/accordion/AccordionItem.vue +0 -250
- package/dist/components/accordion/AccordionItems.vue +0 -50
- package/dist/components/accordion/AccordionItems.vue.d.ts +0 -41
- package/dist/components/accordion/index.d.ts +0 -7
- package/dist/components/accordion/index.mjs +0 -3
- package/dist/components/aspect-ratio/index.d.ts +0 -3
- package/dist/components/aspect-ratio/index.mjs +0 -21
- package/dist/components/aspect-ratio/utils/calculate-ratio.d.ts +0 -7
- package/dist/components/aspect-ratio/utils/calculate-ratio.mjs +0 -10
- package/dist/components/aspect-ratio/utils/resize-observer.d.ts +0 -1
- package/dist/components/aspect-ratio/utils/resize-observer.mjs +0 -22
- package/dist/components/avatar/Avatar.vue +0 -193
- package/dist/components/avatar/AvatarGroup.vue +0 -42
- package/dist/components/avatar/AvatarTruncate.vue +0 -33
- package/dist/components/avatar/AvatarTruncate.vue.d.ts +0 -31
- package/dist/components/avatar/assets/avatar-old.png +0 -0
- package/dist/components/avatar/assets/avatar.png +0 -0
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/avatar/index.mjs +0 -0
- package/dist/components/avatar/utils/color-hash.d.ts +0 -2
- package/dist/components/avatar/utils/color-hash.mjs +0 -22
- package/dist/components/avatar/utils/create-image.d.ts +0 -5
- package/dist/components/avatar/utils/create-image.mjs +0 -19
- package/dist/components/avatar/utils/load-image.d.ts +0 -1
- package/dist/components/avatar/utils/load-image.mjs +0 -22
- package/dist/components/badge/Badge.vue +0 -218
- package/dist/components/badge/index.d.ts +0 -1
- package/dist/components/badge/index.mjs +0 -0
- package/dist/components/banner/Banner.vue +0 -213
- package/dist/components/banner/index.d.ts +0 -1
- package/dist/components/banner/index.mjs +0 -0
- package/dist/components/breadcrumbs/Breadcrumb.vue +0 -62
- package/dist/components/breadcrumbs/BreadcrumbItem.vue +0 -95
- package/dist/components/breadcrumbs/BreadcrumbItemDropdown.vue +0 -78
- package/dist/components/breadcrumbs/index.d.ts +0 -11
- package/dist/components/breadcrumbs/index.mjs +0 -3
- package/dist/components/button/Button.vue +0 -422
- package/dist/components/button/index.d.ts +0 -5
- package/dist/components/button/index.mjs +0 -0
- package/dist/components/button-group/ButtonGroup.vue +0 -220
- package/dist/components/button-group/index.d.ts +0 -6
- package/dist/components/button-group/index.mjs +0 -1
- package/dist/components/calendar/Calendar.vue +0 -465
- package/dist/components/calendar/adapter/adapter.d.ts +0 -32
- package/dist/components/calendar/adapter/adapter.mjs +0 -43
- package/dist/components/calendar/adapter/date.d.ts +0 -2
- package/dist/components/calendar/adapter/date.mjs +0 -86
- package/dist/components/calendar/adapter/month.d.ts +0 -2
- package/dist/components/calendar/adapter/month.mjs +0 -66
- package/dist/components/calendar/adapter/year.d.ts +0 -2
- package/dist/components/calendar/adapter/year.mjs +0 -63
- package/dist/components/camera/Camera.vue +0 -416
- package/dist/components/camera/adapter/adapter.d.ts +0 -41
- package/dist/components/camera/adapter/adapter.mjs +0 -3
- package/dist/components/camera/adapter/capture.d.ts +0 -5
- package/dist/components/camera/adapter/capture.mjs +0 -12
- package/dist/components/camera/adapter/liveness.d.ts +0 -5
- package/dist/components/camera/adapter/liveness.mjs +0 -46
- package/dist/components/camera/adapter/qr-code.d.ts +0 -2
- package/dist/components/camera/adapter/qr-code.mjs +0 -19
- package/dist/components/camera/assets/shutter.wav +0 -0
- package/dist/components/camera/utils/motion.d.ts +0 -29
- package/dist/components/camera/utils/motion.mjs +0 -88
- package/dist/components/camera/utils/take-picture.d.ts +0 -1
- package/dist/components/camera/utils/take-picture.mjs +0 -14
- package/dist/components/caption/Caption.vue +0 -122
- package/dist/components/caption/index.d.ts +0 -1
- package/dist/components/caption/index.mjs +0 -0
- package/dist/components/card/Card.vue +0 -354
- package/dist/components/card/CardSection.vue +0 -81
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/card/index.mjs +0 -0
- package/dist/components/carousel/Carousel.vue +0 -202
- package/dist/components/carousel/CarouselBody.vue +0 -18
- package/dist/components/carousel/CarouselItem.vue +0 -10
- package/dist/components/carousel/index.d.ts +0 -4
- package/dist/components/carousel/index.mjs +0 -1
- package/dist/components/chart/Chart.vue +0 -155
- package/dist/components/chart/ChartSet.vue +0 -32
- package/dist/components/chart/ChartVal.vue +0 -36
- package/dist/components/chart/adapter/adapter.d.ts +0 -7
- package/dist/components/chart/adapter/adapter.mjs +0 -3
- package/dist/components/chart/adapter/bubble.d.ts +0 -2
- package/dist/components/chart/adapter/bubble.mjs +0 -26
- package/dist/components/chart/adapter/index.d.ts +0 -3
- package/dist/components/chart/adapter/index.mjs +0 -16
- package/dist/components/chart/adapter/line.d.ts +0 -2
- package/dist/components/chart/adapter/line.mjs +0 -66
- package/dist/components/chart/adapter/pie.d.ts +0 -2
- package/dist/components/chart/adapter/pie.mjs +0 -34
- package/dist/components/chart/index.d.ts +0 -2
- package/dist/components/chart/index.mjs +0 -0
- package/dist/components/chart/utils/use-chart.d.ts +0 -2
- package/dist/components/chart/utils/use-chart.mjs +0 -9
- package/dist/components/checkbox/Checkbox.vue +0 -232
- package/dist/components/checkbox/icon/IconCheckbox.vue +0 -13
- package/dist/components/checkbox/icon/IconInderteminate.vue +0 -12
- package/dist/components/checkbox/index.d.ts +0 -7
- package/dist/components/checkbox/index.mjs +0 -34
- package/dist/components/collapse/Collapse.vue +0 -71
- package/dist/components/contextual-bar/ContextualBar.vue +0 -461
- package/dist/components/contextual-bar/index.d.ts +0 -1
- package/dist/components/contextual-bar/index.mjs +0 -0
- package/dist/components/cropper/Cropper.vue +0 -446
- package/dist/components/cropper/index.d.ts +0 -1
- package/dist/components/cropper/index.mjs +0 -3
- package/dist/components/cropper/utils/crop-image.d.ts +0 -44
- package/dist/components/cropper/utils/crop-image.mjs +0 -43
- package/dist/components/cropper/utils/use-pinch.d.ts +0 -8
- package/dist/components/cropper/utils/use-pinch.mjs +0 -50
- package/dist/components/cropper/utils/use-preview.d.ts +0 -3
- package/dist/components/cropper/utils/use-preview.mjs +0 -21
- package/dist/components/cropper/utils/use-ratio.d.ts +0 -9
- package/dist/components/cropper/utils/use-ratio.mjs +0 -24
- package/dist/components/datepicker/Datepicker.vue +0 -235
- package/dist/components/dialog/Dialog.vue +0 -149
- package/dist/components/dialog/DialogFooter.vue +0 -138
- package/dist/components/dialog/index.d.ts +0 -52
- package/dist/components/dialog/index.mjs +0 -86
- package/dist/components/divider/Divider.vue +0 -65
- package/dist/components/dot/Dot.vue +0 -103
- package/dist/components/dot/index.d.ts +0 -1
- package/dist/components/dot/index.mjs +0 -0
- package/dist/components/dropdown/Dropdown.vue +0 -441
- package/dist/components/dropdown/DropdownHeader.vue +0 -33
- package/dist/components/dropdown/DropdownItem.vue +0 -103
- package/dist/components/dropdown/DropdownText.vue +0 -34
- package/dist/components/dropdown/index.d.ts +0 -10
- package/dist/components/dropdown/index.mjs +0 -1
- package/dist/components/dropdown/utils/use-focus.d.ts +0 -5
- package/dist/components/dropdown/utils/use-focus.mjs +0 -22
- package/dist/components/dropdown-subitem/DropdownSubitem.vue +0 -182
- package/dist/components/dropdown-subitem/index.d.ts +0 -12
- package/dist/components/dropdown-subitem/index.mjs +0 -1
- package/dist/components/dropzone/Dropzone.vue +0 -261
- package/dist/components/dropzone/index.d.ts +0 -4
- package/dist/components/dropzone/index.mjs +0 -0
- package/dist/components/dropzone/utils/accept.d.ts +0 -1
- package/dist/components/dropzone/utils/accept.mjs +0 -17
- package/dist/components/filterbar/Filterbar.vue +0 -103
- package/dist/components/filterbar/Filterbar.vue.d.ts +0 -40
- package/dist/components/filterbar/index.d.ts +0 -45
- package/dist/components/filterbar/index.mjs +0 -7
- package/dist/components/filterbar/pinned/PinnedDate.vue +0 -100
- package/dist/components/filterbar/pinned/PinnedDate.vue.d.ts +0 -72
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue +0 -113
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue.d.ts +0 -48
- package/dist/components/filterbar/pinned/PinnedSelect.vue +0 -100
- package/dist/components/filterbar/pinned/PinnedSelect.vue.d.ts +0 -47
- package/dist/components/filterbar/pinned/PinnedToggle.vue +0 -77
- package/dist/components/filterbar/pinned/PinnedToggle.vue.d.ts +0 -59
- package/dist/components/form-group/FormGroup.vue +0 -169
- package/dist/components/global/router.d.ts +0 -24
- package/dist/components/global/router.mjs +0 -7
- package/dist/components/global/store.d.ts +0 -49
- package/dist/components/global/store.mjs +0 -52
- package/dist/components/global/types.d.ts +0 -4
- package/dist/components/global/types.mjs +0 -0
- package/dist/components/global/use-singleton.d.ts +0 -21
- package/dist/components/global/use-singleton.mjs +0 -60
- package/dist/components/global/utils/queue.d.ts +0 -16
- package/dist/components/global/utils/queue.mjs +0 -35
- package/dist/components/heading/Heading.vue +0 -140
- package/dist/components/heading/index.d.ts +0 -3
- package/dist/components/heading/index.mjs +0 -0
- package/dist/components/input/Input.vue +0 -243
- package/dist/components/input/index.d.ts +0 -6
- package/dist/components/input/index.mjs +0 -25
- package/dist/components/input/utils/accept.d.ts +0 -26
- package/dist/components/input/utils/accept.mjs +0 -81
- package/dist/components/input-color/index.d.ts +0 -1
- package/dist/components/input-color/index.mjs +0 -0
- package/dist/components/input-color/inputColor.vue +0 -264
- package/dist/components/input-file/InputFile.vue +0 -221
- package/dist/components/input-group/InputGroup.vue +0 -188
- package/dist/components/input-group/InputGroupAddon.vue +0 -42
- package/dist/components/input-group/index.d.ts +0 -6
- package/dist/components/input-group/index.mjs +0 -1
- package/dist/components/input-password/InputPassword.vue +0 -110
- package/dist/components/input-password/index.d.ts +0 -2
- package/dist/components/input-password/index.mjs +0 -17
- package/dist/components/input-pin/InputPin.vue +0 -170
- package/dist/components/input-pin/index.d.ts +0 -6
- package/dist/components/input-pin/index.mjs +0 -3
- package/dist/components/input-range/InputRange.vue +0 -303
- package/dist/components/input-range/utils/use-drag.d.ts +0 -3
- package/dist/components/input-range/utils/use-drag.mjs +0 -26
- package/dist/components/label/Label.vue +0 -265
- package/dist/components/label/index.d.ts +0 -1
- package/dist/components/label/index.mjs +0 -0
- package/dist/components/list-group/ListGroup.vue +0 -75
- package/dist/components/list-group/ListGroupItem.vue +0 -88
- package/dist/components/list-group/index.d.ts +0 -1
- package/dist/components/list-group/index.mjs +0 -0
- package/dist/components/main/Main.vue +0 -66
- package/dist/components/markdown/index.d.ts +0 -29
- package/dist/components/markdown/index.mjs +0 -25
- package/dist/components/meta.json +0 -171
- package/dist/components/modal/Modal.vue +0 -546
- package/dist/components/modal/index.d.ts +0 -1
- package/dist/components/modal/index.mjs +0 -0
- package/dist/components/nav/Nav.vue +0 -416
- package/dist/components/nav/NavCollapse.vue +0 -66
- package/dist/components/nav/NavForm.vue +0 -23
- package/dist/components/nav/NavItem.vue +0 -187
- package/dist/components/nav/NavItemDropdown.vue +0 -120
- package/dist/components/nav/NavSubItem.vue +0 -194
- package/dist/components/nav/NavText.vue +0 -19
- package/dist/components/nav/index.d.ts +0 -2
- package/dist/components/nav/index.mjs +0 -0
- package/dist/components/navbar/Navbar.vue +0 -284
- package/dist/components/navbar/NavbarBrand.vue +0 -31
- package/dist/components/navbar/NavbarNav.vue +0 -114
- package/dist/components/navbar/NavbarToggle.vue +0 -72
- package/dist/components/navbar/index.d.ts +0 -9
- package/dist/components/navbar/index.mjs +0 -1
- package/dist/components/navbar-menu/NavbarNavMenu.vue +0 -59
- package/dist/components/notify/Notify.vue +0 -51
- package/dist/components/notify/NotifyGroup.vue +0 -244
- package/dist/components/notify/NotifyItem.vue +0 -45
- package/dist/components/notify/index.d.ts +0 -20
- package/dist/components/notify/index.mjs +0 -18
- package/dist/components/overlay/Overlay.vue +0 -68
- package/dist/components/overlay/assets/icon-white.svg +0 -1
- package/dist/components/overlay/index.d.ts +0 -2
- package/dist/components/overlay/index.mjs +0 -8
- package/dist/components/overlay/utils/use-loading.d.ts +0 -4
- package/dist/components/overlay/utils/use-loading.mjs +0 -28
- package/dist/components/page/Page.vue +0 -106
- package/dist/components/pagination/Pagination.vue +0 -415
- package/dist/components/pagination/index.d.ts +0 -14
- package/dist/components/pagination/index.mjs +0 -38
- package/dist/components/pagination/utils/calculate-page.d.ts +0 -11
- package/dist/components/pagination/utils/calculate-page.mjs +0 -48
- package/dist/components/pdf-helipad/PdfHelipad.vue +0 -147
- package/dist/components/pdf-helipad/index.d.ts +0 -7
- package/dist/components/pdf-helipad/index.mjs +0 -0
- package/dist/components/pdf-helipad/utils/use-drag.d.ts +0 -3
- package/dist/components/pdf-helipad/utils/use-drag.mjs +0 -38
- package/dist/components/pdf-object/PdfObject.vue +0 -348
- package/dist/components/pdf-object/PdfObjectAddon.vue +0 -55
- package/dist/components/pdf-object/PdfObjectDebugger.vue +0 -70
- package/dist/components/pdf-object/PdfObjects.vue +0 -39
- package/dist/components/pdf-object/index.d.ts +0 -63
- package/dist/components/pdf-object/index.mjs +0 -110
- package/dist/components/pdf-object/utils/overlap.d.ts +0 -51
- package/dist/components/pdf-object/utils/overlap.mjs +0 -54
- package/dist/components/pdf-object/utils/position.d.ts +0 -64
- package/dist/components/pdf-object/utils/position.mjs +0 -48
- package/dist/components/pdf-object/utils/use-drag.d.ts +0 -9
- package/dist/components/pdf-object/utils/use-drag.mjs +0 -69
- package/dist/components/pdf-object/utils/use-drop.d.ts +0 -7
- package/dist/components/pdf-object/utils/use-drop.mjs +0 -57
- package/dist/components/pdf-object/utils/use-resize.d.ts +0 -17
- package/dist/components/pdf-object/utils/use-resize.mjs +0 -90
- package/dist/components/pdf-object/utils/use-selector.d.ts +0 -4
- package/dist/components/pdf-object/utils/use-selector.mjs +0 -26
- package/dist/components/pdf-text/PdfText.vue +0 -138
- package/dist/components/pdf-text/utils/text-to-image.d.ts +0 -68
- package/dist/components/pdf-text/utils/text-to-image.mjs +0 -120
- package/dist/components/pdf-viewer/PdfError.vue +0 -74
- package/dist/components/pdf-viewer/PdfLoading.vue +0 -24
- package/dist/components/pdf-viewer/PdfNavigation.vue +0 -169
- package/dist/components/pdf-viewer/PdfViewer.vue +0 -377
- package/dist/components/pdf-viewer/assets/pdf-loading.svg +0 -1
- package/dist/components/pdf-viewer/index.d.ts +0 -25
- package/dist/components/pdf-viewer/index.mjs +0 -24
- package/dist/components/pdf-viewer/utils/pdfjs.d.ts +0 -68
- package/dist/components/pdf-viewer/utils/pdfjs.mjs +0 -54
- package/dist/components/pdf-viewer/utils/use-idle.d.ts +0 -2
- package/dist/components/pdf-viewer/utils/use-idle.mjs +0 -25
- package/dist/components/pdf-viewer/utils/use-sticky.d.ts +0 -6
- package/dist/components/pdf-viewer/utils/use-sticky.mjs +0 -49
- package/dist/components/pdf-viewer/utils/use-viewer.d.ts +0 -27
- package/dist/components/pdf-viewer/utils/use-viewer.mjs +0 -191
- package/dist/components/popover/Popover.vue +0 -131
- package/dist/components/popover/index.d.ts +0 -17
- package/dist/components/popover/index.mjs +0 -52
- package/dist/components/popup/Popup.vue +0 -428
- package/dist/components/popup/index.d.ts +0 -38
- package/dist/components/popup/index.mjs +0 -31
- package/dist/components/progress/Progress.vue +0 -221
- package/dist/components/progress/ProgressItem.vue +0 -56
- package/dist/components/progress/index.d.ts +0 -2
- package/dist/components/progress/index.mjs +0 -0
- package/dist/components/progress-indicator/ProgressIndicator.vue +0 -132
- package/dist/components/progressbar/Progressbar.vue +0 -113
- package/dist/components/progressbar/index.d.ts +0 -7
- package/dist/components/progressbar/index.mjs +0 -11
- package/dist/components/pspdfkit/PspdfHelipad.vue +0 -165
- package/dist/components/pspdfkit/PspdfObject.vue +0 -341
- package/dist/components/pspdfkit/PspdfObjectAddon.vue +0 -30
- package/dist/components/pspdfkit/PspdfObjects.vue +0 -30
- package/dist/components/pspdfkit/PspdfViewer.vue +0 -257
- package/dist/components/pspdfkit/css/custom.css +0 -345
- package/dist/components/pspdfkit/index.d.ts +0 -8
- package/dist/components/pspdfkit/index.mjs +0 -7
- package/dist/components/pspdfkit/utils/position.d.ts +0 -1
- package/dist/components/pspdfkit/utils/position.mjs +0 -5
- package/dist/components/pspdfkit/utils/pspdfkit.d.ts +0 -17
- package/dist/components/pspdfkit/utils/pspdfkit.mjs +0 -53
- package/dist/components/pspdfkit/utils/use-drop.d.ts +0 -2
- package/dist/components/pspdfkit/utils/use-drop.mjs +0 -41
- package/dist/components/pspdfkit/utils/use-viewer.d.ts +0 -17
- package/dist/components/pspdfkit/utils/use-viewer.mjs +0 -167
- package/dist/components/qrcode/Qrcode.vue +0 -174
- package/dist/components/qrcode/index.d.ts +0 -1
- package/dist/components/qrcode/index.mjs +0 -0
- package/dist/components/radio/Radio.vue +0 -304
- package/dist/components/radio/index.d.ts +0 -7
- package/dist/components/radio/index.mjs +0 -16
- package/dist/components/richtext/Richtext.vue +0 -295
- package/dist/components/richtext/RichtextToolbarAdvance.vue +0 -37
- package/dist/components/richtext/RichtextToolbarSimple.vue +0 -158
- package/dist/components/richtext/control/RichtextControlFontFamily.vue +0 -56
- package/dist/components/richtext/control/RichtextControlFontSize.vue +0 -81
- package/dist/components/richtext/control/RichtextControlHighlight.vue +0 -135
- package/dist/components/richtext/control/RichtextControlHistory.vue +0 -27
- package/dist/components/richtext/control/RichtextControlImage.vue +0 -34
- package/dist/components/richtext/control/RichtextControlLink.vue +0 -53
- package/dist/components/richtext/control/RichtextControlList.vue +0 -45
- package/dist/components/richtext/control/RichtextControlTable.vue +0 -106
- package/dist/components/richtext/control/RichtextControlTextAlign.vue +0 -90
- package/dist/components/richtext/control/RichtextControlTextFormat.vue +0 -49
- package/dist/components/richtext/control/RichtextControlTextHeading.vue +0 -101
- package/dist/components/richtext/index.d.ts +0 -7
- package/dist/components/richtext/index.mjs +0 -7
- package/dist/components/richtext/popup/RichtextPopupImageEdit.vue +0 -65
- package/dist/components/richtext/popup/RichtextPopupLinkDetail.vue +0 -95
- package/dist/components/richtext/popup/RichtextPopupLinkEdit.vue +0 -74
- package/dist/components/richtext/tiptap/image-align.d.ts +0 -43
- package/dist/components/richtext/tiptap/image-align.mjs +0 -60
- package/dist/components/ringbar/Ringbar.vue +0 -158
- package/dist/components/ringbar/index.d.ts +0 -1
- package/dist/components/ringbar/index.mjs +0 -0
- package/dist/components/select/Select.vue +0 -576
- package/dist/components/select/SelectInput.vue +0 -123
- package/dist/components/select/SelectTags.vue +0 -58
- package/dist/components/select/adapter/adapter.d.ts +0 -17
- package/dist/components/select/adapter/adapter.mjs +0 -20
- package/dist/components/select/adapter/async-adapter.d.ts +0 -17
- package/dist/components/select/adapter/async-adapter.mjs +0 -61
- package/dist/components/select/adapter/basic-adapter.d.ts +0 -5
- package/dist/components/select/adapter/basic-adapter.mjs +0 -13
- package/dist/components/select/adapter/fuzzy-adapter.d.ts +0 -2
- package/dist/components/select/adapter/fuzzy-adapter.mjs +0 -24
- package/dist/components/select/index.d.ts +0 -15
- package/dist/components/select/index.mjs +0 -20
- package/dist/components/select/utils/use-on-scroll.d.ts +0 -2
- package/dist/components/select/utils/use-on-scroll.mjs +0 -9
- package/dist/components/select/utils/use-on-typing.d.ts +0 -3
- package/dist/components/select/utils/use-on-typing.mjs +0 -8
- package/dist/components/sheet/Sheet.vue +0 -230
- package/dist/components/shimmer/Shimmer.vue +0 -123
- package/dist/components/shimmer/index.d.ts +0 -2
- package/dist/components/shimmer/index.mjs +0 -10
- package/dist/components/sidebar/Sidebar.vue +0 -249
- package/dist/components/sidebar/SidebarBrand.vue +0 -108
- package/dist/components/sidebar/SidebarContent.vue +0 -21
- package/dist/components/sidebar/SidebarContent.vue.d.ts +0 -16
- package/dist/components/sidebar/SidebarNav.vue +0 -260
- package/dist/components/sidebar/index.d.ts +0 -9
- package/dist/components/sidebar/index.mjs +0 -1
- package/dist/components/sidebar-menu/SidebarMenu.vue +0 -123
- package/dist/components/sidebar-menu/SidebarMenuItem.vue +0 -70
- package/dist/components/sidebar-menu/index.d.ts +0 -138
- package/dist/components/sidebar-menu/index.mjs +0 -44
- package/dist/components/signature-draw/SignatureDraw.vue +0 -101
- package/dist/components/signature-draw/SignatureDrawDesktop.vue +0 -165
- package/dist/components/signature-draw/SignatureDrawMobile.vue +0 -244
- package/dist/components/signature-draw/utils/canvas.d.ts +0 -41
- package/dist/components/signature-draw/utils/canvas.mjs +0 -55
- package/dist/components/signature-draw/utils/image.d.ts +0 -7
- package/dist/components/signature-draw/utils/image.mjs +0 -23
- package/dist/components/signature-draw/utils/smooth-line.d.ts +0 -36
- package/dist/components/signature-draw/utils/smooth-line.mjs +0 -56
- package/dist/components/signature-draw/utils/straight-line.d.ts +0 -8
- package/dist/components/signature-draw/utils/straight-line.mjs +0 -24
- package/dist/components/signature-draw/utils/use-draw.d.ts +0 -7
- package/dist/components/signature-draw/utils/use-draw.mjs +0 -29
- package/dist/components/signature-text/SignatureText.vue +0 -138
- package/dist/components/signature-text/utils/formatter.d.ts +0 -2
- package/dist/components/signature-text/utils/formatter.mjs +0 -8
- package/dist/components/signature-text/utils/generate-text.d.ts +0 -8
- package/dist/components/signature-text/utils/generate-text.mjs +0 -28
- package/dist/components/signature-text/utils/load-font.d.ts +0 -1
- package/dist/components/signature-text/utils/load-font.mjs +0 -22
- package/dist/components/spinner/Spinner.vue +0 -156
- package/dist/components/spinner/SpinnerRing.vue +0 -34
- package/dist/components/spinner/SpinnerRinggo.vue +0 -64
- package/dist/components/spread/Spread.vue +0 -52
- package/dist/components/steps/Step.vue +0 -49
- package/dist/components/steps/StepSlider.vue +0 -37
- package/dist/components/steps/StepSlider.vue.d.ts +0 -34
- package/dist/components/steps/Steps.vue +0 -150
- package/dist/components/steps/index.d.ts +0 -30
- package/dist/components/steps/index.mjs +0 -53
- package/dist/components/steps/utils/hook.d.ts +0 -10
- package/dist/components/steps/utils/hook.mjs +0 -35
- package/dist/components/strengthbar/Strengthbar.vue +0 -97
- package/dist/components/subheading/Subheading.vue +0 -148
- package/dist/components/subheading/index.d.ts +0 -1
- package/dist/components/subheading/index.mjs +0 -0
- package/dist/components/table/Table.vue +0 -391
- package/dist/components/table/Table.vue.d.ts +0 -174
- package/dist/components/table/index.d.ts +0 -49
- package/dist/components/table/index.mjs +0 -37
- package/dist/components/table-flex/TableFlex.vue +0 -341
- package/dist/components/table-static/TableStatic.vue +0 -458
- package/dist/components/table-static/TableStaticRoot.vue +0 -42
- package/dist/components/table-static/TableStaticSort.vue +0 -23
- package/dist/components/table-static/index.d.ts +0 -64
- package/dist/components/table-static/index.mjs +0 -24
- package/dist/components/tabs/Tab.vue +0 -34
- package/dist/components/tabs/TabContent.vue +0 -53
- package/dist/components/tabs/TabContent.vue.d.ts +0 -33
- package/dist/components/tabs/Tabs.vue +0 -234
- package/dist/components/text/Text.vue +0 -235
- package/dist/components/text/index.d.ts +0 -2
- package/dist/components/text/index.mjs +0 -0
- package/dist/components/textarea/Textarea.vue +0 -188
- package/dist/components/time/Time.vue +0 -257
- package/dist/components/time/TimeItem.vue +0 -117
- package/dist/components/time/index.d.ts +0 -19
- package/dist/components/time/index.mjs +0 -53
- package/dist/components/time/utils/index.d.ts +0 -9
- package/dist/components/time/utils/index.mjs +0 -82
- package/dist/components/timepicker/Timepicker.vue +0 -230
- package/dist/components/toast/Toast.vue +0 -269
- package/dist/components/toast/index.d.ts +0 -50
- package/dist/components/toast/index.mjs +0 -44
- package/dist/components/toggle/Toggle.vue +0 -239
- package/dist/components/tooltip/Tooltip.vue +0 -172
- package/dist/components/tooltip/TooltipContainer.vue +0 -89
- package/dist/components/tooltip/index.d.ts +0 -17
- package/dist/components/tooltip/index.mjs +0 -113
- package/dist/components/tooltip/utils/create-handler.d.ts +0 -9
- package/dist/components/tooltip/utils/create-handler.mjs +0 -16
- package/dist/components/tooltip/utils/on-hover.d.ts +0 -23
- package/dist/components/tooltip/utils/on-hover.mjs +0 -42
- package/dist/components/tooltip/utils/parse-bindings.d.ts +0 -23
- package/dist/components/tooltip/utils/parse-bindings.mjs +0 -47
- package/dist/components/tour/Tour.vue +0 -112
- package/dist/components/tour/TourDialog.vue +0 -207
- package/dist/components/tour/TourHighlight.vue +0 -58
- package/dist/components/tour/core/base.d.ts +0 -59
- package/dist/components/tour/core/base.mjs +0 -69
- package/dist/components/tour/core/step/action.d.ts +0 -15
- package/dist/components/tour/core/step/action.mjs +0 -14
- package/dist/components/tour/core/step/conditional.d.ts +0 -25
- package/dist/components/tour/core/step/conditional.mjs +0 -57
- package/dist/components/tour/core/step/delay.d.ts +0 -8
- package/dist/components/tour/core/step/delay.mjs +0 -9
- package/dist/components/tour/core/step/dialog.d.ts +0 -11
- package/dist/components/tour/core/step/dialog.mjs +0 -25
- package/dist/components/tour/core/step/visit.d.ts +0 -9
- package/dist/components/tour/core/step/visit.mjs +0 -15
- package/dist/components/tour/core/step.d.ts +0 -37
- package/dist/components/tour/core/step.mjs +0 -46
- package/dist/components/tour/core/story.d.ts +0 -130
- package/dist/components/tour/core/story.mjs +0 -166
- package/dist/components/tour/core/tour.d.ts +0 -126
- package/dist/components/tour/core/tour.mjs +0 -196
- package/dist/components/tour/index.d.ts +0 -3
- package/dist/components/tour/index.mjs +0 -4
- package/dist/components/tour/utils/focus.d.ts +0 -1
- package/dist/components/tour/utils/focus.mjs +0 -6
- package/dist/components/tour/utils/is-visible.d.ts +0 -1
- package/dist/components/tour/utils/is-visible.mjs +0 -29
- package/dist/components/tour/utils/wait-element.d.ts +0 -6
- package/dist/components/tour/utils/wait-element.mjs +0 -45
- package/dist/components/truncate/Truncate.vue +0 -75
- package/dist/components/utils/array.d.ts +0 -2
- package/dist/components/utils/array.mjs +0 -19
- package/dist/components/utils/base64.d.ts +0 -8
- package/dist/components/utils/base64.mjs +0 -35
- package/dist/components/utils/color.d.ts +0 -17
- package/dist/components/utils/color.mjs +0 -14
- package/dist/components/utils/date.d.ts +0 -22
- package/dist/components/utils/date.mjs +0 -14
- package/dist/components/utils/value.d.ts +0 -8
- package/dist/components/utils/value.mjs +0 -7
- package/dist/components/utils/vnode.d.ts +0 -15
- package/dist/components/utils/vnode.mjs +0 -18
- package/dist/components/wizard/Wizard.vue +0 -84
- package/dist/components/wizard/WizardBody.vue +0 -50
- package/dist/components/wizard/WizardHeader.vue +0 -38
- package/dist/components/wizard/WizardHeader.vue.d.ts +0 -16
- package/dist/components/wizard/WizardStep.vue +0 -31
- package/dist/core/index.d.ts +0 -43
- package/dist/core/index.mjs +0 -148
- package/dist/directive/index.d.ts +0 -3
- package/dist/directive/index.mjs +0 -12
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -27
- package/dist/runtime/plugins/persona.d.ts +0 -2
- package/dist/runtime/plugins/persona.js +0 -35
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="root"
|
|
4
|
-
v-p-aspect-ratio="layout === 'fixed' ? Number(ratio) : 0"
|
|
5
|
-
data-testid="pdf-viewer"
|
|
6
|
-
class="pdf"
|
|
7
|
-
:data-page="pdfPage"
|
|
8
|
-
:data-scale="pdfScale"
|
|
9
|
-
:class="classNames">
|
|
10
|
-
<div
|
|
11
|
-
class="pdf__header">
|
|
12
|
-
<slot
|
|
13
|
-
name="header"
|
|
14
|
-
:page="pdfPage"
|
|
15
|
-
:scale="pdfScale"
|
|
16
|
-
:total-page="totalPage"
|
|
17
|
-
:zoom-in="zoomIn"
|
|
18
|
-
:zoom-out="zoomOut"
|
|
19
|
-
:next="next"
|
|
20
|
-
:prev="prev"
|
|
21
|
-
:first="first"
|
|
22
|
-
:last="last"
|
|
23
|
-
:doc="pdfDoc" />
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<PdfObjects
|
|
27
|
-
class="pdf__wrapper">
|
|
28
|
-
<!-- Minimum PDFJS Viewer -->
|
|
29
|
-
<div
|
|
30
|
-
ref="container"
|
|
31
|
-
class="pdf__container pdfContainer">
|
|
32
|
-
<PdfLoading v-show="loading || !src" />
|
|
33
|
-
<PdfError
|
|
34
|
-
v-show="!loading && error"
|
|
35
|
-
:url="src"
|
|
36
|
-
:error="error" />
|
|
37
|
-
<div
|
|
38
|
-
ref="viewer"
|
|
39
|
-
class="pdf__viewer pdfViewer" />
|
|
40
|
-
<slot
|
|
41
|
-
:page="pdfPage"
|
|
42
|
-
:scale="pdfScale"
|
|
43
|
-
:total-page="totalPage"
|
|
44
|
-
:zoom-in="zoomIn"
|
|
45
|
-
:zoom-out="zoomOut"
|
|
46
|
-
:next="next"
|
|
47
|
-
:prev="prev"
|
|
48
|
-
:first="first"
|
|
49
|
-
:last="last"
|
|
50
|
-
:doc="pdfDoc" />
|
|
51
|
-
</div>
|
|
52
|
-
<!-- Minimum PDFJS Viewer end -->
|
|
53
|
-
|
|
54
|
-
<slot
|
|
55
|
-
name="container"
|
|
56
|
-
:page="pdfPage"
|
|
57
|
-
:scale="pdfScale"
|
|
58
|
-
:total-page="totalPage"
|
|
59
|
-
:zoom-in="zoomIn"
|
|
60
|
-
:zoom-out="zoomOut"
|
|
61
|
-
:next="next"
|
|
62
|
-
:prev="prev"
|
|
63
|
-
:first="first"
|
|
64
|
-
:last="last"
|
|
65
|
-
:doc="pdfDoc" />
|
|
66
|
-
|
|
67
|
-
<transition name="slide-up">
|
|
68
|
-
<PdfNavigation
|
|
69
|
-
v-show="src && !idle && !loading && !error"
|
|
70
|
-
:first-nav-label="firstNavLabel"
|
|
71
|
-
:last-nav-label="lastNavLabel"
|
|
72
|
-
:num-of-pages-nav-label="numOfPagesNavLabel" />
|
|
73
|
-
</transition>
|
|
74
|
-
|
|
75
|
-
<slot
|
|
76
|
-
name="body"
|
|
77
|
-
:page="pdfPage"
|
|
78
|
-
:scale="pdfScale"
|
|
79
|
-
:total-page="totalPage"
|
|
80
|
-
:zoom-in="zoomIn"
|
|
81
|
-
:zoom-out="zoomOut"
|
|
82
|
-
:next="next"
|
|
83
|
-
:prev="prev"
|
|
84
|
-
:first="first"
|
|
85
|
-
:last="last"
|
|
86
|
-
:doc="pdfDoc" />
|
|
87
|
-
</PdfObjects>
|
|
88
|
-
<div class="pdf__footer">
|
|
89
|
-
<slot
|
|
90
|
-
name="footer"
|
|
91
|
-
:page="pdfPage"
|
|
92
|
-
:scale="pdfScale"
|
|
93
|
-
:total-page="totalPage"
|
|
94
|
-
:zoom-in="zoomIn"
|
|
95
|
-
:zoom-out="zoomOut"
|
|
96
|
-
:next="next"
|
|
97
|
-
:prev="prev"
|
|
98
|
-
:first="first"
|
|
99
|
-
:last="last"
|
|
100
|
-
:doc="pdfDoc" />
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
</template>
|
|
104
|
-
|
|
105
|
-
<script lang="ts" setup>
|
|
106
|
-
import type { PropType, VNode } from 'vue-demi'
|
|
107
|
-
import {
|
|
108
|
-
computed,
|
|
109
|
-
onMounted,
|
|
110
|
-
provide,
|
|
111
|
-
ref,
|
|
112
|
-
toRef,
|
|
113
|
-
watch,
|
|
114
|
-
} from 'vue-demi'
|
|
115
|
-
import { vPAspectRatio } from '../aspect-ratio'
|
|
116
|
-
import {
|
|
117
|
-
useToNumber,
|
|
118
|
-
useVModel,
|
|
119
|
-
watchDebounced,
|
|
120
|
-
syncRef,
|
|
121
|
-
} from '@vueuse/core'
|
|
122
|
-
import type { LayoutVariant } from '.'
|
|
123
|
-
import { PDF_VIEWER_CONTEXT } from '.'
|
|
124
|
-
import { useSticky } from './utils/use-sticky'
|
|
125
|
-
import PdfNavigation from './PdfNavigation.vue'
|
|
126
|
-
import PdfLoading from './PdfLoading.vue'
|
|
127
|
-
import PdfError from './PdfError.vue'
|
|
128
|
-
import { useIdle } from './utils/use-idle'
|
|
129
|
-
import PdfObjects from '../pdf-object/PdfObjects.vue'
|
|
130
|
-
import { useViewer } from './utils/use-viewer'
|
|
131
|
-
import type { OpenDocConfig } from './utils/use-viewer'
|
|
132
|
-
import type { PDFJS, PDFJSViewer } from './utils/pdfjs'
|
|
133
|
-
|
|
134
|
-
const props = defineProps({
|
|
135
|
-
src: {
|
|
136
|
-
type : String,
|
|
137
|
-
default: '',
|
|
138
|
-
},
|
|
139
|
-
page: {
|
|
140
|
-
type : Number,
|
|
141
|
-
default: 1,
|
|
142
|
-
},
|
|
143
|
-
scale: {
|
|
144
|
-
type : Number,
|
|
145
|
-
default: 1,
|
|
146
|
-
},
|
|
147
|
-
password: {
|
|
148
|
-
type : String,
|
|
149
|
-
default: undefined,
|
|
150
|
-
},
|
|
151
|
-
layout: {
|
|
152
|
-
type : String as PropType<LayoutVariant>,
|
|
153
|
-
default: 'fixed',
|
|
154
|
-
},
|
|
155
|
-
ratio: {
|
|
156
|
-
type : [Number, String],
|
|
157
|
-
default: 210 / 297,
|
|
158
|
-
},
|
|
159
|
-
offsetTop: {
|
|
160
|
-
type : [Number, String],
|
|
161
|
-
default: 0,
|
|
162
|
-
},
|
|
163
|
-
config: {
|
|
164
|
-
type : [Object] as PropType<OpenDocConfig>,
|
|
165
|
-
default: () => ({}),
|
|
166
|
-
},
|
|
167
|
-
firstNavLabel: {
|
|
168
|
-
type : String,
|
|
169
|
-
default: 'First',
|
|
170
|
-
},
|
|
171
|
-
lastNavLabel: {
|
|
172
|
-
type : String,
|
|
173
|
-
default: 'Last',
|
|
174
|
-
},
|
|
175
|
-
numOfPagesNavLabel: {
|
|
176
|
-
type : String,
|
|
177
|
-
default: 'of',
|
|
178
|
-
},
|
|
179
|
-
})
|
|
180
|
-
|
|
181
|
-
const emit = defineEmits<{
|
|
182
|
-
'ready': [PDFJSViewer.PDFViewer],
|
|
183
|
-
'loaded': [PDFJS.PDFDocumentProxy],
|
|
184
|
-
'loading': [PDFJS.OnProgressParameters],
|
|
185
|
-
'error': [Error],
|
|
186
|
-
'error-password': [Error],
|
|
187
|
-
'update:page': [number],
|
|
188
|
-
'update:scale': [number],
|
|
189
|
-
}>()
|
|
190
|
-
|
|
191
|
-
const root = ref<HTMLDivElement>()
|
|
192
|
-
const container = ref<HTMLDivElement>()
|
|
193
|
-
const viewer = ref<HTMLDivElement>()
|
|
194
|
-
const idle = useIdle(container)
|
|
195
|
-
|
|
196
|
-
const vPage = useVModel(props, 'page')
|
|
197
|
-
const vScale = useVModel(props, 'scale')
|
|
198
|
-
|
|
199
|
-
const offsetTop = useToNumber(toRef(props, 'offsetTop'), { nanToZero: true })
|
|
200
|
-
const enableSticky = useSticky(root, { offsetTop: offsetTop })
|
|
201
|
-
|
|
202
|
-
const classNames = computed(() => {
|
|
203
|
-
const result: string[] = []
|
|
204
|
-
|
|
205
|
-
if (props.layout)
|
|
206
|
-
result.push(`pdf-viewer--layout-${props.layout}`)
|
|
207
|
-
|
|
208
|
-
return result
|
|
209
|
-
})
|
|
210
|
-
|
|
211
|
-
const {
|
|
212
|
-
page: pdfPage,
|
|
213
|
-
scale: pdfScale,
|
|
214
|
-
totalPage,
|
|
215
|
-
openDoc,
|
|
216
|
-
closeDoc,
|
|
217
|
-
pdfDoc,
|
|
218
|
-
loading,
|
|
219
|
-
error,
|
|
220
|
-
onLoaded,
|
|
221
|
-
onError,
|
|
222
|
-
onReady,
|
|
223
|
-
onLoading,
|
|
224
|
-
} = useViewer(container, viewer)
|
|
225
|
-
|
|
226
|
-
watchDebounced(() => [props.src, props.password], ([src, password]) => {
|
|
227
|
-
openDoc(src, password, props.config)
|
|
228
|
-
}, { debounce: 500 })
|
|
229
|
-
|
|
230
|
-
watch(() => props.layout, (layout) => {
|
|
231
|
-
enableSticky.value = layout === 'fit'
|
|
232
|
-
}, { immediate: true })
|
|
233
|
-
|
|
234
|
-
onMounted(async () => {
|
|
235
|
-
if (props.src)
|
|
236
|
-
openDoc(props.src, props.password, props.config)
|
|
237
|
-
})
|
|
238
|
-
|
|
239
|
-
onLoaded((doc) => {
|
|
240
|
-
emit('loaded', doc)
|
|
241
|
-
})
|
|
242
|
-
|
|
243
|
-
onError((error_) => {
|
|
244
|
-
if (error_.name === 'PasswordException')
|
|
245
|
-
emit('error-password', error_)
|
|
246
|
-
|
|
247
|
-
emit('error', error_)
|
|
248
|
-
})
|
|
249
|
-
|
|
250
|
-
onReady((pdfViewer) => {
|
|
251
|
-
emit('ready', pdfViewer)
|
|
252
|
-
})
|
|
253
|
-
|
|
254
|
-
onLoading((event) => {
|
|
255
|
-
emit('loading', event)
|
|
256
|
-
})
|
|
257
|
-
|
|
258
|
-
function zoomIn () {
|
|
259
|
-
pdfScale.value = (Math.round(pdfScale.value / 0.1) * 0.1) + 0.1
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
function zoomOut () {
|
|
263
|
-
pdfScale.value = (Math.round(pdfScale.value / 0.1) * 0.1) - 0.1
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
function next () {
|
|
267
|
-
pdfPage.value++
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
function prev () {
|
|
271
|
-
pdfPage.value--
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
function first () {
|
|
275
|
-
pdfPage.value = 1
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
function last () {
|
|
279
|
-
pdfPage.value = totalPage.value
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
provide(PDF_VIEWER_CONTEXT, {
|
|
283
|
-
page : pdfPage,
|
|
284
|
-
scale: pdfScale,
|
|
285
|
-
totalPage,
|
|
286
|
-
zoomIn,
|
|
287
|
-
zoomOut,
|
|
288
|
-
next,
|
|
289
|
-
prev,
|
|
290
|
-
first,
|
|
291
|
-
last,
|
|
292
|
-
})
|
|
293
|
-
|
|
294
|
-
syncRef(pdfPage, vPage)
|
|
295
|
-
syncRef(pdfScale, vScale)
|
|
296
|
-
|
|
297
|
-
defineExpose({
|
|
298
|
-
page : pdfPage,
|
|
299
|
-
scale: pdfScale,
|
|
300
|
-
root,
|
|
301
|
-
container,
|
|
302
|
-
viewer,
|
|
303
|
-
loading,
|
|
304
|
-
totalPage,
|
|
305
|
-
zoomIn,
|
|
306
|
-
zoomOut,
|
|
307
|
-
next,
|
|
308
|
-
prev,
|
|
309
|
-
openDoc,
|
|
310
|
-
closeDoc,
|
|
311
|
-
first,
|
|
312
|
-
last,
|
|
313
|
-
})
|
|
314
|
-
|
|
315
|
-
interface PdfViewerSlotScope {
|
|
316
|
-
page: number,
|
|
317
|
-
scale: number,
|
|
318
|
-
totalPage: number,
|
|
319
|
-
doc: PDFJS.PDFDocumentProxy,
|
|
320
|
-
zoomIn: () => void,
|
|
321
|
-
zoomOut: () => void,
|
|
322
|
-
next: () => void,
|
|
323
|
-
prev: () => void,
|
|
324
|
-
first: () => void,
|
|
325
|
-
last: () => void,
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
defineSlots<{
|
|
329
|
-
'header'(props: PdfViewerSlotScope): VNode[],
|
|
330
|
-
'container'(props: PdfViewerSlotScope): VNode[],
|
|
331
|
-
'body'(props: PdfViewerSlotScope): VNode[],
|
|
332
|
-
'footer'(props: PdfViewerSlotScope): VNode[],
|
|
333
|
-
'default'(props: PdfViewerSlotScope): VNode[],
|
|
334
|
-
}>()
|
|
335
|
-
</script>
|
|
336
|
-
|
|
337
|
-
<style lang="postcss">
|
|
338
|
-
.pdf {
|
|
339
|
-
--p-pdf-container-width: 793px;
|
|
340
|
-
|
|
341
|
-
@apply relative overflow-hidden w-full flex flex-col bg-base z-1;
|
|
342
|
-
@apply dark:bg-dark-base;
|
|
343
|
-
|
|
344
|
-
&__wrapper {
|
|
345
|
-
@apply relative h-full w-full grow;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
&__container {
|
|
349
|
-
-webkit-overflow-scrolling: touch;
|
|
350
|
-
|
|
351
|
-
@apply absolute inset-0 h-full w-full overflow-auto p-4 pb-16 shadow-inner;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
&__viewer {
|
|
355
|
-
.page {
|
|
356
|
-
border-image: none;
|
|
357
|
-
|
|
358
|
-
@apply shadow-lg mb-4 mt-0 border;
|
|
359
|
-
|
|
360
|
-
&.hover {
|
|
361
|
-
@apply ring-info ring;
|
|
362
|
-
@apply dark:ring-dark-info;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
&__header {
|
|
368
|
-
@apply z-1 bg-default shadow-lg;
|
|
369
|
-
@apply dark:bg-dark-default;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
&__footer {
|
|
373
|
-
@apply z-1 bg-default shadow-lg-top;
|
|
374
|
-
@apply dark:bg-dark-default;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="595" height="842" aria-labelledby="loading-aria" preserveAspectRatio="none" role="img" viewBox="0 0 595 842"><title id="loading-aria">Loading...</title><rect width="100%" height="100%" x="0" y="0" clip-path="url(#clip-path)" style="fill:url(#fill)"/><defs><clipPath id="clip-path"><rect width="191" height="14" x="44" y="64" rx="2.068"/><rect width="140" height="14" x="44" y="94" rx="2.068"/><rect width="507" height="14" x="44" y="152" rx="7"/><rect width="507" height="14" x="44" y="182" rx="7"/><rect width="507" height="14" x="44" y="212" rx="7"/><rect width="507" height="14" x="44" y="242" rx="7"/><rect width="507" height="14" x="44" y="272" rx="7"/><rect width="507" height="14" x="44" y="302" rx="7"/><rect width="349" height="14" x="44" y="332" rx="7"/><rect width="507" height="14" x="44" y="390" rx="7"/><rect width="507" height="14" x="44" y="420" rx="7"/><rect width="507" height="14" x="44" y="450" rx="7"/><rect width="507" height="14" x="44" y="480" rx="7"/><rect width="507" height="14" x="44" y="510" rx="7"/><rect width="507" height="14" x="44" y="540" rx="7"/><rect width="183" height="14" x="44" y="570" rx="7"/><rect width="191" height="14" x="360" y="628" rx="2.068"/><rect width="140" height="14" x="411" y="678" rx="2.068"/><rect width="191" height="14" x="44" y="64" rx="2.068"/><rect width="140" height="14" x="44" y="94" rx="2.068"/><rect width="507" height="14" x="44" y="152" rx="7"/><rect width="507" height="14" x="44" y="182" rx="7"/><rect width="507" height="14" x="44" y="212" rx="7"/><rect width="507" height="14" x="44" y="242" rx="7"/><rect width="507" height="14" x="44" y="272" rx="7"/><rect width="507" height="14" x="44" y="302" rx="7"/><rect width="349" height="14" x="44" y="332" rx="7"/><rect width="507" height="14" x="44" y="390" rx="7"/><rect width="507" height="14" x="44" y="420" rx="7"/><rect width="507" height="14" x="44" y="450" rx="7"/><rect width="507" height="14" x="44" y="480" rx="7"/><rect width="507" height="14" x="44" y="510" rx="7"/><rect width="507" height="14" x="44" y="540" rx="7"/><rect width="183" height="14" x="44" y="570" rx="7"/><rect width="191" height="14" x="360" y="628" rx="2.068"/><rect width="140" height="14" x="411" y="678" rx="2.068"/></clipPath><linearGradient id="fill"><stop offset=".6" stop-color="#E7E7E8" stop-opacity="1"><animate attributeName="offset" dur="2s" keyTimes="0; 0.25; 1" repeatCount="indefinite" values="-2; -2; 1"/></stop><stop offset="1.6" stop-color="#CFCFD1" stop-opacity="1"><animate attributeName="offset" dur="2s" keyTimes="0; 0.25; 1" repeatCount="indefinite" values="-1; -1; 2"/></stop><stop offset="2.6" stop-color="#E7E7E8" stop-opacity="1"><animate attributeName="offset" dur="2s" keyTimes="0; 0.25; 1" repeatCount="indefinite" values="0; 0; 3"/></stop></linearGradient></defs></svg>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { InjectionKey, Ref } from 'vue-demi';
|
|
2
|
-
export type LayoutVariant = 'fixed' | 'fit';
|
|
3
|
-
export interface PdfViewerContext {
|
|
4
|
-
page: Ref<number>;
|
|
5
|
-
scale: Ref<number>;
|
|
6
|
-
totalPage: Readonly<Ref<number>>;
|
|
7
|
-
zoomIn: () => void;
|
|
8
|
-
zoomOut: () => void;
|
|
9
|
-
next: () => void;
|
|
10
|
-
prev: () => void;
|
|
11
|
-
first: () => void;
|
|
12
|
-
last: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const PDF_VIEWER_CONTEXT: InjectionKey<PdfViewerContext>;
|
|
15
|
-
export declare function usePdfContext(): {
|
|
16
|
-
page: Ref<number, number>;
|
|
17
|
-
scale: Ref<number, number>;
|
|
18
|
-
totalPage: Ref<number, number>;
|
|
19
|
-
zoomIn: (...args: any[]) => void;
|
|
20
|
-
zoomOut: (...args: any[]) => void;
|
|
21
|
-
next: (...args: any[]) => void;
|
|
22
|
-
prev: (...args: any[]) => void;
|
|
23
|
-
first: (...args: any[]) => void;
|
|
24
|
-
last: (...args: any[]) => void;
|
|
25
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
inject,
|
|
3
|
-
ref
|
|
4
|
-
} from "vue-demi";
|
|
5
|
-
import { noop } from "lodash-es";
|
|
6
|
-
export const PDF_VIEWER_CONTEXT = Symbol("PdfViewer");
|
|
7
|
-
export function usePdfContext() {
|
|
8
|
-
return inject(PDF_VIEWER_CONTEXT, () => {
|
|
9
|
-
const page = ref(1);
|
|
10
|
-
const scale = ref(1);
|
|
11
|
-
const totalPage = ref(0);
|
|
12
|
-
return {
|
|
13
|
-
page,
|
|
14
|
-
scale,
|
|
15
|
-
totalPage,
|
|
16
|
-
zoomIn: noop,
|
|
17
|
-
zoomOut: noop,
|
|
18
|
-
next: noop,
|
|
19
|
-
prev: noop,
|
|
20
|
-
first: noop,
|
|
21
|
-
last: noop
|
|
22
|
-
};
|
|
23
|
-
}, true);
|
|
24
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type * as PDFJS from 'pdfjs-dist';
|
|
2
|
-
import type * as PDFJSViewer from 'pdfjs-dist/legacy/web/pdf_viewer.mjs';
|
|
3
|
-
export declare function getDocument(...params: Parameters<typeof PDFJS['getDocument']>): Promise<import("pdfjs-dist/types/src/display/api").PDFDocumentLoadingTask>;
|
|
4
|
-
export declare function getCMAPUri(): Promise<string>;
|
|
5
|
-
export declare function getVersion(): Promise<string>;
|
|
6
|
-
export declare function createEventBus(): Promise<PDFJSViewer.EventBus>;
|
|
7
|
-
export declare function createViewer(...params: ConstructorParameters<typeof PDFJSViewer['PDFViewer']>): Promise<PDFJSViewer.PDFViewer>;
|
|
8
|
-
export declare function createLinkService(...params: ConstructorParameters<typeof PDFJSViewer['PDFLinkService']>): Promise<PDFJSViewer.PDFLinkService>;
|
|
9
|
-
export type * as PDFJSViewer from 'pdfjs-dist/web/pdf_viewer.mjs';
|
|
10
|
-
export type * as PDFJS from 'pdfjs-dist';
|
|
11
|
-
export declare function normalizeRect(rect: number[]): number[];
|
|
12
|
-
export interface PDFJSAnnotation {
|
|
13
|
-
id: string;
|
|
14
|
-
annotationFlags: number;
|
|
15
|
-
borderStyle?: {
|
|
16
|
-
width: number;
|
|
17
|
-
rawWidth: number;
|
|
18
|
-
style: number;
|
|
19
|
-
dashArray: number[];
|
|
20
|
-
horizontalCornerRadius: number;
|
|
21
|
-
verticalCornerRadius: number;
|
|
22
|
-
};
|
|
23
|
-
color?: Uint8ClampedArray;
|
|
24
|
-
backgroundColor?: Uint8ClampedArray;
|
|
25
|
-
borderColor?: Uint8ClampedArray;
|
|
26
|
-
rotation: 0 | 90 | 180 | 270;
|
|
27
|
-
contentsObj: {
|
|
28
|
-
str: string;
|
|
29
|
-
dir: 'ltr' | 'rtl';
|
|
30
|
-
};
|
|
31
|
-
hasAppearance: boolean;
|
|
32
|
-
modificationDate?: Date;
|
|
33
|
-
rect: [
|
|
34
|
-
number,
|
|
35
|
-
number,
|
|
36
|
-
number,
|
|
37
|
-
number
|
|
38
|
-
];
|
|
39
|
-
subtype: string;
|
|
40
|
-
hasOwnCanvas: boolean;
|
|
41
|
-
noRotate: boolean;
|
|
42
|
-
noHTML: boolean;
|
|
43
|
-
isEditable: boolean;
|
|
44
|
-
structParent: number;
|
|
45
|
-
annotationType: number;
|
|
46
|
-
fieldName: string;
|
|
47
|
-
actions?: string;
|
|
48
|
-
fieldValue?: string;
|
|
49
|
-
defaultFieldValue?: string;
|
|
50
|
-
alternativeText: string;
|
|
51
|
-
defaultAppearanceData?: {
|
|
52
|
-
fontSize: number;
|
|
53
|
-
fontName: string;
|
|
54
|
-
fontColor: Uint8ClampedArray;
|
|
55
|
-
};
|
|
56
|
-
fieldType: string;
|
|
57
|
-
fieldFlags: number;
|
|
58
|
-
password: boolean;
|
|
59
|
-
readOnly: boolean;
|
|
60
|
-
required: boolean;
|
|
61
|
-
hidden: boolean;
|
|
62
|
-
}
|
|
63
|
-
export interface PDFJSRawDimension {
|
|
64
|
-
pageWidth: number;
|
|
65
|
-
pageHeight: number;
|
|
66
|
-
pageX: number;
|
|
67
|
-
pageY: number;
|
|
68
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { withBase } from "ufo";
|
|
2
|
-
import { getCDN } from "../../global/store.mjs";
|
|
3
|
-
let pdfjsLib;
|
|
4
|
-
let pdfjsViewer;
|
|
5
|
-
async function importPdfJS() {
|
|
6
|
-
if (!pdfjsLib) {
|
|
7
|
-
const pdfjs = await import("pdfjs-dist");
|
|
8
|
-
if (typeof window !== "undefined" && "Worker" in window)
|
|
9
|
-
pdfjs.GlobalWorkerOptions.workerSrc = withBase(`pdfjs-dist@${pdfjs.version}/legacy/build/pdf.worker.min.mjs`, getCDN());
|
|
10
|
-
pdfjsLib = pdfjs;
|
|
11
|
-
}
|
|
12
|
-
return pdfjsLib;
|
|
13
|
-
}
|
|
14
|
-
async function importPdfJSViewer() {
|
|
15
|
-
await importPdfJS();
|
|
16
|
-
if (!pdfjsViewer)
|
|
17
|
-
pdfjsViewer = await import("pdfjs-dist/legacy/web/pdf_viewer.mjs");
|
|
18
|
-
return pdfjsViewer;
|
|
19
|
-
}
|
|
20
|
-
export async function getDocument(...params) {
|
|
21
|
-
await importPdfJS();
|
|
22
|
-
return pdfjsLib.getDocument(...params);
|
|
23
|
-
}
|
|
24
|
-
export async function getCMAPUri() {
|
|
25
|
-
return withBase(`pdfjs-dist@${await getVersion()}/cmaps/`, getCDN());
|
|
26
|
-
}
|
|
27
|
-
export async function getVersion() {
|
|
28
|
-
await importPdfJS();
|
|
29
|
-
return pdfjsLib.version;
|
|
30
|
-
}
|
|
31
|
-
export async function createEventBus() {
|
|
32
|
-
await importPdfJSViewer();
|
|
33
|
-
return new pdfjsViewer.EventBus();
|
|
34
|
-
}
|
|
35
|
-
export async function createViewer(...params) {
|
|
36
|
-
await importPdfJSViewer();
|
|
37
|
-
return new pdfjsViewer.PDFViewer(...params);
|
|
38
|
-
}
|
|
39
|
-
export async function createLinkService(...params) {
|
|
40
|
-
await importPdfJSViewer();
|
|
41
|
-
return new pdfjsViewer.PDFLinkService(...params);
|
|
42
|
-
}
|
|
43
|
-
export function normalizeRect(rect) {
|
|
44
|
-
const r = [...rect];
|
|
45
|
-
if (rect[0] > rect[2]) {
|
|
46
|
-
r[0] = rect[2];
|
|
47
|
-
r[2] = rect[0];
|
|
48
|
-
}
|
|
49
|
-
if (rect[1] > rect[3]) {
|
|
50
|
-
r[1] = rect[3];
|
|
51
|
-
r[3] = rect[1];
|
|
52
|
-
}
|
|
53
|
-
return r;
|
|
54
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useEventListener
|
|
3
|
-
} from "@vueuse/core";
|
|
4
|
-
import { ref } from "vue-demi";
|
|
5
|
-
const TRACK_EVENTS = [
|
|
6
|
-
"mousemove",
|
|
7
|
-
"mousedown",
|
|
8
|
-
"touchstart",
|
|
9
|
-
"keydown",
|
|
10
|
-
"scroll"
|
|
11
|
-
];
|
|
12
|
-
export function useIdle(target, timeout = 5e3) {
|
|
13
|
-
const idle = ref(false);
|
|
14
|
-
let timer;
|
|
15
|
-
function onActivities() {
|
|
16
|
-
idle.value = false;
|
|
17
|
-
if (timer)
|
|
18
|
-
clearTimeout(timer);
|
|
19
|
-
timer = setTimeout(() => {
|
|
20
|
-
idle.value = true;
|
|
21
|
-
}, timeout);
|
|
22
|
-
}
|
|
23
|
-
useEventListener(target, TRACK_EVENTS, onActivities, { passive: true });
|
|
24
|
-
return idle;
|
|
25
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { MaybeRef } from '@vueuse/core';
|
|
2
|
-
import type { Ref } from 'vue-demi';
|
|
3
|
-
export interface StickyOptions {
|
|
4
|
-
offsetTop: MaybeRef<number>;
|
|
5
|
-
}
|
|
6
|
-
export declare function useSticky(target: Ref<HTMLElement>, options?: Partial<StickyOptions>): Ref<boolean, boolean>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useElementBounding,
|
|
3
|
-
useWindowSize
|
|
4
|
-
} from "@vueuse/core";
|
|
5
|
-
import {
|
|
6
|
-
computed,
|
|
7
|
-
ref,
|
|
8
|
-
unref,
|
|
9
|
-
watchEffect
|
|
10
|
-
} from "vue-demi";
|
|
11
|
-
export function useSticky(target, options = {}) {
|
|
12
|
-
const enable = ref(false);
|
|
13
|
-
const offsetTop = computed(() => unref(options.offsetTop) ?? 0);
|
|
14
|
-
const parent = computed(() => unref(target)?.parentElement);
|
|
15
|
-
const {
|
|
16
|
-
top,
|
|
17
|
-
height
|
|
18
|
-
} = useElementBounding(parent);
|
|
19
|
-
const {
|
|
20
|
-
top: targetTop,
|
|
21
|
-
width,
|
|
22
|
-
left
|
|
23
|
-
} = useElementBounding(target);
|
|
24
|
-
const { height: windowHeight } = useWindowSize();
|
|
25
|
-
watchEffect((onCleanup) => {
|
|
26
|
-
if (enable.value && target.value) {
|
|
27
|
-
if (top.value - offsetTop.value >= 0) {
|
|
28
|
-
target.value.style.setProperty("height", `${windowHeight.value - targetTop.value}px`);
|
|
29
|
-
target.value.style.setProperty("width", "100%");
|
|
30
|
-
} else {
|
|
31
|
-
parent.value.style.setProperty("min-height", `${height.value}px`);
|
|
32
|
-
target.value.style.setProperty("position", "fixed");
|
|
33
|
-
target.value.style.setProperty("top", `${offsetTop.value}px`);
|
|
34
|
-
target.value.style.setProperty("left", `${left.value}px`);
|
|
35
|
-
target.value.style.setProperty("width", `${width.value}px`);
|
|
36
|
-
target.value.style.setProperty("height", `${windowHeight.value - offsetTop.value}px`);
|
|
37
|
-
}
|
|
38
|
-
onCleanup(() => {
|
|
39
|
-
parent.value.style.removeProperty("min-height");
|
|
40
|
-
target.value.style.removeProperty("position");
|
|
41
|
-
target.value.style.removeProperty("top");
|
|
42
|
-
target.value.style.removeProperty("left");
|
|
43
|
-
target.value.style.removeProperty("width");
|
|
44
|
-
target.value.style.removeProperty("height");
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
return enable;
|
|
49
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import 'pdfjs-dist/web/pdf_viewer.css';
|
|
2
|
-
import type { Ref } from 'vue-demi';
|
|
3
|
-
import type { PDFJSViewer } from './pdfjs';
|
|
4
|
-
export interface OpenDocConfig {
|
|
5
|
-
disableStream?: boolean;
|
|
6
|
-
disableRange?: boolean;
|
|
7
|
-
httpHeaders?: Object;
|
|
8
|
-
}
|
|
9
|
-
export declare function useViewer(container: Ref<HTMLDivElement>, viewer: Ref<HTMLDivElement>): {
|
|
10
|
-
page: Ref<number, number>;
|
|
11
|
-
scale: Ref<number, number>;
|
|
12
|
-
totalPage: import("vue-demi").ComputedRef<number>;
|
|
13
|
-
loading: import("vue-demi").WritableComputedRef<boolean, boolean>;
|
|
14
|
-
error: import("vue-demi").ShallowRef<Error | undefined, Error | undefined>;
|
|
15
|
-
ready: import("vue-demi").ShallowRef<boolean, boolean>;
|
|
16
|
-
openDoc: (url: string, password?: string, config?: OpenDocConfig) => Promise<void>;
|
|
17
|
-
closeDoc: () => Promise<void>;
|
|
18
|
-
pdfDoc: import("vue-demi").ShallowRef<import("pdfjs-dist/types/src/display/api").PDFDocumentProxy | undefined, import("pdfjs-dist/types/src/display/api").PDFDocumentProxy | undefined>;
|
|
19
|
-
pdfEventBus: import("vue-demi").ShallowRef<PDFJSViewer.EventBus | undefined, PDFJSViewer.EventBus | undefined>;
|
|
20
|
-
pdfViewer: import("vue-demi").ShallowRef<PDFJSViewer.PDFViewer | undefined, PDFJSViewer.PDFViewer | undefined>;
|
|
21
|
-
pdfLoadingTask: import("vue-demi").ShallowRef<import("pdfjs-dist/types/src/display/api").PDFDocumentLoadingTask | undefined, import("pdfjs-dist/types/src/display/api").PDFDocumentLoadingTask | undefined>;
|
|
22
|
-
pdfLinkService: import("vue-demi").ShallowRef<PDFJSViewer.PDFLinkService | undefined, PDFJSViewer.PDFLinkService | undefined>;
|
|
23
|
-
onLoaded: import("@vueuse/core").EventHookOn<import("pdfjs-dist/types/src/display/api").PDFDocumentProxy>;
|
|
24
|
-
onError: import("@vueuse/core").EventHookOn<Error>;
|
|
25
|
-
onReady: import("@vueuse/core").EventHookOn<PDFJSViewer.PDFViewer>;
|
|
26
|
-
onLoading: import("@vueuse/core").EventHookOn<import("pdfjs-dist/types/src/display/api").OnProgressParameters>;
|
|
27
|
-
};
|