@progress/kendo-angular-barcodes 1.0.0-next.202203230834 → 2.0.0-dev.202204131407

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.
@@ -0,0 +1,29 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ValidatorFn } from '@angular/forms';
6
+ import { geometry } from '@progress/kendo-drawing';
7
+ import { BarcodeType } from './chart-types';
8
+ /**
9
+ * Creates a value validator for a particular Barcode type.
10
+ *
11
+ * @param {BarcodeType} type The type of the Barcode.
12
+ * @param {Size} size The size of the barcode, excluding the text label, padding and border. Optional.
13
+ * @returns {ValidatorFn} A validator function that returns an error map with the `barcode` property if the validation check fails, otherwise `null`.
14
+ *
15
+ * @example
16
+ * ```ts-no-run
17
+ * const control = new FormControl('1234', createBarcodeValidator('EAN8'));
18
+ * console.log(control.errors);
19
+ *
20
+ * // {
21
+ * // barcode: {
22
+ * // message: 'The value of the "EAN13" encoding should be 12 symbols',
23
+ * // value: '1234',
24
+ * // type: 'EAN13'
25
+ * // }
26
+ * // }
27
+ * ```
28
+ */
29
+ export declare const createBarcodeValidator: (type: BarcodeType, size?: geometry.Size) => ValidatorFn;
@@ -0,0 +1,315 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ElementRef, NgZone, Renderer2 } from '@angular/core';
6
+ import { Barcode, BarcodeOptions } from '@progress/kendo-charts';
7
+ import { BaseComponent } from './base.component';
8
+ import { BarcodeText, BarcodeType, Border, Padding, RenderMode } from './chart-types';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * Represents the Kendo UI Barcode component for Angular.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * import { Component } from '@angular/core';
16
+ *
17
+ * _@Component({
18
+ * selector: 'my-app',
19
+ * template: `
20
+ * <kendo-barcode type="EAN8" value="1234567">
21
+ * </kendo-barcode>
22
+ * `
23
+ * })
24
+ * export class AppComponent {
25
+ * }
26
+ * ```
27
+ */
28
+ export declare class BarcodeComponent extends BaseComponent {
29
+ protected element: ElementRef;
30
+ protected renderer: Renderer2;
31
+ protected ngZone: NgZone;
32
+ /**
33
+ * The background color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
34
+ *
35
+ * @default "white"
36
+ *
37
+ * @example
38
+ * ```ts-preview
39
+ * import { Component } from '@angular/core';
40
+ *
41
+ * _@Component({
42
+ * selector: 'my-app',
43
+ * template: `
44
+ * <kendo-barcode type="EAN8" value="1234567"
45
+ * background="#fc0">
46
+ * </kendo-barcode>
47
+ * `
48
+ * })
49
+ * export class AppComponent {
50
+ * }
51
+ * ```
52
+ */
53
+ background?: string;
54
+ /**
55
+ * The border of the Barcode.
56
+ *
57
+ * @example
58
+ * ```ts-preview
59
+ * import { Component } from '@angular/core';
60
+ * import { Border } from '@progress/kendo-angular-barcodes';
61
+ *
62
+ * _@Component({
63
+ * selector: 'my-app',
64
+ * template: `
65
+ * <kendo-barcode type="EAN8" value="1234567"
66
+ * [border]="barcodeBorder" [padding]="5">
67
+ * </kendo-barcode>
68
+ * `
69
+ * })
70
+ * export class AppComponent {
71
+ * barcodeBorder: Border = {
72
+ * color: '#fc0',
73
+ * width: 2
74
+ * };
75
+ * }
76
+ * ```
77
+ */
78
+ border?: Border;
79
+ /**
80
+ * If set to `true`, the Barcode will display the checksum digit next to the value in the text area.
81
+ *
82
+ * @default false
83
+ *
84
+ * @example
85
+ * ```ts-preview
86
+ * _@Component({
87
+ * selector: 'my-app',
88
+ * template: `
89
+ * <kendo-barcode type="EAN8" value="1234567"
90
+ * [checksum]="true">
91
+ * </kendo-barcode>
92
+ * `
93
+ * })
94
+ * export class AppComponent {
95
+ * }
96
+ * ```
97
+ */
98
+ checksum?: boolean;
99
+ /**
100
+ * The color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
101
+ *
102
+ * @default "black"
103
+ *
104
+ * @example
105
+ * ```ts-preview
106
+ * _@Component({
107
+ * selector: 'my-app',
108
+ * template: `
109
+ * <kendo-barcode type="EAN8" value="1234567"
110
+ * color="#fc0">
111
+ * </kendo-barcode>
112
+ * `
113
+ * })
114
+ * export class AppComponent {
115
+ * }
116
+ * ```
117
+ */
118
+ color?: string;
119
+ /**
120
+ * The height of the Barcode in pixels.
121
+ *
122
+ * The Barcode dimensions can also be set through regular CSS styling.
123
+ *
124
+ * @example
125
+ * ```ts-preview
126
+ * _@Component({
127
+ * selector: 'my-app',
128
+ * template: `
129
+ * <kendo-barcode type="EAN8" value="1234567"
130
+ * [width]="200" [height]="100">
131
+ * </kendo-barcode>
132
+ *
133
+ * <kendo-barcode type="EAN8" value="1234567"
134
+ * style="width: 200px; height: 100px;">
135
+ * </kendo-barcode>
136
+ * `
137
+ * })
138
+ * export class AppComponent {
139
+ * }
140
+ * ```
141
+ */
142
+ height?: number;
143
+ /**
144
+ * The padding of the Barcode. A numeric value sets all paddings.
145
+ *
146
+ * @default 0
147
+ *
148
+ * @example
149
+ * ```ts-preview
150
+ * import { Component } from '@angular/core';
151
+ * import { Padding } from '@progress/kendo-angular-barcodes';
152
+ *
153
+ * _@Component({
154
+ * selector: 'my-app',
155
+ * template: `
156
+ * <kendo-barcode type="EAN8" value="1234567"
157
+ * [padding]="5" background="#fc0">
158
+ * </kendo-barcode>
159
+ *
160
+ * <kendo-barcode type="EAN8" value="1234567"
161
+ * [padding]="barcodePadding" background="#cf0">
162
+ * </kendo-barcode>
163
+ * `
164
+ * })
165
+ * export class AppComponent {
166
+ * barcodePadding: Padding = {
167
+ * top: 20,
168
+ * bottom: 10,
169
+ * left: 5,
170
+ * right: 5
171
+ * };
172
+ * }
173
+ * ```
174
+ */
175
+ padding?: Padding | number;
176
+ /**
177
+ * Sets the preferred rendering mode of the Barcode.
178
+ *
179
+ * The supported values are:
180
+ * * `"canvas"`&mdash;Renders the component as a Canvas element.
181
+ * * `"svg"`&mdash;Renders the component as an inline SVG document.
182
+ *
183
+ * @default "svg"
184
+ *
185
+ * @example
186
+ * ```ts-preview
187
+ * _@Component({
188
+ * selector: 'my-app',
189
+ * template: `
190
+ * <kendo-barcode type="EAN8" value="1234567"
191
+ * renderAs="canvas">
192
+ * </kendo-barcode>
193
+ * `
194
+ * })
195
+ * export class AppComponent {
196
+ * }
197
+ * ```
198
+ */
199
+ renderAs?: RenderMode;
200
+ /**
201
+ * The Barcode text label configuration.
202
+ *
203
+ * @example
204
+ * ```ts-preview
205
+ * import { Component } from '@angular/core';
206
+ * import { BarcodeText } from '@progress/kendo-angular-barcodes';
207
+ *
208
+ * _@Component({
209
+ * selector: 'my-app',
210
+ * template: `
211
+ * <kendo-barcode type="EAN8" value="1234567"
212
+ * [text]="barcodeText">
213
+ * </kendo-barcode>
214
+ * `
215
+ * })
216
+ * export class AppComponent {
217
+ * barcodeText: BarcodeText = {
218
+ * color: '#fc0',
219
+ * font: '20px monospace'
220
+ * };
221
+ * }
222
+ * ```
223
+ */
224
+ text?: BarcodeText;
225
+ /**
226
+ * The symbology (encoding) the Barcode will use.
227
+ *
228
+ * @default "Code39"
229
+ *
230
+ * @example
231
+ * ```ts-preview
232
+ * import { Component } from '@angular/core';
233
+ *
234
+ * _@Component({
235
+ * selector: 'my-app',
236
+ * template: `
237
+ * <kendo-barcode type="EAN13" value="123456789987">
238
+ * </kendo-barcode>
239
+ * `
240
+ * })
241
+ * export class AppComponent {
242
+ * }
243
+ * ```
244
+ */
245
+ type: BarcodeType;
246
+ /**
247
+ * The value of the Barcode.
248
+ *
249
+ * @example
250
+ * ```ts-preview
251
+ * import { Component } from '@angular/core';
252
+ *
253
+ * _@Component({
254
+ * selector: 'my-app',
255
+ * template: `
256
+ * <kendo-barcode type="EAN13" value="123456789987">
257
+ * </kendo-barcode>
258
+ * `
259
+ * })
260
+ * export class AppComponent {
261
+ * }
262
+ * ```
263
+ */
264
+ value: number | string;
265
+ /**
266
+ * The width of the Barcode in pixels.
267
+ *
268
+ * The Barcode dimensions can also be set through regular CSS styling.
269
+ *
270
+ * @example
271
+ * ```ts-preview
272
+ * _@Component({
273
+ * selector: 'my-app',
274
+ * template: `
275
+ * <kendo-barcode type="EAN8" value="1234567"
276
+ * [width]="200" [height]="100">
277
+ * </kendo-barcode>
278
+ *
279
+ * <kendo-barcode type="EAN8" value="1234567"
280
+ * style="width: 200px; height: 100px;">
281
+ * </kendo-barcode>
282
+ * `
283
+ * })
284
+ * export class AppComponent {
285
+ * }
286
+ * ```
287
+ */
288
+ width?: number;
289
+ /**
290
+ * Limits the automatic resizing of the Barcode. Sets the maximum number of times per second
291
+ * that the component redraws its content when the size of its container changes.
292
+ * Defaults to `10`. To disable the automatic resizing, set it to `0`.
293
+ *
294
+ * @example
295
+ * ```ts
296
+ * _@Component({
297
+ * selector: 'my-app',
298
+ * template: `
299
+ * <kendo-barcode type="EAN8" [value]="1234567"
300
+ * [resizeRateLimit]="2">
301
+ * </kendo-barcode>
302
+ * `
303
+ * })
304
+ * export class AppComponent {
305
+ * }
306
+ * ```
307
+ */
308
+ resizeRateLimit: number;
309
+ protected get options(): BarcodeOptions;
310
+ constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
311
+ protected createInstance(element: any, options: any): Barcode;
312
+ protected onError(error: Error): void;
313
+ static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeComponent, never>;
314
+ static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeComponent, "kendo-barcode", ["kendoBarcode"], { "background": "background"; "border": "border"; "checksum": "checksum"; "color": "color"; "height": "height"; "padding": "padding"; "renderAs": "renderAs"; "text": "text"; "type": "type"; "value": "value"; "width": "width"; "resizeRateLimit": "resizeRateLimit"; }, {}, never, never>;
315
+ }
@@ -0,0 +1,43 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "./barcode.component";
7
+ import * as i2 from "@progress/kendo-angular-common";
8
+ /**
9
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
10
+ * definition for the Barcode component.
11
+ *
12
+ * @example
13
+ *
14
+ * ```ts-no-run
15
+ * // Import the Barcode module
16
+ * import { BarcodeModule } from '@progress/kendo-angular-barcodes';
17
+ *
18
+ * // The browser platform with a compiler
19
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
20
+ *
21
+ * import { NgModule } from '@angular/core';
22
+ *
23
+ * // Import the app component
24
+ * import { AppComponent } from './app.component';
25
+ *
26
+ * // Define the app module
27
+ * _@NgModule({
28
+ * declarations: [AppComponent], // declare app component
29
+ * imports: [BrowserModule, BarcodeModule], // import Barcode module
30
+ * bootstrap: [AppComponent]
31
+ * })
32
+ * export class AppModule {}
33
+ *
34
+ * // Compile and launch the module
35
+ * platformBrowserDynamic().bootstrapModule(AppModule);
36
+ *
37
+ * ```
38
+ */
39
+ export declare class BarcodeModule {
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeModule, never>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BarcodeModule, [typeof i1.BarcodeComponent], [typeof i2.ResizeSensorModule], [typeof i1.BarcodeComponent]>;
42
+ static ɵinj: i0.ɵɵInjectorDeclaration<BarcodeModule>;
43
+ }
@@ -0,0 +1,43 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "./barcode.module";
7
+ import * as i2 from "./qrcode.module";
8
+ /**
9
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
10
+ * definition for the Barcode and QR Code components.
11
+ *
12
+ * @example
13
+ *
14
+ * ```ts-no-run
15
+ * // Import the Barcodes module
16
+ * import { BarcodesModule } from '@progress/kendo-angular-barcodes';
17
+ *
18
+ * // The browser platform with a compiler
19
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
20
+ *
21
+ * import { NgModule } from '@angular/core';
22
+ *
23
+ * // Import the app component
24
+ * import { AppComponent } from './app.component';
25
+ *
26
+ * // Define the app module
27
+ * _@NgModule({
28
+ * declarations: [AppComponent], // declare app component
29
+ * imports: [BrowserModule, BarcodesModule], // import Barcodes module
30
+ * bootstrap: [AppComponent]
31
+ * })
32
+ * export class AppModule {}
33
+ *
34
+ * // Compile and launch the module
35
+ * platformBrowserDynamic().bootstrapModule(AppModule);
36
+ *
37
+ * ```
38
+ */
39
+ export declare class BarcodesModule {
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<BarcodesModule, never>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BarcodesModule, never, never, [typeof i1.BarcodeModule, typeof i2.QRCodeModule]>;
42
+ static ɵinj: i0.ɵɵInjectorDeclaration<BarcodesModule>;
43
+ }
@@ -0,0 +1,58 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { AfterViewInit, ElementRef, NgZone, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
6
+ import { Group, ImageExportOptions, SVGExportOptions } from '@progress/kendo-drawing';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare abstract class BaseComponent implements OnChanges, AfterViewInit {
12
+ protected element: ElementRef;
13
+ protected renderer: Renderer2;
14
+ protected ngZone: NgZone;
15
+ resizeRateLimit: number;
16
+ surfaceElement: ElementRef;
17
+ protected instance: any;
18
+ protected abstract get options(): any;
19
+ protected get autoResize(): boolean;
20
+ protected get canRender(): boolean;
21
+ constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
22
+ ngAfterViewInit(): void;
23
+ ngOnChanges(changes: SimpleChanges): void;
24
+ /**
25
+ * Detects the size of the container and redraws the component.
26
+ * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
27
+ */
28
+ resize(): void;
29
+ /**
30
+ * @hidden
31
+ */
32
+ onResize(): void;
33
+ /**
34
+ * Exports the component as an image. The export operation is asynchronous and returns a promise.
35
+ *
36
+ * @param {ImageExportOptions} options - The parameters for the exported image.
37
+ * @returns {Promise<string>} - A promise that will be resolved with a PNG image encoded as a Data URI.
38
+ */
39
+ exportImage(options?: ImageExportOptions): Promise<string>;
40
+ /**
41
+ * Exports the component as an SVG document. The export operation is asynchronous and returns a promise.
42
+ *
43
+ * @param options - The parameters for the exported file.
44
+ * @returns - A promise that will be resolved with an SVG document that is encoded as a Data URI.
45
+ */
46
+ exportSVG(options?: SVGExportOptions): Promise<string>;
47
+ /**
48
+ * Exports the component as a Drawing Group.
49
+ *
50
+ * @returns - The exported Group.
51
+ */
52
+ exportVisual(): Group;
53
+ protected abstract createInstance(element: any, options: any): any;
54
+ protected refresh(): void;
55
+ protected isDevMode(): boolean;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent, never, never, { "resizeRateLimit": "resizeRateLimit"; }, {}, never>;
58
+ }
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 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
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-charts"),require("@progress/kendo-angular-common"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define("KendoAngularBarcodes",["exports","@angular/core","@progress/kendo-charts","@progress/kendo-angular-common","@progress/kendo-drawing","@progress/kendo-licensing"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularBarcodes={},e.ng.core,e.KendoCharts,e.KendoAngularCommon,e.KendoDrawing,e.KendoLicensing)}(this,function(e,t,o,r,n,i){"use strict";function s(r){if(r&&r.__esModule)return r;var n=Object.create(null);return r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),n.default=r,Object.freeze(n)}var a=s(t),c=s(r),p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Object.create;Object.create;var d={name:"@progress/kendo-angular-barcodes",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1648024388,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},l=(Object.defineProperty(g.prototype,"autoResize",{get:function(){return 0<this.resizeRateLimit},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"canRender",{get:function(){return r.isDocumentAvailable()&&Boolean(this.element)},enumerable:!1,configurable:!0}),g.prototype.ngAfterViewInit=function(){this.refresh()},g.prototype.ngOnChanges=function(e){e.renderAs&&this.instance&&(this.instance.destroy(),this.instance=null),this.refresh()},g.prototype.resize=function(){this.instance&&this.instance.redraw()},g.prototype.onResize=function(){this.autoResize&&this.resize()},g.prototype.exportImage=function(e){return void 0===e&&(e={}),n.exportImage(this.exportVisual(),e)},g.prototype.exportSVG=function(e){return void 0===e&&(e={}),n.exportSVG(this.exportVisual(),e)},g.prototype.exportVisual=function(){return this.instance.exportVisual()},g.prototype.refresh=function(){var e;this.canRender&&(this.instance?this.instance.setOptions(this.options):(e=this.element.nativeElement,this.instance=this.createInstance(e,this.options)))},g.prototype.isDevMode=function(){return t.isDevMode()},g);function g(e,t,r){this.element=e,this.renderer=t,this.ngZone=r,this.resizeRateLimit=10,i.validatePackage(d)}l.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,deps:[{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),l.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:l,inputs:{resizeRateLimit:"resizeRateLimit"},viewQueries:[{propertyName:"surfaceElement",first:!0,predicate:["surface"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,decorators:[{type:t.Directive}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{resizeRateLimit:[{type:t.Input}],surfaceElement:[{type:t.ViewChild,args:["surface",{static:!0}]}]}});u(h,m=l),Object.defineProperty(h.prototype,"options",{get:function(){return{renderAs:this.renderAs,background:this.background,border:this.border,checksum:this.checksum,color:this.color,height:this.height,padding:this.padding,text:this.text,type:this.type,value:this.value,width:this.width}},enumerable:!1,configurable:!0}),h.prototype.createInstance=function(e,t){return new o.Barcode(e,t,this.onError.bind(this))},h.prototype.onError=function(e){if(e.name=d.productName+" Barcode",this.isDevMode())throw e;console.warn(e)};var m,y=h;function h(e,t,r){var n=m.call(this,e,t,r)||this;return n.element=e,n.renderer=t,n.ngZone=r,n.resizeRateLimit=10,n}y.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,deps:[{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),y.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:y,selector:"kendo-barcode",inputs:{background:"background",border:"border",checksum:"checksum",color:"color",height:"height",padding:"padding",renderAs:"renderAs",text:"text",type:"type",value:"value",width:"width",resizeRateLimit:"resizeRateLimit"},exportAs:["kendoBarcode"],usesInheritance:!0,ngImport:a,template:'\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n ',isInline:!0,components:[{type:c.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,decorators:[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,exportAs:"kendoBarcode",selector:"kendo-barcode",template:'\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{background:[{type:t.Input}],border:[{type:t.Input}],checksum:[{type:t.Input}],color:[{type:t.Input}],height:[{type:t.Input}],padding:[{type:t.Input}],renderAs:[{type:t.Input}],text:[{type:t.Input}],type:[{type:t.Input}],value:[{type:t.Input}],width:[{type:t.Input}],resizeRateLimit:[{type:t.Input}]}});u(v,f=l),Object.defineProperty(v.prototype,"options",{get:function(){return{background:this.background||"#fff",border:this.border,color:this.color||"#000",encoding:this.encoding,errorCorrection:this.errorCorrection||"L",overlay:this.overlay||{},padding:this.padding,renderAs:this.renderAs,size:this.size,value:this.value}},enumerable:!1,configurable:!0}),v.prototype.createInstance=function(e,t){return new o.QRCode(e,t,this.onError.bind(this))},v.prototype.onError=function(e){if(e.name=d.productName+" QRCode",this.isDevMode())throw e;console.warn(e)};var f,l=v;function v(e,t,r){var n=f.call(this,e,t,r)||this;return n.element=e,n.renderer=t,n.ngZone=r,n.resizeRateLimit=10,n}l.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,deps:[{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),l.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:l,selector:"kendo-qrcode",inputs:{background:"background",border:"border",color:"color",encoding:"encoding",errorCorrection:"errorCorrection",overlay:"overlay",padding:"padding",renderAs:"renderAs",size:"size",value:"value",resizeRateLimit:"resizeRateLimit"},exportAs:["kendoQRCode"],usesInheritance:!0,ngImport:a,template:'\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n ',isInline:!0,components:[{type:c.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,decorators:[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,selector:"kendo-qrcode",exportAs:"kendoQRCode",template:'\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{background:[{type:t.Input}],border:[{type:t.Input}],color:[{type:t.Input}],encoding:[{type:t.Input}],errorCorrection:[{type:t.Input}],overlay:[{type:t.Input}],padding:[{type:t.Input}],renderAs:[{type:t.Input}],size:[{type:t.Input}],value:[{type:t.Input}],resizeRateLimit:[{type:t.Input}]}});var c=function(){},I=(c.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,deps:[],target:a.ɵɵFactoryTarget.NgModule}),c.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,declarations:[y],imports:[r.ResizeSensorModule],exports:[y]}),c.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,imports:[[r.ResizeSensorModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,decorators:[{type:t.NgModule,args:[{declarations:[y],imports:[r.ResizeSensorModule],exports:[y]}]}]}),function(){}),k=(I.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,deps:[],target:a.ɵɵFactoryTarget.NgModule}),I.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,declarations:[l],imports:[r.ResizeSensorModule],exports:[l]}),I.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,imports:[[r.ResizeSensorModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,decorators:[{type:t.NgModule,args:[{declarations:[l],imports:[r.ResizeSensorModule],exports:[l]}]}]}),function(){});k.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,deps:[],target:a.ɵɵFactoryTarget.NgModule}),k.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,exports:[c,I]}),k.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,imports:[c,I]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,decorators:[{type:t.NgModule,args:[{exports:[c,I]}]}]});e.BarcodeComponent=y,e.BarcodeModule=c,e.BarcodesModule=k,e.QRCodeComponent=l,e.QRCodeModule=I,e.createBarcodeValidator=function(r,e){var n=o.barcodeValidator(r,e);return function(e){if(null==e.value||""===e.value)return null;var t=n(e.value);return!0===t.valid?null:{barcode:{message:t.error.message,value:e.value,type:r}}}},e.createQRCodeValidator=function(r){void 0===r&&(r="ISO_8859_1");var n=o.qrcodeValidator(r);return function(e){if(!e.value)return null;var t=n(e.value);return!0===t.valid?null:{qrcode:{message:t.error.message,value:e.value,encoding:r}}}},Object.defineProperty(e,"__esModule",{value:!0})});
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-charts"),require("@progress/kendo-angular-common"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define("KendoAngularBarcodes",["exports","@angular/core","@progress/kendo-charts","@progress/kendo-angular-common","@progress/kendo-drawing","@progress/kendo-licensing"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularBarcodes={},e.ng.core,e.KendoCharts,e.KendoAngularCommon,e.KendoDrawing,e.KendoLicensing)}(this,function(e,t,o,r,n,i){"use strict";function s(r){if(r&&r.__esModule)return r;var n=Object.create(null);return r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),n.default=r,Object.freeze(n)}var a=s(t),c=s(r),p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Object.create;Object.create;var d={name:"@progress/kendo-angular-barcodes",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1649858834,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},l=(Object.defineProperty(g.prototype,"autoResize",{get:function(){return 0<this.resizeRateLimit},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"canRender",{get:function(){return r.isDocumentAvailable()&&Boolean(this.element)},enumerable:!1,configurable:!0}),g.prototype.ngAfterViewInit=function(){this.refresh()},g.prototype.ngOnChanges=function(e){e.renderAs&&this.instance&&(this.instance.destroy(),this.instance=null),this.refresh()},g.prototype.resize=function(){this.instance&&this.instance.redraw()},g.prototype.onResize=function(){this.autoResize&&this.resize()},g.prototype.exportImage=function(e){return void 0===e&&(e={}),n.exportImage(this.exportVisual(),e)},g.prototype.exportSVG=function(e){return void 0===e&&(e={}),n.exportSVG(this.exportVisual(),e)},g.prototype.exportVisual=function(){return this.instance.exportVisual()},g.prototype.refresh=function(){var e;this.canRender&&(this.instance?this.instance.setOptions(this.options):(e=this.element.nativeElement,this.instance=this.createInstance(e,this.options)))},g.prototype.isDevMode=function(){return t.isDevMode()},g);function g(e,t,r){this.element=e,this.renderer=t,this.ngZone=r,this.resizeRateLimit=10,i.validatePackage(d)}l.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,deps:[{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),l.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:l,inputs:{resizeRateLimit:"resizeRateLimit"},viewQueries:[{propertyName:"surfaceElement",first:!0,predicate:["surface"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,decorators:[{type:t.Directive}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{resizeRateLimit:[{type:t.Input}],surfaceElement:[{type:t.ViewChild,args:["surface",{static:!0}]}]}});u(h,m=l),Object.defineProperty(h.prototype,"options",{get:function(){return{renderAs:this.renderAs,background:this.background,border:this.border,checksum:this.checksum,color:this.color,height:this.height,padding:this.padding,text:this.text,type:this.type,value:this.value,width:this.width}},enumerable:!1,configurable:!0}),h.prototype.createInstance=function(e,t){return new o.Barcode(e,t,this.onError.bind(this))},h.prototype.onError=function(e){if(e.name=d.productName+" Barcode",this.isDevMode())throw e;console.warn(e)};var m,y=h;function h(e,t,r){var n=m.call(this,e,t,r)||this;return n.element=e,n.renderer=t,n.ngZone=r,n.resizeRateLimit=10,n}y.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,deps:[{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),y.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:y,selector:"kendo-barcode",inputs:{background:"background",border:"border",checksum:"checksum",color:"color",height:"height",padding:"padding",renderAs:"renderAs",text:"text",type:"type",value:"value",width:"width",resizeRateLimit:"resizeRateLimit"},exportAs:["kendoBarcode"],usesInheritance:!0,ngImport:a,template:'\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n ',isInline:!0,components:[{type:c.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,decorators:[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,exportAs:"kendoBarcode",selector:"kendo-barcode",template:'\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{background:[{type:t.Input}],border:[{type:t.Input}],checksum:[{type:t.Input}],color:[{type:t.Input}],height:[{type:t.Input}],padding:[{type:t.Input}],renderAs:[{type:t.Input}],text:[{type:t.Input}],type:[{type:t.Input}],value:[{type:t.Input}],width:[{type:t.Input}],resizeRateLimit:[{type:t.Input}]}});u(v,f=l),Object.defineProperty(v.prototype,"options",{get:function(){return{background:this.background||"#fff",border:this.border,color:this.color||"#000",encoding:this.encoding,errorCorrection:this.errorCorrection||"L",overlay:this.overlay||{},padding:this.padding,renderAs:this.renderAs,size:this.size,value:this.value}},enumerable:!1,configurable:!0}),v.prototype.createInstance=function(e,t){return new o.QRCode(e,t,this.onError.bind(this))},v.prototype.onError=function(e){if(e.name=d.productName+" QRCode",this.isDevMode())throw e;console.warn(e)};var f,l=v;function v(e,t,r){var n=f.call(this,e,t,r)||this;return n.element=e,n.renderer=t,n.ngZone=r,n.resizeRateLimit=10,n}l.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,deps:[{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),l.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:l,selector:"kendo-qrcode",inputs:{background:"background",border:"border",color:"color",encoding:"encoding",errorCorrection:"errorCorrection",overlay:"overlay",padding:"padding",renderAs:"renderAs",size:"size",value:"value",resizeRateLimit:"resizeRateLimit"},exportAs:["kendoQRCode"],usesInheritance:!0,ngImport:a,template:'\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n ',isInline:!0,components:[{type:c.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,decorators:[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,selector:"kendo-qrcode",exportAs:"kendoQRCode",template:'\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{background:[{type:t.Input}],border:[{type:t.Input}],color:[{type:t.Input}],encoding:[{type:t.Input}],errorCorrection:[{type:t.Input}],overlay:[{type:t.Input}],padding:[{type:t.Input}],renderAs:[{type:t.Input}],size:[{type:t.Input}],value:[{type:t.Input}],resizeRateLimit:[{type:t.Input}]}});var c=function(){},I=(c.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,deps:[],target:a.ɵɵFactoryTarget.NgModule}),c.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,declarations:[y],imports:[r.ResizeSensorModule],exports:[y]}),c.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,imports:[[r.ResizeSensorModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,decorators:[{type:t.NgModule,args:[{declarations:[y],imports:[r.ResizeSensorModule],exports:[y]}]}]}),function(){}),k=(I.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,deps:[],target:a.ɵɵFactoryTarget.NgModule}),I.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,declarations:[l],imports:[r.ResizeSensorModule],exports:[l]}),I.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,imports:[[r.ResizeSensorModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,decorators:[{type:t.NgModule,args:[{declarations:[l],imports:[r.ResizeSensorModule],exports:[l]}]}]}),function(){});k.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,deps:[],target:a.ɵɵFactoryTarget.NgModule}),k.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,exports:[c,I]}),k.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,imports:[c,I]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,decorators:[{type:t.NgModule,args:[{exports:[c,I]}]}]});e.BarcodeComponent=y,e.BarcodeModule=c,e.BarcodesModule=k,e.QRCodeComponent=l,e.QRCodeModule=I,e.createBarcodeValidator=function(r,e){var n=o.barcodeValidator(r,e);return function(e){if(null==e.value||""===e.value)return null;var t=n(e.value);return!0===t.valid?null:{barcode:{message:t.error.message,value:e.value,type:r}}}},e.createQRCodeValidator=function(r){void 0===r&&(r="ISO_8859_1");var n=o.qrcodeValidator(r);return function(e){if(!e.value)return null;var t=n(e.value);return!0===t.valid?null:{qrcode:{message:t.error.message,value:e.value,encoding:r}}}},Object.defineProperty(e,"__esModule",{value:!0})});
@@ -0,0 +1,109 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Border, Margin, Padding, RenderMode } from './field-types';
6
+ /**
7
+ * Supported symbologies (encodings) for the Barcode component.
8
+ */
9
+ export declare type BarcodeType = 'EAN8' | 'EAN13' | 'UPCE' | 'UPCA' | 'Code11' | 'Code39' | 'Code39Extended' | 'Code93' | 'Code93Extended' | 'Code128' | 'Code128A' | 'Code128B' | 'Code128C' | 'GS1-128' | 'MSImod10' | 'MSImod11' | 'MSImod1010' | 'MSImod1110' | 'POSTNET';
10
+ /**
11
+ * The Barcode text label configuration.
12
+ */
13
+ export interface BarcodeText {
14
+ /**
15
+ * The color of the text. Any valid CSS color string will work here, including hex and rgb.
16
+ *
17
+ * @default "black"
18
+ */
19
+ color?: string;
20
+ /**
21
+ * The font of the text.
22
+ *
23
+ * @default "16px Consolas, Monaco, Sans Mono, monospace, sans-serif"
24
+ */
25
+ font?: string;
26
+ /**
27
+ * The margin of the text. A numeric value sets all margins.
28
+ *
29
+ * @default 0
30
+ */
31
+ margin?: Margin | number;
32
+ /**
33
+ * A flag indicating that the Barcode text label is visible.
34
+ *
35
+ * If set to `false`, the Barcode will not display the value as a text below the barcode lines.
36
+ *
37
+ * @default true
38
+ */
39
+ visible?: boolean;
40
+ }
41
+ /**
42
+ * The Barcode configuration options.
43
+ */
44
+ export interface BarcodeOptions {
45
+ /**
46
+ * The background color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
47
+ *
48
+ * @default "white"
49
+ */
50
+ background?: string;
51
+ /**
52
+ * The border of the Barcode.
53
+ */
54
+ border?: Border;
55
+ /**
56
+ * If set to `true`, the Barcode will display the checksum digit next to the value in the text area.
57
+ *
58
+ * @default true
59
+ */
60
+ checksum?: boolean;
61
+ /**
62
+ * The color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
63
+ *
64
+ * @default "black"
65
+ */
66
+ color?: string;
67
+ /**
68
+ * The height of the Barcode in pixels.
69
+ *
70
+ * @default 100
71
+ */
72
+ height?: number;
73
+ /**
74
+ * The padding of the Barcode. A numeric value sets all paddings.
75
+ *
76
+ * @default 0
77
+ */
78
+ padding?: Padding | number;
79
+ /**
80
+ * Sets the preferred rendering mode of the Barcode.
81
+ *
82
+ * The supported values are:
83
+ * * `"canvas"`&mdash;Renders the component as a Canvas element.
84
+ * * `"svg"`&mdash;Renders the component as an inline SVG document.
85
+ *
86
+ * @default "svg"
87
+ */
88
+ renderAs?: RenderMode;
89
+ /**
90
+ * The Barcode text label configuration.
91
+ */
92
+ text?: BarcodeText;
93
+ /**
94
+ * The symbology (encoding) the Barcode will use.
95
+ *
96
+ * @default "Code39"
97
+ */
98
+ type: BarcodeType;
99
+ /**
100
+ * The value of the Barcode.
101
+ */
102
+ value: number | string;
103
+ /**
104
+ * The width of the Barcode in pixels.
105
+ *
106
+ * @default 300
107
+ */
108
+ width?: number;
109
+ }