@nxgt/material 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/README.md +7 -2
  2. package/dist/{_Uint8Array-BlYETJ93.js → _Uint8Array-BDK6FjpM.js} +20 -20
  3. package/dist/{abnfDiagram-O67JEVCF-UBHbDvRt.js → abnfDiagram-O67JEVCF-C7NxOWqd.js} +8 -8
  4. package/dist/architecture-7GRP2DOG-CMg7-eYj.js +3 -0
  5. package/dist/{architectureDiagram-NJMV4G6O-YUaZEFrZ.js → architectureDiagram-NJMV4G6O-BIvwyzEh.js} +12 -12
  6. package/dist/{blockDiagram-BEXU5L5S-LYb2ZWFy.js → blockDiagram-BEXU5L5S-C8q-lXgt.js} +18 -18
  7. package/dist/{c4Diagram-YGBWAQC7-C-2N38iN.js → c4Diagram-YGBWAQC7-WgqlRIL5.js} +10 -10
  8. package/dist/channel-Ba8pEAWx.js +5 -0
  9. package/dist/{chunk-2Q5K7J3B-kzxEEeTu.js → chunk-2Q5K7J3B-C1pX24ft.js} +2 -2
  10. package/dist/{chunk-3FUC2YCW-uD4dp-_M.js → chunk-3FUC2YCW-BGpNbruY.js} +11 -11
  11. package/dist/{chunk-5DYCD2WN-B2Jnu3zk.js → chunk-5DYCD2WN-Bqi3iL5i.js} +5 -5
  12. package/dist/{chunk-5VM5RSS4-Cr17nBXp.js → chunk-5VM5RSS4-BFskf6Qk.js} +2 -2
  13. package/dist/{chunk-6AEJRKK7-C9kihZu8.js → chunk-6AEJRKK7-DDXoGWDs.js} +4 -4
  14. package/dist/{chunk-742MDFTN-C8SK_MEU.js → chunk-742MDFTN-nG_ROTnT.js} +14 -14
  15. package/dist/{chunk-7INBJB4K-CyUOVm3_.js → chunk-7INBJB4K-Dg64CbhT.js} +10 -10
  16. package/dist/{chunk-7M6MHVWA-stRISv0F.js → chunk-7M6MHVWA-_-i4Sb1c.js} +14 -14
  17. package/dist/{chunk-7PRAP22T-DSh07ASj.js → chunk-7PRAP22T-DIiYRAce.js} +3 -3
  18. package/dist/{chunk-DUW6YSOI-BdOla2G8.js → chunk-DUW6YSOI-9R-v-IIp.js} +2 -2
  19. package/dist/{chunk-FOHPRMQF-Crq0JMf2.js → chunk-FOHPRMQF-DBc3Omt0.js} +1 -1
  20. package/dist/{chunk-GNY47TPC-CNRH-hmN.js → chunk-GNY47TPC-BJperC1X.js} +14 -14
  21. package/dist/{chunk-GTNCS2PH-Dd-9mUKz.js → chunk-GTNCS2PH-CzDYTYNy.js} +5 -5
  22. package/dist/{chunk-GWA4HPMP-LeZ8CTY7.js → chunk-GWA4HPMP-CmsxMX3A.js} +5 -5
  23. package/dist/{chunk-J5ZVWO5B-CYzz6Pq8.js → chunk-J5ZVWO5B-DmRRmhon.js} +2 -2
  24. package/dist/{chunk-JWPE2WC7-Ccb0QaC8.js → chunk-JWPE2WC7-BGVSGRTC.js} +2 -2
  25. package/dist/{chunk-LNGE3PJU-CiGrDO_F.js → chunk-LNGE3PJU-DJjGTS7O.js} +2 -2
  26. package/dist/{chunk-MBY4JIJT-efJLM0ZL.js → chunk-MBY4JIJT-IA2XBafa.js} +8 -8
  27. package/dist/{chunk-NETBCI7D-Dh3LtOKr.js → chunk-NETBCI7D-D0kbMnm0.js} +3 -3
  28. package/dist/{chunk-O7XYJQB3-CocGKgmL.js → chunk-O7XYJQB3-C87zK8E5.js} +5 -5
  29. package/dist/{chunk-UA2S7LBM-C81eiQ4_.js → chunk-UA2S7LBM-B0LGFGu3.js} +10 -10
  30. package/dist/{chunk-WEXAMYUT-Dt2jrFYj.js → chunk-WEXAMYUT-C-QP0DFq.js} +4 -4
  31. package/dist/{chunk-XXDRQBXY-mQqOBHO_.js → chunk-XXDRQBXY-Bq4sFnO2.js} +3 -3
  32. package/dist/{chunk-Y2CYZVJY-i11wjrBe.js → chunk-Y2CYZVJY-BAad7w_K.js} +1 -1
  33. package/dist/{chunk-Z7XXMR3K-D00WQ1MY.js → chunk-Z7XXMR3K-CJmPL4k9.js} +12 -12
  34. package/dist/{chunk-ZIGJFQKS-Dqo-x9kg.js → chunk-ZIGJFQKS-HDJ6e6OJ.js} +29 -29
  35. package/dist/{classDiagram-v2-NBCMYWYE-C4ucYlr1.js → classDiagram-v2-NBCMYWYE-DRoCWiaP.js} +18 -18
  36. package/dist/{client-only.utils-ojMUdy5B.js → client-only.utils-qMX_CMiw.js} +25 -25
  37. package/dist/{components-DqMrnRRo.js → components-CRrswCsD.js} +33211 -26822
  38. package/dist/components.js +6 -7
  39. package/dist/{cose-bilkent-JH36ORCC-BgR2hiLh.js → cose-bilkent-JH36ORCC-11-T1rfk.js} +5 -5
  40. package/dist/cynefin-OW5HDTMX-BGe4AjUw.js +3 -0
  41. package/dist/{cynefinDiagram-VND7K2PF-wsthSZGu.js → cynefinDiagram-VND7K2PF-1kHi2rGa.js} +8 -8
  42. package/dist/{cytoscape.esm-_jXi1N4y.js → cytoscape.esm-DXVRLXF3.js} +1 -1
  43. package/dist/{dagre-6A5THRUB-D9hh4vCU.js → dagre-6A5THRUB-B11jdkPL.js} +104 -104
  44. package/dist/{diagram-22UHCM2B-Bu26TJjA.js → diagram-22UHCM2B-CAVrn_uY.js} +20 -20
  45. package/dist/diagram-3UASUU5V-uO9-gtWR.js +525 -0
  46. package/dist/{diagram-ATOU4E4O-DNtxHPVW.js → diagram-ATOU4E4O-Clju_0RY.js} +8 -8
  47. package/dist/{diagram-CDSNMT55-BrwCxgMX.js → diagram-CDSNMT55-w7kkJ6MU.js} +10 -10
  48. package/dist/{diagram-MLGK6HIB-Bk26pSvC.js → diagram-MLGK6HIB-mUOtRVmm.js} +8 -8
  49. package/dist/{diagram-MPIPVDR6-Bl3F8b-U.js → diagram-MPIPVDR6-DEUw58dq.js} +8 -8
  50. package/dist/{dist-C-0DUGrt.js → dist-CeHNxLJG.js} +30 -30
  51. package/dist/{dist-CZn89tDX.js → dist-gYpAi-su.js} +2 -2
  52. package/dist/dnd.js +1 -1
  53. package/dist/{ebnfDiagram-ZINNZB2B-C7vCu85A.js → ebnfDiagram-ZINNZB2B-BYfatie5.js} +8 -8
  54. package/dist/{elk-276RUBZZ-ChJLevem.js → elk-276RUBZZ-BALenDhN.js} +16 -16
  55. package/dist/{erDiagram-OPXOYQCR-DLzDCh2a.js → erDiagram-OPXOYQCR-FtFHGu-P.js} +17 -17
  56. package/dist/eventmodeling-NTZA5JFV-38h1xeNf.js +3 -0
  57. package/dist/{field-blur-CtjbtCDw.js → field-blur-DkydMwaN.js} +614 -643
  58. package/dist/flowDiagram-KWPJA3E3-DZwUgKQu.js +17 -0
  59. package/dist/{ganttDiagram-FUAMR5RP-35sd5PoK.js → ganttDiagram-FUAMR5RP-CmMpH0CG.js} +436 -1117
  60. package/dist/gitGraph-4MIJSDKK-C-5NH3Jx.js +3 -0
  61. package/dist/{gitGraphDiagram-X574FWY7-Z7zhlcB8.js → gitGraphDiagram-X574FWY7-DcGaPSwy.js} +8 -8
  62. package/dist/{graphlib-DlxAzBTD.js → graphlib-DovxbouT.js} +43 -43
  63. package/dist/hooks.js +15 -15
  64. package/dist/i18n.js +4 -4
  65. package/dist/{icon-button-38As1vrs.js → icon-button-Dl9PDYCE.js} +15 -15
  66. package/dist/info-A6RAGUB7-DTwpNebQ.js +3 -0
  67. package/dist/{infoDiagram-VRGFBTTK-BwoHwPPX.js → infoDiagram-VRGFBTTK-Cvj167dl.js} +6 -6
  68. package/dist/{init-Buj1GKRa.js → init-B-aM8wRX.js} +1 -1
  69. package/dist/{isArrayLikeObject-DsRXN32g.js → isArrayLikeObject-D0u9Q9Yg.js} +11 -11
  70. package/dist/{ishikawaDiagram-OU5B5YK6-C-aWtSta.js → ishikawaDiagram-OU5B5YK6-ChBwjCfr.js} +7 -7
  71. package/dist/{journeyDiagram-ZHPQQLJL-vXvTzJwE.js → journeyDiagram-ZHPQQLJL-DVxTOFQu.js} +7 -7
  72. package/dist/{kanban-definition-PNTS6WVX-Co0CvKcV.js → kanban-definition-PNTS6WVX-BRoa-Yp5.js} +14 -14
  73. package/dist/{katex-BMQ6LGsM.js → katex-BLTzjTha.js} +1 -1
  74. package/dist/lib/components/ui/media/pdf-viewer/index.d.ts +3 -3
  75. package/dist/lib/components/ui/media/pdf-viewer/pdf-page-list.d.ts +1 -1
  76. package/dist/lib/components/ui/media/pdf-viewer/pdf-reader-body.d.ts +2 -2
  77. package/dist/lib/components/ui/media/pdf-viewer/pdf-reader.reducer.d.ts +1 -1
  78. package/dist/lib/components/ui/media/pdf-viewer/pdf-sidebar.d.ts +1 -1
  79. package/dist/lib/components/ui/media/pdf-viewer/pdf-thumbnail-sidebar.d.ts +1 -1
  80. package/dist/lib/components/ui/media/pdf-viewer/types.d.ts +3 -3
  81. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-document-search.d.ts +1 -1
  82. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-file-actions.d.ts +1 -1
  83. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-page-area.d.ts +1 -1
  84. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-reader.d.ts +1 -1
  85. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-search-hits.d.ts +1 -2
  86. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-source.d.ts +1 -1
  87. package/dist/lib/hooks/use-formatters.d.ts +1 -1
  88. package/dist/lib/lib/index.d.ts +1 -1
  89. package/dist/lib/print/components/print-data-table/print-data-table.d.ts +1 -1
  90. package/dist/lib/print/components/print-data-table/print-key-value.d.ts +2 -2
  91. package/dist/lib/print/components/print-data-table/print-metric.d.ts +2 -2
  92. package/dist/lib/print/components/print-document/print-document.d.ts +1 -1
  93. package/dist/lib/print/components/print-document/print-render-context.d.ts +1 -1
  94. package/dist/lib/print/components/print-header.d.ts +1 -1
  95. package/dist/lib/print/index.d.ts +4 -4
  96. package/dist/lib/print/output/index.d.ts +2 -2
  97. package/dist/lib/print/output/pdf-response.d.ts +1 -1
  98. package/dist/lib/print/output/types.d.ts +3 -3
  99. package/dist/lib/print/output/use-pdf-file.d.ts +1 -1
  100. package/dist/lib/vite/index.d.ts +5 -64
  101. package/dist/{lib-uF8iIfvP.js → lib-B_cBmfz5.js} +70 -69
  102. package/dist/lib.js +5 -6
  103. package/dist/main.js +17 -19
  104. package/dist/map.js +4 -4
  105. package/dist/{math-C5EhTgJw.js → math-D0ky-xWd.js} +1 -1
  106. package/dist/{merge-Z2oE4ahJ.js → merge-DQLOWMVN.js} +24 -24
  107. package/dist/{mermaid-parser.core-Cz-MfB4Z.js → mermaid-parser.core-BXD_TD1T.js} +32 -32
  108. package/dist/{mermaid.core-6Yzht5pQ.js → mermaid.core-CQ6lUhgC.js} +59 -59
  109. package/dist/{mindmap-definition-NLK3R4M7-AxpMaPtm.js → mindmap-definition-NLK3R4M7-DyB5NgHM.js} +18 -18
  110. package/dist/{number.utils-CRFiOD5c.js → number.utils-BiBN2hWJ.js} +48 -48
  111. package/dist/{ordinal-DuP05kVQ.js → ordinal-DwxdXP1t.js} +3 -3
  112. package/dist/packet-AYTQ26CC-Cc2sGaDY.js +3 -0
  113. package/dist/{path-Cjou0lUh.js → path-Cxq8zobN.js} +3 -3
  114. package/dist/{pdf.worker.min-DRpqlnXj.js → pdf.worker.min-ByGJNiUH.js} +1 -1
  115. package/dist/{pegDiagram-GJSIUBJH-DjilqSgv.js → pegDiagram-GJSIUBJH-Dcm3LCQX.js} +8 -8
  116. package/dist/pie-WAS4IAKB-Qm7ZL20Y.js +3 -0
  117. package/dist/{pieDiagram-5QR66LMP-H8rVCHkC.js → pieDiagram-5QR66LMP-DCdDWF2H.js} +16 -16
  118. package/dist/print.js +164 -1113
  119. package/dist/{quadrantDiagram-O4NWA36T-CEDIjm-K.js → quadrantDiagram-O4NWA36T-BMfcGUfy.js} +5 -5
  120. package/dist/radar-RG4KPBEZ-TQ0zaqCR.js +3 -0
  121. package/dist/railroad-74A4TZTK-bk-BYNub.js +3 -0
  122. package/dist/railroad-abnf-HS5TGJTU-Bdw25bd-.js +3 -0
  123. package/dist/railroad-ebnf-LZEXJU2U-DiFjNUyt.js +3 -0
  124. package/dist/railroad-peg-WCYAUIDC-xf3JLr_Y.js +3 -0
  125. package/dist/{railroadDiagram-XR7U4H2S-BxR9jg9Y.js → railroadDiagram-XR7U4H2S-CzOJlTUA.js} +8 -8
  126. package/dist/{requirementDiagram-PLB6GJNP-DAuKYcHc.js → requirementDiagram-PLB6GJNP-Bg-uQlZj.js} +16 -16
  127. package/dist/{rough.esm-rcMoXTJj.js → rough.esm-Cvc79rxE.js} +1 -1
  128. package/dist/{sankeyDiagram-IPEJSGJF-C3JJqzLE.js → sankeyDiagram-IPEJSGJF-E-o_7bq2.js} +18 -18
  129. package/dist/{sequenceDiagram-PO4LG4MO-Cs8x9lRY.js → sequenceDiagram-PO4LG4MO-DMLeIQ03.js} +9 -9
  130. package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-C_032szM.js} +2 -2
  131. package/dist/{sortable-provider-DalccwHj.js → sortable-provider-NE74zkmo.js} +7 -7
  132. package/dist/{src-BIbdeDuO.js → src-CJ8DNrI1.js} +82 -82
  133. package/dist/{stateDiagram-v2-GCMORJYK-PpP0APmW.js → stateDiagram-v2-GCMORJYK-BDB4K1Fw.js} +17 -17
  134. package/dist/{step-B6KjpKgN.js → step-Dt43c9X4.js} +17 -17
  135. package/dist/{string-B-ZWXCs2.js → string-BqyOfyFV.js} +8 -8
  136. package/dist/{swimlanes-2SLR337P-BmqILJTV.js → swimlanes-2SLR337P-C406S8ui.js} +14 -14
  137. package/dist/swimlanesDiagram-TC7HE7FX-BstKZ--K.js +28 -0
  138. package/dist/{timeline-definition-EJHVYXUP-CEOIzkcq.js → timeline-definition-EJHVYXUP-BmhxT0qo.js} +8 -8
  139. package/dist/{translate-material-BO32ZDCi.js → translate-material-CRxs5aS3.js} +1 -1
  140. package/dist/{translator-CiPgm2s3.js → translator-BfyVF7Ej.js} +88 -88
  141. package/dist/treeView-Q6P3EWNA-Dyk8HSag.js +3 -0
  142. package/dist/treemap-WGGIJYW6-CHrhBv7m.js +3 -0
  143. package/dist/{use-heading-spy-DSs5Coe-.js → use-heading-spy-BiLosksJ.js} +2 -2
  144. package/dist/{use-material-translation-RhoPY_RC.js → use-material-translation-D3HwtYDm.js} +1 -1
  145. package/dist/{usecaseDiagram-POWQR4AR-CMvboR6A.js → usecaseDiagram-POWQR4AR-cHGV1E_T.js} +403 -403
  146. package/dist/{utils-Brj-Qb2N.js → utils-UBn-46YY.js} +2 -2
  147. package/dist/{vennDiagram-UO4OBE2U-xN_G4DeI.js → vennDiagram-UO4OBE2U-Aql8mhcy.js} +8 -8
  148. package/dist/vite.js +1 -17
  149. package/dist/wardley-WFR3VGLG-DnLHjx6k.js +3 -0
  150. package/dist/{wardleyDiagram-VNRHLVJA-C0B-kQ2b.js → wardleyDiagram-VNRHLVJA-tknlhG_t.js} +8 -8
  151. package/dist/{xychartDiagram-PMCCYNJV-Crmi6_s-.js → xychartDiagram-PMCCYNJV-ixeD_kO0.js} +24 -24
  152. package/docs/components/rich-widgets.md +2 -0
  153. package/docs/getting-started.md +20 -0
  154. package/docs/guides/printing.md +6 -2
  155. package/docs/guides/ssr.md +8 -2
  156. package/docs/troubleshooting.md +57 -2
  157. package/package.json +30 -33
  158. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +0 -3
  159. package/dist/channel-CUIVvEUM.js +0 -5
  160. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +0 -3
  161. package/dist/diagram-3UASUU5V-BEydDExL.js +0 -724
  162. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +0 -3
  163. package/dist/flowDiagram-KWPJA3E3-uiZryqlC.js +0 -17
  164. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +0 -3
  165. package/dist/info-A6RAGUB7-BvtuPd9C.js +0 -3
  166. package/dist/lib/components/ui/fields/currency-field/currency-digits.d.ts +0 -7
  167. package/dist/lib/components/ui/forms/field-blur-layers.d.ts +0 -34
  168. package/dist/lib/components/ui/media/pdf-viewer/pdf-document-search.d.ts +0 -44
  169. package/dist/lib/components/ui/media/pdf-viewer/pdf-escape.d.ts +0 -6
  170. package/dist/lib/components/ui/media/pdf-viewer/pdf-page-geometry.d.ts +0 -57
  171. package/dist/lib/components/ui/media/pdf-viewer/pdf-page-sizes.d.ts +0 -37
  172. package/dist/lib/components/ui/media/pdf-viewer/pdf-scroll-spy.d.ts +0 -42
  173. package/dist/lib/components/ui/media/pdf-viewer/pdf-text-search.d.ts +0 -25
  174. package/dist/lib/lib/pdf-download.d.ts +0 -35
  175. package/dist/lib/lib/pdf-file-name.d.ts +0 -9
  176. package/dist/lib/lib/pdf-source.d.ts +0 -57
  177. package/dist/lib/lib/print-format.utils.d.ts +0 -59
  178. package/dist/lib/lib/print-fraction-digits.d.ts +0 -12
  179. package/dist/lib/lib/print-table.utils.d.ts +0 -60
  180. package/dist/lib/lib/print-value.utils.d.ts +0 -40
  181. package/dist/lib/pdf-core/file-loader.d.ts +0 -18
  182. package/dist/lib/pdf-core/http.d.ts +0 -22
  183. package/dist/lib/pdf-core/index.d.ts +0 -11
  184. package/dist/lib/pdf-core/model/builders.d.ts +0 -54
  185. package/dist/lib/pdf-core/model/data-table.d.ts +0 -24
  186. package/dist/lib/pdf-core/model/index.d.ts +0 -4
  187. package/dist/lib/pdf-core/model/nodes.d.ts +0 -133
  188. package/dist/lib/pdf-core/model/theme.d.ts +0 -16
  189. package/dist/lib/pdf-core/model/types.d.ts +0 -108
  190. package/dist/lib/pdf-core/render/context.d.ts +0 -50
  191. package/dist/lib/pdf-core/render/document.d.ts +0 -21
  192. package/dist/lib/pdf-core/render/index.d.ts +0 -5
  193. package/dist/lib/pdf-core/render/nodes/blocks.d.ts +0 -19
  194. package/dist/lib/pdf-core/render/nodes/header.d.ts +0 -14
  195. package/dist/lib/pdf-core/render/nodes/layout.d.ts +0 -44
  196. package/dist/lib/pdf-core/render/nodes/table.d.ts +0 -14
  197. package/dist/lib/pdf-core/render/page.d.ts +0 -30
  198. package/dist/lib/pdf-core/render/render-node.d.ts +0 -10
  199. package/dist/lib/pdf-core/render/styles.d.ts +0 -303
  200. package/dist/packet-AYTQ26CC-CshIswP8.js +0 -3
  201. package/dist/pdf-download-hrKrI5_6.js +0 -153
  202. package/dist/pie-WAS4IAKB-CYs22y4X.js +0 -3
  203. package/dist/print-format.utils-B7K9qvuo.js +0 -53
  204. package/dist/print-fraction-digits-WtEBeztr.js +0 -5
  205. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +0 -3
  206. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +0 -3
  207. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +0 -3
  208. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +0 -3
  209. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +0 -3
  210. package/dist/swimlanesDiagram-TC7HE7FX-DO3BxSlE.js +0 -28
  211. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +0 -3
  212. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +0 -3
  213. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +0 -3
