@progress/kendo-angular-barcodes 19.1.2-develop.2 → 19.1.2-develop.4
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-validator.d.ts +7 -6
- package/barcode.component.d.ts +22 -228
- package/barcode.module.d.ts +10 -18
- package/barcodes.module.d.ts +10 -18
- package/chart-types/barcode-types.d.ts +18 -22
- package/chart-types/field-types.d.ts +15 -15
- package/chart-types/qrcode-types.d.ts +24 -33
- package/directives.d.ts +3 -3
- package/esm2022/barcode-validator.mjs +7 -6
- package/esm2022/barcode.component.mjs +22 -228
- package/esm2022/barcode.module.mjs +10 -18
- package/esm2022/barcodes.module.mjs +10 -18
- package/esm2022/directives.mjs +3 -3
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/qrcode-validator.mjs +3 -3
- package/esm2022/qrcode.component.mjs +19 -202
- package/esm2022/qrcode.module.mjs +10 -19
- package/fesm2022/progress-kendo-angular-barcodes.mjs +86 -499
- package/package.json +4 -4
- package/qrcode-validator.d.ts +3 -3
- package/qrcode.component.d.ts +19 -202
- package/qrcode.module.d.ts +10 -19
- package/schematics/ngAdd/index.js +1 -1
@@ -4,11 +4,15 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { Border, Padding, RenderMode } from './field-types';
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* Lists the QR Code encoding modes.
|
8
|
+
*
|
9
|
+
* The possible values are:
|
10
|
+
* `"ISO_8859_1"`—Supports all characters from the [ISO/IEC 8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) character set.
|
11
|
+
* `"UTF_8"`—Supports all [Unicode](https://en.wikipedia.org/wiki/List_of_Unicode_characters) characters.
|
8
12
|
*/
|
9
13
|
export type QRCodeEncoding = 'ISO_8859_1' | 'UTF_8';
|
10
14
|
/**
|
11
|
-
*
|
15
|
+
* Lists the QR Code error correction levels.
|
12
16
|
*
|
13
17
|
* * `"L"`—Approximately 7% of the codewords can be restored.
|
14
18
|
* * `"M"`—Approximately 15% of the codewords can be restored.
|
@@ -17,83 +21,74 @@ export type QRCodeEncoding = 'ISO_8859_1' | 'UTF_8';
|
|
17
21
|
*/
|
18
22
|
export type QRCodeErrorCorrection = 'L' | 'M' | 'Q' | 'H';
|
19
23
|
/**
|
20
|
-
*
|
24
|
+
* Provides the image overlay options for the QR Code.
|
21
25
|
*/
|
22
26
|
export interface QRCodeOverlay {
|
23
27
|
/**
|
24
|
-
*
|
28
|
+
* Sets the overlay height in pixels.
|
25
29
|
*/
|
26
30
|
height?: number;
|
27
31
|
/**
|
28
|
-
*
|
32
|
+
* Sets the source image for the overlay.
|
29
33
|
*
|
30
34
|
* Required only when `type` is set to `'image'`.
|
31
35
|
*/
|
32
36
|
imageUrl?: string;
|
33
37
|
/**
|
34
|
-
*
|
38
|
+
* Sets the overlay type.
|
35
39
|
*
|
36
40
|
* @default 'image'
|
37
41
|
*/
|
38
42
|
type?: 'image' | 'swiss';
|
39
43
|
/**
|
40
|
-
*
|
44
|
+
* Sets the overlay width in pixels.
|
41
45
|
*/
|
42
46
|
width?: number;
|
43
47
|
}
|
44
48
|
/**
|
45
|
-
*
|
49
|
+
* Provides the QR Code options.
|
50
|
+
* ```
|
46
51
|
*/
|
47
52
|
export interface QRCodeOptions {
|
48
53
|
/**
|
49
|
-
*
|
54
|
+
* Sets the background color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
|
50
55
|
*
|
51
56
|
* @default "white"
|
52
57
|
*/
|
53
58
|
background?: string;
|
54
59
|
/**
|
55
|
-
*
|
60
|
+
* Sets the border of the QR Code.
|
56
61
|
*/
|
57
62
|
border?: Border;
|
58
63
|
/**
|
59
|
-
*
|
64
|
+
* Sets the color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
|
60
65
|
*
|
61
66
|
* @default "black"
|
62
67
|
*/
|
63
68
|
color?: string;
|
64
69
|
/**
|
65
|
-
*
|
70
|
+
* Sets the encoding mode used to encode the value.
|
66
71
|
*
|
67
72
|
* > **Important** The UTF-8 encoding is not included in the specifications and is not supported by all readers.
|
68
73
|
*
|
69
|
-
* The possible values are:
|
70
|
-
* * `"ISO_8859_1"`—Supports all characters from the [ISO/IEC 8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) character set.
|
71
|
-
* * `"UTF_8"`—Supports all [Unicode](https://en.wikipedia.org/wiki/List_of_Unicode_characters) characters.
|
72
|
-
*
|
73
74
|
* @default "ISO_8859_1"
|
74
75
|
*/
|
75
76
|
encoding?: QRCodeEncoding;
|
76
77
|
/**
|
77
|
-
*
|
78
|
-
*
|
79
|
-
* The possible values are:
|
80
|
-
* * `"L"`—Approximately 7% of the codewords can be restored.
|
81
|
-
* * `"M"`—Approximately 15% of the codewords can be restored.
|
82
|
-
* * `"Q"`—Approximately 25% of the codewords can be restored.
|
83
|
-
* * `"H"`—Approximately 30% of the codewords can be restored.
|
78
|
+
* Sets the error correction level to use.
|
84
79
|
*
|
85
80
|
* @default "L"
|
86
81
|
*/
|
87
82
|
errorCorrection?: QRCodeErrorCorrection;
|
88
83
|
/**
|
89
|
-
*
|
84
|
+
* Sets an optional image overlay that is placed over the QR Code.
|
90
85
|
*
|
91
86
|
* > **Note** Always test if the code reads correctly with the applied overlay.
|
92
87
|
* > 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"`.
|
93
88
|
*/
|
94
89
|
overlay?: QRCodeOverlay;
|
95
90
|
/**
|
96
|
-
*
|
91
|
+
* Sets the padding of the QR Code. A numeric value sets all paddings.
|
97
92
|
*
|
98
93
|
* @default 0
|
99
94
|
*/
|
@@ -101,24 +96,20 @@ export interface QRCodeOptions {
|
|
101
96
|
/**
|
102
97
|
* Sets the preferred rendering mode of the QR Code.
|
103
98
|
*
|
104
|
-
* The supported values are:
|
105
|
-
* * `"canvas"`—Renders the component as a Canvas element.
|
106
|
-
* * `"svg"`—Renders the component as an inline SVG document.
|
107
|
-
*
|
108
99
|
* @default "svg"
|
109
100
|
*/
|
110
101
|
renderAs?: RenderMode;
|
111
102
|
/**
|
112
|
-
*
|
103
|
+
* Sets the size of a QR Code. Numeric values are treated as pixels.
|
113
104
|
*
|
114
|
-
* If
|
115
|
-
* If the element has width or height of zero, a default value of 200 pixels
|
105
|
+
* If you do not specify a size, the size is determined from the element width and height.
|
106
|
+
* If the element has width or height of zero, a default value of 200 pixels is used.
|
116
107
|
*
|
117
108
|
* @default "200px"
|
118
109
|
*/
|
119
110
|
size?: number | string;
|
120
111
|
/**
|
121
|
-
*
|
112
|
+
* Sets the value of the QR Code.
|
122
113
|
*/
|
123
114
|
value: number | string;
|
124
115
|
}
|
package/directives.d.ts
CHANGED
@@ -5,14 +5,14 @@
|
|
5
5
|
import { BarcodeComponent } from "./barcode.component";
|
6
6
|
import { QRCodeComponent } from "./qrcode.component";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Use this utility array to access all Barcode related components and directives in a standalone Angular component.
|
9
9
|
*/
|
10
10
|
export declare const KENDO_BARCODE: readonly [typeof BarcodeComponent];
|
11
11
|
/**
|
12
|
-
*
|
12
|
+
* Use this utility array to access all QRCode related components and directives in a standalone Angular component.
|
13
13
|
*/
|
14
14
|
export declare const KENDO_QRCODE: readonly [typeof QRCodeComponent];
|
15
15
|
/**
|
16
|
-
*
|
16
|
+
* Use this utility array to access all `@progress/kendo-angular-barcodes` related components and directives in a standalone Angular component.
|
17
17
|
*/
|
18
18
|
export declare const KENDO_BARCODES: readonly [typeof BarcodeComponent, typeof QRCodeComponent];
|
@@ -8,17 +8,18 @@ import { barcodeValidator } from '@progress/kendo-charts';
|
|
8
8
|
*/
|
9
9
|
const isPresent = (value) => value !== null && value !== undefined;
|
10
10
|
/**
|
11
|
-
* Creates a
|
11
|
+
* Creates a validator for a specific Barcode type.
|
12
12
|
*
|
13
|
-
*
|
14
|
-
*
|
15
|
-
* @
|
13
|
+
* Use this function to validate a Barcode value for a given `BarcodeType`.
|
14
|
+
*
|
15
|
+
* @param type Specifies the type of the Barcode.
|
16
|
+
* @param size Specifies the size of the barcode, excluding the text label, padding, and border. This parameter is optional.
|
17
|
+
* @returns Returns a validator function. The function returns an error map with the `barcode` property if validation fails. Otherwise, it returns `null` if valid.
|
16
18
|
*
|
17
19
|
* @example
|
18
|
-
* ```
|
20
|
+
* ```typescript
|
19
21
|
* const control = new FormControl('1234', createBarcodeValidator('EAN8'));
|
20
22
|
* console.log(control.errors);
|
21
|
-
*
|
22
23
|
* // {
|
23
24
|
* // barcode: {
|
24
25
|
* // message: 'The value of the "EAN13" encoding should be 12 symbols',
|
@@ -9,13 +9,15 @@ import { packageMetadata } from './package-metadata';
|
|
9
9
|
import { ResizeSensorComponent } from '@progress/kendo-angular-common';
|
10
10
|
import * as i0 from "@angular/core";
|
11
11
|
/**
|
12
|
-
* Represents the Kendo UI Barcode component for Angular.
|
12
|
+
* Represents the [Kendo UI Barcode component for Angular](slug:overview_barcode_barcodes).
|
13
|
+
*
|
14
|
+
* Use this component to display a barcode in your Angular application.
|
13
15
|
*
|
14
16
|
* @example
|
15
|
-
* ```
|
17
|
+
* ```typescript
|
16
18
|
* import { Component } from '@angular/core';
|
17
19
|
*
|
18
|
-
*
|
20
|
+
* @Component({
|
19
21
|
* selector: 'my-app',
|
20
22
|
* template: `
|
21
23
|
* <kendo-barcode type="EAN8" value="1234567">
|
@@ -31,280 +33,72 @@ export class BarcodeComponent extends BaseComponent {
|
|
31
33
|
renderer;
|
32
34
|
ngZone;
|
33
35
|
/**
|
34
|
-
*
|
36
|
+
* Sets the background color of the Barcode. Accepts any valid CSS color string, such as hex or rgb.
|
35
37
|
*
|
36
38
|
* @default "white"
|
37
|
-
*
|
38
|
-
* @example
|
39
|
-
* ```ts-preview
|
40
|
-
* import { Component } from '@angular/core';
|
41
|
-
*
|
42
|
-
* _@Component({
|
43
|
-
* selector: 'my-app',
|
44
|
-
* template: `
|
45
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
46
|
-
* background="#fc0">
|
47
|
-
* </kendo-barcode>
|
48
|
-
* `
|
49
|
-
* })
|
50
|
-
* export class AppComponent {
|
51
|
-
* }
|
52
|
-
* ```
|
53
39
|
*/
|
54
40
|
background;
|
55
41
|
/**
|
56
|
-
*
|
57
|
-
*
|
58
|
-
* @example
|
59
|
-
* ```ts-preview
|
60
|
-
* import { Component } from '@angular/core';
|
61
|
-
* import { Border } from '@progress/kendo-angular-barcodes';
|
62
|
-
*
|
63
|
-
* _@Component({
|
64
|
-
* selector: 'my-app',
|
65
|
-
* template: `
|
66
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
67
|
-
* [border]="barcodeBorder" [padding]="5">
|
68
|
-
* </kendo-barcode>
|
69
|
-
* `
|
70
|
-
* })
|
71
|
-
* export class AppComponent {
|
72
|
-
* barcodeBorder: Border = {
|
73
|
-
* color: '#fc0',
|
74
|
-
* width: 2
|
75
|
-
* };
|
76
|
-
* }
|
77
|
-
* ```
|
42
|
+
* Configures the border of the Barcode.
|
78
43
|
*/
|
79
44
|
border;
|
80
45
|
/**
|
81
|
-
*
|
46
|
+
* Shows the checksum digit next to the value in the text area when set to `true`.
|
82
47
|
*
|
83
48
|
* @default false
|
84
|
-
*
|
85
|
-
* @example
|
86
|
-
* ```ts-preview
|
87
|
-
* _@Component({
|
88
|
-
* selector: 'my-app',
|
89
|
-
* template: `
|
90
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
91
|
-
* [checksum]="true">
|
92
|
-
* </kendo-barcode>
|
93
|
-
* `
|
94
|
-
* })
|
95
|
-
* export class AppComponent {
|
96
|
-
* }
|
97
|
-
* ```
|
98
49
|
*/
|
99
50
|
checksum;
|
100
51
|
/**
|
101
|
-
*
|
52
|
+
* Sets the color of the Barcode. Accepts any valid CSS color string, such as hex or rgb.
|
102
53
|
*
|
103
54
|
* @default "black"
|
104
|
-
*
|
105
|
-
* @example
|
106
|
-
* ```ts-preview
|
107
|
-
* _@Component({
|
108
|
-
* selector: 'my-app',
|
109
|
-
* template: `
|
110
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
111
|
-
* color="#fc0">
|
112
|
-
* </kendo-barcode>
|
113
|
-
* `
|
114
|
-
* })
|
115
|
-
* export class AppComponent {
|
116
|
-
* }
|
117
|
-
* ```
|
118
55
|
*/
|
119
56
|
color;
|
120
57
|
/**
|
121
|
-
*
|
122
|
-
*
|
123
|
-
* The Barcode dimensions can also be set through regular CSS styling.
|
124
|
-
*
|
125
|
-
* @example
|
126
|
-
* ```ts-preview
|
127
|
-
* _@Component({
|
128
|
-
* selector: 'my-app',
|
129
|
-
* template: `
|
130
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
131
|
-
* [width]="200" [height]="100">
|
132
|
-
* </kendo-barcode>
|
58
|
+
* Sets the height of the Barcode in pixels.
|
133
59
|
*
|
134
|
-
*
|
135
|
-
* [style.width.px]="200" [style.height.px]="100">
|
136
|
-
* </kendo-barcode>
|
137
|
-
* `
|
138
|
-
* })
|
139
|
-
* export class AppComponent {
|
140
|
-
* }
|
141
|
-
* ```
|
60
|
+
* You can also set the Barcode dimensions using CSS.
|
142
61
|
*/
|
143
62
|
height;
|
144
63
|
/**
|
145
|
-
*
|
64
|
+
* Sets the padding of the Barcode. Use a number to set all paddings, or a `Padding` object for the individual sides.
|
146
65
|
*
|
147
66
|
* @default 0
|
148
|
-
*
|
149
|
-
* @example
|
150
|
-
* ```ts-preview
|
151
|
-
* import { Component } from '@angular/core';
|
152
|
-
* import { Padding } from '@progress/kendo-angular-barcodes';
|
153
|
-
*
|
154
|
-
* _@Component({
|
155
|
-
* selector: 'my-app',
|
156
|
-
* template: `
|
157
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
158
|
-
* [padding]="5" background="#fc0">
|
159
|
-
* </kendo-barcode>
|
160
|
-
*
|
161
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
162
|
-
* [padding]="barcodePadding" background="#cf0">
|
163
|
-
* </kendo-barcode>
|
164
|
-
* `
|
165
|
-
* })
|
166
|
-
* export class AppComponent {
|
167
|
-
* barcodePadding: Padding = {
|
168
|
-
* top: 20,
|
169
|
-
* bottom: 10,
|
170
|
-
* left: 5,
|
171
|
-
* right: 5
|
172
|
-
* };
|
173
|
-
* }
|
174
|
-
* ```
|
175
67
|
*/
|
176
68
|
padding;
|
177
69
|
/**
|
178
|
-
* Sets the
|
70
|
+
* Sets the rendering mode of the Barcode.
|
179
71
|
*
|
180
|
-
*
|
181
|
-
* * `"canvas"`—Renders the component as a Canvas element.
|
182
|
-
* * `"svg"`—Renders the component as an inline SVG document.
|
72
|
+
* Use `"canvas"` to render as a Canvas element or `"svg"` to render as an inline SVG.
|
183
73
|
*
|
184
74
|
* @default "svg"
|
185
|
-
*
|
186
|
-
* @example
|
187
|
-
* ```ts-preview
|
188
|
-
* _@Component({
|
189
|
-
* selector: 'my-app',
|
190
|
-
* template: `
|
191
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
192
|
-
* renderAs="canvas">
|
193
|
-
* </kendo-barcode>
|
194
|
-
* `
|
195
|
-
* })
|
196
|
-
* export class AppComponent {
|
197
|
-
* }
|
198
|
-
* ```
|
199
75
|
*/
|
200
76
|
renderAs;
|
201
77
|
/**
|
202
|
-
*
|
203
|
-
*
|
204
|
-
* @example
|
205
|
-
* ```ts-preview
|
206
|
-
* import { Component } from '@angular/core';
|
207
|
-
* import { BarcodeText } from '@progress/kendo-angular-barcodes';
|
208
|
-
*
|
209
|
-
* _@Component({
|
210
|
-
* selector: 'my-app',
|
211
|
-
* template: `
|
212
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
213
|
-
* [text]="barcodeText">
|
214
|
-
* </kendo-barcode>
|
215
|
-
* `
|
216
|
-
* })
|
217
|
-
* export class AppComponent {
|
218
|
-
* barcodeText: BarcodeText = {
|
219
|
-
* color: '#fc0',
|
220
|
-
* font: '20px monospace'
|
221
|
-
* };
|
222
|
-
* }
|
223
|
-
* ```
|
78
|
+
* Configures the Barcode text label.
|
224
79
|
*/
|
225
80
|
text;
|
226
81
|
/**
|
227
|
-
*
|
82
|
+
* Sets the symbology (encoding) for the Barcode.
|
228
83
|
*
|
229
84
|
* @default "Code39"
|
230
|
-
*
|
231
|
-
* @example
|
232
|
-
* ```ts-preview
|
233
|
-
* import { Component } from '@angular/core';
|
234
|
-
*
|
235
|
-
* _@Component({
|
236
|
-
* selector: 'my-app',
|
237
|
-
* template: `
|
238
|
-
* <kendo-barcode type="EAN13" value="123456789987">
|
239
|
-
* </kendo-barcode>
|
240
|
-
* `
|
241
|
-
* })
|
242
|
-
* export class AppComponent {
|
243
|
-
* }
|
244
|
-
* ```
|
245
85
|
*/
|
246
86
|
type;
|
247
87
|
/**
|
248
|
-
*
|
249
|
-
*
|
250
|
-
* @example
|
251
|
-
* ```ts-preview
|
252
|
-
* import { Component } from '@angular/core';
|
253
|
-
*
|
254
|
-
* _@Component({
|
255
|
-
* selector: 'my-app',
|
256
|
-
* template: `
|
257
|
-
* <kendo-barcode type="EAN13" value="123456789987">
|
258
|
-
* </kendo-barcode>
|
259
|
-
* `
|
260
|
-
* })
|
261
|
-
* export class AppComponent {
|
262
|
-
* }
|
263
|
-
* ```
|
88
|
+
* Sets the value of the Barcode.
|
264
89
|
*/
|
265
90
|
value;
|
266
91
|
/**
|
267
|
-
*
|
268
|
-
*
|
269
|
-
* The Barcode dimensions can also be set through regular CSS styling.
|
270
|
-
*
|
271
|
-
* @example
|
272
|
-
* ```ts-preview
|
273
|
-
* _@Component({
|
274
|
-
* selector: 'my-app',
|
275
|
-
* template: `
|
276
|
-
* <kendo-barcode type="EAN8" value="1234567"
|
277
|
-
* [width]="200" [height]="100">
|
278
|
-
* </kendo-barcode>
|
92
|
+
* Sets the width of the Barcode in pixels.
|
279
93
|
*
|
280
|
-
*
|
281
|
-
* [style.width.px]="200" [style.height.px]="100">
|
282
|
-
* </kendo-barcode>
|
283
|
-
* `
|
284
|
-
* })
|
285
|
-
* export class AppComponent {
|
286
|
-
* }
|
287
|
-
* ```
|
94
|
+
* You can also set the Barcode dimensions using CSS.
|
288
95
|
*/
|
289
96
|
width;
|
290
97
|
/**
|
291
|
-
* Limits
|
292
|
-
*
|
293
|
-
* Defaults to `10`. To disable the automatic resizing, set it to `0`.
|
98
|
+
* Limits how often the Barcode resizes automatically. Sets the maximum number of redraws per second when the container size changes.
|
99
|
+
* Set to `0` to disable automatic resizing.
|
294
100
|
*
|
295
|
-
* @
|
296
|
-
* ```ts
|
297
|
-
* _@Component({
|
298
|
-
* selector: 'my-app',
|
299
|
-
* template: `
|
300
|
-
* <kendo-barcode type="EAN8" [value]="1234567"
|
301
|
-
* [resizeRateLimit]="2">
|
302
|
-
* </kendo-barcode>
|
303
|
-
* `
|
304
|
-
* })
|
305
|
-
* export class AppComponent {
|
306
|
-
* }
|
307
|
-
* ```
|
101
|
+
* @default 10
|
308
102
|
*/
|
309
103
|
resizeRateLimit = 10;
|
310
104
|
get options() {
|
@@ -9,34 +9,26 @@ import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "./barcode.component";
|
10
10
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
11
11
|
/**
|
12
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
13
|
-
*
|
12
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the Barcode component.
|
13
|
+
*
|
14
|
+
* Use this module to add Barcode support to your application.
|
14
15
|
*
|
15
16
|
* @example
|
16
17
|
*
|
17
|
-
* ```ts
|
18
|
-
* // Import the
|
18
|
+
* ```ts
|
19
|
+
* // Import the BarcodeModule.
|
19
20
|
* import { BarcodeModule } from '@progress/kendo-angular-barcodes';
|
20
21
|
*
|
21
|
-
* // The browser platform with a compiler
|
22
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
23
|
-
*
|
24
22
|
* import { NgModule } from '@angular/core';
|
25
|
-
*
|
26
|
-
* // Import the app component
|
23
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
27
24
|
* import { AppComponent } from './app.component';
|
28
25
|
*
|
29
|
-
*
|
30
|
-
*
|
31
|
-
*
|
32
|
-
*
|
33
|
-
* bootstrap: [AppComponent]
|
26
|
+
* @NgModule({
|
27
|
+
* declarations: [AppComponent],
|
28
|
+
* imports: [BrowserModule, BarcodeModule],
|
29
|
+
* bootstrap: [AppComponent]
|
34
30
|
* })
|
35
31
|
* export class AppModule {}
|
36
|
-
*
|
37
|
-
* // Compile and launch the module
|
38
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
39
|
-
*
|
40
32
|
* ```
|
41
33
|
*/
|
42
34
|
export class BarcodeModule {
|
@@ -10,34 +10,26 @@ import * as i1 from "./barcode.component";
|
|
10
10
|
import * as i2 from "./qrcode.component";
|
11
11
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
12
12
|
/**
|
13
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
14
|
-
*
|
13
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the Barcode and QR Code components.
|
14
|
+
*
|
15
|
+
* Use this module to add Barcode and QR Code features to your application.
|
15
16
|
*
|
16
17
|
* @example
|
17
18
|
*
|
18
|
-
* ```ts
|
19
|
-
* // Import the Barcodes module
|
19
|
+
* ```ts
|
20
|
+
* // Import the Barcodes module.
|
20
21
|
* import { BarcodesModule } from '@progress/kendo-angular-barcodes';
|
21
22
|
*
|
22
|
-
* // The browser platform with a compiler
|
23
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
24
|
-
*
|
25
23
|
* import { NgModule } from '@angular/core';
|
26
|
-
*
|
27
|
-
* // Import the app component
|
24
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
28
25
|
* import { AppComponent } from './app.component';
|
29
26
|
*
|
30
|
-
*
|
31
|
-
*
|
32
|
-
*
|
33
|
-
*
|
34
|
-
* bootstrap: [AppComponent]
|
27
|
+
* @NgModule({
|
28
|
+
* declarations: [AppComponent],
|
29
|
+
* imports: [BrowserModule, BarcodesModule],
|
30
|
+
* bootstrap: [AppComponent]
|
35
31
|
* })
|
36
32
|
* export class AppModule {}
|
37
|
-
*
|
38
|
-
* // Compile and launch the module
|
39
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
40
|
-
*
|
41
33
|
* ```
|
42
34
|
*/
|
43
35
|
export class BarcodesModule {
|
package/esm2022/directives.mjs
CHANGED
@@ -5,19 +5,19 @@
|
|
5
5
|
import { BarcodeComponent } from "./barcode.component";
|
6
6
|
import { QRCodeComponent } from "./qrcode.component";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Use this utility array to access all Barcode related components and directives in a standalone Angular component.
|
9
9
|
*/
|
10
10
|
export const KENDO_BARCODE = [
|
11
11
|
BarcodeComponent
|
12
12
|
];
|
13
13
|
/**
|
14
|
-
*
|
14
|
+
* Use this utility array to access all QRCode related components and directives in a standalone Angular component.
|
15
15
|
*/
|
16
16
|
export const KENDO_QRCODE = [
|
17
17
|
QRCodeComponent
|
18
18
|
];
|
19
19
|
/**
|
20
|
-
*
|
20
|
+
* Use this utility array to access all `@progress/kendo-angular-barcodes` related components and directives in a standalone Angular component.
|
21
21
|
*/
|
22
22
|
export const KENDO_BARCODES = [
|
23
23
|
...KENDO_BARCODE,
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
13
|
-
publishDate:
|
14
|
-
version: '19.1.2-develop.
|
13
|
+
publishDate: 1750157226,
|
14
|
+
version: '19.1.2-develop.4',
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
16
16
|
};
|
@@ -4,10 +4,10 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { qrcodeValidator } from '@progress/kendo-charts';
|
6
6
|
/**
|
7
|
-
* Creates a value validator for a
|
7
|
+
* Creates a value validator for a specific QR Code encoding.
|
8
8
|
*
|
9
|
-
* @param {QRCodeEncoding} encoding
|
10
|
-
* @returns {ValidatorFn}
|
9
|
+
* @param {QRCodeEncoding} encoding Sets the QR Code encoding. Defaults to `ISO_8859_1`.
|
10
|
+
* @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`.
|
11
11
|
*
|
12
12
|
* @example
|
13
13
|
* ```ts-no-run
|