@nxgt/material 2.4.0 → 2.4.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/dist/{blockDiagram-BEXU5L5S-BfTOHIiP.js → blockDiagram-BEXU5L5S-CD5PW_mQ.js} +2 -2
- package/dist/{chunk-3FUC2YCW-CvWadu3l.js → chunk-3FUC2YCW-CNBUvTSg.js} +2 -2
- package/dist/{chunk-7M6MHVWA-C5InBPBS.js → chunk-7M6MHVWA-DEh1Crrc.js} +1 -1
- package/dist/{chunk-GNY47TPC-DmuI3Pyt.js → chunk-GNY47TPC-vOPvRE_8.js} +4 -4
- package/dist/{chunk-NETBCI7D-otG0icF9.js → chunk-NETBCI7D-CQV8lo68.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-_29B1gGc.js → chunk-Z7XXMR3K-DcqSgI9Q.js} +1 -1
- package/dist/{classDiagram-v2-NBCMYWYE-Cx_UQarg.js → classDiagram-v2-NBCMYWYE-tU42Be-2.js} +2 -2
- package/dist/{components-BE6V-CHu.js → components-NLbPtyeB.js} +23775 -23787
- package/dist/components.js +2 -2
- package/dist/{dagre-6A5THRUB-XYMZ_mQX.js → dagre-6A5THRUB-CXwkkHFr.js} +3 -3
- package/dist/{diagram-22UHCM2B-B7W6VNpJ.js → diagram-22UHCM2B-BswK7SlD.js} +2 -2
- package/dist/{diagram-3UASUU5V-ejkizWkA.js → diagram-3UASUU5V-5p5ra9Yi.js} +1 -1
- package/dist/{elk-276RUBZZ-wlL5a_cu.js → elk-276RUBZZ-CuGpDp18.js} +3 -3
- package/dist/{erDiagram-OPXOYQCR-CC5rIsxt.js → erDiagram-OPXOYQCR-vpNBbFgR.js} +2 -2
- package/dist/{flowDiagram-KWPJA3E3-DD3Ok6lJ.js → flowDiagram-KWPJA3E3-PC80XOp8.js} +3 -3
- package/dist/{ganttDiagram-FUAMR5RP-_TMTepzj.js → ganttDiagram-FUAMR5RP-DC1sfzgs.js} +1 -1
- package/dist/{graphlib-xC_C3Pqu.js → graphlib-DvOFXJbI.js} +1 -1
- package/dist/{journeyDiagram-ZHPQQLJL-CY_RQOmc.js → journeyDiagram-ZHPQQLJL-C6djNSgq.js} +1 -1
- package/dist/lib/components/ui/media/file-list/index.d.ts +1 -1
- package/dist/lib/next/index.d.ts +4 -3
- package/dist/lib/next/pdfkit-font-globs.d.ts +11 -17
- package/dist/main.js +2 -2
- package/dist/{mermaid.core-DuRk0NKG.js → mermaid.core-CEDjsxgL.js} +21 -21
- package/dist/{mindmap-definition-NLK3R4M7-BtNKQLmb.js → mindmap-definition-NLK3R4M7-BYtcw4Io.js} +2 -2
- package/dist/next.js +17 -39
- package/dist/{pieDiagram-5QR66LMP-DtmzS0U_.js → pieDiagram-5QR66LMP-8ETWucra.js} +1 -1
- package/dist/{quadrantDiagram-O4NWA36T-DNKBL5Nq.js → quadrantDiagram-O4NWA36T-X05JG-jZ.js} +1 -1
- package/dist/{requirementDiagram-PLB6GJNP-BQOrwD0J.js → requirementDiagram-PLB6GJNP-BwWSE7Fn.js} +2 -2
- package/dist/{sankeyDiagram-IPEJSGJF-BiJi5yb-.js → sankeyDiagram-IPEJSGJF-B6YxyZMn.js} +1 -1
- package/dist/{stateDiagram-v2-GCMORJYK-GuVR1v4O.js → stateDiagram-v2-GCMORJYK-CAqcgA-x.js} +2 -2
- package/dist/{swimlanes-2SLR337P-D-5l9rBg.js → swimlanes-2SLR337P-DRQ2gho_.js} +3 -3
- package/dist/{swimlanesDiagram-TC7HE7FX-DwHEjs4Z.js → swimlanesDiagram-TC7HE7FX-DaXG362E.js} +3 -3
- package/dist/{timeline-definition-EJHVYXUP-DsWnLfPk.js → timeline-definition-EJHVYXUP-BtvpCePa.js} +1 -1
- package/dist/{usecaseDiagram-POWQR4AR-DA8v7H-a.js → usecaseDiagram-POWQR4AR-DsYqBvQ-.js} +2 -2
- package/dist/{xychartDiagram-PMCCYNJV-C95QnUlt.js → xychartDiagram-PMCCYNJV-CEf5bvG1.js} +1 -1
- package/docs/guides/printing.md +3 -2
- package/docs/troubleshooting.md +4 -0
- package/package.json +2 -2
- package/dist/lib/components/ui/media/file-list/format-file-size.d.ts +0 -1
package/dist/next.js
CHANGED
|
@@ -1,57 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isAbsolute as e, relative as t, resolve as n, sep as r } from "node:path";
|
|
2
|
+
import { pdfkitStandardFontDirs as i } from "@nxgt/material-core/pdfkit-fonts";
|
|
3
3
|
//#region lib/next/pdfkit-font-globs.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
}
|
|
12
|
-
let c = e(o), l = [["@react-pdf/renderer", c]];
|
|
13
|
-
try {
|
|
14
|
-
l.push(["@react-pdf/font", e(c.resolve("@react-pdf/font"))]);
|
|
15
|
-
} catch (e) {
|
|
16
|
-
i(`could not resolve @react-pdf/font: ${String(e)}`);
|
|
17
|
-
}
|
|
18
|
-
let u = /* @__PURE__ */ new Set();
|
|
19
|
-
for (let [e, n] of l) try {
|
|
20
|
-
u.add(t(n.resolve("pdfkit/standard-fonts/Helvetica")));
|
|
21
|
-
} catch (t) {
|
|
22
|
-
i(`could not resolve pdfkit's fonts for ${e}: ${String(t)}`);
|
|
23
|
-
}
|
|
24
|
-
return [...u];
|
|
25
|
-
}
|
|
26
|
-
function l(e, t) {
|
|
27
|
-
let r = a(e);
|
|
28
|
-
return c(r, t).flatMap((e) => {
|
|
29
|
-
let a = i(r, e);
|
|
30
|
-
if (n(a)) return t(`pdfkit's fonts at ${e} are not reachable from ${r}`), [];
|
|
31
|
-
let s = a.split(o).join("/");
|
|
32
|
-
return [`${s === ".." || s.startsWith("../") ? s : `./${s}`}/**/*.cjs`];
|
|
4
|
+
function a(a, o) {
|
|
5
|
+
let s = n(a);
|
|
6
|
+
return i(s, o).flatMap((n) => {
|
|
7
|
+
let i = t(s, n);
|
|
8
|
+
if (e(i)) return o(`pdfkit's fonts at ${n} are not reachable from ${s}`), [];
|
|
9
|
+
let a = i.split(r).join("/");
|
|
10
|
+
return [`${a === ".." || a.startsWith("../") ? a : `./${a}`}/**/*.cjs`];
|
|
33
11
|
});
|
|
34
12
|
}
|
|
35
|
-
var
|
|
36
|
-
|
|
13
|
+
var o = "@nxgt/material", s = (e, t) => [.../* @__PURE__ */ new Set([...e ?? [], ...t])], c = !1, l = (e) => {
|
|
14
|
+
c || (c = !0, console.warn(`[@nxgt/material/next] ${e}. PDF routes may answer 500 under output: 'standalone'; add pdfkit's js/standard-fonts/**/*.cjs to outputFileTracingIncludes by hand.`));
|
|
37
15
|
};
|
|
38
|
-
function
|
|
16
|
+
function u(e, t) {
|
|
39
17
|
let n = {
|
|
40
18
|
...e,
|
|
41
|
-
serverExternalPackages:
|
|
19
|
+
serverExternalPackages: s(e.serverExternalPackages, [o])
|
|
42
20
|
};
|
|
43
21
|
if (t.length > 0) {
|
|
44
22
|
let r = e.outputFileTracingIncludes ?? {};
|
|
45
23
|
n.outputFileTracingIncludes = {
|
|
46
24
|
...r,
|
|
47
|
-
"/**":
|
|
25
|
+
"/**": s(r["/**"], t)
|
|
48
26
|
};
|
|
49
27
|
}
|
|
50
28
|
return n;
|
|
51
29
|
}
|
|
52
|
-
function
|
|
53
|
-
let n = (e) =>
|
|
30
|
+
function d(e = {}, t = {}) {
|
|
31
|
+
let n = (e) => u(e, a(t.dir ?? process.cwd(), l));
|
|
54
32
|
return typeof e == "function" ? async (t, r) => n(await e(t, r)) : n(e);
|
|
55
33
|
}
|
|
56
34
|
//#endregion
|
|
57
|
-
export {
|
|
35
|
+
export { d as withNxgtPrint };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ct as e, ot as t } from "./components-
|
|
1
|
+
import { ct as e, ot as t } from "./components-NLbPtyeB.js";
|
|
2
2
|
import { n } from "./src-CJ8DNrI1.js";
|
|
3
3
|
import { i as r, p as i } from "./chunk-ZIGJFQKS-HDJ6e6OJ.js";
|
|
4
4
|
import { t as a } from "./ordinal-DwxdXP1t.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { rt as e } from "./components-
|
|
1
|
+
import { rt as e } from "./components-NLbPtyeB.js";
|
|
2
2
|
import { n as t, t as n } from "./src-CJ8DNrI1.js";
|
|
3
3
|
import { n as r } from "./chunk-Y2CYZVJY-BAad7w_K.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-C87zK8E5.js";
|
package/dist/{requirementDiagram-PLB6GJNP-BQOrwD0J.js → requirementDiagram-PLB6GJNP-BwWSE7Fn.js}
RENAMED
|
@@ -8,11 +8,11 @@ import "./chunk-7PRAP22T-DIiYRAce.js";
|
|
|
8
8
|
import { a as p, i as m, o as h, r as g } from "./chunk-J5ZVWO5B-DmRRmhon.js";
|
|
9
9
|
import "./chunk-7INBJB4K-Dg64CbhT.js";
|
|
10
10
|
import "./chunk-5DYCD2WN-Bqi3iL5i.js";
|
|
11
|
-
import "./chunk-Z7XXMR3K-
|
|
11
|
+
import "./chunk-Z7XXMR3K-DcqSgI9Q.js";
|
|
12
12
|
import { t as _ } from "./chunk-XXDRQBXY-Bq4sFnO2.js";
|
|
13
13
|
import { t as v } from "./chunk-WEXAMYUT-C-QP0DFq.js";
|
|
14
14
|
import "./chunk-UA2S7LBM-B0LGFGu3.js";
|
|
15
|
-
import { r as y, t as b } from "./chunk-GNY47TPC-
|
|
15
|
+
import { r as y, t as b } from "./chunk-GNY47TPC-vOPvRE_8.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) {
|
|
@@ -8,12 +8,12 @@ import "./chunk-7PRAP22T-DIiYRAce.js";
|
|
|
8
8
|
import { a as h, i as g, o as _, r as v } from "./chunk-J5ZVWO5B-DmRRmhon.js";
|
|
9
9
|
import "./chunk-7INBJB4K-Dg64CbhT.js";
|
|
10
10
|
import "./chunk-5DYCD2WN-Bqi3iL5i.js";
|
|
11
|
-
import "./chunk-Z7XXMR3K-
|
|
11
|
+
import "./chunk-Z7XXMR3K-DcqSgI9Q.js";
|
|
12
12
|
import { t as y } from "./chunk-GWA4HPMP-CmsxMX3A.js";
|
|
13
13
|
import { t as b } from "./chunk-XXDRQBXY-Bq4sFnO2.js";
|
|
14
14
|
import { t as x } from "./chunk-WEXAMYUT-C-QP0DFq.js";
|
|
15
15
|
import "./chunk-UA2S7LBM-B0LGFGu3.js";
|
|
16
|
-
import { r as S, t as C } from "./chunk-GNY47TPC-
|
|
16
|
+
import { r as S, t as C } from "./chunk-GNY47TPC-vOPvRE_8.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-IA2XBafa.js";
|
|
|
7
7
|
import "./chunk-7PRAP22T-DIiYRAce.js";
|
|
8
8
|
import "./chunk-7INBJB4K-Dg64CbhT.js";
|
|
9
9
|
import "./chunk-5DYCD2WN-Bqi3iL5i.js";
|
|
10
|
-
import "./chunk-Z7XXMR3K-
|
|
10
|
+
import "./chunk-Z7XXMR3K-DcqSgI9Q.js";
|
|
11
11
|
import "./chunk-UA2S7LBM-B0LGFGu3.js";
|
|
12
|
-
import { r as n } from "./chunk-3FUC2YCW-
|
|
13
|
-
import { t as r } from "./chunk-NETBCI7D-
|
|
12
|
+
import { r as n } from "./chunk-3FUC2YCW-CNBUvTSg.js";
|
|
13
|
+
import { t as r } from "./chunk-NETBCI7D-CQV8lo68.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;
|
package/dist/{swimlanesDiagram-TC7HE7FX-DwHEjs4Z.js → swimlanesDiagram-TC7HE7FX-DaXG362E.js}
RENAMED
|
@@ -7,14 +7,14 @@ import "./chunk-MBY4JIJT-IA2XBafa.js";
|
|
|
7
7
|
import "./chunk-7PRAP22T-DIiYRAce.js";
|
|
8
8
|
import "./chunk-7INBJB4K-Dg64CbhT.js";
|
|
9
9
|
import "./chunk-5DYCD2WN-Bqi3iL5i.js";
|
|
10
|
-
import "./chunk-Z7XXMR3K-
|
|
10
|
+
import "./chunk-Z7XXMR3K-DcqSgI9Q.js";
|
|
11
11
|
import "./chunk-GWA4HPMP-CmsxMX3A.js";
|
|
12
12
|
import "./chunk-XXDRQBXY-Bq4sFnO2.js";
|
|
13
13
|
import "./chunk-WEXAMYUT-C-QP0DFq.js";
|
|
14
14
|
import "./chunk-UA2S7LBM-B0LGFGu3.js";
|
|
15
|
-
import "./chunk-GNY47TPC-
|
|
15
|
+
import "./chunk-GNY47TPC-vOPvRE_8.js";
|
|
16
16
|
import "./chunk-LNGE3PJU-DJjGTS7O.js";
|
|
17
|
-
import { r as t, t as n } from "./chunk-7M6MHVWA-
|
|
17
|
+
import { r as t, t as n } from "./chunk-7M6MHVWA-DEh1Crrc.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 {
|
package/dist/{timeline-definition-EJHVYXUP-DsWnLfPk.js → timeline-definition-EJHVYXUP-BtvpCePa.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ct as e } from "./components-
|
|
1
|
+
import { ct as e } from "./components-NLbPtyeB.js";
|
|
2
2
|
import { n as t, t as n } from "./src-CJ8DNrI1.js";
|
|
3
3
|
import { p as r } from "./chunk-ZIGJFQKS-HDJ6e6OJ.js";
|
|
4
4
|
import { n as i, t as a } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
@@ -8,11 +8,11 @@ import "./chunk-7PRAP22T-DIiYRAce.js";
|
|
|
8
8
|
import { a as g, i as _, o as v, r as y } from "./chunk-J5ZVWO5B-DmRRmhon.js";
|
|
9
9
|
import "./chunk-7INBJB4K-Dg64CbhT.js";
|
|
10
10
|
import "./chunk-5DYCD2WN-Bqi3iL5i.js";
|
|
11
|
-
import "./chunk-Z7XXMR3K-
|
|
11
|
+
import "./chunk-Z7XXMR3K-DcqSgI9Q.js";
|
|
12
12
|
import { t as ee } from "./chunk-XXDRQBXY-Bq4sFnO2.js";
|
|
13
13
|
import { t as te } from "./chunk-WEXAMYUT-C-QP0DFq.js";
|
|
14
14
|
import "./chunk-UA2S7LBM-B0LGFGu3.js";
|
|
15
|
-
import { r as ne, t as re } from "./chunk-GNY47TPC-
|
|
15
|
+
import { r as ne, t as re } from "./chunk-GNY47TPC-vOPvRE_8.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 { at as e, rt as t, st as n } from "./components-
|
|
1
|
+
import { at as e, rt as t, st as n } from "./components-NLbPtyeB.js";
|
|
2
2
|
import { n as r } from "./src-CJ8DNrI1.js";
|
|
3
3
|
import { i } from "./chunk-ZIGJFQKS-HDJ6e6OJ.js";
|
|
4
4
|
import { n as a } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
package/docs/guides/printing.md
CHANGED
|
@@ -1359,8 +1359,9 @@ What it does, precisely:
|
|
|
1359
1359
|
- **The function form of `next.config` works too**:
|
|
1360
1360
|
`withNxgtPrint((phase, { defaultConfig }) => ({ ... }))` returns a function
|
|
1361
1361
|
Next.js calls as usual.
|
|
1362
|
-
- It runs in Node at config time, imports only `node:*` built-ins
|
|
1363
|
-
|
|
1362
|
+
- It runs in Node at config time, imports only `node:*` built-ins and
|
|
1363
|
+
`@nxgt/material-core/pdfkit-fonts` (already installed with the library),
|
|
1364
|
+
and needs no dependency on `next`: its parameter accepts any `NextConfig`, and it
|
|
1364
1365
|
returns the type you passed in. Its keys are not checked against
|
|
1365
1366
|
`NextConfig`, so a misspelt one passes: write
|
|
1366
1367
|
`withNxgtPrint({ ... } satisfies NextConfig)` to have them checked. The
|
package/docs/troubleshooting.md
CHANGED
|
@@ -630,6 +630,10 @@ after the build (under pnpm,
|
|
|
630
630
|
`[@nxgt/material/next] could not resolve <what>: <error>. PDF routes may
|
|
631
631
|
answer 500 under output: 'standalone'; add pdfkit's
|
|
632
632
|
js/standard-fonts/**/*.cjs to outputFileTracingIncludes by hand.`
|
|
633
|
+
When several things failed, that one message lists them all, joined by
|
|
634
|
+
`; `, each error cut to its first line (for example `could not resolve
|
|
635
|
+
@react-pdf/font: …; could not resolve pdfkit's fonts for
|
|
636
|
+
@react-pdf/renderer: …`).
|
|
633
637
|
**Why:** `withNxgtPrint` found `@react-pdf/renderer` but could not follow it
|
|
634
638
|
to `@react-pdf/font` or to a pdfkit's `standard-fonts` (an unusual
|
|
635
639
|
installation, a patched or partial `node_modules`). It adds the fonts it did
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/material",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "stevegires@gmail.com"
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"docs:previews": "vitest run --project previews"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@nxgt/material-core": "^0.
|
|
116
|
+
"@nxgt/material-core": "^0.2.0",
|
|
117
117
|
"@base-ui/react": "^1.6.0",
|
|
118
118
|
"@dnd-kit/core": "^6.3.1",
|
|
119
119
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function formatFileSize(bytes: number): string;
|