@progress/kendo-angular-barcodes 0.1.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/LICENSE.md +11 -0
- package/NOTICE.txt +614 -0
- package/README.md +31 -0
- package/dist/cdn/js/kendo-angular-barcodes.js +20 -0
- package/dist/cdn/main.js +5 -0
- package/dist/es/barcode.component.js +139 -0
- package/dist/es/barcode.module.js +52 -0
- package/dist/es/barcodes.module.js +50 -0
- package/dist/es/base.component.js +114 -0
- package/dist/es/chart-types/barcode-types.js +4 -0
- package/dist/es/chart-types/field-types.js +4 -0
- package/dist/es/chart-types/qrcode-types.js +4 -0
- package/dist/es/chart-types.js +4 -0
- package/dist/es/index.js +9 -0
- package/dist/es/main.js +9 -0
- package/dist/es/package-metadata.js +15 -0
- package/dist/es/qrcode.component.js +137 -0
- package/dist/es/qrcode.module.js +52 -0
- package/dist/es2015/barcode.component.d.ts +311 -0
- package/dist/es2015/barcode.component.js +134 -0
- package/dist/es2015/barcode.module.d.ts +37 -0
- package/dist/es2015/barcode.module.js +49 -0
- package/dist/es2015/barcodes.module.d.ts +37 -0
- package/dist/es2015/barcodes.module.js +47 -0
- package/dist/es2015/base.component.d.ts +54 -0
- package/dist/es2015/base.component.js +102 -0
- package/dist/es2015/chart-types/barcode-types.d.ts +109 -0
- package/dist/es2015/chart-types/barcode-types.js +4 -0
- package/dist/es2015/chart-types/field-types.d.ts +59 -0
- package/dist/es2015/chart-types/field-types.js +4 -0
- package/dist/es2015/chart-types/qrcode-types.d.ts +124 -0
- package/dist/es2015/chart-types/qrcode-types.js +4 -0
- package/dist/es2015/chart-types.d.ts +7 -0
- package/dist/es2015/chart-types.js +4 -0
- package/dist/es2015/index.d.ts +9 -0
- package/dist/es2015/index.js +9 -0
- package/dist/es2015/index.metadata.json +1 -0
- package/dist/es2015/main.d.ts +10 -0
- package/dist/es2015/main.js +9 -0
- package/dist/es2015/package-metadata.d.ts +9 -0
- package/dist/es2015/package-metadata.js +15 -0
- package/dist/es2015/qrcode.component.d.ts +288 -0
- package/dist/es2015/qrcode.component.js +132 -0
- package/dist/es2015/qrcode.module.d.ts +37 -0
- package/dist/es2015/qrcode.module.js +49 -0
- package/dist/fesm2015/index.js +492 -0
- package/dist/fesm5/index.js +522 -0
- package/dist/npm/barcode.component.js +141 -0
- package/dist/npm/barcode.module.js +54 -0
- package/dist/npm/barcodes.module.js +52 -0
- package/dist/npm/base.component.js +116 -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 +16 -0
- package/dist/npm/package-metadata.js +17 -0
- package/dist/npm/qrcode.component.js +139 -0
- package/dist/npm/qrcode.module.js +54 -0
- package/dist/systemjs/kendo-angular-barcodes.js +5 -0
- package/package.json +154 -0
- package/schematics/collection.json +12 -0
- package/schematics/ngAdd/index.js +18 -0
- package/schematics/ngAdd/index.js.map +1 -0
- package/schematics/ngAdd/schema.json +28 -0
|
@@ -0,0 +1,288 @@
|
|
|
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 { QRCode, QRCodeOptions } from '@progress/kendo-charts';
|
|
7
|
+
import { BaseComponent } from './base.component';
|
|
8
|
+
import { Border, QRCodeEncoding, QRCodeErrorCorrection, QRCodeOverlay, RenderMode } from './chart-types';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the Kendo UI QR Code component for Angular.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { Component } from '@angular/core';
|
|
15
|
+
*
|
|
16
|
+
* _@Component({
|
|
17
|
+
* selector: 'my-app',
|
|
18
|
+
* template: `
|
|
19
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui">
|
|
20
|
+
* </kendo-qrcode>
|
|
21
|
+
* `
|
|
22
|
+
* })
|
|
23
|
+
* export class AppComponent {
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class QRCodeComponent extends BaseComponent {
|
|
28
|
+
protected element: ElementRef;
|
|
29
|
+
protected renderer: Renderer2;
|
|
30
|
+
protected ngZone: NgZone;
|
|
31
|
+
/**
|
|
32
|
+
* The background color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
|
|
33
|
+
*
|
|
34
|
+
* @default "white"
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts-preview
|
|
38
|
+
* import { Component } from '@angular/core';
|
|
39
|
+
*
|
|
40
|
+
* _@Component({
|
|
41
|
+
* selector: 'my-app',
|
|
42
|
+
* template: `
|
|
43
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
44
|
+
* background="#fc0">
|
|
45
|
+
* </kendo-qrcode>
|
|
46
|
+
* `
|
|
47
|
+
* })
|
|
48
|
+
* export class AppComponent {
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
background?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The border of the QR Code.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts-preview
|
|
58
|
+
* import { Component } from '@angular/core';
|
|
59
|
+
* import { Border } from '@progress/kendo-angular-barcodes';
|
|
60
|
+
*
|
|
61
|
+
* _@Component({
|
|
62
|
+
* selector: 'my-app',
|
|
63
|
+
* template: `
|
|
64
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
65
|
+
* [border]="qrcodeBorder" [padding]="5">
|
|
66
|
+
* </kendo-qrcode>
|
|
67
|
+
* `
|
|
68
|
+
* })
|
|
69
|
+
* export class AppComponent {
|
|
70
|
+
* qrcodeBorder: Border = {
|
|
71
|
+
* color: '#fc0',
|
|
72
|
+
* width: 2
|
|
73
|
+
* };
|
|
74
|
+
* }
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
border?: Border;
|
|
78
|
+
/**
|
|
79
|
+
* The color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
|
|
80
|
+
*
|
|
81
|
+
* @default "black"
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts-preview
|
|
85
|
+
* _@Component({
|
|
86
|
+
* selector: 'my-app',
|
|
87
|
+
* template: `
|
|
88
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
89
|
+
* color="#fc0">
|
|
90
|
+
* </kendo-qrcode>
|
|
91
|
+
* `
|
|
92
|
+
* })
|
|
93
|
+
* export class AppComponent {
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
color?: string;
|
|
98
|
+
/**
|
|
99
|
+
* The encoding mode used to encode the value.
|
|
100
|
+
*
|
|
101
|
+
* > **Important** The UTF-8 encoding is not included in the specifications and is not supported by all readers.
|
|
102
|
+
*
|
|
103
|
+
* The possible values are:
|
|
104
|
+
* * `"ISO_8859_1"`—Supports all characters from the [ISO/IEC 8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) character set.
|
|
105
|
+
* * `"UTF_8"`—Supports all [Unicode](https://en.wikipedia.org/wiki/List_of_Unicode_characters) characters.
|
|
106
|
+
*
|
|
107
|
+
* @default "ISO_8859_1"
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts-preview
|
|
111
|
+
* _@Component({
|
|
112
|
+
* selector: 'my-app',
|
|
113
|
+
* template: `
|
|
114
|
+
* <kendo-qrcode value="АБВ" encoding="UTF_8">
|
|
115
|
+
* </kendo-qrcode>
|
|
116
|
+
* `
|
|
117
|
+
* })
|
|
118
|
+
* export class AppComponent {
|
|
119
|
+
* }
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
encoding?: QRCodeEncoding;
|
|
123
|
+
/**
|
|
124
|
+
* The error correction level to use.
|
|
125
|
+
*
|
|
126
|
+
* The possible values are:
|
|
127
|
+
* * `"L"`—Approximately 7% of the codewords can be restored.
|
|
128
|
+
* * `"M"`—Approximately 15% of the codewords can be restored.
|
|
129
|
+
* * `"Q"`—Approximately 25% of the codewords can be restored.
|
|
130
|
+
* * `"H"`—Approximately 30% of the codewords can be restored.
|
|
131
|
+
*
|
|
132
|
+
* @default "L"
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts-preview
|
|
136
|
+
* _@Component({
|
|
137
|
+
* selector: 'my-app',
|
|
138
|
+
* template: `
|
|
139
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
140
|
+
* errorCorrection="Q">
|
|
141
|
+
* </kendo-qrcode>
|
|
142
|
+
* `
|
|
143
|
+
* })
|
|
144
|
+
* export class AppComponent {
|
|
145
|
+
* }
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
errorCorrection?: QRCodeErrorCorrection;
|
|
149
|
+
/**
|
|
150
|
+
* An optional image overlay that will placed over the QR Code.
|
|
151
|
+
*
|
|
152
|
+
* > **Note** Always test if the code reads correctly with the applied overlay.
|
|
153
|
+
* > 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"`.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```ts-preview
|
|
157
|
+
* import { QRCodeOverlay } from '@progress/kendo-angular-barcodes';
|
|
158
|
+
*
|
|
159
|
+
* _@Component({
|
|
160
|
+
* selector: 'my-app',
|
|
161
|
+
* template: `
|
|
162
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
163
|
+
* [overlay]="qrcodeOverlay">
|
|
164
|
+
* </kendo-qrcode>
|
|
165
|
+
* `
|
|
166
|
+
* })
|
|
167
|
+
* export class AppComponent {
|
|
168
|
+
* qrcodeOverlay: QRCodeOverlay = {
|
|
169
|
+
* type: 'swiss'
|
|
170
|
+
* };
|
|
171
|
+
* }
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
overlay?: QRCodeOverlay;
|
|
175
|
+
/**
|
|
176
|
+
* The padding of the QR Code. A numeric value sets all paddings.
|
|
177
|
+
*
|
|
178
|
+
* @default 0
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```ts-preview
|
|
182
|
+
* import { Component } from '@angular/core';
|
|
183
|
+
*
|
|
184
|
+
* _@Component({
|
|
185
|
+
* selector: 'my-app',
|
|
186
|
+
* template: `
|
|
187
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
188
|
+
* [padding]="10" background="#fc0">
|
|
189
|
+
* </kendo-qrcode>
|
|
190
|
+
* `
|
|
191
|
+
* })
|
|
192
|
+
* export class AppComponent {
|
|
193
|
+
* }
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
padding?: number;
|
|
197
|
+
/**
|
|
198
|
+
* Sets the preferred rendering mode of the QR Code.
|
|
199
|
+
*
|
|
200
|
+
* The supported values are:
|
|
201
|
+
* * `"canvas"`—Renders the component as a Canvas element.
|
|
202
|
+
* * `"svg"`—Renders the component as an inline SVG document.
|
|
203
|
+
*
|
|
204
|
+
* @default "svg"
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* ```ts-preview
|
|
208
|
+
* _@Component({
|
|
209
|
+
* selector: 'my-app',
|
|
210
|
+
* template: `
|
|
211
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
212
|
+
* renderAs="canvas">
|
|
213
|
+
* </kendo-qrcode>
|
|
214
|
+
* `
|
|
215
|
+
* })
|
|
216
|
+
* export class AppComponent {
|
|
217
|
+
* }
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
220
|
+
renderAs?: RenderMode;
|
|
221
|
+
/**
|
|
222
|
+
* Specifies the size of a QR Code. Numeric values are treated as pixels.
|
|
223
|
+
*
|
|
224
|
+
* If no size is specified, the size will be determined from the element width and height.
|
|
225
|
+
* If the element has width or height of zero, a default value of 200 pixels will be used.
|
|
226
|
+
*
|
|
227
|
+
* @default "200px"
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* ```ts-preview
|
|
231
|
+
* _@Component({
|
|
232
|
+
* selector: 'my-app',
|
|
233
|
+
* template: `
|
|
234
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
235
|
+
* [size]="200">
|
|
236
|
+
* </kendo-qrcode>
|
|
237
|
+
*
|
|
238
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
239
|
+
* style="width: 200px; height: 200px;">
|
|
240
|
+
* </kendo-qrcode>
|
|
241
|
+
* `
|
|
242
|
+
* })
|
|
243
|
+
* export class AppComponent {
|
|
244
|
+
* }
|
|
245
|
+
* ```
|
|
246
|
+
*/
|
|
247
|
+
size?: number | string;
|
|
248
|
+
/**
|
|
249
|
+
* The value of the QR Code.
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
* ```ts-preview
|
|
253
|
+
* _@Component({
|
|
254
|
+
* selector: 'my-app',
|
|
255
|
+
* template: `
|
|
256
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui">
|
|
257
|
+
* </kendo-qrcode>
|
|
258
|
+
* `
|
|
259
|
+
* })
|
|
260
|
+
* export class AppComponent {
|
|
261
|
+
* }
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
value: number | string;
|
|
265
|
+
/**
|
|
266
|
+
* Limits the automatic resizing of the QR Code. Sets the maximum number of times per second
|
|
267
|
+
* that the component redraws its content when the size of its container changes.
|
|
268
|
+
* Defaults to `10`. To disable the automatic resizing, set it to `0`.
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* ```ts
|
|
272
|
+
* _@Component({
|
|
273
|
+
* selector: 'my-app',
|
|
274
|
+
* template: `
|
|
275
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
276
|
+
* [resizeRateLimit]="2">
|
|
277
|
+
* </kendo-qrcode>
|
|
278
|
+
* `
|
|
279
|
+
* })
|
|
280
|
+
* export class AppComponent {
|
|
281
|
+
* }
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
resizeRateLimit: number;
|
|
285
|
+
protected readonly options: QRCodeOptions;
|
|
286
|
+
constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
|
|
287
|
+
protected createInstance(element: any, options: any): QRCode;
|
|
288
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
const DEFAULT_COLOR = '#000';
|
|
10
|
+
const DEFAULT_BACKGROUND = '#fff';
|
|
11
|
+
const DEFAULT_ERROR_CORRECTION = 'L';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the Kendo UI QR Code component for Angular.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { Component } from '@angular/core';
|
|
18
|
+
*
|
|
19
|
+
* _@Component({
|
|
20
|
+
* selector: 'my-app',
|
|
21
|
+
* template: `
|
|
22
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui">
|
|
23
|
+
* </kendo-qrcode>
|
|
24
|
+
* `
|
|
25
|
+
* })
|
|
26
|
+
* export class AppComponent {
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
let QRCodeComponent = class QRCodeComponent extends BaseComponent {
|
|
31
|
+
constructor(element, renderer, ngZone) {
|
|
32
|
+
super(element, renderer, ngZone);
|
|
33
|
+
this.element = element;
|
|
34
|
+
this.renderer = renderer;
|
|
35
|
+
this.ngZone = ngZone;
|
|
36
|
+
/**
|
|
37
|
+
* Limits the automatic resizing of the QR Code. Sets the maximum number of times per second
|
|
38
|
+
* that the component redraws its content when the size of its container changes.
|
|
39
|
+
* Defaults to `10`. To disable the automatic resizing, set it to `0`.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* _@Component({
|
|
44
|
+
* selector: 'my-app',
|
|
45
|
+
* template: `
|
|
46
|
+
* <kendo-qrcode value="https://www.telerik.com/kendo-angular-ui"
|
|
47
|
+
* [resizeRateLimit]="2">
|
|
48
|
+
* </kendo-qrcode>
|
|
49
|
+
* `
|
|
50
|
+
* })
|
|
51
|
+
* export class AppComponent {
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
this.resizeRateLimit = 10;
|
|
56
|
+
}
|
|
57
|
+
get options() {
|
|
58
|
+
return {
|
|
59
|
+
background: this.background || DEFAULT_BACKGROUND,
|
|
60
|
+
border: this.border,
|
|
61
|
+
color: this.color || DEFAULT_COLOR,
|
|
62
|
+
encoding: this.encoding,
|
|
63
|
+
errorCorrection: this.errorCorrection || DEFAULT_ERROR_CORRECTION,
|
|
64
|
+
overlay: this.overlay || {},
|
|
65
|
+
padding: this.padding,
|
|
66
|
+
renderAs: this.renderAs,
|
|
67
|
+
size: this.size,
|
|
68
|
+
value: this.value
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
createInstance(element, options) {
|
|
72
|
+
return new QRCode(element, options);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
tslib_1.__decorate([
|
|
76
|
+
Input(),
|
|
77
|
+
tslib_1.__metadata("design:type", String)
|
|
78
|
+
], QRCodeComponent.prototype, "background", void 0);
|
|
79
|
+
tslib_1.__decorate([
|
|
80
|
+
Input(),
|
|
81
|
+
tslib_1.__metadata("design:type", Object)
|
|
82
|
+
], QRCodeComponent.prototype, "border", void 0);
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
Input(),
|
|
85
|
+
tslib_1.__metadata("design:type", String)
|
|
86
|
+
], QRCodeComponent.prototype, "color", void 0);
|
|
87
|
+
tslib_1.__decorate([
|
|
88
|
+
Input(),
|
|
89
|
+
tslib_1.__metadata("design:type", String)
|
|
90
|
+
], QRCodeComponent.prototype, "encoding", void 0);
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
Input(),
|
|
93
|
+
tslib_1.__metadata("design:type", String)
|
|
94
|
+
], QRCodeComponent.prototype, "errorCorrection", void 0);
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
Input(),
|
|
97
|
+
tslib_1.__metadata("design:type", Object)
|
|
98
|
+
], QRCodeComponent.prototype, "overlay", void 0);
|
|
99
|
+
tslib_1.__decorate([
|
|
100
|
+
Input(),
|
|
101
|
+
tslib_1.__metadata("design:type", Number)
|
|
102
|
+
], QRCodeComponent.prototype, "padding", void 0);
|
|
103
|
+
tslib_1.__decorate([
|
|
104
|
+
Input(),
|
|
105
|
+
tslib_1.__metadata("design:type", String)
|
|
106
|
+
], QRCodeComponent.prototype, "renderAs", void 0);
|
|
107
|
+
tslib_1.__decorate([
|
|
108
|
+
Input(),
|
|
109
|
+
tslib_1.__metadata("design:type", Object)
|
|
110
|
+
], QRCodeComponent.prototype, "size", void 0);
|
|
111
|
+
tslib_1.__decorate([
|
|
112
|
+
Input(),
|
|
113
|
+
tslib_1.__metadata("design:type", Object)
|
|
114
|
+
], QRCodeComponent.prototype, "value", void 0);
|
|
115
|
+
tslib_1.__decorate([
|
|
116
|
+
Input(),
|
|
117
|
+
tslib_1.__metadata("design:type", Number)
|
|
118
|
+
], QRCodeComponent.prototype, "resizeRateLimit", void 0);
|
|
119
|
+
QRCodeComponent = tslib_1.__decorate([
|
|
120
|
+
Component({
|
|
121
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
122
|
+
selector: 'kendo-qrcode',
|
|
123
|
+
exportAs: 'kendoQRCode',
|
|
124
|
+
template: `
|
|
125
|
+
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
126
|
+
`
|
|
127
|
+
}),
|
|
128
|
+
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
129
|
+
Renderer2,
|
|
130
|
+
NgZone])
|
|
131
|
+
], QRCodeComponent);
|
|
132
|
+
export { QRCodeComponent };
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
}
|
|
@@ -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 { 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 };
|