@nxgt/material-vue 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/dist/{Button-pivhf0dI.js → Button-DcFHQ3oH.js} +2 -2
- package/dist/{DropdownMenuTrigger-CN8_B7pW.js → DropdownMenuTrigger-BHAhXGUO.js} +1 -1
- package/dist/{HoverCardTrigger-yygLSc07.js → HoverCardTrigger-D99aHKDX.js} +56 -85
- package/dist/{_Uint8Array-DT-6Im9e.js → _Uint8Array-2hFHkjYD.js} +20 -20
- package/dist/{_baseIsEqual-DO9tjdtt.js → _baseIsEqual-BUD8VQJE.js} +22 -22
- package/dist/{_defineProperty-BlaaM_1a.js → _defineProperty-C606G0Re.js} +2 -2
- package/dist/{_initCloneObject-BSldCT0L.js → _initCloneObject-D3WSYU-D.js} +15 -15
- package/dist/{abnfDiagram-O67JEVCF-Cl_I9xuI.js → abnfDiagram-O67JEVCF-zi427H-1.js} +8 -8
- package/dist/{arc-DNNg1pxp.js → arc-BVFnqPx6.js} +3 -3
- package/dist/architecture-7GRP2DOG-CMg7-eYj.js +3 -0
- package/dist/{architectureDiagram-NJMV4G6O-CVS4UUCi.js → architectureDiagram-NJMV4G6O-HNmyjC6R.js} +11 -11
- package/dist/{blockDiagram-BEXU5L5S-BsSbtJ0q.js → blockDiagram-BEXU5L5S-TXcaNPiA.js} +18 -18
- package/dist/{c4Diagram-YGBWAQC7-B6jKsl3h.js → c4Diagram-YGBWAQC7-DB1KwkmW.js} +10 -10
- package/dist/{camera-DquOJeHc.js → camera-C7V5U_xH.js} +11 -11
- package/dist/channel-B8wKCSzH.js +5 -0
- package/dist/{chunk-2Q5K7J3B-kzxEEeTu.js → chunk-2Q5K7J3B-C1pX24ft.js} +2 -2
- package/dist/{chunk-3FUC2YCW-BjAQA8CW.js → chunk-3FUC2YCW-Bw4AJEzl.js} +11 -11
- package/dist/{chunk-5DYCD2WN-B9vjeX2u.js → chunk-5DYCD2WN-4BDKWc4g.js} +5 -5
- package/dist/{chunk-5VM5RSS4-Cr17nBXp.js → chunk-5VM5RSS4-BFskf6Qk.js} +2 -2
- package/dist/{chunk-6AEJRKK7-D9IaQdwq.js → chunk-6AEJRKK7-D1W4b1Ir.js} +4 -4
- package/dist/{chunk-742MDFTN-BIhVe9GR.js → chunk-742MDFTN-Bh_u1X2k.js} +14 -14
- package/dist/{chunk-7INBJB4K-CwPgdc2G.js → chunk-7INBJB4K-OheKRjIZ.js} +10 -10
- package/dist/{chunk-7M6MHVWA-B6VDnhvE.js → chunk-7M6MHVWA-wgE1MsQ9.js} +14 -14
- package/dist/{chunk-7PRAP22T-CofnNOEr.js → chunk-7PRAP22T-CZmOrCLD.js} +3 -3
- package/dist/{chunk-DUW6YSOI-BdOla2G8.js → chunk-DUW6YSOI-9R-v-IIp.js} +2 -2
- package/dist/{chunk-FOHPRMQF-Crq0JMf2.js → chunk-FOHPRMQF-DBc3Omt0.js} +1 -1
- package/dist/{chunk-GNY47TPC-c_sooZ3L.js → chunk-GNY47TPC-BByCj-tp.js} +14 -14
- package/dist/{chunk-GTNCS2PH-BR0O70z_.js → chunk-GTNCS2PH--PxF9Mrf.js} +5 -5
- package/dist/{chunk-GWA4HPMP-DU9lUCZD.js → chunk-GWA4HPMP-hjyItnXu.js} +5 -5
- package/dist/{chunk-J5ZVWO5B-CYzz6Pq8.js → chunk-J5ZVWO5B-DmRRmhon.js} +2 -2
- package/dist/{chunk-JWPE2WC7-Ccb0QaC8.js → chunk-JWPE2WC7-BGVSGRTC.js} +2 -2
- package/dist/{chunk-LNGE3PJU-CiGrDO_F.js → chunk-LNGE3PJU-DJjGTS7O.js} +2 -2
- package/dist/{chunk-MBY4JIJT-HYVRUG_P.js → chunk-MBY4JIJT-ODeZ1ugd.js} +8 -8
- package/dist/{chunk-NETBCI7D-C8amwD_P.js → chunk-NETBCI7D-B_M68PfO.js} +3 -3
- package/dist/{chunk-O7XYJQB3-WMQqqzRb.js → chunk-O7XYJQB3-BDucxjeL.js} +5 -5
- package/dist/{chunk-UA2S7LBM-DtBatid7.js → chunk-UA2S7LBM-DN55-gzN.js} +10 -10
- package/dist/{chunk-WEXAMYUT-Cc10h8ed.js → chunk-WEXAMYUT-DufdZ2tS.js} +4 -4
- package/dist/{chunk-XXDRQBXY-B2pGFcse.js → chunk-XXDRQBXY-B9ckANit.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-i11wjrBe.js → chunk-Y2CYZVJY-BAad7w_K.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-CJmsOGTV.js → chunk-Z7XXMR3K-DdnrI6vA.js} +11 -11
- package/dist/{chunk-ZIGJFQKS-DBdWb0bj.js → chunk-ZIGJFQKS-JoSqKBE3.js} +44 -44
- package/dist/{classDiagram-v2-NBCMYWYE-BTeb-Duf.js → classDiagram-v2-NBCMYWYE-LDc3yyTu.js} +18 -18
- package/dist/{cloneDeep-Gp-zHISG.js → cloneDeep-Cv9TF8j3.js} +20 -20
- package/dist/{components-Bwxq-DLd.js → components-BSnW1NZK.js} +9731 -9766
- package/dist/components.js +8 -11
- package/dist/composables.js +13 -13
- package/dist/{cose-bilkent-JH36ORCC-DStMi-eo.js → cose-bilkent-JH36ORCC-DMu3MtOq.js} +4 -4
- package/dist/cynefin-OW5HDTMX-BGe4AjUw.js +3 -0
- package/dist/{cynefinDiagram-VND7K2PF-0Mq0e5NQ.js → cynefinDiagram-VND7K2PF-D5sBaWLI.js} +8 -8
- package/dist/{cytoscape.esm-_jXi1N4y.js → cytoscape.esm-DXVRLXF3.js} +1 -1
- package/dist/{dagre-6A5THRUB-DjL-7QUw.js → dagre-6A5THRUB-CCigPI-W.js} +91 -91
- package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-DQ8-aLi9.js} +12 -12
- package/dist/{diagram-22UHCM2B-BZRVXHfN.js → diagram-22UHCM2B-vav-BOss.js} +20 -20
- package/dist/{diagram-3UASUU5V-BznCZHss.js → diagram-3UASUU5V-CqXTP2Mz.js} +33 -33
- package/dist/{diagram-ATOU4E4O-DtIUxSAn.js → diagram-ATOU4E4O-Cgp2M2t6.js} +8 -8
- package/dist/{diagram-CDSNMT55-DOjN3BR2.js → diagram-CDSNMT55-Cn6ZdED_.js} +10 -10
- package/dist/{diagram-MLGK6HIB-Dx2UboD6.js → diagram-MLGK6HIB-BRXHWpn7.js} +8 -8
- package/dist/{diagram-MPIPVDR6-DnPL3RV0.js → diagram-MPIPVDR6-bi_zEJWx.js} +8 -8
- package/dist/{dist-D9zvfe2i.js → dist-Dt_YNX2O.js} +2 -2
- package/dist/dnd.js +1 -1
- package/dist/{ebnfDiagram-ZINNZB2B-BNbxCL0b.js → ebnfDiagram-ZINNZB2B-C5aSFX4G.js} +8 -8
- package/dist/{elk-276RUBZZ-Dk9afnNr.js → elk-276RUBZZ-BJJUfdzz.js} +14 -14
- package/dist/{erDiagram-OPXOYQCR-CbcJosNF.js → erDiagram-OPXOYQCR-BV3UGLoQ.js} +17 -17
- package/dist/{es-BuwtGDrj.js → es-DHDGcYW_.js} +8 -8
- package/dist/eventmodeling-NTZA5JFV-38h1xeNf.js +3 -0
- package/dist/flowDiagram-KWPJA3E3-B3AfwLQk.js +17 -0
- package/dist/{ganttDiagram-FUAMR5RP-64EZDDmC.js → ganttDiagram-FUAMR5RP-Vt6mFjaq.js} +28 -28
- package/dist/{get-Bo6bWpt-.js → get-CTzJAwfc.js} +47 -47
- package/dist/gitGraph-4MIJSDKK-C-5NH3Jx.js +3 -0
- package/dist/{gitGraphDiagram-X574FWY7-DmMMrp5A.js → gitGraphDiagram-X574FWY7-CE4Fp_CC.js} +8 -8
- package/dist/{graphlib-rFZlNaRl.js → graphlib-DQVPat8q.js} +42 -42
- package/dist/i18n.js +3 -3
- package/dist/{icon-button-BLvgnEFO.js → icon-button-DnjboAtZ.js} +2 -2
- package/dist/{image-cropper-canvas-BBPB5AKG.js → image-cropper-canvas-DZGLMjV6.js} +1 -1
- package/dist/info-A6RAGUB7-DTwpNebQ.js +3 -0
- package/dist/{infoDiagram-VRGFBTTK-XlBUAu0t.js → infoDiagram-VRGFBTTK-Ct4AP_ux.js} +6 -6
- package/dist/{init-MwSGRDIl.js → init-O6p85zx5.js} +1 -1
- package/dist/{isArrayLikeObject-BEv42rW5.js → isArrayLikeObject-Bs4bzQBR.js} +12 -12
- package/dist/{isEmpty-B1knfyUj.js → isEmpty-Cx_InbyF.js} +5 -5
- package/dist/{ishikawaDiagram-OU5B5YK6-C9cMWMPO.js → ishikawaDiagram-OU5B5YK6-Dw6IQYtd.js} +7 -7
- package/dist/{journeyDiagram-ZHPQQLJL-DXdfP9BW.js → journeyDiagram-ZHPQQLJL-BGCDYlgK.js} +7 -7
- package/dist/{kanban-definition-PNTS6WVX-DhOBy3A0.js → kanban-definition-PNTS6WVX-BkzhtlFU.js} +14 -14
- package/dist/{katex-BMQ6LGsM.js → katex-BLTzjTha.js} +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/index.d.ts +9 -9
- package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-page-list.vue.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-page.vue.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-reader-body.vue.d.ts +2 -2
- package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-sidebar.vue.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-thumbnail-sidebar.vue.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/pdf-text-layer.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/types.d.ts +3 -3
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-document-search.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-document.d.ts +2 -2
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-file-actions.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-page-area.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-reader.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-search-hits.d.ts +1 -2
- package/dist/lib/composables/use-formatters.d.ts +1 -1
- package/dist/lib/lib/print-format.utils.d.ts +7 -57
- package/dist/lib/pdf/index.d.ts +7 -7
- package/dist/lib/pdf/output.d.ts +2 -2
- package/dist/lib/pdf/pdf-download-action.d.ts +1 -1
- package/dist/lib/pdf/renderer.d.ts +2 -2
- package/dist/lib/pdf/renderer.lazy.d.ts +1 -1
- package/dist/lib/pdf/use-pdf.d.ts +1 -1
- package/dist/lib/vite/index.d.ts +5 -64
- package/dist/lib.js +15 -16
- package/dist/{line-UP6dkL36.js → line-CAYWvrRN.js} +4 -4
- package/dist/{linear-bD_QoED_.js → linear-CobEklb6.js} +23 -23
- package/dist/main.js +15 -18
- package/dist/map.js +5 -5
- package/dist/{merge-Cdqy5M_E.js → merge-BzRhCAF6.js} +13 -13
- package/dist/{mermaid-parser.core-Cz-MfB4Z.js → mermaid-parser.core-BXD_TD1T.js} +32 -32
- package/dist/{mermaid.core-BJPK8qYI.js → mermaid.core-B2ydTQ4X.js} +59 -59
- package/dist/{mindmap-definition-NLK3R4M7-Dqo7INQ9.js → mindmap-definition-NLK3R4M7-DCb99I7s.js} +18 -18
- package/dist/{number.utils-B19BYzc_.js → number.utils-Cy1z6qI7.js} +47 -47
- package/dist/{ordinal-D_ZgubzR.js → ordinal-BCmOO3Sy.js} +3 -3
- package/dist/packet-AYTQ26CC-Cc2sGaDY.js +3 -0
- package/dist/{path-DGNPZRdx.js → path-3-p5y-N7.js} +3 -3
- package/dist/{pdf-D_G-uiri.js → pdf-MkmivNXn.js} +1 -1
- package/dist/{pdf-outline-sidebar-BVRKziX3.js → pdf-outline-sidebar-D45RuliO.js} +3 -3
- package/dist/pdf-page-QUKMeod_.js +255 -0
- package/dist/{pdf-page-list-Cy6S2VCO.js → pdf-page-list-DzfNykQj.js} +2 -2
- package/dist/pdf-reader-Bmj2kN0E.js +603 -0
- package/dist/{pdf-sidebar-DoGyXFtw.js → pdf-sidebar-CV_Hy9vw.js} +4 -4
- package/dist/{pdf-thumbnail-sidebar-DmayzCN2.js → pdf-thumbnail-sidebar-Cgk8Y79g.js} +4 -4
- package/dist/{pdf-toolbar-CZqa7bbp.js → pdf-toolbar-Cj_fCmo3.js} +6 -6
- package/dist/pdf.js +72 -363
- package/dist/{pdf.worker.min-DRpqlnXj.js → pdf.worker.min-ByGJNiUH.js} +1 -1
- package/dist/{pegDiagram-GJSIUBJH-gvsGke9W.js → pegDiagram-GJSIUBJH-C27MdQV_.js} +8 -8
- package/dist/pie-WAS4IAKB-Qm7ZL20Y.js +3 -0
- package/dist/{pieDiagram-5QR66LMP-DLBcErnI.js → pieDiagram-5QR66LMP-B_7CzTL0.js} +15 -15
- package/dist/{client-only.utils-KvNbU5SA.js → print-format.utils-DwJfU1tK.js} +40 -39
- package/dist/{quadrantDiagram-O4NWA36T-Bn3CmGxM.js → quadrantDiagram-O4NWA36T-D84Ta5MW.js} +5 -5
- package/dist/radar-RG4KPBEZ-TQ0zaqCR.js +3 -0
- package/dist/railroad-74A4TZTK-bk-BYNub.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-Bdw25bd-.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-DiFjNUyt.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-xf3JLr_Y.js +3 -0
- package/dist/{railroadDiagram-XR7U4H2S-DLeBxWbV.js → railroadDiagram-XR7U4H2S-Cw5CuVpF.js} +8 -8
- package/dist/renderer.lazy-DCZLnjCM.js +10 -0
- package/dist/{requirementDiagram-PLB6GJNP-Kk5ubF7h.js → requirementDiagram-PLB6GJNP-DnkvMOW6.js} +16 -16
- package/dist/{rough.esm-rcMoXTJj.js → rough.esm-Cvc79rxE.js} +1 -1
- package/dist/{sankeyDiagram-IPEJSGJF-a4rFl5rR.js → sankeyDiagram-IPEJSGJF-jmnYqtty.js} +19 -19
- package/dist/{sequenceDiagram-PO4LG4MO-CjUigcL2.js → sequenceDiagram-PO4LG4MO-KN-jz2e0.js} +9 -9
- package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-C_032szM.js} +2 -2
- package/dist/{sortable-provider-DWSOOfI1.js → sortable-provider-CxI3cMbb.js} +3 -3
- package/dist/{src-CNRY2AUH.js → src-Pe71xVTz.js} +87 -87
- package/dist/{stateDiagram-v2-GCMORJYK-CrmN5l-3.js → stateDiagram-v2-GCMORJYK-BCh7NZQn.js} +17 -17
- package/dist/{stx-player-3Z0wuORy.js → stx-player-C3g6Pcxu.js} +3 -3
- package/dist/{swimlanes-2SLR337P-BkQTH51J.js → swimlanes-2SLR337P-BKV0Xke-.js} +14 -14
- package/dist/swimlanesDiagram-TC7HE7FX-D4-k5-iq.js +28 -0
- package/dist/{timeline-definition-EJHVYXUP-C0aHlt9K.js → timeline-definition-EJHVYXUP-BSBcDEzP.js} +8 -8
- package/dist/{intl-messageformat-C5e1ivyL.js → translator-BJPRdlc8.js} +171 -137
- package/dist/treeView-Q6P3EWNA-Dyk8HSag.js +3 -0
- package/dist/treemap-WGGIJYW6-CHrhBv7m.js +3 -0
- package/dist/{use-heading-spy-ByCrZQBk.js → use-heading-spy-xe2FFmGU.js} +2 -2
- package/dist/{use-material-translation-ClPGTJaN.js → use-material-translation-gr5V24w5.js} +1 -1
- package/dist/{usecaseDiagram-POWQR4AR-B1FgJuU5.js → usecaseDiagram-POWQR4AR-Bi5we59l.js} +403 -403
- package/dist/{utils-Cy-ByIEo.js → utils-CykWQ0iJ.js} +2 -2
- package/dist/{vennDiagram-UO4OBE2U-B22Jhju8.js → vennDiagram-UO4OBE2U-DC4GDZLl.js} +8 -8
- package/dist/vite.js +1 -17
- package/dist/wardley-WFR3VGLG-DnLHjx6k.js +3 -0
- package/dist/{wardleyDiagram-VNRHLVJA-Dw4YgRiQ.js → wardleyDiagram-VNRHLVJA-CZHdSrpN.js} +8 -8
- package/dist/{xychartDiagram-PMCCYNJV-DtuDs9I7.js → xychartDiagram-PMCCYNJV-CYfbQA4q.js} +14 -14
- package/docs/getting-started.md +20 -0
- package/docs/guides/pdf.md +5 -1
- package/docs/guides/ssr.md +7 -1
- package/docs/troubleshooting.md +30 -1
- package/lib/vite/index.ts +5 -125
- package/package.json +7 -10
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +0 -3
- package/dist/channel-BA1GJyZ7.js +0 -5
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +0 -3
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +0 -3
- package/dist/flowDiagram-KWPJA3E3-Da1NFRX5.js +0 -17
- package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +0 -3
- package/dist/info-A6RAGUB7-BvtuPd9C.js +0 -3
- package/dist/lib/components/ui/fields/currency-field/currency-digits.d.ts +0 -7
- package/dist/lib/components/ui/forms/field-blur-layers.d.ts +0 -34
- package/dist/lib/components/ui/media/pdf-viewer/pdf-document-search.d.ts +0 -44
- package/dist/lib/components/ui/media/pdf-viewer/pdf-escape.d.ts +0 -6
- package/dist/lib/components/ui/media/pdf-viewer/pdf-page-geometry.d.ts +0 -57
- package/dist/lib/components/ui/media/pdf-viewer/pdf-page-sizes.d.ts +0 -37
- package/dist/lib/components/ui/media/pdf-viewer/pdf-scroll-spy.d.ts +0 -42
- package/dist/lib/components/ui/media/pdf-viewer/pdf-text-search.d.ts +0 -25
- package/dist/lib/lib/pdf-download.d.ts +0 -35
- package/dist/lib/lib/pdf-file-name.d.ts +0 -9
- package/dist/lib/lib/pdf-source.d.ts +0 -57
- package/dist/lib/lib/print-fraction-digits.d.ts +0 -12
- package/dist/lib/lib/print-table.utils.d.ts +0 -60
- package/dist/lib/lib/print-value.utils.d.ts +0 -40
- package/dist/lib/pdf-core/file-loader.d.ts +0 -18
- package/dist/lib/pdf-core/http.d.ts +0 -22
- package/dist/lib/pdf-core/index.d.ts +0 -11
- package/dist/lib/pdf-core/model/builders.d.ts +0 -54
- package/dist/lib/pdf-core/model/data-table.d.ts +0 -24
- package/dist/lib/pdf-core/model/index.d.ts +0 -4
- package/dist/lib/pdf-core/model/nodes.d.ts +0 -133
- package/dist/lib/pdf-core/model/theme.d.ts +0 -16
- package/dist/lib/pdf-core/model/types.d.ts +0 -108
- package/dist/lib/pdf-core/render/context.d.ts +0 -50
- package/dist/lib/pdf-core/render/document.d.ts +0 -21
- package/dist/lib/pdf-core/render/index.d.ts +0 -5
- package/dist/lib/pdf-core/render/nodes/blocks.d.ts +0 -19
- package/dist/lib/pdf-core/render/nodes/header.d.ts +0 -14
- package/dist/lib/pdf-core/render/nodes/layout.d.ts +0 -44
- package/dist/lib/pdf-core/render/nodes/table.d.ts +0 -14
- package/dist/lib/pdf-core/render/page.d.ts +0 -30
- package/dist/lib/pdf-core/render/render-node.d.ts +0 -10
- package/dist/lib/pdf-core/render/styles.d.ts +0 -303
- package/dist/packet-AYTQ26CC-CshIswP8.js +0 -3
- package/dist/pdf-download-WnIo-5y5.js +0 -94
- package/dist/pdf-page-CIJOEX08.js +0 -317
- package/dist/pdf-page-geometry-DXA9Duo_.js +0 -61
- package/dist/pdf-reader-DDLWi_kg.js +0 -745
- package/dist/pdf-source-CLguNN1r.js +0 -61
- package/dist/pie-WAS4IAKB-CYs22y4X.js +0 -3
- package/dist/print-format.utils-Cvgc3Mov.js +0 -56
- package/dist/radar-RG4KPBEZ-BOJKjbGv.js +0 -3
- package/dist/railroad-74A4TZTK-Dt1BmUkI.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +0 -3
- package/dist/renderer.lazy-CSZ6JIRd.js +0 -686
- package/dist/swimlanesDiagram-TC7HE7FX-BMfUzAWu.js +0 -28
- package/dist/translator-000Eza6E.js +0 -39
- package/dist/treeView-Q6P3EWNA-BrJylG9N.js +0 -3
- package/dist/treemap-WGGIJYW6-DpIZuqbj.js +0 -3
- package/dist/wardley-WFR3VGLG-CbwdAAbH.js +0 -3
|
@@ -1,745 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-Cy-ByIEo.js";
|
|
2
|
-
import { Sn as t } from "./components-Bwxq-DLd.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-ClPGTJaN.js";
|
|
4
|
-
import { t as r } from "./Button-pivhf0dI.js";
|
|
5
|
-
import { o as i } from "./HoverCardTrigger-yygLSc07.js";
|
|
6
|
-
import { i as a, o } from "./pdf-source-CLguNN1r.js";
|
|
7
|
-
import { n as s, r as c } from "./pdf-download-WnIo-5y5.js";
|
|
8
|
-
import { a as l, i as u, n as d, r as f } from "./pdf-page-CIJOEX08.js";
|
|
9
|
-
import { t as p } from "./pdf-page-list-Cy6S2VCO.js";
|
|
10
|
-
import { t as m } from "./pdf-sidebar-DoGyXFtw.js";
|
|
11
|
-
import { t as ee } from "./pdf-toolbar-CZqa7bbp.js";
|
|
12
|
-
import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, nextTick as C, normalizeClass as w, onBeforeUnmount as T, onMounted as E, openBlock as D, reactive as O, ref as k, shallowRef as A, toDisplayString as j, toRef as M, unref as N, useId as P, watch as F, withCtx as te } from "vue";
|
|
13
|
-
import { AlertCircle as ne, FileX2 as re, KeyRound as ie, Loader2 as ae } from "@lucide/vue";
|
|
14
|
-
//#region lib/components/ui/media/pdf-viewer/pdf-reader-keyboard.ts
|
|
15
|
-
function oe(e, t) {
|
|
16
|
-
let n = e.target;
|
|
17
|
-
if (n?.closest?.("[role=\"menu\"]")) return;
|
|
18
|
-
let r = n?.tagName;
|
|
19
|
-
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "f") {
|
|
20
|
-
e.preventDefault(), t.openSearch?.();
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (e.key === "F3") {
|
|
24
|
-
e.preventDefault(), e.shiftKey ? t.prevSearch?.() : t.nextSearch?.();
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (e.key === "Escape") {
|
|
28
|
-
t.closeSearch?.() && (e.preventDefault(), e.stopPropagation());
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
r === "INPUT" || r === "TEXTAREA" || (e.key === "ArrowRight" || e.key === "j" ? (e.preventDefault(), t.nextPage()) : e.key === "ArrowLeft" || e.key === "k" ? (e.preventDefault(), t.prevPage()) : e.key === "+" || e.key === "=" ? (e.preventDefault(), t.zoomIn()) : e.key === "-" ? (e.preventDefault(), t.zoomOut()) : e.key.toLowerCase() === "n" ? (e.preventDefault(), t.toggleNightMode()) : e.key === "Home" ? (e.preventDefault(), t.goToFirst?.()) : e.key === "End" ? (e.preventDefault(), t.goToLast?.()) : e.key === "PageDown" ? (e.preventDefault(), t.nextPage()) : e.key === "PageUp" ? (e.preventDefault(), t.prevPage()) : e.key === "/" && (e.preventDefault(), t.openSearch?.()));
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region lib/components/ui/media/pdf-viewer/partials/pdf-empty-state.vue?vue&type=script&setup=true&lang.ts
|
|
35
|
-
var I = { class: "text-sm font-medium" }, L = /* @__PURE__ */ S({
|
|
36
|
-
__name: "pdf-empty-state",
|
|
37
|
-
props: { class: {} },
|
|
38
|
-
setup(t) {
|
|
39
|
-
let { t: r } = n();
|
|
40
|
-
return (t, n) => (D(), v("div", { class: w(N(e)("flex min-h-64 h-full flex-col items-center justify-center gap-3 text-muted-foreground", t.$props.class)) }, [x(N(re), { class: "size-10 opacity-40" }), y("p", I, j(N(r)("material.pdf-reader.empty", "No document selected")), 1)], 2));
|
|
41
|
-
}
|
|
42
|
-
}), R = "noopener noreferrer nofollow";
|
|
43
|
-
async function z(e, t) {
|
|
44
|
-
try {
|
|
45
|
-
let n = typeof t == "string" ? await e.getDestination(t) : t;
|
|
46
|
-
if (!Array.isArray(n)) return null;
|
|
47
|
-
let [r] = n, i = typeof r == "number" ? r : r && typeof r == "object" ? await e.getPageIndex(r) : -1;
|
|
48
|
-
return i >= 0 && i < e.numPages ? i + 1 : null;
|
|
49
|
-
} catch {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function B({ pdf: e, goToPage: t, externalLinkTarget: n }) {
|
|
54
|
-
let r = (n) => {
|
|
55
|
-
let r = Number(n);
|
|
56
|
-
Number.isInteger(r) && r >= 1 && r <= e.numPages && t(r);
|
|
57
|
-
};
|
|
58
|
-
return {
|
|
59
|
-
externalLinkEnabled: !0,
|
|
60
|
-
isInPresentationMode: !1,
|
|
61
|
-
eventBus: null,
|
|
62
|
-
get pagesCount() {
|
|
63
|
-
return e.numPages;
|
|
64
|
-
},
|
|
65
|
-
page: 0,
|
|
66
|
-
rotation: 0,
|
|
67
|
-
addLinkAttributes(e, t, r = !1) {
|
|
68
|
-
e.href = t, e.rel = R, e.target = n ?? (r ? "_blank" : "");
|
|
69
|
-
},
|
|
70
|
-
getDestinationHash: () => "#",
|
|
71
|
-
getAnchorUrl: () => "#",
|
|
72
|
-
async goToDestination(t) {
|
|
73
|
-
let n = await z(e, t);
|
|
74
|
-
n !== null && r(n);
|
|
75
|
-
},
|
|
76
|
-
goToPage: r,
|
|
77
|
-
goToXY: (e) => r(e),
|
|
78
|
-
navigateTo(e) {
|
|
79
|
-
this.goToDestination(e);
|
|
80
|
-
},
|
|
81
|
-
executeNamedAction() {},
|
|
82
|
-
executeSetOCGState() {},
|
|
83
|
-
setHash() {},
|
|
84
|
-
cachePageRef() {},
|
|
85
|
-
isPageVisible: () => !0,
|
|
86
|
-
isPageCached: () => !0
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region lib/components/ui/media/pdf-viewer/use-pdf-document.ts
|
|
91
|
-
function V(e, t) {
|
|
92
|
-
let n = A(null), r = A(null), i = 0, s = null;
|
|
93
|
-
function c() {
|
|
94
|
-
s?.destroy(), s = null, r.value = null, n.value?.destroy(), n.value = null;
|
|
95
|
-
}
|
|
96
|
-
async function d() {
|
|
97
|
-
let a = ++i;
|
|
98
|
-
c();
|
|
99
|
-
try {
|
|
100
|
-
let c = await l();
|
|
101
|
-
if (a !== i) return;
|
|
102
|
-
let d = await o(e.value);
|
|
103
|
-
if (a !== i) return;
|
|
104
|
-
let f = c.getDocument(d);
|
|
105
|
-
s = f, f.onPassword = (e, n) => {
|
|
106
|
-
if (a !== i) {
|
|
107
|
-
f.destroy();
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
r.value = (t) => {
|
|
111
|
-
r.value = null, e(t);
|
|
112
|
-
}, t.onPasswordProtected(n === c.PasswordResponses.INCORRECT_PASSWORD);
|
|
113
|
-
};
|
|
114
|
-
let p = await f.promise;
|
|
115
|
-
if (s === f && (s = null), a !== i) {
|
|
116
|
-
p.destroy();
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
n.value = p, t.onLoadSuccess(p), t.setOutline(u(await p.getOutline()));
|
|
120
|
-
} catch (e) {
|
|
121
|
-
if (a !== i) return;
|
|
122
|
-
t.onLoadError(e instanceof Error ? e : Error(String(e)));
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return F(() => a(e.value), () => void d(), { immediate: !0 }), T(() => {
|
|
126
|
-
i += 1, c();
|
|
127
|
-
}), {
|
|
128
|
-
pdf: n,
|
|
129
|
-
resolvePassword: r
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region lib/components/ui/media/pdf-viewer/partials/pdf-error-state.vue?vue&type=script&setup=true&lang.ts
|
|
134
|
-
var H = { class: "absolute inset-0 flex flex-col items-center justify-center gap-3 text-muted-foreground" }, U = { class: "text-sm font-medium" }, W = { class: "max-w-xs text-center text-xs opacity-60" }, G = /* @__PURE__ */ S({
|
|
135
|
-
__name: "pdf-error-state",
|
|
136
|
-
props: { message: {} },
|
|
137
|
-
setup(e) {
|
|
138
|
-
let { t } = n();
|
|
139
|
-
return (n, r) => (D(), v("div", H, [
|
|
140
|
-
x(N(ne), { class: "size-10 text-error opacity-70" }),
|
|
141
|
-
y("p", U, j(N(t)("material.pdf-reader.error", "Failed to load document")), 1),
|
|
142
|
-
y("p", W, j(e.message), 1)
|
|
143
|
-
]));
|
|
144
|
-
}
|
|
145
|
-
}), K = { class: "absolute inset-0 z-10 flex flex-col items-center justify-center gap-3 bg-background/80 backdrop-blur-sm" }, q = { class: "text-sm text-muted-foreground" }, se = /* @__PURE__ */ S({
|
|
146
|
-
__name: "pdf-loading-overlay",
|
|
147
|
-
setup(e) {
|
|
148
|
-
let { t } = n();
|
|
149
|
-
return (e, n) => (D(), v("div", K, [x(N(ae), { class: "size-8 animate-spin text-primary" }), y("p", q, j(N(t)("material.pdf-reader.loading", "Loading document…")), 1)]));
|
|
150
|
-
}
|
|
151
|
-
}), ce = { class: "absolute inset-0 flex flex-col items-center justify-center gap-4" }, le = { class: "text-sm font-semibold" }, ue = ["id"], de = /* @__PURE__ */ S({
|
|
152
|
-
__name: "pdf-password-form",
|
|
153
|
-
props: {
|
|
154
|
-
modelValue: {},
|
|
155
|
-
incorrect: { type: Boolean }
|
|
156
|
-
},
|
|
157
|
-
emits: ["update:modelValue", "submit"],
|
|
158
|
-
setup(e, { emit: t }) {
|
|
159
|
-
let a = e, o = t, { t: s } = n(), c = P(), l = k(null);
|
|
160
|
-
F(() => a.incorrect, async (e) => {
|
|
161
|
-
e && (await C(), l.value?.querySelector("input")?.focus());
|
|
162
|
-
});
|
|
163
|
-
function u(e) {
|
|
164
|
-
e.key === "Enter" && o("submit");
|
|
165
|
-
}
|
|
166
|
-
return (t, n) => (D(), v("div", ce, [
|
|
167
|
-
x(N(ie), { class: "size-10 text-primary opacity-70" }),
|
|
168
|
-
y("p", le, j(N(s)("material.pdf-reader.password", "Password protected")), 1),
|
|
169
|
-
y("div", {
|
|
170
|
-
ref_key: "fields",
|
|
171
|
-
ref: l,
|
|
172
|
-
class: "flex gap-2"
|
|
173
|
-
}, [x(i, {
|
|
174
|
-
type: "password",
|
|
175
|
-
placeholder: N(s)("material.pdf-reader.password-placeholder", "Enter password"),
|
|
176
|
-
class: "h-9 w-48",
|
|
177
|
-
"aria-label": N(s)("material.pdf-reader.password-label", "Password"),
|
|
178
|
-
"aria-invalid": e.incorrect || void 0,
|
|
179
|
-
"aria-describedby": e.incorrect ? N(c) : void 0,
|
|
180
|
-
"model-value": e.modelValue,
|
|
181
|
-
autofocus: "",
|
|
182
|
-
"onUpdate:modelValue": n[0] ||= (e) => o("update:modelValue", String(e)),
|
|
183
|
-
onKeydown: u
|
|
184
|
-
}, null, 8, [
|
|
185
|
-
"placeholder",
|
|
186
|
-
"aria-label",
|
|
187
|
-
"aria-invalid",
|
|
188
|
-
"aria-describedby",
|
|
189
|
-
"model-value"
|
|
190
|
-
]), x(r, {
|
|
191
|
-
variant: "filled",
|
|
192
|
-
color: "primary",
|
|
193
|
-
onClick: n[1] ||= (e) => o("submit")
|
|
194
|
-
}, {
|
|
195
|
-
default: te(() => [b(j(N(s)("material.pdf-reader.unlock", "Unlock")), 1)]),
|
|
196
|
-
_: 1
|
|
197
|
-
})], 512),
|
|
198
|
-
e.incorrect ? (D(), v("p", {
|
|
199
|
-
key: 0,
|
|
200
|
-
id: N(c),
|
|
201
|
-
role: "alert",
|
|
202
|
-
class: "text-sm text-error"
|
|
203
|
-
}, j(N(s)("material.pdf-reader.password-incorrect", "Incorrect password. Try again.")), 9, ue)) : _("", !0)
|
|
204
|
-
]));
|
|
205
|
-
}
|
|
206
|
-
}), fe = { class: "flex min-h-0 flex-1" }, pe = /* @__PURE__ */ S({
|
|
207
|
-
__name: "pdf-reader-body",
|
|
208
|
-
props: {
|
|
209
|
-
file: {},
|
|
210
|
-
state: {},
|
|
211
|
-
effectiveScale: {},
|
|
212
|
-
pageRefs: {},
|
|
213
|
-
containerRef: {},
|
|
214
|
-
highlight: {},
|
|
215
|
-
externalLinkTarget: {}
|
|
216
|
-
},
|
|
217
|
-
emits: [
|
|
218
|
-
"loadSuccess",
|
|
219
|
-
"loadError",
|
|
220
|
-
"passwordProtected",
|
|
221
|
-
"passwordSubmit",
|
|
222
|
-
"setOutline",
|
|
223
|
-
"set-sidebar-tab",
|
|
224
|
-
"goToPage",
|
|
225
|
-
"documentChange"
|
|
226
|
-
],
|
|
227
|
-
setup(e, { emit: t }) {
|
|
228
|
-
let n = e, r = t, i = k(""), { pdf: a, resolvePassword: o } = V(M(n, "file"), {
|
|
229
|
-
onLoadSuccess: (e) => r("loadSuccess", e),
|
|
230
|
-
onLoadError: (e) => r("loadError", e),
|
|
231
|
-
onPasswordProtected: (e) => r("passwordProtected", e),
|
|
232
|
-
setOutline: (e) => r("setOutline", e)
|
|
233
|
-
});
|
|
234
|
-
F(a, (e) => r("documentChange", e)), T(() => r("documentChange", null));
|
|
235
|
-
function s(e) {
|
|
236
|
-
n.containerRef.value = e instanceof HTMLDivElement ? e : null;
|
|
237
|
-
}
|
|
238
|
-
function c() {
|
|
239
|
-
r("passwordSubmit"), o.value?.(i.value), i.value = "";
|
|
240
|
-
}
|
|
241
|
-
async function l(e) {
|
|
242
|
-
let t = a.value;
|
|
243
|
-
if (!t || e.dest == null) return;
|
|
244
|
-
let n = await z(t, e.dest);
|
|
245
|
-
n !== null && r("goToPage", n);
|
|
246
|
-
}
|
|
247
|
-
let u = h(() => a.value ? B({
|
|
248
|
-
pdf: a.value,
|
|
249
|
-
goToPage: (e) => r("goToPage", e),
|
|
250
|
-
externalLinkTarget: n.externalLinkTarget
|
|
251
|
-
}) : null);
|
|
252
|
-
return (t, n) => (D(), v("div", fe, [e.state.sidebarOpen && e.state.numPages > 0 && N(a) ? (D(), g(m, {
|
|
253
|
-
key: 0,
|
|
254
|
-
pdf: N(a),
|
|
255
|
-
tab: e.state.sidebarTab,
|
|
256
|
-
"num-pages": e.state.numPages,
|
|
257
|
-
"current-page": e.state.currentPage,
|
|
258
|
-
rotation: e.state.rotation,
|
|
259
|
-
outline: e.state.outline,
|
|
260
|
-
"page-sizes": e.state.pageSizes,
|
|
261
|
-
onTabChange: n[0] ||= (e) => r("set-sidebar-tab", e),
|
|
262
|
-
onPageSelect: n[1] ||= (e) => r("goToPage", e),
|
|
263
|
-
onOutlineSelect: l
|
|
264
|
-
}, null, 8, [
|
|
265
|
-
"pdf",
|
|
266
|
-
"tab",
|
|
267
|
-
"num-pages",
|
|
268
|
-
"current-page",
|
|
269
|
-
"rotation",
|
|
270
|
-
"outline",
|
|
271
|
-
"page-sizes"
|
|
272
|
-
])) : _("", !0), y("div", {
|
|
273
|
-
ref: s,
|
|
274
|
-
class: "relative min-w-0 flex-1 overflow-hidden"
|
|
275
|
-
}, [
|
|
276
|
-
e.state.isLoading ? (D(), g(se, { key: 0 })) : _("", !0),
|
|
277
|
-
e.state.error && !e.state.isPasswordProtected ? (D(), g(G, {
|
|
278
|
-
key: 1,
|
|
279
|
-
message: e.state.error
|
|
280
|
-
}, null, 8, ["message"])) : _("", !0),
|
|
281
|
-
e.state.isPasswordProtected ? (D(), g(de, {
|
|
282
|
-
key: 2,
|
|
283
|
-
modelValue: i.value,
|
|
284
|
-
"onUpdate:modelValue": n[2] ||= (e) => i.value = e,
|
|
285
|
-
incorrect: e.state.passwordError ?? !1,
|
|
286
|
-
onSubmit: c
|
|
287
|
-
}, null, 8, ["modelValue", "incorrect"])) : _("", !0),
|
|
288
|
-
N(a) && !e.state.error && !e.state.isPasswordProtected ? (D(), g(p, {
|
|
289
|
-
key: 3,
|
|
290
|
-
pdf: N(a),
|
|
291
|
-
"num-pages": e.state.numPages,
|
|
292
|
-
"current-page": e.state.currentPage,
|
|
293
|
-
scale: e.effectiveScale,
|
|
294
|
-
rotation: e.state.rotation,
|
|
295
|
-
"search-query": e.state.searchQuery,
|
|
296
|
-
"night-mode": e.state.nightMode,
|
|
297
|
-
"page-refs": e.pageRefs,
|
|
298
|
-
"page-sizes": e.state.pageSizes,
|
|
299
|
-
highlight: e.highlight,
|
|
300
|
-
"link-service": u.value
|
|
301
|
-
}, null, 8, [
|
|
302
|
-
"pdf",
|
|
303
|
-
"num-pages",
|
|
304
|
-
"current-page",
|
|
305
|
-
"scale",
|
|
306
|
-
"rotation",
|
|
307
|
-
"search-query",
|
|
308
|
-
"night-mode",
|
|
309
|
-
"page-refs",
|
|
310
|
-
"page-sizes",
|
|
311
|
-
"highlight",
|
|
312
|
-
"link-service"
|
|
313
|
-
])) : _("", !0)
|
|
314
|
-
], 512)]));
|
|
315
|
-
}
|
|
316
|
-
});
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region lib/components/ui/media/pdf-viewer/use-pdf-file-actions.ts
|
|
319
|
-
function me(e, t) {
|
|
320
|
-
let { t: r } = n(), i = () => t.value?.getData();
|
|
321
|
-
return {
|
|
322
|
-
download() {
|
|
323
|
-
e.onDownload ? e.onDownload() : e.file && s(e.file, {
|
|
324
|
-
fileName: e.fileName,
|
|
325
|
-
getData: i,
|
|
326
|
-
defaultName: r("material.pdf-reader.default-file-name", "document")
|
|
327
|
-
});
|
|
328
|
-
},
|
|
329
|
-
print() {
|
|
330
|
-
e.onPrint ? e.onPrint() : e.file && c(e.file, { getData: i });
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
//#endregion
|
|
335
|
-
//#region lib/components/ui/media/pdf-viewer/pdf-scroll-spy.ts
|
|
336
|
-
function he(e, t) {
|
|
337
|
-
let n = null, r = 0, i = null;
|
|
338
|
-
for (let [a, o] of t) {
|
|
339
|
-
let t = Math.min(o.bottom, e.bottom) - Math.max(o.top, e.top);
|
|
340
|
-
t <= 0 || ((i === null || a > i) && (i = a), (t > r || t === r && n !== null && a < n) && (n = a, r = t));
|
|
341
|
-
}
|
|
342
|
-
return e.atEnd && i !== null ? i : n;
|
|
343
|
-
}
|
|
344
|
-
function J(e, t, n = "smooth") {
|
|
345
|
-
let r = e.closest("[data-slot=\"scroll-area-viewport\"]");
|
|
346
|
-
if (!r) return;
|
|
347
|
-
let i = e.getBoundingClientRect(), a = r.getBoundingClientRect(), o = r.scrollTop + i.top - a.top;
|
|
348
|
-
t === "center" && (o -= (a.height - i.height) / 2), r.scrollTo({
|
|
349
|
-
top: Math.max(0, o),
|
|
350
|
-
behavior: n
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
var Y = [
|
|
354
|
-
"wheel",
|
|
355
|
-
"touchstart",
|
|
356
|
-
"pointerdown",
|
|
357
|
-
"keydown"
|
|
358
|
-
];
|
|
359
|
-
function ge(e, t) {
|
|
360
|
-
let n = e()?.closest("[data-slot=\"scroll-area-viewport\"]"), r = n?.firstElementChild;
|
|
361
|
-
if (!n || !r || typeof ResizeObserver > "u") return () => {};
|
|
362
|
-
let i = n.closest("[data-slot=\"scroll-area\"]") ?? n, a = new ResizeObserver(() => {
|
|
363
|
-
let n = e();
|
|
364
|
-
n && (t(), J(n, "start", "auto"));
|
|
365
|
-
});
|
|
366
|
-
a.observe(r);
|
|
367
|
-
let o = () => {
|
|
368
|
-
a.disconnect();
|
|
369
|
-
for (let e of Y) i.removeEventListener(e, o, !0);
|
|
370
|
-
};
|
|
371
|
-
for (let e of Y) i.addEventListener(e, o, {
|
|
372
|
-
capture: !0,
|
|
373
|
-
passive: !0
|
|
374
|
-
});
|
|
375
|
-
return o;
|
|
376
|
-
}
|
|
377
|
-
function _e(e, t, n, r = 150) {
|
|
378
|
-
let i = 0, a = !1, o, s = null, c = () => {
|
|
379
|
-
clearTimeout(o), o = setTimeout(() => {
|
|
380
|
-
a = !1;
|
|
381
|
-
}, r);
|
|
382
|
-
}, l = () => {
|
|
383
|
-
if (i = 0, !s) return;
|
|
384
|
-
let e = s.getBoundingClientRect(), r = s.scrollTop + s.clientHeight >= s.scrollHeight - 2, a = Array.from(t(), ([e, t]) => {
|
|
385
|
-
let { top: n, bottom: r } = t.getBoundingClientRect();
|
|
386
|
-
return [e, {
|
|
387
|
-
top: n,
|
|
388
|
-
bottom: r
|
|
389
|
-
}];
|
|
390
|
-
}), o = he({
|
|
391
|
-
top: e.top,
|
|
392
|
-
bottom: e.bottom,
|
|
393
|
-
atEnd: r
|
|
394
|
-
}, a);
|
|
395
|
-
o !== null && n(o);
|
|
396
|
-
}, u = (t) => {
|
|
397
|
-
let n = t.target;
|
|
398
|
-
if (!(!(n instanceof HTMLElement) || !e()?.contains(n))) {
|
|
399
|
-
if (a) {
|
|
400
|
-
c();
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
s = n, i ||= requestAnimationFrame(l);
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
return document.addEventListener("scroll", u, {
|
|
407
|
-
capture: !0,
|
|
408
|
-
passive: !0
|
|
409
|
-
}), {
|
|
410
|
-
hold() {
|
|
411
|
-
a = !0, cancelAnimationFrame(i), i = 0, c();
|
|
412
|
-
},
|
|
413
|
-
stop() {
|
|
414
|
-
document.removeEventListener("scroll", u, { capture: !0 }), cancelAnimationFrame(i), clearTimeout(o);
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
function ve(e, t, n = () => {}, r = 5e3) {
|
|
419
|
-
let i = Date.now() + r, a = 0, o = () => {
|
|
420
|
-
let r = e()?.querySelector(`mark[data-hit="${t}"]`);
|
|
421
|
-
if (r) {
|
|
422
|
-
n(), J(r, "center");
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
Date.now() < i && (a = requestAnimationFrame(o));
|
|
426
|
-
};
|
|
427
|
-
return a = requestAnimationFrame(o), () => cancelAnimationFrame(a);
|
|
428
|
-
}
|
|
429
|
-
//#endregion
|
|
430
|
-
//#region lib/components/ui/media/pdf-viewer/use-pdf-scroll-spy.ts
|
|
431
|
-
var ye = 2e3;
|
|
432
|
-
function be(e) {
|
|
433
|
-
let t = k(!1), n = 0, r = null, i = () => {};
|
|
434
|
-
return F(e.numPages, (e) => {
|
|
435
|
-
e > 0 || (i(), t.value = !1, n = 0);
|
|
436
|
-
}), F(() => [
|
|
437
|
-
t.value,
|
|
438
|
-
e.numPages(),
|
|
439
|
-
e.sizesKnown()
|
|
440
|
-
], ([a, o, s], c, l) => {
|
|
441
|
-
if (a || o === 0) return;
|
|
442
|
-
let u = () => {
|
|
443
|
-
let a = e.currentPage(), o = e.pageRefs.get(a);
|
|
444
|
-
o && a > 1 && (J(o, "start", "auto"), i = ge(() => e.pageRefs.get(a), () => r?.hold())), n = a, t.value = !0;
|
|
445
|
-
};
|
|
446
|
-
if (s) {
|
|
447
|
-
u();
|
|
448
|
-
return;
|
|
449
|
-
}
|
|
450
|
-
let d = setTimeout(u, ye);
|
|
451
|
-
l(() => clearTimeout(d));
|
|
452
|
-
}, { flush: "post" }), F(t, (t, a, o) => {
|
|
453
|
-
if (!t) return;
|
|
454
|
-
let s = _e(() => e.containerRef.value, () => e.pageRefs, (t) => {
|
|
455
|
-
i(), n = t, e.goToPage(t);
|
|
456
|
-
});
|
|
457
|
-
r = s, n > 1 && s.hold(), o(() => {
|
|
458
|
-
s.stop(), r = null;
|
|
459
|
-
});
|
|
460
|
-
}), F(e.currentPage, (a) => {
|
|
461
|
-
if (!t.value || e.numPages() === 0 || a === n) return;
|
|
462
|
-
n = a, i(), r?.hold();
|
|
463
|
-
let o = e.pageRefs.get(a);
|
|
464
|
-
o && J(o, "start");
|
|
465
|
-
}), T(() => {
|
|
466
|
-
i(), r?.stop();
|
|
467
|
-
}), () => {
|
|
468
|
-
i(), r?.hold();
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
//#endregion
|
|
472
|
-
//#region lib/components/ui/media/pdf-viewer/pdf-document-search.ts
|
|
473
|
-
var X = /* @__PURE__ */ new WeakMap();
|
|
474
|
-
function xe(e, t) {
|
|
475
|
-
let n = X.get(e);
|
|
476
|
-
n || (n = /* @__PURE__ */ new Map(), X.set(e, n));
|
|
477
|
-
let r = n.get(t);
|
|
478
|
-
if (!r) {
|
|
479
|
-
let i = n;
|
|
480
|
-
r = e.getPage(t).then((e) => e.getTextContent()).then(({ items: e }) => f(e)), r.catch(() => i.delete(t)), n.set(t, r);
|
|
481
|
-
}
|
|
482
|
-
return r;
|
|
483
|
-
}
|
|
484
|
-
async function Se(e, t, n, r = () => !1, i = 25) {
|
|
485
|
-
let a = [];
|
|
486
|
-
for (let o = 1; o <= e.numPages; o += 1) {
|
|
487
|
-
let s = await xe(e, o);
|
|
488
|
-
if (r()) return;
|
|
489
|
-
a.push({
|
|
490
|
-
page: o,
|
|
491
|
-
text: s,
|
|
492
|
-
matches: d(s.text, t)
|
|
493
|
-
}), (o === 1 || a.length >= i || o === e.numPages) && (n(a), a = []);
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
function Z(e, t) {
|
|
497
|
-
let n = [...e.texts], r = [...e.matches];
|
|
498
|
-
for (let { page: e, text: i, matches: a } of t) n[e - 1] = i, r[e - 1] = a;
|
|
499
|
-
return {
|
|
500
|
-
texts: n,
|
|
501
|
-
matches: r
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
function Ce(e, t, n) {
|
|
505
|
-
return n <= 0 ? -1 : e < 0 ? t > 0 ? 0 : n - 1 : ((e + t) % n + n) % n;
|
|
506
|
-
}
|
|
507
|
-
function Q(e, t) {
|
|
508
|
-
let n = t;
|
|
509
|
-
for (let t = 0; t < e.length; t += 1) {
|
|
510
|
-
let r = e[t] ?? 0;
|
|
511
|
-
if (n < r) return {
|
|
512
|
-
page: t + 1,
|
|
513
|
-
hit: n
|
|
514
|
-
};
|
|
515
|
-
n -= r;
|
|
516
|
-
}
|
|
517
|
-
return null;
|
|
518
|
-
}
|
|
519
|
-
//#endregion
|
|
520
|
-
//#region lib/components/ui/media/pdf-viewer/use-pdf-document-search.ts
|
|
521
|
-
var $ = {
|
|
522
|
-
texts: [],
|
|
523
|
-
matches: []
|
|
524
|
-
};
|
|
525
|
-
function we(e, t, n = 150) {
|
|
526
|
-
let r = A($);
|
|
527
|
-
return F([e, t], ([e, t], i, a) => {
|
|
528
|
-
if (r.value = $, !e || !t.trim()) return;
|
|
529
|
-
let o = !1, s = setTimeout(() => {
|
|
530
|
-
Se(e, t, (e) => {
|
|
531
|
-
r.value = Z(r.value, e);
|
|
532
|
-
}, () => o).catch(() => {});
|
|
533
|
-
}, n);
|
|
534
|
-
a(() => {
|
|
535
|
-
o = !0, clearTimeout(s);
|
|
536
|
-
});
|
|
537
|
-
}, { immediate: !0 }), r;
|
|
538
|
-
}
|
|
539
|
-
//#endregion
|
|
540
|
-
//#region lib/components/ui/media/pdf-viewer/use-pdf-search-hits.ts
|
|
541
|
-
function Te(e) {
|
|
542
|
-
let t = we(e.pdf, e.query), n = k(-1);
|
|
543
|
-
F([e.pdf, e.query], () => {
|
|
544
|
-
n.value = -1;
|
|
545
|
-
});
|
|
546
|
-
let r = h(() => Array.from(t.value.matches, (e) => e?.length ?? 0)), i = h(() => r.value.reduce((e, t) => e + t, 0)), a = () => {};
|
|
547
|
-
T(() => a());
|
|
548
|
-
function o(t) {
|
|
549
|
-
let o = i.value, s = Ce(n.value, t, o);
|
|
550
|
-
if (s < 0) return {
|
|
551
|
-
index: 0,
|
|
552
|
-
count: o
|
|
553
|
-
};
|
|
554
|
-
n.value = s;
|
|
555
|
-
let c = Q(r.value, s);
|
|
556
|
-
return c && (e.goToPage(c.page), a(), a = ve(() => e.pageRefs.get(c.page), c.hit, e.holdScrollSpy)), {
|
|
557
|
-
index: s,
|
|
558
|
-
count: o
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
return {
|
|
562
|
-
hits: O({
|
|
563
|
-
hitIndex: n,
|
|
564
|
-
hitCount: i,
|
|
565
|
-
jump: o,
|
|
566
|
-
reset: () => {
|
|
567
|
-
n.value = -1;
|
|
568
|
-
}
|
|
569
|
-
}),
|
|
570
|
-
highlight: h(() => ({
|
|
571
|
-
texts: t.value.texts,
|
|
572
|
-
matches: t.value.matches,
|
|
573
|
-
current: n.value < 0 ? null : Q(r.value, n.value)
|
|
574
|
-
}))
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
//#endregion
|
|
578
|
-
//#region lib/components/ui/media/pdf-viewer/pdf-reader.vue?vue&type=script&setup=true&lang.ts
|
|
579
|
-
var Ee = ["aria-label"], De = /* @__PURE__ */ S({
|
|
580
|
-
name: "PdfReader",
|
|
581
|
-
__name: "pdf-reader",
|
|
582
|
-
props: {
|
|
583
|
-
file: {},
|
|
584
|
-
fileName: {},
|
|
585
|
-
initialPage: {},
|
|
586
|
-
initialScale: {},
|
|
587
|
-
defaultFitMode: {},
|
|
588
|
-
onPageChange: { type: Function },
|
|
589
|
-
onLoadSuccess: { type: Function },
|
|
590
|
-
onLoadError: { type: Function },
|
|
591
|
-
onDownload: { type: Function },
|
|
592
|
-
onPrint: { type: Function },
|
|
593
|
-
externalLinkTarget: {},
|
|
594
|
-
class: {}
|
|
595
|
-
},
|
|
596
|
-
emits: [
|
|
597
|
-
"pageChange",
|
|
598
|
-
"loadSuccess",
|
|
599
|
-
"loadError"
|
|
600
|
-
],
|
|
601
|
-
setup(r, { emit: i }) {
|
|
602
|
-
let a = r, o = i, { t: s } = n(), c = k(null), l = /* @__PURE__ */ new Map(), u = A(null);
|
|
603
|
-
function d(e) {
|
|
604
|
-
u.value = e;
|
|
605
|
-
}
|
|
606
|
-
let f = t({
|
|
607
|
-
get file() {
|
|
608
|
-
return a.file;
|
|
609
|
-
},
|
|
610
|
-
initialPage: a.initialPage,
|
|
611
|
-
initialScale: a.initialScale,
|
|
612
|
-
defaultFitMode: a.defaultFitMode,
|
|
613
|
-
onPageChange: (e) => a.onPageChange ? a.onPageChange(e) : o("pageChange", e),
|
|
614
|
-
onLoadSuccess: (e) => a.onLoadSuccess ? a.onLoadSuccess(e) : o("loadSuccess", e),
|
|
615
|
-
onLoadError: (e) => a.onLoadError ? a.onLoadError(e) : o("loadError", e)
|
|
616
|
-
}), { state: p, computedScale: m, actions: h, handlers: _ } = f, y = be({
|
|
617
|
-
containerRef: f.containerRef,
|
|
618
|
-
pageRefs: l,
|
|
619
|
-
currentPage: () => p.currentPage,
|
|
620
|
-
numPages: () => p.numPages,
|
|
621
|
-
sizesKnown: () => p.containerHeight !== void 0 && (p.pageSizes?.length ?? 0) >= p.currentPage - 1,
|
|
622
|
-
goToPage: h.goToPage
|
|
623
|
-
}), { hits: b, highlight: S } = Te({
|
|
624
|
-
pdf: u,
|
|
625
|
-
query: () => p.searchQuery,
|
|
626
|
-
goToPage: h.goToPage,
|
|
627
|
-
pageRefs: l,
|
|
628
|
-
holdScrollSpy: y
|
|
629
|
-
}), C = { container: f.containerRef };
|
|
630
|
-
async function O() {
|
|
631
|
-
document.fullscreenElement ? await document.exitFullscreen?.() : await c.value?.requestFullscreen?.();
|
|
632
|
-
}
|
|
633
|
-
function j() {
|
|
634
|
-
p.setFullscreen(!!document.fullscreenElement);
|
|
635
|
-
}
|
|
636
|
-
E(() => {
|
|
637
|
-
document.addEventListener("fullscreenchange", j);
|
|
638
|
-
}), T(() => {
|
|
639
|
-
document.removeEventListener("fullscreenchange", j);
|
|
640
|
-
});
|
|
641
|
-
function M(e) {
|
|
642
|
-
oe(e, {
|
|
643
|
-
...h,
|
|
644
|
-
openSearch: () => p.setSearchOpen(!0),
|
|
645
|
-
closeSearch: () => p.searchOpen ? (p.setSearchOpen(!1), !0) : !1,
|
|
646
|
-
goToFirst: () => h.goToPage(1),
|
|
647
|
-
goToLast: () => h.goToPage(p.numPages),
|
|
648
|
-
nextSearch: () => {
|
|
649
|
-
p.setSearchOpen(!0), b.jump(1);
|
|
650
|
-
},
|
|
651
|
-
prevSearch: () => {
|
|
652
|
-
p.setSearchOpen(!0), b.jump(-1);
|
|
653
|
-
}
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
let { download: P, print: F } = me(a, u);
|
|
657
|
-
return (t, n) => r.file ? (D(), v("div", {
|
|
658
|
-
key: 1,
|
|
659
|
-
ref_key: "wrapperRef",
|
|
660
|
-
ref: c,
|
|
661
|
-
"data-slot": "pdf-reader",
|
|
662
|
-
class: w(N(e)("relative flex h-full min-h-0 flex-col overflow-hidden rounded border bg-background", N(p).isFullscreen && "rounded-none", a.class)),
|
|
663
|
-
role: "application",
|
|
664
|
-
tabindex: "0",
|
|
665
|
-
"aria-label": N(s)("material.pdf-reader.label", "PDF reader"),
|
|
666
|
-
onKeydown: M
|
|
667
|
-
}, [x(ee, {
|
|
668
|
-
state: N(p),
|
|
669
|
-
"computed-scale": N(m),
|
|
670
|
-
"search-hits": N(b),
|
|
671
|
-
"search-open": N(p).searchOpen,
|
|
672
|
-
"is-fullscreen": N(p).isFullscreen,
|
|
673
|
-
"on-download": N(P),
|
|
674
|
-
"on-print": N(F),
|
|
675
|
-
onPrevPage: N(h).prevPage,
|
|
676
|
-
onNextPage: N(h).nextPage,
|
|
677
|
-
onGoToPage: N(h).goToPage,
|
|
678
|
-
onZoomIn: N(h).zoomIn,
|
|
679
|
-
onZoomOut: N(h).zoomOut,
|
|
680
|
-
onSetScale: N(h).setScale,
|
|
681
|
-
onSetFitMode: N(h).setFitMode,
|
|
682
|
-
onRotate: N(h).rotate,
|
|
683
|
-
onToggleSidebar: N(h).toggleSidebar,
|
|
684
|
-
onSearchChange: N(h).setSearch,
|
|
685
|
-
onSearchOpenChange: N(p).setSearchOpen,
|
|
686
|
-
onToggleNightMode: N(h).toggleNightMode,
|
|
687
|
-
onToggleFullscreen: O
|
|
688
|
-
}, null, 8, [
|
|
689
|
-
"state",
|
|
690
|
-
"computed-scale",
|
|
691
|
-
"search-hits",
|
|
692
|
-
"search-open",
|
|
693
|
-
"is-fullscreen",
|
|
694
|
-
"on-download",
|
|
695
|
-
"on-print",
|
|
696
|
-
"onPrevPage",
|
|
697
|
-
"onNextPage",
|
|
698
|
-
"onGoToPage",
|
|
699
|
-
"onZoomIn",
|
|
700
|
-
"onZoomOut",
|
|
701
|
-
"onSetScale",
|
|
702
|
-
"onSetFitMode",
|
|
703
|
-
"onRotate",
|
|
704
|
-
"onToggleSidebar",
|
|
705
|
-
"onSearchChange",
|
|
706
|
-
"onSearchOpenChange",
|
|
707
|
-
"onToggleNightMode"
|
|
708
|
-
]), x(pe, {
|
|
709
|
-
file: r.file,
|
|
710
|
-
state: N(p),
|
|
711
|
-
"effective-scale": N(m),
|
|
712
|
-
"page-refs": N(l),
|
|
713
|
-
highlight: N(S),
|
|
714
|
-
"container-ref": C.container,
|
|
715
|
-
"external-link-target": r.externalLinkTarget ?? "_blank",
|
|
716
|
-
onLoadSuccess: N(_).onDocumentLoadSuccess,
|
|
717
|
-
onLoadError: N(_).onDocumentLoadError,
|
|
718
|
-
onPasswordProtected: N(_).onPasswordProtected,
|
|
719
|
-
onPasswordSubmit: n[0] ||= (e) => N(p).clearPasswordError(),
|
|
720
|
-
onSetOutline: N(h).setOutline,
|
|
721
|
-
onSetSidebarTab: N(h).setSidebarTab,
|
|
722
|
-
onGoToPage: N(h).goToPage,
|
|
723
|
-
onDocumentChange: d
|
|
724
|
-
}, null, 8, [
|
|
725
|
-
"file",
|
|
726
|
-
"state",
|
|
727
|
-
"effective-scale",
|
|
728
|
-
"page-refs",
|
|
729
|
-
"highlight",
|
|
730
|
-
"container-ref",
|
|
731
|
-
"external-link-target",
|
|
732
|
-
"onLoadSuccess",
|
|
733
|
-
"onLoadError",
|
|
734
|
-
"onPasswordProtected",
|
|
735
|
-
"onSetOutline",
|
|
736
|
-
"onSetSidebarTab",
|
|
737
|
-
"onGoToPage"
|
|
738
|
-
])], 42, Ee)) : (D(), g(L, {
|
|
739
|
-
key: 0,
|
|
740
|
-
class: w(a.class)
|
|
741
|
-
}, null, 8, ["class"]));
|
|
742
|
-
}
|
|
743
|
-
});
|
|
744
|
-
//#endregion
|
|
745
|
-
export { De as default };
|