@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.
Files changed (71) hide show
  1. package/dist/cdn/js/kendo-angular-barcodes.js +20 -0
  2. package/dist/cdn/main.js +5 -0
  3. package/dist/es/barcode-validator.js +51 -0
  4. package/dist/es/barcode.component.js +149 -0
  5. package/{esm2015 → dist/es}/barcode.module.js +14 -14
  6. package/{esm2015 → dist/es}/barcodes.module.js +12 -12
  7. package/dist/es/base.component.js +117 -0
  8. package/{esm2015 → dist/es}/chart-types/barcode-types.js +0 -1
  9. package/{esm2015 → dist/es}/chart-types/field-types.js +0 -1
  10. package/{esm2015 → dist/es}/chart-types/qrcode-types.js +0 -1
  11. package/dist/es/chart-types.js +4 -0
  12. package/{esm2015/kendo-angular-barcodes.js → dist/es/index.js} +1 -0
  13. package/{esm2015 → dist/es}/main.js +0 -1
  14. package/dist/es/package-metadata.js +15 -0
  15. package/dist/es/qrcode-validator.js +45 -0
  16. package/dist/es/qrcode.component.js +147 -0
  17. package/{esm2015 → dist/es}/qrcode.module.js +14 -14
  18. package/{barcode-validator.d.ts → dist/es2015/barcode-validator.d.ts} +0 -0
  19. package/{esm2015 → dist/es2015}/barcode-validator.js +2 -0
  20. package/{barcode.component.d.ts → dist/es2015/barcode.component.d.ts} +1 -4
  21. package/{esm2015 → dist/es2015}/barcode.component.js +64 -42
  22. package/{barcode.module.d.ts → dist/es2015/barcode.module.d.ts} +0 -6
  23. package/dist/es2015/barcode.module.js +49 -0
  24. package/{barcodes.module.d.ts → dist/es2015/barcodes.module.d.ts} +0 -6
  25. package/dist/es2015/barcodes.module.js +47 -0
  26. package/{base.component.d.ts → dist/es2015/base.component.d.ts} +3 -6
  27. package/{esm2015 → dist/es2015}/base.component.js +10 -12
  28. package/{chart-types → dist/es2015/chart-types}/barcode-types.d.ts +1 -1
  29. package/dist/es2015/chart-types/barcode-types.js +4 -0
  30. package/{chart-types → dist/es2015/chart-types}/field-types.d.ts +0 -0
  31. package/dist/es2015/chart-types/field-types.js +4 -0
  32. package/{chart-types → dist/es2015/chart-types}/qrcode-types.d.ts +2 -2
  33. package/dist/es2015/chart-types/qrcode-types.js +4 -0
  34. package/{chart-types.d.ts → dist/es2015/chart-types.d.ts} +0 -0
  35. package/dist/es2015/chart-types.js +4 -0
  36. package/{kendo-angular-barcodes.d.ts → dist/es2015/index.d.ts} +1 -1
  37. package/dist/es2015/index.js +9 -0
  38. package/dist/es2015/index.metadata.json +1 -0
  39. package/{main.d.ts → dist/es2015/main.d.ts} +0 -0
  40. package/dist/es2015/main.js +11 -0
  41. package/{package-metadata.d.ts → dist/es2015/package-metadata.d.ts} +0 -0
  42. package/{esm2015 → dist/es2015}/package-metadata.js +1 -1
  43. package/{qrcode-validator.d.ts → dist/es2015/qrcode-validator.d.ts} +0 -0
  44. package/{esm2015 → dist/es2015}/qrcode-validator.js +0 -0
  45. package/{qrcode.component.d.ts → dist/es2015/qrcode.component.d.ts} +1 -4
  46. package/{esm2015 → dist/es2015}/qrcode.component.js +60 -40
  47. package/{qrcode.module.d.ts → dist/es2015/qrcode.module.d.ts} +0 -6
  48. package/dist/es2015/qrcode.module.js +49 -0
  49. package/{fesm2015/kendo-angular-barcodes.js → dist/fesm2015/index.js} +155 -129
  50. package/dist/fesm5/index.js +629 -0
  51. package/dist/npm/barcode-validator.js +53 -0
  52. package/dist/npm/barcode.component.js +151 -0
  53. package/dist/npm/barcode.module.js +54 -0
  54. package/dist/npm/barcodes.module.js +52 -0
  55. package/dist/npm/base.component.js +119 -0
  56. package/dist/npm/chart-types/barcode-types.js +6 -0
  57. package/dist/npm/chart-types/field-types.js +6 -0
  58. package/dist/npm/chart-types/qrcode-types.js +6 -0
  59. package/dist/npm/chart-types.js +6 -0
  60. package/dist/npm/index.js +13 -0
  61. package/dist/npm/main.js +20 -0
  62. package/dist/npm/package-metadata.js +17 -0
  63. package/dist/npm/qrcode-validator.js +47 -0
  64. package/dist/npm/qrcode.component.js +149 -0
  65. package/dist/npm/qrcode.module.js +54 -0
  66. package/dist/systemjs/kendo-angular-barcodes.js +5 -0
  67. package/package.json +100 -29
  68. package/schematics/ngAdd/index.js +2 -5
  69. package/schematics/ngAdd/index.js.map +1 -1
  70. package/bundles/kendo-angular-barcodes.umd.js +0 -5
  71. package/esm2015/chart-types.js +0 -7
