@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,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as n } from "./pdf-page-
|
|
2
|
+
import { af as t } from "./components-BSnW1NZK.js";
|
|
3
|
+
import { t as n } from "./pdf-page-QUKMeod_.js";
|
|
4
4
|
import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, defineComponent as s, openBlock as c, renderList as l, withCtx as u } from "vue";
|
|
5
5
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-page-list.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__*/ s({
|
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
+
import { wn as t } from "./components-BSnW1NZK.js";
|
|
3
|
+
import { t as n } from "./use-material-translation-gr5V24w5.js";
|
|
4
|
+
import { t as r } from "./Button-DcFHQ3oH.js";
|
|
5
|
+
import { o as i } from "./HoverCardTrigger-D99aHKDX.js";
|
|
6
|
+
import { n as a } from "./pdf-page-QUKMeod_.js";
|
|
7
|
+
import { t as o } from "./pdf-page-list-DzfNykQj.js";
|
|
8
|
+
import { t as s } from "./pdf-sidebar-CV_Hy9vw.js";
|
|
9
|
+
import { t as c } from "./pdf-toolbar-Cj_fCmo3.js";
|
|
10
|
+
import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, nextTick as _, normalizeClass as v, onBeforeUnmount as y, onMounted as b, openBlock as x, reactive as S, ref as C, shallowRef as w, toDisplayString as T, toRef as E, unref as D, useId as O, watch as k, withCtx as A } from "vue";
|
|
11
|
+
import { AlertCircle as j, FileX2 as M, KeyRound as N, Loader2 as P } from "@lucide/vue";
|
|
12
|
+
import { pdfSourceKey as F, toPdfjsParams as I } from "@nxgt/material-core/pdf-source";
|
|
13
|
+
import { createScrollSpy as L, hitAt as R, mapPdfOutline as ee, pinToPage as te, revealHit as ne, scrollIntoArea as z, searchDocument as B, stepHit as V, withPageMatches as H } from "@nxgt/material-core/pdf-viewer";
|
|
14
|
+
import { downloadPdfFile as U, printPdfFile as W } from "@nxgt/material-core/pdf-download";
|
|
15
|
+
//#region lib/components/ui/media/pdf-viewer/pdf-reader-keyboard.ts
|
|
16
|
+
function G(e, t) {
|
|
17
|
+
let n = e.target;
|
|
18
|
+
if (n?.closest?.("[role=\"menu\"]")) return;
|
|
19
|
+
let r = n?.tagName;
|
|
20
|
+
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "f") {
|
|
21
|
+
e.preventDefault(), t.openSearch?.();
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (e.key === "F3") {
|
|
25
|
+
e.preventDefault(), e.shiftKey ? t.prevSearch?.() : t.nextSearch?.();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (e.key === "Escape") {
|
|
29
|
+
t.closeSearch?.() && (e.preventDefault(), e.stopPropagation());
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
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?.()));
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region lib/components/ui/media/pdf-viewer/partials/pdf-empty-state.vue?vue&type=script&setup=true&lang.ts
|
|
36
|
+
var K = { class: "text-sm font-medium" }, q = /* @__PURE__ */ g({
|
|
37
|
+
__name: "pdf-empty-state",
|
|
38
|
+
props: { class: {} },
|
|
39
|
+
setup(t) {
|
|
40
|
+
let { t: r } = n();
|
|
41
|
+
return (t, n) => (x(), f("div", { class: v(D(e)("flex min-h-64 h-full flex-col items-center justify-center gap-3 text-muted-foreground", t.$props.class)) }, [h(D(M), { class: "size-10 opacity-40" }), p("p", K, T(D(r)("material.pdf-reader.empty", "No document selected")), 1)], 2));
|
|
42
|
+
}
|
|
43
|
+
}), J = "noopener noreferrer nofollow";
|
|
44
|
+
async function Y(e, t) {
|
|
45
|
+
try {
|
|
46
|
+
let n = typeof t == "string" ? await e.getDestination(t) : t;
|
|
47
|
+
if (!Array.isArray(n)) return null;
|
|
48
|
+
let [r] = n, i = typeof r == "number" ? r : r && typeof r == "object" ? await e.getPageIndex(r) : -1;
|
|
49
|
+
return i >= 0 && i < e.numPages ? i + 1 : null;
|
|
50
|
+
} catch {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function X({ pdf: e, goToPage: t, externalLinkTarget: n }) {
|
|
55
|
+
let r = (n) => {
|
|
56
|
+
let r = Number(n);
|
|
57
|
+
Number.isInteger(r) && r >= 1 && r <= e.numPages && t(r);
|
|
58
|
+
};
|
|
59
|
+
return {
|
|
60
|
+
externalLinkEnabled: !0,
|
|
61
|
+
isInPresentationMode: !1,
|
|
62
|
+
eventBus: null,
|
|
63
|
+
get pagesCount() {
|
|
64
|
+
return e.numPages;
|
|
65
|
+
},
|
|
66
|
+
page: 0,
|
|
67
|
+
rotation: 0,
|
|
68
|
+
addLinkAttributes(e, t, r = !1) {
|
|
69
|
+
e.href = t, e.rel = J, e.target = n ?? (r ? "_blank" : "");
|
|
70
|
+
},
|
|
71
|
+
getDestinationHash: () => "#",
|
|
72
|
+
getAnchorUrl: () => "#",
|
|
73
|
+
async goToDestination(t) {
|
|
74
|
+
let n = await Y(e, t);
|
|
75
|
+
n !== null && r(n);
|
|
76
|
+
},
|
|
77
|
+
goToPage: r,
|
|
78
|
+
goToXY: (e) => r(e),
|
|
79
|
+
navigateTo(e) {
|
|
80
|
+
this.goToDestination(e);
|
|
81
|
+
},
|
|
82
|
+
executeNamedAction() {},
|
|
83
|
+
executeSetOCGState() {},
|
|
84
|
+
setHash() {},
|
|
85
|
+
cachePageRef() {},
|
|
86
|
+
isPageVisible: () => !0,
|
|
87
|
+
isPageCached: () => !0
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region lib/components/ui/media/pdf-viewer/use-pdf-document.ts
|
|
92
|
+
function Z(e, t) {
|
|
93
|
+
let n = w(null), r = w(null), i = 0, o = null;
|
|
94
|
+
function s() {
|
|
95
|
+
o?.destroy(), o = null, r.value = null, n.value?.destroy(), n.value = null;
|
|
96
|
+
}
|
|
97
|
+
async function c() {
|
|
98
|
+
let c = ++i;
|
|
99
|
+
s();
|
|
100
|
+
try {
|
|
101
|
+
let s = await a();
|
|
102
|
+
if (c !== i) return;
|
|
103
|
+
let l = await I(e.value);
|
|
104
|
+
if (c !== i) return;
|
|
105
|
+
let u = s.getDocument(l);
|
|
106
|
+
o = u, u.onPassword = (e, n) => {
|
|
107
|
+
if (c !== i) {
|
|
108
|
+
u.destroy();
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
r.value = (t) => {
|
|
112
|
+
r.value = null, e(t);
|
|
113
|
+
}, t.onPasswordProtected(n === s.PasswordResponses.INCORRECT_PASSWORD);
|
|
114
|
+
};
|
|
115
|
+
let d = await u.promise;
|
|
116
|
+
if (o === u && (o = null), c !== i) {
|
|
117
|
+
d.destroy();
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
n.value = d, t.onLoadSuccess(d), t.setOutline(ee(await d.getOutline()));
|
|
121
|
+
} catch (e) {
|
|
122
|
+
if (c !== i) return;
|
|
123
|
+
t.onLoadError(e instanceof Error ? e : Error(String(e)));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return k(() => F(e.value), () => void c(), { immediate: !0 }), y(() => {
|
|
127
|
+
i += 1, s();
|
|
128
|
+
}), {
|
|
129
|
+
pdf: n,
|
|
130
|
+
resolvePassword: r
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region lib/components/ui/media/pdf-viewer/partials/pdf-error-state.vue?vue&type=script&setup=true&lang.ts
|
|
135
|
+
var re = { class: "absolute inset-0 flex flex-col items-center justify-center gap-3 text-muted-foreground" }, ie = { class: "text-sm font-medium" }, ae = { class: "max-w-xs text-center text-xs opacity-60" }, oe = /* @__PURE__ */ g({
|
|
136
|
+
__name: "pdf-error-state",
|
|
137
|
+
props: { message: {} },
|
|
138
|
+
setup(e) {
|
|
139
|
+
let { t } = n();
|
|
140
|
+
return (n, r) => (x(), f("div", re, [
|
|
141
|
+
h(D(j), { class: "size-10 text-error opacity-70" }),
|
|
142
|
+
p("p", ie, T(D(t)("material.pdf-reader.error", "Failed to load document")), 1),
|
|
143
|
+
p("p", ae, T(e.message), 1)
|
|
144
|
+
]));
|
|
145
|
+
}
|
|
146
|
+
}), se = { class: "absolute inset-0 z-10 flex flex-col items-center justify-center gap-3 bg-background/80 backdrop-blur-sm" }, ce = { class: "text-sm text-muted-foreground" }, le = /* @__PURE__ */ g({
|
|
147
|
+
__name: "pdf-loading-overlay",
|
|
148
|
+
setup(e) {
|
|
149
|
+
let { t } = n();
|
|
150
|
+
return (e, n) => (x(), f("div", se, [h(D(P), { class: "size-8 animate-spin text-primary" }), p("p", ce, T(D(t)("material.pdf-reader.loading", "Loading document…")), 1)]));
|
|
151
|
+
}
|
|
152
|
+
}), ue = { class: "absolute inset-0 flex flex-col items-center justify-center gap-4" }, de = { class: "text-sm font-semibold" }, fe = ["id"], pe = /* @__PURE__ */ g({
|
|
153
|
+
__name: "pdf-password-form",
|
|
154
|
+
props: {
|
|
155
|
+
modelValue: {},
|
|
156
|
+
incorrect: { type: Boolean }
|
|
157
|
+
},
|
|
158
|
+
emits: ["update:modelValue", "submit"],
|
|
159
|
+
setup(e, { emit: t }) {
|
|
160
|
+
let a = e, o = t, { t: s } = n(), c = O(), l = C(null);
|
|
161
|
+
k(() => a.incorrect, async (e) => {
|
|
162
|
+
e && (await _(), l.value?.querySelector("input")?.focus());
|
|
163
|
+
});
|
|
164
|
+
function u(e) {
|
|
165
|
+
e.key === "Enter" && o("submit");
|
|
166
|
+
}
|
|
167
|
+
return (t, n) => (x(), f("div", ue, [
|
|
168
|
+
h(D(N), { class: "size-10 text-primary opacity-70" }),
|
|
169
|
+
p("p", de, T(D(s)("material.pdf-reader.password", "Password protected")), 1),
|
|
170
|
+
p("div", {
|
|
171
|
+
ref_key: "fields",
|
|
172
|
+
ref: l,
|
|
173
|
+
class: "flex gap-2"
|
|
174
|
+
}, [h(i, {
|
|
175
|
+
type: "password",
|
|
176
|
+
placeholder: D(s)("material.pdf-reader.password-placeholder", "Enter password"),
|
|
177
|
+
class: "h-9 w-48",
|
|
178
|
+
"aria-label": D(s)("material.pdf-reader.password-label", "Password"),
|
|
179
|
+
"aria-invalid": e.incorrect || void 0,
|
|
180
|
+
"aria-describedby": e.incorrect ? D(c) : void 0,
|
|
181
|
+
"model-value": e.modelValue,
|
|
182
|
+
autofocus: "",
|
|
183
|
+
"onUpdate:modelValue": n[0] ||= (e) => o("update:modelValue", String(e)),
|
|
184
|
+
onKeydown: u
|
|
185
|
+
}, null, 8, [
|
|
186
|
+
"placeholder",
|
|
187
|
+
"aria-label",
|
|
188
|
+
"aria-invalid",
|
|
189
|
+
"aria-describedby",
|
|
190
|
+
"model-value"
|
|
191
|
+
]), h(r, {
|
|
192
|
+
variant: "filled",
|
|
193
|
+
color: "primary",
|
|
194
|
+
onClick: n[1] ||= (e) => o("submit")
|
|
195
|
+
}, {
|
|
196
|
+
default: A(() => [m(T(D(s)("material.pdf-reader.unlock", "Unlock")), 1)]),
|
|
197
|
+
_: 1
|
|
198
|
+
})], 512),
|
|
199
|
+
e.incorrect ? (x(), f("p", {
|
|
200
|
+
key: 0,
|
|
201
|
+
id: D(c),
|
|
202
|
+
role: "alert",
|
|
203
|
+
class: "text-sm text-error"
|
|
204
|
+
}, T(D(s)("material.pdf-reader.password-incorrect", "Incorrect password. Try again.")), 9, fe)) : d("", !0)
|
|
205
|
+
]));
|
|
206
|
+
}
|
|
207
|
+
}), me = { class: "flex min-h-0 flex-1" }, Q = /* @__PURE__ */ g({
|
|
208
|
+
__name: "pdf-reader-body",
|
|
209
|
+
props: {
|
|
210
|
+
file: {},
|
|
211
|
+
state: {},
|
|
212
|
+
effectiveScale: {},
|
|
213
|
+
pageRefs: {},
|
|
214
|
+
containerRef: {},
|
|
215
|
+
highlight: {},
|
|
216
|
+
externalLinkTarget: {}
|
|
217
|
+
},
|
|
218
|
+
emits: [
|
|
219
|
+
"loadSuccess",
|
|
220
|
+
"loadError",
|
|
221
|
+
"passwordProtected",
|
|
222
|
+
"passwordSubmit",
|
|
223
|
+
"setOutline",
|
|
224
|
+
"set-sidebar-tab",
|
|
225
|
+
"goToPage",
|
|
226
|
+
"documentChange"
|
|
227
|
+
],
|
|
228
|
+
setup(e, { emit: t }) {
|
|
229
|
+
let n = e, r = t, i = C(""), { pdf: a, resolvePassword: c } = Z(E(n, "file"), {
|
|
230
|
+
onLoadSuccess: (e) => r("loadSuccess", e),
|
|
231
|
+
onLoadError: (e) => r("loadError", e),
|
|
232
|
+
onPasswordProtected: (e) => r("passwordProtected", e),
|
|
233
|
+
setOutline: (e) => r("setOutline", e)
|
|
234
|
+
});
|
|
235
|
+
k(a, (e) => r("documentChange", e)), y(() => r("documentChange", null));
|
|
236
|
+
function m(e) {
|
|
237
|
+
n.containerRef.value = e instanceof HTMLDivElement ? e : null;
|
|
238
|
+
}
|
|
239
|
+
function h() {
|
|
240
|
+
r("passwordSubmit"), c.value?.(i.value), i.value = "";
|
|
241
|
+
}
|
|
242
|
+
async function g(e) {
|
|
243
|
+
let t = a.value;
|
|
244
|
+
if (!t || e.dest == null) return;
|
|
245
|
+
let n = await Y(t, e.dest);
|
|
246
|
+
n !== null && r("goToPage", n);
|
|
247
|
+
}
|
|
248
|
+
let _ = l(() => a.value ? X({
|
|
249
|
+
pdf: a.value,
|
|
250
|
+
goToPage: (e) => r("goToPage", e),
|
|
251
|
+
externalLinkTarget: n.externalLinkTarget
|
|
252
|
+
}) : null);
|
|
253
|
+
return (t, n) => (x(), f("div", me, [e.state.sidebarOpen && e.state.numPages > 0 && D(a) ? (x(), u(s, {
|
|
254
|
+
key: 0,
|
|
255
|
+
pdf: D(a),
|
|
256
|
+
tab: e.state.sidebarTab,
|
|
257
|
+
"num-pages": e.state.numPages,
|
|
258
|
+
"current-page": e.state.currentPage,
|
|
259
|
+
rotation: e.state.rotation,
|
|
260
|
+
outline: e.state.outline,
|
|
261
|
+
"page-sizes": e.state.pageSizes,
|
|
262
|
+
onTabChange: n[0] ||= (e) => r("set-sidebar-tab", e),
|
|
263
|
+
onPageSelect: n[1] ||= (e) => r("goToPage", e),
|
|
264
|
+
onOutlineSelect: g
|
|
265
|
+
}, null, 8, [
|
|
266
|
+
"pdf",
|
|
267
|
+
"tab",
|
|
268
|
+
"num-pages",
|
|
269
|
+
"current-page",
|
|
270
|
+
"rotation",
|
|
271
|
+
"outline",
|
|
272
|
+
"page-sizes"
|
|
273
|
+
])) : d("", !0), p("div", {
|
|
274
|
+
ref: m,
|
|
275
|
+
class: "relative min-w-0 flex-1 overflow-hidden"
|
|
276
|
+
}, [
|
|
277
|
+
e.state.isLoading ? (x(), u(le, { key: 0 })) : d("", !0),
|
|
278
|
+
e.state.error && !e.state.isPasswordProtected ? (x(), u(oe, {
|
|
279
|
+
key: 1,
|
|
280
|
+
message: e.state.error
|
|
281
|
+
}, null, 8, ["message"])) : d("", !0),
|
|
282
|
+
e.state.isPasswordProtected ? (x(), u(pe, {
|
|
283
|
+
key: 2,
|
|
284
|
+
modelValue: i.value,
|
|
285
|
+
"onUpdate:modelValue": n[2] ||= (e) => i.value = e,
|
|
286
|
+
incorrect: e.state.passwordError ?? !1,
|
|
287
|
+
onSubmit: h
|
|
288
|
+
}, null, 8, ["modelValue", "incorrect"])) : d("", !0),
|
|
289
|
+
D(a) && !e.state.error && !e.state.isPasswordProtected ? (x(), u(o, {
|
|
290
|
+
key: 3,
|
|
291
|
+
pdf: D(a),
|
|
292
|
+
"num-pages": e.state.numPages,
|
|
293
|
+
"current-page": e.state.currentPage,
|
|
294
|
+
scale: e.effectiveScale,
|
|
295
|
+
rotation: e.state.rotation,
|
|
296
|
+
"search-query": e.state.searchQuery,
|
|
297
|
+
"night-mode": e.state.nightMode,
|
|
298
|
+
"page-refs": e.pageRefs,
|
|
299
|
+
"page-sizes": e.state.pageSizes,
|
|
300
|
+
highlight: e.highlight,
|
|
301
|
+
"link-service": _.value
|
|
302
|
+
}, null, 8, [
|
|
303
|
+
"pdf",
|
|
304
|
+
"num-pages",
|
|
305
|
+
"current-page",
|
|
306
|
+
"scale",
|
|
307
|
+
"rotation",
|
|
308
|
+
"search-query",
|
|
309
|
+
"night-mode",
|
|
310
|
+
"page-refs",
|
|
311
|
+
"page-sizes",
|
|
312
|
+
"highlight",
|
|
313
|
+
"link-service"
|
|
314
|
+
])) : d("", !0)
|
|
315
|
+
], 512)]));
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region lib/components/ui/media/pdf-viewer/use-pdf-file-actions.ts
|
|
320
|
+
function he(e, t) {
|
|
321
|
+
let { t: r } = n(), i = () => t.value?.getData();
|
|
322
|
+
return {
|
|
323
|
+
download() {
|
|
324
|
+
e.onDownload ? e.onDownload() : e.file && U(e.file, {
|
|
325
|
+
fileName: e.fileName,
|
|
326
|
+
getData: i,
|
|
327
|
+
defaultName: r("material.pdf-reader.default-file-name", "document")
|
|
328
|
+
});
|
|
329
|
+
},
|
|
330
|
+
print() {
|
|
331
|
+
e.onPrint ? e.onPrint() : e.file && W(e.file, { getData: i });
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region lib/components/ui/media/pdf-viewer/use-pdf-scroll-spy.ts
|
|
337
|
+
var ge = 2e3;
|
|
338
|
+
function _e(e) {
|
|
339
|
+
let t = C(!1), n = 0, r = null, i = () => {};
|
|
340
|
+
return k(e.numPages, (e) => {
|
|
341
|
+
e > 0 || (i(), t.value = !1, n = 0);
|
|
342
|
+
}), k(() => [
|
|
343
|
+
t.value,
|
|
344
|
+
e.numPages(),
|
|
345
|
+
e.sizesKnown()
|
|
346
|
+
], ([a, o, s], c, l) => {
|
|
347
|
+
if (a || o === 0) return;
|
|
348
|
+
let u = () => {
|
|
349
|
+
let a = e.currentPage(), o = e.pageRefs.get(a);
|
|
350
|
+
o && a > 1 && (z(o, "start", "auto"), i = te(() => e.pageRefs.get(a), () => r?.hold())), n = a, t.value = !0;
|
|
351
|
+
};
|
|
352
|
+
if (s) {
|
|
353
|
+
u();
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
let d = setTimeout(u, ge);
|
|
357
|
+
l(() => clearTimeout(d));
|
|
358
|
+
}, { flush: "post" }), k(t, (t, a, o) => {
|
|
359
|
+
if (!t) return;
|
|
360
|
+
let s = L(() => e.containerRef.value, () => e.pageRefs, (t) => {
|
|
361
|
+
i(), n = t, e.goToPage(t);
|
|
362
|
+
});
|
|
363
|
+
r = s, n > 1 && s.hold(), o(() => {
|
|
364
|
+
s.stop(), r = null;
|
|
365
|
+
});
|
|
366
|
+
}), k(e.currentPage, (a) => {
|
|
367
|
+
if (!t.value || e.numPages() === 0 || a === n) return;
|
|
368
|
+
n = a, i(), r?.hold();
|
|
369
|
+
let o = e.pageRefs.get(a);
|
|
370
|
+
o && z(o, "start");
|
|
371
|
+
}), y(() => {
|
|
372
|
+
i(), r?.stop();
|
|
373
|
+
}), () => {
|
|
374
|
+
i(), r?.hold();
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region lib/components/ui/media/pdf-viewer/use-pdf-document-search.ts
|
|
379
|
+
var $ = {
|
|
380
|
+
texts: [],
|
|
381
|
+
matches: []
|
|
382
|
+
};
|
|
383
|
+
function ve(e, t, n = 150) {
|
|
384
|
+
let r = w($);
|
|
385
|
+
return k([e, t], ([e, t], i, a) => {
|
|
386
|
+
if (r.value = $, !e || !t.trim()) return;
|
|
387
|
+
let o = !1, s = setTimeout(() => {
|
|
388
|
+
B(e, t, (e) => {
|
|
389
|
+
r.value = H(r.value, e);
|
|
390
|
+
}, () => o).catch(() => {});
|
|
391
|
+
}, n);
|
|
392
|
+
a(() => {
|
|
393
|
+
o = !0, clearTimeout(s);
|
|
394
|
+
});
|
|
395
|
+
}, { immediate: !0 }), r;
|
|
396
|
+
}
|
|
397
|
+
//#endregion
|
|
398
|
+
//#region lib/components/ui/media/pdf-viewer/use-pdf-search-hits.ts
|
|
399
|
+
function ye(e) {
|
|
400
|
+
let t = ve(e.pdf, e.query), n = C(-1);
|
|
401
|
+
k([e.pdf, e.query], () => {
|
|
402
|
+
n.value = -1;
|
|
403
|
+
});
|
|
404
|
+
let r = l(() => Array.from(t.value.matches, (e) => e?.length ?? 0)), i = l(() => r.value.reduce((e, t) => e + t, 0)), a = () => {};
|
|
405
|
+
y(() => a());
|
|
406
|
+
function o(t) {
|
|
407
|
+
let o = i.value, s = V(n.value, t, o);
|
|
408
|
+
if (s < 0) return {
|
|
409
|
+
index: 0,
|
|
410
|
+
count: o
|
|
411
|
+
};
|
|
412
|
+
n.value = s;
|
|
413
|
+
let c = R(r.value, s);
|
|
414
|
+
return c && (e.goToPage(c.page), a(), a = ne(() => e.pageRefs.get(c.page), c.hit, e.holdScrollSpy)), {
|
|
415
|
+
index: s,
|
|
416
|
+
count: o
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
return {
|
|
420
|
+
hits: S({
|
|
421
|
+
hitIndex: n,
|
|
422
|
+
hitCount: i,
|
|
423
|
+
jump: o,
|
|
424
|
+
reset: () => {
|
|
425
|
+
n.value = -1;
|
|
426
|
+
}
|
|
427
|
+
}),
|
|
428
|
+
highlight: l(() => ({
|
|
429
|
+
texts: t.value.texts,
|
|
430
|
+
matches: t.value.matches,
|
|
431
|
+
current: n.value < 0 ? null : R(r.value, n.value)
|
|
432
|
+
}))
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region lib/components/ui/media/pdf-viewer/pdf-reader.vue?vue&type=script&setup=true&lang.ts
|
|
437
|
+
var be = ["aria-label"], xe = /* @__PURE__ */ g({
|
|
438
|
+
name: "PdfReader",
|
|
439
|
+
__name: "pdf-reader",
|
|
440
|
+
props: {
|
|
441
|
+
file: {},
|
|
442
|
+
fileName: {},
|
|
443
|
+
initialPage: {},
|
|
444
|
+
initialScale: {},
|
|
445
|
+
defaultFitMode: {},
|
|
446
|
+
onPageChange: { type: Function },
|
|
447
|
+
onLoadSuccess: { type: Function },
|
|
448
|
+
onLoadError: { type: Function },
|
|
449
|
+
onDownload: { type: Function },
|
|
450
|
+
onPrint: { type: Function },
|
|
451
|
+
externalLinkTarget: {},
|
|
452
|
+
class: {}
|
|
453
|
+
},
|
|
454
|
+
emits: [
|
|
455
|
+
"pageChange",
|
|
456
|
+
"loadSuccess",
|
|
457
|
+
"loadError"
|
|
458
|
+
],
|
|
459
|
+
setup(r, { emit: i }) {
|
|
460
|
+
let a = r, o = i, { t: s } = n(), l = C(null), d = /* @__PURE__ */ new Map(), p = w(null);
|
|
461
|
+
function m(e) {
|
|
462
|
+
p.value = e;
|
|
463
|
+
}
|
|
464
|
+
let g = t({
|
|
465
|
+
get file() {
|
|
466
|
+
return a.file;
|
|
467
|
+
},
|
|
468
|
+
initialPage: a.initialPage,
|
|
469
|
+
initialScale: a.initialScale,
|
|
470
|
+
defaultFitMode: a.defaultFitMode,
|
|
471
|
+
onPageChange: (e) => a.onPageChange ? a.onPageChange(e) : o("pageChange", e),
|
|
472
|
+
onLoadSuccess: (e) => a.onLoadSuccess ? a.onLoadSuccess(e) : o("loadSuccess", e),
|
|
473
|
+
onLoadError: (e) => a.onLoadError ? a.onLoadError(e) : o("loadError", e)
|
|
474
|
+
}), { state: _, computedScale: S, actions: T, handlers: E } = g, O = _e({
|
|
475
|
+
containerRef: g.containerRef,
|
|
476
|
+
pageRefs: d,
|
|
477
|
+
currentPage: () => _.currentPage,
|
|
478
|
+
numPages: () => _.numPages,
|
|
479
|
+
sizesKnown: () => _.containerHeight !== void 0 && (_.pageSizes?.length ?? 0) >= _.currentPage - 1,
|
|
480
|
+
goToPage: T.goToPage
|
|
481
|
+
}), { hits: k, highlight: A } = ye({
|
|
482
|
+
pdf: p,
|
|
483
|
+
query: () => _.searchQuery,
|
|
484
|
+
goToPage: T.goToPage,
|
|
485
|
+
pageRefs: d,
|
|
486
|
+
holdScrollSpy: O
|
|
487
|
+
}), j = { container: g.containerRef };
|
|
488
|
+
async function M() {
|
|
489
|
+
document.fullscreenElement ? await document.exitFullscreen?.() : await l.value?.requestFullscreen?.();
|
|
490
|
+
}
|
|
491
|
+
function N() {
|
|
492
|
+
_.setFullscreen(!!document.fullscreenElement);
|
|
493
|
+
}
|
|
494
|
+
b(() => {
|
|
495
|
+
document.addEventListener("fullscreenchange", N);
|
|
496
|
+
}), y(() => {
|
|
497
|
+
document.removeEventListener("fullscreenchange", N);
|
|
498
|
+
});
|
|
499
|
+
function P(e) {
|
|
500
|
+
G(e, {
|
|
501
|
+
...T,
|
|
502
|
+
openSearch: () => _.setSearchOpen(!0),
|
|
503
|
+
closeSearch: () => _.searchOpen ? (_.setSearchOpen(!1), !0) : !1,
|
|
504
|
+
goToFirst: () => T.goToPage(1),
|
|
505
|
+
goToLast: () => T.goToPage(_.numPages),
|
|
506
|
+
nextSearch: () => {
|
|
507
|
+
_.setSearchOpen(!0), k.jump(1);
|
|
508
|
+
},
|
|
509
|
+
prevSearch: () => {
|
|
510
|
+
_.setSearchOpen(!0), k.jump(-1);
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
let { download: F, print: I } = he(a, p);
|
|
515
|
+
return (t, n) => r.file ? (x(), f("div", {
|
|
516
|
+
key: 1,
|
|
517
|
+
ref_key: "wrapperRef",
|
|
518
|
+
ref: l,
|
|
519
|
+
"data-slot": "pdf-reader",
|
|
520
|
+
class: v(D(e)("relative flex h-full min-h-0 flex-col overflow-hidden rounded border bg-background", D(_).isFullscreen && "rounded-none", a.class)),
|
|
521
|
+
role: "application",
|
|
522
|
+
tabindex: "0",
|
|
523
|
+
"aria-label": D(s)("material.pdf-reader.label", "PDF reader"),
|
|
524
|
+
onKeydown: P
|
|
525
|
+
}, [h(c, {
|
|
526
|
+
state: D(_),
|
|
527
|
+
"computed-scale": D(S),
|
|
528
|
+
"search-hits": D(k),
|
|
529
|
+
"search-open": D(_).searchOpen,
|
|
530
|
+
"is-fullscreen": D(_).isFullscreen,
|
|
531
|
+
"on-download": D(F),
|
|
532
|
+
"on-print": D(I),
|
|
533
|
+
onPrevPage: D(T).prevPage,
|
|
534
|
+
onNextPage: D(T).nextPage,
|
|
535
|
+
onGoToPage: D(T).goToPage,
|
|
536
|
+
onZoomIn: D(T).zoomIn,
|
|
537
|
+
onZoomOut: D(T).zoomOut,
|
|
538
|
+
onSetScale: D(T).setScale,
|
|
539
|
+
onSetFitMode: D(T).setFitMode,
|
|
540
|
+
onRotate: D(T).rotate,
|
|
541
|
+
onToggleSidebar: D(T).toggleSidebar,
|
|
542
|
+
onSearchChange: D(T).setSearch,
|
|
543
|
+
onSearchOpenChange: D(_).setSearchOpen,
|
|
544
|
+
onToggleNightMode: D(T).toggleNightMode,
|
|
545
|
+
onToggleFullscreen: M
|
|
546
|
+
}, null, 8, [
|
|
547
|
+
"state",
|
|
548
|
+
"computed-scale",
|
|
549
|
+
"search-hits",
|
|
550
|
+
"search-open",
|
|
551
|
+
"is-fullscreen",
|
|
552
|
+
"on-download",
|
|
553
|
+
"on-print",
|
|
554
|
+
"onPrevPage",
|
|
555
|
+
"onNextPage",
|
|
556
|
+
"onGoToPage",
|
|
557
|
+
"onZoomIn",
|
|
558
|
+
"onZoomOut",
|
|
559
|
+
"onSetScale",
|
|
560
|
+
"onSetFitMode",
|
|
561
|
+
"onRotate",
|
|
562
|
+
"onToggleSidebar",
|
|
563
|
+
"onSearchChange",
|
|
564
|
+
"onSearchOpenChange",
|
|
565
|
+
"onToggleNightMode"
|
|
566
|
+
]), h(Q, {
|
|
567
|
+
file: r.file,
|
|
568
|
+
state: D(_),
|
|
569
|
+
"effective-scale": D(S),
|
|
570
|
+
"page-refs": D(d),
|
|
571
|
+
highlight: D(A),
|
|
572
|
+
"container-ref": j.container,
|
|
573
|
+
"external-link-target": r.externalLinkTarget ?? "_blank",
|
|
574
|
+
onLoadSuccess: D(E).onDocumentLoadSuccess,
|
|
575
|
+
onLoadError: D(E).onDocumentLoadError,
|
|
576
|
+
onPasswordProtected: D(E).onPasswordProtected,
|
|
577
|
+
onPasswordSubmit: n[0] ||= (e) => D(_).clearPasswordError(),
|
|
578
|
+
onSetOutline: D(T).setOutline,
|
|
579
|
+
onSetSidebarTab: D(T).setSidebarTab,
|
|
580
|
+
onGoToPage: D(T).goToPage,
|
|
581
|
+
onDocumentChange: m
|
|
582
|
+
}, null, 8, [
|
|
583
|
+
"file",
|
|
584
|
+
"state",
|
|
585
|
+
"effective-scale",
|
|
586
|
+
"page-refs",
|
|
587
|
+
"highlight",
|
|
588
|
+
"container-ref",
|
|
589
|
+
"external-link-target",
|
|
590
|
+
"onLoadSuccess",
|
|
591
|
+
"onLoadError",
|
|
592
|
+
"onPasswordProtected",
|
|
593
|
+
"onSetOutline",
|
|
594
|
+
"onSetSidebarTab",
|
|
595
|
+
"onGoToPage"
|
|
596
|
+
])], 42, be)) : (x(), u(q, {
|
|
597
|
+
key: 0,
|
|
598
|
+
class: v(a.class)
|
|
599
|
+
}, null, 8, ["class"]));
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
//#endregion
|
|
603
|
+
export { xe as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { t } from "./utils-
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { t as r } from "./pdf-outline-sidebar-
|
|
5
|
-
import { t as i } from "./pdf-thumbnail-sidebar-
|
|
2
|
+
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
+
import { t as n } from "./use-material-translation-gr5V24w5.js";
|
|
4
|
+
import { t as r } from "./pdf-outline-sidebar-D45RuliO.js";
|
|
5
|
+
import { t as i } from "./pdf-thumbnail-sidebar-Cgk8Y79g.js";
|
|
6
6
|
import { createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, toDisplayString as d, unref as f, useId as p, useTemplateRef as m } from "vue";
|
|
7
7
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var h = ["aria-label"], g = ["aria-label"], _ = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { t } from "./utils-
|
|
3
|
-
import {
|
|
4
|
-
import { t as r } from "./use-material-translation-
|
|
5
|
-
import { t as i } from "./pdf-page-
|
|
2
|
+
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
+
import { af as n } from "./components-BSnW1NZK.js";
|
|
4
|
+
import { t as r } from "./use-material-translation-gr5V24w5.js";
|
|
5
|
+
import { t as i } from "./pdf-page-QUKMeod_.js";
|
|
6
6
|
import { Fragment as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
7
7
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-thumbnail-sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var _ = ["aria-label"], v = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { t } from "./utils-
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { o as r } from "./Button-
|
|
5
|
-
import { t as i } from "./icon-button-
|
|
6
|
-
import { a, i as o, n as s, o as c, r as l, t as u } from "./DropdownMenuTrigger-
|
|
7
|
-
import { o as d } from "./HoverCardTrigger-
|
|
2
|
+
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
+
import { t as n } from "./use-material-translation-gr5V24w5.js";
|
|
4
|
+
import { o as r } from "./Button-DcFHQ3oH.js";
|
|
5
|
+
import { t as i } from "./icon-button-DnjboAtZ.js";
|
|
6
|
+
import { a, i as o, n as s, o as c, r as l, t as u } from "./DropdownMenuTrigger-BHAhXGUO.js";
|
|
7
|
+
import { o as d } from "./HoverCardTrigger-D99aHKDX.js";
|
|
8
8
|
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, nextTick as x, normalizeClass as S, openBlock as C, ref as w, renderList as T, toDisplayString as E, unref as D, useTemplateRef as O, watch as k, withCtx as A } from "vue";
|
|
9
9
|
import { ChevronDown as j, ChevronLeft as M, ChevronRight as N, ChevronUp as P, Download as F, Maximize2 as I, Minimize2 as L, Moon as R, Printer as z, RotateCw as B, Search as V, Sidebar as H, ZoomIn as U, ZoomOut as W } from "@lucide/vue";
|
|
10
10
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-toolbar-search.vue?vue&type=script&setup=true&lang.ts
|