@nxgt/material 2.0.0 → 2.1.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 (58) hide show
  1. package/README.md +92 -1
  2. package/dist/{blockDiagram-BEXU5L5S-DF3vGlXD.js → blockDiagram-BEXU5L5S-DLqZARaF.js} +2 -2
  3. package/dist/{chunk-3FUC2YCW-CAJ0rgCP.js → chunk-3FUC2YCW-C3UF_VLZ.js} +2 -2
  4. package/dist/{chunk-7M6MHVWA-DAfeILvI.js → chunk-7M6MHVWA-DhVIMmqx.js} +1 -1
  5. package/dist/{chunk-GNY47TPC-CN53JUAg.js → chunk-GNY47TPC-ItV2FvY4.js} +4 -4
  6. package/dist/{chunk-NETBCI7D-D-hMoCi1.js → chunk-NETBCI7D-DDgfuS2X.js} +1 -1
  7. package/dist/{chunk-Z7XXMR3K-DFs9CL0g.js → chunk-Z7XXMR3K-9wNLyUjb.js} +1 -1
  8. package/dist/{classDiagram-v2-NBCMYWYE-4wLAMwQS.js → classDiagram-v2-NBCMYWYE-Bnc_Rw-F.js} +2 -2
  9. package/dist/components.js +2 -2
  10. package/dist/{dagre-6A5THRUB-0G8VOjTo.js → dagre-6A5THRUB-BzZODvtv.js} +3 -3
  11. package/dist/{diagram-22UHCM2B-DpQbjmb8.js → diagram-22UHCM2B-CtvoZXaL.js} +2 -2
  12. package/dist/{elk-276RUBZZ-DgpGvMfb.js → elk-276RUBZZ-DWlp7lAW.js} +3 -3
  13. package/dist/{erDiagram-OPXOYQCR-BQdPcP9U.js → erDiagram-OPXOYQCR-BNnvl0WV.js} +2 -2
  14. package/dist/{flowDiagram-KWPJA3E3-Dip-pIe-.js → flowDiagram-KWPJA3E3-COO8DqZK.js} +3 -3
  15. package/dist/{ganttDiagram-FUAMR5RP-B5YjspG8.js → ganttDiagram-FUAMR5RP-D0YYQV0q.js} +1 -1
  16. package/dist/{graphlib-DXJ-RYOD.js → graphlib-CIkkh3QG.js} +1 -1
  17. package/dist/{journeyDiagram-ZHPQQLJL-BHYQHz8d.js → journeyDiagram-ZHPQQLJL-Cr1khCo3.js} +1 -1
  18. package/dist/lib/lib/index.d.ts +1 -0
  19. package/dist/lib/lib/print-format.utils.d.ts +15 -0
  20. package/dist/lib/map/components/consts.d.ts +6 -0
  21. package/dist/lib/map/components/index.d.ts +5 -0
  22. package/dist/lib/map/components/location-field.d.ts +10 -0
  23. package/dist/lib/map/components/location-form-field.d.ts +3 -0
  24. package/dist/lib/map/components/map.d.ts +6 -0
  25. package/dist/lib/map/components/map.stories.d.ts +13 -0
  26. package/dist/lib/map/components/partials/index.d.ts +5 -0
  27. package/dist/lib/map/components/partials/location-marker.d.ts +5 -0
  28. package/dist/lib/map/components/partials/location-preview.d.ts +7 -0
  29. package/dist/lib/map/components/partials/map-actions.d.ts +6 -0
  30. package/dist/lib/map/components/partials/marker.d.ts +11 -0
  31. package/dist/lib/map/components/partials/minimap-control.d.ts +5 -0
  32. package/dist/lib/map/index.d.ts +38 -0
  33. package/dist/lib/map/index.test.d.ts +1 -0
  34. package/dist/lib/map/use-geolocation.d.ts +2 -0
  35. package/dist/lib/print/index.d.ts +1 -1
  36. package/dist/lib.js +2 -1
  37. package/dist/{main-C6rjLaqK.js → main-DeilmPv5.js} +2 -2
  38. package/dist/main.js +3 -2
  39. package/dist/map.js +285 -0
  40. package/dist/material.css +1 -1
  41. package/dist/{mermaid.core-DPqKYf9L.js → mermaid.core-CsGdwvR0.js} +20 -20
  42. package/dist/{mindmap-definition-NLK3R4M7-DbG40nE4.js → mindmap-definition-NLK3R4M7-IZYTe2Mh.js} +2 -2
  43. package/dist/{pieDiagram-5QR66LMP-dMM51IAn.js → pieDiagram-5QR66LMP-DqnWu-Zg.js} +1 -1
  44. package/dist/print-format.utils-CyR00FwK.js +24 -0
  45. package/dist/print.js +97 -119
  46. package/dist/{quadrantDiagram-O4NWA36T-BaSKZiw5.js → quadrantDiagram-O4NWA36T-tobrs5dc.js} +1 -1
  47. package/dist/{requirementDiagram-PLB6GJNP-DxwpOB3H.js → requirementDiagram-PLB6GJNP-Lm5o98ZN.js} +2 -2
  48. package/dist/{sankeyDiagram-IPEJSGJF-PcxB8umJ.js → sankeyDiagram-IPEJSGJF-ClWq95mY.js} +1 -1
  49. package/dist/{stateDiagram-v2-GCMORJYK-DXqVvjkk.js → stateDiagram-v2-GCMORJYK-CbrdDeDZ.js} +2 -2
  50. package/dist/{swimlanes-2SLR337P-MVsSgObR.js → swimlanes-2SLR337P-4Oufc9Ey.js} +3 -3
  51. package/dist/{swimlanesDiagram-TC7HE7FX-fSzW_vlb.js → swimlanesDiagram-TC7HE7FX-DQu480YU.js} +3 -3
  52. package/dist/{timeline-definition-EJHVYXUP-DtX7hK_l.js → timeline-definition-EJHVYXUP-CLerfWh1.js} +1 -1
  53. package/dist/{usecaseDiagram-POWQR4AR-DmFl7fb7.js → usecaseDiagram-POWQR4AR-BwE2bgk0.js} +2 -2
  54. package/dist/{xychartDiagram-PMCCYNJV-BZsPm_3V.js → xychartDiagram-PMCCYNJV-D-ynJEtr.js} +1 -1
  55. package/lib/map/map.css +9 -0
  56. package/package.json +37 -2
  57. package/dist/lib/print/utils.d.ts +0 -5
  58. /package/dist/lib/{print/utils.test.d.ts → lib/print-format.utils.test.d.ts} +0 -0