@@ -0,0 +1,147 @@
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 tslib_1 from "tslib";
6
+ import { ChangeDetectionStrategy, Component, ElementRef, Input, NgZone, Renderer2 } from '@angular/core';
7
+ import { QRCode } from '@progress/kendo-charts';
8
+ import { BaseComponent } from './base.component';
9
+ import { packageMetadata } from './package-metadata';
10
+ var DEFAULT_COLOR = '#000';
11
+ var DEFAULT_BACKGROUND = '#fff';
12
+ var DEFAULT_ERROR_CORRECTION = 'L';
13
+ /**
14
+ * Represents the Kendo UI QR Code component for Angular.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * import { Component } from '@angular/core';
19
+ *
20
+ * _@Component({
21
+ * selector: 'my-app',
22
+ * template: `
23
+ * <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui">
24
+ * </kendo-qrcode>
25
+ * `
26
+ * })
27
+ * export class AppComponent {
28
+ * }
29
+ * ```
30
+ */
31
+ var QRCodeComponent = /** @class */ (function (_super) {
32
+ tslib_1.__extends(QRCodeComponent, _super);
33
+ function QRCodeComponent(element, renderer, ngZone) {
34
+ var _this = _super.call(this, element, renderer, ngZone) || this;
35
+ _this.element = element;
36
+ _this.renderer = renderer;
37
+ _this.ngZone = ngZone;
38
+ /**
39
+ * Limits the automatic resizing of the QR Code. Sets the maximum number of times per second
40
+ * that the component redraws its content when the size of its container changes.
41
+ * Defaults to `10`. To disable the automatic resizing, set it to `0`.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * _@Component({
46
+ * selector: 'my-app',
47
+ * template: `
48
+ * <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
49
+ * [resizeRateLimit]="2">
50
+ * </kendo-qrcode>
51
+ * `
52
+ * })
53
+ * export class AppComponent {
54
+ * }
55
+ * ```
56
+ */
57
+ _this.resizeRateLimit = 10;
58
+ return _this;
59
+ }
60
+ Object.defineProperty(QRCodeComponent.prototype, "options", {
61
+ get: function () {
62
+ return {
63
+ background: this.background || DEFAULT_BACKGROUND,
64
+ border: this.border,
65
+ color: this.color || DEFAULT_COLOR,
66
+ encoding: this.encoding,
67
+ errorCorrection: this.errorCorrection || DEFAULT_ERROR_CORRECTION,
68
+ overlay: this.overlay || {},
69
+ padding: this.padding,
70
+ renderAs: this.renderAs,
71
+ size: this.size,
72
+ value: this.value
73
+ };
74
+ },
75
+ enumerable: true,
76
+ configurable: true
77
+ });
78
+ QRCodeComponent.prototype.createInstance = function (element, options) {
79
+ return new QRCode(element, options, this.onError.bind(this));
80
+ };
81
+ QRCodeComponent.prototype.onError = function (error) {
82
+ error.name = packageMetadata.productName + ' QRCode';
83
+ if (this.isDevMode()) {
84
+ throw error;
85
+ }
86
+ else {
87
+ console.warn(error);
88
+ }
89
+ };
90
+ tslib_1.__decorate([
91
+ Input(),
92
+ tslib_1.__metadata("design:type", String)
93
+ ], QRCodeComponent.prototype, "background", void 0);
94
+ tslib_1.__decorate([
95
+ Input(),
96
+ tslib_1.__metadata("design:type", Object)
97
+ ], QRCodeComponent.prototype, "border", void 0);
98
+ tslib_1.__decorate([
99
+ Input(),
100
+ tslib_1.__metadata("design:type", String)
101
+ ], QRCodeComponent.prototype, "color", void 0);
102
+ tslib_1.__decorate([
103
+ Input(),
104
+ tslib_1.__metadata("design:type", String)
105
+ ], QRCodeComponent.prototype, "encoding", void 0);
106
+ tslib_1.__decorate([
107
+ Input(),
108
+ tslib_1.__metadata("design:type", String)
109
+ ], QRCodeComponent.prototype, "errorCorrection", void 0);
110
+ tslib_1.__decorate([
111
+ Input(),
112
+ tslib_1.__metadata("design:type", Object)
113
+ ], QRCodeComponent.prototype, "overlay", void 0);
114
+ tslib_1.__decorate([
115
+ Input(),
116
+ tslib_1.__metadata("design:type", Number)
117
+ ], QRCodeComponent.prototype, "padding", void 0);
118
+ tslib_1.__decorate([
119
+ Input(),
120
+ tslib_1.__metadata("design:type", String)
121
+ ], QRCodeComponent.prototype, "renderAs", void 0);
122
+ tslib_1.__decorate([
123
+ Input(),
124
+ tslib_1.__metadata("design:type", Object)
125
+ ], QRCodeComponent.prototype, "size", void 0);
126
+ tslib_1.__decorate([
127
+ Input(),
128
+ tslib_1.__metadata("design:type", Object)
129
+ ], QRCodeComponent.prototype, "value", void 0);
130
+ tslib_1.__decorate([
131
+ Input(),
132
+ tslib_1.__metadata("design:type", Number)
133
+ ], QRCodeComponent.prototype, "resizeRateLimit", void 0);
134
+ QRCodeComponent = tslib_1.__decorate([
135
+ Component({
136
+ changeDetection: ChangeDetectionStrategy.OnPush,
137
+ selector: 'kendo-qrcode',
138
+ exportAs: 'kendoQRCode',
139
+ template: "\n <kendo-resize-sensor (resize)=\"onResize()\" [rateLimit]=\"resizeRateLimit\"></kendo-resize-sensor>\n "
140
+ }),
141
+ tslib_1.__metadata("design:paramtypes", [ElementRef,
142
+ Renderer2,
143
+ NgZone])
144
+ ], QRCodeComponent);
145
+ return QRCodeComponent;
146
+ }(BaseComponent));
147
+ export { QRCodeComponent };
@@ -2,10 +2,10 @@
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 * as tslib_1 from "tslib";
5
6
  import { NgModule } from '@angular/core';
