@nxgt/material 3.58.0 → 3.59.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 +16 -0
- package/README.md +31 -0
- package/dist/{async-slice-C_Juki7i.js → async-slice-Cmvxrvn9.js} +2 -2
- package/dist/barcode.js +440 -0
- package/dist/{button-CCHGtPIN.js → button-Deo7l4wM.js} +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-1XnyX4bd.js → chip-BlmIjpiD.js} +2 -2
- package/dist/{code-editor-1Y7ykpam.js → code-editor-BYEpBp_U.js} +11 -11
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-Clbln9C6.js → code-language-items-Cqk4Fq61.js} +2 -2
- package/dist/components/components.css +1 -0
- package/dist/components/ui/widgets/barcode/barcode.css +112 -0
- package/dist/{components-Cj3lJ_uK.js → components-BsKpeqVX.js} +10568 -10517
- package/dist/components.js +26 -26
- package/dist/{dialog-Cx_xWUVR.js → dialog-1BstKBvt.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-Jp6pHNgP.js → dropdown-menu-hoaocAS7.js} +1 -1
- package/dist/editor.js +9 -9
- package/dist/{empty-state-D61RimJr.js → empty-state-DEG9h7xk.js} +2 -2
- package/dist/{escape-owner-Ch_-kDLw.js → escape-owner-BvLBo_Al.js} +22 -22
- package/dist/{field-blur-BJjUHsgJ.js → field-blur-BkeYPaWi.js} +1 -1
- package/dist/{field-blur-context-CmOF0FIN.js → field-blur-context-Ba7iZVm_.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-CVmY0Z44.js → hover-card-C5DTU9P_.js} +2 -2
- package/dist/{i18n-provider-C0uLEv0G.js → i18n-provider-BJDI-A5w.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-bAQQK3ls.js → icon-badge-9ZE6k7cn.js} +3 -3
- package/dist/{icon-button-Csvj2R8S.js → icon-button-AwJtCkV5.js} +1 -1
- package/dist/lib/barcode/index.d.ts +15 -0
- package/dist/lib/components/ui/actions/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/load-more-footer/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +24 -0
- package/dist/lib/components/ui/feedback/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/page-load-failed/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/page-load-failed/page-load-failed.d.ts +15 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/widgets/barcode/barcode-error.d.ts +4 -0
- package/dist/lib/components/ui/widgets/barcode/barcode-geometry.d.ts +22 -0
- package/dist/lib/components/ui/widgets/barcode/barcode.d.ts +31 -0
- package/dist/lib/components/ui/widgets/barcode/code128.d.ts +15 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix-placement.d.ts +7 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix-rs.d.ts +2 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix-tables.d.ts +13 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix.d.ts +10 -0
- package/dist/lib/components/ui/widgets/barcode/encode.d.ts +12 -0
- package/dist/lib/components/ui/widgets/barcode/index.d.ts +6 -0
- package/dist/lib/components/ui/widgets/barcode/label-length.d.ts +4 -0
- package/dist/lib/components/ui/widgets/barcode/label-sheet.d.ts +37 -0
- package/dist/lib/i18n/resources/en/en.d.ts +8 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +8 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +8 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +8 -0
- package/dist/lib/i18n/resources/resources.d.ts +16 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/print/components/print-section.d.ts +8 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +43 -43
- package/dist/map.js +8 -8
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +4 -3
- package/dist/{public-B42vT7ee.js → public-CLkf8uky.js} +15 -15
- package/dist/{rich-code-block-DIJ1X1AF.js → rich-code-block-hJexXOdk.js} +5 -5
- package/dist/{sortable-provider-Csby6WpB.js → sortable-provider-DE-MSfeJ.js} +2 -2
- package/dist/{spinner-DC35lhqx.js → spinner-CquTUxzt.js} +1 -1
- package/dist/{stored-language-BIxd7uiP.js → stored-language-BDzGeEAm.js} +16 -0
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-BWdNFLvB.js → theme-toggle-DBgsBw8S.js} +1 -1
- package/dist/{toolbar-items-oqmVfnfO.js → toolbar-items-Bm1baIp6.js} +4 -4
- package/dist/{translate-material-Bgtjuh85.js → translate-material-Q67GD4co.js} +2 -2
- package/dist/{translator-BrZv1U54.js → translator-CBhGdYun.js} +1 -1
- package/dist/{use-chat-composer-Dj0TP_B1.js → use-chat-composer-Cx7Q_KOV.js} +929 -929
- package/dist/{use-heading-spy-1Dqxj_JQ.js → use-heading-spy-COxCWqWF.js} +1 -1
- package/dist/{use-material-translation-DLdQKdfw.js → use-material-translation-BZAy_ffS.js} +2 -2
- package/docs/README.md +1 -0
- package/docs/components/buttons-and-actions.md +37 -0
- package/docs/components/feedback-and-status.md +25 -0
- package/docs/components/rich-widgets.md +31 -0
- package/docs/guides/barcode.md +203 -0
- package/docs/guides/printing.md +28 -3
- package/docs/previews/buttons-actions-loadmorefooter.webp +0 -0
- package/docs/previews/feedback-status-pageloadfailed.webp +0 -0
- package/docs/roadmap.md +14 -7
- package/docs/troubleshooting.md +62 -0
- package/lib/components/components.css +1 -0
- package/lib/components/ui/widgets/barcode/barcode.css +112 -0
- package/package.json +10 -3
package/dist/code-editor.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { a as t } from "./dist-lmHmz_bu.js";
|
|
3
|
-
import { d as n, r, t as i, u as a } from "./toolbar-items-
|
|
4
|
-
import { t as o } from "./use-material-translation-
|
|
5
|
-
import { i as s, n as c, o as l } from "./code-language-items-
|
|
6
|
-
import { r as u, t as d } from "./field-blur-
|
|
3
|
+
import { d as n, r, t as i, u as a } from "./toolbar-items-Bm1baIp6.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-BZAy_ffS.js";
|
|
5
|
+
import { i as s, n as c, o as l } from "./code-language-items-Cqk4Fq61.js";
|
|
6
|
+
import { r as u, t as d } from "./field-blur-BkeYPaWi.js";
|
|
7
7
|
import { t as f } from "./skeleton-DSdtr2qc.js";
|
|
8
8
|
import { t as p } from "./live-status-BGPaN8r8.js";
|
|
9
9
|
import { t as m } from "./use-mobile-BDro060N.js";
|
|
10
10
|
import { t as h } from "./react-node-text-Crkpfpco.js";
|
|
11
|
-
import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-
|
|
11
|
+
import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-BYEpBp_U.js";
|
|
12
12
|
import { useEffect as k, useRef as A, useState as j } from "react";
|
|
13
13
|
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
14
14
|
import { ChevronDown as F, ChevronUp as I, Columns2 as L } from "lucide-react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, f as t } from "./dropdown-menu-
|
|
2
|
-
import { t as n } from "./use-material-translation-
|
|
1
|
+
import { d as e, f as t } from "./dropdown-menu-hoaocAS7.js";
|
|
2
|
+
import { t as n } from "./use-material-translation-BZAy_ffS.js";
|
|
3
3
|
import { t as r } from "./live-status-BGPaN8r8.js";
|
|
4
4
|
import { useEffect as i, useRef as a, useState as o } from "react";
|
|
5
5
|
import { jsx as s } from "react/jsx-runtime";
|
|
@@ -206,3 +206,4 @@
|
|
|
206
206
|
@import "./background-shared.css";
|
|
207
207
|
@import "./ui/widgets/drawing/drawing.css"; /* @nxgt/material/draw: role colours, focus ring */
|
|
208
208
|
@import "./ui/widgets/drawing/drawing-animate.css";
|
|
209
|
+
@import "./ui/widgets/barcode/barcode.css"; /* @nxgt/material/barcode: symbol colours, label sheet */
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* Barcode and LabelSheet (`@nxgt/material/barcode`). Imported by components.css,
|
|
2
|
+
* so styles.css carries it. No inline style: the symbol's colours are classes
|
|
3
|
+
* and a sheet's lengths are custom properties written after mount.
|
|
4
|
+
*
|
|
5
|
+
* On screen the symbol follows the theme (ink = --foreground on --background);
|
|
6
|
+
* `appearance="paper"` keeps dark-on-light in dark mode too, which is what most
|
|
7
|
+
* scanners need. In print every symbol is black on white whatever the theme. */
|
|
8
|
+
.nxgt-barcode {
|
|
9
|
+
display: block;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
height: auto;
|
|
12
|
+
color: var(--foreground);
|
|
13
|
+
}
|
|
14
|
+
.nxgt-barcode-paper {
|
|
15
|
+
fill: var(--background);
|
|
16
|
+
}
|
|
17
|
+
.nxgt-barcode-ink {
|
|
18
|
+
fill: var(--foreground);
|
|
19
|
+
}
|
|
20
|
+
.nxgt-barcode-text {
|
|
21
|
+
fill: var(--foreground);
|
|
22
|
+
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
|
|
23
|
+
}
|
|
24
|
+
.nxgt-barcode[data-appearance="paper"] .nxgt-barcode-paper {
|
|
25
|
+
fill: #fff;
|
|
26
|
+
}
|
|
27
|
+
.nxgt-barcode[data-appearance="paper"] .nxgt-barcode-ink,
|
|
28
|
+
.nxgt-barcode[data-appearance="paper"] .nxgt-barcode-text {
|
|
29
|
+
fill: #000;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* A sheet of labels: pages of a CSS grid. --nxgt-label-w/-h are one label,
|
|
33
|
+
* --nxgt-label-cols the columns, --nxgt-label-gap-x/-y the gaps and
|
|
34
|
+
* --nxgt-label-off-x/-y the margin before the first label. */
|
|
35
|
+
.nxgt-label-sheet {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 1rem;
|
|
39
|
+
}
|
|
40
|
+
.nxgt-label-page {
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-template-columns: repeat(
|
|
44
|
+
var(--nxgt-label-cols, 1),
|
|
45
|
+
var(--nxgt-label-w, auto)
|
|
46
|
+
);
|
|
47
|
+
grid-auto-rows: var(--nxgt-label-h, auto);
|
|
48
|
+
column-gap: var(--nxgt-label-gap-x, 0);
|
|
49
|
+
row-gap: var(--nxgt-label-gap-y, 0);
|
|
50
|
+
padding: var(--nxgt-label-off-y, 0) 0 0 var(--nxgt-label-off-x, 0);
|
|
51
|
+
width: max-content;
|
|
52
|
+
max-width: 100%;
|
|
53
|
+
break-after: page;
|
|
54
|
+
page-break-after: always;
|
|
55
|
+
background: var(--card);
|
|
56
|
+
outline: 1px dashed var(--border);
|
|
57
|
+
}
|
|
58
|
+
.nxgt-label-page:last-child {
|
|
59
|
+
break-after: auto;
|
|
60
|
+
page-break-after: auto;
|
|
61
|
+
}
|
|
62
|
+
.nxgt-label {
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
gap: 0.5mm;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
break-inside: avoid;
|
|
71
|
+
padding: 1mm;
|
|
72
|
+
font-size: 8pt;
|
|
73
|
+
line-height: 1.1;
|
|
74
|
+
text-align: center;
|
|
75
|
+
outline: 1px dotted var(--border);
|
|
76
|
+
}
|
|
77
|
+
.nxgt-label[data-blank] {
|
|
78
|
+
outline: none;
|
|
79
|
+
}
|
|
80
|
+
.nxgt-label > .nxgt-barcode {
|
|
81
|
+
flex: 0 1 auto;
|
|
82
|
+
min-height: 0;
|
|
83
|
+
width: 100%;
|
|
84
|
+
/* the symbol scales to fit (preserveAspectRatio), leaving room for the text */
|
|
85
|
+
max-height: max(calc(var(--nxgt-label-h, 30mm) - 8mm), 4mm);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media print {
|
|
89
|
+
.nxgt-barcode {
|
|
90
|
+
color: #000;
|
|
91
|
+
}
|
|
92
|
+
.nxgt-barcode .nxgt-barcode-paper {
|
|
93
|
+
fill: #fff;
|
|
94
|
+
}
|
|
95
|
+
.nxgt-barcode .nxgt-barcode-ink,
|
|
96
|
+
.nxgt-barcode .nxgt-barcode-text {
|
|
97
|
+
fill: #000;
|
|
98
|
+
}
|
|
99
|
+
.nxgt-label-sheet {
|
|
100
|
+
display: block;
|
|
101
|
+
gap: 0;
|
|
102
|
+
}
|
|
103
|
+
.nxgt-label-page {
|
|
104
|
+
background: #fff;
|
|
105
|
+
color: #000;
|
|
106
|
+
outline: none;
|
|
107
|
+
max-width: none;
|
|
108
|
+
}
|
|
109
|
+
.nxgt-label {
|
|
110
|
+
outline: none;
|
|
111
|
+
}
|
|
112
|
+
}
|