@progress/kendo-angular-barcodes 24.2.2 → 25.0.0-develop.2

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/index.d.ts CHANGED
@@ -2,12 +2,691 @@
2
2
  * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- export { BarcodeComponent } from './barcode.component';
6
- export { QRCodeComponent } from './qrcode.component';
7
- export { BarcodeModule } from './barcode.module';
8
- export { QRCodeModule } from './qrcode.module';
9
- export { BarcodesModule } from './barcodes.module';
10
- export { createBarcodeValidator } from './barcode-validator';
11
- export { createQRCodeValidator } from './qrcode-validator';
12
- export * from './chart-types';
13
- export * from './directives';
5
+ import * as i0 from '@angular/core';
6
+ import { OnChanges, AfterViewInit, ElementRef, Renderer2, NgZone, SimpleChanges } from '@angular/core';
7
+ import { BarcodeOptions as BarcodeOptions$1, Barcode, QRCodeOptions as QRCodeOptions$1, QRCode } from '@progress/kendo-charts';
8
+ import { ImageExportOptions, SVGExportOptions, Group, geometry } from '@progress/kendo-drawing';
9
+ import { ValidatorFn } from '@angular/forms';
10
+
11
+ /**
12
+ * @hidden
13
+ */
14
+ declare abstract class BaseComponent implements OnChanges, AfterViewInit {
15
+ protected element: ElementRef;
16
+ protected renderer: Renderer2;
17
+ protected ngZone: NgZone;
18
+ resizeRateLimit: number;
19
+ protected instance: any;
20
+ protected abstract get options(): any;
21
+ protected get autoResize(): boolean;
22
+ protected get canRender(): boolean;
23
+ constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
24
+ ngAfterViewInit(): void;
25
+ ngOnChanges(changes: SimpleChanges): void;
26
+ /**
27
+ * Detects the size of the container and redraws the component.
28
+ * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
29
+ */
30
+ resize(): void;
31
+ /**
32
+ * @hidden
33
+ */
34
+ onResize(): void;
35
+ /**
36
+ * Exports the component as an image. The export operation is asynchronous and returns a promise.
37
+ *
38
+ * @param {ImageExportOptions} options - The parameters for the exported image.
39
+ * @returns {Promise<string>} - A promise that will be resolved 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 is asynchronous and returns a promise.
44
+ *
45
+ * @param options - The parameters for the exported file.
46
+ * @returns - A promise that will be resolved with an SVG document that is encoded as a Data URI.
47
+ */
48
+ exportSVG(options?: SVGExportOptions): Promise<string>;
49
+ /**
50
+ * Exports the component as a Drawing Group.
51
+ *
52
+ * @returns - The exported Group.
53
+ */
54
+ exportVisual(): Group;
55
+ protected abstract createInstance(element: any, options: any): any;
56
+ protected refresh(): void;
57
+ protected isDevMode(): boolean;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent, never, never, { "resizeRateLimit": { "alias": "resizeRateLimit"; "required": false; }; }, {}, never, never, true, never>;
60
+ }
61
+
62
+ /**
63
+ * Lists the dash line types.
64
+ */
65
+ type DashType = 'dash' | 'dashDot' | 'dot' | 'longDash' | 'longDashDot' | 'longDashDotDot' | 'solid';
66
+ /**
67
+ * Represents the appearance settings for border lines.
68
+ */
69
+ interface Border {
70
+ /**
71
+ * Sets the color of the border line. Accepts a valid CSS color string, including hex and rgb.
72
+ */
73
+ color?: string;
74
+ /**
75
+ * Sets the dash type of the border line.
76
+ */
77
+ dashType?: DashType;
78
+ /**
79
+ * Sets the width of the border line in pixels.
80
+ */
81
+ width?: number;
82
+ }
83
+ /**
84
+ * Represents the margin options for each side.
85
+ */
86
+ interface Margin {
87
+ /**
88
+ * Sets the top margin in pixels.
89
+ */
90
+ top?: number;
91
+ /**
92
+ * Sets the right margin in pixels.
93
+ */
94
+ right?: number;
95
+ /**
96
+ * Sets the bottom margin in pixels.
97
+ */
98
+ bottom?: number;
99
+ /**
100
+ * Sets the left margin in pixels.
101
+ */
102
+ left?: number;
103
+ }
104
+ /**
105
+ * Represents the padding options for each side.
106
+ */
107
+ interface Padding {
108
+ /**
109
+ * Sets the top padding in pixels.
110
+ */
111
+ top?: number;
112
+ /**
113
+ * Sets the right padding in pixels.
114
+ */
115
+ right?: number;
116
+ /**
117
+ * Sets the bottom padding in pixels.
118
+ */
119
+ bottom?: number;
120
+ /**
121
+ * Sets the left padding in pixels.
122
+ */
123
+ left?: number;
124
+ }
125
+ /**
126
+ * Sets the rendering mode of the component.
127
+ *
128
+ * The supported values are:
129
+ * * `"canvas"`&mdash;Renders the component as a Canvas element.
130
+ * * `"svg"`&mdash;Renders the component as an inline SVG document.
131
+ */
132
+ type RenderMode = 'svg' | 'canvas';
133
+
134
+ /**
135
+ * Lists the supported symbologies (encodings) for the Barcode component.
136
+ */
137
+ type BarcodeType = 'EAN8' | 'EAN13' | 'UPCE' | 'UPCA' | 'Code11' | 'Code39' | 'Code39Extended' | 'Code93' | 'Code93Extended' | 'Code128' | 'Code128A' | 'Code128B' | 'Code128C' | 'GS1-128' | 'MSImod10' | 'MSImod11' | 'MSImod1010' | 'MSImod1110' | 'POSTNET';
138
+ /**
139
+ * Represents the Barcode text label.
140
+ */
141
+ interface BarcodeText {
142
+ /**
143
+ * Sets the color of the text. Accepts any valid CSS color string, including hex and rgb.
144
+ *
145
+ * @default "black"
146
+ */
147
+ color?: string;
148
+ /**
149
+ * Sets the font of the text.
150
+ *
151
+ * @default "16px Consolas, Monaco, Sans Mono, monospace, sans-serif"
152
+ */
153
+ font?: string;
154
+ /**
155
+ * Sets the margin of the text. A numeric value sets all margins.
156
+ *
157
+ * @default 0
158
+ */
159
+ margin?: Margin | number;
160
+ /**
161
+ * Shows or hides the Barcode text label.
162
+ *
163
+ * If you set this property to `false`, the Barcode does not display the value as text below the barcode lines.
164
+ *
165
+ * @default true
166
+ */
167
+ visible?: boolean;
168
+ }
169
+ /**
170
+ * Represents the Barcode options.
171
+ */
172
+ interface BarcodeOptions {
173
+ /**
174
+ * Sets the background color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
175
+ *
176
+ * @default "white"
177
+ */
178
+ background?: string;
179
+ /**
180
+ * Sets the border of the Barcode.
181
+ */
182
+ border?: Border;
183
+ /**
184
+ * Shows the checksum digit next to the value in the text area.
185
+ *
186
+ * @default true
187
+ */
188
+ checksum?: boolean;
189
+ /**
190
+ * Sets the color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
191
+ *
192
+ * @default "black"
193
+ */
194
+ color?: string;
195
+ /**
196
+ * Sets the height of the Barcode in pixels.
197
+ *
198
+ * @default 100
199
+ */
200
+ height?: number;
201
+ /**
202
+ * Sets the padding of the Barcode. A numeric value sets all paddings.
203
+ *
204
+ * @default 0
205
+ */
206
+ padding?: Padding | number;
207
+ /**
208
+ * Sets the preferred rendering mode of the Barcode.
209
+ *
210
+ * @default "svg"
211
+ */
212
+ renderAs?: RenderMode;
213
+ /**
214
+ * Configures the Barcode text label.
215
+ */
216
+ text?: BarcodeText;
217
+ /**
218
+ * Sets the symbology (encoding) the Barcode uses.
219
+ *
220
+ * @default "Code39"
221
+ */
222
+ type: BarcodeType;
223
+ /**
224
+ * Sets the value of the Barcode.
225
+ */
226
+ value: number | string;
227
+ /**
228
+ * Sets the width of the Barcode in pixels.
229
+ *
230
+ * @default 300
231
+ */
232
+ width?: number;
233
+ }
234
+
235
+ /**
236
+ * Lists the QR Code encoding modes.
237
+ *
238
+ * The possible values are:
239
+ * `"ISO_8859_1"`&mdash;Supports all characters from the [ISO/IEC 8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) character set.
240
+ * `"UTF_8"`&mdash;Supports all [Unicode](https://en.wikipedia.org/wiki/List_of_Unicode_characters) characters.
241
+ */
242
+ type QRCodeEncoding = 'ISO_8859_1' | 'UTF_8';
243
+ /**
244
+ * Lists the QR Code error correction levels.
245
+ *
246
+ * * `"L"`&mdash;Approximately 7% of the codewords can be restored.
247
+ * * `"M"`&mdash;Approximately 15% of the codewords can be restored.
248
+ * * `"Q"`&mdash;Approximately 25% of the codewords can be restored.
249
+ * * `"H"`&mdash;Approximately 30% of the codewords can be restored.
250
+ */
251
+ type QRCodeErrorCorrection = 'L' | 'M' | 'Q' | 'H';
252
+ /**
253
+ * Provides the image overlay options for the QR Code.
254
+ */
255
+ interface QRCodeOverlay {
256
+ /**
257
+ * Sets the overlay height in pixels.
258
+ */
259
+ height?: number;
260
+ /**
261
+ * Sets the source image for the overlay.
262
+ *
263
+ * Required only when `type` is set to `'image'`.
264
+ */
265
+ imageUrl?: string;
266
+ /**
267
+ * Sets the overlay type.
268
+ *
269
+ * @default 'image'
270
+ */
271
+ type?: 'image' | 'swiss';
272
+ /**
273
+ * Sets the overlay width in pixels.
274
+ */
275
+ width?: number;
276
+ }
277
+ /**
278
+ * Provides the QR Code options.
279
+ */
280
+ interface QRCodeOptions {
281
+ /**
282
+ * Sets the background color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
283
+ *
284
+ * @default "white"
285
+ */
286
+ background?: string;
287
+ /**
288
+ * Sets the border of the QR Code.
289
+ */
290
+ border?: Border;
291
+ /**
292
+ * Sets the color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
293
+ *
294
+ * @default "black"
295
+ */
296
+ color?: string;
297
+ /**
298
+ * Sets the encoding mode used to encode the value.
299
+ *
300
+ * > **Important** The UTF-8 encoding is not included in the specifications and is not supported by all readers.
301
+ *
302
+ * @default "ISO_8859_1"
303
+ */
304
+ encoding?: QRCodeEncoding;
305
+ /**
306
+ * Sets the error correction level to use.
307
+ *
308
+ * @default "L"
309
+ */
310
+ errorCorrection?: QRCodeErrorCorrection;
311
+ /**
312
+ * Sets an optional image overlay that is placed over the QR Code.
313
+ *
314
+ * > **Note** Always test if the code reads correctly with the applied overlay.
315
+ * > 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"`.
316
+ */
317
+ overlay?: QRCodeOverlay;
318
+ /**
319
+ * Sets the padding of the QR Code. A numeric value sets all paddings.
320
+ *
321
+ * @default 0
322
+ */
323
+ padding?: Padding | number;
324
+ /**
325
+ * Sets the preferred rendering mode of the QR Code.
326
+ *
327
+ * @default "svg"
328
+ */
329
+ renderAs?: RenderMode;
330
+ /**
331
+ * Sets the size of a QR Code. Numeric values are treated as pixels.
332
+ *
333
+ * If you do not specify a size, the size is determined from the element width and height.
334
+ * If the element has width or height of zero, a default value of 200 pixels is used.
335
+ *
336
+ * @default "200px"
337
+ */
338
+ size?: number | string;
339
+ /**
340
+ * Sets the value of the QR Code.
341
+ */
342
+ value: number | string;
343
+ }
344
+
345
+ /**
346
+ * Represents the [Kendo UI Barcode component for Angular](https://www.telerik.com/kendo-angular-ui/components/barcodes/barcode).
347
+ *
348
+ * Use this component to display a barcode in your Angular application.
349
+ *
350
+ * @example
351
+ * ```typescript
352
+ * import { Component } from '@angular/core';
353
+ *
354
+ * @Component({
355
+ * selector: 'my-app',
356
+ * template: `
357
+ * <kendo-barcode type="EAN8" value="1234567">
358
+ * </kendo-barcode>
359
+ * `
360
+ * })
361
+ * export class AppComponent {
362
+ * }
363
+ * ```
364
+ */
365
+ declare class BarcodeComponent extends BaseComponent {
366
+ protected element: ElementRef;
367
+ protected renderer: Renderer2;
368
+ protected ngZone: NgZone;
369
+ /**
370
+ * Sets the background color of the Barcode. Accepts any valid CSS color string, such as hex or rgb.
371
+ *
372
+ * @default "white"
373
+ */
374
+ background?: string;
375
+ /**
376
+ * Configures the border of the Barcode.
377
+ */
378
+ border?: Border;
379
+ /**
380
+ * Shows the checksum digit next to the value in the text area when set to `true`.
381
+ *
382
+ * @default false
383
+ */
384
+ checksum?: boolean;
385
+ /**
386
+ * Sets the color of the Barcode. Accepts any valid CSS color string, such as hex or rgb.
387
+ *
388
+ * @default "black"
389
+ */
390
+ color?: string;
391
+ /**
392
+ * Sets the height of the Barcode in pixels.
393
+ *
394
+ * You can also set the Barcode dimensions using CSS.
395
+ */
396
+ height?: number;
397
+ /**
398
+ * Sets the padding of the Barcode. Use a number to set all paddings, or a `Padding` object for the individual sides.
399
+ *
400
+ * @default 0
401
+ */
402
+ padding?: Padding | number;
403
+ /**
404
+ * Sets the rendering mode of the Barcode.
405
+ *
406
+ * Use `"canvas"` to render as a Canvas element or `"svg"` to render as an inline SVG.
407
+ *
408
+ * @default "svg"
409
+ */
410
+ renderAs?: RenderMode;
411
+ /**
412
+ * Configures the Barcode text label.
413
+ */
414
+ text?: BarcodeText;
415
+ /**
416
+ * Sets the symbology (encoding) for the Barcode.
417
+ *
418
+ * @default "Code39"
419
+ */
420
+ type: BarcodeType;
421
+ /**
422
+ * Sets the value of the Barcode.
423
+ */
424
+ value: number | string;
425
+ /**
426
+ * Sets the width of the Barcode in pixels.
427
+ *
428
+ * You can also set the Barcode dimensions using CSS.
429
+ */
430
+ width?: number;
431
+ /**
432
+ * Limits how often the Barcode resizes automatically. Sets the maximum number of redraws per second when the container size changes.
433
+ * Set to `0` to disable automatic resizing.
434
+ *
435
+ * @default 10
436
+ */
437
+ resizeRateLimit: number;
438
+ protected get options(): BarcodeOptions$1;
439
+ constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
440
+ protected createInstance(element: any, options: any): Barcode;
441
+ protected onError(error: Error): void;
442
+ static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeComponent, never>;
443
+ static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeComponent, "kendo-barcode", ["kendoBarcode"], { "background": { "alias": "background"; "required": false; }; "border": { "alias": "border"; "required": false; }; "checksum": { "alias": "checksum"; "required": false; }; "color": { "alias": "color"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "renderAs": { "alias": "renderAs"; "required": false; }; "text": { "alias": "text"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; "width": { "alias": "width"; "required": false; }; "resizeRateLimit": { "alias": "resizeRateLimit"; "required": false; }; }, {}, never, never, true, never>;
444
+ }
445
+
446
+ /**
447
+ * Represents the [Kendo UI QR Code component for Angular](https://www.telerik.com/kendo-angular-ui/components/barcodes/qrcode).
448
+ *
449
+ * Shows a QR Code for the provided value.
450
+ *
451
+ * @example
452
+ * ```ts
453
+ * import { Component } from '@angular/core';
454
+ *
455
+ * @Component({
456
+ * selector: 'my-app',
457
+ * template: `
458
+ * <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui">
459
+ * </kendo-qrcode>
460
+ * `
461
+ * })
462
+ * export class AppComponent {
463
+ * }
464
+ * ```
465
+ */
466
+ declare class QRCodeComponent extends BaseComponent {
467
+ protected element: ElementRef;
468
+ protected renderer: Renderer2;
469
+ protected ngZone: NgZone;
470
+ /**
471
+ * Sets the background color of the QR Code. Accepts any valid CSS color string, such as hex or rgb.
472
+ *
473
+ * @default "white"
474
+ */
475
+ background?: string;
476
+ /**
477
+ * Sets the border of the QR Code.
478
+ */
479
+ border?: Border;
480
+ /**
481
+ * Sets the color of the QR Code. Accepts any valid CSS color string, such as hex or rgb.
482
+ *
483
+ * @default "black"
484
+ */
485
+ color?: string;
486
+ /**
487
+ * Sets the encoding mode for the value.
488
+ *
489
+ * > **Important** The UTF-8 encoding is not part of the specifications and some readers may not support it.
490
+ *
491
+ * @default "ISO_8859_1"
492
+ */
493
+ encoding?: QRCodeEncoding;
494
+ /**
495
+ * Sets the error correction level.
496
+ *
497
+ * @default "L"
498
+ */
499
+ errorCorrection?: QRCodeErrorCorrection;
500
+ /**
501
+ * Sets an optional image overlay to display over the QR Code.
502
+ *
503
+ * > **Note** Always test if the code scans correctly with the overlay. If needed, increase the `errorCorrection` level to `"M"` or `"H"`.
504
+ */
505
+ overlay?: QRCodeOverlay;
506
+ /**
507
+ * Sets the padding for the QR Code in pixels.
508
+ *
509
+ * @default 0
510
+ */
511
+ padding?: number;
512
+ /**
513
+ * Sets the rendering mode for the QR Code.
514
+ *
515
+ * @default "svg"
516
+ */
517
+ renderAs?: RenderMode;
518
+ /**
519
+ * Sets the size of the QR Code. Numeric values are in pixels.
520
+ *
521
+ * If no size is specified, the size will be determined from the element width and height.
522
+ * If the element has width or height of zero, a default value of 200 pixels will be used.
523
+ *
524
+ * @default "200px"
525
+ */
526
+ size?: number | string;
527
+ /**
528
+ * Sets the value to encode in the QR Code.
529
+ */
530
+ value: number | string;
531
+ /**
532
+ * Limits how often the QR Code resizes automatically. Sets the maximum redraws per second when the container size changes.
533
+ * Set to `0` to disable automatic resizing.
534
+ *
535
+ * @default 10
536
+ */
537
+ resizeRateLimit: number;
538
+ protected get options(): QRCodeOptions$1;
539
+ constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
540
+ protected createInstance(element: any, options: any): QRCode;
541
+ protected onError(error: Error): void;
542
+ static ɵfac: i0.ɵɵFactoryDeclaration<QRCodeComponent, never>;
543
+ static ɵcmp: i0.ɵɵComponentDeclaration<QRCodeComponent, "kendo-qrcode", ["kendoQRCode"], { "background": { "alias": "background"; "required": false; }; "border": { "alias": "border"; "required": false; }; "color": { "alias": "color"; "required": false; }; "encoding": { "alias": "encoding"; "required": false; }; "errorCorrection": { "alias": "errorCorrection"; "required": false; }; "overlay": { "alias": "overlay"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "renderAs": { "alias": "renderAs"; "required": false; }; "size": { "alias": "size"; "required": false; }; "value": { "alias": "value"; "required": false; }; "resizeRateLimit": { "alias": "resizeRateLimit"; "required": false; }; }, {}, never, never, true, never>;
544
+ }
545
+
546
+ /**
547
+ * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the Barcode component.
548
+ *
549
+ * Use this module to add Barcode support to your application.
550
+ *
551
+ * @example
552
+ *
553
+ * ```ts
554
+ * // Import the BarcodeModule.
555
+ * import { BarcodeModule } from '@progress/kendo-angular-barcodes';
556
+ *
557
+ * import { NgModule } from '@angular/core';
558
+ * import { BrowserModule } from '@angular/platform-browser';
559
+ * import { AppComponent } from './app.component';
560
+ *
561
+ * @NgModule({
562
+ * declarations: [AppComponent],
563
+ * imports: [BrowserModule, BarcodeModule],
564
+ * bootstrap: [AppComponent]
565
+ * })
566
+ * export class AppModule {}
567
+ * ```
568
+ */
569
+ declare class BarcodeModule {
570
+ static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeModule, never>;
571
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BarcodeModule, never, [typeof BarcodeComponent], [typeof BarcodeComponent]>;
572
+ static ɵinj: i0.ɵɵInjectorDeclaration<BarcodeModule>;
573
+ }
574
+
575
+ /**
576
+ * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the QR Code component.
577
+ *
578
+ * Use this module to add QR Code support to your application.
579
+ *
580
+ * @example
581
+ * ```ts
582
+ * // Import the QRCodeModule
583
+ * import { QRCodeModule } from '@progress/kendo-angular-barcodes';
584
+ *
585
+ * import { NgModule } from '@angular/core';
586
+ * import { BrowserModule } from '@angular/platform-browser';
587
+ * import { AppComponent } from './app.component';
588
+ *
589
+ * @NgModule({
590
+ * declarations: [AppComponent],
591
+ * imports: [BrowserModule, QRCodeModule],
592
+ * bootstrap: [AppComponent]
593
+ * })
594
+ * export class AppModule {}
595
+ * ```
596
+ */
597
+ declare class QRCodeModule {
598
+ static ɵfac: i0.ɵɵFactoryDeclaration<QRCodeModule, never>;
599
+ static ɵmod: i0.ɵɵNgModuleDeclaration<QRCodeModule, never, [typeof QRCodeComponent], [typeof QRCodeComponent]>;
600
+ static ɵinj: i0.ɵɵInjectorDeclaration<QRCodeModule>;
601
+ }
602
+
603
+ /**
604
+ * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the Barcode and QR Code components.
605
+ *
606
+ * Use this module to add Barcode and QR Code features to your application.
607
+ *
608
+ * @example
609
+ *
610
+ * ```ts
611
+ * // Import the Barcodes module.
612
+ * import { BarcodesModule } from '@progress/kendo-angular-barcodes';
613
+ *
614
+ * import { NgModule } from '@angular/core';
615
+ * import { BrowserModule } from '@angular/platform-browser';
616
+ * import { AppComponent } from './app.component';
617
+ *
618
+ * @NgModule({
619
+ * declarations: [AppComponent],
620
+ * imports: [BrowserModule, BarcodesModule],
621
+ * bootstrap: [AppComponent]
622
+ * })
623
+ * export class AppModule {}
624
+ * ```
625
+ */
626
+ declare class BarcodesModule {
627
+ static ɵfac: i0.ɵɵFactoryDeclaration<BarcodesModule, never>;
628
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BarcodesModule, never, [typeof BarcodeComponent, typeof QRCodeComponent], [typeof BarcodeComponent, typeof QRCodeComponent]>;
629
+ static ɵinj: i0.ɵɵInjectorDeclaration<BarcodesModule>;
630
+ }
631
+
632
+ /**
633
+ * Creates a validator for a specific Barcode type.
634
+ *
635
+ * Use this function to validate a Barcode value for a given `BarcodeType`.
636
+ *
637
+ * @param type Specifies the type of the Barcode.
638
+ * @param size Specifies the size of the barcode, excluding the text label, padding, and border. This parameter is optional.
639
+ * @returns Returns a validator function. The function returns an error map with the `barcode` property if validation fails. Otherwise, it returns `null` if valid.
640
+ *
641
+ * @example
642
+ * ```typescript
643
+ * const control = new FormControl('1234', createBarcodeValidator('EAN8'));
644
+ * console.log(control.errors);
645
+ * // {
646
+ * // barcode: {
647
+ * // message: 'The value of the "EAN13" encoding should be 12 symbols',
648
+ * // value: '1234',
649
+ * // type: 'EAN13'
650
+ * // }
651
+ * // }
652
+ * ```
653
+ */
654
+ declare const createBarcodeValidator: (type: BarcodeType, size?: geometry.Size) => ValidatorFn;
655
+
656
+ /**
657
+ * Creates a value validator for a specific QR Code encoding.
658
+ *
659
+ * @param {QRCodeEncoding} encoding Sets the QR Code encoding. Defaults to `ISO_8859_1`.
660
+ * @returns {ValidatorFn} Returns a validator function. The function returns an error map with the `qrcode` property if the value is invalid. Otherwise, it returns `null`.
661
+ *
662
+ * @example
663
+ * ```ts-no-run
664
+ * const control = new FormControl('Фоо', createQRCodeValidator());
665
+ * console.log(control.errors);
666
+ *
667
+ * // {
668
+ * // qrcode: {
669
+ * // message: 'Unsupported character in QR Code: "Ф".',
670
+ * // value: '1234',
671
+ * // type: 'EAN13'
672
+ * // }
673
+ * // }
674
+ * ```
675
+ */
676
+ declare const createQRCodeValidator: (encoding?: QRCodeEncoding) => ValidatorFn;
677
+
678
+ /**
679
+ * Use this utility array to access all Barcode related components and directives in a standalone Angular component.
680
+ */
681
+ declare const KENDO_BARCODE: readonly [typeof BarcodeComponent];
682
+ /**
683
+ * Use this utility array to access all QRCode related components and directives in a standalone Angular component.
684
+ */
685
+ declare const KENDO_QRCODE: readonly [typeof QRCodeComponent];
686
+ /**
687
+ * Use this utility array to access all `@progress/kendo-angular-barcodes` related components and directives in a standalone Angular component.
688
+ */
689
+ declare const KENDO_BARCODES: readonly [typeof BarcodeComponent, typeof QRCodeComponent];
690
+
691
+ export { BarcodeComponent, BarcodeModule, BarcodesModule, KENDO_BARCODE, KENDO_BARCODES, KENDO_QRCODE, QRCodeComponent, QRCodeModule, createBarcodeValidator, createQRCodeValidator };
692
+ export type { BarcodeOptions, BarcodeText, BarcodeType, Border, DashType, Margin, Padding, QRCodeEncoding, QRCodeErrorCorrection, QRCodeOptions, QRCodeOverlay, RenderMode };