@nxgt/material 2.2.0 → 2.3.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 +7 -2
- package/dist/{_Uint8Array-BlYETJ93.js → _Uint8Array-BDK6FjpM.js} +20 -20
- package/dist/{abnfDiagram-O67JEVCF-UBHbDvRt.js → abnfDiagram-O67JEVCF-C7NxOWqd.js} +8 -8
- package/dist/architecture-7GRP2DOG-CMg7-eYj.js +3 -0
- package/dist/{architectureDiagram-NJMV4G6O-YUaZEFrZ.js → architectureDiagram-NJMV4G6O-BIvwyzEh.js} +12 -12
- package/dist/{blockDiagram-BEXU5L5S-LYb2ZWFy.js → blockDiagram-BEXU5L5S-C8q-lXgt.js} +18 -18
- package/dist/{c4Diagram-YGBWAQC7-C-2N38iN.js → c4Diagram-YGBWAQC7-WgqlRIL5.js} +10 -10
- package/dist/channel-Ba8pEAWx.js +5 -0
- package/dist/{chunk-2Q5K7J3B-kzxEEeTu.js → chunk-2Q5K7J3B-C1pX24ft.js} +2 -2
- package/dist/{chunk-3FUC2YCW-uD4dp-_M.js → chunk-3FUC2YCW-BGpNbruY.js} +11 -11
- package/dist/{chunk-5DYCD2WN-B2Jnu3zk.js → chunk-5DYCD2WN-Bqi3iL5i.js} +5 -5
- package/dist/{chunk-5VM5RSS4-Cr17nBXp.js → chunk-5VM5RSS4-BFskf6Qk.js} +2 -2
- package/dist/{chunk-6AEJRKK7-C9kihZu8.js → chunk-6AEJRKK7-DDXoGWDs.js} +4 -4
- package/dist/{chunk-742MDFTN-C8SK_MEU.js → chunk-742MDFTN-nG_ROTnT.js} +14 -14
- package/dist/{chunk-7INBJB4K-CyUOVm3_.js → chunk-7INBJB4K-Dg64CbhT.js} +10 -10
- package/dist/{chunk-7M6MHVWA-stRISv0F.js → chunk-7M6MHVWA-_-i4Sb1c.js} +14 -14
- package/dist/{chunk-7PRAP22T-DSh07ASj.js → chunk-7PRAP22T-DIiYRAce.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-CNRH-hmN.js → chunk-GNY47TPC-BJperC1X.js} +14 -14
- package/dist/{chunk-GTNCS2PH-Dd-9mUKz.js → chunk-GTNCS2PH-CzDYTYNy.js} +5 -5
- package/dist/{chunk-GWA4HPMP-LeZ8CTY7.js → chunk-GWA4HPMP-CmsxMX3A.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-efJLM0ZL.js → chunk-MBY4JIJT-IA2XBafa.js} +8 -8
- package/dist/{chunk-NETBCI7D-Dh3LtOKr.js → chunk-NETBCI7D-D0kbMnm0.js} +3 -3
- package/dist/{chunk-O7XYJQB3-CocGKgmL.js → chunk-O7XYJQB3-C87zK8E5.js} +5 -5
- package/dist/{chunk-UA2S7LBM-C81eiQ4_.js → chunk-UA2S7LBM-B0LGFGu3.js} +10 -10
- package/dist/{chunk-WEXAMYUT-Dt2jrFYj.js → chunk-WEXAMYUT-C-QP0DFq.js} +4 -4
- package/dist/{chunk-XXDRQBXY-mQqOBHO_.js → chunk-XXDRQBXY-Bq4sFnO2.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-i11wjrBe.js → chunk-Y2CYZVJY-BAad7w_K.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-D00WQ1MY.js → chunk-Z7XXMR3K-CJmPL4k9.js} +12 -12
- package/dist/{chunk-ZIGJFQKS-Dqo-x9kg.js → chunk-ZIGJFQKS-HDJ6e6OJ.js} +29 -29
- package/dist/{classDiagram-v2-NBCMYWYE-C4ucYlr1.js → classDiagram-v2-NBCMYWYE-DRoCWiaP.js} +18 -18
- package/dist/{client-only.utils-ojMUdy5B.js → client-only.utils-qMX_CMiw.js} +25 -25
- package/dist/{components-DqMrnRRo.js → components-CRrswCsD.js} +33211 -26822
- package/dist/components.js +6 -7
- package/dist/{cose-bilkent-JH36ORCC-BgR2hiLh.js → cose-bilkent-JH36ORCC-11-T1rfk.js} +5 -5
- package/dist/cynefin-OW5HDTMX-BGe4AjUw.js +3 -0
- package/dist/{cynefinDiagram-VND7K2PF-wsthSZGu.js → cynefinDiagram-VND7K2PF-1kHi2rGa.js} +8 -8
- package/dist/{cytoscape.esm-_jXi1N4y.js → cytoscape.esm-DXVRLXF3.js} +1 -1
- package/dist/{dagre-6A5THRUB-D9hh4vCU.js → dagre-6A5THRUB-B11jdkPL.js} +104 -104
- package/dist/{diagram-22UHCM2B-Bu26TJjA.js → diagram-22UHCM2B-CAVrn_uY.js} +20 -20
- package/dist/diagram-3UASUU5V-uO9-gtWR.js +525 -0
- package/dist/{diagram-ATOU4E4O-DNtxHPVW.js → diagram-ATOU4E4O-Clju_0RY.js} +8 -8
- package/dist/{diagram-CDSNMT55-BrwCxgMX.js → diagram-CDSNMT55-w7kkJ6MU.js} +10 -10
- package/dist/{diagram-MLGK6HIB-Bk26pSvC.js → diagram-MLGK6HIB-mUOtRVmm.js} +8 -8
- package/dist/{diagram-MPIPVDR6-Bl3F8b-U.js → diagram-MPIPVDR6-DEUw58dq.js} +8 -8
- package/dist/{dist-C-0DUGrt.js → dist-CeHNxLJG.js} +30 -30
- package/dist/{dist-CZn89tDX.js → dist-gYpAi-su.js} +2 -2
- package/dist/dnd.js +1 -1
- package/dist/{ebnfDiagram-ZINNZB2B-C7vCu85A.js → ebnfDiagram-ZINNZB2B-BYfatie5.js} +8 -8
- package/dist/{elk-276RUBZZ-ChJLevem.js → elk-276RUBZZ-BALenDhN.js} +16 -16
- package/dist/{erDiagram-OPXOYQCR-DLzDCh2a.js → erDiagram-OPXOYQCR-FtFHGu-P.js} +17 -17
- package/dist/eventmodeling-NTZA5JFV-38h1xeNf.js +3 -0
- package/dist/{field-blur-CtjbtCDw.js → field-blur-DkydMwaN.js} +614 -643
- package/dist/flowDiagram-KWPJA3E3-DZwUgKQu.js +17 -0
- package/dist/{ganttDiagram-FUAMR5RP-35sd5PoK.js → ganttDiagram-FUAMR5RP-CmMpH0CG.js} +436 -1117
- package/dist/gitGraph-4MIJSDKK-C-5NH3Jx.js +3 -0
- package/dist/{gitGraphDiagram-X574FWY7-Z7zhlcB8.js → gitGraphDiagram-X574FWY7-DcGaPSwy.js} +8 -8
- package/dist/{graphlib-DlxAzBTD.js → graphlib-DovxbouT.js} +43 -43
- package/dist/hooks.js +15 -15
- package/dist/i18n.js +4 -4
- package/dist/{icon-button-38As1vrs.js → icon-button-Dl9PDYCE.js} +15 -15
- package/dist/info-A6RAGUB7-DTwpNebQ.js +3 -0
- package/dist/{infoDiagram-VRGFBTTK-BwoHwPPX.js → infoDiagram-VRGFBTTK-Cvj167dl.js} +6 -6
- package/dist/{init-Buj1GKRa.js → init-B-aM8wRX.js} +1 -1
- package/dist/{isArrayLikeObject-DsRXN32g.js → isArrayLikeObject-D0u9Q9Yg.js} +11 -11
- package/dist/{ishikawaDiagram-OU5B5YK6-C-aWtSta.js → ishikawaDiagram-OU5B5YK6-ChBwjCfr.js} +7 -7
- package/dist/{journeyDiagram-ZHPQQLJL-vXvTzJwE.js → journeyDiagram-ZHPQQLJL-DVxTOFQu.js} +7 -7
- package/dist/{kanban-definition-PNTS6WVX-Co0CvKcV.js → kanban-definition-PNTS6WVX-BRoa-Yp5.js} +14 -14
- package/dist/{katex-BMQ6LGsM.js → katex-BLTzjTha.js} +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/index.d.ts +3 -3
- package/dist/lib/components/ui/media/pdf-viewer/pdf-page-list.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/pdf-reader-body.d.ts +2 -2
- package/dist/lib/components/ui/media/pdf-viewer/pdf-reader.reducer.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/pdf-sidebar.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/pdf-thumbnail-sidebar.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-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/components/ui/media/pdf-viewer/use-pdf-source.d.ts +1 -1
- package/dist/lib/hooks/use-formatters.d.ts +1 -1
- package/dist/lib/lib/index.d.ts +1 -1
- package/dist/lib/print/components/print-data-table/print-data-table.d.ts +1 -1
- package/dist/lib/print/components/print-data-table/print-key-value.d.ts +2 -2
- package/dist/lib/print/components/print-data-table/print-metric.d.ts +2 -2
- package/dist/lib/print/components/print-document/print-document.d.ts +1 -1
- package/dist/lib/print/components/print-document/print-render-context.d.ts +1 -1
- package/dist/lib/print/components/print-header.d.ts +1 -1
- package/dist/lib/print/index.d.ts +4 -4
- package/dist/lib/print/output/index.d.ts +2 -2
- package/dist/lib/print/output/pdf-response.d.ts +1 -1
- package/dist/lib/print/output/types.d.ts +3 -3
- package/dist/lib/print/output/use-pdf-file.d.ts +1 -1
- package/dist/lib/vite/index.d.ts +5 -64
- package/dist/{lib-uF8iIfvP.js → lib-B_cBmfz5.js} +70 -69
- package/dist/lib.js +5 -6
- package/dist/main.js +17 -19
- package/dist/map.js +4 -4
- package/dist/{math-C5EhTgJw.js → math-D0ky-xWd.js} +1 -1
- package/dist/{merge-Z2oE4ahJ.js → merge-DQLOWMVN.js} +24 -24
- package/dist/{mermaid-parser.core-Cz-MfB4Z.js → mermaid-parser.core-BXD_TD1T.js} +32 -32
- package/dist/{mermaid.core-6Yzht5pQ.js → mermaid.core-CQ6lUhgC.js} +59 -59
- package/dist/{mindmap-definition-NLK3R4M7-AxpMaPtm.js → mindmap-definition-NLK3R4M7-DyB5NgHM.js} +18 -18
- package/dist/{number.utils-CRFiOD5c.js → number.utils-BiBN2hWJ.js} +48 -48
- package/dist/{ordinal-DuP05kVQ.js → ordinal-DwxdXP1t.js} +3 -3
- package/dist/packet-AYTQ26CC-Cc2sGaDY.js +3 -0
- package/dist/{path-Cjou0lUh.js → path-Cxq8zobN.js} +3 -3
- package/dist/{pdf.worker.min-DRpqlnXj.js → pdf.worker.min-ByGJNiUH.js} +1 -1
- package/dist/{pegDiagram-GJSIUBJH-DjilqSgv.js → pegDiagram-GJSIUBJH-Dcm3LCQX.js} +8 -8
- package/dist/pie-WAS4IAKB-Qm7ZL20Y.js +3 -0
- package/dist/{pieDiagram-5QR66LMP-H8rVCHkC.js → pieDiagram-5QR66LMP-DCdDWF2H.js} +16 -16
- package/dist/print.js +164 -1113
- package/dist/{quadrantDiagram-O4NWA36T-CEDIjm-K.js → quadrantDiagram-O4NWA36T-BMfcGUfy.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-BxR9jg9Y.js → railroadDiagram-XR7U4H2S-CzOJlTUA.js} +8 -8
- package/dist/{requirementDiagram-PLB6GJNP-DAuKYcHc.js → requirementDiagram-PLB6GJNP-Bg-uQlZj.js} +16 -16
- package/dist/{rough.esm-rcMoXTJj.js → rough.esm-Cvc79rxE.js} +1 -1
- package/dist/{sankeyDiagram-IPEJSGJF-C3JJqzLE.js → sankeyDiagram-IPEJSGJF-E-o_7bq2.js} +18 -18
- package/dist/{sequenceDiagram-PO4LG4MO-Cs8x9lRY.js → sequenceDiagram-PO4LG4MO-DMLeIQ03.js} +9 -9
- package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-C_032szM.js} +2 -2
- package/dist/{sortable-provider-DalccwHj.js → sortable-provider-NE74zkmo.js} +7 -7
- package/dist/{src-BIbdeDuO.js → src-CJ8DNrI1.js} +82 -82
- package/dist/{stateDiagram-v2-GCMORJYK-PpP0APmW.js → stateDiagram-v2-GCMORJYK-BDB4K1Fw.js} +17 -17
- package/dist/{step-B6KjpKgN.js → step-Dt43c9X4.js} +17 -17
- package/dist/{string-B-ZWXCs2.js → string-BqyOfyFV.js} +8 -8
- package/dist/{swimlanes-2SLR337P-BmqILJTV.js → swimlanes-2SLR337P-C406S8ui.js} +14 -14
- package/dist/swimlanesDiagram-TC7HE7FX-BstKZ--K.js +28 -0
- package/dist/{timeline-definition-EJHVYXUP-CEOIzkcq.js → timeline-definition-EJHVYXUP-BmhxT0qo.js} +8 -8
- package/dist/{translate-material-BO32ZDCi.js → translate-material-CRxs5aS3.js} +1 -1
- package/dist/{translator-CiPgm2s3.js → translator-BfyVF7Ej.js} +88 -88
- package/dist/treeView-Q6P3EWNA-Dyk8HSag.js +3 -0
- package/dist/treemap-WGGIJYW6-CHrhBv7m.js +3 -0
- package/dist/{use-heading-spy-DSs5Coe-.js → use-heading-spy-BiLosksJ.js} +2 -2
- package/dist/{use-material-translation-RhoPY_RC.js → use-material-translation-D3HwtYDm.js} +1 -1
- package/dist/{usecaseDiagram-POWQR4AR-CMvboR6A.js → usecaseDiagram-POWQR4AR-cHGV1E_T.js} +403 -403
- package/dist/{utils-Brj-Qb2N.js → utils-UBn-46YY.js} +2 -2
- package/dist/{vennDiagram-UO4OBE2U-xN_G4DeI.js → vennDiagram-UO4OBE2U-Aql8mhcy.js} +8 -8
- package/dist/vite.js +1 -17
- package/dist/wardley-WFR3VGLG-DnLHjx6k.js +3 -0
- package/dist/{wardleyDiagram-VNRHLVJA-C0B-kQ2b.js → wardleyDiagram-VNRHLVJA-tknlhG_t.js} +8 -8
- package/dist/{xychartDiagram-PMCCYNJV-Crmi6_s-.js → xychartDiagram-PMCCYNJV-ixeD_kO0.js} +24 -24
- package/docs/components/rich-widgets.md +2 -0
- package/docs/getting-started.md +20 -0
- package/docs/guides/printing.md +6 -2
- package/docs/guides/ssr.md +8 -2
- package/docs/roadmap.md +9 -0
- package/docs/troubleshooting.md +57 -2
- package/package.json +30 -33
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +0 -3
- package/dist/channel-CUIVvEUM.js +0 -5
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +0 -3
- package/dist/diagram-3UASUU5V-BEydDExL.js +0 -724
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +0 -3
- package/dist/flowDiagram-KWPJA3E3-uiZryqlC.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-format.utils.d.ts +0 -59
- 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-hrKrI5_6.js +0 -153
- package/dist/pie-WAS4IAKB-CYs22y4X.js +0 -3
- package/dist/print-format.utils-B7K9qvuo.js +0 -53
- package/dist/print-fraction-digits-WtEBeztr.js +0 -5
- 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/swimlanesDiagram-TC7HE7FX-DO3BxSlE.js +0 -28
- 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/print.js
CHANGED
|
@@ -1,241 +1,20 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-BUQY82bS.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
function C(e, t, n) {
|
|
18
|
-
return "accessor" in e ? e.accessor(t, n) : t[e.key];
|
|
19
|
-
}
|
|
20
|
-
var w = (e) => typeof e == "number" && Number.isFinite(e) ? e : null;
|
|
21
|
-
function ue(e, t, n) {
|
|
22
|
-
return (typeof e.currency == "function" ? t === void 0 ? void 0 : e.currency(t) : e.currency) ?? n.currency ?? null;
|
|
23
|
-
}
|
|
24
|
-
function T(e, t, n, r = {}) {
|
|
25
|
-
let { format: i } = e;
|
|
26
|
-
if (typeof i == "function") return n === void 0 ? String(t ?? "") : i(t, n);
|
|
27
|
-
if (t == null) return null;
|
|
28
|
-
switch (i) {
|
|
29
|
-
case "amount": return {
|
|
30
|
-
amount: w(t),
|
|
31
|
-
currency: ue(e, n, r)
|
|
32
|
-
};
|
|
33
|
-
case "number": return { number: w(t) };
|
|
34
|
-
case "percent": return {
|
|
35
|
-
number: w(t),
|
|
36
|
-
style: "percent"
|
|
37
|
-
};
|
|
38
|
-
case "date": return t instanceof Date ? { date: t.toISOString() } : typeof t == "string" || typeof t == "number" ? { date: t } : null;
|
|
39
|
-
default: return t instanceof Date ? { date: t.toISOString() } : typeof t == "number" ? t : String(t);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
var de = (e) => e === "amount" || e === "number" || e === "percent";
|
|
43
|
-
function fe(e, t, n) {
|
|
44
|
-
if (!e.total) return null;
|
|
45
|
-
let r = e.total === "sum" ? t.reduce((t, n, r) => t + (w(C(e, n, r)) ?? 0), 0) : e.total(t);
|
|
46
|
-
if (typeof r == "string") return r;
|
|
47
|
-
let i = new Set(t.map((t) => ue(e, t, n)));
|
|
48
|
-
return e.format === "amount" && i.size > 1 ? null : T(e, r, t[0], n);
|
|
49
|
-
}
|
|
50
|
-
function E(e, t, n = {}) {
|
|
51
|
-
return {
|
|
52
|
-
columns: e.map((e) => ({
|
|
53
|
-
id: le(e),
|
|
54
|
-
label: e.label,
|
|
55
|
-
align: e.align ?? (de(e.format) ? "right" : "left"),
|
|
56
|
-
...e.width !== void 0 && { width: e.width },
|
|
57
|
-
...e.flex !== void 0 && { flex: e.flex }
|
|
58
|
-
})),
|
|
59
|
-
rows: t.map((t, r) => e.map((e) => T(e, C(e, t, r), t, n))),
|
|
60
|
-
footer: e.some((e) => e.total) ? [e.map((e, r) => r === 0 && !e.total ? n.totalLabel ?? "Total" : fe(e, t, n))] : [],
|
|
61
|
-
empty: t.length === 0
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function D(e, t, n = {}) {
|
|
65
|
-
return e.map((e) => ({
|
|
66
|
-
label: e.label,
|
|
67
|
-
value: T(e, C(e, t, 0), t, n)
|
|
68
|
-
}));
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region lib/lib/print-value.utils.ts
|
|
72
|
-
var pe = "—";
|
|
73
|
-
function O(e, t, n, r) {
|
|
74
|
-
let i = Math.min(100, Math.max(0, Math.trunc(n ?? (t === "percent" ? 0 : 3))));
|
|
75
|
-
try {
|
|
76
|
-
return new Intl.NumberFormat(r, {
|
|
77
|
-
style: t,
|
|
78
|
-
maximumFractionDigits: i
|
|
79
|
-
}).format(e);
|
|
80
|
-
} catch {
|
|
81
|
-
return String(t === "percent" ? `${e * 100}%` : e);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function k(e) {
|
|
85
|
-
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;
|
|
86
|
-
}
|
|
87
|
-
function A(e, t = {}) {
|
|
88
|
-
let { locale: n, timeZone: r, empty: i = pe } = t;
|
|
89
|
-
return k(e) ? i : typeof e == "string" ? e : typeof e == "number" ? O(e, "decimal", void 0, n) : e == null ? i : "amount" in e ? o(e.amount, e.currency, {
|
|
90
|
-
locale: n,
|
|
91
|
-
fractionDigits: e.fractionDigits
|
|
92
|
-
}) : "date" in e ? s(e.date, {
|
|
93
|
-
locale: n,
|
|
94
|
-
timeZone: r,
|
|
95
|
-
dateStyle: e.dateStyle,
|
|
96
|
-
timeStyle: e.timeStyle
|
|
97
|
-
}) : O(e.number, e.style ?? "decimal", e.fractionDigits, n);
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region lib/pdf-core/model/builders.ts
|
|
101
|
-
var me = (e, t = {}) => ({
|
|
102
|
-
type: "text",
|
|
103
|
-
content: e,
|
|
104
|
-
...t
|
|
105
|
-
}), he = (e, t) => t ? {
|
|
106
|
-
type: "heading",
|
|
107
|
-
text: e,
|
|
108
|
-
level: t
|
|
109
|
-
} : {
|
|
110
|
-
type: "heading",
|
|
111
|
-
text: e
|
|
112
|
-
}, ge = (e, t = {}) => ({
|
|
113
|
-
type: "stack",
|
|
114
|
-
children: e,
|
|
115
|
-
...t
|
|
116
|
-
}), _e = (e, t = {}) => ({
|
|
117
|
-
type: "row",
|
|
118
|
-
children: e,
|
|
119
|
-
...t
|
|
120
|
-
}), ve = (e, t) => ({
|
|
121
|
-
type: "section",
|
|
122
|
-
title: e,
|
|
123
|
-
children: t
|
|
124
|
-
}), ye = (e, t = {}) => ({
|
|
125
|
-
type: "image",
|
|
126
|
-
src: e,
|
|
127
|
-
...t
|
|
128
|
-
}), be = (e, t) => ({
|
|
129
|
-
type: "link",
|
|
130
|
-
href: e,
|
|
131
|
-
text: t
|
|
132
|
-
}), xe = (e) => ({
|
|
133
|
-
type: "spacer",
|
|
134
|
-
size: e
|
|
135
|
-
}), Se = () => ({ type: "divider" }), Ce = () => ({ type: "pageBreak" }), we = (e) => ({
|
|
136
|
-
type: "table",
|
|
137
|
-
...e
|
|
138
|
-
}), Te = (e, t = {}) => ({
|
|
139
|
-
type: "keyValue",
|
|
140
|
-
items: e,
|
|
141
|
-
...t
|
|
142
|
-
}), Ee = (e) => ({
|
|
143
|
-
type: "totals",
|
|
144
|
-
rows: e
|
|
145
|
-
}), De = (e) => ({
|
|
146
|
-
type: "metric",
|
|
147
|
-
...e
|
|
148
|
-
}), Oe = (e, t) => t ? {
|
|
149
|
-
type: "badge",
|
|
150
|
-
text: e,
|
|
151
|
-
color: t
|
|
152
|
-
} : {
|
|
153
|
-
type: "badge",
|
|
154
|
-
text: e
|
|
155
|
-
}, ke = (e) => ({
|
|
156
|
-
type: "header",
|
|
157
|
-
...e
|
|
158
|
-
}), Ae = (e = {}) => ({
|
|
159
|
-
type: "pageNumber",
|
|
160
|
-
...e
|
|
161
|
-
}), je = (e) => e, Me = (e) => ({
|
|
162
|
-
...e,
|
|
163
|
-
version: 1
|
|
164
|
-
});
|
|
165
|
-
function Ne(e) {
|
|
166
|
-
let t = e;
|
|
167
|
-
return (...e) => ({
|
|
168
|
-
...t(...e),
|
|
169
|
-
version: 1
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region lib/pdf-core/model/data-table.ts
|
|
174
|
-
function Pe(e, t, n = {}) {
|
|
175
|
-
let { currency: r, totalLabel: i, ...a } = n, o = E(e, t, {
|
|
176
|
-
currency: r,
|
|
177
|
-
totalLabel: i
|
|
178
|
-
}), s = i === void 0 && !!e[0] && !e[0].total, c = s ? o.footer.map(([, ...e]) => [null, ...e]) : o.footer;
|
|
179
|
-
return {
|
|
180
|
-
type: "table",
|
|
181
|
-
columns: o.columns,
|
|
182
|
-
rows: o.rows,
|
|
183
|
-
...c.length > 0 && {
|
|
184
|
-
footer: c,
|
|
185
|
-
...s && { labelTotals: s }
|
|
186
|
-
},
|
|
187
|
-
...a
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
function Fe(e, t, n = {}) {
|
|
191
|
-
let { currency: r, ...i } = n;
|
|
192
|
-
return {
|
|
193
|
-
type: "keyValue",
|
|
194
|
-
items: D(e, t, { currency: r }),
|
|
195
|
-
...i
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region lib/pdf-core/model/theme.ts
|
|
200
|
-
var j = {
|
|
201
|
-
colors: {
|
|
202
|
-
primary: "#485096",
|
|
203
|
-
secondary: "#347cb5",
|
|
204
|
-
text: "#0f172a",
|
|
205
|
-
muted: "#62748e",
|
|
206
|
-
border: "#e2e8f0",
|
|
207
|
-
headerBg: "#1e293b",
|
|
208
|
-
headerText: "#ffffff",
|
|
209
|
-
rowAlt: "#f8fafc",
|
|
210
|
-
logoBg: "#e2e8f0",
|
|
211
|
-
qrBg: "#f1f5f9",
|
|
212
|
-
success: "#15803d",
|
|
213
|
-
error: "#b91c1c"
|
|
214
|
-
},
|
|
215
|
-
fonts: {
|
|
216
|
-
sans: "Helvetica",
|
|
217
|
-
serif: "Times-Roman",
|
|
218
|
-
mono: "Courier"
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
function M(e) {
|
|
222
|
-
return e ? {
|
|
223
|
-
colors: {
|
|
224
|
-
...j.colors,
|
|
225
|
-
...e.colors
|
|
226
|
-
},
|
|
227
|
-
fonts: {
|
|
228
|
-
...j.fonts,
|
|
229
|
-
...e.fonts
|
|
230
|
-
}
|
|
231
|
-
} : j;
|
|
232
|
-
}
|
|
233
|
-
function N(e, t) {
|
|
234
|
-
if (e !== void 0) return Object.keys(t.colors).includes(e) ? t.colors[e] : e;
|
|
235
|
-
}
|
|
236
|
-
//#endregion
|
|
2
|
+
import { t } from "./translate-material-CRxs5aS3.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { Children as i, createContext as a, isValidElement as o, useCallback as s, useContext as c, useEffect as l, useMemo as u, useState as d } from "react";
|
|
5
|
+
import { OBJECT_URL_TTL_MS as f, downloadPdfFile as p } from "@nxgt/material-core/pdf-download";
|
|
6
|
+
import { createFormatters as m, formatAmount as h, formatDate as g } from "@nxgt/material-core/print-format";
|
|
7
|
+
import { badge as _, dataTable as v, defaultPdfTheme as y, definePdfDocument as b, divider as x, header as S, heading as C, image as w, keyValue as T, keyValueOf as ee, link as te, metric as ne, page as re, pageBreak as ie, pageNumber as ae, pdfDocument as oe, resolvePdfColor as se, resolvePdfTheme as ce, row as le, section as ue, spacer as de, stack as fe, table as pe, text as me, totals as he } from "@nxgt/material-core/pdf/model";
|
|
8
|
+
import { definePrintColumns as ge, resolvePrintFields as E, resolvePrintFields as D, resolvePrintTable as O, resolvePrintTable as k, toPrintValue as A, toPrintValue as j } from "@nxgt/material-core/print-table";
|
|
9
|
+
import { formatPrintValue as M, isEmptyPrintValue as N } from "@nxgt/material-core/print-value";
|
|
10
|
+
import { Text as P, View as F, pdf as I, renderToBuffer as L, renderToStream as _e } from "@react-pdf/renderer";
|
|
11
|
+
import { createTw as ve } from "react-pdf-tailwind";
|
|
12
|
+
import { DEFAULT_PDF_LANGUAGE as ye, createPdfContext as R, renderHeader as be, renderKeyValue as xe, renderMetric as Se, renderPdfDocumentShell as Ce, renderPdfElement as we, renderPdfPage as Te, renderTable as Ee, toPdfText as z } from "@nxgt/material-core/pdf/render";
|
|
13
|
+
import { contentDisposition as De, pdfBytesResponse as Oe, toWebStream as ke } from "@nxgt/material-core/pdf/http";
|
|
14
|
+
import { resolvePdfFileName as Ae } from "@nxgt/material-core/pdf-file-name";
|
|
15
|
+
import { IDLE_PDF_FILE as B, createPdfFileLoader as je } from "@nxgt/material-core/pdf/file-loader";
|
|
237
16
|
//#region lib/print/styles.ts
|
|
238
|
-
var
|
|
17
|
+
var V = {
|
|
239
18
|
page: "font-sans text-[9pt] text-slate-900 px-8 py-7 flex-col gap-0",
|
|
240
19
|
header: "flex-row items-center mb-4",
|
|
241
20
|
headerTitle: "text-[18pt] font-bold text-slate-900 tracking-tight",
|
|
@@ -265,7 +44,7 @@ var P = {
|
|
|
265
44
|
notesText: "text-[8pt] text-secondary leading-normal",
|
|
266
45
|
badge: "rounded-xl px-4 py-1.5 self-start",
|
|
267
46
|
badgeText: "text-[8pt] font-bold text-white"
|
|
268
|
-
},
|
|
47
|
+
}, H = ve({
|
|
269
48
|
colors: {
|
|
270
49
|
primary: "#485096",
|
|
271
50
|
secondary: "#347cb5",
|
|
@@ -286,714 +65,58 @@ var P = {
|
|
|
286
65
|
spacing: { xs: "2px" }
|
|
287
66
|
});
|
|
288
67
|
//#endregion
|
|
289
|
-
//#region lib/pdf-core/render/styles.ts
|
|
290
|
-
function Ie({ colors: e, fonts: t }) {
|
|
291
|
-
let n = (e, t) => ({
|
|
292
|
-
paddingTop: e,
|
|
293
|
-
paddingBottom: e,
|
|
294
|
-
paddingLeft: t,
|
|
295
|
-
paddingRight: t
|
|
296
|
-
});
|
|
297
|
-
return {
|
|
298
|
-
page: {
|
|
299
|
-
fontFamily: t.sans,
|
|
300
|
-
fontSize: "9pt",
|
|
301
|
-
color: e.text,
|
|
302
|
-
...n(21, 24),
|
|
303
|
-
flexDirection: "column",
|
|
304
|
-
gap: 0
|
|
305
|
-
},
|
|
306
|
-
header: {
|
|
307
|
-
flexDirection: "row",
|
|
308
|
-
alignItems: "center",
|
|
309
|
-
marginBottom: 12
|
|
310
|
-
},
|
|
311
|
-
headerTitle: {
|
|
312
|
-
fontSize: "18pt",
|
|
313
|
-
fontWeight: 700,
|
|
314
|
-
color: e.text,
|
|
315
|
-
letterSpacing: -.3
|
|
316
|
-
},
|
|
317
|
-
headerRef: {
|
|
318
|
-
fontSize: "10pt",
|
|
319
|
-
color: e.secondary,
|
|
320
|
-
marginTop: 1.5
|
|
321
|
-
},
|
|
322
|
-
divider: {
|
|
323
|
-
borderBottomWidth: 1,
|
|
324
|
-
borderColor: e.border,
|
|
325
|
-
marginBottom: 10.5
|
|
326
|
-
},
|
|
327
|
-
sectionTitle: {
|
|
328
|
-
fontSize: "9pt",
|
|
329
|
-
fontWeight: 700,
|
|
330
|
-
color: e.secondary,
|
|
331
|
-
marginBottom: 4.5,
|
|
332
|
-
textTransform: "uppercase",
|
|
333
|
-
letterSpacing: .3
|
|
334
|
-
},
|
|
335
|
-
infoGrid: {
|
|
336
|
-
flexDirection: "row",
|
|
337
|
-
gap: 12,
|
|
338
|
-
marginBottom: 10.5
|
|
339
|
-
},
|
|
340
|
-
infoCol: {
|
|
341
|
-
flex: "1 1 0%",
|
|
342
|
-
flexDirection: "column",
|
|
343
|
-
gap: 4.5
|
|
344
|
-
},
|
|
345
|
-
infoRow: {
|
|
346
|
-
flexDirection: "row",
|
|
347
|
-
gap: 3
|
|
348
|
-
},
|
|
349
|
-
infoLabel: {
|
|
350
|
-
fontSize: "8pt",
|
|
351
|
-
color: e.muted,
|
|
352
|
-
fontWeight: 700,
|
|
353
|
-
width: 96
|
|
354
|
-
},
|
|
355
|
-
infoValue: {
|
|
356
|
-
fontSize: "9pt",
|
|
357
|
-
color: e.text,
|
|
358
|
-
flex: "1 1 0%"
|
|
359
|
-
},
|
|
360
|
-
tableSection: { marginBottom: 10.5 },
|
|
361
|
-
tableHeader: {
|
|
362
|
-
flexDirection: "row",
|
|
363
|
-
backgroundColor: e.headerBg,
|
|
364
|
-
borderRadius: 2,
|
|
365
|
-
...n(4.5, 4.5),
|
|
366
|
-
gap: 4.5,
|
|
367
|
-
marginBottom: 1.5
|
|
368
|
-
},
|
|
369
|
-
tableHeaderCell: {
|
|
370
|
-
fontSize: "8pt",
|
|
371
|
-
fontWeight: 700,
|
|
372
|
-
color: e.headerText
|
|
373
|
-
},
|
|
374
|
-
tableRow: {
|
|
375
|
-
flexDirection: "row",
|
|
376
|
-
...n(4.5, 4.5),
|
|
377
|
-
gap: 4.5,
|
|
378
|
-
borderBottomWidth: 1,
|
|
379
|
-
borderColor: e.border
|
|
380
|
-
},
|
|
381
|
-
tableRowAlt: { backgroundColor: e.rowAlt },
|
|
382
|
-
tableCell: {
|
|
383
|
-
fontSize: "8pt",
|
|
384
|
-
color: e.text
|
|
385
|
-
},
|
|
386
|
-
totalsSection: {
|
|
387
|
-
alignItems: "flex-end",
|
|
388
|
-
marginBottom: 10.5
|
|
389
|
-
},
|
|
390
|
-
totalsTable: {
|
|
391
|
-
width: "220pt",
|
|
392
|
-
borderWidth: 1,
|
|
393
|
-
borderColor: e.border,
|
|
394
|
-
borderRadius: 3
|
|
395
|
-
},
|
|
396
|
-
totalsRow: {
|
|
397
|
-
flexDirection: "row",
|
|
398
|
-
justifyContent: "space-between",
|
|
399
|
-
...n(3, 7.5),
|
|
400
|
-
borderBottomWidth: 1,
|
|
401
|
-
borderColor: e.border
|
|
402
|
-
},
|
|
403
|
-
totalsRowLast: {
|
|
404
|
-
flexDirection: "row",
|
|
405
|
-
justifyContent: "space-between",
|
|
406
|
-
...n(4.5, 7.5),
|
|
407
|
-
backgroundColor: e.headerBg,
|
|
408
|
-
borderRadius: 2
|
|
409
|
-
},
|
|
410
|
-
totalsLabel: {
|
|
411
|
-
fontSize: "8pt",
|
|
412
|
-
color: e.secondary
|
|
413
|
-
},
|
|
414
|
-
totalsValue: {
|
|
415
|
-
fontSize: "8pt",
|
|
416
|
-
color: e.text,
|
|
417
|
-
fontWeight: 700
|
|
418
|
-
},
|
|
419
|
-
totalsLabelBold: {
|
|
420
|
-
fontSize: "9pt",
|
|
421
|
-
color: e.headerText,
|
|
422
|
-
fontWeight: 700
|
|
423
|
-
},
|
|
424
|
-
totalsValueBold: {
|
|
425
|
-
fontSize: "9pt",
|
|
426
|
-
color: e.headerText,
|
|
427
|
-
fontWeight: 700
|
|
428
|
-
},
|
|
429
|
-
notesSection: {
|
|
430
|
-
borderWidth: 1,
|
|
431
|
-
borderColor: e.border,
|
|
432
|
-
borderRadius: 6,
|
|
433
|
-
padding: 7.5
|
|
434
|
-
},
|
|
435
|
-
notesText: {
|
|
436
|
-
fontSize: "8pt",
|
|
437
|
-
color: e.secondary,
|
|
438
|
-
lineHeight: 1.5
|
|
439
|
-
},
|
|
440
|
-
badge: {
|
|
441
|
-
borderRadius: 9,
|
|
442
|
-
...n(4.5, 12),
|
|
443
|
-
alignSelf: "flex-start"
|
|
444
|
-
},
|
|
445
|
-
badgeText: {
|
|
446
|
-
fontSize: "8pt",
|
|
447
|
-
fontWeight: 700,
|
|
448
|
-
color: e.headerText
|
|
449
|
-
},
|
|
450
|
-
section: { marginBottom: 10.5 },
|
|
451
|
-
logoBox: {
|
|
452
|
-
width: "72pt",
|
|
453
|
-
height: "48pt",
|
|
454
|
-
borderRadius: 2,
|
|
455
|
-
justifyContent: "center",
|
|
456
|
-
alignItems: "center"
|
|
457
|
-
},
|
|
458
|
-
logoText: {
|
|
459
|
-
fontSize: "11pt",
|
|
460
|
-
fontWeight: 700,
|
|
461
|
-
color: e.secondary,
|
|
462
|
-
letterSpacing: 2,
|
|
463
|
-
textTransform: "uppercase"
|
|
464
|
-
},
|
|
465
|
-
headerCentre: {
|
|
466
|
-
flex: "1 1 0%",
|
|
467
|
-
flexDirection: "column",
|
|
468
|
-
alignItems: "center"
|
|
469
|
-
},
|
|
470
|
-
headerSubtitle: {
|
|
471
|
-
fontSize: "10pt",
|
|
472
|
-
color: e.muted,
|
|
473
|
-
marginTop: 1.5
|
|
474
|
-
},
|
|
475
|
-
qrBox: {
|
|
476
|
-
width: "60pt",
|
|
477
|
-
height: "60pt",
|
|
478
|
-
borderRadius: 2
|
|
479
|
-
},
|
|
480
|
-
heading1: {
|
|
481
|
-
fontSize: "16pt",
|
|
482
|
-
fontWeight: 700,
|
|
483
|
-
color: e.text,
|
|
484
|
-
marginBottom: 6
|
|
485
|
-
},
|
|
486
|
-
heading2: {
|
|
487
|
-
fontSize: "12pt",
|
|
488
|
-
fontWeight: 700,
|
|
489
|
-
color: e.text,
|
|
490
|
-
marginBottom: 4.5
|
|
491
|
-
},
|
|
492
|
-
heading3: {
|
|
493
|
-
fontSize: "10pt",
|
|
494
|
-
fontWeight: 700,
|
|
495
|
-
color: e.secondary,
|
|
496
|
-
marginBottom: 3
|
|
497
|
-
},
|
|
498
|
-
textBody: {
|
|
499
|
-
fontSize: "9pt",
|
|
500
|
-
color: e.text
|
|
501
|
-
},
|
|
502
|
-
textMuted: {
|
|
503
|
-
fontSize: "9pt",
|
|
504
|
-
color: e.muted
|
|
505
|
-
},
|
|
506
|
-
textCaption: {
|
|
507
|
-
fontSize: "7pt",
|
|
508
|
-
color: e.muted
|
|
509
|
-
},
|
|
510
|
-
textLabel: {
|
|
511
|
-
fontSize: "7pt",
|
|
512
|
-
fontWeight: 700,
|
|
513
|
-
color: e.muted,
|
|
514
|
-
textTransform: "uppercase"
|
|
515
|
-
},
|
|
516
|
-
link: {
|
|
517
|
-
color: e.secondary,
|
|
518
|
-
textDecoration: "underline"
|
|
519
|
-
},
|
|
520
|
-
tableEmpty: {
|
|
521
|
-
fontSize: "8pt",
|
|
522
|
-
color: e.muted,
|
|
523
|
-
fontStyle: "italic"
|
|
524
|
-
},
|
|
525
|
-
tableFooter: {
|
|
526
|
-
flexDirection: "row",
|
|
527
|
-
...n(4.5, 4.5),
|
|
528
|
-
gap: 4.5
|
|
529
|
-
},
|
|
530
|
-
tableFooterCell: {
|
|
531
|
-
fontSize: "8pt",
|
|
532
|
-
fontWeight: 700,
|
|
533
|
-
color: e.text
|
|
534
|
-
},
|
|
535
|
-
metric: {
|
|
536
|
-
flex: "1 1 0%",
|
|
537
|
-
borderWidth: 1,
|
|
538
|
-
borderColor: e.border,
|
|
539
|
-
borderRadius: 3,
|
|
540
|
-
padding: 7.5,
|
|
541
|
-
gap: 3
|
|
542
|
-
},
|
|
543
|
-
metricValue: {
|
|
544
|
-
fontSize: "14pt",
|
|
545
|
-
fontWeight: 700,
|
|
546
|
-
color: e.text
|
|
547
|
-
},
|
|
548
|
-
deltaUp: {
|
|
549
|
-
fontSize: "8pt",
|
|
550
|
-
color: e.success
|
|
551
|
-
},
|
|
552
|
-
deltaDown: {
|
|
553
|
-
fontSize: "8pt",
|
|
554
|
-
color: e.error
|
|
555
|
-
},
|
|
556
|
-
pageNumber: {
|
|
557
|
-
fontSize: "8pt",
|
|
558
|
-
color: e.muted
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
|
-
var Le = /[\u202f\u2009\u2212]/g, Re = {
|
|
563
|
-
" ": "\xA0",
|
|
564
|
-
" ": " ",
|
|
565
|
-
"−": "-"
|
|
566
|
-
};
|
|
567
|
-
function I(e) {
|
|
568
|
-
return e.replace(Le, (e) => Re[e] ?? e);
|
|
569
|
-
}
|
|
570
|
-
function ze(e, n, r) {
|
|
571
|
-
if (!r) return e;
|
|
572
|
-
try {
|
|
573
|
-
return String(new t(e, n).format(r));
|
|
574
|
-
} catch {
|
|
575
|
-
return e;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
function Be(e, t) {
|
|
579
|
-
let n = e.language || "en", r = e.locale ?? n, i = M(e.theme), a = {
|
|
580
|
-
language: n,
|
|
581
|
-
locale: r,
|
|
582
|
-
timeZone: e.timeZone,
|
|
583
|
-
theme: i,
|
|
584
|
-
styles: Ie(i),
|
|
585
|
-
t: (t, r, i) => I(e.translate ? e.translate(t, r, i) : ze(r, n, i)),
|
|
586
|
-
format: (t, n) => I(A(t, {
|
|
587
|
-
locale: r,
|
|
588
|
-
timeZone: e.timeZone,
|
|
589
|
-
...n
|
|
590
|
-
})),
|
|
591
|
-
renderNodes: (e) => t(e, a),
|
|
592
|
-
custom: e.custom ?? {}
|
|
593
|
-
};
|
|
594
|
-
return a;
|
|
595
|
-
}
|
|
596
|
-
//#endregion
|
|
597
68
|
//#region lib/print/components/pdf-text.ts
|
|
598
|
-
function
|
|
599
|
-
return typeof e == "string" ?
|
|
69
|
+
function U(e) {
|
|
70
|
+
return typeof e == "string" ? z(e) : Array.isArray(e) ? i.map(e, (e) => typeof e == "string" ? z(e) : e) : e;
|
|
600
71
|
}
|
|
601
72
|
//#endregion
|
|
602
73
|
//#region lib/print/components/print-badge.tsx
|
|
603
|
-
function
|
|
604
|
-
return /* @__PURE__ */
|
|
605
|
-
style: [
|
|
606
|
-
children: /* @__PURE__ */
|
|
607
|
-
style:
|
|
608
|
-
children:
|
|
74
|
+
function Me({ color: e, className: t, children: r }) {
|
|
75
|
+
return /* @__PURE__ */ n(F, {
|
|
76
|
+
style: [H(`${V.badge} ${t ?? ""}`), e ? { backgroundColor: e } : {}],
|
|
77
|
+
children: /* @__PURE__ */ n(P, {
|
|
78
|
+
style: H(V.badgeText),
|
|
79
|
+
children: U(r)
|
|
609
80
|
})
|
|
610
81
|
});
|
|
611
82
|
}
|
|
612
83
|
//#endregion
|
|
613
84
|
//#region lib/print/components/print-card.tsx
|
|
614
|
-
function
|
|
615
|
-
return /* @__PURE__ */
|
|
616
|
-
style:
|
|
85
|
+
function Ne({ children: e, className: t }) {
|
|
86
|
+
return /* @__PURE__ */ n(F, {
|
|
87
|
+
style: H(`border border-border rounded-xs p-2.5 flex-row gap-[24pt] ${t || ""}`),
|
|
617
88
|
children: e
|
|
618
89
|
});
|
|
619
90
|
}
|
|
620
|
-
function
|
|
621
|
-
return t ? /* @__PURE__ */
|
|
622
|
-
style:
|
|
623
|
-
children: [/* @__PURE__ */
|
|
624
|
-
style:
|
|
625
|
-
children:
|
|
626
|
-
}), /* @__PURE__ */
|
|
627
|
-
style:
|
|
628
|
-
children:
|
|
91
|
+
function Pe({ label: e, value: t }) {
|
|
92
|
+
return t ? /* @__PURE__ */ r(F, {
|
|
93
|
+
style: H("flex-col gap-0.5"),
|
|
94
|
+
children: [/* @__PURE__ */ n(P, {
|
|
95
|
+
style: H("text-[7pt] text-muted font-bold uppercase"),
|
|
96
|
+
children: U(e)
|
|
97
|
+
}), /* @__PURE__ */ n(P, {
|
|
98
|
+
style: H("text-[9pt] text-primary"),
|
|
99
|
+
children: U(t)
|
|
629
100
|
})]
|
|
630
101
|
}) : null;
|
|
631
102
|
}
|
|
632
103
|
//#endregion
|
|
633
|
-
//#region lib/pdf-core/render/nodes/table.ts
|
|
634
|
-
function R(e) {
|
|
635
|
-
return e.width === void 0 ? { flex: e.flex ?? 1 } : {
|
|
636
|
-
width: e.width,
|
|
637
|
-
flexGrow: 0,
|
|
638
|
-
flexShrink: 0
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
function z(e, t, n, r) {
|
|
642
|
-
return e.map((e, i) => f(x, { style: [
|
|
643
|
-
n,
|
|
644
|
-
R(e),
|
|
645
|
-
{ textAlign: e.align ?? "left" }
|
|
646
|
-
] }, r.format(t[i])));
|
|
647
|
-
}
|
|
648
|
-
function We(e, t) {
|
|
649
|
-
let { footer: n = [], columns: r, labelTotals: i } = e;
|
|
650
|
-
if (n.length === 0) return [];
|
|
651
|
-
let a = t.t("material.print.table.total", "Total");
|
|
652
|
-
return [f(S, { wrap: !1 }, ...n.map(([e, ...n]) => f(S, { style: t.styles.tableFooter }, ...z(r, [i && e == null ? a : e, ...n], t.styles.tableFooterCell, t))))];
|
|
653
|
-
}
|
|
654
|
-
function B(e, t) {
|
|
655
|
-
let { styles: n } = t, { columns: r, rows: i, striped: a = !0, repeatHeader: o = !0, keepRowsWhole: s = !0 } = e;
|
|
656
|
-
if (i.length === 0 && e.hideWhenEmpty) return null;
|
|
657
|
-
let c = f(S, {
|
|
658
|
-
style: n.tableHeader,
|
|
659
|
-
fixed: o,
|
|
660
|
-
minPresenceAhead: 24
|
|
661
|
-
}, ...r.map((e) => f(x, { style: [
|
|
662
|
-
n.tableHeaderCell,
|
|
663
|
-
R(e),
|
|
664
|
-
{ textAlign: e.align ?? "left" }
|
|
665
|
-
] }, I(e.label)))), l = i.length === 0 ? [f(S, {
|
|
666
|
-
style: n.tableRow,
|
|
667
|
-
wrap: !1
|
|
668
|
-
}, f(x, { style: [n.tableEmpty, { flex: 1 }] }, e.emptyText === void 0 ? t.t("material.print.table.empty", "No rows") : I(e.emptyText)))] : i.map((e, i) => f(S, {
|
|
669
|
-
style: [n.tableRow, a && i % 2 == 1 ? n.tableRowAlt : {}],
|
|
670
|
-
wrap: !s
|
|
671
|
-
}, ...z(r, e, n.tableCell, t))), u = We(e, t);
|
|
672
|
-
return f(S, { style: n.tableSection }, c, ...l, ...u);
|
|
673
|
-
}
|
|
674
|
-
//#endregion
|
|
675
|
-
//#region lib/pdf-core/render/nodes/blocks.ts
|
|
676
|
-
function V(e, t) {
|
|
677
|
-
let { styles: n } = t, r = e.keepEmpty ? e.items : e.items.filter((e) => !k(e.value));
|
|
678
|
-
if (r.length === 0) return null;
|
|
679
|
-
let i = (e) => f(S, {
|
|
680
|
-
style: n.infoRow,
|
|
681
|
-
wrap: !1
|
|
682
|
-
}, f(x, { style: n.infoLabel }, I(e.label)), f(x, { style: n.infoValue }, t.format(e.value)));
|
|
683
|
-
if ((e.columns ?? 1) === 1) return f(S, { style: [n.infoCol, { marginBottom: 10.5 }] }, ...r.map(i));
|
|
684
|
-
let a = Math.ceil(r.length / 2);
|
|
685
|
-
return f(S, { style: n.infoGrid }, f(S, { style: n.infoCol }, ...r.slice(0, a).map(i)), f(S, { style: n.infoCol }, ...r.slice(a).map(i)));
|
|
686
|
-
}
|
|
687
|
-
function Ge(e, t) {
|
|
688
|
-
let { styles: n } = t;
|
|
689
|
-
return f(S, {
|
|
690
|
-
style: n.totalsSection,
|
|
691
|
-
wrap: !1
|
|
692
|
-
}, f(S, { style: n.totalsTable }, ...e.rows.map((e) => f(S, { style: e.emphasis ? n.totalsRowLast : n.totalsRow }, f(x, { style: e.emphasis ? n.totalsLabelBold : n.totalsLabel }, I(e.label)), f(x, { style: e.emphasis ? n.totalsValueBold : n.totalsValue }, t.format(e.value))))));
|
|
693
|
-
}
|
|
694
|
-
function Ke(e, t) {
|
|
695
|
-
let n = t.format({
|
|
696
|
-
number: Math.abs(e) / 100,
|
|
697
|
-
style: "percent",
|
|
698
|
-
fractionDigits: 1
|
|
699
|
-
});
|
|
700
|
-
return `${e >= 0 ? "+" : "-"}${n}`;
|
|
701
|
-
}
|
|
702
|
-
function H(e, t) {
|
|
703
|
-
let { styles: n } = t;
|
|
704
|
-
return f(S, {
|
|
705
|
-
style: n.metric,
|
|
706
|
-
wrap: !1
|
|
707
|
-
}, f(x, { style: n.textLabel }, I(e.label)), f(x, { style: n.metricValue }, t.format(e.value)), ...e.delta === void 0 ? [] : [f(x, { style: e.delta >= 0 ? n.deltaUp : n.deltaDown }, Ke(e.delta, t))], ...e.hint ? [f(x, { style: n.textCaption }, I(e.hint))] : []);
|
|
708
|
-
}
|
|
709
|
-
function qe(e, t) {
|
|
710
|
-
return f(S, { style: [t.styles.badge, { backgroundColor: N(e.color ?? "primary", t.theme) }] }, f(x, { style: t.styles.badgeText }, I(e.text)));
|
|
711
|
-
}
|
|
712
|
-
function U(e, t) {
|
|
713
|
-
let n = e.format !== "page";
|
|
714
|
-
return f(x, {
|
|
715
|
-
style: [t.styles.pageNumber, { textAlign: e.align ?? "center" }],
|
|
716
|
-
fixed: !0,
|
|
717
|
-
render: ({ pageNumber: e, totalPages: r }) => n ? t.t("material.print.page-of", "Page {page} of {pages}", {
|
|
718
|
-
page: e,
|
|
719
|
-
pages: r
|
|
720
|
-
}) : t.t("material.print.page", "Page {page}", { page: e })
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
//#endregion
|
|
724
|
-
//#region lib/pdf-core/render/page.ts
|
|
725
|
-
var Je = {
|
|
726
|
-
top: 21,
|
|
727
|
-
right: 24,
|
|
728
|
-
bottom: 21,
|
|
729
|
-
left: 24
|
|
730
|
-
};
|
|
731
|
-
function Ye(e) {
|
|
732
|
-
if (typeof e == "number") return {
|
|
733
|
-
top: e,
|
|
734
|
-
right: e,
|
|
735
|
-
bottom: e,
|
|
736
|
-
left: e
|
|
737
|
-
};
|
|
738
|
-
let t = e ?? {}, n = Je;
|
|
739
|
-
return {
|
|
740
|
-
top: t.top ?? t.y ?? n.top,
|
|
741
|
-
right: t.right ?? t.x ?? n.right,
|
|
742
|
-
bottom: t.bottom ?? t.y ?? n.bottom,
|
|
743
|
-
left: t.left ?? t.x ?? n.left
|
|
744
|
-
};
|
|
745
|
-
}
|
|
746
|
-
function Xe(e, t) {
|
|
747
|
-
let n = typeof e == "string" ? { text: e } : e;
|
|
748
|
-
return f(S, {
|
|
749
|
-
fixed: !0,
|
|
750
|
-
style: {
|
|
751
|
-
position: "absolute",
|
|
752
|
-
top: 0,
|
|
753
|
-
right: 0,
|
|
754
|
-
bottom: 0,
|
|
755
|
-
left: 0,
|
|
756
|
-
justifyContent: "center",
|
|
757
|
-
alignItems: "center"
|
|
758
|
-
}
|
|
759
|
-
}, f(x, { style: {
|
|
760
|
-
fontSize: n.fontSize ?? 72,
|
|
761
|
-
fontWeight: 700,
|
|
762
|
-
color: N(n.color ?? "muted", t.theme),
|
|
763
|
-
opacity: n.opacity ?? .08,
|
|
764
|
-
transform: `rotate(${-(n.angle ?? 35)}deg)`
|
|
765
|
-
} }, I(n.text)));
|
|
766
|
-
}
|
|
767
|
-
function Ze(e, t, n, r, i) {
|
|
768
|
-
let a = [...e ? [f(S, {
|
|
769
|
-
key: "footer",
|
|
770
|
-
style: { flex: 1 }
|
|
771
|
-
}, e)] : [], ...t ? [f(S, {
|
|
772
|
-
key: "number",
|
|
773
|
-
style: e ? { marginLeft: 12 } : { flex: 1 }
|
|
774
|
-
}, t)] : []];
|
|
775
|
-
return n && e && t && (a.reverse(), a[0] = f(S, {
|
|
776
|
-
key: "number",
|
|
777
|
-
style: { marginRight: 12 }
|
|
778
|
-
}, t)), f(S, {
|
|
779
|
-
fixed: !0,
|
|
780
|
-
style: {
|
|
781
|
-
position: "absolute",
|
|
782
|
-
left: r.left,
|
|
783
|
-
right: r.right,
|
|
784
|
-
bottom: r.bottom,
|
|
785
|
-
height: i,
|
|
786
|
-
flexDirection: "row",
|
|
787
|
-
alignItems: "flex-end"
|
|
788
|
-
}
|
|
789
|
-
}, ...a);
|
|
790
|
-
}
|
|
791
|
-
function W(e, t, n) {
|
|
792
|
-
let r = Ye(e.margins), i = e.pageNumbers, a = !!t.footer || !!i, o = e.footerHeight ?? 24, s = i && U({
|
|
793
|
-
type: "pageNumber",
|
|
794
|
-
...typeof i == "object" ? i : {}
|
|
795
|
-
}, n), c = typeof i == "object" && i.align === "left";
|
|
796
|
-
return f(re, {
|
|
797
|
-
size: e.size ?? "A4",
|
|
798
|
-
orientation: e.orientation ?? "portrait",
|
|
799
|
-
wrap: !0,
|
|
800
|
-
style: {
|
|
801
|
-
...n.styles.page,
|
|
802
|
-
paddingTop: r.top,
|
|
803
|
-
paddingRight: r.right,
|
|
804
|
-
paddingLeft: r.left,
|
|
805
|
-
paddingBottom: r.bottom + (a ? o : 0)
|
|
806
|
-
}
|
|
807
|
-
}, ...e.watermark ? [Xe(e.watermark, n)] : [], ...t.header ? [f(S, { fixed: !0 }, t.header)] : [], ...t.body, ...a ? [Ze(t.footer, s, c, r, o)] : []);
|
|
808
|
-
}
|
|
809
|
-
//#endregion
|
|
810
|
-
//#region lib/pdf-core/render/nodes/header.ts
|
|
811
|
-
var G = {
|
|
812
|
-
width: 72,
|
|
813
|
-
height: 48
|
|
814
|
-
}, Qe = 60;
|
|
815
|
-
function $e(e, t) {
|
|
816
|
-
let { styles: n, theme: r } = t;
|
|
817
|
-
if (e.logo) {
|
|
818
|
-
let t = typeof e.logo == "string" ? { src: e.logo } : e.logo, n = t.width ?? G.width, r = t.height ?? G.height;
|
|
819
|
-
return f(y, {
|
|
820
|
-
src: t.src,
|
|
821
|
-
style: {
|
|
822
|
-
width: n,
|
|
823
|
-
height: r,
|
|
824
|
-
objectFit: "contain",
|
|
825
|
-
objectPosition: "left"
|
|
826
|
-
}
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
return e.logoText ? f(S, { style: [n.logoBox, { backgroundColor: r.colors.logoBg }] }, f(x, { style: n.logoText }, I(e.logoText))) : null;
|
|
830
|
-
}
|
|
831
|
-
function K(e, t) {
|
|
832
|
-
let { styles: n } = t, r = $e(e, t), i = e.qrDataUrl ? f(y, {
|
|
833
|
-
src: e.qrDataUrl,
|
|
834
|
-
style: n.qrBox
|
|
835
|
-
}) : null, a = e.logo && typeof e.logo == "object" ? e.logo.width ?? G.width : G.width, o = Math.max(r ? a : 0, i ? Qe : 0), s = f(S, { style: { width: o } }), c = e.reference ? I(`${e.referencePrefix ?? "#"}${e.reference}`) : null;
|
|
836
|
-
return f(S, { style: n.header }, ...o ? [f(S, { style: { width: o } }, r ?? s)] : [], f(S, { style: n.headerCentre }, f(x, { style: n.headerTitle }, I(e.title)), ...e.subtitle ? [f(x, { style: n.headerSubtitle }, I(e.subtitle))] : [], ...c ? [f(x, { style: n.headerRef }, c)] : []), ...o ? [f(S, { style: {
|
|
837
|
-
width: o,
|
|
838
|
-
alignItems: "flex-end"
|
|
839
|
-
} }, i ?? s)] : []);
|
|
840
|
-
}
|
|
841
|
-
//#endregion
|
|
842
|
-
//#region lib/pdf-core/render/nodes/layout.ts
|
|
843
|
-
function q(e, t) {
|
|
844
|
-
if (!e) return {};
|
|
845
|
-
let { color: n, backgroundColor: r, borderColor: i, fontFamily: a, ...o } = e;
|
|
846
|
-
return {
|
|
847
|
-
...o,
|
|
848
|
-
...a && Object.keys(t.theme.fonts).includes(a) && { fontFamily: t.theme.fonts[a] },
|
|
849
|
-
...n && { color: N(n, t.theme) },
|
|
850
|
-
...r && { backgroundColor: N(r, t.theme) },
|
|
851
|
-
...i && { borderColor: N(i, t.theme) }
|
|
852
|
-
};
|
|
853
|
-
}
|
|
854
|
-
var et = {
|
|
855
|
-
start: "flex-start",
|
|
856
|
-
center: "center",
|
|
857
|
-
end: "flex-end",
|
|
858
|
-
stretch: "stretch"
|
|
859
|
-
}, tt = {
|
|
860
|
-
start: "flex-start",
|
|
861
|
-
center: "center",
|
|
862
|
-
end: "flex-end",
|
|
863
|
-
between: "space-between"
|
|
864
|
-
}, nt = (e, t) => f(S, { style: {
|
|
865
|
-
flexDirection: "column",
|
|
866
|
-
gap: e.gap ?? 0,
|
|
867
|
-
...q(e.style, t)
|
|
868
|
-
} }, ...t.renderNodes(e.children)), rt = (e, t) => f(S, { style: {
|
|
869
|
-
flexDirection: "row",
|
|
870
|
-
gap: e.gap ?? 12,
|
|
871
|
-
...e.align && { alignItems: et[e.align] },
|
|
872
|
-
...e.justify && { justifyContent: tt[e.justify] },
|
|
873
|
-
...q(e.style, t)
|
|
874
|
-
} }, ...t.renderNodes(e.children));
|
|
875
|
-
function it(e, t) {
|
|
876
|
-
if (typeof e == "string") return I(e);
|
|
877
|
-
let n = {
|
|
878
|
-
...e.bold && { fontWeight: 700 },
|
|
879
|
-
...e.italic && { fontStyle: "italic" },
|
|
880
|
-
...e.color && { color: N(e.color, t.theme) },
|
|
881
|
-
...e.href && t.styles.link
|
|
882
|
-
};
|
|
883
|
-
return e.href ? f(b, {
|
|
884
|
-
src: e.href,
|
|
885
|
-
style: n
|
|
886
|
-
}, I(e.text)) : f(x, { style: n }, I(e.text));
|
|
887
|
-
}
|
|
888
|
-
var at = {
|
|
889
|
-
body: "textBody",
|
|
890
|
-
muted: "textMuted",
|
|
891
|
-
caption: "textCaption",
|
|
892
|
-
label: "textLabel"
|
|
893
|
-
}, ot = (e, t) => f(x, { style: {
|
|
894
|
-
...t.styles[at[e.variant ?? "body"]],
|
|
895
|
-
...q(e.style, t)
|
|
896
|
-
} }, ...typeof e.content == "string" ? [I(e.content)] : e.content.map((e) => it(e, t))), st = (e, t) => f(x, {
|
|
897
|
-
style: t.styles[`heading${e.level ?? 1}`],
|
|
898
|
-
minPresenceAhead: 24
|
|
899
|
-
}, I(e.text)), ct = (e, t) => f(S, { style: t.styles.section }, f(x, {
|
|
900
|
-
style: t.styles.sectionTitle,
|
|
901
|
-
minPresenceAhead: 24
|
|
902
|
-
}, I(e.title)), ...t.renderNodes(e.children)), lt = (e) => f(y, {
|
|
903
|
-
src: e.src,
|
|
904
|
-
style: {
|
|
905
|
-
...e.width !== void 0 && { width: e.width },
|
|
906
|
-
...e.height !== void 0 && { height: e.height },
|
|
907
|
-
objectFit: e.fit ?? "contain"
|
|
908
|
-
}
|
|
909
|
-
}), ut = (e, t) => f(x, null, f(b, {
|
|
910
|
-
src: e.href,
|
|
911
|
-
style: t.styles.link
|
|
912
|
-
}, I(e.text))), dt = (e) => f(S, { style: { height: e.size } }), ft = (e, t) => f(S, { style: t.styles.divider }), pt = () => f(S, { break: !0 }), mt = (e, t) => Object.keys(e).includes(t), ht = {
|
|
913
|
-
stack: nt,
|
|
914
|
-
row: rt,
|
|
915
|
-
text: ot,
|
|
916
|
-
heading: st,
|
|
917
|
-
section: ct,
|
|
918
|
-
image: lt,
|
|
919
|
-
link: ut,
|
|
920
|
-
spacer: dt,
|
|
921
|
-
divider: ft,
|
|
922
|
-
pageBreak: pt,
|
|
923
|
-
table: B,
|
|
924
|
-
keyValue: V,
|
|
925
|
-
totals: Ge,
|
|
926
|
-
metric: H,
|
|
927
|
-
badge: qe,
|
|
928
|
-
header: K,
|
|
929
|
-
pageNumber: U,
|
|
930
|
-
custom: (e, t) => {
|
|
931
|
-
let n = mt(t.custom, e.name) ? t.custom[e.name] : void 0;
|
|
932
|
-
if (!n) throw Error(`[pdf] No renderer for the custom node "${e.name}": pass it in \`custom\` when rendering.`);
|
|
933
|
-
return n(e.props ?? {}, t);
|
|
934
|
-
}
|
|
935
|
-
};
|
|
936
|
-
function gt(e, t) {
|
|
937
|
-
let n = mt(ht, e.type) ? ht[e.type] : void 0;
|
|
938
|
-
if (!n) throw Error(`[pdf] Unknown node type "${e.type}".`);
|
|
939
|
-
return n(e, t);
|
|
940
|
-
}
|
|
941
|
-
function _t(e, t) {
|
|
942
|
-
return (e ?? []).map((e, n) => f(d, { key: n }, gt(e, t)));
|
|
943
|
-
}
|
|
944
|
-
//#endregion
|
|
945
|
-
//#region lib/pdf-core/render/document.ts
|
|
946
|
-
function J(e = {}) {
|
|
947
|
-
return Be(e, _t);
|
|
948
|
-
}
|
|
949
|
-
function vt(e, t) {
|
|
950
|
-
let { title: n, author: r, subject: i, keywords: a, creator: o, producer: s, language: c } = e;
|
|
951
|
-
return f(v, {
|
|
952
|
-
title: n,
|
|
953
|
-
author: r,
|
|
954
|
-
subject: i,
|
|
955
|
-
keywords: a,
|
|
956
|
-
creator: o,
|
|
957
|
-
producer: s ?? o,
|
|
958
|
-
language: c
|
|
959
|
-
}, ...t);
|
|
960
|
-
}
|
|
961
|
-
function yt(e, t = {}) {
|
|
962
|
-
if (e.version !== 1) throw Error(`[pdf] Unsupported document version ${String(e.version)}: this version renders version 1.`);
|
|
963
|
-
let n = J({
|
|
964
|
-
language: e.language,
|
|
965
|
-
locale: e.locale,
|
|
966
|
-
timeZone: e.timeZone,
|
|
967
|
-
theme: e.theme,
|
|
968
|
-
...t
|
|
969
|
-
}), r = e.pages.map((e) => W(e, {
|
|
970
|
-
header: e.header?.length ? n.renderNodes(e.header) : void 0,
|
|
971
|
-
footer: e.footer?.length ? n.renderNodes(e.footer) : void 0,
|
|
972
|
-
body: n.renderNodes(e.body)
|
|
973
|
-
}, n));
|
|
974
|
-
return vt({
|
|
975
|
-
...e.meta,
|
|
976
|
-
creator: e.meta?.creator ?? t.defaultCreator,
|
|
977
|
-
language: e.language
|
|
978
|
-
}, r);
|
|
979
|
-
}
|
|
980
|
-
//#endregion
|
|
981
104
|
//#region lib/print/components/print-document/print-render-context.ts
|
|
982
|
-
var
|
|
983
|
-
function
|
|
984
|
-
return
|
|
105
|
+
var W = a(null), G;
|
|
106
|
+
function K() {
|
|
107
|
+
return G ??= R(), G;
|
|
985
108
|
}
|
|
986
|
-
function
|
|
987
|
-
return
|
|
109
|
+
function q() {
|
|
110
|
+
return c(W) ?? K();
|
|
988
111
|
}
|
|
989
112
|
//#endregion
|
|
990
113
|
//#region lib/print/components/print-data-table/print-data-table.tsx
|
|
991
|
-
function
|
|
992
|
-
let a =
|
|
114
|
+
function Fe({ columns: e, rows: t, currency: n, totalLabel: r, ...i }) {
|
|
115
|
+
let a = q(), o = k(e, t, {
|
|
993
116
|
currency: n,
|
|
994
117
|
totalLabel: r ?? a.t("material.print.table.total", "Total")
|
|
995
118
|
});
|
|
996
|
-
return
|
|
119
|
+
return Ee({
|
|
997
120
|
type: "table",
|
|
998
121
|
columns: o.columns,
|
|
999
122
|
rows: o.rows,
|
|
@@ -1003,9 +126,9 @@ function Ct({ columns: e, rows: t, currency: n, totalLabel: r, ...i }) {
|
|
|
1003
126
|
}
|
|
1004
127
|
//#endregion
|
|
1005
128
|
//#region lib/print/components/print-data-table/print-key-value.tsx
|
|
1006
|
-
function
|
|
1007
|
-
let t =
|
|
1008
|
-
return
|
|
129
|
+
function Ie(e) {
|
|
130
|
+
let t = q();
|
|
131
|
+
return xe({
|
|
1009
132
|
type: "keyValue",
|
|
1010
133
|
items: "items" in e ? e.items : D(e.fields, e.data, { currency: e.currency }),
|
|
1011
134
|
columns: e.columns,
|
|
@@ -1014,12 +137,12 @@ function wt(e) {
|
|
|
1014
137
|
}
|
|
1015
138
|
//#endregion
|
|
1016
139
|
//#region lib/print/components/print-data-table/print-metric.tsx
|
|
1017
|
-
function
|
|
1018
|
-
let o =
|
|
1019
|
-
return
|
|
140
|
+
function Le({ label: e, value: t, format: n, currency: r, hint: i, delta: a }) {
|
|
141
|
+
let o = q();
|
|
142
|
+
return Se({
|
|
1020
143
|
type: "metric",
|
|
1021
144
|
label: e,
|
|
1022
|
-
value: n && (typeof t == "number" || n === "date" && typeof t == "string") ?
|
|
145
|
+
value: n && (typeof t == "number" || n === "date" && typeof t == "string") ? j({
|
|
1023
146
|
id: "value",
|
|
1024
147
|
accessor: () => t,
|
|
1025
148
|
label: e,
|
|
@@ -1030,8 +153,8 @@ function Tt({ label: e, value: t, format: n, currency: r, hint: i, delta: a }) {
|
|
|
1030
153
|
delta: a
|
|
1031
154
|
}, o);
|
|
1032
155
|
}
|
|
1033
|
-
function
|
|
1034
|
-
return /* @__PURE__ */
|
|
156
|
+
function Re({ children: e }) {
|
|
157
|
+
return /* @__PURE__ */ n(F, {
|
|
1035
158
|
style: {
|
|
1036
159
|
flexDirection: "row",
|
|
1037
160
|
gap: 12,
|
|
@@ -1042,263 +165,191 @@ function Et({ children: e }) {
|
|
|
1042
165
|
}
|
|
1043
166
|
//#endregion
|
|
1044
167
|
//#region lib/print/components/print-document/print-document.tsx
|
|
1045
|
-
function
|
|
1046
|
-
let
|
|
1047
|
-
language:
|
|
1048
|
-
locale:
|
|
1049
|
-
timeZone:
|
|
1050
|
-
translate: (e,
|
|
168
|
+
function ze({ language: r, locale: a, timeZone: o, header: s, footer: c, children: l, title: d, author: f, subject: p, keywords: m, creator: h, producer: g, ..._ }) {
|
|
169
|
+
let v = e(), y = r || v?.language || ye, b = u(() => R({
|
|
170
|
+
language: y,
|
|
171
|
+
locale: a,
|
|
172
|
+
timeZone: o,
|
|
173
|
+
translate: (e, n, r) => t(y, e, n, r)
|
|
1051
174
|
}), [
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
]),
|
|
175
|
+
y,
|
|
176
|
+
a,
|
|
177
|
+
o
|
|
178
|
+
]), x = (e, t) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ n(P, {
|
|
1056
179
|
style: t,
|
|
1057
|
-
children:
|
|
1058
|
-
}) : e,
|
|
1059
|
-
style:
|
|
1060
|
-
render: (e) =>
|
|
1061
|
-
}) :
|
|
1062
|
-
return /* @__PURE__ */
|
|
1063
|
-
value:
|
|
1064
|
-
children:
|
|
1065
|
-
title:
|
|
1066
|
-
author:
|
|
1067
|
-
subject:
|
|
1068
|
-
keywords:
|
|
1069
|
-
creator:
|
|
1070
|
-
producer:
|
|
1071
|
-
language:
|
|
1072
|
-
}, [
|
|
1073
|
-
header:
|
|
1074
|
-
footer:
|
|
1075
|
-
body:
|
|
1076
|
-
},
|
|
180
|
+
children: z(String(e))
|
|
181
|
+
}) : e, S = typeof c == "function" ? /* @__PURE__ */ n(P, {
|
|
182
|
+
style: b.styles.textCaption,
|
|
183
|
+
render: (e) => z(c(e))
|
|
184
|
+
}) : x(c, b.styles.textCaption), C = x(s, b.styles.textBody);
|
|
185
|
+
return /* @__PURE__ */ n(W.Provider, {
|
|
186
|
+
value: b,
|
|
187
|
+
children: Ce({
|
|
188
|
+
title: d,
|
|
189
|
+
author: f,
|
|
190
|
+
subject: p,
|
|
191
|
+
keywords: m,
|
|
192
|
+
creator: h ?? "@nxgt/material",
|
|
193
|
+
producer: g,
|
|
194
|
+
language: y
|
|
195
|
+
}, [Te(_, {
|
|
196
|
+
header: C,
|
|
197
|
+
footer: S,
|
|
198
|
+
body: i.toArray(l)
|
|
199
|
+
}, b)])
|
|
1077
200
|
});
|
|
1078
201
|
}
|
|
1079
202
|
//#endregion
|
|
1080
203
|
//#region lib/print/components/print-header.tsx
|
|
1081
|
-
function
|
|
1082
|
-
return
|
|
204
|
+
function Be(e) {
|
|
205
|
+
return be({
|
|
1083
206
|
type: "header",
|
|
1084
207
|
...e
|
|
1085
|
-
},
|
|
208
|
+
}, K());
|
|
1086
209
|
}
|
|
1087
210
|
//#endregion
|
|
1088
211
|
//#region lib/print/components/print-section.tsx
|
|
1089
|
-
function
|
|
1090
|
-
return /* @__PURE__ */
|
|
1091
|
-
style:
|
|
1092
|
-
children: [/* @__PURE__ */
|
|
1093
|
-
style:
|
|
1094
|
-
children:
|
|
212
|
+
function Ve({ title: e, children: t, className: i }) {
|
|
213
|
+
return /* @__PURE__ */ r(F, {
|
|
214
|
+
style: H(i || "mb-3.5"),
|
|
215
|
+
children: [/* @__PURE__ */ n(P, {
|
|
216
|
+
style: H(V.sectionTitle),
|
|
217
|
+
children: U(e)
|
|
1095
218
|
}), t]
|
|
1096
219
|
});
|
|
1097
220
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return /* @__PURE__ */
|
|
1100
|
-
style:
|
|
1101
|
-
children: [/* @__PURE__ */
|
|
1102
|
-
style:
|
|
1103
|
-
children:
|
|
1104
|
-
}), typeof t == "string" || typeof t == "number" ? /* @__PURE__ */
|
|
1105
|
-
style:
|
|
1106
|
-
children:
|
|
221
|
+
function He({ label: e, value: t }) {
|
|
222
|
+
return /* @__PURE__ */ r(F, {
|
|
223
|
+
style: H(V.infoRow),
|
|
224
|
+
children: [/* @__PURE__ */ n(P, {
|
|
225
|
+
style: H(V.infoLabel),
|
|
226
|
+
children: U(e)
|
|
227
|
+
}), typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ n(P, {
|
|
228
|
+
style: H(V.infoValue),
|
|
229
|
+
children: U(t)
|
|
1107
230
|
}) : t]
|
|
1108
231
|
});
|
|
1109
232
|
}
|
|
1110
233
|
//#endregion
|
|
1111
234
|
//#region lib/print/components/print-table.tsx
|
|
1112
|
-
function
|
|
1113
|
-
return /* @__PURE__ */
|
|
1114
|
-
style:
|
|
235
|
+
function Ue({ children: e }) {
|
|
236
|
+
return /* @__PURE__ */ n(F, {
|
|
237
|
+
style: H(V.tableSection),
|
|
1115
238
|
children: e
|
|
1116
239
|
});
|
|
1117
240
|
}
|
|
1118
|
-
function
|
|
1119
|
-
return /* @__PURE__ */
|
|
1120
|
-
style:
|
|
241
|
+
function We({ children: e }) {
|
|
242
|
+
return /* @__PURE__ */ n(F, {
|
|
243
|
+
style: H(V.tableHeader),
|
|
1121
244
|
children: e
|
|
1122
245
|
});
|
|
1123
246
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return /* @__PURE__ */
|
|
1126
|
-
style: [
|
|
247
|
+
function Ge({ isAlt: e, children: t }) {
|
|
248
|
+
return /* @__PURE__ */ n(F, {
|
|
249
|
+
style: [H(V.tableRow), e ? H(V.tableRowAlt) : {}],
|
|
1127
250
|
children: t
|
|
1128
251
|
});
|
|
1129
252
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return /* @__PURE__ */
|
|
1132
|
-
style: [
|
|
253
|
+
function Ke({ isHeader: e, flex: t = 1, textAlign: r = "left", children: i }) {
|
|
254
|
+
return /* @__PURE__ */ n(P, {
|
|
255
|
+
style: [H(e ? V.tableHeaderCell : V.tableCell), {
|
|
1133
256
|
flex: t,
|
|
1134
|
-
textAlign:
|
|
257
|
+
textAlign: r
|
|
1135
258
|
}],
|
|
1136
|
-
children:
|
|
259
|
+
children: U(i) ?? "—"
|
|
1137
260
|
});
|
|
1138
261
|
}
|
|
1139
262
|
//#endregion
|
|
1140
263
|
//#region lib/print/components/print-totals.tsx
|
|
1141
|
-
function
|
|
1142
|
-
return /* @__PURE__ */
|
|
1143
|
-
style:
|
|
1144
|
-
children: /* @__PURE__ */
|
|
1145
|
-
style:
|
|
264
|
+
function J({ children: e }) {
|
|
265
|
+
return /* @__PURE__ */ n(F, {
|
|
266
|
+
style: H(V.totalsSection),
|
|
267
|
+
children: /* @__PURE__ */ n(F, {
|
|
268
|
+
style: H(V.totalsTable),
|
|
1146
269
|
children: e
|
|
1147
270
|
})
|
|
1148
271
|
});
|
|
1149
272
|
}
|
|
1150
|
-
function
|
|
1151
|
-
let
|
|
1152
|
-
return /* @__PURE__ */
|
|
1153
|
-
style:
|
|
1154
|
-
children: [/* @__PURE__ */
|
|
1155
|
-
style:
|
|
1156
|
-
children:
|
|
1157
|
-
}), /* @__PURE__ */
|
|
1158
|
-
style:
|
|
1159
|
-
children:
|
|
273
|
+
function qe({ label: e, value: t, last: i }) {
|
|
274
|
+
let a = i ? V.totalsRowLast : V.totalsRow, o = i ? V.totalsLabelBold : V.totalsLabel, s = i ? V.totalsValueBold : V.totalsValue;
|
|
275
|
+
return /* @__PURE__ */ r(F, {
|
|
276
|
+
style: H(a),
|
|
277
|
+
children: [/* @__PURE__ */ n(P, {
|
|
278
|
+
style: H(o),
|
|
279
|
+
children: U(e)
|
|
280
|
+
}), /* @__PURE__ */ n(P, {
|
|
281
|
+
style: H(s),
|
|
282
|
+
children: U(t)
|
|
1160
283
|
})]
|
|
1161
284
|
});
|
|
1162
285
|
}
|
|
1163
286
|
//#endregion
|
|
1164
|
-
//#region lib/pdf-core/http.ts
|
|
1165
|
-
function X(e, t) {
|
|
1166
|
-
return `${e}; filename="${t.replace(/[^\x20-\x7e]/g, "_").replace(/["\\]/g, "_")}"; filename*=UTF-8''${encodeURIComponent(t).replace(/['()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`)}`;
|
|
1167
|
-
}
|
|
1168
|
-
var Lt = (e) => /\.pdf$/i.test(e) ? e : `${e}.pdf`;
|
|
1169
|
-
function Rt(e, t = {}) {
|
|
1170
|
-
let n = new Headers(t.headers);
|
|
1171
|
-
n.set("Content-Type", "application/pdf"), n.set("Content-Length", String(e.byteLength));
|
|
1172
|
-
let r = Lt((t.fileName ?? "").replace(/[\\/]/g, "_").trim() || "document");
|
|
1173
|
-
return n.set("Content-Disposition", X(t.disposition ?? "attachment", r)), new Response(e, { headers: n });
|
|
1174
|
-
}
|
|
1175
|
-
function zt(e) {
|
|
1176
|
-
let t = e[Symbol.asyncIterator](), n = new TextEncoder();
|
|
1177
|
-
return new ReadableStream({
|
|
1178
|
-
async pull(e) {
|
|
1179
|
-
let { value: r, done: i } = await t.next();
|
|
1180
|
-
i ? e.close() : e.enqueue(typeof r == "string" ? n.encode(r) : new Uint8Array(r));
|
|
1181
|
-
},
|
|
1182
|
-
async cancel() {
|
|
1183
|
-
await t.return?.();
|
|
1184
|
-
}
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
//#endregion
|
|
1188
287
|
//#region lib/print/output/to-pdf-element.ts
|
|
1189
|
-
function
|
|
1190
|
-
if (
|
|
288
|
+
function Y(e, n = {}) {
|
|
289
|
+
if (o(e)) return e;
|
|
1191
290
|
let r = e, i = r.language;
|
|
1192
|
-
return
|
|
1193
|
-
custom:
|
|
291
|
+
return we(r, {
|
|
292
|
+
custom: n.custom,
|
|
1194
293
|
defaultCreator: "@nxgt/material",
|
|
1195
|
-
translate: (e,
|
|
294
|
+
translate: (e, n, r) => t(i, e, n, r)
|
|
1196
295
|
});
|
|
1197
296
|
}
|
|
1198
297
|
//#endregion
|
|
1199
298
|
//#region lib/print/output/render-pdf.ts
|
|
1200
|
-
var
|
|
1201
|
-
async function
|
|
1202
|
-
return
|
|
299
|
+
var Je = () => typeof process < "u" && !!process.versions?.node;
|
|
300
|
+
async function X(e, t) {
|
|
301
|
+
return I(Y(e, t)).toBlob();
|
|
1203
302
|
}
|
|
1204
|
-
async function
|
|
1205
|
-
if (!
|
|
1206
|
-
let n = await
|
|
303
|
+
async function Z(e, t) {
|
|
304
|
+
if (!Je()) {
|
|
305
|
+
let n = await X(e, t);
|
|
1207
306
|
return new Uint8Array(await n.arrayBuffer());
|
|
1208
307
|
}
|
|
1209
|
-
let n = await
|
|
308
|
+
let n = await L(Y(e, t));
|
|
1210
309
|
return new Uint8Array(n);
|
|
1211
310
|
}
|
|
1212
|
-
async function
|
|
1213
|
-
return
|
|
311
|
+
async function Ye(e, t) {
|
|
312
|
+
return ke(await _e(Y(e, t)));
|
|
1214
313
|
}
|
|
1215
314
|
//#endregion
|
|
1216
315
|
//#region lib/print/output/download-pdf.ts
|
|
1217
|
-
var
|
|
1218
|
-
async function
|
|
1219
|
-
await
|
|
316
|
+
var Q = (e, t) => e instanceof Blob ? e : X(e, t);
|
|
317
|
+
async function $(e, t = {}) {
|
|
318
|
+
await p(await Q(e, t), { fileName: t.fileName });
|
|
1220
319
|
}
|
|
1221
|
-
async function
|
|
1222
|
-
let n = window.open("", "_blank"),
|
|
320
|
+
async function Xe(e, t = {}) {
|
|
321
|
+
let n = window.open("", "_blank"), r;
|
|
1223
322
|
try {
|
|
1224
|
-
|
|
323
|
+
r = await Q(e, t);
|
|
1225
324
|
} catch (e) {
|
|
1226
325
|
throw n?.close(), e;
|
|
1227
326
|
}
|
|
1228
327
|
if (!n) {
|
|
1229
|
-
await
|
|
328
|
+
await $(r, t);
|
|
1230
329
|
return;
|
|
1231
330
|
}
|
|
1232
331
|
n.opener = null;
|
|
1233
|
-
let
|
|
1234
|
-
n.location.href =
|
|
332
|
+
let i = new File([r], Ae(r, t.fileName), { type: "application/pdf" }), a = URL.createObjectURL(i);
|
|
333
|
+
n.location.href = a, window.setTimeout(() => URL.revokeObjectURL(a), f);
|
|
1235
334
|
}
|
|
1236
335
|
//#endregion
|
|
1237
336
|
//#region lib/print/output/pdf-response.ts
|
|
1238
|
-
async function
|
|
1239
|
-
return
|
|
1240
|
-
}
|
|
1241
|
-
//#endregion
|
|
1242
|
-
//#region lib/pdf-core/file-loader.ts
|
|
1243
|
-
var $ = {
|
|
1244
|
-
blob: null,
|
|
1245
|
-
url: null,
|
|
1246
|
-
loading: !1,
|
|
1247
|
-
error: null
|
|
1248
|
-
};
|
|
1249
|
-
function qt(e, t) {
|
|
1250
|
-
let n = 0, r = null, i = $, a = (t) => {
|
|
1251
|
-
i = t, e(t);
|
|
1252
|
-
}, o = () => {
|
|
1253
|
-
r && URL.revokeObjectURL(r), r = null;
|
|
1254
|
-
};
|
|
1255
|
-
return {
|
|
1256
|
-
async load(e, s) {
|
|
1257
|
-
let c = ++n;
|
|
1258
|
-
if (e === null) {
|
|
1259
|
-
o(), a($);
|
|
1260
|
-
return;
|
|
1261
|
-
}
|
|
1262
|
-
a({
|
|
1263
|
-
...i,
|
|
1264
|
-
loading: !0,
|
|
1265
|
-
error: null
|
|
1266
|
-
});
|
|
1267
|
-
try {
|
|
1268
|
-
let i = await t(e, s);
|
|
1269
|
-
if (c !== n) return;
|
|
1270
|
-
o(), r = URL.createObjectURL(i), a({
|
|
1271
|
-
blob: i,
|
|
1272
|
-
url: r,
|
|
1273
|
-
loading: !1,
|
|
1274
|
-
error: null
|
|
1275
|
-
});
|
|
1276
|
-
} catch (e) {
|
|
1277
|
-
if (c !== n) return;
|
|
1278
|
-
o(), a({
|
|
1279
|
-
...$,
|
|
1280
|
-
error: e instanceof Error ? e : Error(String(e))
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1283
|
-
},
|
|
1284
|
-
dispose() {
|
|
1285
|
-
n++, o();
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
337
|
+
async function Ze(e, t = {}) {
|
|
338
|
+
return Oe(await Z(e, t), t);
|
|
1288
339
|
}
|
|
1289
340
|
//#endregion
|
|
1290
341
|
//#region lib/print/output/use-pdf-file.ts
|
|
1291
|
-
function
|
|
1292
|
-
let [n, r] =
|
|
1293
|
-
|
|
342
|
+
function Qe(e, t) {
|
|
343
|
+
let [n, r] = d(() => e === null ? B : {
|
|
344
|
+
...B,
|
|
1294
345
|
loading: !0
|
|
1295
|
-
}), [i, a] =
|
|
1296
|
-
return
|
|
1297
|
-
|
|
346
|
+
}), [i, a] = d(0), o = s(() => a((e) => e + 1), []), c = t?.custom, [u] = d(() => je(r, X));
|
|
347
|
+
return l(() => () => u.dispose(), [u]), l(() => {
|
|
348
|
+
u.load(e, { custom: c });
|
|
1298
349
|
}, [
|
|
1299
|
-
|
|
350
|
+
u,
|
|
1300
351
|
e,
|
|
1301
|
-
|
|
352
|
+
c,
|
|
1302
353
|
i
|
|
1303
354
|
]), {
|
|
1304
355
|
...n,
|
|
@@ -1306,4 +357,4 @@ function Jt(e, t) {
|
|
|
1306
357
|
};
|
|
1307
358
|
}
|
|
1308
359
|
//#endregion
|
|
1309
|
-
export {
|
|
360
|
+
export { Me as PrintBadge, Ne as PrintCard, Pe as PrintCardField, Fe as PrintDataTable, ze as PrintDocument, Be as PrintHeader, He as PrintInfoRow, Ie as PrintKeyValue, Le as PrintMetric, Re as PrintMetrics, Ve as PrintSection, Ue as PrintTable, Ke as PrintTableCell, We as PrintTableHeader, Ge as PrintTableRow, qe as PrintTotalRow, J as PrintTotals, _ as badge, V as commonPrintStyles, De as contentDisposition, m as createFormatters, v as dataTable, y as defaultPdfTheme, b as definePdfDocument, ge as definePrintColumns, x as divider, $ as downloadPdf, h as formatAmount, g as formatDate, M as formatPrintValue, S as header, C as heading, w as image, N as isEmptyPrintValue, T as keyValue, ee as keyValueOf, te as link, ne as metric, Xe as openPdf, re as page, ie as pageBreak, ae as pageNumber, oe as pdfDocument, Ze as pdfResponse, X as renderPdfBlob, Z as renderPdfBuffer, Ye as renderPdfStream, se as resolvePdfColor, ce as resolvePdfTheme, E as resolvePrintFields, O as resolvePrintTable, le as row, ue as section, de as spacer, fe as stack, pe as table, me as text, A as toPrintValue, he as totals, H as tw, Qe as usePdfFile };
|