@progress/kendo-react-barcodes 13.3.0 → 13.4.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Barcode.d.ts +55 -0
- package/BarcodeContext.d.ts +19 -0
- package/BarcodeProps.d.ts +91 -0
- package/BaseBarcode.d.ts +84 -0
- package/BaseBarcodeProps.d.ts +60 -0
- package/QRCode.d.ts +55 -0
- package/QRCodeProps.d.ts +101 -0
- package/common/barcodes.d.ts +11 -0
- package/dist/cdn/js/kendo-react-barcodes.js +1 -1
- package/index.d.mts +6 -490
- package/index.d.ts +6 -490
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +4 -4
- package/store/reducer.d.ts +17 -0
- package/store/store.d.ts +31 -0
- package/types/barcode-text.d.ts +39 -0
- package/types/barcode-type.d.ts +11 -0
- package/types/border.interface.d.ts +31 -0
- package/types/dash-type.interface.d.ts +11 -0
- package/types/margin.interface.d.ts +36 -0
- package/types/padding.interface.d.ts +36 -0
- package/types/qrcode-encoding.d.ts +11 -0
- package/types/qrcode-error-correction.d.ts +16 -0
- package/types/qrcode-overlay.d.ts +36 -0
- package/types/render-mode.d.ts +15 -0
- package/types.d.ts +17 -0
- package/utils/common.d.ts +11 -0
package/index.d.ts
CHANGED
|
@@ -5,493 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Represents the KendoReact Barcode component.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Barcode extends React_2.Component<BarcodeProps, {}> {
|
|
18
|
-
private _baseBarcode;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
get barcodeInstance(): any;
|
|
23
|
-
/**
|
|
24
|
-
* Gets the Drawing `Surface` of the Barcode.
|
|
25
|
-
*/
|
|
26
|
-
get surface(): Surface | null;
|
|
27
|
-
/**
|
|
28
|
-
* Gets the DOM element of the Barcode.
|
|
29
|
-
*/
|
|
30
|
-
get element(): HTMLDivElement | null;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
render(): any;
|
|
35
|
-
/**
|
|
36
|
-
* Exports the component as an image. The export operation runs asynchronously and returns a promise.
|
|
37
|
-
*
|
|
38
|
-
* @param {ImageExportOptions} options - The parameters for the exported image.
|
|
39
|
-
* @returns {Promise<string>} - A promise that resolves with a PNG image encoded as a Data URI.
|
|
40
|
-
*/
|
|
41
|
-
exportImage(options?: ImageExportOptions): Promise<string>;
|
|
42
|
-
/**
|
|
43
|
-
* Exports the component as an SVG document. The export operation runs asynchronously and returns a promise.
|
|
44
|
-
*
|
|
45
|
-
* @param options - The parameters for the exported file.
|
|
46
|
-
* @returns A promise that resolves with an SVG document that is encoded as a Data URI.
|
|
47
|
-
*/
|
|
48
|
-
exportSVG(options?: SVGExportOptions): Promise<string>;
|
|
49
|
-
/**
|
|
50
|
-
* Exports a Barcode component as a Drawing `Scene`.
|
|
51
|
-
*
|
|
52
|
-
* @param {any} options - The parameters for the export operation.
|
|
53
|
-
* @returns {Group} A promise that returns the root `Group` of the scene.
|
|
54
|
-
*/
|
|
55
|
-
exportVisual(options?: any): Group;
|
|
56
|
-
private getTarget;
|
|
57
|
-
private deriveOptionsFromParent;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Represents the props of the [KendoReact Barcode component](https://www.telerik.com/kendo-react-ui/components/barcodes/barcode).
|
|
62
|
-
*/
|
|
63
|
-
export declare interface BarcodeProps extends BaseBarcodeProps {
|
|
64
|
-
/**
|
|
65
|
-
* Sets the background color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
|
|
66
|
-
*
|
|
67
|
-
* @default "white"
|
|
68
|
-
* @example
|
|
69
|
-
* <Barcode background="#ffffff" />
|
|
70
|
-
*/
|
|
71
|
-
background?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Sets the border of the Barcode. Accepts an object implementing the `Border` interface.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* <Barcode border={{ color: "black", width: 2 }} />
|
|
77
|
-
*/
|
|
78
|
-
border?: Border;
|
|
79
|
-
/**
|
|
80
|
-
* Shows or hides the checksum digit next to the value in the text area.
|
|
81
|
-
*
|
|
82
|
-
* @default false
|
|
83
|
-
* @example
|
|
84
|
-
* <Barcode checksum={true} />
|
|
85
|
-
*/
|
|
86
|
-
checksum?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Sets the color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
|
|
89
|
-
*
|
|
90
|
-
* @default "black"
|
|
91
|
-
* @example
|
|
92
|
-
* <Barcode color="#000000" />
|
|
93
|
-
*/
|
|
94
|
-
color?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Sets the height of the Barcode in pixels.
|
|
97
|
-
* You can also set the Barcode dimensions through regular CSS styling.
|
|
98
|
-
*
|
|
99
|
-
* @example
|
|
100
|
-
* <Barcode height={100} />
|
|
101
|
-
*/
|
|
102
|
-
height?: number;
|
|
103
|
-
/**
|
|
104
|
-
* Sets the padding of the Barcode. Accepts a numeric value or an object implementing the `Padding` interface.
|
|
105
|
-
*
|
|
106
|
-
* @default 0
|
|
107
|
-
* @example
|
|
108
|
-
* <Barcode padding={{ top: 10, bottom: 10, left: 5, right: 5 }} />
|
|
109
|
-
*/
|
|
110
|
-
padding?: Padding | number;
|
|
111
|
-
/**
|
|
112
|
-
* Sets the text label configuration of the Barcode. Accepts an object implementing the `BarcodeText` interface.
|
|
113
|
-
*
|
|
114
|
-
* @example
|
|
115
|
-
* <Barcode text={{ visible: true, position: "bottom", color: "black" }} />
|
|
116
|
-
*/
|
|
117
|
-
text?: BarcodeText;
|
|
118
|
-
/**
|
|
119
|
-
* Sets the symbology (encoding) that the Barcode will use. Accepts a value of type `BarcodeType` or a custom string.
|
|
120
|
-
*
|
|
121
|
-
* @default "Code39"
|
|
122
|
-
* @example
|
|
123
|
-
* <Barcode type="Code128" />
|
|
124
|
-
*/
|
|
125
|
-
type: BarcodeType | string;
|
|
126
|
-
/**
|
|
127
|
-
* Sets the value of the Barcode. Accepts a string or a number.
|
|
128
|
-
*
|
|
129
|
-
* @example
|
|
130
|
-
* <Barcode value="123456789" />
|
|
131
|
-
*/
|
|
132
|
-
value: number | string;
|
|
133
|
-
/**
|
|
134
|
-
* Sets the width of the Barcode in pixels.
|
|
135
|
-
* You can also set the Barcode dimensions through regular CSS styling.
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* <Barcode width={200} />
|
|
139
|
-
*/
|
|
140
|
-
width?: number;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* The Barcode text label configuration.
|
|
145
|
-
*/
|
|
146
|
-
export declare interface BarcodeText {
|
|
147
|
-
/**
|
|
148
|
-
* Sets the color of the text. Any valid CSS color string will work here, including hex and rgb.
|
|
149
|
-
*
|
|
150
|
-
* @default "black"
|
|
151
|
-
*/
|
|
152
|
-
color?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Sets the font of the text.
|
|
155
|
-
*
|
|
156
|
-
* @default "16px Consolas, Monaco, Sans Mono, monospace, sans-serif"
|
|
157
|
-
*/
|
|
158
|
-
font?: string;
|
|
159
|
-
/**
|
|
160
|
-
* Sets the margin of the text. A numeric value sets all margins.
|
|
161
|
-
*
|
|
162
|
-
* @default 0
|
|
163
|
-
*/
|
|
164
|
-
margin?: Margin | number;
|
|
165
|
-
/**
|
|
166
|
-
* Shows or hides the Barcode text label.
|
|
167
|
-
*
|
|
168
|
-
* If set to `false`, the Barcode will not display the value as text below the barcode lines.
|
|
169
|
-
*
|
|
170
|
-
* @default true
|
|
171
|
-
*/
|
|
172
|
-
visible?: boolean;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Supported symbologies (encodings) for the Barcode component.
|
|
177
|
-
*/
|
|
178
|
-
export declare type BarcodeType = 'EAN8' | 'EAN13' | 'UPCE' | 'UPCA' | 'Code11' | 'Code39' | 'Code39Extended' | 'Code93' | 'Code93Extended' | 'Code128' | 'Code128A' | 'Code128B' | 'Code128C' | 'GS1-128' | 'MSImod10' | 'MSImod11' | 'MSImod1010' | 'MSImod1110' | 'POSTNET';
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @hidden
|
|
182
|
-
*/
|
|
183
|
-
declare interface BaseBarcodeProps {
|
|
184
|
-
/**
|
|
185
|
-
* @hidden
|
|
186
|
-
*/
|
|
187
|
-
children?: React.ReactNode;
|
|
188
|
-
/**
|
|
189
|
-
* Sets the styles that the component applies.
|
|
190
|
-
*
|
|
191
|
-
* @example
|
|
192
|
-
* <Barcode style={{ backgroundColor: "lightgray" }} />
|
|
193
|
-
*/
|
|
194
|
-
style?: React.CSSProperties;
|
|
195
|
-
/**
|
|
196
|
-
* Sets additional CSS classes to the component.
|
|
197
|
-
*
|
|
198
|
-
* @example
|
|
199
|
-
* <Barcode className="custom-barcode-class" />
|
|
200
|
-
*/
|
|
201
|
-
className?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Sets the preferred rendering engine.
|
|
204
|
-
*
|
|
205
|
-
* The supported values are:
|
|
206
|
-
* - `"svg"`—If available, renders the component as an inline `svg` element.
|
|
207
|
-
* - `"canvas"`—If available, renders the component as a `canvas` element.
|
|
208
|
-
*
|
|
209
|
-
* @example
|
|
210
|
-
* <Barcode renderAs="svg" />
|
|
211
|
-
*/
|
|
212
|
-
renderAs?: RenderMode;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* The appearance settings for the border lines.
|
|
217
|
-
*/
|
|
218
|
-
export declare interface Border {
|
|
219
|
-
/**
|
|
220
|
-
* Sets the color of the border line. Accepts valid CSS color strings, including hex and rgb.
|
|
221
|
-
*
|
|
222
|
-
* @default "black"
|
|
223
|
-
*/
|
|
224
|
-
color?: string;
|
|
225
|
-
/**
|
|
226
|
-
* Sets the dash type of the border line.
|
|
227
|
-
*
|
|
228
|
-
* @default "solid"
|
|
229
|
-
*/
|
|
230
|
-
dashType?: DashType;
|
|
231
|
-
/**
|
|
232
|
-
* Sets the width of the border line in pixels.
|
|
233
|
-
*
|
|
234
|
-
* @default 0
|
|
235
|
-
*/
|
|
236
|
-
width?: number;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* The dash line type.
|
|
241
|
-
*/
|
|
242
|
-
export declare type DashType = 'dash' | 'dashDot' | 'dot' | 'longDash' | 'longDashDot' | 'longDashDotDot' | 'solid';
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* The margin size for each side.
|
|
246
|
-
*/
|
|
247
|
-
export declare interface Margin {
|
|
248
|
-
/**
|
|
249
|
-
* Sets the top margin in pixels.
|
|
250
|
-
*
|
|
251
|
-
* @default 0
|
|
252
|
-
*/
|
|
253
|
-
top?: number;
|
|
254
|
-
/**
|
|
255
|
-
* Sets the right margin in pixels.
|
|
256
|
-
*
|
|
257
|
-
* @default 0
|
|
258
|
-
*/
|
|
259
|
-
right?: number;
|
|
260
|
-
/**
|
|
261
|
-
* Sets the bottom margin in pixels.
|
|
262
|
-
*
|
|
263
|
-
* @default 0
|
|
264
|
-
*/
|
|
265
|
-
bottom?: number;
|
|
266
|
-
/**
|
|
267
|
-
* Sets the left margin in pixels.
|
|
268
|
-
*
|
|
269
|
-
* @default 0
|
|
270
|
-
*/
|
|
271
|
-
left?: number;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* The padding size for each side.
|
|
276
|
-
*/
|
|
277
|
-
export declare interface Padding {
|
|
278
|
-
/**
|
|
279
|
-
* Sets the top padding in pixels.
|
|
280
|
-
*
|
|
281
|
-
* @default 0
|
|
282
|
-
*/
|
|
283
|
-
top?: number;
|
|
284
|
-
/**
|
|
285
|
-
* Sets the right padding in pixels.
|
|
286
|
-
*
|
|
287
|
-
* @default 0
|
|
288
|
-
*/
|
|
289
|
-
right?: number;
|
|
290
|
-
/**
|
|
291
|
-
* Sets the bottom padding in pixels.
|
|
292
|
-
*
|
|
293
|
-
* @default 0
|
|
294
|
-
*/
|
|
295
|
-
bottom?: number;
|
|
296
|
-
/**
|
|
297
|
-
* Sets the left padding in pixels.
|
|
298
|
-
*
|
|
299
|
-
* @default 0
|
|
300
|
-
*/
|
|
301
|
-
left?: number;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Represents the KendoReact QRCode component.
|
|
306
|
-
*/
|
|
307
|
-
export declare class QRCode extends React_2.Component<QRCodeProps, {}> {
|
|
308
|
-
private _baseBarcode;
|
|
309
|
-
/**
|
|
310
|
-
* @hidden
|
|
311
|
-
*/
|
|
312
|
-
get barcodeInstance(): any;
|
|
313
|
-
/**
|
|
314
|
-
* Gets the Drawing `Surface` of the Barcode.
|
|
315
|
-
*/
|
|
316
|
-
get surface(): Surface | null;
|
|
317
|
-
/**
|
|
318
|
-
* Gets the DOM element of the Barcode.
|
|
319
|
-
*/
|
|
320
|
-
get element(): HTMLDivElement | null;
|
|
321
|
-
/**
|
|
322
|
-
* @hidden
|
|
323
|
-
*/
|
|
324
|
-
render(): any;
|
|
325
|
-
/**
|
|
326
|
-
* Exports the component as an image. The export operation runs asynchronously and returns a promise.
|
|
327
|
-
*
|
|
328
|
-
* @param {ImageExportOptions} options - The parameters for the exported image.
|
|
329
|
-
* @returns {Promise<string>} - A promise that resolves with a PNG image encoded as a Data URI.
|
|
330
|
-
*/
|
|
331
|
-
exportImage(options?: ImageExportOptions): Promise<string>;
|
|
332
|
-
/**
|
|
333
|
-
* Exports the component as an SVG document. The export operation runs asynchronously and returns a promise.
|
|
334
|
-
*
|
|
335
|
-
* @param options - The parameters for the exported file.
|
|
336
|
-
* @returns A promise that resolves with an SVG document that is encoded as a Data URI.
|
|
337
|
-
*/
|
|
338
|
-
exportSVG(options?: SVGExportOptions): Promise<string>;
|
|
339
|
-
/**
|
|
340
|
-
* Exports a Barcode component as a Drawing `Scene`.
|
|
341
|
-
*
|
|
342
|
-
* @param {any} options - The parameters for the export operation.
|
|
343
|
-
* @returns {Group} A promise that returns the root `Group` of the scene.
|
|
344
|
-
*/
|
|
345
|
-
exportVisual(options?: any): Group;
|
|
346
|
-
private getTarget;
|
|
347
|
-
private deriveOptionsFromParent;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* The QR Code encoding modes.
|
|
352
|
-
*/
|
|
353
|
-
export declare type QRCodeEncoding = 'ISO_8859_1' | 'UTF_8';
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* The QR Code error correction levels.
|
|
357
|
-
*
|
|
358
|
-
* * `"L"`—Approximately 7% of the codewords can be restored.
|
|
359
|
-
* * `"M"`—Approximately 15% of the codewords can be restored.
|
|
360
|
-
* * `"Q"`—Approximately 25% of the codewords can be restored.
|
|
361
|
-
* * `"H"`—Approximately 30% of the codewords can be restored.
|
|
362
|
-
*/
|
|
363
|
-
export declare type QRCodeErrorCorrection = 'L' | 'M' | 'Q' | 'H';
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* The image overlay configuration of the QR Code.
|
|
367
|
-
*/
|
|
368
|
-
export declare interface QRCodeOverlay {
|
|
369
|
-
/**
|
|
370
|
-
* Sets the overlay height in pixels.
|
|
371
|
-
*
|
|
372
|
-
* @default undefined
|
|
373
|
-
*/
|
|
374
|
-
height?: number;
|
|
375
|
-
/**
|
|
376
|
-
* Sets the source image for the overlay.
|
|
377
|
-
*
|
|
378
|
-
* Required only when `type` is set to `'image'`.
|
|
379
|
-
*/
|
|
380
|
-
imageUrl?: string;
|
|
381
|
-
/**
|
|
382
|
-
* Sets the overlay type.
|
|
383
|
-
*
|
|
384
|
-
* @default "image"
|
|
385
|
-
*/
|
|
386
|
-
type?: 'image' | 'swiss';
|
|
387
|
-
/**
|
|
388
|
-
* Sets the overlay width in pixels.
|
|
389
|
-
*
|
|
390
|
-
* @default undefined
|
|
391
|
-
*/
|
|
392
|
-
width?: number;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* Represents the props of the [KendoReact QRCode component](https://www.telerik.com/kendo-react-ui/components/barcodes/qrcode).
|
|
397
|
-
*/
|
|
398
|
-
export declare interface QRCodeProps extends BaseBarcodeProps {
|
|
399
|
-
/**
|
|
400
|
-
* Sets the background color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
|
|
401
|
-
*
|
|
402
|
-
* @default "white"
|
|
403
|
-
* @example
|
|
404
|
-
* <QRCode background="#ffffff" />
|
|
405
|
-
*/
|
|
406
|
-
background?: string;
|
|
407
|
-
/**
|
|
408
|
-
* Sets the border of the QR Code. Accepts an object implementing the `Border` interface.
|
|
409
|
-
*
|
|
410
|
-
* @example
|
|
411
|
-
* <QRCode border={{ color: "black", width: 2 }} />
|
|
412
|
-
*/
|
|
413
|
-
border?: Border;
|
|
414
|
-
/**
|
|
415
|
-
* Sets the color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
|
|
416
|
-
*
|
|
417
|
-
* @default "black"
|
|
418
|
-
* @example
|
|
419
|
-
* <QRCode color="#000000" />
|
|
420
|
-
*/
|
|
421
|
-
color?: string;
|
|
422
|
-
/**
|
|
423
|
-
* Sets the encoding mode used to encode the value.
|
|
424
|
-
*
|
|
425
|
-
* > **Important** The UTF-8 encoding is not included in the specifications and some readers do not support it.
|
|
426
|
-
*
|
|
427
|
-
* The possible values are:
|
|
428
|
-
* * `"ISO_8859_1"`—Supports all characters from the [ISO/IEC 8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) character set.
|
|
429
|
-
* * `"UTF_8"`—Supports all [Unicode](https://en.wikipedia.org/wiki/List_of_Unicode_characters) characters.
|
|
430
|
-
*
|
|
431
|
-
* @default "ISO_8859_1"
|
|
432
|
-
* @example
|
|
433
|
-
* <QRCode encoding="UTF_8" />
|
|
434
|
-
*/
|
|
435
|
-
encoding?: QRCodeEncoding;
|
|
436
|
-
/**
|
|
437
|
-
* Sets the error correction level to use.
|
|
438
|
-
*
|
|
439
|
-
* The possible values are:
|
|
440
|
-
* * `"L"`—Approximately 7% of the codewords can be restored.
|
|
441
|
-
* * `"M"`—Approximately 15% of the codewords can be restored.
|
|
442
|
-
* * `"Q"`—Approximately 25% of the codewords can be restored.
|
|
443
|
-
* * `"H"`—Approximately 30% of the codewords can be restored.
|
|
444
|
-
*
|
|
445
|
-
* @default "L"
|
|
446
|
-
* @example
|
|
447
|
-
* <QRCode errorCorrection="H" />
|
|
448
|
-
*/
|
|
449
|
-
errorCorrection?: QRCodeErrorCorrection;
|
|
450
|
-
/**
|
|
451
|
-
* An optional image overlay that displays over the QR Code.
|
|
452
|
-
*
|
|
453
|
-
* > **Note** Always test if the code reads correctly with the applied overlay.
|
|
454
|
-
* > Depending on the length of the value and the size of the overlay, you might need to raise the `errorCorrection` level to `"M"` or `"H"`.
|
|
455
|
-
*
|
|
456
|
-
* @example
|
|
457
|
-
* <QRCode overlay={{ imageUrl: "https://example.com/logo.png", size: 50 }} />
|
|
458
|
-
*/
|
|
459
|
-
overlay?: QRCodeOverlay;
|
|
460
|
-
/**
|
|
461
|
-
* Sets the padding of the QR Code. A numeric value sets all paddings.
|
|
462
|
-
*
|
|
463
|
-
* @default 0
|
|
464
|
-
* @example
|
|
465
|
-
* <QRCode padding={10} />
|
|
466
|
-
*/
|
|
467
|
-
padding?: number;
|
|
468
|
-
/**
|
|
469
|
-
* Determines the size of a QR Code. Numeric values represent pixels.
|
|
470
|
-
*
|
|
471
|
-
* If you do not specify a size, the size will be determined from the element width and height.
|
|
472
|
-
* If the element has width or height of zero, a default value of 200 pixels will be used.
|
|
473
|
-
*
|
|
474
|
-
* @default "200px"
|
|
475
|
-
* @example
|
|
476
|
-
* <QRCode size={300} />
|
|
477
|
-
*/
|
|
478
|
-
size?: number | string;
|
|
479
|
-
/**
|
|
480
|
-
* Sets the value of the QR Code. Accepts a string or a number.
|
|
481
|
-
*
|
|
482
|
-
* @example
|
|
483
|
-
* <QRCode value="https://example.com" />
|
|
484
|
-
*/
|
|
485
|
-
value: number | string;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* Sets the rendering mode of the component.
|
|
490
|
-
*
|
|
491
|
-
* The supported values are:
|
|
492
|
-
* * `"canvas"`—Renders the component as a Canvas element.
|
|
493
|
-
* * `"svg"`—Renders the component as an inline SVG document.
|
|
494
|
-
*/
|
|
495
|
-
export declare type RenderMode = 'svg' | 'canvas';
|
|
496
|
-
|
|
497
|
-
export { }
|
|
8
|
+
import { Barcode } from './Barcode.js';
|
|
9
|
+
import { BarcodeProps } from './BarcodeProps.js';
|
|
10
|
+
import { QRCode } from './QRCode.js';
|
|
11
|
+
import { QRCodeProps } from './QRCodeProps.js';
|
|
12
|
+
export * from './types.js';
|
|
13
|
+
export { Barcode, BarcodeProps, QRCode, QRCodeProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PackageMetadata } from '@progress/kendo-licensing';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const packageMetadata: PackageMetadata;
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-barcodes",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-barcodes",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1770219255,version:"13.4.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
|
+
// Generated file. DO NOT EDIT.
|
|
1
2
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
3
|
+
* @hidden
|
|
7
4
|
*/
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
export const packageMetadata = Object.freeze({
|
|
6
|
+
name: '@progress/kendo-react-barcodes',
|
|
7
|
+
productName: 'KendoReact',
|
|
8
|
+
productCode: 'KENDOUIREACT',
|
|
9
|
+
productCodes: ['KENDOUIREACT'],
|
|
10
|
+
publishDate: 0,
|
|
11
|
+
version: '13.4.0-develop.1',
|
|
12
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
16
13
|
});
|
|
17
|
-
export {
|
|
18
|
-
e as packageMetadata
|
|
19
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-barcodes",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0-develop.1",
|
|
4
4
|
"description": "React Barcodes provide a set of React components to build beautiful and customizable barcodes. KendoReact Barcodes package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@progress/kendo-charts": "2.9.0",
|
|
29
29
|
"@progress/kendo-drawing": "^1.21.2",
|
|
30
30
|
"@progress/kendo-licensing": "^1.7.2",
|
|
31
|
-
"@progress/kendo-react-common": "13.
|
|
32
|
-
"@progress/kendo-react-intl": "13.
|
|
31
|
+
"@progress/kendo-react-common": "13.4.0-develop.1",
|
|
32
|
+
"@progress/kendo-react-intl": "13.4.0-develop.1",
|
|
33
33
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
34
34
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
35
35
|
},
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"package": {
|
|
57
57
|
"productName": "KendoReact",
|
|
58
58
|
"productCode": "KENDOUIREACT",
|
|
59
|
-
"publishDate":
|
|
59
|
+
"publishDate": 1770219255,
|
|
60
60
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { StoreAction } from './store.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
declare const optionsReducer: (currentState: any, action: StoreAction) => object;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
declare const observersReducer: (currentState: any, action: StoreAction) => any;
|
|
17
|
+
export { optionsReducer, observersReducer };
|
package/store/store.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const THROTTLE_MS: number;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export interface StoreAction {
|
|
16
|
+
barcodeKey?: string;
|
|
17
|
+
type?: string;
|
|
18
|
+
payload: any;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface Store {
|
|
24
|
+
getState(): any;
|
|
25
|
+
dispatch(action: StoreAction | object): void;
|
|
26
|
+
subscribe(f: Function): Function;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const createStore: (reducer: any) => Store;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Margin } from './margin.interface.js';
|
|
9
|
+
/**
|
|
10
|
+
* The Barcode text label configuration.
|
|
11
|
+
*/
|
|
12
|
+
export interface BarcodeText {
|
|
13
|
+
/**
|
|
14
|
+
* Sets the color of the text. Any valid CSS color string will work here, including hex and rgb.
|
|
15
|
+
*
|
|
16
|
+
* @default "black"
|
|
17
|
+
*/
|
|
18
|
+
color?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the font of the text.
|
|
21
|
+
*
|
|
22
|
+
* @default "16px Consolas, Monaco, Sans Mono, monospace, sans-serif"
|
|
23
|
+
*/
|
|
24
|
+
font?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the margin of the text. A numeric value sets all margins.
|
|
27
|
+
*
|
|
28
|
+
* @default 0
|
|
29
|
+
*/
|
|
30
|
+
margin?: Margin | number;
|
|
31
|
+
/**
|
|
32
|
+
* Shows or hides the Barcode text label.
|
|
33
|
+
*
|
|
34
|
+
* If set to `false`, the Barcode will not display the value as text below the barcode lines.
|
|
35
|
+
*
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
visible?: boolean;
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Supported symbologies (encodings) for the Barcode component.
|
|
10
|
+
*/
|
|
11
|
+
export type BarcodeType = 'EAN8' | 'EAN13' | 'UPCE' | 'UPCA' | 'Code11' | 'Code39' | 'Code39Extended' | 'Code93' | 'Code93Extended' | 'Code128' | 'Code128A' | 'Code128B' | 'Code128C' | 'GS1-128' | 'MSImod10' | 'MSImod11' | 'MSImod1010' | 'MSImod1110' | 'POSTNET';
|