@progress/kendo-angular-barcodes 0.2.3 → 1.0.0-next.202203150945
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/bundles/kendo-angular-barcodes.umd.js +5 -0
- package/package.json +34 -101
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/dist/cdn/js/kendo-angular-barcodes.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/barcode-validator.js +0 -51
- package/dist/es/barcode.component.js +0 -149
- package/dist/es/barcode.module.js +0 -52
- package/dist/es/barcodes.module.js +0 -50
- package/dist/es/base.component.js +0 -117
- package/dist/es/chart-types/barcode-types.js +0 -4
- package/dist/es/chart-types/field-types.js +0 -4
- package/dist/es/chart-types/qrcode-types.js +0 -4
- package/dist/es/chart-types.js +0 -4
- package/dist/es/index.js +0 -9
- package/dist/es/main.js +0 -11
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/qrcode-validator.js +0 -45
- package/dist/es/qrcode.component.js +0 -147
- package/dist/es/qrcode.module.js +0 -52
- package/dist/es2015/barcode-validator.d.ts +0 -28
- package/dist/es2015/barcode-validator.js +0 -51
- package/dist/es2015/barcode.component.d.ts +0 -312
- package/dist/es2015/barcode.component.js +0 -144
- package/dist/es2015/barcode.module.d.ts +0 -37
- package/dist/es2015/barcode.module.js +0 -49
- package/dist/es2015/barcodes.module.d.ts +0 -37
- package/dist/es2015/barcodes.module.js +0 -47
- package/dist/es2015/base.component.d.ts +0 -55
- package/dist/es2015/base.component.js +0 -105
- package/dist/es2015/chart-types/barcode-types.d.ts +0 -109
- package/dist/es2015/chart-types/barcode-types.js +0 -4
- package/dist/es2015/chart-types/field-types.d.ts +0 -75
- package/dist/es2015/chart-types/field-types.js +0 -4
- package/dist/es2015/chart-types/qrcode-types.d.ts +0 -124
- package/dist/es2015/chart-types/qrcode-types.js +0 -4
- package/dist/es2015/chart-types.d.ts +0 -7
- package/dist/es2015/chart-types.js +0 -4
- package/dist/es2015/index.d.ts +0 -9
- package/dist/es2015/index.js +0 -9
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.d.ts +0 -12
- package/dist/es2015/main.js +0 -11
- package/dist/es2015/package-metadata.d.ts +0 -9
- package/dist/es2015/package-metadata.js +0 -15
- package/dist/es2015/qrcode-validator.d.ts +0 -26
- package/dist/es2015/qrcode-validator.js +0 -44
- package/dist/es2015/qrcode.component.d.ts +0 -289
- package/dist/es2015/qrcode.component.js +0 -142
- package/dist/es2015/qrcode.module.d.ts +0 -37
- package/dist/es2015/qrcode.module.js +0 -49
- package/dist/fesm2015/index.js +0 -598
- package/dist/fesm5/index.js +0 -629
- package/dist/npm/barcode-validator.js +0 -53
- package/dist/npm/barcode.component.js +0 -151
- package/dist/npm/barcode.module.js +0 -54
- package/dist/npm/barcodes.module.js +0 -52
- package/dist/npm/base.component.js +0 -119
- package/dist/npm/chart-types/barcode-types.js +0 -6
- package/dist/npm/chart-types/field-types.js +0 -6
- package/dist/npm/chart-types/qrcode-types.js +0 -6
- package/dist/npm/chart-types.js +0 -6
- package/dist/npm/index.js +0 -13
- package/dist/npm/main.js +0 -20
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/qrcode-validator.js +0 -47
- package/dist/npm/qrcode.component.js +0 -149
- package/dist/npm/qrcode.module.js +0 -54
- package/dist/systemjs/kendo-angular-barcodes.js +0 -5
|
@@ -1,142 +0,0 @@
|
|
|
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
|
-
const DEFAULT_COLOR = '#000';
|
|
11
|
-
const DEFAULT_BACKGROUND = '#fff';
|
|
12
|
-
const 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
|
-
let QRCodeComponent = class QRCodeComponent extends BaseComponent {
|
|
32
|
-
constructor(element, renderer, ngZone) {
|
|
33
|
-
super(element, renderer, ngZone);
|
|
34
|
-
this.element = element;
|
|
35
|
-
this.renderer = renderer;
|
|
36
|
-
this.ngZone = ngZone;
|
|
37
|
-
/**
|
|
38
|
-
* Limits the automatic resizing of the QR Code. Sets the maximum number of times per second
|
|
39
|
-
* that the component redraws its content when the size of its container changes.
|
|
40
|
-
* Defaults to `10`. To disable the automatic resizing, set it to `0`.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* _@Component({
|
|
45
|
-
* selector: 'my-app',
|
|
46
|
-
* template: `
|
|
47
|
-
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
48
|
-
* [resizeRateLimit]="2">
|
|
49
|
-
* </kendo-qrcode>
|
|
50
|
-
* `
|
|
51
|
-
* })
|
|
52
|
-
* export class AppComponent {
|
|
53
|
-
* }
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
this.resizeRateLimit = 10;
|
|
57
|
-
}
|
|
58
|
-
get options() {
|
|
59
|
-
return {
|
|
60
|
-
background: this.background || DEFAULT_BACKGROUND,
|
|
61
|
-
border: this.border,
|
|
62
|
-
color: this.color || DEFAULT_COLOR,
|
|
63
|
-
encoding: this.encoding,
|
|
64
|
-
errorCorrection: this.errorCorrection || DEFAULT_ERROR_CORRECTION,
|
|
65
|
-
overlay: this.overlay || {},
|
|
66
|
-
padding: this.padding,
|
|
67
|
-
renderAs: this.renderAs,
|
|
68
|
-
size: this.size,
|
|
69
|
-
value: this.value
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
createInstance(element, options) {
|
|
73
|
-
return new QRCode(element, options, this.onError.bind(this));
|
|
74
|
-
}
|
|
75
|
-
onError(error) {
|
|
76
|
-
error.name = packageMetadata.productName + ' QRCode';
|
|
77
|
-
if (this.isDevMode()) {
|
|
78
|
-
throw error;
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
console.warn(error);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
tslib_1.__decorate([
|
|
86
|
-
Input(),
|
|
87
|
-
tslib_1.__metadata("design:type", String)
|
|
88
|
-
], QRCodeComponent.prototype, "background", void 0);
|
|
89
|
-
tslib_1.__decorate([
|
|
90
|
-
Input(),
|
|
91
|
-
tslib_1.__metadata("design:type", Object)
|
|
92
|
-
], QRCodeComponent.prototype, "border", void 0);
|
|
93
|
-
tslib_1.__decorate([
|
|
94
|
-
Input(),
|
|
95
|
-
tslib_1.__metadata("design:type", String)
|
|
96
|
-
], QRCodeComponent.prototype, "color", void 0);
|
|
97
|
-
tslib_1.__decorate([
|
|
98
|
-
Input(),
|
|
99
|
-
tslib_1.__metadata("design:type", String)
|
|
100
|
-
], QRCodeComponent.prototype, "encoding", void 0);
|
|
101
|
-
tslib_1.__decorate([
|
|
102
|
-
Input(),
|
|
103
|
-
tslib_1.__metadata("design:type", String)
|
|
104
|
-
], QRCodeComponent.prototype, "errorCorrection", void 0);
|
|
105
|
-
tslib_1.__decorate([
|
|
106
|
-
Input(),
|
|
107
|
-
tslib_1.__metadata("design:type", Object)
|
|
108
|
-
], QRCodeComponent.prototype, "overlay", void 0);
|
|
109
|
-
tslib_1.__decorate([
|
|
110
|
-
Input(),
|
|
111
|
-
tslib_1.__metadata("design:type", Number)
|
|
112
|
-
], QRCodeComponent.prototype, "padding", void 0);
|
|
113
|
-
tslib_1.__decorate([
|
|
114
|
-
Input(),
|
|
115
|
-
tslib_1.__metadata("design:type", String)
|
|
116
|
-
], QRCodeComponent.prototype, "renderAs", void 0);
|
|
117
|
-
tslib_1.__decorate([
|
|
118
|
-
Input(),
|
|
119
|
-
tslib_1.__metadata("design:type", Object)
|
|
120
|
-
], QRCodeComponent.prototype, "size", void 0);
|
|
121
|
-
tslib_1.__decorate([
|
|
122
|
-
Input(),
|
|
123
|
-
tslib_1.__metadata("design:type", Object)
|
|
124
|
-
], QRCodeComponent.prototype, "value", void 0);
|
|
125
|
-
tslib_1.__decorate([
|
|
126
|
-
Input(),
|
|
127
|
-
tslib_1.__metadata("design:type", Number)
|
|
128
|
-
], QRCodeComponent.prototype, "resizeRateLimit", void 0);
|
|
129
|
-
QRCodeComponent = tslib_1.__decorate([
|
|
130
|
-
Component({
|
|
131
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
132
|
-
selector: 'kendo-qrcode',
|
|
133
|
-
exportAs: 'kendoQRCode',
|
|
134
|
-
template: `
|
|
135
|
-
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
136
|
-
`
|
|
137
|
-
}),
|
|
138
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
139
|
-
Renderer2,
|
|
140
|
-
NgZone])
|
|
141
|
-
], QRCodeComponent);
|
|
142
|
-
export { QRCodeComponent };
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
7
|
-
* definition for the QR Code component.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
*
|
|
11
|
-
* ```ts-no-run
|
|
12
|
-
* // Import the QR Code module
|
|
13
|
-
* import { QRCodeModule } from '@progress/kendo-angular-barcodes';
|
|
14
|
-
*
|
|
15
|
-
* // The browser platform with a compiler
|
|
16
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
17
|
-
*
|
|
18
|
-
* import { NgModule } from '@angular/core';
|
|
19
|
-
*
|
|
20
|
-
* // Import the app component
|
|
21
|
-
* import { AppComponent } from './app.component';
|
|
22
|
-
*
|
|
23
|
-
* // Define the app module
|
|
24
|
-
* _@NgModule({
|
|
25
|
-
* declarations: [AppComponent], // declare app component
|
|
26
|
-
* imports: [BrowserModule, QRCodeModule], // import QRCodeModule module
|
|
27
|
-
* bootstrap: [AppComponent]
|
|
28
|
-
* })
|
|
29
|
-
* export class AppModule {}
|
|
30
|
-
*
|
|
31
|
-
* // Compile and launch the module
|
|
32
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
33
|
-
*
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export declare class QRCodeModule {
|
|
37
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
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 { QRCodeComponent } from './qrcode.component';
|
|
9
|
-
/**
|
|
10
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
11
|
-
* definition for the QR Code component.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* ```ts-no-run
|
|
16
|
-
* // Import the QR Code module
|
|
17
|
-
* import { QRCodeModule } 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, QRCodeModule], // import QRCodeModule 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 QRCodeModule = class QRCodeModule {
|
|
41
|
-
};
|
|
42
|
-
QRCodeModule = tslib_1.__decorate([
|
|
43
|
-
NgModule({
|
|
44
|
-
declarations: [QRCodeComponent],
|
|
45
|
-
imports: [ResizeSensorModule],
|
|
46
|
-
exports: [QRCodeComponent]
|
|
47
|
-
})
|
|
48
|
-
], QRCodeModule);
|
|
49
|
-
export { QRCodeModule };
|