@nxgt/material-vue 0.22.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -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-G80plUZO.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-D3nLHMxx.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-HzYWblQm.js} +436 -429
- 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/nuxt/module.d.ts +3 -1
- package/dist/lib/nuxt/pdf-fonts.d.ts +30 -1
- 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-DycVwjfJ.js} +3 -3
- package/dist/pdf-page-CHfDMJ_4.js +255 -0
- package/dist/{pdf-page-list-Cy6S2VCO.js → pdf-page-list-Cy3Qgm2N.js} +2 -2
- package/dist/pdf-reader-D8CFeq1E.js +603 -0
- package/dist/{pdf-sidebar-DoGyXFtw.js → pdf-sidebar-D4BpuyNy.js} +4 -4
- package/dist/{pdf-thumbnail-sidebar-DmayzCN2.js → pdf-thumbnail-sidebar-Cl9o8zQp.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-CpzcZSMq.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 +24 -1
- package/docs/guides/pdf.md +10 -3
- package/docs/guides/ssr.md +7 -1
- package/docs/roadmap.md +9 -0
- package/docs/troubleshooting.md +81 -3
- package/lib/nuxt/module.ts +23 -6
- package/lib/nuxt/pdf-fonts.ts +101 -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,44 +0,0 @@
|
|
|
1
|
-
import { Image, Text, View } from '@react-pdf/renderer';
|
|
2
|
-
import { PdfNode, PdfStyle } from '../../model/types';
|
|
3
|
-
import { PdfRenderContext } from '../context';
|
|
4
|
-
type NodeOf<T extends PdfNode['type']> = Extract<PdfNode, {
|
|
5
|
-
type: T;
|
|
6
|
-
}>;
|
|
7
|
-
/** A model style with its theme colours and font resolved. */
|
|
8
|
-
export declare function toStyle(style: PdfStyle | undefined, ctx: PdfRenderContext): {
|
|
9
|
-
borderColor?: string | undefined;
|
|
10
|
-
backgroundColor?: string | undefined;
|
|
11
|
-
color?: string | undefined;
|
|
12
|
-
fontFamily?: string | undefined;
|
|
13
|
-
margin?: number;
|
|
14
|
-
marginTop?: number;
|
|
15
|
-
marginRight?: number;
|
|
16
|
-
marginBottom?: number;
|
|
17
|
-
marginLeft?: number;
|
|
18
|
-
padding?: number;
|
|
19
|
-
paddingTop?: number;
|
|
20
|
-
paddingRight?: number;
|
|
21
|
-
paddingBottom?: number;
|
|
22
|
-
paddingLeft?: number;
|
|
23
|
-
width?: number | string;
|
|
24
|
-
height?: number | string;
|
|
25
|
-
flex?: number;
|
|
26
|
-
gap?: number;
|
|
27
|
-
fontSize?: number;
|
|
28
|
-
fontWeight?: "normal" | "bold";
|
|
29
|
-
fontStyle?: "normal" | "italic";
|
|
30
|
-
textAlign?: "left" | "center" | "right" | "justify";
|
|
31
|
-
borderWidth?: number;
|
|
32
|
-
borderRadius?: number;
|
|
33
|
-
};
|
|
34
|
-
export declare const renderStack: (node: NodeOf<"stack">, ctx: PdfRenderContext) => import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').ViewProps>, View>;
|
|
35
|
-
export declare const renderRow: (node: NodeOf<"row">, ctx: PdfRenderContext) => import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').ViewProps>, View>;
|
|
36
|
-
export declare const renderText: (node: NodeOf<"text">, ctx: PdfRenderContext) => import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').TextProps> | import('@react-pdf/renderer').SVGTextProps, Text>;
|
|
37
|
-
export declare const renderHeading: (node: NodeOf<"heading">, ctx: PdfRenderContext) => import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').TextProps> | import('@react-pdf/renderer').SVGTextProps, Text>;
|
|
38
|
-
export declare const renderSection: (node: NodeOf<"section">, ctx: PdfRenderContext) => import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').ViewProps>, View>;
|
|
39
|
-
export declare const renderImage: (node: NodeOf<"image">) => import('react').CElement<import('@react-pdf/renderer').ImageProps, Image>;
|
|
40
|
-
export declare const renderLink: (node: NodeOf<"link">, ctx: PdfRenderContext) => import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').TextProps> | import('@react-pdf/renderer').SVGTextProps, Text>;
|
|
41
|
-
export declare const renderSpacer: (node: NodeOf<"spacer">) => import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').ViewProps>, View>;
|
|
42
|
-
export declare const renderDivider: (_node: NodeOf<"divider">, ctx: PdfRenderContext) => import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').ViewProps>, View>;
|
|
43
|
-
export declare const renderPageBreak: () => import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').ViewProps>, View>;
|
|
44
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { View } from '@react-pdf/renderer';
|
|
2
|
-
import { PdfNode } from '../../model/types';
|
|
3
|
-
import { PdfRenderContext } from '../context';
|
|
4
|
-
type TableNode = Extract<PdfNode, {
|
|
5
|
-
type: 'table';
|
|
6
|
-
}>;
|
|
7
|
-
/**
|
|
8
|
-
* A table: a header row that repeats at the top of each page the table
|
|
9
|
-
* crosses, body rows that never split (and stripe), then footer rows (totals)
|
|
10
|
-
* kept together. With no rows, the header and one muted row, or nothing with
|
|
11
|
-
* `hideWhenEmpty`.
|
|
12
|
-
*/
|
|
13
|
-
export declare function renderTable(node: TableNode, ctx: PdfRenderContext): import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').ViewProps>, View> | null;
|
|
14
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Page } from '@react-pdf/renderer';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { PdfBox, PdfPageOptions } from '../model/types';
|
|
4
|
-
import { PdfRenderContext } from './context';
|
|
5
|
-
export declare const DEFAULT_PDF_MARGINS: {
|
|
6
|
-
top: number;
|
|
7
|
-
right: number;
|
|
8
|
-
bottom: number;
|
|
9
|
-
left: number;
|
|
10
|
-
};
|
|
11
|
-
export declare const DEFAULT_FOOTER_HEIGHT = 24;
|
|
12
|
-
export type PdfMargins = typeof DEFAULT_PDF_MARGINS;
|
|
13
|
-
/**
|
|
14
|
-
* Margins in points from a number or a box: a side wins over its axis
|
|
15
|
-
* (`x`, `y`), which wins over the default.
|
|
16
|
-
*/
|
|
17
|
-
export declare function resolvePdfMargins(margins?: number | PdfBox): PdfMargins;
|
|
18
|
-
export type PdfPageParts = {
|
|
19
|
-
/** Repeated at the top of every page, in the flow. */
|
|
20
|
-
header?: ReactNode;
|
|
21
|
-
/** Repeated at the bottom of every page, in the space kept for it. */
|
|
22
|
-
footer?: ReactNode;
|
|
23
|
-
body: ReactNode[];
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* One react-pdf `Page`: size, orientation and margins, the header fixed at
|
|
27
|
-
* the top of each page, the footer and page number fixed in the space kept
|
|
28
|
-
* at the bottom, and the watermark behind everything.
|
|
29
|
-
*/
|
|
30
|
-
export declare function renderPdfPage(options: PdfPageOptions, parts: PdfPageParts, ctx: PdfRenderContext): import('react').CElement<import('react').PropsWithChildren<import('@react-pdf/renderer').PageProps>, Page>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { PdfNode } from '../model/types';
|
|
3
|
-
import { PdfRenderContext } from './context';
|
|
4
|
-
/**
|
|
5
|
-
* Renders one model node as react-pdf elements. An unknown `type` throws: a
|
|
6
|
-
* document from a newer version, or a typo in hand-written JSON.
|
|
7
|
-
*/
|
|
8
|
-
export declare function renderPdfNode(node: PdfNode, context: PdfRenderContext): ReactNode;
|
|
9
|
-
/** Renders a list of nodes, each under its index as key. */
|
|
10
|
-
export declare function renderPdfNodes(nodes: PdfNode[] | undefined, context: PdfRenderContext): ReactNode[];
|
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
import { Styles } from '@react-pdf/renderer';
|
|
2
|
-
import { PdfTheme } from '../model/theme';
|
|
3
|
-
/** One react-pdf style object. */
|
|
4
|
-
export type PdfElementStyle = Styles[string];
|
|
5
|
-
/**
|
|
6
|
-
* Plain react-pdf styles for every block, from a theme. The keys shared with
|
|
7
|
-
* `commonPrintStyles` hold exactly what `tw(commonPrintStyles.x)` gives in
|
|
8
|
-
* `@nxgt/material/print` (a test there compares them), so a document built
|
|
9
|
-
* from the model looks like one written with the JSX blocks.
|
|
10
|
-
*/
|
|
11
|
-
export declare function createPdfStyles({ colors: c, fonts }: PdfTheme): {
|
|
12
|
-
page: {
|
|
13
|
-
flexDirection: "column";
|
|
14
|
-
gap: number;
|
|
15
|
-
paddingTop: number;
|
|
16
|
-
paddingBottom: number;
|
|
17
|
-
paddingLeft: number;
|
|
18
|
-
paddingRight: number;
|
|
19
|
-
fontFamily: string;
|
|
20
|
-
fontSize: string;
|
|
21
|
-
color: string;
|
|
22
|
-
};
|
|
23
|
-
header: {
|
|
24
|
-
flexDirection: "row";
|
|
25
|
-
alignItems: "center";
|
|
26
|
-
marginBottom: number;
|
|
27
|
-
};
|
|
28
|
-
headerTitle: {
|
|
29
|
-
fontSize: string;
|
|
30
|
-
fontWeight: number;
|
|
31
|
-
color: string;
|
|
32
|
-
letterSpacing: number;
|
|
33
|
-
};
|
|
34
|
-
headerRef: {
|
|
35
|
-
fontSize: string;
|
|
36
|
-
color: string;
|
|
37
|
-
marginTop: number;
|
|
38
|
-
};
|
|
39
|
-
divider: {
|
|
40
|
-
borderBottomWidth: number;
|
|
41
|
-
borderColor: string;
|
|
42
|
-
marginBottom: number;
|
|
43
|
-
};
|
|
44
|
-
sectionTitle: {
|
|
45
|
-
fontSize: string;
|
|
46
|
-
fontWeight: number;
|
|
47
|
-
color: string;
|
|
48
|
-
marginBottom: number;
|
|
49
|
-
textTransform: "uppercase";
|
|
50
|
-
letterSpacing: number;
|
|
51
|
-
};
|
|
52
|
-
infoGrid: {
|
|
53
|
-
flexDirection: "row";
|
|
54
|
-
gap: number;
|
|
55
|
-
marginBottom: number;
|
|
56
|
-
};
|
|
57
|
-
infoCol: {
|
|
58
|
-
flex: string;
|
|
59
|
-
flexDirection: "column";
|
|
60
|
-
gap: number;
|
|
61
|
-
};
|
|
62
|
-
infoRow: {
|
|
63
|
-
flexDirection: "row";
|
|
64
|
-
gap: number;
|
|
65
|
-
};
|
|
66
|
-
infoLabel: {
|
|
67
|
-
fontSize: string;
|
|
68
|
-
color: string;
|
|
69
|
-
fontWeight: number;
|
|
70
|
-
width: number;
|
|
71
|
-
};
|
|
72
|
-
infoValue: {
|
|
73
|
-
fontSize: string;
|
|
74
|
-
color: string;
|
|
75
|
-
flex: string;
|
|
76
|
-
};
|
|
77
|
-
tableSection: {
|
|
78
|
-
marginBottom: number;
|
|
79
|
-
};
|
|
80
|
-
tableHeader: {
|
|
81
|
-
gap: number;
|
|
82
|
-
marginBottom: number;
|
|
83
|
-
paddingTop: number;
|
|
84
|
-
paddingBottom: number;
|
|
85
|
-
paddingLeft: number;
|
|
86
|
-
paddingRight: number;
|
|
87
|
-
flexDirection: "row";
|
|
88
|
-
backgroundColor: string;
|
|
89
|
-
borderRadius: number;
|
|
90
|
-
};
|
|
91
|
-
tableHeaderCell: {
|
|
92
|
-
fontSize: string;
|
|
93
|
-
fontWeight: number;
|
|
94
|
-
color: string;
|
|
95
|
-
};
|
|
96
|
-
tableRow: {
|
|
97
|
-
gap: number;
|
|
98
|
-
borderBottomWidth: number;
|
|
99
|
-
borderColor: string;
|
|
100
|
-
paddingTop: number;
|
|
101
|
-
paddingBottom: number;
|
|
102
|
-
paddingLeft: number;
|
|
103
|
-
paddingRight: number;
|
|
104
|
-
flexDirection: "row";
|
|
105
|
-
};
|
|
106
|
-
tableRowAlt: {
|
|
107
|
-
backgroundColor: string;
|
|
108
|
-
};
|
|
109
|
-
tableCell: {
|
|
110
|
-
fontSize: string;
|
|
111
|
-
color: string;
|
|
112
|
-
};
|
|
113
|
-
totalsSection: {
|
|
114
|
-
alignItems: "flex-end";
|
|
115
|
-
marginBottom: number;
|
|
116
|
-
};
|
|
117
|
-
totalsTable: {
|
|
118
|
-
width: string;
|
|
119
|
-
borderWidth: number;
|
|
120
|
-
borderColor: string;
|
|
121
|
-
borderRadius: number;
|
|
122
|
-
};
|
|
123
|
-
totalsRow: {
|
|
124
|
-
borderBottomWidth: number;
|
|
125
|
-
borderColor: string;
|
|
126
|
-
paddingTop: number;
|
|
127
|
-
paddingBottom: number;
|
|
128
|
-
paddingLeft: number;
|
|
129
|
-
paddingRight: number;
|
|
130
|
-
flexDirection: "row";
|
|
131
|
-
justifyContent: "space-between";
|
|
132
|
-
};
|
|
133
|
-
totalsRowLast: {
|
|
134
|
-
backgroundColor: string;
|
|
135
|
-
borderRadius: number;
|
|
136
|
-
paddingTop: number;
|
|
137
|
-
paddingBottom: number;
|
|
138
|
-
paddingLeft: number;
|
|
139
|
-
paddingRight: number;
|
|
140
|
-
flexDirection: "row";
|
|
141
|
-
justifyContent: "space-between";
|
|
142
|
-
};
|
|
143
|
-
totalsLabel: {
|
|
144
|
-
fontSize: string;
|
|
145
|
-
color: string;
|
|
146
|
-
};
|
|
147
|
-
totalsValue: {
|
|
148
|
-
fontSize: string;
|
|
149
|
-
color: string;
|
|
150
|
-
fontWeight: number;
|
|
151
|
-
};
|
|
152
|
-
totalsLabelBold: {
|
|
153
|
-
fontSize: string;
|
|
154
|
-
color: string;
|
|
155
|
-
fontWeight: number;
|
|
156
|
-
};
|
|
157
|
-
totalsValueBold: {
|
|
158
|
-
fontSize: string;
|
|
159
|
-
color: string;
|
|
160
|
-
fontWeight: number;
|
|
161
|
-
};
|
|
162
|
-
notesSection: {
|
|
163
|
-
borderWidth: number;
|
|
164
|
-
borderColor: string;
|
|
165
|
-
borderRadius: number;
|
|
166
|
-
padding: number;
|
|
167
|
-
};
|
|
168
|
-
notesText: {
|
|
169
|
-
fontSize: string;
|
|
170
|
-
color: string;
|
|
171
|
-
lineHeight: number;
|
|
172
|
-
};
|
|
173
|
-
badge: {
|
|
174
|
-
alignSelf: "flex-start";
|
|
175
|
-
paddingTop: number;
|
|
176
|
-
paddingBottom: number;
|
|
177
|
-
paddingLeft: number;
|
|
178
|
-
paddingRight: number;
|
|
179
|
-
borderRadius: number;
|
|
180
|
-
};
|
|
181
|
-
badgeText: {
|
|
182
|
-
fontSize: string;
|
|
183
|
-
fontWeight: number;
|
|
184
|
-
color: string;
|
|
185
|
-
};
|
|
186
|
-
section: {
|
|
187
|
-
marginBottom: number;
|
|
188
|
-
};
|
|
189
|
-
logoBox: {
|
|
190
|
-
width: string;
|
|
191
|
-
height: string;
|
|
192
|
-
borderRadius: number;
|
|
193
|
-
justifyContent: "center";
|
|
194
|
-
alignItems: "center";
|
|
195
|
-
};
|
|
196
|
-
logoText: {
|
|
197
|
-
fontSize: string;
|
|
198
|
-
fontWeight: number;
|
|
199
|
-
color: string;
|
|
200
|
-
letterSpacing: number;
|
|
201
|
-
textTransform: "uppercase";
|
|
202
|
-
};
|
|
203
|
-
headerCentre: {
|
|
204
|
-
flex: string;
|
|
205
|
-
flexDirection: "column";
|
|
206
|
-
alignItems: "center";
|
|
207
|
-
};
|
|
208
|
-
headerSubtitle: {
|
|
209
|
-
fontSize: string;
|
|
210
|
-
color: string;
|
|
211
|
-
marginTop: number;
|
|
212
|
-
};
|
|
213
|
-
qrBox: {
|
|
214
|
-
width: string;
|
|
215
|
-
height: string;
|
|
216
|
-
borderRadius: number;
|
|
217
|
-
};
|
|
218
|
-
heading1: {
|
|
219
|
-
fontSize: string;
|
|
220
|
-
fontWeight: number;
|
|
221
|
-
color: string;
|
|
222
|
-
marginBottom: number;
|
|
223
|
-
};
|
|
224
|
-
heading2: {
|
|
225
|
-
fontSize: string;
|
|
226
|
-
fontWeight: number;
|
|
227
|
-
color: string;
|
|
228
|
-
marginBottom: number;
|
|
229
|
-
};
|
|
230
|
-
heading3: {
|
|
231
|
-
fontSize: string;
|
|
232
|
-
fontWeight: number;
|
|
233
|
-
color: string;
|
|
234
|
-
marginBottom: number;
|
|
235
|
-
};
|
|
236
|
-
textBody: {
|
|
237
|
-
fontSize: string;
|
|
238
|
-
color: string;
|
|
239
|
-
};
|
|
240
|
-
textMuted: {
|
|
241
|
-
fontSize: string;
|
|
242
|
-
color: string;
|
|
243
|
-
};
|
|
244
|
-
textCaption: {
|
|
245
|
-
fontSize: string;
|
|
246
|
-
color: string;
|
|
247
|
-
};
|
|
248
|
-
textLabel: {
|
|
249
|
-
fontSize: string;
|
|
250
|
-
fontWeight: number;
|
|
251
|
-
color: string;
|
|
252
|
-
textTransform: "uppercase";
|
|
253
|
-
};
|
|
254
|
-
link: {
|
|
255
|
-
color: string;
|
|
256
|
-
textDecoration: "underline";
|
|
257
|
-
};
|
|
258
|
-
tableEmpty: {
|
|
259
|
-
fontSize: string;
|
|
260
|
-
color: string;
|
|
261
|
-
fontStyle: "italic";
|
|
262
|
-
};
|
|
263
|
-
tableFooter: {
|
|
264
|
-
gap: number;
|
|
265
|
-
paddingTop: number;
|
|
266
|
-
paddingBottom: number;
|
|
267
|
-
paddingLeft: number;
|
|
268
|
-
paddingRight: number;
|
|
269
|
-
flexDirection: "row";
|
|
270
|
-
};
|
|
271
|
-
tableFooterCell: {
|
|
272
|
-
fontSize: string;
|
|
273
|
-
fontWeight: number;
|
|
274
|
-
color: string;
|
|
275
|
-
};
|
|
276
|
-
metric: {
|
|
277
|
-
flex: string;
|
|
278
|
-
borderWidth: number;
|
|
279
|
-
borderColor: string;
|
|
280
|
-
borderRadius: number;
|
|
281
|
-
padding: number;
|
|
282
|
-
gap: number;
|
|
283
|
-
};
|
|
284
|
-
metricValue: {
|
|
285
|
-
fontSize: string;
|
|
286
|
-
fontWeight: number;
|
|
287
|
-
color: string;
|
|
288
|
-
};
|
|
289
|
-
deltaUp: {
|
|
290
|
-
fontSize: string;
|
|
291
|
-
color: string;
|
|
292
|
-
};
|
|
293
|
-
deltaDown: {
|
|
294
|
-
fontSize: string;
|
|
295
|
-
color: string;
|
|
296
|
-
};
|
|
297
|
-
pageNumber: {
|
|
298
|
-
fontSize: string;
|
|
299
|
-
color: string;
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
export type PdfStyles = ReturnType<typeof createPdfStyles>;
|
|
303
|
-
export type PdfStyleName = keyof PdfStyles;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { a as e, n as t, r as n, t as r } from "./pdf-source-CLguNN1r.js";
|
|
2
|
-
//#region lib/lib/pdf-file-name.ts
|
|
3
|
-
var i = "document";
|
|
4
|
-
function a(e) {
|
|
5
|
-
return /\.pdf$/i.test(e) ? e : `${e}.pdf`;
|
|
6
|
-
}
|
|
7
|
-
function o(e) {
|
|
8
|
-
try {
|
|
9
|
-
let { pathname: t, protocol: n } = new URL(e, "http://localhost/");
|
|
10
|
-
return n === "blob:" || n === "data:" ? "" : decodeURIComponent(t.split("/").pop() ?? "").replace(/[\\/]/g, "_");
|
|
11
|
-
} catch {
|
|
12
|
-
return "";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function s(n) {
|
|
16
|
-
if (t(n)) {
|
|
17
|
-
let { name: e } = n;
|
|
18
|
-
return typeof e == "string" ? e : "";
|
|
19
|
-
}
|
|
20
|
-
let r = e(n);
|
|
21
|
-
return r === null ? "" : o(r);
|
|
22
|
-
}
|
|
23
|
-
function c(e, t, n = i) {
|
|
24
|
-
return a(t?.trim() || s(e).trim() || n.trim() || "document");
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region lib/lib/pdf-download.ts
|
|
28
|
-
var l = 6e4;
|
|
29
|
-
function u(e) {
|
|
30
|
-
if (n(e)) return {
|
|
31
|
-
headers: e.httpHeaders,
|
|
32
|
-
credentials: e.withCredentials ? "include" : "same-origin"
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
async function d(n, i) {
|
|
36
|
-
let a = e(n);
|
|
37
|
-
if (a === null) return t(n) ? n : new Blob([r(n)], { type: "application/pdf" });
|
|
38
|
-
try {
|
|
39
|
-
let e = await i?.();
|
|
40
|
-
if (e?.byteLength) return new Blob([r(e)], { type: "application/pdf" });
|
|
41
|
-
} catch {}
|
|
42
|
-
try {
|
|
43
|
-
let e = u(n), t = await (e ? fetch(a, e) : fetch(a));
|
|
44
|
-
return t.ok ? await t.blob() : null;
|
|
45
|
-
} catch {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function f(e) {
|
|
50
|
-
window.setTimeout(() => URL.revokeObjectURL(e), l);
|
|
51
|
-
}
|
|
52
|
-
function p(e, t) {
|
|
53
|
-
let n = document.createElement("a");
|
|
54
|
-
n.href = e;
|
|
55
|
-
for (let [e, r] of Object.entries(t)) n.setAttribute(e, r);
|
|
56
|
-
n.style.display = "none", document.body.append(n), n.click(), n.remove();
|
|
57
|
-
}
|
|
58
|
-
function m(e, t) {
|
|
59
|
-
let n = URL.createObjectURL(e);
|
|
60
|
-
p(n, { download: t }), f(n);
|
|
61
|
-
}
|
|
62
|
-
function h(e) {
|
|
63
|
-
p(e, {
|
|
64
|
-
target: "_blank",
|
|
65
|
-
rel: "noopener"
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function g(t) {
|
|
69
|
-
return n(t) && t.httpHeaders ? null : e(t);
|
|
70
|
-
}
|
|
71
|
-
async function _(e, t = {}) {
|
|
72
|
-
let n = c(e, t.fileName, t.defaultName), r = await d(e, t.getData), i = g(e);
|
|
73
|
-
r ? m(r, n) : i !== null && h(i);
|
|
74
|
-
}
|
|
75
|
-
async function v(e, t = {}) {
|
|
76
|
-
let n = await d(e, t.getData);
|
|
77
|
-
if (!n) {
|
|
78
|
-
let t = g(e);
|
|
79
|
-
t !== null && h(t);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
let r = URL.createObjectURL(n), i = document.createElement("iframe");
|
|
83
|
-
i.setAttribute("aria-hidden", "true"), i.style.position = "fixed", i.style.right = "0", i.style.bottom = "0", i.style.width = "0", i.style.height = "0", i.style.border = "0", i.src = r, i.onload = () => {
|
|
84
|
-
try {
|
|
85
|
-
i.contentWindow?.focus(), i.contentWindow?.print();
|
|
86
|
-
} catch {
|
|
87
|
-
h(r);
|
|
88
|
-
} finally {
|
|
89
|
-
window.setTimeout(() => i.remove(), 1e3), f(r);
|
|
90
|
-
}
|
|
91
|
-
}, document.body.append(i);
|
|
92
|
-
}
|
|
93
|
-
//#endregion
|
|
94
|
-
export { c as i, _ as n, v as r, l as t };
|