6
7
  import { ResizeSensorModule } from '@progress/kendo-angular-common';
7
8
  import { QRCodeComponent } from './qrcode.component';
8
- import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
11
11
  * definition for the QR Code component.
@@ -37,16 +37,16 @@ import * as i0 from "@angular/core";
37
37
  *
38
38
  * ```
39
39
  */
40
- export class QRCodeModule {
41
- }
42
- QRCodeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: QRCodeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
43
- QRCodeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: QRCodeModule, declarations: [QRCodeComponent], imports: [ResizeSensorModule], exports: [QRCodeComponent] });
44
- QRCodeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: QRCodeModule, imports: [[ResizeSensorModule]] });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: QRCodeModule, decorators: [{
46
- type: NgModule,
47
- args: [{
48
- declarations: [QRCodeComponent],
49
- imports: [ResizeSensorModule],
50
- exports: [QRCodeComponent]
51
- }]
52
- }] });
40
+ var QRCodeModule = /** @class */ (function () {
41
+ function QRCodeModule() {
42
+ }
43
+ QRCodeModule = tslib_1.__decorate([
44
+ NgModule({
45
+ declarations: [QRCodeComponent],
46
+ imports: [ResizeSensorModule],
47
+ exports: [QRCodeComponent]
48
+ })
49
+ ], QRCodeModule);
50
+ return QRCodeModule;
51
+ }());
52
+ export { QRCodeModule };
@@ -7,6 +7,7 @@ import { barcodeValidator } from '@progress/kendo-charts';
7
7
  * @hidden
8
8
  */
9
9
  const isPresent = (value) => value !== null && value !== undefined;
10
+ const ɵ0 = isPresent;
10
11
  /**
11
12
  * Creates a value validator for a particular Barcode type.
12
13
  *
@@ -47,3 +48,4 @@ export const createBarcodeValidator = (type, size) => {
47
48
  };
48
49
  };
49
50
  };
51
+ export { ɵ0 };
@@ -6,7 +6,6 @@ import { ElementRef, NgZone, Renderer2 } from '@angular/core';
6
6
  import { Barcode, BarcodeOptions } from '@progress/kendo-charts';
7
7
  import { BaseComponent } from './base.component';
8
8
  import { BarcodeText, BarcodeType, Border, Padding, RenderMode } from './chart-types';
9
- import * as i0 from "@angular/core";
10
9
  /**
11
10
  * Represents the Kendo UI Barcode component for Angular.
12
11
  *
@@ -306,10 +305,8 @@ export declare class BarcodeComponent extends BaseComponent {
306
305
  * ```