@@ -8,9 +8,9 @@ import { a as he } from "./chunk-MBY4JIJT-CKKv0vlf.js";
8
8
  import "./chunk-7PRAP22T-1TE3ytg4.js";
9
9
  import "./chunk-7INBJB4K-BgETHnGm.js";
10
10
  import "./chunk-5DYCD2WN-BepRdgxI.js";
11
- import "./chunk-Z7XXMR3K-DFs9CL0g.js";
11
+ import "./chunk-Z7XXMR3K-9wNLyUjb.js";
12
12
  import "./chunk-UA2S7LBM-BUjL6NMa.js";
13
- import { n as ge } from "./chunk-GNY47TPC-CN53JUAg.js";
13
+ import { n as ge } from "./chunk-GNY47TPC-ItV2FvY4.js";
14
14
  import { n as _e, t as ve } from "./chunk-LNGE3PJU-CiGrDO_F.js";
15
15
  //#region node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
16
16
  function ye(e) {
@@ -302,7 +302,7 @@ var qe = "c4", Je = {
302
302
  id: Ye,
303
303
  detector: /* @__PURE__ */ p((e) => /^\s*(graph|flowchart)/.test(e), "detector"),
304
304
  loader: /* @__PURE__ */ p(async () => {
305
- let { diagram: e } = await import("./flowDiagram-KWPJA3E3-Dip-pIe-.js");
305
+ let { diagram: e } = await import("./flowDiagram-KWPJA3E3-COO8DqZK.js");
306
306
  return {
307
307
  id: Ye,
308
308
  diagram: e
@@ -312,7 +312,7 @@ var qe = "c4", Je = {
312
312
  id: Ze,
313
313
  detector: /* @__PURE__ */ p((e) => /^\s*agentflow-beta\b/.test(e), "detector"),
314
314
  loader: /* @__PURE__ */ p(async () => {
315
- let { diagram: e } = await import("./diagram-22UHCM2B-DpQbjmb8.js");
315
+ let { diagram: e } = await import("./diagram-22UHCM2B-CtvoZXaL.js");
316
316
  return {
317
317
  id: Ze,
318
318
  diagram: e
@@ -322,7 +322,7 @@ var qe = "c4", Je = {
322
322
  id: $e,
323
323
  detector: /* @__PURE__ */ p((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
324
324
  loader: /* @__PURE__ */ p(async () => {
325
- let { diagram: e } = await import("./swimlanesDiagram-TC7HE7FX-fSzW_vlb.js");
325
+ let { diagram: e } = await import("./swimlanesDiagram-TC7HE7FX-DQu480YU.js");
326
326
  return {
327
327
  id: $e,
328
328
  diagram: e
@@ -332,7 +332,7 @@ var qe = "c4", Je = {
332
332
  id: tt,
333
333
  detector: /* @__PURE__ */ p((e) => /^\s*erDiagram/.test(e), "detector"),
334
334
  loader: /* @__PURE__ */ p(async () => {
335
- let { diagram: e } = await import("./erDiagram-OPXOYQCR-BQdPcP9U.js");
335
+ let { diagram: e } = await import("./erDiagram-OPXOYQCR-BNnvl0WV.js");
336
336
  return {
337
337
  id: tt,
338
338
  diagram: e
@@ -352,7 +352,7 @@ var qe = "c4", Je = {
352
352
  id: at,
353
353
  detector: /* @__PURE__ */ p((e) => /^\s*gantt/.test(e), "detector"),
354
354
  loader: /* @__PURE__ */ p(async () => {
355
- let { diagram: e } = await import("./ganttDiagram-FUAMR5RP-B5YjspG8.js");
355
+ let { diagram: e } = await import("./ganttDiagram-FUAMR5RP-D0YYQV0q.js");
356
356
  return {
357
357
  id: at,
358
358
  diagram: e
@@ -372,7 +372,7 @@ var qe = "c4", Je = {
372
372
  id: lt,
373
373
  detector: /* @__PURE__ */ p((e) => /^\s*pie/.test(e), "detector"),
374
374
  loader: /* @__PURE__ */ p(async () => {
375
- let { diagram: e } = await import("./pieDiagram-5QR66LMP-dMM51IAn.js");
375
+ let { diagram: e } = await import("./pieDiagram-5QR66LMP-DqnWu-Zg.js");
376
376
  return {
377
377
  id: lt,
378
378
  diagram: e
@@ -382,7 +382,7 @@ var qe = "c4", Je = {
382
382
  id: dt,
383
383
  detector: /* @__PURE__ */ p((e) => /^\s*quadrantChart/.test(e), "detector"),
384
384
  loader: /* @__PURE__ */ p(async () => {
385
- let { diagram: e } = await import("./quadrantDiagram-O4NWA36T-BaSKZiw5.js");
385
+ let { diagram: e } = await import("./quadrantDiagram-O4NWA36T-tobrs5dc.js");
386
386
  return {
387
387
  id: dt,
388
388
  diagram: e
@@ -392,7 +392,7 @@ var qe = "c4", Je = {
392
392
  id: pt,
393
393
  detector: /* @__PURE__ */ p((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
394
394
  loader: /* @__PURE__ */ p(async () => {
395
- let { diagram: e } = await import("./xychartDiagram-PMCCYNJV-BZsPm_3V.js");
395
+ let { diagram: e } = await import("./xychartDiagram-PMCCYNJV-D-ynJEtr.js");
396
396
  return {
397
397
  id: pt,
398
398
  diagram: e
@@ -402,7 +402,7 @@ var qe = "c4", Je = {
402
402
  id: ht,
403
403
  detector: /* @__PURE__ */ p((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
404
404
  loader: /* @__PURE__ */ p(async () => {
405
- let { diagram: e } = await import("./requirementDiagram-PLB6GJNP-DxwpOB3H.js");
405
+ let { diagram: e } = await import("./requirementDiagram-PLB6GJNP-Lm5o98ZN.js");
406
406
  return {
407
407
  id: ht,
408
408
  diagram: e
@@ -422,7 +422,7 @@ var qe = "c4", Je = {
422
422
  id: yt,
423
423
  detector: /* @__PURE__ */ p((e) => /^\s*classDiagram/.test(e), "detector"),
424
424
  loader: /* @__PURE__ */ p(async () => {
425
- let { diagram: e } = await import("./classDiagram-v2-NBCMYWYE-4wLAMwQS.js");
425
+ let { diagram: e } = await import("./classDiagram-v2-NBCMYWYE-Bnc_Rw-F.js");
426
426
  return {
427
427
  id: yt,
428
428
  diagram: e
@@ -432,7 +432,7 @@ var qe = "c4", Je = {
432
432
  id: xt,
433
433
  detector: /* @__PURE__ */ p((e) => /^\s*stateDiagram/.test(e), "detector"),
434
434
  loader: /* @__PURE__ */ p(async () => {
435
- let { diagram: e } = await import("./stateDiagram-v2-GCMORJYK-DXqVvjkk.js");
435
+ let { diagram: e } = await import("./stateDiagram-v2-GCMORJYK-CbrdDeDZ.js");
436
436
  return {
437
437
  id: xt,
438
438
  diagram: e
@@ -442,7 +442,7 @@ var qe = "c4", Je = {
442
442
  id: Ct,
443
443
  detector: /* @__PURE__ */ p((e) => /^\s*journey/.test(e), "detector"),
444
444
  loader: /* @__PURE__ */ p(async () => {
445
- let { diagram: e } = await import("./journeyDiagram-ZHPQQLJL-BHYQHz8d.js");
445
+ let { diagram: e } = await import("./journeyDiagram-ZHPQQLJL-Cr1khCo3.js");
446
446
  return {
447
447
  id: Ct,
448
448
  diagram: e
@@ -460,7 +460,7 @@ var qe = "c4", Je = {
460
460
  id: Ot,
461
461
  detector: /* @__PURE__ */ p((e, t = {}) => /^\s*flowchart-elk/.test(e) ? (t.layout = "elk", !0) : !1, "detector"),
462
462
  loader: /* @__PURE__ */ p(async () => {
463
- let { diagram: e } = await import("./flowDiagram-KWPJA3E3-Dip-pIe-.js");
463
+ let { diagram: e } = await import("./flowDiagram-KWPJA3E3-COO8DqZK.js");
464
464
  return {
465
465
  id: Ot,
466
466
  diagram: e
@@ -470,7 +470,7 @@ var qe = "c4", Je = {
470
470
  id: At,
471
471
  detector: /* @__PURE__ */ p((e) => /^\s*timeline/.test(e), "detector"),
472
472
  loader: /* @__PURE__ */ p(async () => {
473
- let { diagram: e } = await import("./timeline-definition-EJHVYXUP-DtX7hK_l.js");
473
+ let { diagram: e } = await import("./timeline-definition-EJHVYXUP-CLerfWh1.js");
474
474
  return {
475
475
  id: At,
476
476
  diagram: e
@@ -480,7 +480,7 @@ var qe = "c4", Je = {
480
480
  id: Mt,
481
481
  detector: /* @__PURE__ */ p((e) => /^\s*mindmap/.test(e), "detector"),
482
482
  loader: /* @__PURE__ */ p(async () => {
483
- let { diagram: e } = await import("./mindmap-definition-NLK3R4M7-DbG40nE4.js");
483
+ let { diagram: e } = await import("./mindmap-definition-NLK3R4M7-IZYTe2Mh.js");
484
484
  return {
485
485
  id: Mt,
486
486
  diagram: e
@@ -500,7 +500,7 @@ var qe = "c4", Je = {
500
500
  id: It,
501
501
  detector: /* @__PURE__ */ p((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
502
502
  loader: /* @__PURE__ */ p(async () => {
503
- let { diagram: e } = await import("./sankeyDiagram-IPEJSGJF-PcxB8umJ.js");
503
+ let { diagram: e } = await import("./sankeyDiagram-IPEJSGJF-ClWq95mY.js");
504
504
  return {
505
505
  id: It,
506
506
  diagram: e
@@ -530,7 +530,7 @@ var qe = "c4", Je = {
530
530
  id: Ht,
531
531
  detector: /* @__PURE__ */ p((e) => /^\s*block(-beta)?/.test(e), "detector"),
532
532
  loader: /* @__PURE__ */ p(async () => {
533
- let { diagram: e } = await import("./blockDiagram-BEXU5L5S-DF3vGlXD.js");
533
+ let { diagram: e } = await import("./blockDiagram-BEXU5L5S-DLqZARaF.js");
534
534
  return {
535
535
  id: Ht,
536
536
  diagram: e
@@ -600,7 +600,7 @@ var qe = "c4", Je = {
600
600
  id: nn,
601
601
  detector: /* @__PURE__ */ p((e) => /^\s*usecase-beta(?:\s|$)/.test(e), "detector"),
602
602
  loader: /* @__PURE__ */ p(async () => {
603
- let { diagram: e } = await import("./usecaseDiagram-POWQR4AR-DmFl7fb7.js");
603
+ let { diagram: e } = await import("./usecaseDiagram-POWQR4AR-BwE2bgk0.js");
604
604
  return {
605
605
  id: nn,
606
606
  diagram: e
@@ -7,11 +7,11 @@ import "./chunk-MBY4JIJT-CKKv0vlf.js";
7
7
  import "./chunk-7PRAP22T-1TE3ytg4.js";
8
8
  import "./chunk-7INBJB4K-BgETHnGm.js";
9
9
  import "./chunk-5DYCD2WN-BepRdgxI.js";
10
- import "./chunk-Z7XXMR3K-DFs9CL0g.js";
10
+ import "./chunk-Z7XXMR3K-9wNLyUjb.js";
11
11
  import { t as u } from "./chunk-XXDRQBXY-BnSZ-xBE.js";
12
12
  import { t as d } from "./chunk-WEXAMYUT-CLclanOP.js";
13
13
  import "./chunk-UA2S7LBM-BUjL6NMa.js";
14
- import { r as f, t as p } from "./chunk-GNY47TPC-CN53JUAg.js";
14
+ import { r as f, t as p } from "./chunk-GNY47TPC-ItV2FvY4.js";
15
15
  //#region node_modules/uuid/dist/stringify.js
16
16
  var m = [];
17
17
  for (let e = 0; e < 256; ++e) m.push((e + 256).toString(16).slice(1));
@@ -1,4 +1,4 @@
1
- import { Uc as e, Vc as t } from "./main-C6rjLaqK.js";
1
+ import { Uc as e, Vc as t } from "./main-DeilmPv5.js";
2
2
  import { n } from "./src-ripuExsx.js";
3
3
  import { i as r, p as i } from "./chunk-ZIGJFQKS-7XzdXF8V.js";
4
4
  import { t as a } from "./ordinal-DuP05kVQ.js";
@@ -0,0 +1,24 @@
1
+ //#region lib/lib/print-format.utils.ts
2
+ function e(e, t) {
3
+ if (e == null) return "—";
4
+ try {
5
+ return new Intl.NumberFormat(void 0, {
6
+ style: t ? "currency" : "decimal",
7
+ currency: t ?? void 0,
8
+ minimumFractionDigits: 2,
9
+ maximumFractionDigits: 2
10
+ }).format(e);
11
+ } catch {
12
+ return `${e.toFixed(2)}${t ? ` ${t}` : ""}`;
13
+ }
14
+ }
15
+ function t(e) {
16
+ if (!e) return "—";
17
+ try {
18
+ return new Intl.DateTimeFormat(void 0, { dateStyle: "medium" }).format(new Date(e));
19
+ } catch {
20
+ return e;
21
+ }
22
+ }
23
+ //#endregion
24
+ export { t as n, e as t };
package/dist/print.js CHANGED
@@ -1,8 +1,9 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { Image as n, Text as r, View as i } from "@react-pdf/renderer";
3
- import { createTw as a } from "react-pdf-tailwind";
1
+ import { n as e, t } from "./print-format.utils-CyR00FwK.js";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { Image as i, Text as a, View as o } from "@react-pdf/renderer";
4
+ import { createTw as s } from "react-pdf-tailwind";
4
5
  //#region lib/print/styles.ts
5
- var o = {
6
+ var c = {
6
7
  page: "font-sans text-[9pt] text-slate-900 px-8 py-7 flex-col gap-0",
7
8
  header: "flex-row items-center mb-4",
8
9
  headerTitle: "text-[18pt] font-bold text-slate-900 tracking-tight",
@@ -32,7 +33,7 @@ var o = {
32
33
  notesText: "text-[8pt] text-secondary leading-normal",
33
34
  badge: "rounded-xl px-4 py-1.5 self-start",
34
35
  badgeText: "text-[8pt] font-bold text-white"
35
- }, s = a({
36
+ }, l = s({
36
37
  colors: {
37
38
  primary: "#485096",
38
39
  secondary: "#347cb5",
@@ -54,63 +55,63 @@ var o = {
54
55
  });
55
56
  //#endregion
56
57
  //#region lib/print/components/print-badge.tsx
57
- function c({ color: t, className: n, children: a }) {
58
- return /* @__PURE__ */ e(i, {
59
- style: [s(`${o.badge} ${n ?? ""}`), t ? { backgroundColor: t } : {}],
60
- children: /* @__PURE__ */ e(r, {
61
- style: s(o.badgeText),
62
- children: a
58
+ function u({ color: e, className: t, children: r }) {
59
+ return /* @__PURE__ */ n(o, {
60
+ style: [l(`${c.badge} ${t ?? ""}`), e ? { backgroundColor: e } : {}],
61
+ children: /* @__PURE__ */ n(a, {
62
+ style: l(c.badgeText),
63
+ children: r
63
64
  })
64
65
  });
65
66
  }
66
67
  //#endregion
67
68
  //#region lib/print/components/print-card.tsx
68
- function l({ children: t, className: n }) {
69
- return /* @__PURE__ */ e(i, {
70
- style: s(`border border-border rounded-xs p-2.5 flex-row gap-[24pt] ${n || ""}`),
71
- children: t
69
+ function d({ children: e, className: t }) {
70
+ return /* @__PURE__ */ n(o, {
71
+ style: l(`border border-border rounded-xs p-2.5 flex-row gap-[24pt] ${t || ""}`),
72
+ children: e
72
73
  });
73
74
  }
74
- function u({ label: n, value: a }) {
75
- return a ? /* @__PURE__ */ t(i, {
76
- style: s("flex-col gap-0.5"),
77
- children: [/* @__PURE__ */ e(r, {
78
- style: s("text-[7pt] text-muted font-bold uppercase"),
79
- children: n
80
- }), /* @__PURE__ */ e(r, {
81
- style: s("text-[9pt] text-primary"),
82
- children: a
75
+ function f({ label: e, value: t }) {
76
+ return t ? /* @__PURE__ */ r(o, {
77
+ style: l("flex-col gap-0.5"),
78
+ children: [/* @__PURE__ */ n(a, {
79
+ style: l("text-[7pt] text-muted font-bold uppercase"),
80
+ children: e
81
+ }), /* @__PURE__ */ n(a, {
82
+ style: l("text-[9pt] text-primary"),
83
+ children: t
83
84
  })]
84
85
  }) : null;
85
86
  }
86
87
  //#endregion
87
88
  //#region lib/print/components/print-header.tsx
88
- function d({ title: a, reference: c, qrDataUrl: l, logoText: u = "LOGO" }) {
89
- return /* @__PURE__ */ t(i, {
90
- style: s(o.header),
89
+ function p({ title: e, reference: t, qrDataUrl: s, logoText: u = "LOGO" }) {
90
+ return /* @__PURE__ */ r(o, {
91
+ style: l(c.header),
91
92
  children: [
92
- /* @__PURE__ */ e(i, {
93
- style: s("w-[72pt] h-[48pt] bg-logoBg rounded-t-xs justify-center items-center"),
94
- children: /* @__PURE__ */ e(r, {
95
- style: s("text-[11pt] font-bold text-secondary tracking-[2px] uppercase"),
93
+ /* @__PURE__ */ n(o, {
94
+ style: l("w-[72pt] h-[48pt] bg-logoBg rounded-t-xs justify-center items-center"),
95
+ children: /* @__PURE__ */ n(a, {
96
+ style: l("text-[11pt] font-bold text-secondary tracking-[2px] uppercase"),
96
97
  children: u
97
98
  })
98
99
  }),
99
- /* @__PURE__ */ t(i, {
100
- style: s("flex-1 flex-col items-center"),
101
- children: [/* @__PURE__ */ e(r, {
102
- style: s(o.headerTitle),
103
- children: a
104
- }), !!c && /* @__PURE__ */ t(r, {
105
- style: s(o.headerRef),
106
- children: ["#", c ?? "—"]
100
+ /* @__PURE__ */ r(o, {
101
+ style: l("flex-1 flex-col items-center"),
102
+ children: [/* @__PURE__ */ n(a, {
103
+ style: l(c.headerTitle),
104
+ children: e
105
+ }), !!t && /* @__PURE__ */ r(a, {
106
+ style: l(c.headerRef),
107
+ children: ["#", t ?? "—"]
107
108
  })]
108
109
  }),
109
- /* @__PURE__ */ e(i, {
110
- style: s("w-[60pt] h-[60pt] bg-qrBg rounded-xsjustify-center items-center"),
111
- children: !!l && /* @__PURE__ */ e(n, {
112
- src: l,
113
- style: s("w-[60pt] h-[60pt] rounded-xs")
110
+ /* @__PURE__ */ n(o, {
111
+ style: l("w-[60pt] h-[60pt] bg-qrBg rounded-xsjustify-center items-center"),
112
+ children: !!s && /* @__PURE__ */ n(i, {
113
+ src: s,
114
+ style: l("w-[60pt] h-[60pt] rounded-xs")
114
115
  })
115
116
  })
116
117
  ]
@@ -118,102 +119,79 @@ function d({ title: a, reference: c, qrDataUrl: l, logoText: u = "LOGO" }) {
118
119
  }
119
120
  //#endregion
120
121
  //#region lib/print/components/print-section.tsx
121
- function f({ title: n, children: a, className: c }) {
122
- return /* @__PURE__ */ t(i, {
123
- style: s(c || "mb-3.5"),
124
- children: [/* @__PURE__ */ e(r, {
125
- style: s(o.sectionTitle),
126
- children: n
127
- }), a]
122
+ function m({ title: e, children: t, className: i }) {
123
+ return /* @__PURE__ */ r(o, {
124
+ style: l(i || "mb-3.5"),
125
+ children: [/* @__PURE__ */ n(a, {
126
+ style: l(c.sectionTitle),
127
+ children: e
128
+ }), t]
128
129
  });
129
130
  }
130
- function p({ label: n, value: a }) {
131
- return /* @__PURE__ */ t(i, {
132
- style: s(o.infoRow),
133
- children: [/* @__PURE__ */ e(r, {
134
- style: s(o.infoLabel),
135
- children: n
136
- }), typeof a == "string" || typeof a == "number" ? /* @__PURE__ */ e(r, {
137
- style: s(o.infoValue),
138
- children: a
139
- }) : a]
131
+ function h({ label: e, value: t }) {
132
+ return /* @__PURE__ */ r(o, {
133
+ style: l(c.infoRow),
134
+ children: [/* @__PURE__ */ n(a, {
135
+ style: l(c.infoLabel),
136
+ children: e
137
+ }), typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ n(a, {
138
+ style: l(c.infoValue),
139
+ children: t
140
+ }) : t]
140
141
  });
141
142
  }
142
143
  //#endregion
143
144
  //#region lib/print/components/print-table.tsx
144
- function m({ children: t }) {
145
- return /* @__PURE__ */ e(i, {
146
- style: s(o.tableSection),
147
- children: t
145
+ function g({ children: e }) {
146
+ return /* @__PURE__ */ n(o, {
147
+ style: l(c.tableSection),
148
+ children: e
148
149
  });
149
150
  }
150
- function h({ children: t }) {
151
- return /* @__PURE__ */ e(i, {
152
- style: s(o.tableHeader),
153
- children: t
151
+ function _({ children: e }) {
152
+ return /* @__PURE__ */ n(o, {
153
+ style: l(c.tableHeader),
154
+ children: e
154
155
  });
155
156
  }
156
- function g({ isAlt: t, children: n }) {
157
- return /* @__PURE__ */ e(i, {
158
- style: [s(o.tableRow), t ? s(o.tableRowAlt) : {}],
159
- children: n
157
+ function v({ isAlt: e, children: t }) {
158
+ return /* @__PURE__ */ n(o, {
159
+ style: [l(c.tableRow), e ? l(c.tableRowAlt) : {}],
160
+ children: t
160
161
  });
161
162
  }
162
- function _({ isHeader: t, flex: n = 1, textAlign: i = "left", children: a }) {
163
- return /* @__PURE__ */ e(r, {
164
- style: [s(t ? o.tableHeaderCell : o.tableCell), {
165
- flex: n,
166
- textAlign: i
163
+ function y({ isHeader: e, flex: t = 1, textAlign: r = "left", children: i }) {
164
+ return /* @__PURE__ */ n(a, {
165
+ style: [l(e ? c.tableHeaderCell : c.tableCell), {
166
+ flex: t,
167
+ textAlign: r
167
168
  }],
168
- children: a ?? "—"
169
+ children: i ?? "—"
169
170
  });
170
171
  }
171
172
  //#endregion
172
173
  //#region lib/print/components/print-totals.tsx
173
- function v({ children: t }) {
174
- return /* @__PURE__ */ e(i, {
175
- style: s(o.totalsSection),
176
- children: /* @__PURE__ */ e(i, {
177
- style: s(o.totalsTable),
178
- children: t
174
+ function b({ children: e }) {
175
+ return /* @__PURE__ */ n(o, {
176
+ style: l(c.totalsSection),
177
+ children: /* @__PURE__ */ n(o, {
178
+ style: l(c.totalsTable),
179
+ children: e
179
180
  })
180
181
  });
181
182
  }
182
- function y({ label: n, value: a, last: c }) {
183
- let l = c ? o.totalsRowLast : o.totalsRow, u = c ? o.totalsLabelBold : o.totalsLabel, d = c ? o.totalsValueBold : o.totalsValue;
184
- return /* @__PURE__ */ t(i, {
185
- style: s(l),
186
- children: [/* @__PURE__ */ e(r, {
187
- style: s(u),
188
- children: n
189
- }), /* @__PURE__ */ e(r, {
190
- style: s(d),
191
- children: a
183
+ function x({ label: e, value: t, last: i }) {
184
+ let s = i ? c.totalsRowLast : c.totalsRow, u = i ? c.totalsLabelBold : c.totalsLabel, d = i ? c.totalsValueBold : c.totalsValue;
185
+ return /* @__PURE__ */ r(o, {
186
+ style: l(s),
187
+ children: [/* @__PURE__ */ n(a, {
188
+ style: l(u),
189
+ children: e
190
+ }), /* @__PURE__ */ n(a, {
191
+ style: l(d),
192
+ children: t
192
193
  })]
193
194
  });
194
195
  }
195
196
  //#endregion
196
- //#region lib/print/utils.ts
197
- function b(e, t) {
198
- if (e == null) return "—";
199
- try {
200
- return new Intl.NumberFormat(void 0, {
201
- style: t ? "currency" : "decimal",
202
- currency: t ?? void 0,
203
- minimumFractionDigits: 2,
204
- maximumFractionDigits: 2
205
- }).format(e);
206
- } catch {
207
- return `${e.toFixed(2)}${t ? ` ${t}` : ""}`;
208
- }
209
- }
210
- function x(e) {
211
- if (!e) return "—";
212
- try {
213
- return new Intl.DateTimeFormat(void 0, { dateStyle: "medium" }).format(new Date(e));
214
- } catch {
215
- return e;
216
- }
217
- }
218
- //#endregion
219
- export { c as PrintBadge, l as PrintCard, u as PrintCardField, d as PrintHeader, p as PrintInfoRow, f as PrintSection, m as PrintTable, _ as PrintTableCell, h as PrintTableHeader, g as PrintTableRow, y as PrintTotalRow, v as PrintTotals, o as commonPrintStyles, b as formatAmount, x as formatDate, s as tw };
197
+ export { u as PrintBadge, d as PrintCard, f as PrintCardField, p as PrintHeader, h as PrintInfoRow, m as PrintSection, g as PrintTable, y as PrintTableCell, _ as PrintTableHeader, v as PrintTableRow, x as PrintTotalRow, b as PrintTotals, c as commonPrintStyles, t as formatAmount, e as formatDate, l as tw };
@@ -1,4 +1,4 @@
1
- import { zc as e } from "./main-C6rjLaqK.js";
1
+ import { zc as e } from "./main-DeilmPv5.js";
2
2
  import { n as t, t as n } from "./src-ripuExsx.js";
3
3
  import { n as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
4
  import { D as i, H as a, U as o, a as s, c, f as l, q as u, v as d, w as f, x as p, y as m, z as h } from "./chunk-O7XYJQB3-kPU-FrcW.js";
@@ -8,11 +8,11 @@ import "./chunk-7PRAP22T-1TE3ytg4.js";
8
8
  import { a as p, i as m, o as h, r as g } from "./chunk-J5ZVWO5B-CYzz6Pq8.js";
9
9
  import "./chunk-7INBJB4K-BgETHnGm.js";
10
10
  import "./chunk-5DYCD2WN-BepRdgxI.js";
11
- import "./chunk-Z7XXMR3K-DFs9CL0g.js";
11
+ import "./chunk-Z7XXMR3K-9wNLyUjb.js";
12
12
  import { t as _ } from "./chunk-XXDRQBXY-BnSZ-xBE.js";
13
13
  import { t as v } from "./chunk-WEXAMYUT-CLclanOP.js";
14
14
  import "./chunk-UA2S7LBM-BUjL6NMa.js";
15
- import { r as y, t as b } from "./chunk-GNY47TPC-CN53JUAg.js";
15
+ import { r as y, t as b } from "./chunk-GNY47TPC-ItV2FvY4.js";
16
16
  //#region node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-PLB6GJNP.mjs
17
17
  var x = (function() {
18
18
  var e = /* @__PURE__ */ n(function(e, t, n, r) {
@@ -1,4 +1,4 @@
1
- import { Lc as e } from "./main-C6rjLaqK.js";
1
+ import { Lc as e } from "./main-DeilmPv5.js";
2
2
  import { t } from "./src-ripuExsx.js";
3
3
  import { t as n } from "./ordinal-DuP05kVQ.js";
4
4
  import { n as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
@@ -8,12 +8,12 @@ import "./chunk-7PRAP22T-1TE3ytg4.js";
8
8
  import { a as h, i as g, o as _, r as v } from "./chunk-J5ZVWO5B-CYzz6Pq8.js";
9
9
  import "./chunk-7INBJB4K-BgETHnGm.js";
10
10
  import "./chunk-5DYCD2WN-BepRdgxI.js";
11
- import "./chunk-Z7XXMR3K-DFs9CL0g.js";
11
+ import "./chunk-Z7XXMR3K-9wNLyUjb.js";
12
12
  import { t as y } from "./chunk-GWA4HPMP-Dk5EfWHB.js";
13
13
  import { t as b } from "./chunk-XXDRQBXY-BnSZ-xBE.js";
14
14
  import { t as x } from "./chunk-WEXAMYUT-CLclanOP.js";
15
15
  import "./chunk-UA2S7LBM-BUjL6NMa.js";
16
- import { r as S, t as C } from "./chunk-GNY47TPC-CN53JUAg.js";
16
+ import { r as S, t as C } from "./chunk-GNY47TPC-ItV2FvY4.js";
17
17
  //#region node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-GCMORJYK.mjs
18
18
  var w = (function() {
19
19
  var e = /* @__PURE__ */ i(function(e, t, n, r) {
@@ -7,10 +7,10 @@ import "./chunk-MBY4JIJT-CKKv0vlf.js";
7
7
  import "./chunk-7PRAP22T-1TE3ytg4.js";
8
8
  import "./chunk-7INBJB4K-BgETHnGm.js";
9
9
  import "./chunk-5DYCD2WN-BepRdgxI.js";
10
- import "./chunk-Z7XXMR3K-DFs9CL0g.js";
10
+ import "./chunk-Z7XXMR3K-9wNLyUjb.js";
11
11
  import "./chunk-UA2S7LBM-BUjL6NMa.js";
12
- import { r as n } from "./chunk-3FUC2YCW-CAJ0rgCP.js";
13
- import { t as r } from "./chunk-NETBCI7D-D-hMoCi1.js";
12
+ import { r as n } from "./chunk-3FUC2YCW-C3UF_VLZ.js";
13
+ import { t as r } from "./chunk-NETBCI7D-DDgfuS2X.js";
14
14
  //#region node_modules/mermaid/dist/chunks/mermaid.core/swimlanes-2SLR337P.mjs
15
15
  function i(e, { measure: t }) {
16
16
  let n = e.config?.swimlane?.lineHops;
@@ -7,14 +7,14 @@ import "./chunk-MBY4JIJT-CKKv0vlf.js";
7
7
  import "./chunk-7PRAP22T-1TE3ytg4.js";
8
8
  import "./chunk-7INBJB4K-BgETHnGm.js";
9
9
  import "./chunk-5DYCD2WN-BepRdgxI.js";
10
- import "./chunk-Z7XXMR3K-DFs9CL0g.js";
10
+ import "./chunk-Z7XXMR3K-9wNLyUjb.js";
11
11
  import "./chunk-GWA4HPMP-Dk5EfWHB.js";
12
12
  import "./chunk-XXDRQBXY-BnSZ-xBE.js";
13
13
  import "./chunk-WEXAMYUT-CLclanOP.js";
14
14
  import "./chunk-UA2S7LBM-BUjL6NMa.js";
15
- import "./chunk-GNY47TPC-CN53JUAg.js";
15
+ import "./chunk-GNY47TPC-ItV2FvY4.js";
16
16
  import "./chunk-LNGE3PJU-CiGrDO_F.js";
17
- import { r as t, t as n } from "./chunk-7M6MHVWA-DAfeILvI.js";
17
+ import { r as t, t as n } from "./chunk-7M6MHVWA-DhVIMmqx.js";
18
18
  //#region node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-TC7HE7FX.mjs
19
19
  var r = n({ styles: /* @__PURE__ */ e((e) => `${t(e)}
20
20
  .swimlane.cluster:not([data-color-id]) rect {
@@ -1,4 +1,4 @@
1
- import { Uc as e } from "./main-C6rjLaqK.js";
1
+ import { Uc as e } from "./main-DeilmPv5.js";
2
2
  import { n as t, t as n } from "./src-ripuExsx.js";
3
3
  import { p as r } from "./chunk-ZIGJFQKS-7XzdXF8V.js";
4
4
  import { n as i, t as a } from "./chunk-Y2CYZVJY-i11wjrBe.js";
@@ -8,11 +8,11 @@ import "./chunk-7PRAP22T-1TE3ytg4.js";
8
8
  import { a as g, i as _, o as v, r as y } from "./chunk-J5ZVWO5B-CYzz6Pq8.js";
9
9
  import "./chunk-7INBJB4K-BgETHnGm.js";
10
10
  import "./chunk-5DYCD2WN-BepRdgxI.js";
11
- import "./chunk-Z7XXMR3K-DFs9CL0g.js";
11
+ import "./chunk-Z7XXMR3K-9wNLyUjb.js";
12
12
  import { t as ee } from "./chunk-XXDRQBXY-BnSZ-xBE.js";
13
13
  import { t as te } from "./chunk-WEXAMYUT-CLclanOP.js";
14
14
  import "./chunk-UA2S7LBM-BUjL6NMa.js";
15
- import { r as ne, t as re } from "./chunk-GNY47TPC-CN53JUAg.js";
15
+ import { r as ne, t as re } from "./chunk-GNY47TPC-ItV2FvY4.js";
16
16
  //#region node_modules/chevrotain/node_modules/lodash-es/_freeGlobal.js
17
17
  var ie = typeof global == "object" && global && global.Object === Object && global, ae = typeof self == "object" && self && self.Object === Object && self, b = ie || ae || Function("return this")(), oe = b.Symbol, se = Object.prototype, ce = se.hasOwnProperty, le = se.toString, ue = oe ? oe.toStringTag : void 0;
18
18
  function de(e) {
@@ -1,4 +1,4 @@
1
- import { Bc as e, Hc as t, zc as n } from "./main-C6rjLaqK.js";
1
+ import { Bc as e, Hc as t, zc as n } from "./main-DeilmPv5.js";
2
2
  import { n as r } from "./src-ripuExsx.js";
3
3
  import { i } from "./chunk-ZIGJFQKS-7XzdXF8V.js";
4
4
  import { n as a } from "./chunk-Y2CYZVJY-i11wjrBe.js";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Leaflet's own stylesheet, re-exported as `@nxgt/material/map.css`.
3
+ *
4
+ * It is NOT part of `@nxgt/material/styles.css`: an app that renders no map
5
+ * should not download leaflet's CSS, and the `@import` below only resolves when
6
+ * `leaflet` is installed — which, as an optional peer, is true exactly of the
7
+ * apps that use `@nxgt/material/map`.
8
+ */
9
+ @import "leaflet/dist/leaflet.css";