@progress/kendo-angular-barcodes 1.0.0-next.202203231134 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-barcodes.js +20 -0
- package/dist/cdn/main.js +5 -0
- package/dist/es/barcode-validator.js +51 -0
- package/dist/es/barcode.component.js +149 -0
- package/{esm2015 → dist/es}/barcode.module.js +14 -14
- package/{esm2015 → dist/es}/barcodes.module.js +12 -12
- package/dist/es/base.component.js +117 -0
- package/{esm2015 → dist/es}/chart-types/barcode-types.js +0 -1
- package/{esm2015 → dist/es}/chart-types/field-types.js +0 -1
- package/{esm2015 → dist/es}/chart-types/qrcode-types.js +0 -1
- package/dist/es/chart-types.js +4 -0
- package/{esm2015/kendo-angular-barcodes.js → dist/es/index.js} +1 -0
- package/{esm2015 → dist/es}/main.js +0 -1
- package/dist/es/package-metadata.js +15 -0
- package/dist/es/qrcode-validator.js +45 -0
- package/dist/es/qrcode.component.js +147 -0
- package/{esm2015 → dist/es}/qrcode.module.js +14 -14
- package/{barcode-validator.d.ts → dist/es2015/barcode-validator.d.ts} +0 -0
- package/{esm2015 → dist/es2015}/barcode-validator.js +2 -0
- package/{barcode.component.d.ts → dist/es2015/barcode.component.d.ts} +1 -4
- package/{esm2015 → dist/es2015}/barcode.component.js +64 -42
- package/{barcode.module.d.ts → dist/es2015/barcode.module.d.ts} +0 -6
- package/dist/es2015/barcode.module.js +49 -0
- package/{barcodes.module.d.ts → dist/es2015/barcodes.module.d.ts} +0 -6
- package/dist/es2015/barcodes.module.js +47 -0
- package/{base.component.d.ts → dist/es2015/base.component.d.ts} +3 -6
- package/{esm2015 → dist/es2015}/base.component.js +10 -12
- package/{chart-types → dist/es2015/chart-types}/barcode-types.d.ts +1 -1
- package/dist/es2015/chart-types/barcode-types.js +4 -0
- package/{chart-types → dist/es2015/chart-types}/field-types.d.ts +0 -0
- package/dist/es2015/chart-types/field-types.js +4 -0
- package/{chart-types → dist/es2015/chart-types}/qrcode-types.d.ts +2 -2
- package/dist/es2015/chart-types/qrcode-types.js +4 -0
- package/{chart-types.d.ts → dist/es2015/chart-types.d.ts} +0 -0
- package/dist/es2015/chart-types.js +4 -0
- package/{kendo-angular-barcodes.d.ts → dist/es2015/index.d.ts} +1 -1
- package/dist/es2015/index.js +9 -0
- package/dist/es2015/index.metadata.json +1 -0
- package/{main.d.ts → dist/es2015/main.d.ts} +0 -0
- package/dist/es2015/main.js +11 -0
- package/{package-metadata.d.ts → dist/es2015/package-metadata.d.ts} +0 -0
- package/{esm2015 → dist/es2015}/package-metadata.js +1 -1
- package/{qrcode-validator.d.ts → dist/es2015/qrcode-validator.d.ts} +0 -0
- package/{esm2015 → dist/es2015}/qrcode-validator.js +0 -0
- package/{qrcode.component.d.ts → dist/es2015/qrcode.component.d.ts} +1 -4
- package/{esm2015 → dist/es2015}/qrcode.component.js +60 -40
- package/{qrcode.module.d.ts → dist/es2015/qrcode.module.d.ts} +0 -6
- package/dist/es2015/qrcode.module.js +49 -0
- package/{fesm2015/kendo-angular-barcodes.js → dist/fesm2015/index.js} +155 -129
- package/dist/fesm5/index.js +629 -0
- package/dist/npm/barcode-validator.js +53 -0
- package/dist/npm/barcode.component.js +151 -0
- package/dist/npm/barcode.module.js +54 -0
- package/dist/npm/barcodes.module.js +52 -0
- package/dist/npm/base.component.js +119 -0
- package/dist/npm/chart-types/barcode-types.js +6 -0
- package/dist/npm/chart-types/field-types.js +6 -0
- package/dist/npm/chart-types/qrcode-types.js +6 -0
- package/dist/npm/chart-types.js +6 -0
- package/dist/npm/index.js +13 -0
- package/dist/npm/main.js +20 -0
- package/dist/npm/package-metadata.js +17 -0
- package/dist/npm/qrcode-validator.js +47 -0
- package/dist/npm/qrcode.component.js +149 -0
- package/dist/npm/qrcode.module.js +54 -0
- package/dist/systemjs/kendo-angular-barcodes.js +5 -0
- package/package.json +100 -29
- package/schematics/ngAdd/index.js +2 -5
- package/schematics/ngAdd/index.js.map +1 -1
- package/bundles/kendo-angular-barcodes.umd.js +0 -5
- package/esm2015/chart-types.js +0 -7
|
@@ -2,10 +2,9 @@
|
|
|
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
|
-
import
|
|
6
|
-
import { isDevMode,
|
|
5
|
+
import { __decorate, __metadata } from 'tslib';
|
|
6
|
+
import { isDevMode, Input, ViewChild, ElementRef, Component, ChangeDetectionStrategy, Renderer2, NgZone, NgModule } from '@angular/core';
|
|
7
7
|
import { Barcode, QRCode, barcodeValidator, qrcodeValidator } from '@progress/kendo-charts';
|
|
8
|
-
import * as i1 from '@progress/kendo-angular-common';
|
|
9
8
|
import { isDocumentAvailable, ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
10
9
|
import { exportImage, exportSVG } from '@progress/kendo-drawing';
|
|
11
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
@@ -17,7 +16,7 @@ const packageMetadata = {
|
|
|
17
16
|
name: '@progress/kendo-angular-barcodes',
|
|
18
17
|
productName: 'Kendo UI for Angular',
|
|
19
18
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
20
|
-
publishDate:
|
|
19
|
+
publishDate: 1648115793,
|
|
21
20
|
version: '',
|
|
22
21
|
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'
|
|
23
22
|
};
|
|
@@ -109,16 +108,14 @@ class BaseComponent {
|
|
|
109
108
|
return isDevMode();
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
args: ['surface', { static: true }]
|
|
121
|
-
}] } });
|
|
111
|
+
__decorate([
|
|
112
|
+
Input(),
|
|
113
|
+
__metadata("design:type", Number)
|
|
114
|
+
], BaseComponent.prototype, "resizeRateLimit", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
ViewChild('surface', { static: true }),
|
|
117
|
+
__metadata("design:type", ElementRef)
|
|
118
|
+
], BaseComponent.prototype, "surfaceElement", void 0);
|
|
122
119
|
|
|
123
120
|
/**
|
|
124
121
|
* Represents the Kendo UI Barcode component for Angular.
|
|
@@ -138,7 +135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
138
135
|
* }
|
|
139
136
|
* ```
|
|
140
137
|
*/
|
|
141
|
-
class BarcodeComponent extends BaseComponent {
|
|
138
|
+
let BarcodeComponent = class BarcodeComponent extends BaseComponent {
|
|
142
139
|
constructor(element, renderer, ngZone) {
|
|
143
140
|
super(element, renderer, ngZone);
|
|
144
141
|
this.element = element;
|
|
@@ -192,46 +189,68 @@ class BarcodeComponent extends BaseComponent {
|
|
|
192
189
|
console.warn(error);
|
|
193
190
|
}
|
|
194
191
|
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
192
|
+
};
|
|
193
|
+
__decorate([
|
|
194
|
+
Input(),
|
|
195
|
+
__metadata("design:type", String)
|
|
196
|
+
], BarcodeComponent.prototype, "background", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
Input(),
|
|
199
|
+
__metadata("design:type", Object)
|
|
200
|
+
], BarcodeComponent.prototype, "border", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
Input(),
|
|
203
|
+
__metadata("design:type", Boolean)
|
|
204
|
+
], BarcodeComponent.prototype, "checksum", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
Input(),
|
|
207
|
+
__metadata("design:type", String)
|
|
208
|
+
], BarcodeComponent.prototype, "color", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
Input(),
|
|
211
|
+
__metadata("design:type", Number)
|
|
212
|
+
], BarcodeComponent.prototype, "height", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
Input(),
|
|
215
|
+
__metadata("design:type", Object)
|
|
216
|
+
], BarcodeComponent.prototype, "padding", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
Input(),
|
|
219
|
+
__metadata("design:type", String)
|
|
220
|
+
], BarcodeComponent.prototype, "renderAs", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
Input(),
|
|
223
|
+
__metadata("design:type", Object)
|
|
224
|
+
], BarcodeComponent.prototype, "text", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
Input(),
|
|
227
|
+
__metadata("design:type", String)
|
|
228
|
+
], BarcodeComponent.prototype, "type", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
Input(),
|
|
231
|
+
__metadata("design:type", Object)
|
|
232
|
+
], BarcodeComponent.prototype, "value", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
Input(),
|
|
235
|
+
__metadata("design:type", Number)
|
|
236
|
+
], BarcodeComponent.prototype, "width", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
Input(),
|
|
239
|
+
__metadata("design:type", Number)
|
|
240
|
+
], BarcodeComponent.prototype, "resizeRateLimit", void 0);
|
|
241
|
+
BarcodeComponent = __decorate([
|
|
242
|
+
Component({
|
|
243
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
244
|
+
exportAs: 'kendoBarcode',
|
|
245
|
+
selector: 'kendo-barcode',
|
|
246
|
+
template: `
|
|
207
247
|
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
208
248
|
`
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}], checksum: [{
|
|
215
|
-
type: Input
|
|
216
|
-
}], color: [{
|
|
217
|
-
type: Input
|
|
218
|
-
}], height: [{
|
|
219
|
-
type: Input
|
|
220
|
-
}], padding: [{
|
|
221
|
-
type: Input
|
|
222
|
-
}], renderAs: [{
|
|
223
|
-
type: Input
|
|
224
|
-
}], text: [{
|
|
225
|
-
type: Input
|
|
226
|
-
}], type: [{
|
|
227
|
-
type: Input
|
|
228
|
-
}], value: [{
|
|
229
|
-
type: Input
|
|
230
|
-
}], width: [{
|
|
231
|
-
type: Input
|
|
232
|
-
}], resizeRateLimit: [{
|
|
233
|
-
type: Input
|
|
234
|
-
}] } });
|
|
249
|
+
}),
|
|
250
|
+
__metadata("design:paramtypes", [ElementRef,
|
|
251
|
+
Renderer2,
|
|
252
|
+
NgZone])
|
|
253
|
+
], BarcodeComponent);
|
|
235
254
|
|
|
236
255
|
const DEFAULT_COLOR = '#000';
|
|
237
256
|
const DEFAULT_BACKGROUND = '#fff';
|
|
@@ -254,7 +273,7 @@ const DEFAULT_ERROR_CORRECTION = 'L';
|
|
|
254
273
|
* }
|
|
255
274
|
* ```
|
|
256
275
|
*/
|
|
257
|
-
class QRCodeComponent extends BaseComponent {
|
|
276
|
+
let QRCodeComponent = class QRCodeComponent extends BaseComponent {
|
|
258
277
|
constructor(element, renderer, ngZone) {
|
|
259
278
|
super(element, renderer, ngZone);
|
|
260
279
|
this.element = element;
|
|
@@ -307,44 +326,64 @@ class QRCodeComponent extends BaseComponent {
|
|
|
307
326
|
console.warn(error);
|
|
308
327
|
}
|
|
309
328
|
}
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
329
|
+
};
|
|
330
|
+
__decorate([
|
|
331
|
+
Input(),
|
|
332
|
+
__metadata("design:type", String)
|
|
333
|
+
], QRCodeComponent.prototype, "background", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
Input(),
|
|
336
|
+
__metadata("design:type", Object)
|
|
337
|
+
], QRCodeComponent.prototype, "border", void 0);
|
|
338
|
+
__decorate([
|
|
339
|
+
Input(),
|
|
340
|
+
__metadata("design:type", String)
|
|
341
|
+
], QRCodeComponent.prototype, "color", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
Input(),
|
|
344
|
+
__metadata("design:type", String)
|
|
345
|
+
], QRCodeComponent.prototype, "encoding", void 0);
|
|
346
|
+
__decorate([
|
|
347
|
+
Input(),
|
|
348
|
+
__metadata("design:type", String)
|
|
349
|
+
], QRCodeComponent.prototype, "errorCorrection", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
Input(),
|
|
352
|
+
__metadata("design:type", Object)
|
|
353
|
+
], QRCodeComponent.prototype, "overlay", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
Input(),
|
|
356
|
+
__metadata("design:type", Number)
|
|
357
|
+
], QRCodeComponent.prototype, "padding", void 0);
|
|
358
|
+
__decorate([
|
|
359
|
+
Input(),
|
|
360
|
+
__metadata("design:type", String)
|
|
361
|
+
], QRCodeComponent.prototype, "renderAs", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
Input(),
|
|
364
|
+
__metadata("design:type", Object)
|
|
365
|
+
], QRCodeComponent.prototype, "size", void 0);
|
|
366
|
+
__decorate([
|
|
367
|
+
Input(),
|
|
368
|
+
__metadata("design:type", Object)
|
|
369
|
+
], QRCodeComponent.prototype, "value", void 0);
|
|
370
|
+
__decorate([
|
|
371
|
+
Input(),
|
|
372
|
+
__metadata("design:type", Number)
|
|
373
|
+
], QRCodeComponent.prototype, "resizeRateLimit", void 0);
|
|
374
|
+
QRCodeComponent = __decorate([
|
|
375
|
+
Component({
|
|
376
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
377
|
+
selector: 'kendo-qrcode',
|
|
378
|
+
exportAs: 'kendoQRCode',
|
|
379
|
+
template: `
|
|
322
380
|
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
323
381
|
`
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}], color: [{
|
|
330
|
-
type: Input
|
|
331
|
-
}], encoding: [{
|
|
332
|
-
type: Input
|
|
333
|
-
}], errorCorrection: [{
|
|
334
|
-
type: Input
|
|
335
|
-
}], overlay: [{
|
|
336
|
-
type: Input
|
|
337
|
-
}], padding: [{
|
|
338
|
-
type: Input
|
|
339
|
-
}], renderAs: [{
|
|
340
|
-
type: Input
|
|
341
|
-
}], size: [{
|
|
342
|
-
type: Input
|
|
343
|
-
}], value: [{
|
|
344
|
-
type: Input
|
|
345
|
-
}], resizeRateLimit: [{
|
|
346
|
-
type: Input
|
|
347
|
-
}] } });
|
|
382
|
+
}),
|
|
383
|
+
__metadata("design:paramtypes", [ElementRef,
|
|
384
|
+
Renderer2,
|
|
385
|
+
NgZone])
|
|
386
|
+
], QRCodeComponent);
|
|
348
387
|
|
|
349
388
|
/**
|
|
350
389
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
@@ -377,19 +416,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
377
416
|
*
|
|
378
417
|
* ```
|
|
379
418
|
*/
|
|
380
|
-
class BarcodeModule {
|
|
381
|
-
}
|
|
382
|
-
BarcodeModule
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
imports: [ResizeSensorModule],
|
|
390
|
-
exports: [BarcodeComponent]
|
|
391
|
-
}]
|
|
392
|
-
}] });
|
|
419
|
+
let BarcodeModule = class BarcodeModule {
|
|
420
|
+
};
|
|
421
|
+
BarcodeModule = __decorate([
|
|
422
|
+
NgModule({
|
|
423
|
+
declarations: [BarcodeComponent],
|
|
424
|
+
imports: [ResizeSensorModule],
|
|
425
|
+
exports: [BarcodeComponent]
|
|
426
|
+
})
|
|
427
|
+
], BarcodeModule);
|
|
393
428
|
|
|
394
429
|
/**
|
|
395
430
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
@@ -422,19 +457,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
422
457
|
*
|
|
423
458
|
* ```
|
|
424
459
|
*/
|
|
425
|
-
class QRCodeModule {
|
|
426
|
-
}
|
|
427
|
-
QRCodeModule
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
imports: [ResizeSensorModule],
|
|
435
|
-
exports: [QRCodeComponent]
|
|
436
|
-
}]
|
|
437
|
-
}] });
|
|
460
|
+
let QRCodeModule = class QRCodeModule {
|
|
461
|
+
};
|
|
462
|
+
QRCodeModule = __decorate([
|
|
463
|
+
NgModule({
|
|
464
|
+
declarations: [QRCodeComponent],
|
|
465
|
+
imports: [ResizeSensorModule],
|
|
466
|
+
exports: [QRCodeComponent]
|
|
467
|
+
})
|
|
468
|
+
], QRCodeModule);
|
|
438
469
|
|
|
439
470
|
/**
|
|
440
471
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
@@ -467,17 +498,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
467
498
|
*
|
|
468
499
|
* ```
|
|
469
500
|
*/
|
|
470
|
-
class BarcodesModule {
|
|
471
|
-
}
|
|
472
|
-
BarcodesModule
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
args: [{
|
|
478
|
-
exports: [BarcodeModule, QRCodeModule]
|
|
479
|
-
}]
|
|
480
|
-
}] });
|
|
501
|
+
let BarcodesModule = class BarcodesModule {
|
|
502
|
+
};
|
|
503
|
+
BarcodesModule = __decorate([
|
|
504
|
+
NgModule({
|
|
505
|
+
exports: [BarcodeModule, QRCodeModule]
|
|
506
|
+
})
|
|
507
|
+
], BarcodesModule);
|
|
481
508
|
|
|
482
509
|
/**
|
|
483
510
|
* @hidden
|
|
@@ -568,5 +595,4 @@ const createQRCodeValidator = (encoding = 'ISO_8859_1') => {
|
|
|
568
595
|
* Generated bundle index. Do not edit.
|
|
569
596
|
*/
|
|
570
597
|
|
|
571
|
-
export {
|
|
572
|
-
|
|
598
|
+
export { BaseComponent, BarcodeComponent, QRCodeComponent, BarcodeModule, QRCodeModule, BarcodesModule, createBarcodeValidator, createQRCodeValidator };
|