@nxgt/material 3.103.0 → 3.104.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 +44 -0
- package/README.md +5 -3
- package/dist/{alert-dialog-NFyAiSqc.js → alert-dialog-CK_47jfm.js} +1 -1
- package/dist/{async-slice-D35bX79S.js → async-slice-1ZNMiwyJ.js} +1 -1
- package/dist/{button-Be7GZzF9.js → button-YfEMZbRO.js} +1 -1
- package/dist/{calculator-BGy1Q7rn.js → calculator-BmYZId4c.js} +11 -11
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-uixk6lBg.js → calculator-segment-DJ08DJ-n.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +819 -764
- package/dist/{chip-3rWebZEM.js → chip-DPj6e-3v.js} +2 -2
- package/dist/{code-editor-BqSVMfy-.js → code-editor-CZg3nLZO.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-Cf2LJVg2.js → code-language-items-Nq1iOGId.js} +2 -2
- package/dist/components/ui/display/chip/chip-soft.css +27 -2
- package/dist/components/ui/primitives/collapsible/collapsible.css +9 -0
- package/dist/{components-D2liJ9Yu.js → components-B2wrH_W0.js} +16884 -16603
- package/dist/components.js +38 -38
- package/dist/{conversion-variant-clFZ6ZMJ.js → conversion-variant-C-LPx5ek.js} +4 -4
- package/dist/{currency-field-CBFEVNM1.js → currency-field-DnsRIA80.js} +4 -4
- package/dist/{dialog-CrIIINTk.js → dialog-BKBsDGFc.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-BnfLWu8n.js → dropdown-menu-QMDbRidH.js} +1 -1
- package/dist/editor.js +8 -8
- package/dist/{empty-state-CuUaCPY7.js → empty-state-BLIJ6znY.js} +1 -1
- package/dist/{financial-variant-BY_VCUuk.js → financial-variant-Ws0Jp01H.js} +5 -5
- package/dist/{hooks-hHoZbL-4.js → hooks-C3vkQmzh.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-Do2-uzlF.js → hover-card-Df649U6I.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-CHaVNEmb.js → icon-badge-Cma1qOOJ.js} +1 -1
- package/dist/{icon-button-BIAubLeJ.js → icon-button-CpKxV264.js} +1 -1
- package/dist/keypad.js +3 -3
- package/dist/lib/components/ui/actions/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/product-tile/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/product-tile/product-tile-link.d.ts +16 -0
- package/dist/lib/components/ui/actions/product-tile/product-tile.d.ts +41 -0
- package/dist/lib/components/ui/collections/data-table/data-table-density.d.ts +1 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-scroll-region.d.ts +4 -1
- package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-list-bar.d.ts +6 -3
- package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-in-row.d.ts +2 -1
- package/dist/lib/components/ui/collections/data-table/types.d.ts +11 -8
- package/dist/lib/components/ui/collections/data-table/virtual-option.d.ts +9 -3
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +2 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-passed-through.d.ts +1 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +1 -1
- package/dist/lib/components/ui/display/chip/chip.variants.d.ts +5 -4
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/quantity-field/types.d.ts +1 -1
- package/dist/lib/components/ui/fields/quantity-stepper/index.d.ts +2 -0
- package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper-model.d.ts +9 -0
- package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper-value.d.ts +15 -0
- package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper.d.ts +9 -0
- package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper.types.d.ts +35 -0
- package/dist/lib/components/ui/fields/quantity-stepper/use-quantity-stepper.d.ts +28 -0
- package/dist/lib/components/ui/layout/pane-layout/pane-layout.d.ts +8 -3
- package/dist/lib/components/ui/layout/pane-layout/partials/pane-layout-classes.d.ts +2 -2
- package/dist/lib/components/ui/layout/pane-layout/partials/pane-layout-context.d.ts +9 -0
- package/dist/lib/components/ui/layout/pane-layout/partials/use-pane-layout-state.d.ts +7 -2
- package/dist/lib/components/ui/layout/panel-card/panel-card.d.ts +3 -1
- package/dist/lib/components/ui/primitives/collapsible/collapsible.d.ts +9 -1
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +6 -1
- package/dist/lib/components/ui/primitives/tabs/tabs-classes.d.ts +1 -0
- package/dist/lib/components/ui/selection/chip-group-field/chip-group-field.d.ts +8 -0
- package/dist/lib/components/ui/selection/chip-group-field/chip-group-field.types.d.ts +6 -0
- package/dist/lib/components/ui/selection/chip-group-field/partials/chip-group-reasons.d.ts +10 -0
- package/dist/lib/components/ui/selection/chip-group-field/partials/use-chip-rail.d.ts +12 -0
- package/dist/lib/components/ui/selection/choice-group/choice-group-root.d.ts +5 -2
- package/dist/lib/components/ui/widgets/native-charts/core/label-placement.d.ts +25 -0
- package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +3 -2
- package/dist/lib/i18n/resources/en/en.d.ts +3 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +4 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +3 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +4 -1
- package/dist/lib/i18n/resources/resources.d.ts +6 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/print/output/csv.d.ts +37 -0
- package/dist/lib/print/output/index.d.ts +1 -0
- package/dist/lib.js +1 -1
- package/dist/main.js +54 -54
- package/dist/map.js +8 -8
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-DU8eIMD3.js → percent-field-sAq7BaxN.js} +2 -2
- package/dist/{picker-surface-XmA--JVI.js → picker-surface--6E-nvpU.js} +4 -4
- package/dist/{popover-D8iHiAbl.js → popover-bEB8I_-w.js} +1 -1
- package/dist/{pos-types-BEAY27Rm.js → pos-types-Cpdc4E33.js} +1 -1
- package/dist/{pos-variant-ClGI92Lt.js → pos-variant-ClMGu59I.js} +5 -5
- package/dist/print.js +146 -127
- package/dist/{programmer-variant-Boq2O8hB.js → programmer-variant-ChzgyA7x.js} +2 -2
- package/dist/{public-DOrXKmcL.js → public-BY8N5NDT.js} +9 -9
- package/dist/{rich-code-block-Djj2XE_u.js → rich-code-block-D2GiWuqD.js} +5 -5
- package/dist/{scientific-variant-BzF_aMQP.js → scientific-variant-31_93gcZ.js} +2 -2
- package/dist/{sortable-provider-DCZjsIIH.js → sortable-provider-DGiVn72t.js} +2 -2
- package/dist/{spinner-Cg0y_E_K.js → spinner-CEVomQ5K.js} +1 -1
- package/dist/{tabs-DpessV5s.js → tabs-B8MXBbPW.js} +14 -14
- package/dist/{text-field-Dxk9lAKM.js → text-field-DN88qD0Q.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-B6Jl5Kfn.js → theme-toggle-C7pnu1Xh.js} +1 -1
- package/dist/{toolbar-items-Cs1XrZsH.js → toolbar-items-BDfoh8QB.js} +4 -4
- package/dist/{translate-material-Du0j0t97.js → translate-material-s_lxIV43.js} +1 -1
- package/dist/{translator-BVs4n0Fz.js → translator-Cgql9srO.js} +4 -2
- package/dist/{use-calculator-keyboard-BZ1CA4Ut.js → use-calculator-keyboard-DysnFK8m.js} +1 -1
- package/dist/{use-chat-composer-B4m3OEm1.js → use-chat-composer-xCcp9fVc.js} +2050 -1996
- package/dist/{use-heading-spy-CO3_AtY9.js → use-heading-spy-FIZlf9qj.js} +4 -4
- package/dist/{use-material-translation-uNc1FyC8.js → use-material-translation-xNzbSVgS.js} +1 -1
- package/dist/{use-return-focus-AfLRrUm-.js → use-return-focus-CW9KkDkp.js} +1 -1
- package/docs/README.md +1 -1
- package/docs/components/README.md +1 -0
- package/docs/components/buttons-and-actions.md +47 -0
- package/docs/components/data-display.md +2 -2
- package/docs/components/data-table-filter-and-lists.md +19 -6
- package/docs/components/form-fields.md +60 -7
- package/docs/components/navigation-and-layout.md +20 -2
- package/docs/components/primitives.md +44 -2
- package/docs/components/selection-and-choice.md +56 -1
- package/docs/guides/cards-and-tiles.md +10 -0
- package/docs/guides/csp.md +4 -3
- package/docs/guides/data-grid.md +5 -4
- package/docs/guides/field-look-refined.md +2 -2
- package/docs/guides/keypad.md +9 -1
- package/docs/guides/printing.md +51 -1
- package/docs/previews/buttons-actions-producttile.webp +0 -0
- package/docs/previews/form-fields-quantitystepper.webp +0 -0
- package/docs/previews/navigation-layout-panelcard.webp +0 -0
- package/docs/roadmap.md +10 -10
- package/docs/troubleshooting.md +5 -4
- package/lib/components/ui/display/chip/chip-soft.css +27 -2
- package/lib/components/ui/primitives/collapsible/collapsible.css +9 -0
- package/lib/components/ui/widgets/calculator/calculator-keys.css +3 -0
- package/lib/components/ui/widgets/calculator/calculator.css +38 -7
- package/package.json +1 -1
package/dist/pdf-reader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./label-DR-zZyGQ.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
3
|
+
import { t as n } from "./use-material-translation-xNzbSVgS.js";
|
|
4
4
|
import { i as r, n as i } from "./field-blur-context-3rKussBQ.js";
|
|
5
|
-
import { a, r as o } from "./currency-field-
|
|
5
|
+
import { a, r as o } from "./currency-field-DnsRIA80.js";
|
|
6
6
|
import { useId as s } from "react";
|
|
7
7
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
8
|
import { LockIcon as u } from "lucide-react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { r as t, t as n } from "./in-dialog-D61Yeaol.js";
|
|
3
|
-
import { a as r, c as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./use-return-focus-
|
|
4
|
-
import { i as p, o as m, r as h, t as g } from "./popover-
|
|
5
|
-
import { t as _ } from "./use-material-translation-
|
|
6
|
-
import { n as v, t as y } from "./icon-button-
|
|
3
|
+
import { a as r, c as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./use-return-focus-CW9KkDkp.js";
|
|
4
|
+
import { i as p, o as m, r as h, t as g } from "./popover-bEB8I_-w.js";
|
|
5
|
+
import { t as _ } from "./use-material-translation-xNzbSVgS.js";
|
|
6
|
+
import { n as v, t as y } from "./icon-button-CpKxV264.js";
|
|
7
7
|
import { t as b } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
8
8
|
import { i as x } from "./escape-owner-DpaP0lm1.js";
|
|
9
9
|
import * as S from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { o as t, r as n } from "./dist-DVRQkaTK.js";
|
|
3
3
|
import { i as r, r as i, t as a } from "./dist-DWZXlCZR.js";
|
|
4
|
-
import { S as o, d as s, f as c, l, p as u, u as d, x as f } from "./spinner-
|
|
4
|
+
import { S as o, d as s, f as c, l, p as u, u as d, x as f } from "./spinner-CEVomQ5K.js";
|
|
5
5
|
import { a as p, i as m, r as h } from "./dist-DHdUUM1w.js";
|
|
6
6
|
import { a as g, c as _, l as v, o as y, r as b, s as x, t as S } from "./in-dialog-D61Yeaol.js";
|
|
7
7
|
import { i as C } from "./escape-owner-DpaP0lm1.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-xNzbSVgS.js";
|
|
2
2
|
import { n as t } from "./calculator-context-BugcKuVG.js";
|
|
3
3
|
import { t as n } from "./calculator-announce-DRd2c6Dq.js";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { t } from "./use-material-translation-
|
|
3
|
-
import { t as n } from "./icon-button-
|
|
2
|
+
import { t } from "./use-material-translation-xNzbSVgS.js";
|
|
3
|
+
import { t as n } from "./icon-button-CpKxV264.js";
|
|
4
4
|
import { n as r } from "./calculator-context-BugcKuVG.js";
|
|
5
|
-
import { a as i, n as a, r as o, t as s } from "./pos-types-
|
|
5
|
+
import { a as i, n as a, r as o, t as s } from "./pos-types-Cpdc4E33.js";
|
|
6
6
|
import { o as c, r as l, t as u } from "./key-layout-D2goCDkD.js";
|
|
7
7
|
import { n as d, t as f } from "./currency-B-r3ig11.js";
|
|
8
|
-
import { t as p } from "./calculator-segment-
|
|
8
|
+
import { t as p } from "./calculator-segment-DJ08DJ-n.js";
|
|
9
9
|
import { useId as m, useState as h } from "react";
|
|
10
10
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
11
11
|
import { ChevronDown as y, X as b } from "lucide-react";
|
|
@@ -453,7 +453,7 @@ var re = {
|
|
|
453
453
|
l("quantity", "*", "×", "operator", "quantity", "Enter a quantity")
|
|
454
454
|
]),
|
|
455
455
|
c([
|
|
456
|
-
l("double-zero", "00", "00", "digit", "double-zero", "
|
|
456
|
+
l("double-zero", "00", "00", "digit", "double-zero", "00, double zero"),
|
|
457
457
|
u(0),
|
|
458
458
|
l("discount", "%", "%", "operator", "discount", "Enter a discount"),
|
|
459
459
|
l("add-line", "=", "+", "equals", "add-line", "Add to ticket")
|
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-s_lxIV43.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 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
|
|
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 ye, totals as C } from "@nxgt/material-core/pdf/model";
|
|
8
|
+
import { DEFAULT_PDF_LANGUAGE as w, createPdfContext as T, registerPdfFont as E, renderDrawing as D, renderHeader as O, renderKeyValue as k, renderMetric as A, renderPdfDocumentShell as j, renderPdfElement as M, renderPdfPage as N, renderTable as P, resolveKeepTogether as be, toPdfText as F } from "@nxgt/material-core/pdf/render";
|
|
9
|
+
import { definePrintColumns as xe, resolvePrintFields as Se, resolvePrintFields as Ce, resolvePrintTable as we, resolvePrintTable as Te, toPrintValue as Ee, toPrintValue as De } from "@nxgt/material-core/print-table";
|
|
10
|
+
import { formatPrintValue as Oe, isEmptyPrintValue as ke } from "@nxgt/material-core/print-value";
|
|
11
|
+
import { Text as I, View as L, pdf as Ae, renderToBuffer as je, renderToStream as Me } from "@react-pdf/renderer";
|
|
12
|
+
import { createTw as Ne } from "react-pdf-tailwind";
|
|
13
|
+
import { contentDisposition as Pe, contentDisposition as Fe, pdfBytesResponse as Ie, toWebStream as Le } from "@nxgt/material-core/pdf/http";
|
|
14
|
+
import { IDLE_PDF_FILE as R, createPdfFileLoader as Re } from "@nxgt/material-core/pdf/file-loader";
|
|
15
15
|
//#region lib/print/styles.ts
|
|
16
|
-
var
|
|
16
|
+
var z = {
|
|
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 B = {
|
|
|
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
|
+
}, B = Ne({
|
|
47
47
|
colors: {
|
|
48
48
|
primary: "#485096",
|
|
49
49
|
secondary: "#347cb5",
|
|
@@ -65,57 +65,57 @@ var B = {
|
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region lib/print/components/pdf-text.ts
|
|
68
|
-
function
|
|
69
|
-
return typeof e == "string" ?
|
|
68
|
+
function V(e) {
|
|
69
|
+
return typeof e == "string" ? F(e) : Array.isArray(e) ? n.map(e, (e) => typeof e == "string" ? F(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 ze({ color: e, className: t, children: n }) {
|
|
74
|
+
return /* @__PURE__ */ u(L, {
|
|
75
|
+
style: [B(`${z.badge} ${t ?? ""}`), e ? { backgroundColor: e } : {}],
|
|
76
|
+
children: /* @__PURE__ */ u(I, {
|
|
77
|
+
style: B(z.badgeText),
|
|
78
|
+
children: V(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 Be({ children: e, className: t }) {
|
|
85
|
+
return /* @__PURE__ */ u(L, {
|
|
86
|
+
style: B(`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 Ve({ label: e, value: t }) {
|
|
91
|
+
return t ? /* @__PURE__ */ d(L, {
|
|
92
|
+
style: B("flex-col gap-0.5"),
|
|
93
|
+
children: [/* @__PURE__ */ u(I, {
|
|
94
|
+
style: B("text-[7pt] text-muted font-bold uppercase"),
|
|
95
|
+
children: V(e)
|
|
96
|
+
}), /* @__PURE__ */ u(I, {
|
|
97
|
+
style: B("text-[9pt] text-primary"),
|
|
98
|
+
children: V(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 H = r(null), U;
|
|
105
|
+
function W() {
|
|
106
|
+
return U ??= T(), U;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return o(
|
|
108
|
+
function G() {
|
|
109
|
+
return o(H) ?? W();
|
|
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 He({ columns: e, rows: t, currency: n, totalLabel: r, ...i }) {
|
|
114
|
+
let a = G(), o = Te(e, t, {
|
|
115
115
|
currency: n,
|
|
116
116
|
totalLabel: r ?? a.t("material.print.table.total", "Total")
|
|
117
117
|
});
|
|
118
|
-
return
|
|
118
|
+
return P({
|
|
119
119
|
type: "table",
|
|
120
120
|
columns: o.columns,
|
|
121
121
|
rows: o.rows,
|
|
@@ -125,23 +125,23 @@ function Be({ 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 Ue(e) {
|
|
129
|
+
let t = G();
|
|
130
|
+
return k({
|
|
131
131
|
type: "keyValue",
|
|
132
|
-
items: "items" in e ? e.items :
|
|
132
|
+
items: "items" in e ? e.items : Ce(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 We({ label: e, value: t, format: n, currency: r, hint: i, delta: a }) {
|
|
140
|
+
let o = G();
|
|
141
|
+
return A({
|
|
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") ? De({
|
|
145
145
|
id: "value",
|
|
146
146
|
accessor: () => t,
|
|
147
147
|
label: e,
|
|
@@ -152,8 +152,8 @@ function He({ 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 Ge({ children: e }) {
|
|
156
|
+
return /* @__PURE__ */ u(L, {
|
|
157
157
|
style: {
|
|
158
158
|
flexDirection: "row",
|
|
159
159
|
gap: 12,
|
|
@@ -164,11 +164,11 @@ function Ue({ 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 Ke({ language: n, locale: r, timeZone: i, theme: a }) {
|
|
168
|
+
let o = e(), s = n || o?.language || w;
|
|
169
169
|
return {
|
|
170
170
|
lang: s,
|
|
171
|
-
context: c(() =>
|
|
171
|
+
context: c(() => T({
|
|
172
172
|
language: s,
|
|
173
173
|
locale: r,
|
|
174
174
|
timeZone: i,
|
|
@@ -185,22 +185,22 @@ function We({ 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 qe({ 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 } = Ke({
|
|
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(I, {
|
|
195
195
|
style: t,
|
|
196
|
-
children:
|
|
197
|
-
}) : e, b = typeof s == "function" ? /* @__PURE__ */ u(
|
|
196
|
+
children: F(String(e))
|
|
197
|
+
}) : e, b = typeof s == "function" ? /* @__PURE__ */ u(I, {
|
|
198
198
|
style: v.styles.textCaption,
|
|
199
|
-
render: (e) =>
|
|
199
|
+
render: (e) => F(s(e))
|
|
200
200
|
}) : y(s, v.styles.textCaption), x = y(o, v.styles.textBody);
|
|
201
|
-
return /* @__PURE__ */ u(
|
|
201
|
+
return /* @__PURE__ */ u(H.Provider, {
|
|
202
202
|
value: v,
|
|
203
|
-
children:
|
|
203
|
+
children: j({
|
|
204
204
|
title: l,
|
|
205
205
|
author: d,
|
|
206
206
|
subject: f,
|
|
@@ -209,7 +209,7 @@ function Ge({ language: e, locale: t, timeZone: r, conformance: i, theme: a, hea
|
|
|
209
209
|
producer: h,
|
|
210
210
|
language: _,
|
|
211
211
|
conformance: i
|
|
212
|
-
}, [
|
|
212
|
+
}, [N(g, {
|
|
213
213
|
header: x,
|
|
214
214
|
footer: b,
|
|
215
215
|
body: n.toArray(c)
|
|
@@ -218,101 +218,120 @@ function Ge({ 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 Je(e) {
|
|
222
|
+
return D({
|
|
223
223
|
type: "drawing",
|
|
224
224
|
...e
|
|
225
|
-
},
|
|
225
|
+
}, G());
|
|
226
226
|
}
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region lib/print/components/print-header.tsx
|
|
229
|
-
function
|
|
230
|
-
return
|
|
229
|
+
function Ye(e) {
|
|
230
|
+
return O({
|
|
231
231
|
type: "header",
|
|
232
232
|
...e
|
|
233
|
-
},
|
|
233
|
+
}, W());
|
|
234
234
|
}
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region lib/print/components/print-section.tsx
|
|
237
|
-
function
|
|
238
|
-
return /* @__PURE__ */ d(
|
|
239
|
-
style:
|
|
237
|
+
function Xe({ title: e, children: t, className: n, keepTogether: r }) {
|
|
238
|
+
return /* @__PURE__ */ d(L, {
|
|
239
|
+
style: B(n || "mb-3.5"),
|
|
240
240
|
...r && { wrap: !1 },
|
|
241
|
-
children: [/* @__PURE__ */ u(
|
|
242
|
-
style:
|
|
243
|
-
children:
|
|
241
|
+
children: [/* @__PURE__ */ u(I, {
|
|
242
|
+
style: B(z.sectionTitle),
|
|
243
|
+
children: V(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 Ze({ label: e, value: t }) {
|
|
248
|
+
return /* @__PURE__ */ d(L, {
|
|
249
|
+
style: B(z.infoRow),
|
|
250
|
+
children: [/* @__PURE__ */ u(I, {
|
|
251
|
+
style: B(z.infoLabel),
|
|
252
|
+
children: V(e)
|
|
253
|
+
}), typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ u(I, {
|
|
254
|
+
style: B(z.infoValue),
|
|
255
|
+
children: V(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 Qe({ children: e }) {
|
|
262
|
+
return /* @__PURE__ */ u(L, {
|
|
263
|
+
style: B(z.tableSection),
|
|
264
264
|
children: e
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return /* @__PURE__ */ u(
|
|
269
|
-
style:
|
|
267
|
+
function $e({ children: e }) {
|
|
268
|
+
return /* @__PURE__ */ u(L, {
|
|
269
|
+
style: B(z.tableHeader),
|
|
270
270
|
children: e
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
return /* @__PURE__ */ u(
|
|
275
|
-
style: [
|
|
273
|
+
function et({ isAlt: e, children: t }) {
|
|
274
|
+
return /* @__PURE__ */ u(L, {
|
|
275
|
+
style: [B(z.tableRow), e ? B(z.tableRowAlt) : {}],
|
|
276
276
|
children: t
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
return /* @__PURE__ */ u(
|
|
281
|
-
style: [
|
|
279
|
+
function tt({ isHeader: e, flex: t = 1, textAlign: n = "left", children: r }) {
|
|
280
|
+
return /* @__PURE__ */ u(I, {
|
|
281
|
+
style: [B(e ? z.tableHeaderCell : z.tableCell), {
|
|
282
282
|
flex: t,
|
|
283
283
|
textAlign: n
|
|
284
284
|
}],
|
|
285
|
-
children:
|
|
285
|
+
children: V(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 K({ children: e }) {
|
|
291
|
+
return /* @__PURE__ */ u(L, {
|
|
292
|
+
style: B(z.totalsSection),
|
|
293
|
+
children: /* @__PURE__ */ u(L, {
|
|
294
|
+
style: B(z.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 nt({ label: e, value: t, last: n }) {
|
|
300
|
+
let r = n ? z.totalsRowLast : z.totalsRow, i = n ? z.totalsLabelBold : z.totalsLabel, a = n ? z.totalsValueBold : z.totalsValue;
|
|
301
|
+
return /* @__PURE__ */ d(L, {
|
|
302
|
+
style: B(r),
|
|
303
|
+
children: [/* @__PURE__ */ u(I, {
|
|
304
|
+
style: B(i),
|
|
305
|
+
children: V(e)
|
|
306
|
+
}), /* @__PURE__ */ u(I, {
|
|
307
|
+
style: B(a),
|
|
308
|
+
children: V(t)
|
|
309
309
|
})]
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
//#endregion
|
|
313
|
+
//#region lib/print/output/csv.ts
|
|
314
|
+
var q = (e, t) => {
|
|
315
|
+
if (e == null) return "";
|
|
316
|
+
let n = e instanceof Date ? e.toISOString() : String(e);
|
|
317
|
+
return n.includes(t) || /["\r\n]/.test(n) ? `"${n.replace(/"/g, "\"\"")}"` : n;
|
|
318
|
+
};
|
|
319
|
+
function rt(e, t, n = {}) {
|
|
320
|
+
let r = n.separator ?? ",", i = [t.map((e) => q(e.header, r)).join(r), ...e.map((e) => t.map((t) => q(t.value(e), r)).join(r))];
|
|
321
|
+
return (n.bom ? "" : "") + i.join("\r\n");
|
|
322
|
+
}
|
|
323
|
+
function it(e, t = "export", n = {}) {
|
|
324
|
+
let r = new Headers({ "Cache-Control": "private, no-store" });
|
|
325
|
+
new Headers(n.headers).forEach((e, t) => {
|
|
326
|
+
r.set(t, e);
|
|
327
|
+
});
|
|
328
|
+
let i = t.replace(/[\\/]/g, "_").trim() || "export", a = /\.csv$/i.test(i) ? i : `${i}.csv`;
|
|
329
|
+
return r.set("Content-Type", "text/csv; charset=utf-8"), r.set("Content-Disposition", Fe("attachment", a)), new Response(e, { headers: r });
|
|
330
|
+
}
|
|
331
|
+
//#endregion
|
|
313
332
|
//#region lib/print/output/to-pdf-element.ts
|
|
314
|
-
function
|
|
315
|
-
return i(e) ? e :
|
|
333
|
+
function at(e, t = {}) {
|
|
334
|
+
return i(e) ? e : M(e, J(e, t));
|
|
316
335
|
}
|
|
317
336
|
var J = (e, n) => ({
|
|
318
337
|
custom: n.custom,
|
|
@@ -322,24 +341,24 @@ var J = (e, n) => ({
|
|
|
322
341
|
async function Y(e, t = {}) {
|
|
323
342
|
if (i(e)) return e;
|
|
324
343
|
let n = e;
|
|
325
|
-
return
|
|
344
|
+
return at(await be(n, J(n, t)), t);
|
|
326
345
|
}
|
|
327
346
|
//#endregion
|
|
328
347
|
//#region lib/print/output/render-pdf.ts
|
|
329
|
-
var
|
|
348
|
+
var ot = () => typeof process < "u" && !!process.versions?.node;
|
|
330
349
|
async function X(e, t) {
|
|
331
|
-
return
|
|
350
|
+
return Ae(await Y(e, t)).toBlob();
|
|
332
351
|
}
|
|
333
352
|
async function Z(e, t) {
|
|
334
|
-
if (!
|
|
353
|
+
if (!ot()) {
|
|
335
354
|
let n = await X(e, t);
|
|
336
355
|
return new Uint8Array(await n.arrayBuffer());
|
|
337
356
|
}
|
|
338
|
-
let n = await
|
|
357
|
+
let n = await je(await Y(e, t));
|
|
339
358
|
return new Uint8Array(n);
|
|
340
359
|
}
|
|
341
|
-
async function
|
|
342
|
-
return
|
|
360
|
+
async function st(e, t) {
|
|
361
|
+
return Le(await Me(await Y(e, t)));
|
|
343
362
|
}
|
|
344
363
|
//#endregion
|
|
345
364
|
//#region lib/print/output/download-pdf.ts
|
|
@@ -347,7 +366,7 @@ var Q = (e, t) => e instanceof Blob ? e : X(e, t);
|
|
|
347
366
|
async function $(e, t = {}) {
|
|
348
367
|
await m(await Q(e, t), { fileName: t.fileName });
|
|
349
368
|
}
|
|
350
|
-
async function
|
|
369
|
+
async function ct(e, t = {}) {
|
|
351
370
|
let n = window.open("", "_blank"), r;
|
|
352
371
|
try {
|
|
353
372
|
r = await Q(e, t);
|
|
@@ -364,16 +383,16 @@ async function it(e, t = {}) {
|
|
|
364
383
|
}
|
|
365
384
|
//#endregion
|
|
366
385
|
//#region lib/print/output/pdf-response.ts
|
|
367
|
-
async function
|
|
368
|
-
return
|
|
386
|
+
async function lt(e, t = {}) {
|
|
387
|
+
return Ie(await Z(e, t), t);
|
|
369
388
|
}
|
|
370
389
|
//#endregion
|
|
371
390
|
//#region lib/print/output/use-pdf-file.ts
|
|
372
|
-
function
|
|
373
|
-
let [n, r] = l(() => e === null ?
|
|
374
|
-
...
|
|
391
|
+
function ut(e, t) {
|
|
392
|
+
let [n, r] = l(() => e === null ? R : {
|
|
393
|
+
...R,
|
|
375
394
|
loading: !0
|
|
376
|
-
}), [i, o] = l(0), c = a(() => o((e) => e + 1), []), u = t?.custom, [d] = l(() =>
|
|
395
|
+
}), [i, o] = l(0), c = a(() => o((e) => e + 1), []), u = t?.custom, [d] = l(() => Re(r, X));
|
|
377
396
|
return s(() => () => d.dispose(), [d]), s(() => {
|
|
378
397
|
d.load(e, { custom: u });
|
|
379
398
|
}, [
|
|
@@ -387,4 +406,4 @@ function ot(e, t) {
|
|
|
387
406
|
};
|
|
388
407
|
}
|
|
389
408
|
//#endregion
|
|
390
|
-
export {
|
|
409
|
+
export { ze as PrintBadge, Be as PrintCard, Ve as PrintCardField, He as PrintDataTable, qe as PrintDocument, Je as PrintDrawing, Ye as PrintHeader, Ze as PrintInfoRow, Ue as PrintKeyValue, We as PrintMetric, Ge as PrintMetrics, Xe as PrintSection, Qe as PrintTable, tt as PrintTableCell, $e as PrintTableHeader, et as PrintTableRow, nt as PrintTotalRow, K as PrintTotals, v as badge, z as commonPrintStyles, Pe as contentDisposition, h as createFormatters, it as csvResponse, y as dataTable, b as defaultPdfTheme, x as definePdfDocument, xe as definePrintColumns, S as divider, $ as downloadPdf, ee as drawing, g as formatAmount, _ as formatDate, Oe as formatPrintValue, te as header, ne as heading, re as image, ke as isEmptyPrintValue, ie as keyValue, ae as keyValueOf, oe as link, se as metric, ct as openPdf, ce as page, le as pageBreak, ue as pageNumber, de as pdfDocument, lt as pdfResponse, E as registerPdfFont, X as renderPdfBlob, Z as renderPdfBuffer, st as renderPdfStream, fe as resolvePdfColor, pe as resolvePdfTheme, Se as resolvePrintFields, we as resolvePrintTable, me as row, he as section, ge as spacer, _e as stack, ve as table, ye as text, rt as toCsv, Ee as toPrintValue, C as totals, B as tw, ut as usePdfFile };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-xNzbSVgS.js";
|
|
2
2
|
import { t } from "./toggle-FeCCJqbg.js";
|
|
3
3
|
import { n } from "./calculator-context-BugcKuVG.js";
|
|
4
4
|
import { o as r, r as i, t as a } from "./key-layout-D2goCDkD.js";
|
|
5
5
|
import { t as o } from "./programmer-word-CNCF7DJF.js";
|
|
6
|
-
import { t as s } from "./calculator-segment-
|
|
6
|
+
import { t as s } from "./calculator-segment-DJ08DJ-n.js";
|
|
7
7
|
import { useId as c, useState as l } from "react";
|
|
8
8
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
9
|
import { calculate as f, formatExpression as p, sessionOptions as m, toCanonical as h, tokenize as g } from "@nxgt/material-core/calculator";
|
|
@@ -3,25 +3,25 @@ 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 { i, n as a, r as o } from "./dist-DWZXlCZR.js";
|
|
6
|
-
import { o as s } from "./spinner-
|
|
6
|
+
import { o as s } from "./spinner-CEVomQ5K.js";
|
|
7
7
|
import { a as c, i as l, n as u } from "./dist-DHdUUM1w.js";
|
|
8
8
|
import { i as d } from "./dist-DOK3zo5C.js";
|
|
9
9
|
import { r as f, t as p } from "./in-dialog-D61Yeaol.js";
|
|
10
|
-
import { a as m, c as h, i as g, l as _, n as v, o as ee, r as y, s as b, t as te, u as ne } from "./use-return-focus-
|
|
11
|
-
import { c as x, d as S, f as C, i as w, l as T, n as E, o as D, t as re, u as O } from "./dropdown-menu-
|
|
12
|
-
import { a as k, b as ie, d as ae, f as oe, i as se, n as A, o as ce, r as le, s as j, t as M, u as ue, v as de } from "./toolbar-items-
|
|
10
|
+
import { a as m, c as h, i as g, l as _, n as v, o as ee, r as y, s as b, t as te, u as ne } from "./use-return-focus-CW9KkDkp.js";
|
|
11
|
+
import { c as x, d as S, f as C, i as w, l as T, n as E, o as D, t as re, u as O } from "./dropdown-menu-QMDbRidH.js";
|
|
12
|
+
import { a as k, b as ie, d as ae, f as oe, i as se, n as A, o as ce, r as le, s as j, t as M, u as ue, v as de } from "./toolbar-items-BDfoh8QB.js";
|
|
13
13
|
import { t as fe } from "./dist-DkQbkF9T.js";
|
|
14
|
-
import { t as pe } from "./button-
|
|
15
|
-
import { t as N } from "./use-material-translation-
|
|
16
|
-
import { n as me, t as he } from "./icon-button-
|
|
14
|
+
import { t as pe } from "./button-YfEMZbRO.js";
|
|
15
|
+
import { t as N } from "./use-material-translation-xNzbSVgS.js";
|
|
16
|
+
import { n as me, t as he } from "./icon-button-CpKxV264.js";
|
|
17
17
|
import { t as ge } from "./useEvent-2fKq-6w8.js";
|
|
18
18
|
import { n as _e, t as ve } from "./toggle-group-CVMxEpWi.js";
|
|
19
19
|
import { i as ye } from "./escape-owner-DpaP0lm1.js";
|
|
20
20
|
import { n as be } from "./use-slice-reducer-BGkeGtML.js";
|
|
21
21
|
import { t as xe } from "./input-CC2joTjB.js";
|
|
22
22
|
import { r as Se } from "./use-csp-nonce-ZKs9k-ov.js";
|
|
23
|
-
import { n as Ce, t as we } from "./empty-state-
|
|
24
|
-
import { r as Te, t as Ee, u as De } from "./dialog-
|
|
23
|
+
import { n as Ce, t as we } from "./empty-state-BLIJ6znY.js";
|
|
24
|
+
import { r as Te, t as Ee, u as De } from "./dialog-BKBsDGFc.js";
|
|
25
25
|
import { t as Oe } from "./client-only.utils-3nHNzCki.js";
|
|
26
26
|
import { t as ke } from "./use-scroll-away-PQRFZkT2.js";
|
|
27
27
|
import * as P from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n 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 { i as a, n as o, o as s, s as c, t as l } from "./code-language-items-
|
|
1
|
+
import { n as e } from "./spinner-CEVomQ5K.js";
|
|
2
|
+
import { c as t, n, t as r } from "./dropdown-menu-QMDbRidH.js";
|
|
3
|
+
import { t as i } from "./use-material-translation-xNzbSVgS.js";
|
|
4
|
+
import { i as a, n as o, o as s, s as c, t as l } from "./code-language-items-Nq1iOGId.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-CZg3nLZO.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,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-xNzbSVgS.js";
|
|
2
2
|
import { t } from "./toggle-FeCCJqbg.js";
|
|
3
3
|
import { n } from "./calculator-context-BugcKuVG.js";
|
|
4
4
|
import { a as r, r as i } from "./key-layout-D2goCDkD.js";
|
|
5
5
|
import { t as a } from "./standard-layout-DTr9yy8Z.js";
|
|
6
|
-
import { t as o } from "./calculator-segment-
|
|
6
|
+
import { t as o } from "./calculator-segment-DJ08DJ-n.js";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { scientificOptions as l } from "@nxgt/material-core/calculator/scientific";
|
|
9
9
|
//#region lib/components/ui/widgets/calculator/variants/scientific/scientific-layout.ts
|
|
@@ -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-xNzbSVgS.js";
|
|
4
|
+
import { t as r } from "./icon-button-CpKxV264.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";
|