@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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ASCII encodation of Data Matrix: two digits in one codeword, a
|
|
3
|
+
* character 0-127 as itself plus one, and every UTF-8 byte above 127 behind
|
|
4
|
+
* the Upper Shift codeword. The denser C40, Text, X12, EDIFACT and Base 256
|
|
5
|
+
* encodations are not used: the symbol can come out one size larger for long
|
|
6
|
+
* upper-case text, never unreadable.
|
|
7
|
+
*/
|
|
8
|
+
export declare function dataMatrixCodewords(text: string): number[];
|
|
9
|
+
/** The square ECC 200 symbol of `text`: `true` is a dark module, row by row. */
|
|
10
|
+
export declare function dataMatrixModules(text: string): boolean[][];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type BarcodeSymbology = 'code128' | 'datamatrix';
|
|
2
|
+
/** A symbol as geometry: `bars` are `[x, width]` runs of a 1-D symbol, `rows` the rows of a 2-D one. */
|
|
3
|
+
export type EncodedBarcode = {
|
|
4
|
+
symbology: 'code128';
|
|
5
|
+
width: number;
|
|
6
|
+
runs: [number, number][];
|
|
7
|
+
} | {
|
|
8
|
+
symbology: 'datamatrix';
|
|
9
|
+
width: number;
|
|
10
|
+
rows: boolean[][];
|
|
11
|
+
};
|
|
12
|
+
export declare function encodeBarcode(value: string, symbology?: BarcodeSymbology): EncodedBarcode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Barcode, type BarcodeProps } from './barcode.js';
|
|
2
|
+
export { BarcodeError } from './barcode-error.js';
|
|
3
|
+
export { type BarcodeGeometry, type BarcodeGeometryOptions, barcodeGeometry, } from './barcode-geometry.js';
|
|
4
|
+
export type { BarcodeSymbology } from './encode.js';
|
|
5
|
+
export type { LabelLength } from './label-length.js';
|
|
6
|
+
export { Label, LabelSheet, type LabelSheetProps } from './label-sheet.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** A CSS length: a number means millimetres, a string needs a physical or font unit. */
|
|
2
|
+
export type LabelLength = number | `${number}${'mm' | 'cm' | 'in' | 'pt' | 'px' | 'rem' | 'em'}`;
|
|
3
|
+
/** The CSS value of `length`; throws `BarcodeError` on anything but a number or `<n><unit>`. */
|
|
4
|
+
export declare function cssLength(length: LabelLength | undefined, name: string): string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { LabelLength } from './label-length.js';
|
|
3
|
+
export type LabelSheetProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
4
|
+
/** The size of one label. A number is millimetres. */
|
|
5
|
+
label: {
|
|
6
|
+
width: LabelLength;
|
|
7
|
+
height: LabelLength;
|
|
8
|
+
};
|
|
9
|
+
/** Labels per row. */
|
|
10
|
+
columns: number;
|
|
11
|
+
/** Rows per page. Default: all the labels on one page. */
|
|
12
|
+
rows?: number;
|
|
13
|
+
/** The space between labels: one length for both, or `{ x, y }`. Default 0. */
|
|
14
|
+
gap?: LabelLength | {
|
|
15
|
+
x?: LabelLength;
|
|
16
|
+
y?: LabelLength;
|
|
17
|
+
};
|
|
18
|
+
/** The margin before the first label (the sheet's top-left unprintable edge). Default 0. */
|
|
19
|
+
offset?: {
|
|
20
|
+
x?: LabelLength;
|
|
21
|
+
y?: LabelLength;
|
|
22
|
+
};
|
|
23
|
+
/** Labels to leave blank first: start on the 5th label of a sheet that is partly used. Default 0. */
|
|
24
|
+
skip?: number;
|
|
25
|
+
/** The labels, each a `Label`. */
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
};
|
|
28
|
+
/** One label cell of a `LabelSheet`: it clips to the label size and never splits across pages. */
|
|
29
|
+
export declare function Label({ className, ...rest }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* A sheet of labels to print: `columns` x `rows` labels of a fixed size, gaps
|
|
32
|
+
* between them and a start offset, one page per full grid. Add
|
|
33
|
+
* `@page { size: A4; margin: 0 }` (your sheet's size) to the app's print CSS.
|
|
34
|
+
* The lengths are written as custom properties after mount (a strict CSP
|
|
35
|
+
* blocks a rendered `style` attribute), so print once the page is hydrated.
|
|
36
|
+
*/
|
|
37
|
+
export declare function LabelSheet(props: LabelSheetProps): import("react").JSX.Element;
|
|
@@ -1339,6 +1339,14 @@ export declare const en: {
|
|
|
1339
1339
|
dark: string;
|
|
1340
1340
|
system: string;
|
|
1341
1341
|
};
|
|
1342
|
+
"load-more": {
|
|
1343
|
+
shown: string;
|
|
1344
|
+
"shown-count": string;
|
|
1345
|
+
failed: string;
|
|
1346
|
+
retry: string;
|
|
1347
|
+
"page-failed-title": string;
|
|
1348
|
+
"back-to-start": string;
|
|
1349
|
+
};
|
|
1342
1350
|
"language-switcher": {
|
|
1343
1351
|
label: string;
|
|
1344
1352
|
};
|
|
@@ -1329,6 +1329,14 @@ declare const _default: {
|
|
|
1329
1329
|
"dark": "Dark",
|
|
1330
1330
|
"system": "System"
|
|
1331
1331
|
},
|
|
1332
|
+
"load-more": {
|
|
1333
|
+
"shown": "Showing {shown} of {total}",
|
|
1334
|
+
"shown-count": "{shown, plural, one {# shown} other {# shown}}",
|
|
1335
|
+
"failed": "The next items could not be loaded",
|
|
1336
|
+
"retry": "Try again",
|
|
1337
|
+
"page-failed-title": "This page could not be loaded",
|
|
1338
|
+
"back-to-start": "Back to the start"
|
|
1339
|
+
},
|
|
1332
1340
|
"language-switcher": {
|
|
1333
1341
|
"label": "Language"
|
|
1334
1342
|
},
|
|
@@ -1339,6 +1339,14 @@ export declare const fr: {
|
|
|
1339
1339
|
dark: string;
|
|
1340
1340
|
system: string;
|
|
1341
1341
|
};
|
|
1342
|
+
"load-more": {
|
|
1343
|
+
shown: string;
|
|
1344
|
+
"shown-count": string;
|
|
1345
|
+
failed: string;
|
|
1346
|
+
retry: string;
|
|
1347
|
+
"page-failed-title": string;
|
|
1348
|
+
"back-to-start": string;
|
|
1349
|
+
};
|
|
1342
1350
|
"language-switcher": {
|
|
1343
1351
|
label: string;
|
|
1344
1352
|
};
|
|
@@ -1329,6 +1329,14 @@ declare const _default: {
|
|
|
1329
1329
|
"dark": "Sombre",
|
|
1330
1330
|
"system": "Système"
|
|
1331
1331
|
},
|
|
1332
|
+
"load-more": {
|
|
1333
|
+
"shown": "Affichage de {shown} sur {total}",
|
|
1334
|
+
"shown-count": "{shown, plural, one {# affiché} other {# affichés}}",
|
|
1335
|
+
"failed": "La suite n’a pas pu être chargée",
|
|
1336
|
+
"retry": "Réessayer",
|
|
1337
|
+
"page-failed-title": "Cette page n’a pas pu être chargée",
|
|
1338
|
+
"back-to-start": "Retour au début"
|
|
1339
|
+
},
|
|
1332
1340
|
"language-switcher": {
|
|
1333
1341
|
"label": "Langue"
|
|
1334
1342
|
},
|
|
@@ -1337,6 +1337,14 @@ export declare const resources: {
|
|
|
1337
1337
|
dark: string;
|
|
1338
1338
|
system: string;
|
|
1339
1339
|
};
|
|
1340
|
+
"load-more": {
|
|
1341
|
+
shown: string;
|
|
1342
|
+
"shown-count": string;
|
|
1343
|
+
failed: string;
|
|
1344
|
+
retry: string;
|
|
1345
|
+
"page-failed-title": string;
|
|
1346
|
+
"back-to-start": string;
|
|
1347
|
+
};
|
|
1340
1348
|
"language-switcher": {
|
|
1341
1349
|
label: string;
|
|
1342
1350
|
};
|
|
@@ -4284,6 +4292,14 @@ export declare const resources: {
|
|
|
4284
4292
|
dark: string;
|
|
4285
4293
|
system: string;
|
|
4286
4294
|
};
|
|
4295
|
+
"load-more": {
|
|
4296
|
+
shown: string;
|
|
4297
|
+
"shown-count": string;
|
|
4298
|
+
failed: string;
|
|
4299
|
+
retry: string;
|
|
4300
|
+
"page-failed-title": string;
|
|
4301
|
+
"back-to-start": string;
|
|
4302
|
+
};
|
|
4287
4303
|
"language-switcher": {
|
|
4288
4304
|
label: string;
|
|
4289
4305
|
};
|