@@ -1,3 +0,0 @@
1
- import "./chunk-FOHPRMQF-Crq0JMf2.js";
2
- import { O as e } from "./mermaid-parser.core-Cz-MfB4Z.js";
3
- export { e as createEventModelingServices };
@@ -1,17 +0,0 @@
1
- import "./src-BIbdeDuO.js";
2
- import "./chunk-ZIGJFQKS-Dqo-x9kg.js";
3
- import "./chunk-O7XYJQB3-CocGKgmL.js";
4
- import "./chunk-742MDFTN-C8SK_MEU.js";
5
- import "./chunk-MBY4JIJT-efJLM0ZL.js";
6
- import "./chunk-7PRAP22T-DSh07ASj.js";
7
- import "./chunk-7INBJB4K-CyUOVm3_.js";
8
- import "./chunk-5DYCD2WN-B2Jnu3zk.js";
9
- import "./chunk-Z7XXMR3K-D00WQ1MY.js";
10
- import "./chunk-GWA4HPMP-LeZ8CTY7.js";
11
- import "./chunk-XXDRQBXY-mQqOBHO_.js";
12
- import "./chunk-WEXAMYUT-Dt2jrFYj.js";
13
- import "./chunk-UA2S7LBM-C81eiQ4_.js";
14
- import "./chunk-GNY47TPC-CNRH-hmN.js";
15
- import "./chunk-LNGE3PJU-CiGrDO_F.js";
16
- import { n as e } from "./chunk-7M6MHVWA-stRISv0F.js";
17
- export { e as diagram };
@@ -1,3 +0,0 @@
1
- import "./chunk-FOHPRMQF-Crq0JMf2.js";
2
- import { E as e } from "./mermaid-parser.core-Cz-MfB4Z.js";
3
- export { e as createGitGraphServices };
@@ -1,3 +0,0 @@
1
- import "./chunk-FOHPRMQF-Crq0JMf2.js";
2
- import { w as e } from "./mermaid-parser.core-Cz-MfB4Z.js";
3
- export { e as createInfoServices };
@@ -1,7 +0,0 @@
1
- /**
2
- * The decimals `CurrencyField` shows: `fractionDigits` when given (0 to 20;
3
- * `NaN` or `Infinity` counts as not given), else the currency's own (ISO
4
- * 4217: JPY 0, EUR 2, KWD 3), else 2 for a code `Intl` does not know. The
5
- * same rule as `formatAmount` (`fractionDigitsOption`).
6
- */
7
- export declare function currencyFractionDigits(currency: string, fractionDigits?: number): number;
@@ -1,34 +0,0 @@
1
- /**
2
- * The top-level layer a node is in: its ancestor that is a child of `<body>`.
3
- * An overlay rendered into `<body>` (a popover, a listbox, a dialog) is a
4
- * layer of its own; the page is another. `null` for a node no longer in the
5
- * document.
6
- */
7
- export declare function layerOf(node: Node): Node | null;
8
- /** What a field knows about the layers of the page since focus entered it. */
9
- export type FieldLayers = {
10
- /** The layers of the page when focus entered the field. */
11
- before: Set<Node>;
12
- /** The layers the field itself is in (the page, or the sheet it is in). */
13
- home: Set<Node | null>;
14
- /** The layers focus reached since entering that are the field's overlays. */
15
- opened: Set<Node>;
16
- };
17
- /**
18
- * Who opened `layer`, going by the controls that name an element of it as
19
- * the popup they control (`aria-controls`, `aria-owns`), as a select, a
20
- * popover or a dialog trigger does:
21
- * - `'ours'`: a control of the field (inside `roots`), or a control inside
22
- * an overlay of the field — one focus already reached, or one mounted since
23
- * focus entered that nothing else opened (the field's dialog, which leaves
24
- * focus on the button that opened it, and the select inside it). Such a
25
- * layer is the field's even when it was mounted before focus entered the
26
- * field: a mouse-opened select mounts its list before its trigger has focus.
27
- * - `'theirs'`: only a control of something else — another field whose
28
- * overlay opened while focus was still here (a mouse-opened select, a
29
- * Safari button that takes no focus on click).
30
- * - `null`: nothing names it.
31
- * A control inside `layer` itself (a tab naming its panel) says nothing about
32
- * who opened it.
33
- */
34
- export declare function openerOf(roots: Element[], layers: FieldLayers, layer: Node, seen?: Set<Node>): 'ours' | 'theirs' | null;
@@ -1,44 +0,0 @@
1
- import { PdfPageText, PdfTextRange } from './pdf-text-search';
2
- /** Where a match sits: its page, and its rank among that page's matches. */
3
- export type PdfSearchHit = {
4
- page: number;
5
- hit: number;
6
- };
7
- type PdfTextSource = {
8
- numPages: number;
9
- getPage: (pageNumber: number) => Promise<{
10
- getTextContent: () => Promise<{
11
- items: readonly unknown[];
12
- }>;
13
- }>;
14
- };
15
- /** A page's text, read once per document. */
16
- export declare function loadPageText(pdf: PdfTextSource, pageNumber: number): Promise<PdfPageText>;
17
- /** A page the search has read: its text and the matches in it. */
18
- export type PdfPageMatches = {
19
- page: number;
20
- text: PdfPageText;
21
- matches: PdfTextRange[];
22
- };
23
- /**
24
- * Searches every page in order, drawn or not, and reports the pages read: the
25
- * first one at once, then `chunk` at a time. A report per page would have the
26
- * reader draw every page again after each one read, a quadratic first search.
27
- * Stops once `isCancelled` says so.
28
- */
29
- export declare function searchDocument(pdf: PdfTextSource, query: string, onPages: (pages: PdfPageMatches[]) => void, isCancelled?: () => boolean, chunk?: number): Promise<void>;
30
- /** Each page's text and matches, as far as the search has read. */
31
- export type PdfDocumentMatches = {
32
- texts: (PdfPageText | undefined)[];
33
- matches: PdfTextRange[][];
34
- };
35
- /** `found` with a batch of pages read, copied once for the whole batch. */
36
- export declare function withPageMatches(found: PdfDocumentMatches, pages: readonly PdfPageMatches[]): PdfDocumentMatches;
37
- /**
38
- * The rank `delta` away from `from`, wrapping; from none (-1), the first
39
- * match forward or the last one back.
40
- */
41
- export declare function stepHit(from: number, delta: number, count: number): number;
42
- /** The hit at a document-wide rank, from each page's match count. */
43
- export declare function hitAt(counts: readonly (number | undefined)[], index: number): PdfSearchHit | null;
44
- export {};
@@ -1,6 +0,0 @@
1
- export declare function escapeHtml(text: string): string;
2
- export declare function mapPdfOutline(items: unknown): {
3
- title: string;
4
- dest: unknown;
5
- items: ReturnType<typeof mapPdfOutline>;
6
- }[];
@@ -1,57 +0,0 @@
1
- import { FitMode } from './types';
2
- /**
3
- * A page's size in PDF points (1/72 inch), before any rotation, and the
4
- * rotation the page asks for itself (its `/Rotate`, in degrees clockwise).
5
- */
6
- export type PdfPageSize = {
7
- width: number;
8
- height: number;
9
- rotate?: number;
10
- };
11
- /** Used until a page's own size is known: US Letter. */
12
- export declare const DEFAULT_PAGE_SIZE: PdfPageSize;
13
- /**
14
- * The fit zoom fits the first pages only, the ones read when the document
15
- * opens: pages read later never move it. A wider page further on is shown at
16
- * that zoom (and scrolls sideways in fit width).
17
- */
18
- export declare const FIT_PAGES = 25;
19
- /** Room kept around the pages: the list's padding on each side. */
20
- export declare const PAGE_PADDING = 32;
21
- /**
22
- * The rotation a page is drawn at: its own `/Rotate` plus the reader's, from
23
- * 0 to 270. `undefined` while the page's own is not known and the reader adds
24
- * none, so the renderer keeps the page's. Once the reader turns the pages, a
25
- * page whose size is not read yet (past the first chunk) is drawn at the
26
- * reader's rotation alone until its size arrives, then drawn again.
27
- */
28
- export declare function pageRotation(size: PdfPageSize | undefined, rotation: number): number | undefined;
29
- /** The page's size on screen: turned by its own `/Rotate` and `rotation`. */
30
- export declare function rotatedSize(size: PdfPageSize, rotation: number): PdfPageSize;
31
- /**
32
- * The widest and the tallest of the known pages, rotated. Fitting on it keeps
33
- * every page inside the box with one scale, so the zoom does not jump while
34
- * scrolling from an A4 page to a landscape one.
35
- */
36
- export declare function largestPage(sizes: readonly (PdfPageSize | undefined)[], rotation: number): PdfPageSize;
37
- /**
38
- * The scale at which the largest page fits the box's width, or all of it,
39
- * within the reader's zoom range: a tiny page does not fit to 4000%.
40
- */
41
- export declare function fitScale(mode: Exclude<FitMode, 'custom'>, largest: PdfPageSize, box: {
42
- width: number;
43
- height: number;
44
- }, padding?: number): number;
45
- /**
46
- * The reader's zoom in fit width or fit page: the largest of the first
47
- * `FIT_PAGES` pages, rotated, fitted to the box.
48
- */
49
- export declare function readerFitScale(mode: Exclude<FitMode, 'custom'>, sizes: readonly (PdfPageSize | undefined)[], rotation: number, box: {
50
- width: number;
51
- height: number;
52
- }): number;
53
- /** Pixel size of a page's placeholder before it renders. */
54
- export declare function placeholderSize(size: PdfPageSize | undefined, scale: number, rotation: number): {
55
- width: number;
56
- height: number;
57
- };
@@ -1,37 +0,0 @@
1
- import { PdfPageSize } from './pdf-page-geometry';
2
- type SizedPage = {
3
- /** The page's own `/Rotate`, in degrees (pdf.js `PDFPageProxy.rotate`). */
4
- rotate?: number;
5
- getViewport: (options: {
6
- scale: number;
7
- rotation: number;
8
- }) => {
9
- width: number;
10
- height: number;
11
- };
12
- };
13
- export type PdfSizedDocument = {
14
- numPages: number;
15
- getPage: (pageNumber: number) => Promise<SizedPage>;
16
- };
17
- /** What a load handler receives: `getPage` is optional for older callers. */
18
- export type PdfLoadedDocument = Pick<PdfSizedDocument, 'numPages'> & Partial<Pick<PdfSizedDocument, 'getPage'>>;
19
- /**
20
- * Reads every page's size, unrotated, and its own `/Rotate`, `chunk` pages
21
- * at a time (at most `chunk` page objects asked for at once): the first chunk
22
- * at once, the rest in the background. `onSizes` gets the list known so far
23
- * after each chunk; the first report holds the pages the fit zoom is computed
24
- * from (`FIT_PAGES`), so later chunks never move it. `isCancelled` stops the
25
- * reading when the document changed.
26
- */
27
- export declare function readPageSizes(pdf: PdfSizedDocument, onSizes: (sizes: PdfPageSize[]) => void, isCancelled?: () => boolean, chunk?: number): Promise<void>;
28
- /**
29
- * Reads the sizes of the document last loaded. `reset` forgets it when the
30
- * file changes, so sizes still arriving for it never land. A document
31
- * without `getPage` keeps the fallback size.
32
- */
33
- export declare function createPageSizesLoader(onSizes: (sizes: PdfPageSize[]) => void): {
34
- reset(): void;
35
- load(pdf: PdfLoadedDocument): Promise<void>;
36
- };
37
- export {};
@@ -1,42 +0,0 @@
1
- /** A vertical extent on screen, as `getBoundingClientRect` gives it. */
2
- export type PdfBox = {
3
- top: number;
4
- bottom: number;
5
- };
6
- /**
7
- * The page with the most of itself on screen, the first one on a tie; once
8
- * scrolled to the end, the last page on screen, however little of it shows.
9
- */
10
- export declare function mostVisiblePage(view: PdfBox & {
11
- atEnd: boolean;
12
- }, pages: Iterable<readonly [number, PdfBox]>): number | null;
13
- /**
14
- * Scrolls the page area around `node`, and nothing else: `scrollIntoView`
15
- * would scroll the host page too. `block` puts `node` at the area's top or
16
- * centre.
17
- */
18
- export declare function scrollIntoArea(node: Element, block: 'start' | 'center', behavior?: ScrollBehavior): void;
19
- /**
20
- * Keeps `node` at the top of the page area while the pages above it change
21
- * size (the zoom fitting to page sizes still arriving), until the user
22
- * scrolls, taps, clicks or types in the page area, or the returned function
23
- * is called. `beforeScroll` runs before each correction.
24
- */
25
- export declare function pinToPage(node: () => Element | null | undefined, beforeScroll: () => void): () => void;
26
- /**
27
- * Reports the page most on screen as the reader's page area (`root`)
28
- * scrolls. `hold`
29
- * ignores scrolling until it has stopped for `idleMs`: the reader calls it
30
- * before scrolling to a page itself, so the pages it passes on the way are
31
- * not reported.
32
- */
33
- export declare function createScrollSpy(root: () => HTMLElement | null | undefined, pages: () => ReadonlyMap<number, HTMLElement>, onPage: (page: number) => void, idleMs?: number): {
34
- hold(): void;
35
- stop(): void;
36
- };
37
- /**
38
- * Scrolls a page's match to the middle of the page area once the page has
39
- * drawn its mark, polling each frame for up to `timeout` ms; `beforeScroll`
40
- * runs first. Returns a function that stops waiting.
41
- */
42
- export declare function revealHit(findPage: () => ParentNode | null | undefined, hit: number, beforeScroll?: () => void, timeout?: number): () => void;
@@ -1,25 +0,0 @@
1
- /** One item of `page.getTextContent()`: marked-content items have no `str`. */
2
- export type PdfTextItem = {
3
- str?: string;
4
- hasEOL?: boolean;
5
- };
6
- /** A page's text, and where each text item starts in it. */
7
- export type PdfPageText = {
8
- text: string;
9
- starts: number[];
10
- };
11
- /** A match in a page's text: `end` is exclusive. */
12
- export type PdfTextRange = {
13
- start: number;
14
- end: number;
15
- };
16
- /** Joins the items' text, a line break after each item that ends a line. */
17
- export declare function pageTextFromItems(items: readonly PdfTextItem[]): PdfPageText;
18
- /** Every match of `query` in `text`, ignoring case, accents and spacing. */
19
- export declare function findTextMatches(text: string, query: string): PdfTextRange[];
20
- /**
21
- * One text item's HTML, its part of each match wrapped in
22
- * `<mark class="pdf-highlight" data-hit="…">`. A match across items gets a
23
- * mark in each; the current one also carries `data-current`.
24
- */
25
- export declare function highlightItemHtml(str: string, itemStart: number, matches: readonly PdfTextRange[], current?: number): string;
@@ -1,35 +0,0 @@
1
- import { PdfSource } from './pdf-source';
2
- /**
3
- * How long an object URL outlives the click that started its download or
4
- * opened its tab. Revoking it synchronously cancels the download in Firefox
5
- * and Safari, which read the URL after `click()` returns.
6
- */
7
- export declare const OBJECT_URL_TTL_MS = 60000;
8
- export type PdfFileOptions = {
9
- /** Name of the saved file; `.pdf` is added when missing. */
10
- fileName?: string;
11
- /**
12
- * Name used when neither `fileName`, a `File`'s name nor the URL gives
13
- * one: `document`, or its translation.
14
- */
15
- defaultName?: string;
16
- /**
17
- * Bytes of the document the reader already loaded. Saving them needs no
18
- * second request, and works for a cross-origin URL, where the `download`
19
- * attribute is ignored.
20
- */
21
- getData?: () => Uint8Array | null | undefined | Promise<Uint8Array | null | undefined>;
22
- };
23
- /**
24
- * Downloads the PDF under its resolved name. A URL is saved from the loaded
25
- * bytes or fetched; when neither works (CORS), it opens in a new tab, which
26
- * a popup blocker may stop once the click's activation has expired. A URL
27
- * with headers never opens in a tab: it would load without them.
28
- */
29
- export declare function downloadPdfFile(source: PdfSource, options?: PdfFileOptions): Promise<void>;
30
- /**
31
- * Prints the PDF from a same-origin object URL in a hidden frame. When the
32
- * browser refuses (a PDF plugin that blocks `print()`, a cross-origin URL
33
- * that could not be fetched), the document opens in a new tab instead.
34
- */
35
- export declare function printPdfFile(source: PdfSource, options?: Pick<PdfFileOptions, 'getData'>): Promise<void>;
@@ -1,9 +0,0 @@
1
- import { PdfSource } from './pdf-source';
2
- /** The name a download takes when nothing else gives one, before `.pdf`. */
3
- export declare const DEFAULT_PDF_FILE_NAME = "document";
4
- /**
5
- * The saved file's name: `fileName`, then the `File`'s own name, then the
6
- * last segment of the URL's path, then `fallback` (`document`, or its
7
- * translation). `.pdf` is added when missing.
8
- */
9
- export declare function resolvePdfFileName(source: PdfSource, fileName?: string, fallback?: string): string;
@@ -1,57 +0,0 @@
1
- /**
2
- * Everything `PdfReader` opens, without touching pdf.js: that is loaded
3
- * lazily, and this module is safe on a server (no browser global at module
4
- * scope).
5
- */
6
- /** A URL fetched with request headers, such as an `Authorization` token. */
7
- export type PdfUrlSource = {
8
- url: string | URL;
9
- httpHeaders?: Record<string, string>;
10
- /** Sends cookies with a cross-origin request. */
11
- withCredentials?: boolean;
12
- };
13
- /**
14
- * What `PdfReader`'s `file` accepts: a URL, a `File` or `Blob`, the bytes
15
- * (`ArrayBuffer`, `Uint8Array`), or a URL with headers. Bytes are copied, so
16
- * your buffer stays usable after the reader opened it.
17
- */
18
- export type PdfSource = string | URL | Blob | ArrayBuffer | Uint8Array | PdfUrlSource;
19
- /** The parameters pdf.js `getDocument` takes. */
20
- export type PdfjsSourceParams = {
21
- url: string;
22
- httpHeaders?: Record<string, string>;
23
- withCredentials?: boolean;
24
- } | {
25
- data: Uint8Array;
26
- };
27
- /** A Blob or a File, also from another realm (an iframe). */
28
- export declare function isBlob(value: unknown): value is Blob;
29
- export declare function isPdfUrlSource(value: unknown): value is PdfUrlSource;
30
- /** The URL a source is fetched from; `null` for a Blob or bytes. */
31
- export declare function pdfSourceUrl(source: PdfSource): string | null;
32
- /**
33
- * A key that changes only when the document does, so a re-render does not
34
- * reload it: a URL (with its headers) is compared by value, a Blob or a
35
- * buffer by identity. An inline `{ url, httpHeaders }` object is therefore
36
- * fine; a new `Uint8Array` on every render reloads every time.
37
- */
38
- export declare function pdfSourceKey(source: PdfSource | null | undefined): string;
39
- /**
40
- * A copy of the bytes. A buffer that was already detached (transferred to a
41
- * worker: it has 0 bytes) gives an empty copy, which pdf.js reports as an
42
- * empty file, instead of throwing here.
43
- */
44
- export declare function copyPdfData(data: ArrayBuffer | ArrayBufferView): Uint8Array<ArrayBuffer>;
45
- /** The URL parameters pdf.js `getDocument` takes. */
46
- export type PdfjsUrlParams = Extract<PdfjsSourceParams, {
47
- url: string;
48
- }>;
49
- /**
50
- * The source as react-pdf's `file` takes it, synchronously: URL parameters,
51
- * or a Blob. Bytes are copied into a Blob, and every load reads a fresh
52
- * buffer from it: pdf.js transfers the buffer it is given to its worker,
53
- * which would leave yours, or a copy reused by a second load, detached.
54
- */
55
- export declare function toPdfjsSource(source: PdfSource): Blob | PdfjsUrlParams;
56
- /** {@link toPdfjsSource} with a Blob read into bytes, for `getDocument`. */
57
- export declare function toPdfjsParams(source: PdfSource): Promise<PdfjsSourceParams>;
@@ -1,59 +0,0 @@
1
- export type FormatAmountOptions = {
2
- /** BCP 47 locale, such as `'fr-FR'`. Defaults to the runtime's locale. */
3
- locale?: string;
4
- /**
5
- * Decimals to show, 0 to 20. With a currency it defaults to the
6
- * currency's own (ISO 4217: JPY 0, EUR 2, KWD 3); without one, to 2. Pass
7
- * `2` to keep two decimals whatever the currency. `NaN` or `Infinity`
8
- * counts as not given.
9
- */
10
- fractionDigits?: number;
11
- };
12
- export type FormatDateOptions = {
13
- /** BCP 47 locale, such as `'fr-FR'`. Defaults to the runtime's locale. */
14
- locale?: string;
15
- /**
16
- * IANA time zone for values with a time, such as `'Europe/Paris'`.
17
- * Defaults to the runtime's. A date-only value (`'2026-03-01'`) ignores it
18
- * and always shows its own calendar day.
19
- */
20
- timeZone?: string;
21
- /** Defaults to `'medium'` (`Mar 1, 2026`). */
22
- dateStyle?: 'full' | 'long' | 'medium' | 'short';
23
- /** Adds the time; ignored for a date-only value. */
24
- timeStyle?: 'full' | 'long' | 'medium' | 'short';
25
- };
26
- export type DateInput = string | number | Date | null | undefined;
27
- /**
28
- * Formats an amount, in a currency when one is given. `null` and
29
- * `undefined` give `'—'`.
30
- *
31
- * @example formatAmount(1234.5, 'EUR', { locale: 'fr-FR' }) // '1 234,50 €'
32
- * @example formatAmount(1234.5, 'JPY', { locale: 'en-US' }) // '¥1,235'
33
- */
34
- export declare function formatAmount(value: number | null | undefined, currency?: string | null, options?: FormatAmountOptions): string;
35
- /**
36
- * Formats a date. A date-only string (`YYYY-MM-DD`) keeps its calendar day
37
- * in every time zone; other values are shown in `timeZone`. Empty values
38
- * give `'—'`; a string that is not a date is returned as it is.
39
- *
40
- * @example formatDate('2026-03-01', { locale: 'en-US' }) // 'Mar 1, 2026'
41
- */
42
- export declare function formatDate(value: DateInput, options?: FormatDateOptions): string;
43
- export type FormattersOptions = {
44
- locale?: string;
45
- timeZone?: string;
46
- };
47
- export type Formatters = {
48
- formatAmount: (value: number | null | undefined, currency?: string | null, options?: FormatAmountOptions) => string;
49
- formatDate: (value: DateInput, options?: FormatDateOptions) => string;
50
- };
51
- /**
52
- * `formatAmount` and `formatDate` bound to a locale and a time zone, for a
53
- * server route or a document builder. Options given per call win, unless
54
- * they are `undefined`.
55
- *
56
- * @example
57
- * const { formatAmount, formatDate } = createFormatters({ locale: 'fr-FR', timeZone: 'Europe/Paris' });
58
- */
59
- export declare function createFormatters(defaults?: FormattersOptions): Formatters;
@@ -1,12 +0,0 @@
1
- /**
2
- * The most decimals every `Intl.NumberFormat` accepts. ES2023 raised the
3
- * limit to 100; engines before it throw a `RangeError` above 20.
4
- */
5
- export declare const MAX_FRACTION_DIGITS = 20;
6
- /**
7
- * A `fractionDigits` option as both amount formatters apply it —
8
- * `formatAmount` and `CurrencyField` (`currencyFractionDigits`): a finite
9
- * number, truncated and clamped to 0..20; anything else (`undefined`, `NaN`,
10
- * `Infinity`) is `undefined`, so the default decimals apply.
11
- */
12
- export declare function fractionDigitsOption(fractionDigits?: number): number | undefined;
@@ -1,60 +0,0 @@
1
- import { PrintValue } from './print-value.utils';
2
- export type PrintColumnFormat = 'amount' | 'date' | 'number' | 'percent';
3
- /** How a column reads its value: a key of the row, or an accessor. */
4
- export type PrintColumnSource<T> = {
5
- key: keyof T & string;
6
- id?: string;
7
- } | {
8
- id: string;
9
- accessor: (row: T, index: number) => unknown;
10
- };
11
- export type PrintColumn<T> = PrintColumnSource<T> & {
12
- label: string;
13
- /** Points, or a percentage of the table (`'25%'`); otherwise it flexes. */
14
- width?: number | `${number}%`;
15
- /** Share of the remaining width; 1 by default. */
16
- flex?: number;
17
- /** `'right'` by default for amounts, numbers and percentages. */
18
- align?: 'left' | 'center' | 'right';
19
- /** How to print the value; a function returns the text itself. */
20
- format?: PrintColumnFormat | ((value: unknown, row: T) => string);
21
- /** ISO 4217 code for `format: 'amount'`, or one per row. */
22
- currency?: string | ((row: T) => string | null | undefined);
23
- /** A footer total: the sum of the column, or your own figure. */
24
- total?: 'sum' | ((rows: T[]) => number | string | null);
25
- };
26
- export type PrintTableOptions = {
27
- /** Currency of `amount` columns that name none. */
28
- currency?: string;
29
- /** Text in the first footer cell when that column has no total. */
30
- totalLabel?: string;
31
- };
32
- export type ResolvedPrintColumn = {
33
- id: string;
34
- label: string;
35
- align: 'left' | 'center' | 'right';
36
- width?: number | `${number}%`;
37
- flex?: number;
38
- };
39
- export type ResolvedPrintTable = {
40
- columns: ResolvedPrintColumn[];
41
- rows: PrintValue[][];
42
- /** One totals row, or none when no column has a `total`. */
43
- footer: PrintValue[][];
44
- empty: boolean;
45
- };
46
- /** Types a column list, so `key` is checked against the row type. */
47
- export declare function definePrintColumns<T>(columns: PrintColumn<T>[]): PrintColumn<T>[];
48
- /** A column's value as a {@link PrintValue}, ready for the renderer. */
49
- export declare function toPrintValue<T>(column: PrintColumn<T>, value: unknown, row: T | undefined, options?: PrintTableOptions): PrintValue;
50
- /**
51
- * Columns, cells and totals of a printed table. A footer row is added when a
52
- * column has a `total`; its first cell, when that column has none, holds
53
- * `totalLabel`.
54
- */
55
- export declare function resolvePrintTable<T>(columns: PrintColumn<T>[], rows: T[], options?: PrintTableOptions): ResolvedPrintTable;
56
- /** Label and value pairs for one row: a detail block from the same columns. */
57
- export declare function resolvePrintFields<T>(fields: PrintColumn<T>[], row: T, options?: PrintTableOptions): {
58
- label: string;
59
- value: PrintValue;
60
- }[];
@@ -1,40 +0,0 @@
1
- export type PrintAmountValue = {
2
- amount: number | null;
3
- /** ISO 4217 code, such as `'EUR'`. Without one, a plain decimal. */
4
- currency?: string | null;
5
- /** Decimals to show; defaults to the currency's own. */
6
- fractionDigits?: number;
7
- };
8
- export type PrintDateValue = {
9
- /** `'2026-03-01'`, an ISO date-time or epoch milliseconds. */
10
- date: string | number | null;
11
- dateStyle?: 'full' | 'long' | 'medium' | 'short';
12
- timeStyle?: 'full' | 'long' | 'medium' | 'short';
13
- };
14
- export type PrintNumberValue = {
15
- number: number | null;
16
- /** `'percent'` shows `0.2` as `20%`. */
17
- style?: 'decimal' | 'percent';
18
- /** Maximum decimals; defaults to 3 (0 for a percentage). */
19
- fractionDigits?: number;
20
- };
21
- /** Text, a number, or an amount, date or number formatted when rendered. */
22
- export type PrintValue = string | number | null | undefined | PrintAmountValue | PrintDateValue | PrintNumberValue;
23
- export type PrintValueOptions = {
24
- /** BCP 47 locale, such as `'fr-FR'`. Defaults to the runtime's locale. */
25
- locale?: string;
26
- /** IANA time zone for dates with a time. */
27
- timeZone?: string;
28
- /** What an empty value shows; `'—'` by default. */
29
- empty?: string;
30
- };
31
- /** Whether a value is empty: `null`, `undefined`, `''` or an empty wrapper. */
32
- export declare function isEmptyPrintValue(value: PrintValue): boolean;
33
- /**
34
- * Formats a {@link PrintValue} as the text a document prints. An empty value
35
- * gives `options.empty` (`'—'`).
36
- *
37
- * @example formatPrintValue({ amount: 1234.5, currency: 'EUR' }, { locale: 'fr-FR' }) // '1 234,50 €'
38
- * @example formatPrintValue({ number: 0.2, style: 'percent' }, { locale: 'en-US' }) // '20%'
39
- */
40
- export declare function formatPrintValue(value: PrintValue, options?: PrintValueOptions): string;
@@ -1,18 +0,0 @@
1
- export type PdfFileSnapshot = {
2
- blob: Blob | null;
3
- /** An object URL of `blob`, for an `<iframe>`, a `PdfReader` or a link. */
4
- url: string | null;
5
- loading: boolean;
6
- error: Error | null;
7
- };
8
- export declare const IDLE_PDF_FILE: PdfFileSnapshot;
9
- /**
10
- * What `usePdfFile` (React) and `usePdf` (Vue) run, framework-free: renders a
11
- * document with `render`, keeps one object URL alive at a time and revokes it
12
- * when replaced or disposed, and drops the result of a render that a newer
13
- * `load` (or `dispose`) overtook.
14
- */
15
- export declare function createPdfFileLoader<I, O = undefined>(onChange: (snapshot: PdfFileSnapshot) => void, render: (input: I, options?: O) => Promise<Blob>): {
16
- load(input: I | null, options?: O): Promise<void>;
17
- dispose(): void;
18
- };
@@ -1,22 +0,0 @@
1
- /**
2
- * Serving a rendered PDF, framework-free: the headers of a response and a
3
- * Web stream over react-pdf's Node stream. No `node:*` import, so a browser
4
- * bundle stays clean.
5
- */
6
- export type PdfResponseOptions = {
7
- /** Name of the file; `.pdf` is added when missing. `document.pdf` by default. */
8
- fileName?: string;
9
- /** `'inline'` shows it in the browser; `'attachment'` (default) saves it. */
10
- disposition?: 'inline' | 'attachment';
11
- /** More headers, such as `Cache-Control`. */
12
- headers?: HeadersInit;
13
- };
14
- /**
15
- * `Content-Disposition` with an ASCII `filename` every client reads and a
16
- * UTF-8 `filename*` for the rest (RFC 6266).
17
- */
18
- export declare function contentDisposition(disposition: 'inline' | 'attachment', fileName: string): string;
19
- /** A Web `Response` carrying PDF bytes, with type, length and file name. */
20
- export declare function pdfBytesResponse(bytes: Uint8Array<ArrayBuffer>, options?: PdfResponseOptions): Response;
21
- /** A Web `ReadableStream` over an async iterable of chunks (react-pdf's stream). */
22
- export declare function toWebStream(source: AsyncIterable<Uint8Array | string>): ReadableStream<Uint8Array>;
@@ -1,11 +0,0 @@
1
- /**
2
- * The document model and its react-pdf renderer, shared by
3
- * `@nxgt/material/print` and `@nxgt/material-vue/pdf`.
4
- *
5
- * `model/` is plain data and imports nothing from React. `render/` imports
6
- * `react` and `@react-pdf/renderer` — optional peers in both libraries — so
7
- * it is reached from the print (React) and pdf (Vue) entries only, never from
8
- * a barrel: `scripts/verify-ssr-safe.ts` fails the build otherwise.
9
- */
10
- export * from './model';
11
- export * from './render';