@nxgt/material 3.70.0 → 3.71.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.
- package/CHANGELOG.md +56 -0
- package/README.md +8 -5
- package/dist/{alert-dialog-CBkWG32g.js → alert-dialog-y2pbowVh.js} +1 -1
- package/dist/{async-slice-CNZ3N55P.js → async-slice-CGfWBOaV.js} +1 -1
- package/dist/{button-D3qzqDY_.js → button-D54Hrjo0.js} +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-CMTe4sQd.js → chip-B5MhXBfm.js} +2 -2
- package/dist/{code-editor-Cs7mz1J-.js → code-editor-mULs4SL8.js} +5 -5
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-D_QMgjVy.js → code-language-items-BWDnqUqn.js} +2 -2
- package/dist/components/ui/collections/server-table/server-table-phone-row.css +6 -0
- package/dist/components/ui/display/code/code-moonlight.css +37 -0
- package/dist/{components-BbWcozcj.js → components-B_taYVcd.js} +19417 -18629
- package/dist/components.js +28 -28
- package/dist/{dialog-B3BSdRci.js → dialog-AjCYZ2Vz.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-BaupOWgS.js → dropdown-menu-LN60hu_3.js} +1 -1
- package/dist/editor.js +35 -35
- package/dist/{empty-state-B2Um5UpI.js → empty-state-Bo8G8W8G.js} +2 -2
- package/dist/{field-blur-1XLyxRPr.js → field-blur-Cnd6FfCH.js} +1 -1
- package/dist/{field-blur-context-XNvCDnMT.js → field-blur-context-bUFZj8iN.js} +1 -1
- package/dist/{hooks-BU21Jpaa.js → hooks-Dt4PkQiZ.js} +2 -2
- package/dist/hooks.js +3 -3
- package/dist/{hover-card-Bvm3svX9.js → hover-card-QtGnvsnc.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-wip9bfa2.js → icon-badge-DLbpCQIm.js} +3 -3
- package/dist/{icon-button-QwIeBTdw.js → icon-button-C59DqL7L.js} +1 -1
- package/dist/lib/components/ui/actions/fab/fab-dock-inset.d.ts +29 -0
- package/dist/lib/components/ui/actions/fab/fab-dock.d.ts +6 -1
- package/dist/lib/components/ui/collections/data-table/select-checkbox.d.ts +3 -2
- package/dist/lib/components/ui/collections/index.d.ts +1 -0
- package/dist/lib/components/ui/collections/record-actions-menu/index.d.ts +2 -0
- package/dist/lib/components/ui/collections/record-actions-menu/record-actions-dialogs.d.ts +15 -0
- package/dist/lib/components/ui/collections/record-actions-menu/record-actions-menu.d.ts +72 -0
- package/dist/lib/components/ui/collections/record-actions-menu/record-actions-rules.d.ts +68 -0
- package/dist/lib/components/ui/collections/record-actions-menu/record-actions-words.d.ts +52 -0
- package/dist/lib/components/ui/collections/record-actions-menu/use-record-actions.d.ts +51 -0
- package/dist/lib/components/ui/collections/record-actions-menu/use-record-flight.d.ts +16 -0
- package/dist/lib/components/ui/collections/row-menu/row-menu-column.d.ts +4 -0
- package/dist/lib/components/ui/collections/row-menu/row-menu.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-band-classes.d.ts +7 -5
- package/dist/lib/components/ui/collections/server-table/partials/server-table-column-sorting.d.ts +7 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +3 -1
- package/dist/lib/components/ui/display/markdown/markdown.d.ts +12 -1
- package/dist/lib/components/ui/display/markdown/markdown.utils.d.ts +2 -0
- package/dist/lib/components/ui/display/markdown/mermaid-csp-scope.d.ts +8 -0
- package/dist/lib/components/ui/display/markdown/mermaid-markup.d.ts +20 -0
- package/dist/lib/components/ui/display/markdown/partials/markdown-code.d.ts +5 -1
- package/dist/lib/components/ui/feedback/confirm-dialog/action-refusal.d.ts +24 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-alert.d.ts +17 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-description.d.ts +10 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog.d.ts +24 -2
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-refusal.d.ts +7 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +6 -0
- package/dist/lib/components/ui/feedback/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/stale-notice/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/stale-notice/stale-notice.d.ts +15 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/forms/index.d.ts +1 -0
- package/dist/lib/components/ui/forms/use-server-field-errors.d.ts +21 -0
- package/dist/lib/components/ui/layout/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/record-page/index.d.ts +2 -0
- package/dist/lib/components/ui/layout/record-page/record-details.d.ts +40 -0
- package/dist/lib/components/ui/layout/record-page/record-page.d.ts +27 -0
- package/dist/lib/components/ui/widgets/chat/chat-conversation-item.d.ts +8 -2
- package/dist/lib/components/ui/widgets/chat/chat-markdown.d.ts +4 -0
- package/dist/lib/components/ui/widgets/chat/chat-message-list.d.ts +8 -1
- package/dist/lib/components/ui/widgets/chat/index.d.ts +2 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-conversation-item-text.d.ts +2 -1
- package/dist/lib/components/ui/widgets/chat/partials/chat-empty-thread.d.ts +2 -0
- package/dist/lib/components/ui/widgets/chat/proposal/chat-action-proposal-parts.d.ts +24 -0
- package/dist/lib/components/ui/widgets/chat/proposal/chat-action-proposal.d.ts +39 -0
- package/dist/lib/components/ui/widgets/chat/proposal/chat-action-proposal.rules.d.ts +17 -0
- package/dist/lib/components/ui/widgets/chat/proposal/chat-tool-activity.d.ts +16 -0
- package/dist/lib/i18n/resources/en/en.d.ts +40 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +40 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +40 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +40 -0
- package/dist/lib/i18n/resources/resources.d.ts +80 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/print/output/to-pdf-element.d.ts +6 -0
- package/dist/lib.js +1 -1
- package/dist/main.js +42 -42
- package/dist/map.js +8 -8
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +135 -131
- package/dist/{public-BuGgOtAl.js → public-BSaSCwy7.js} +9 -9
- package/dist/{rich-code-block-DdHqzzek.js → rich-code-block-BFVj1GWz.js} +5 -5
- package/dist/{sortable-provider-DMyaSfZZ.js → sortable-provider-REwyjiOZ.js} +2 -2
- package/dist/{spinner-ByYdcukU.js → spinner-BFZxqdWC.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-DB3aZZnO.js → theme-toggle-BHi6miz-.js} +1 -1
- package/dist/{toolbar-items-DbzIKjo7.js → toolbar-items-BTtoKVlx.js} +3 -3
- package/dist/{translate-material-Dh7MYkHT.js → translate-material-R-uLthBy.js} +1 -1
- package/dist/{translator-Byhohi1S.js → translator-ClbXOGQO.js} +80 -0
- package/dist/{typography-rUf0mE5a.js → typography-v-PJ4Zco.js} +1 -1
- package/dist/{use-chat-composer-uUUTRB3Z.js → use-chat-composer-Rhan4Xv0.js} +107 -107
- package/dist/{use-heading-spy-CVzW2NM3.js → use-heading-spy-CJnBkCY0.js} +179 -87
- package/dist/{use-material-translation-BAYyZOcH.js → use-material-translation-CCWUeiEn.js} +1 -1
- package/dist/{use-return-focus-CQAuk9kh.js → use-return-focus-Duk40DZI.js} +1 -1
- package/docs/components/buttons-and-actions.md +24 -0
- package/docs/components/data-display.md +33 -0
- package/docs/components/data-table-filter-and-lists.md +117 -5
- package/docs/components/feedback-and-status.md +58 -2
- package/docs/components/navigation-and-layout.md +58 -0
- package/docs/components/rich-widgets.md +35 -2
- package/docs/guides/cards-and-tiles.md +4 -2
- package/docs/guides/csp.md +44 -6
- package/docs/guides/forms.md +51 -4
- package/docs/guides/i18n.md +6 -5
- package/docs/guides/printing.md +17 -7
- package/docs/previews/data-table-filter-lists-recordactionsmenu.webp +0 -0
- package/docs/previews/feedback-status-stalenotice.webp +0 -0
- package/docs/previews/media-files-networkuploadfield.webp +0 -0
- package/docs/previews/media-files-s3uploadfield.webp +0 -0
- package/docs/previews/media-files-uploadfield.webp +0 -0
- package/docs/previews/navigation-layout-recordpage.webp +0 -0
- package/docs/previews/rich-widgets-chat-action-proposal.webp +0 -0
- package/docs/roadmap.md +11 -1
- package/docs/troubleshooting.md +47 -7
- package/lib/components/ui/collections/server-table/server-table-phone-row.css +6 -0
- package/lib/components/ui/display/code/code-moonlight.css +37 -0
- package/package.json +2 -2
package/dist/pdf-reader.js
CHANGED
package/dist/print.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { i as e, t } from "./translate-material-
|
|
1
|
+
import { i as e, t } from "./translate-material-R-uLthBy.js";
|
|
2
2
|
import { Children as n, createContext as r, isValidElement as i, useCallback as a, useContext as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
3
3
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
4
4
|
import { resolvePdfFileName as f } from "@nxgt/material-core/pdf-file-name";
|
|
5
5
|
import { OBJECT_URL_TTL_MS as p, downloadPdfFile as m } from "@nxgt/material-core/pdf-download";
|
|
6
6
|
import { createFormatters as h, formatAmount as g, formatDate as _ } from "@nxgt/material-core/print-format";
|
|
7
|
-
import { badge as v, dataTable as y, defaultPdfTheme as b, definePdfDocument as x, divider as
|
|
8
|
-
import { DEFAULT_PDF_LANGUAGE as
|
|
9
|
-
import { definePrintColumns as
|
|
10
|
-
import { formatPrintValue as
|
|
11
|
-
import { Text as
|
|
12
|
-
import { createTw as
|
|
13
|
-
import { contentDisposition as
|
|
14
|
-
import { IDLE_PDF_FILE as
|
|
7
|
+
import { badge as v, dataTable as y, defaultPdfTheme as b, definePdfDocument as x, divider as S, drawing as ee, header as te, heading as ne, image as re, keyValue as ie, keyValueOf as ae, link as oe, metric as se, page as ce, pageBreak as le, pageNumber as ue, pdfDocument as de, resolvePdfColor as fe, resolvePdfTheme as pe, row as me, section as he, spacer as ge, stack as _e, table as ve, text as C, totals as w } from "@nxgt/material-core/pdf/model";
|
|
8
|
+
import { DEFAULT_PDF_LANGUAGE as T, createPdfContext as E, registerPdfFont as D, renderDrawing as O, renderHeader as k, renderKeyValue as A, renderMetric as j, renderPdfDocumentShell as M, renderPdfElement as N, renderPdfPage as P, renderTable as F, resolveKeepTogether as ye, toPdfText as I } from "@nxgt/material-core/pdf/render";
|
|
9
|
+
import { definePrintColumns as be, resolvePrintFields as xe, resolvePrintFields as Se, resolvePrintTable as Ce, resolvePrintTable as we, toPrintValue as Te, toPrintValue as Ee } from "@nxgt/material-core/print-table";
|
|
10
|
+
import { formatPrintValue as De, isEmptyPrintValue as Oe } from "@nxgt/material-core/print-value";
|
|
11
|
+
import { Text as L, View as R, pdf as ke, renderToBuffer as Ae, renderToStream as je } from "@react-pdf/renderer";
|
|
12
|
+
import { createTw as Me } from "react-pdf-tailwind";
|
|
13
|
+
import { contentDisposition as Ne, pdfBytesResponse as Pe, toWebStream as Fe } from "@nxgt/material-core/pdf/http";
|
|
14
|
+
import { IDLE_PDF_FILE as z, createPdfFileLoader as Ie } from "@nxgt/material-core/pdf/file-loader";
|
|
15
15
|
//#region lib/print/styles.ts
|
|
16
|
-
var
|
|
16
|
+
var B = {
|
|
17
17
|
page: "font-sans text-[9pt] text-slate-900 px-8 py-7 flex-col gap-0",
|
|
18
18
|
header: "flex-row items-center mb-4",
|
|
19
19
|
headerTitle: "text-[18pt] font-bold text-slate-900 tracking-tight",
|
|
@@ -43,7 +43,7 @@ var H = {
|
|
|
43
43
|
notesText: "text-[8pt] text-secondary leading-normal",
|
|
44
44
|
badge: "rounded-xl px-4 py-1.5 self-start",
|
|
45
45
|
badgeText: "text-[8pt] font-bold text-white"
|
|
46
|
-
},
|
|
46
|
+
}, V = Me({
|
|
47
47
|
colors: {
|
|
48
48
|
primary: "#485096",
|
|
49
49
|
secondary: "#347cb5",
|
|
@@ -65,57 +65,57 @@ var H = {
|
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region lib/print/components/pdf-text.ts
|
|
68
|
-
function
|
|
69
|
-
return typeof e == "string" ?
|
|
68
|
+
function H(e) {
|
|
69
|
+
return typeof e == "string" ? I(e) : Array.isArray(e) ? n.map(e, (e) => typeof e == "string" ? I(e) : e) : e;
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region lib/print/components/print-badge.tsx
|
|
73
|
-
function
|
|
74
|
-
return /* @__PURE__ */ u(
|
|
75
|
-
style: [
|
|
76
|
-
children: /* @__PURE__ */ u(
|
|
77
|
-
style:
|
|
78
|
-
children:
|
|
73
|
+
function Le({ color: e, className: t, children: n }) {
|
|
74
|
+
return /* @__PURE__ */ u(R, {
|
|
75
|
+
style: [V(`${B.badge} ${t ?? ""}`), e ? { backgroundColor: e } : {}],
|
|
76
|
+
children: /* @__PURE__ */ u(L, {
|
|
77
|
+
style: V(B.badgeText),
|
|
78
|
+
children: H(n)
|
|
79
79
|
})
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region lib/print/components/print-card.tsx
|
|
84
|
-
function
|
|
85
|
-
return /* @__PURE__ */ u(
|
|
86
|
-
style:
|
|
84
|
+
function Re({ children: e, className: t }) {
|
|
85
|
+
return /* @__PURE__ */ u(R, {
|
|
86
|
+
style: V(`border border-border rounded-xs p-2.5 flex-row gap-[24pt] ${t || ""}`),
|
|
87
87
|
children: e
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return t ? /* @__PURE__ */ d(
|
|
92
|
-
style:
|
|
93
|
-
children: [/* @__PURE__ */ u(
|
|
94
|
-
style:
|
|
95
|
-
children:
|
|
96
|
-
}), /* @__PURE__ */ u(
|
|
97
|
-
style:
|
|
98
|
-
children:
|
|
90
|
+
function ze({ label: e, value: t }) {
|
|
91
|
+
return t ? /* @__PURE__ */ d(R, {
|
|
92
|
+
style: V("flex-col gap-0.5"),
|
|
93
|
+
children: [/* @__PURE__ */ u(L, {
|
|
94
|
+
style: V("text-[7pt] text-muted font-bold uppercase"),
|
|
95
|
+
children: H(e)
|
|
96
|
+
}), /* @__PURE__ */ u(L, {
|
|
97
|
+
style: V("text-[9pt] text-primary"),
|
|
98
|
+
children: H(t)
|
|
99
99
|
})]
|
|
100
100
|
}) : null;
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region lib/print/components/print-document/print-render-context.ts
|
|
104
|
-
var
|
|
105
|
-
function
|
|
106
|
-
return
|
|
104
|
+
var U = r(null), W;
|
|
105
|
+
function G() {
|
|
106
|
+
return W ??= E(), W;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return o(
|
|
108
|
+
function K() {
|
|
109
|
+
return o(U) ?? G();
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region lib/print/components/print-data-table/print-data-table.tsx
|
|
113
|
-
function
|
|
114
|
-
let a =
|
|
113
|
+
function Be({ columns: e, rows: t, currency: n, totalLabel: r, ...i }) {
|
|
114
|
+
let a = K(), o = we(e, t, {
|
|
115
115
|
currency: n,
|
|
116
116
|
totalLabel: r ?? a.t("material.print.table.total", "Total")
|
|
117
117
|
});
|
|
118
|
-
return
|
|
118
|
+
return F({
|
|
119
119
|
type: "table",
|
|
120
120
|
columns: o.columns,
|
|
121
121
|
rows: o.rows,
|
|
@@ -125,23 +125,23 @@ function Le({ columns: e, rows: t, currency: n, totalLabel: r, ...i }) {
|
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region lib/print/components/print-data-table/print-key-value.tsx
|
|
128
|
-
function
|
|
129
|
-
let t =
|
|
130
|
-
return
|
|
128
|
+
function Ve(e) {
|
|
129
|
+
let t = K();
|
|
130
|
+
return A({
|
|
131
131
|
type: "keyValue",
|
|
132
|
-
items: "items" in e ? e.items :
|
|
132
|
+
items: "items" in e ? e.items : Se(e.fields, e.data, { currency: e.currency }),
|
|
133
133
|
columns: e.columns,
|
|
134
134
|
keepEmpty: e.keepEmpty
|
|
135
135
|
}, t);
|
|
136
136
|
}
|
|
137
137
|
//#endregion
|
|
138
138
|
//#region lib/print/components/print-data-table/print-metric.tsx
|
|
139
|
-
function
|
|
140
|
-
let o =
|
|
141
|
-
return
|
|
139
|
+
function He({ label: e, value: t, format: n, currency: r, hint: i, delta: a }) {
|
|
140
|
+
let o = K();
|
|
141
|
+
return j({
|
|
142
142
|
type: "metric",
|
|
143
143
|
label: e,
|
|
144
|
-
value: n && (typeof t == "number" || n === "date" && typeof t == "string") ?
|
|
144
|
+
value: n && (typeof t == "number" || n === "date" && typeof t == "string") ? Ee({
|
|
145
145
|
id: "value",
|
|
146
146
|
accessor: () => t,
|
|
147
147
|
label: e,
|
|
@@ -152,8 +152,8 @@ function ze({ label: e, value: t, format: n, currency: r, hint: i, delta: a }) {
|
|
|
152
152
|
delta: a
|
|
153
153
|
}, o);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return /* @__PURE__ */ u(
|
|
155
|
+
function Ue({ children: e }) {
|
|
156
|
+
return /* @__PURE__ */ u(R, {
|
|
157
157
|
style: {
|
|
158
158
|
flexDirection: "row",
|
|
159
159
|
gap: 12,
|
|
@@ -164,11 +164,11 @@ function Be({ children: e }) {
|
|
|
164
164
|
}
|
|
165
165
|
//#endregion
|
|
166
166
|
//#region lib/print/components/print-document/use-print-context.ts
|
|
167
|
-
function
|
|
168
|
-
let o = e(), s = n || o?.language ||
|
|
167
|
+
function We({ language: n, locale: r, timeZone: i, theme: a }) {
|
|
168
|
+
let o = e(), s = n || o?.language || T;
|
|
169
169
|
return {
|
|
170
170
|
lang: s,
|
|
171
|
-
context: c(() =>
|
|
171
|
+
context: c(() => E({
|
|
172
172
|
language: s,
|
|
173
173
|
locale: r,
|
|
174
174
|
timeZone: i,
|
|
@@ -185,22 +185,22 @@ function Ve({ language: n, locale: r, timeZone: i, theme: a }) {
|
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region lib/print/components/print-document/print-document.tsx
|
|
188
|
-
function
|
|
189
|
-
let { lang: _, context: v } =
|
|
188
|
+
function Ge({ language: e, locale: t, timeZone: r, conformance: i, theme: a, header: o, footer: s, children: c, title: l, author: d, subject: f, keywords: p, creator: m, producer: h, ...g }) {
|
|
189
|
+
let { lang: _, context: v } = We({
|
|
190
190
|
language: e,
|
|
191
191
|
locale: t,
|
|
192
192
|
timeZone: r,
|
|
193
193
|
theme: a
|
|
194
|
-
}), y = (e, t) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ u(
|
|
194
|
+
}), y = (e, t) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ u(L, {
|
|
195
195
|
style: t,
|
|
196
|
-
children:
|
|
197
|
-
}) : e, b = typeof s == "function" ? /* @__PURE__ */ u(
|
|
196
|
+
children: I(String(e))
|
|
197
|
+
}) : e, b = typeof s == "function" ? /* @__PURE__ */ u(L, {
|
|
198
198
|
style: v.styles.textCaption,
|
|
199
|
-
render: (e) =>
|
|
199
|
+
render: (e) => I(s(e))
|
|
200
200
|
}) : y(s, v.styles.textCaption), x = y(o, v.styles.textBody);
|
|
201
|
-
return /* @__PURE__ */ u(
|
|
201
|
+
return /* @__PURE__ */ u(U.Provider, {
|
|
202
202
|
value: v,
|
|
203
|
-
children:
|
|
203
|
+
children: M({
|
|
204
204
|
title: l,
|
|
205
205
|
author: d,
|
|
206
206
|
subject: f,
|
|
@@ -209,7 +209,7 @@ function He({ language: e, locale: t, timeZone: r, conformance: i, theme: a, hea
|
|
|
209
209
|
producer: h,
|
|
210
210
|
language: _,
|
|
211
211
|
conformance: i
|
|
212
|
-
}, [
|
|
212
|
+
}, [P(g, {
|
|
213
213
|
header: x,
|
|
214
214
|
footer: b,
|
|
215
215
|
body: n.toArray(c)
|
|
@@ -218,124 +218,128 @@ function He({ language: e, locale: t, timeZone: r, conformance: i, theme: a, hea
|
|
|
218
218
|
}
|
|
219
219
|
//#endregion
|
|
220
220
|
//#region lib/print/components/print-drawing.tsx
|
|
221
|
-
function
|
|
222
|
-
return
|
|
221
|
+
function Ke(e) {
|
|
222
|
+
return O({
|
|
223
223
|
type: "drawing",
|
|
224
224
|
...e
|
|
225
|
-
},
|
|
225
|
+
}, K());
|
|
226
226
|
}
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region lib/print/components/print-header.tsx
|
|
229
|
-
function
|
|
230
|
-
return
|
|
229
|
+
function qe(e) {
|
|
230
|
+
return k({
|
|
231
231
|
type: "header",
|
|
232
232
|
...e
|
|
233
|
-
},
|
|
233
|
+
}, G());
|
|
234
234
|
}
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region lib/print/components/print-section.tsx
|
|
237
|
-
function
|
|
238
|
-
return /* @__PURE__ */ d(
|
|
239
|
-
style:
|
|
237
|
+
function Je({ title: e, children: t, className: n, keepTogether: r }) {
|
|
238
|
+
return /* @__PURE__ */ d(R, {
|
|
239
|
+
style: V(n || "mb-3.5"),
|
|
240
240
|
...r && { wrap: !1 },
|
|
241
|
-
children: [/* @__PURE__ */ u(
|
|
242
|
-
style:
|
|
243
|
-
children:
|
|
241
|
+
children: [/* @__PURE__ */ u(L, {
|
|
242
|
+
style: V(B.sectionTitle),
|
|
243
|
+
children: H(e)
|
|
244
244
|
}), t]
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return /* @__PURE__ */ d(
|
|
249
|
-
style:
|
|
250
|
-
children: [/* @__PURE__ */ u(
|
|
251
|
-
style:
|
|
252
|
-
children:
|
|
253
|
-
}), typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ u(
|
|
254
|
-
style:
|
|
255
|
-
children:
|
|
247
|
+
function Ye({ label: e, value: t }) {
|
|
248
|
+
return /* @__PURE__ */ d(R, {
|
|
249
|
+
style: V(B.infoRow),
|
|
250
|
+
children: [/* @__PURE__ */ u(L, {
|
|
251
|
+
style: V(B.infoLabel),
|
|
252
|
+
children: H(e)
|
|
253
|
+
}), typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ u(L, {
|
|
254
|
+
style: V(B.infoValue),
|
|
255
|
+
children: H(t)
|
|
256
256
|
}) : t]
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
//#endregion
|
|
260
260
|
//#region lib/print/components/print-table.tsx
|
|
261
|
-
function
|
|
262
|
-
return /* @__PURE__ */ u(
|
|
263
|
-
style:
|
|
261
|
+
function Xe({ children: e }) {
|
|
262
|
+
return /* @__PURE__ */ u(R, {
|
|
263
|
+
style: V(B.tableSection),
|
|
264
264
|
children: e
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return /* @__PURE__ */ u(
|
|
269
|
-
style:
|
|
267
|
+
function Ze({ children: e }) {
|
|
268
|
+
return /* @__PURE__ */ u(R, {
|
|
269
|
+
style: V(B.tableHeader),
|
|
270
270
|
children: e
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
return /* @__PURE__ */ u(
|
|
275
|
-
style: [
|
|
273
|
+
function Qe({ isAlt: e, children: t }) {
|
|
274
|
+
return /* @__PURE__ */ u(R, {
|
|
275
|
+
style: [V(B.tableRow), e ? V(B.tableRowAlt) : {}],
|
|
276
276
|
children: t
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
return /* @__PURE__ */ u(
|
|
281
|
-
style: [
|
|
279
|
+
function $e({ isHeader: e, flex: t = 1, textAlign: n = "left", children: r }) {
|
|
280
|
+
return /* @__PURE__ */ u(L, {
|
|
281
|
+
style: [V(e ? B.tableHeaderCell : B.tableCell), {
|
|
282
282
|
flex: t,
|
|
283
283
|
textAlign: n
|
|
284
284
|
}],
|
|
285
|
-
children:
|
|
285
|
+
children: H(r) ?? "—"
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region lib/print/components/print-totals.tsx
|
|
290
|
-
function
|
|
291
|
-
return /* @__PURE__ */ u(
|
|
292
|
-
style:
|
|
293
|
-
children: /* @__PURE__ */ u(
|
|
294
|
-
style:
|
|
290
|
+
function et({ children: e }) {
|
|
291
|
+
return /* @__PURE__ */ u(R, {
|
|
292
|
+
style: V(B.totalsSection),
|
|
293
|
+
children: /* @__PURE__ */ u(R, {
|
|
294
|
+
style: V(B.totalsTable),
|
|
295
295
|
children: e
|
|
296
296
|
})
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
let r = n ?
|
|
301
|
-
return /* @__PURE__ */ d(
|
|
302
|
-
style:
|
|
303
|
-
children: [/* @__PURE__ */ u(
|
|
304
|
-
style:
|
|
305
|
-
children:
|
|
306
|
-
}), /* @__PURE__ */ u(
|
|
307
|
-
style:
|
|
308
|
-
children:
|
|
299
|
+
function q({ label: e, value: t, last: n }) {
|
|
300
|
+
let r = n ? B.totalsRowLast : B.totalsRow, i = n ? B.totalsLabelBold : B.totalsLabel, a = n ? B.totalsValueBold : B.totalsValue;
|
|
301
|
+
return /* @__PURE__ */ d(R, {
|
|
302
|
+
style: V(r),
|
|
303
|
+
children: [/* @__PURE__ */ u(L, {
|
|
304
|
+
style: V(i),
|
|
305
|
+
children: H(e)
|
|
306
|
+
}), /* @__PURE__ */ u(L, {
|
|
307
|
+
style: V(a),
|
|
308
|
+
children: H(t)
|
|
309
309
|
})]
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region lib/print/output/to-pdf-element.ts
|
|
314
|
-
function
|
|
314
|
+
function tt(e, t = {}) {
|
|
315
|
+
return i(e) ? e : N(e, J(e, t));
|
|
316
|
+
}
|
|
317
|
+
var J = (e, n) => ({
|
|
318
|
+
custom: n.custom,
|
|
319
|
+
defaultCreator: "@nxgt/material",
|
|
320
|
+
translate: (n, r, i) => t(e.language, n, r, i)
|
|
321
|
+
});
|
|
322
|
+
async function Y(e, t = {}) {
|
|
315
323
|
if (i(e)) return e;
|
|
316
|
-
let
|
|
317
|
-
return
|
|
318
|
-
custom: n.custom,
|
|
319
|
-
defaultCreator: "@nxgt/material",
|
|
320
|
-
translate: (e, n, r) => t(a, e, n, r)
|
|
321
|
-
});
|
|
324
|
+
let n = e;
|
|
325
|
+
return tt(await ye(n, J(n, t)), t);
|
|
322
326
|
}
|
|
323
327
|
//#endregion
|
|
324
328
|
//#region lib/print/output/render-pdf.ts
|
|
325
|
-
var
|
|
329
|
+
var nt = () => typeof process < "u" && !!process.versions?.node;
|
|
326
330
|
async function X(e, t) {
|
|
327
|
-
return
|
|
331
|
+
return ke(await Y(e, t)).toBlob();
|
|
328
332
|
}
|
|
329
333
|
async function Z(e, t) {
|
|
330
|
-
if (
|
|
334
|
+
if (!nt()) {
|
|
331
335
|
let n = await X(e, t);
|
|
332
336
|
return new Uint8Array(await n.arrayBuffer());
|
|
333
337
|
}
|
|
334
|
-
let n = await
|
|
338
|
+
let n = await Ae(await Y(e, t));
|
|
335
339
|
return new Uint8Array(n);
|
|
336
340
|
}
|
|
337
|
-
async function
|
|
338
|
-
return
|
|
341
|
+
async function rt(e, t) {
|
|
342
|
+
return Fe(await je(await Y(e, t)));
|
|
339
343
|
}
|
|
340
344
|
//#endregion
|
|
341
345
|
//#region lib/print/output/download-pdf.ts
|
|
@@ -343,7 +347,7 @@ var Q = (e, t) => e instanceof Blob ? e : X(e, t);
|
|
|
343
347
|
async function $(e, t = {}) {
|
|
344
348
|
await m(await Q(e, t), { fileName: t.fileName });
|
|
345
349
|
}
|
|
346
|
-
async function
|
|
350
|
+
async function it(e, t = {}) {
|
|
347
351
|
let n = window.open("", "_blank"), r;
|
|
348
352
|
try {
|
|
349
353
|
r = await Q(e, t);
|
|
@@ -360,16 +364,16 @@ async function tt(e, t = {}) {
|
|
|
360
364
|
}
|
|
361
365
|
//#endregion
|
|
362
366
|
//#region lib/print/output/pdf-response.ts
|
|
363
|
-
async function
|
|
364
|
-
return
|
|
367
|
+
async function at(e, t = {}) {
|
|
368
|
+
return Pe(await Z(e, t), t);
|
|
365
369
|
}
|
|
366
370
|
//#endregion
|
|
367
371
|
//#region lib/print/output/use-pdf-file.ts
|
|
368
|
-
function
|
|
369
|
-
let [n, r] = l(() => e === null ?
|
|
370
|
-
...
|
|
372
|
+
function ot(e, t) {
|
|
373
|
+
let [n, r] = l(() => e === null ? z : {
|
|
374
|
+
...z,
|
|
371
375
|
loading: !0
|
|
372
|
-
}), [i, o] = l(0), c = a(() => o((e) => e + 1), []), u = t?.custom, [d] = l(() =>
|
|
376
|
+
}), [i, o] = l(0), c = a(() => o((e) => e + 1), []), u = t?.custom, [d] = l(() => Ie(r, X));
|
|
373
377
|
return s(() => () => d.dispose(), [d]), s(() => {
|
|
374
378
|
d.load(e, { custom: u });
|
|
375
379
|
}, [
|
|
@@ -383,4 +387,4 @@ function rt(e, t) {
|
|
|
383
387
|
};
|
|
384
388
|
}
|
|
385
389
|
//#endregion
|
|
386
|
-
export {
|
|
390
|
+
export { Le as PrintBadge, Re as PrintCard, ze as PrintCardField, Be as PrintDataTable, Ge as PrintDocument, Ke as PrintDrawing, qe as PrintHeader, Ye as PrintInfoRow, Ve as PrintKeyValue, He as PrintMetric, Ue as PrintMetrics, Je as PrintSection, Xe as PrintTable, $e as PrintTableCell, Ze as PrintTableHeader, Qe as PrintTableRow, q as PrintTotalRow, et as PrintTotals, v as badge, B as commonPrintStyles, Ne as contentDisposition, h as createFormatters, y as dataTable, b as defaultPdfTheme, x as definePdfDocument, be as definePrintColumns, S as divider, $ as downloadPdf, ee as drawing, g as formatAmount, _ as formatDate, De as formatPrintValue, te as header, ne as heading, re as image, Oe as isEmptyPrintValue, ie as keyValue, ae as keyValueOf, oe as link, se as metric, it as openPdf, ce as page, le as pageBreak, ue as pageNumber, de as pdfDocument, at as pdfResponse, D as registerPdfFont, X as renderPdfBlob, Z as renderPdfBuffer, rt as renderPdfStream, fe as resolvePdfColor, pe as resolvePdfTheme, xe as resolvePrintFields, Ce as resolvePrintTable, me as row, he as section, ge as spacer, _e as stack, ve as table, C as text, Te as toPrintValue, w as totals, V as tw, ot as usePdfFile };
|
|
@@ -3,22 +3,22 @@ import { n as t } from "./ui.utils-CAnKTCw5.js";
|
|
|
3
3
|
import { t as n } from "./utils-BLfntITJ.js";
|
|
4
4
|
import { o as r } from "./dist-DVRQkaTK.js";
|
|
5
5
|
import { c as i, i as a, l as o, n as s, o as c, s as l } from "./dist-lmHmz_bu.js";
|
|
6
|
-
import { n as u, s as d } from "./spinner-
|
|
6
|
+
import { n as u, s as d } from "./spinner-BFZxqdWC.js";
|
|
7
7
|
import { i as f } from "./dist-C4wtXCjf.js";
|
|
8
8
|
import { r as p, t as m } from "./in-dialog-Vwkyp-M5.js";
|
|
9
|
-
import { a as h, c as g, i as _, l as v, n as y, o as b, r as x, s as ee, t as te, u as ne } from "./use-return-focus-
|
|
10
|
-
import { c as S, d as C, f as w, i as T, l as re, n as ie, o as E, t as ae, u as D } from "./dropdown-menu-
|
|
11
|
-
import { S as oe, a as O, d as k, g as se, h as ce, i as le, m as ue, n as A, r as de, t as j, u as fe, w as pe } from "./toolbar-items-
|
|
12
|
-
import { t as me } from "./button-
|
|
13
|
-
import { t as M } from "./use-material-translation-
|
|
14
|
-
import { n as he, t as ge } from "./icon-button-
|
|
9
|
+
import { a as h, c as g, i as _, l as v, n as y, o as b, r as x, s as ee, t as te, u as ne } from "./use-return-focus-Duk40DZI.js";
|
|
10
|
+
import { c as S, d as C, f as w, i as T, l as re, n as ie, o as E, t as ae, u as D } from "./dropdown-menu-LN60hu_3.js";
|
|
11
|
+
import { S as oe, a as O, d as k, g as se, h as ce, i as le, m as ue, n as A, r as de, t as j, u as fe, w as pe } from "./toolbar-items-BTtoKVlx.js";
|
|
12
|
+
import { t as me } from "./button-D54Hrjo0.js";
|
|
13
|
+
import { t as M } from "./use-material-translation-CCWUeiEn.js";
|
|
14
|
+
import { n as he, t as ge } from "./icon-button-C59DqL7L.js";
|
|
15
15
|
import { t as _e } from "./useEvent-2fKq-6w8.js";
|
|
16
16
|
import { n as ve, t as ye } from "./toggle-group-DXXlqid2.js";
|
|
17
17
|
import { i as be } from "./escape-owner-DpaP0lm1.js";
|
|
18
18
|
import { n as xe } from "./use-slice-reducer-BGkeGtML.js";
|
|
19
|
-
import { f as Se, r as Ce, t as we, u as Te } from "./dialog-
|
|
19
|
+
import { f as Se, r as Ce, t as we, u as Te } from "./dialog-AjCYZ2Vz.js";
|
|
20
20
|
import { r as Ee } from "./use-csp-nonce-ZKs9k-ov.js";
|
|
21
|
-
import { n as De, t as Oe } from "./empty-state-
|
|
21
|
+
import { n as De, t as Oe } from "./empty-state-Bo8G8W8G.js";
|
|
22
22
|
import { t as ke } from "./client-only.utils-3nHNzCki.js";
|
|
23
23
|
import { t as Ae } from "./use-scroll-away-PQRFZkT2.js";
|
|
24
24
|
import * as N from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as e } from "./spinner-
|
|
2
|
-
import { c as t, n, t as r } from "./dropdown-menu-
|
|
3
|
-
import { t as i } from "./use-material-translation-
|
|
4
|
-
import { a, i as o, n as s, o as c, t as l } from "./code-language-items-
|
|
1
|
+
import { r as e } from "./spinner-BFZxqdWC.js";
|
|
2
|
+
import { c as t, n, t as r } from "./dropdown-menu-LN60hu_3.js";
|
|
3
|
+
import { t as i } from "./use-material-translation-CCWUeiEn.js";
|
|
4
|
+
import { a, i as o, n as s, o as c, t as l } from "./code-language-items-BWDnqUqn.js";
|
|
5
5
|
import { i as u, n as d, r as f, s as p } from "./dist-C3GR7kJd.js";
|
|
6
6
|
import { t as m } from "./code-block-spec-CGLKRhwD.js";
|
|
7
7
|
import { Suspense as h, lazy as g, useEffect as _, useRef as v, useState as y } from "react";
|
|
@@ -143,7 +143,7 @@ function M({ node: e, editor: t, updateAttributes: n, editable: r, wrap: a, onWr
|
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region lib/components/ui/widgets/editor/extensions/code/code-block-open.tsx
|
|
146
|
-
var N = g(() => import("./code-editor-
|
|
146
|
+
var N = g(() => import("./code-editor-mULs4SL8.js").then((e) => e.n).then((e) => ({ default: e.CodeEditor })));
|
|
147
147
|
function P() {
|
|
148
148
|
let { t: e } = i();
|
|
149
149
|
return /* @__PURE__ */ b("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./dist-DVRQkaTK.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { t as r } from "./icon-button-
|
|
3
|
+
import { t as n } from "./use-material-translation-CCWUeiEn.js";
|
|
4
|
+
import { t as r } from "./icon-button-C59DqL7L.js";
|
|
5
5
|
import { t as i } from "./compose-refs-G4J4kaUA.js";
|
|
6
6
|
import a, { cloneElement as o, createContext as s, forwardRef as c, memo as l, useCallback as u, useContext as d, useEffect as f, useId as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _, useState as v } from "react";
|
|
7
7
|
import { jsx as y } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ import { n as t, t as n } from "./utils-BLfntITJ.js";
|
|
|
3
3
|
import { i as r, o as i } from "./dist-DVRQkaTK.js";
|
|
4
4
|
import { a, c as o, i as s, l as c, n as l, o as u, r as d, s as f, t as p, u as m } from "./dist-lmHmz_bu.js";
|
|
5
5
|
import { a as h, c as g, d as _, i as v, l as y, o as b, r as x, t as S, u as C } from "./floating-ui.dom-KkZSW8_E.js";
|
|
6
|
-
import { t as w } from "./use-material-translation-
|
|
6
|
+
import { t as w } from "./use-material-translation-CCWUeiEn.js";
|
|
7
7
|
import * as T from "react";
|
|
8
8
|
import { useLayoutEffect as E, useRef as D, useSyncExternalStore as O } from "react";
|
|
9
9
|
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
package/dist/theme-picker.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./bubble-input-B7BVd9fX.js";
|
|
3
3
|
import { a as s, r as c } from "./icon-sprites-CaYXzOL4.js";
|
|
4
|
-
import { t as l } from "./use-material-translation-
|
|
4
|
+
import { t as l } from "./use-material-translation-CCWUeiEn.js";
|
|
5
5
|
import { t as u } from "./use-theme-BCLireTd.js";
|
|
6
6
|
import { a as d, r as f } from "./theme-context-Cofk6vgs.js";
|
|
7
|
-
import { t as p } from "./theme-toggle-
|
|
7
|
+
import { t as p } from "./theme-toggle-BHi6miz-.js";
|
|
8
8
|
import { n as m, t as h } from "./nxgt-theme-DA1IQe0O.js";
|
|
9
9
|
import { useContext as g } from "react";
|
|
10
10
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-CCWUeiEn.js";
|
|
2
2
|
import { i as t } from "./theme-store-BdPp43cV.js";
|
|
3
3
|
import { n, t as r } from "./use-theme-BCLireTd.js";
|
|
4
4
|
import { r as i } from "./theme-context-Cofk6vgs.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { o as t, r as n, t as r } from "./dist-DVRQkaTK.js";
|
|
3
3
|
import { a as i, c as a, i as o, l as s, r as c, s as l } from "./dist-lmHmz_bu.js";
|
|
4
|
-
import { C as u, S as d, d as f, f as p, m, p as h, r as g, u as _ } from "./spinner-
|
|
4
|
+
import { C as u, S as d, d as f, f as p, m, p as h, r as g, u as _ } from "./spinner-BFZxqdWC.js";
|
|
5
5
|
import { i as v, n as y, r as b, t as x } from "./dist-C4wtXCjf.js";
|
|
6
6
|
import { a as S, c as C, l as w, o as T, r as ee, s as te, t as ne } from "./in-dialog-Vwkyp-M5.js";
|
|
7
|
-
import { A as re, M as ie, N as ae, b as oe, d as se, f as ce, i as le, j as ue, l as de, n as fe, o as pe, r as me, t as he, u as ge, y as _e } from "./dropdown-menu-
|
|
7
|
+
import { A as re, M as ie, N as ae, b as oe, d as se, f as ce, i as le, j as ue, l as de, n as fe, o as pe, r as me, t as he, u as ge, y as _e } from "./dropdown-menu-LN60hu_3.js";
|
|
8
8
|
import { a as ve, n as ye, r as be, t as xe } from "./dist-B7RjY7SL.js";
|
|
9
9
|
import { t as Se } from "./warn-once-C_e47JM8.js";
|
|
10
|
-
import { t as Ce } from "./use-material-translation-
|
|
10
|
+
import { t as Ce } from "./use-material-translation-CCWUeiEn.js";
|
|
11
11
|
import { i as we } from "./escape-owner-DpaP0lm1.js";
|
|
12
12
|
import * as E from "react";
|
|
13
13
|
import { createContext as D, useCallback as Te, useContext as O, useEffect as k, useId as Ee, useLayoutEffect as A, useMemo as j, useReducer as De, useRef as M, useState as N } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, l as t, r as n, s as r, t as i, u as a } from "./translator-
|
|
1
|
+
import { a as e, l as t, r as n, s as r, t as i, u as a } from "./translator-ClbXOGQO.js";
|
|
2
2
|
import { createContext as o, useCallback as s, useContext as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
3
3
|
import { jsx as p } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/i18n/material-resources-registry.ts
|