@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
package/dist/pdf.js
CHANGED
|
@@ -1,274 +1,28 @@
|
|
|
1
|
-
import { n as e, t } from "./use-material-translation-
|
|
2
|
-
import { t as n } from "./Button-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return "accessor" in e ? e.id : e.id ?? e.key;
|
|
12
|
-
}
|
|
13
|
-
function _(e, t, n) {
|
|
14
|
-
return "accessor" in e ? e.accessor(t, n) : t[e.key];
|
|
15
|
-
}
|
|
16
|
-
var v = (e) => typeof e == "number" && Number.isFinite(e) ? e : null;
|
|
17
|
-
function y(e, t, n) {
|
|
18
|
-
return (typeof e.currency == "function" ? t === void 0 ? void 0 : e.currency(t) : e.currency) ?? n.currency ?? null;
|
|
19
|
-
}
|
|
20
|
-
function b(e, t, n, r = {}) {
|
|
21
|
-
let { format: i } = e;
|
|
22
|
-
if (typeof i == "function") return n === void 0 ? String(t ?? "") : i(t, n);
|
|
23
|
-
if (t == null) return null;
|
|
24
|
-
switch (i) {
|
|
25
|
-
case "amount": return {
|
|
26
|
-
amount: v(t),
|
|
27
|
-
currency: y(e, n, r)
|
|
28
|
-
};
|
|
29
|
-
case "number": return { number: v(t) };
|
|
30
|
-
case "percent": return {
|
|
31
|
-
number: v(t),
|
|
32
|
-
style: "percent"
|
|
33
|
-
};
|
|
34
|
-
case "date": return t instanceof Date ? { date: t.toISOString() } : typeof t == "string" || typeof t == "number" ? { date: t } : null;
|
|
35
|
-
default: return t instanceof Date ? { date: t.toISOString() } : typeof t == "number" ? t : String(t);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
var ue = (e) => e === "amount" || e === "number" || e === "percent";
|
|
39
|
-
function de(e, t, n) {
|
|
40
|
-
if (!e.total) return null;
|
|
41
|
-
let r = e.total === "sum" ? t.reduce((t, n, r) => t + (v(_(e, n, r)) ?? 0), 0) : e.total(t);
|
|
42
|
-
if (typeof r == "string") return r;
|
|
43
|
-
let i = new Set(t.map((t) => y(e, t, n)));
|
|
44
|
-
return e.format === "amount" && i.size > 1 ? null : b(e, r, t[0], n);
|
|
45
|
-
}
|
|
46
|
-
function x(e, t, n = {}) {
|
|
47
|
-
return {
|
|
48
|
-
columns: e.map((e) => ({
|
|
49
|
-
id: le(e),
|
|
50
|
-
label: e.label,
|
|
51
|
-
align: e.align ?? (ue(e.format) ? "right" : "left"),
|
|
52
|
-
...e.width !== void 0 && { width: e.width },
|
|
53
|
-
...e.flex !== void 0 && { flex: e.flex }
|
|
54
|
-
})),
|
|
55
|
-
rows: t.map((t, r) => e.map((e) => b(e, _(e, t, r), t, n))),
|
|
56
|
-
footer: e.some((e) => e.total) ? [e.map((e, r) => r === 0 && !e.total ? n.totalLabel ?? "Total" : de(e, t, n))] : [],
|
|
57
|
-
empty: t.length === 0
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function S(e, t, n = {}) {
|
|
61
|
-
return e.map((e) => ({
|
|
62
|
-
label: e.label,
|
|
63
|
-
value: b(e, _(e, t, 0), t, n)
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region lib/lib/print-value.utils.ts
|
|
68
|
-
var C = "—";
|
|
69
|
-
function w(e, t, n, r) {
|
|
70
|
-
let i = Math.min(100, Math.max(0, Math.trunc(n ?? (t === "percent" ? 0 : 3))));
|
|
71
|
-
try {
|
|
72
|
-
return new Intl.NumberFormat(r, {
|
|
73
|
-
style: t,
|
|
74
|
-
maximumFractionDigits: i
|
|
75
|
-
}).format(e);
|
|
76
|
-
} catch {
|
|
77
|
-
return String(t === "percent" ? `${e * 100}%` : e);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function T(e) {
|
|
81
|
-
return e == null || e === "" ? !0 : typeof e == "object" ? "amount" in e ? e.amount == null : "date" in e ? e.date == null || e.date === "" : e.number == null : !1;
|
|
82
|
-
}
|
|
83
|
-
function E(e, t = {}) {
|
|
84
|
-
let { locale: n, timeZone: a, empty: o = C } = t;
|
|
85
|
-
return T(e) ? o : typeof e == "string" ? e : typeof e == "number" ? w(e, "decimal", void 0, n) : e == null ? o : "amount" in e ? r(e.amount, e.currency, {
|
|
86
|
-
locale: n,
|
|
87
|
-
fractionDigits: e.fractionDigits
|
|
88
|
-
}) : "date" in e ? i(e.date, {
|
|
89
|
-
locale: n,
|
|
90
|
-
timeZone: a,
|
|
91
|
-
dateStyle: e.dateStyle,
|
|
92
|
-
timeStyle: e.timeStyle
|
|
93
|
-
}) : w(e.number, e.style ?? "decimal", e.fractionDigits, n);
|
|
94
|
-
}
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region lib/pdf-core/http.ts
|
|
97
|
-
function D(e, t) {
|
|
98
|
-
return `${e}; filename="${t.replace(/[^\x20-\x7e]/g, "_").replace(/["\\]/g, "_")}"; filename*=UTF-8''${encodeURIComponent(t).replace(/['()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`)}`;
|
|
99
|
-
}
|
|
100
|
-
var O = (e) => /\.pdf$/i.test(e) ? e : `${e}.pdf`;
|
|
101
|
-
function k(e, t = {}) {
|
|
102
|
-
let n = new Headers(t.headers);
|
|
103
|
-
n.set("Content-Type", "application/pdf"), n.set("Content-Length", String(e.byteLength));
|
|
104
|
-
let r = O((t.fileName ?? "").replace(/[\\/]/g, "_").trim() || "document");
|
|
105
|
-
return n.set("Content-Disposition", D(t.disposition ?? "attachment", r)), new Response(e, { headers: n });
|
|
106
|
-
}
|
|
107
|
-
function A(e) {
|
|
108
|
-
let t = e[Symbol.asyncIterator](), n = new TextEncoder();
|
|
109
|
-
return new ReadableStream({
|
|
110
|
-
async pull(e) {
|
|
111
|
-
let { value: r, done: i } = await t.next();
|
|
112
|
-
i ? e.close() : e.enqueue(typeof r == "string" ? n.encode(r) : new Uint8Array(r));
|
|
113
|
-
},
|
|
114
|
-
async cancel() {
|
|
115
|
-
await t.return?.();
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region lib/pdf-core/model/builders.ts
|
|
121
|
-
var j = (e, t = {}) => ({
|
|
122
|
-
type: "text",
|
|
123
|
-
content: e,
|
|
124
|
-
...t
|
|
125
|
-
}), M = (e, t) => t ? {
|
|
126
|
-
type: "heading",
|
|
127
|
-
text: e,
|
|
128
|
-
level: t
|
|
129
|
-
} : {
|
|
130
|
-
type: "heading",
|
|
131
|
-
text: e
|
|
132
|
-
}, N = (e, t = {}) => ({
|
|
133
|
-
type: "stack",
|
|
134
|
-
children: e,
|
|
135
|
-
...t
|
|
136
|
-
}), P = (e, t = {}) => ({
|
|
137
|
-
type: "row",
|
|
138
|
-
children: e,
|
|
139
|
-
...t
|
|
140
|
-
}), F = (e, t) => ({
|
|
141
|
-
type: "section",
|
|
142
|
-
title: e,
|
|
143
|
-
children: t
|
|
144
|
-
}), I = (e, t = {}) => ({
|
|
145
|
-
type: "image",
|
|
146
|
-
src: e,
|
|
147
|
-
...t
|
|
148
|
-
}), L = (e, t) => ({
|
|
149
|
-
type: "link",
|
|
150
|
-
href: e,
|
|
151
|
-
text: t
|
|
152
|
-
}), R = (e) => ({
|
|
153
|
-
type: "spacer",
|
|
154
|
-
size: e
|
|
155
|
-
}), z = () => ({ type: "divider" }), B = () => ({ type: "pageBreak" }), V = (e) => ({
|
|
156
|
-
type: "table",
|
|
157
|
-
...e
|
|
158
|
-
}), H = (e, t = {}) => ({
|
|
159
|
-
type: "keyValue",
|
|
160
|
-
items: e,
|
|
161
|
-
...t
|
|
162
|
-
}), fe = (e) => ({
|
|
163
|
-
type: "totals",
|
|
164
|
-
rows: e
|
|
165
|
-
}), pe = (e) => ({
|
|
166
|
-
type: "metric",
|
|
167
|
-
...e
|
|
168
|
-
}), me = (e, t) => t ? {
|
|
169
|
-
type: "badge",
|
|
170
|
-
text: e,
|
|
171
|
-
color: t
|
|
172
|
-
} : {
|
|
173
|
-
type: "badge",
|
|
174
|
-
text: e
|
|
175
|
-
}, he = (e) => ({
|
|
176
|
-
type: "header",
|
|
177
|
-
...e
|
|
178
|
-
}), ge = (e = {}) => ({
|
|
179
|
-
type: "pageNumber",
|
|
180
|
-
...e
|
|
181
|
-
}), _e = (e) => e, ve = (e) => ({
|
|
182
|
-
...e,
|
|
183
|
-
version: 1
|
|
184
|
-
});
|
|
185
|
-
function ye(e) {
|
|
186
|
-
let t = e;
|
|
187
|
-
return (...e) => ({
|
|
188
|
-
...t(...e),
|
|
189
|
-
version: 1
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region lib/pdf-core/model/data-table.ts
|
|
194
|
-
function be(e, t, n = {}) {
|
|
195
|
-
let { currency: r, totalLabel: i, ...a } = n, o = x(e, t, {
|
|
196
|
-
currency: r,
|
|
197
|
-
totalLabel: i
|
|
198
|
-
}), s = i === void 0 && !!e[0] && !e[0].total, c = s ? o.footer.map(([, ...e]) => [null, ...e]) : o.footer;
|
|
199
|
-
return {
|
|
200
|
-
type: "table",
|
|
201
|
-
columns: o.columns,
|
|
202
|
-
rows: o.rows,
|
|
203
|
-
...c.length > 0 && {
|
|
204
|
-
footer: c,
|
|
205
|
-
...s && { labelTotals: s }
|
|
206
|
-
},
|
|
207
|
-
...a
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
function xe(e, t, n = {}) {
|
|
211
|
-
let { currency: r, ...i } = n;
|
|
212
|
-
return {
|
|
213
|
-
type: "keyValue",
|
|
214
|
-
items: S(e, t, { currency: r }),
|
|
215
|
-
...i
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region lib/pdf-core/model/theme.ts
|
|
220
|
-
var U = {
|
|
221
|
-
colors: {
|
|
222
|
-
primary: "#485096",
|
|
223
|
-
secondary: "#347cb5",
|
|
224
|
-
text: "#0f172a",
|
|
225
|
-
muted: "#62748e",
|
|
226
|
-
border: "#e2e8f0",
|
|
227
|
-
headerBg: "#1e293b",
|
|
228
|
-
headerText: "#ffffff",
|
|
229
|
-
rowAlt: "#f8fafc",
|
|
230
|
-
logoBg: "#e2e8f0",
|
|
231
|
-
qrBg: "#f1f5f9",
|
|
232
|
-
success: "#15803d",
|
|
233
|
-
error: "#b91c1c"
|
|
234
|
-
},
|
|
235
|
-
fonts: {
|
|
236
|
-
sans: "Helvetica",
|
|
237
|
-
serif: "Times-Roman",
|
|
238
|
-
mono: "Courier"
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
function Se(e) {
|
|
242
|
-
return e ? {
|
|
243
|
-
colors: {
|
|
244
|
-
...U.colors,
|
|
245
|
-
...e.colors
|
|
246
|
-
},
|
|
247
|
-
fonts: {
|
|
248
|
-
...U.fonts,
|
|
249
|
-
...e.fonts
|
|
250
|
-
}
|
|
251
|
-
} : U;
|
|
252
|
-
}
|
|
253
|
-
function Ce(e, t) {
|
|
254
|
-
if (e !== void 0) return Object.keys(t.colors).includes(e) ? t.colors[e] : e;
|
|
255
|
-
}
|
|
256
|
-
//#endregion
|
|
1
|
+
import { n as e, t } from "./use-material-translation-gr5V24w5.js";
|
|
2
|
+
import { t as n } from "./Button-DcFHQ3oH.js";
|
|
3
|
+
import { computed as r, createBlock as i, createTextVNode as a, defineComponent as o, getCurrentInstance as s, nextTick as c, onMounted as l, onScopeDispose as u, openBlock as d, ref as f, renderSlot as p, shallowRef as m, toDisplayString as ee, toValue as h, unref as g, watch as te, withCtx as ne } from "vue";
|
|
4
|
+
import { contentDisposition as re, pdfBytesResponse as ie, toWebStream as ae } from "@nxgt/material-core/pdf/http";
|
|
5
|
+
import { badge as oe, dataTable as se, defaultPdfTheme as ce, definePdfDocument as _, divider as v, header as y, heading as b, image as x, keyValue as S, keyValueOf as C, link as w, metric as T, page as E, pageBreak as D, pageNumber as O, pdfDocument as k, resolvePdfColor as A, resolvePdfTheme as j, row as M, section as N, spacer as P, stack as F, table as I, text as L, totals as R } from "@nxgt/material-core/pdf/model";
|
|
6
|
+
import { definePrintColumns as z, resolvePrintFields as B, resolvePrintTable as le, toPrintValue as V } from "@nxgt/material-core/print-table";
|
|
7
|
+
import { formatPrintValue as H, isEmptyPrintValue as U } from "@nxgt/material-core/print-value";
|
|
8
|
+
import { OBJECT_URL_TTL_MS as W, downloadPdfFile as ue } from "@nxgt/material-core/pdf-download";
|
|
9
|
+
import { resolvePdfFileName as de } from "@nxgt/material-core/pdf-file-name";
|
|
10
|
+
import { IDLE_PDF_FILE as fe, createPdfFileLoader as pe } from "@nxgt/material-core/pdf/file-loader";
|
|
257
11
|
//#region lib/pdf/errors.ts
|
|
258
|
-
var
|
|
12
|
+
var G = ["@react-pdf", "renderer"].join("/"), K = class extends Error {
|
|
259
13
|
name = "PdfPeerMissingError";
|
|
260
14
|
cause;
|
|
261
15
|
constructor(e) {
|
|
262
|
-
super(`[@nxgt/material-vue/pdf] Rendering a PDF needs the optional peers \`react\` and \`${
|
|
16
|
+
super(`[@nxgt/material-vue/pdf] Rendering a PDF needs the optional peers \`react\` and \`${G}\`: bun add react ${G}@^4.9`), this.cause = e;
|
|
263
17
|
}
|
|
264
|
-
},
|
|
265
|
-
function
|
|
266
|
-
return
|
|
267
|
-
throw
|
|
268
|
-
}),
|
|
269
|
-
}
|
|
270
|
-
async function
|
|
271
|
-
let { core: r, reactPdf: i } = await
|
|
18
|
+
}, q;
|
|
19
|
+
function me() {
|
|
20
|
+
return q ??= import("./renderer.lazy-DCZLnjCM.js").catch((e) => {
|
|
21
|
+
throw q = void 0, new K(e);
|
|
22
|
+
}), q;
|
|
23
|
+
}
|
|
24
|
+
async function J(t, n = {}) {
|
|
25
|
+
let { core: r, reactPdf: i } = await me();
|
|
272
26
|
return {
|
|
273
27
|
element: r.renderPdfElement(t, {
|
|
274
28
|
custom: n.custom,
|
|
@@ -280,51 +34,51 @@ async function q(t, n = {}) {
|
|
|
280
34
|
}
|
|
281
35
|
//#endregion
|
|
282
36
|
//#region lib/pdf/output.ts
|
|
283
|
-
async function
|
|
284
|
-
let { element: n, reactPdf: r } = await
|
|
37
|
+
async function Y(e, t) {
|
|
38
|
+
let { element: n, reactPdf: r } = await J(e, t);
|
|
285
39
|
return r.pdf(n).toBlob();
|
|
286
40
|
}
|
|
287
|
-
async function
|
|
41
|
+
async function X(e, t) {
|
|
288
42
|
if (!(typeof process < "u" && process.versions?.node)) {
|
|
289
|
-
let n = await
|
|
43
|
+
let n = await Y(e, t);
|
|
290
44
|
return new Uint8Array(await n.arrayBuffer());
|
|
291
45
|
}
|
|
292
|
-
let { element: n, reactPdf: r } = await
|
|
46
|
+
let { element: n, reactPdf: r } = await J(e, t);
|
|
293
47
|
return new Uint8Array(await r.renderToBuffer(n));
|
|
294
48
|
}
|
|
295
|
-
async function
|
|
296
|
-
let { element: n, reactPdf: r } = await
|
|
297
|
-
return
|
|
49
|
+
async function he(e, t) {
|
|
50
|
+
let { element: n, reactPdf: r } = await J(e, t);
|
|
51
|
+
return ae(await r.renderToStream(n));
|
|
298
52
|
}
|
|
299
|
-
async function
|
|
300
|
-
return
|
|
53
|
+
async function ge(e, t = {}) {
|
|
54
|
+
return ie(await X(e, t), t);
|
|
301
55
|
}
|
|
302
|
-
var
|
|
303
|
-
async function
|
|
304
|
-
await
|
|
56
|
+
var Z = (e, t) => e instanceof Blob ? e : Y(e, t);
|
|
57
|
+
async function Q(e, t = {}) {
|
|
58
|
+
await ue(await Z(e, t), { fileName: t.fileName });
|
|
305
59
|
}
|
|
306
|
-
async function
|
|
60
|
+
async function $(e, t = {}) {
|
|
307
61
|
let n = window.open("", "_blank"), r;
|
|
308
62
|
try {
|
|
309
|
-
r = await
|
|
63
|
+
r = await Z(e, t);
|
|
310
64
|
} catch (e) {
|
|
311
65
|
throw n?.close(), e;
|
|
312
66
|
}
|
|
313
|
-
if (!n) return
|
|
67
|
+
if (!n) return Q(r, t);
|
|
314
68
|
n.opener = null;
|
|
315
|
-
let i =
|
|
316
|
-
n.location.href =
|
|
69
|
+
let i = de(r, t.fileName), a = new File([r], i, { type: "application/pdf" }), o = URL.createObjectURL(a);
|
|
70
|
+
n.location.href = o, window.setTimeout(() => URL.revokeObjectURL(o), W);
|
|
317
71
|
}
|
|
318
72
|
//#endregion
|
|
319
73
|
//#region lib/pdf/pdf-download-action.ts
|
|
320
|
-
function
|
|
321
|
-
let n =
|
|
74
|
+
function _e(e, t) {
|
|
75
|
+
let n = f(!1);
|
|
322
76
|
async function r() {
|
|
323
77
|
if (!n.value) {
|
|
324
78
|
n.value = !0;
|
|
325
79
|
try {
|
|
326
80
|
let { document: t, fileName: n } = e();
|
|
327
|
-
await
|
|
81
|
+
await Q(typeof t == "function" ? await t() : t, { fileName: n });
|
|
328
82
|
} catch (e) {
|
|
329
83
|
let n = t?.();
|
|
330
84
|
if (!n) throw e;
|
|
@@ -339,7 +93,7 @@ function Oe(e, t) {
|
|
|
339
93
|
run: r
|
|
340
94
|
};
|
|
341
95
|
}
|
|
342
|
-
function
|
|
96
|
+
function ve(e, t) {
|
|
343
97
|
let n = !1;
|
|
344
98
|
return () => {
|
|
345
99
|
let r = e();
|
|
@@ -351,7 +105,7 @@ function ke(e, t) {
|
|
|
351
105
|
}
|
|
352
106
|
//#endregion
|
|
353
107
|
//#region lib/pdf/pdf-download-button.vue
|
|
354
|
-
var
|
|
108
|
+
var ye = /* @__PURE__ */ o({
|
|
355
109
|
name: "PdfDownloadButton",
|
|
356
110
|
__name: "pdf-download-button",
|
|
357
111
|
props: {
|
|
@@ -361,17 +115,17 @@ var Q = /* @__PURE__ */ u({
|
|
|
361
115
|
},
|
|
362
116
|
emits: ["error"],
|
|
363
117
|
setup(e, { emit: r }) {
|
|
364
|
-
let
|
|
365
|
-
document:
|
|
366
|
-
fileName:
|
|
367
|
-
}),
|
|
368
|
-
return (t, r) => (
|
|
118
|
+
let o = e, c = r, { t: l } = t(), u = s(), { busy: f, run: m } = _e(() => ({
|
|
119
|
+
document: o.document,
|
|
120
|
+
fileName: o.fileName
|
|
121
|
+
}), ve(() => u?.vnode.props, (e) => c("error", e)));
|
|
122
|
+
return (t, r) => (d(), i(n, {
|
|
369
123
|
"data-slot": "pdf-download-button",
|
|
370
|
-
loading:
|
|
124
|
+
loading: g(f),
|
|
371
125
|
disabled: e.disabled,
|
|
372
|
-
onClick:
|
|
126
|
+
onClick: g(m)
|
|
373
127
|
}, {
|
|
374
|
-
default:
|
|
128
|
+
default: ne(() => [p(t.$slots, "default", {}, () => [a(ee(g(l)("material.pdf-reader.download", "Download")), 1)])]),
|
|
375
129
|
_: 3
|
|
376
130
|
}, 8, [
|
|
377
131
|
"loading",
|
|
@@ -379,85 +133,40 @@ var Q = /* @__PURE__ */ u({
|
|
|
379
133
|
"onClick"
|
|
380
134
|
]));
|
|
381
135
|
}
|
|
382
|
-
})
|
|
383
|
-
blob: null,
|
|
384
|
-
url: null,
|
|
385
|
-
loading: !1,
|
|
386
|
-
error: null
|
|
387
|
-
};
|
|
388
|
-
function Ae(e, t) {
|
|
389
|
-
let n = 0, r = null, i = $, a = (t) => {
|
|
390
|
-
i = t, e(t);
|
|
391
|
-
}, o = () => {
|
|
392
|
-
r && URL.revokeObjectURL(r), r = null;
|
|
393
|
-
};
|
|
394
|
-
return {
|
|
395
|
-
async load(e, s) {
|
|
396
|
-
let c = ++n;
|
|
397
|
-
if (e === null) {
|
|
398
|
-
o(), a($);
|
|
399
|
-
return;
|
|
400
|
-
}
|
|
401
|
-
a({
|
|
402
|
-
...i,
|
|
403
|
-
loading: !0,
|
|
404
|
-
error: null
|
|
405
|
-
});
|
|
406
|
-
try {
|
|
407
|
-
let i = await t(e, s);
|
|
408
|
-
if (c !== n) return;
|
|
409
|
-
o(), r = URL.createObjectURL(i), a({
|
|
410
|
-
blob: i,
|
|
411
|
-
url: r,
|
|
412
|
-
loading: !1,
|
|
413
|
-
error: null
|
|
414
|
-
});
|
|
415
|
-
} catch (e) {
|
|
416
|
-
if (c !== n) return;
|
|
417
|
-
o(), a({
|
|
418
|
-
...$,
|
|
419
|
-
error: e instanceof Error ? e : Error(String(e))
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
dispose() {
|
|
424
|
-
n++, o();
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
}
|
|
136
|
+
});
|
|
428
137
|
//#endregion
|
|
429
138
|
//#region lib/pdf/use-pdf.ts
|
|
430
|
-
function
|
|
431
|
-
let n =
|
|
139
|
+
function be(e, t = {}) {
|
|
140
|
+
let n = m(fe), i = pe((e) => {
|
|
432
141
|
n.value = e;
|
|
433
|
-
},
|
|
434
|
-
|
|
142
|
+
}, Y), a = () => typeof document < "u", o = !1, d = Promise.resolve(), f = async () => {
|
|
143
|
+
a() && (d = i.load(h(e) ?? null, t), await d);
|
|
435
144
|
};
|
|
436
145
|
if (t.immediate !== !1) {
|
|
437
146
|
let t = () => {
|
|
438
|
-
|
|
147
|
+
o = !0, te(() => h(e), f, {
|
|
439
148
|
immediate: !0,
|
|
440
149
|
deep: !0
|
|
441
150
|
});
|
|
442
|
-
}, n =
|
|
443
|
-
n && !n.isMounted ?
|
|
151
|
+
}, n = s();
|
|
152
|
+
n && !n.isMounted ? l(t) : a() && t();
|
|
444
153
|
}
|
|
445
|
-
|
|
446
|
-
|
|
154
|
+
u(() => {
|
|
155
|
+
o = !1, i.dispose();
|
|
447
156
|
});
|
|
448
|
-
let
|
|
157
|
+
let p = (e) => r(() => n.value[e]);
|
|
449
158
|
return {
|
|
450
|
-
blob:
|
|
451
|
-
url:
|
|
452
|
-
loading:
|
|
453
|
-
error:
|
|
454
|
-
refresh:
|
|
159
|
+
blob: p("blob"),
|
|
160
|
+
url: p("url"),
|
|
161
|
+
loading: p("loading"),
|
|
162
|
+
error: p("error"),
|
|
163
|
+
refresh: f,
|
|
455
164
|
async download(r = t.fileName) {
|
|
456
|
-
|
|
457
|
-
let i =
|
|
165
|
+
o && (await c(), await d);
|
|
166
|
+
let i = h(e);
|
|
458
167
|
if (!i) return;
|
|
459
|
-
let { blob:
|
|
460
|
-
await
|
|
168
|
+
let { blob: a, loading: s } = n.value;
|
|
169
|
+
await Q(o && !s && a || i, {
|
|
461
170
|
...t,
|
|
462
171
|
fileName: r
|
|
463
172
|
});
|
|
@@ -465,4 +174,4 @@ function je(e, t = {}) {
|
|
|
465
174
|
};
|
|
466
175
|
}
|
|
467
176
|
//#endregion
|
|
468
|
-
export {
|
|
177
|
+
export { ye as PdfDownloadButton, K as PdfPeerMissingError, oe as badge, re as contentDisposition, se as dataTable, ce as defaultPdfTheme, _ as definePdfDocument, z as definePrintColumns, v as divider, Q as downloadPdf, H as formatPrintValue, y as header, b as heading, x as image, U as isEmptyPrintValue, S as keyValue, C as keyValueOf, w as link, T as metric, $ as openPdf, E as page, D as pageBreak, O as pageNumber, k as pdfDocument, ge as pdfResponse, Y as renderPdfBlob, X as renderPdfBuffer, he as renderPdfStream, A as resolvePdfColor, j as resolvePdfTheme, B as resolvePrintFields, le as resolvePrintTable, M as row, N as section, P as spacer, F as stack, I as table, L as text, V as toPrintValue, R as totals, be as usePdf };
|