307
306
  */
308
307
  resizeRateLimit: number;
309
- protected get options(): BarcodeOptions;
308
+ protected readonly options: BarcodeOptions;
310
309
  constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
311
310
  protected createInstance(element: any, options: any): Barcode;
312
311
  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
312
  }
@@ -2,12 +2,11 @@
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 { ChangeDetectionStrategy, Component, Input } from '@angular/core';
5
+ import * as tslib_1 from "tslib";
6
+ import { ChangeDetectionStrategy, Component, ElementRef, Input, NgZone, Renderer2 } from '@angular/core';
6
7
  import { Barcode } from '@progress/kendo-charts';
7
8
  import { BaseComponent } from './base.component';
8
9
  import { packageMetadata } from './package-metadata';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "@progress/kendo-angular-common";
11
10
  /**
12
11
  * Represents the Kendo UI Barcode component for Angular.
13
12
  *
@@ -26,7 +25,7 @@ import * as i1 from "@progress/kendo-angular-common";
26
25
  * }
27
26
  * ```
28
27
  */
29
- export class BarcodeComponent extends BaseComponent {
28
+ let BarcodeComponent = class BarcodeComponent extends BaseComponent {
30
29
  constructor(element, renderer, ngZone) {
31
30
  super(element, renderer, ngZone);
32
31
  this.element = element;
@@ -80,43 +79,66 @@ export class BarcodeComponent extends BaseComponent {
80
79
  console.warn(error);
81
80
  }
82
81
  }
83
- }
84
- BarcodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BarcodeComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
85
- BarcodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BarcodeComponent, 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: true, ngImport: i0, template: `
86
- <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
87
- `, isInline: true, components: [{ type: i1.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BarcodeComponent, decorators: [{
89
- type: Component,
90
- args: [{
91
- changeDetection: ChangeDetectionStrategy.OnPush,
92
- exportAs: 'kendoBarcode',
93
- selector: 'kendo-barcode',
94
- template: `
82
+ };
83
+ tslib_1.__decorate([
84
+ Input(),
85
+ tslib_1.__metadata("design:type", String)
86
+ ], BarcodeComponent.prototype, "background", void 0);
87
+ tslib_1.__decorate([
88
+ Input(),
89
+ tslib_1.__metadata("design:type", Object)
90
+ ], BarcodeComponent.prototype, "border", void 0);
91
+ tslib_1.__decorate([
92
+ Input(),
93
+ tslib_1.__metadata("design:type", Boolean)
94
+ ], BarcodeComponent.prototype, "checksum", void 0);
95
+ tslib_1.__decorate([
96
+ Input(),
97
+ tslib_1.__metadata("design:type", String)
98
+ ], BarcodeComponent.prototype, "color", void 0);
99
+ tslib_1.__decorate([
100
+ Input(),
101
+ tslib_1.__metadata("design:type", Number)
102
+ ], BarcodeComponent.prototype, "height", void 0);
103
+ tslib_1.__decorate([
104
+ Input(),
105
+ tslib_1.__metadata("design:type", Object)
106
+ ], BarcodeComponent.prototype, "padding", void 0);
107
+ tslib_1.__decorate([
108
+ Input(),
109
+ tslib_1.__metadata("design:type", String)
110
+ ], BarcodeComponent.prototype, "renderAs", void 0);
111
+ tslib_1.__decorate([
112
+ Input(),
113
+ tslib_1.__metadata("design:type", Object)
114
+ ], BarcodeComponent.prototype, "text", void 0);
115
+ tslib_1.__decorate([
116
+ Input(),
117
+ tslib_1.__metadata("design:type", String)
118
+ ], BarcodeComponent.prototype, "type", void 0);
119
+ tslib_1.__decorate([
120
+ Input(),
121
+ tslib_1.__metadata("design:type", Object)
122
+ ], BarcodeComponent.prototype, "value", void 0);
123
+ tslib_1.__decorate([
124
+ Input(),
125
+ tslib_1.__metadata("design:type", Number)
126
+ ], BarcodeComponent.prototype, "width", void 0);
127
+ tslib_1.__decorate([
128
+ Input(),
129
+ tslib_1.__metadata("design:type", Number)
130
+ ], BarcodeComponent.prototype, "resizeRateLimit", void 0);
131
+ BarcodeComponent = tslib_1.__decorate([
132
+ Component({
133
+ changeDetection: ChangeDetectionStrategy.OnPush,
134
+ exportAs: 'kendoBarcode',
135
+ selector: 'kendo-barcode',
136
+ template: `
95
137
  <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
96
138
  `
97
- }]
98
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { background: [{
99
- type: Input
100
- }], border: [{
101
- type: Input
102
- }], checksum: [{
103
- type: Input
104
- }], color: [{
105
- type: Input
106
- }], height: [{
107
- type: Input
108
- }], padding: [{
109
- type: Input
110
- }], renderAs: [{
111
- type: Input
112
- }], text: [{
113
- type: Input
114
- }], type: [{
115
- type: Input
116
- }], value: [{
117
- type: Input
118
- }], width: [{
119
- type: Input
120
- }], resizeRateLimit: [{
121
- type: Input
122
- }] } });
139
+ }),
140
+ tslib_1.__metadata("design:paramtypes", [ElementRef,
141
+ Renderer2,
142
+ NgZone])
143
+ ], BarcodeComponent);
144
+ export { BarcodeComponent };
@@ -2,9 +2,6 @@
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 * as i0 from "@angular/core";
6
- import * as i1 from "./barcode.component";
7
- import * as i2 from "@progress/kendo-angular-common";
8
5
  /**
9
6
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
10
7
  * definition for the Barcode component.
@@ -37,7 +34,4 @@ import * as i2 from "@progress/kendo-angular-common";
37
34
  * ```
38
35
  */
39
36
  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
37
  }
@@ -0,0 +1,49 @@
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 tslib_1 from "tslib";
6
+ import { NgModule } from '@angular/core';
7
+ import { ResizeSensorModule } from '@progress/kendo-angular-common';
8
+ import { BarcodeComponent } from './barcode.component';
9
+ /**
10
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
11
+ * definition for the Barcode component.
12
+ *
13
+ * @example
14
+ *
15
+ * ```ts-no-run
16
+ * // Import the Barcode module
17
+ * import { BarcodeModule } from '@progress/kendo-angular-barcodes';
18
+ *
19
+ * // The browser platform with a compiler
20
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
21
+ *
22
+ * import { NgModule } from '@angular/core';
23
+ *
24
+ * // Import the app component
25
+ * import { AppComponent } from './app.component';
26
+ *
27
+ * // Define the app module
28
+ * _@NgModule({
29
+ * declarations: [AppComponent], // declare app component
30
+ * imports: [BrowserModule, BarcodeModule], // import Barcode module
31
+ * bootstrap: [AppComponent]
32
+ * })
33
+ * export class AppModule {}
34
+ *
35
+ * // Compile and launch the module
36
+ * platformBrowserDynamic().bootstrapModule(AppModule);
37
+ *
38
+ * ```
39
+ */
40
+ let BarcodeModule = class BarcodeModule {
41
+ };
42
+ BarcodeModule = tslib_1.__decorate([
43
+ NgModule({
44
+ declarations: [BarcodeComponent],
45
+ imports: [ResizeSensorModule],
46
+ exports: [BarcodeComponent]
47
+ })
48
+ ], BarcodeModule);
49
+ export { BarcodeModule };
@@ -2,9 +2,6 @@
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 * as i0 from "@angular/core";
6
- import * as i1 from "./barcode.module";
7
- import * as i2 from "./qrcode.module";
8
5
  /**
9
6
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
10
7
  * definition for the Barcode and QR Code components.
@@ -37,7 +34,4 @@ import * as i2 from "./qrcode.module";
37
34
  * ```
38
35
  */
39
36
  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
37
  }
@@ -0,0 +1,47 @@
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 tslib_1 from "tslib";
6
+ import { NgModule } from '@angular/core';
7
+ import { BarcodeModule } from './barcode.module';
8
+ import { QRCodeModule } from './qrcode.module';
9
+ /**
10
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
11
+ * definition for the Barcode and QR Code components.
12
+ *
13
+ * @example
14
+ *
15
+ * ```ts-no-run
16
+ * // Import the Barcodes module
17
+ * import { BarcodesModule } from '@progress/kendo-angular-barcodes';
18
+ *
19
+ * // The browser platform with a compiler
20
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
21
+ *
22
+ * import { NgModule } from '@angular/core';
23
+ *
24
+ * // Import the app component
25
+ * import { AppComponent } from './app.component';
26
+ *
27
+ * // Define the app module
28
+ * _@NgModule({
29
+ * declarations: [AppComponent], // declare app component
30
+ * imports: [BrowserModule, BarcodesModule], // import Barcodes module
31
+ * bootstrap: [AppComponent]
32
+ * })
33
+ * export class AppModule {}
34
+ *
35
+ * // Compile and launch the module
36
+ * platformBrowserDynamic().bootstrapModule(AppModule);
37
+ *
38
+ * ```
39
+ */
40
+ let BarcodesModule = class BarcodesModule {
41
+ };
42
+ BarcodesModule = tslib_1.__decorate([
43
+ NgModule({
44
+ exports: [BarcodeModule, QRCodeModule]
45
+ })
46
+ ], BarcodesModule);
47
+ export { BarcodesModule };
@@ -4,7 +4,6 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { AfterViewInit, ElementRef, NgZone, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
6
6
  import { Group, ImageExportOptions, SVGExportOptions } from '@progress/kendo-drawing';
7
- import * as i0 from "@angular/core";
8
7
  /**
9
8
  * @hidden
10
9
  */
@@ -15,9 +14,9 @@ export declare abstract class BaseComponent implements OnChanges, AfterViewInit
15
14
  resizeRateLimit: number;
16
15
  surfaceElement: ElementRef;
17
16
  protected instance: any;
18
- protected abstract get options(): any;
19
- protected get autoResize(): boolean;
20
- protected get canRender(): boolean;
17
+ protected abstract readonly options: any;
18
+ protected readonly autoResize: boolean;
19
+ protected readonly canRender: boolean;
21
20
  constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
22
21
  ngAfterViewInit(): void;
23
22
  ngOnChanges(changes: SimpleChanges): void;
@@ -53,6 +52,4 @@ export declare abstract class BaseComponent implements OnChanges, AfterViewInit
53
52
  protected abstract createInstance(element: any, options: any): any;
54
53
  protected refresh(): void;
55
54
  protected isDevMode(): boolean;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
57
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent, never, never, { "resizeRateLimit": "resizeRateLimit"; }, {}, never>;
58
55
  }
@@ -2,12 +2,12 @@
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 { Directive, Input, isDevMode, ViewChild } from '@angular/core';
5
+ import * as tslib_1 from "tslib";
6
+ import { ElementRef, Input, isDevMode, ViewChild } from '@angular/core';
6
7
  import { isDocumentAvailable } from '@progress/kendo-angular-common';
7
8
  import { exportImage, exportSVG } from '@progress/kendo-drawing';
8
9
  import { validatePackage } from '@progress/kendo-licensing';
9
10
  import { packageMetadata } from './package-metadata';
10
- import * as i0 from "@angular/core";
11
11
  /**
12
12
  * @hidden
13
13
  */
@@ -95,13 +95,11 @@ export class BaseComponent {
95
95
  return isDevMode();
96
96
  }
97
97
  }
98
- BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BaseComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
99
- BaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BaseComponent, inputs: { resizeRateLimit: "resizeRateLimit" }, viewQueries: [{ propertyName: "surfaceElement", first: true, predicate: ["surface"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0 });
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BaseComponent, decorators: [{
101
- type: Directive
102
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { resizeRateLimit: [{
103
- type: Input
104
- }], surfaceElement: [{
105
- type: ViewChild,
106
- args: ['surface', { static: true }]
107
- }] } });
98
+ tslib_1.__decorate([
99
+ Input(),
100
+ tslib_1.__metadata("design:type", Number)
101
+ ], BaseComponent.prototype, "resizeRateLimit", void 0);
102
+ tslib_1.__decorate([
103
+ ViewChild('surface', { static: true }),
104
+ tslib_1.__metadata("design:type", ElementRef)
105
+ ], BaseComponent.prototype, "surfaceElement", void 0);
@@ -6,7 +6,7 @@ import { Border, Margin, Padding, RenderMode } from './field-types';
6
6
  /**
7
7
  * Supported symbologies (encodings) for the Barcode component.
8
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' | 'ean8' | 'ean13' | 'upce' | 'upca' | 'code11' | 'code39' | 'code39extended' | 'code93' | 'code93extended' | 'code128' | 'code128a' | 'code128b' | 'code128c' | 'gs1-128' | 'msimod10' | 'msimod11' | 'msimod1010' | 'msimod1110' | 'postnet';
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
10
  /**
11
11
  * The Barcode text label configuration.
12
12
  */
@@ -0,0 +1,4 @@
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
+ *-------------------------------------------------------------------------------------------*/
@@ -0,0 +1,4 @@
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
+ *-------------------------------------------------------------------------------------------*/
@@ -6,7 +6,7 @@ import { Border, Padding, RenderMode } from './field-types';
6
6
  /**
7
7
  * The QR Code encoding modes.
8
8
  */
9
- export declare type QRCodeEncoding = 'ISO_8859_1' | 'UTF_8' | 'iso_8859_1' | 'utf_8';
9
+ export declare type QRCodeEncoding = 'ISO_8859_1' | 'UTF_8';
10
10
  /**
11
11
  * The QR Code error correction levels.
12
12
  *
@@ -15,7 +15,7 @@ export declare type QRCodeEncoding = 'ISO_8859_1' | 'UTF_8' | 'iso_8859_1' | 'ut
15
15
  * * `"Q"`&mdash;Approximately 25% of the codewords can be restored.
16
16
  * * `"H"`&mdash;Approximately 30% of the codewords can be restored.
17
17
  */
18
- export declare type QRCodeErrorCorrection = 'L' | 'M' | 'Q' | 'H' | 'l' | 'm' | 'q' | 'h';
18
+ export declare type QRCodeErrorCorrection = 'L' | 'M' | 'Q' | 'H';
19
19
  /**
20
20
  * The image overlay configuration of the QR Code.
21
21
  */
@@ -0,0 +1,4 @@
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
+ *-------------------------------------------------------------------------------------------*/
@@ -0,0 +1,4 @@
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,5 +5,5 @@
5
5
  /**
6
6
  * Generated bundle index. Do not edit.
7
7
  */
8
- /// <amd-module name="@progress/kendo-angular-barcodes" />
9
8
  export * from './main';
9
+ export { BaseComponent } from './base.component';
@@ -0,0 +1,9 @@
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
+ /**
6
+ * Generated bundle index. Do not edit.
7
+ */
8
+ export * from './main';
9
+ export { BaseComponent } from './base.component';