@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.
Files changed (70) hide show
  1. package/bundles/kendo-angular-barcodes.umd.js +5 -0
  2. package/package.json +34 -101
  3. package/schematics/ngAdd/index.js +5 -2
  4. package/schematics/ngAdd/index.js.map +1 -1
  5. package/dist/cdn/js/kendo-angular-barcodes.js +0 -20
  6. package/dist/cdn/main.js +0 -5
  7. package/dist/es/barcode-validator.js +0 -51
  8. package/dist/es/barcode.component.js +0 -149
  9. package/dist/es/barcode.module.js +0 -52
  10. package/dist/es/barcodes.module.js +0 -50
  11. package/dist/es/base.component.js +0 -117
  12. package/dist/es/chart-types/barcode-types.js +0 -4
  13. package/dist/es/chart-types/field-types.js +0 -4
  14. package/dist/es/chart-types/qrcode-types.js +0 -4
  15. package/dist/es/chart-types.js +0 -4
  16. package/dist/es/index.js +0 -9
  17. package/dist/es/main.js +0 -11
  18. package/dist/es/package-metadata.js +0 -15
  19. package/dist/es/qrcode-validator.js +0 -45
  20. package/dist/es/qrcode.component.js +0 -147
  21. package/dist/es/qrcode.module.js +0 -52
  22. package/dist/es2015/barcode-validator.d.ts +0 -28
  23. package/dist/es2015/barcode-validator.js +0 -51
  24. package/dist/es2015/barcode.component.d.ts +0 -312
  25. package/dist/es2015/barcode.component.js +0 -144
  26. package/dist/es2015/barcode.module.d.ts +0 -37
  27. package/dist/es2015/barcode.module.js +0 -49
  28. package/dist/es2015/barcodes.module.d.ts +0 -37
  29. package/dist/es2015/barcodes.module.js +0 -47
  30. package/dist/es2015/base.component.d.ts +0 -55
  31. package/dist/es2015/base.component.js +0 -105
  32. package/dist/es2015/chart-types/barcode-types.d.ts +0 -109
  33. package/dist/es2015/chart-types/barcode-types.js +0 -4
  34. package/dist/es2015/chart-types/field-types.d.ts +0 -75
  35. package/dist/es2015/chart-types/field-types.js +0 -4
  36. package/dist/es2015/chart-types/qrcode-types.d.ts +0 -124
  37. package/dist/es2015/chart-types/qrcode-types.js +0 -4
  38. package/dist/es2015/chart-types.d.ts +0 -7
  39. package/dist/es2015/chart-types.js +0 -4
  40. package/dist/es2015/index.d.ts +0 -9
  41. package/dist/es2015/index.js +0 -9
  42. package/dist/es2015/index.metadata.json +0 -1
  43. package/dist/es2015/main.d.ts +0 -12
  44. package/dist/es2015/main.js +0 -11
  45. package/dist/es2015/package-metadata.d.ts +0 -9
  46. package/dist/es2015/package-metadata.js +0 -15
  47. package/dist/es2015/qrcode-validator.d.ts +0 -26
  48. package/dist/es2015/qrcode-validator.js +0 -44
  49. package/dist/es2015/qrcode.component.d.ts +0 -289
  50. package/dist/es2015/qrcode.component.js +0 -142
  51. package/dist/es2015/qrcode.module.d.ts +0 -37
  52. package/dist/es2015/qrcode.module.js +0 -49
  53. package/dist/fesm2015/index.js +0 -598
  54. package/dist/fesm5/index.js +0 -629
  55. package/dist/npm/barcode-validator.js +0 -53
  56. package/dist/npm/barcode.component.js +0 -151
  57. package/dist/npm/barcode.module.js +0 -54
  58. package/dist/npm/barcodes.module.js +0 -52
  59. package/dist/npm/base.component.js +0 -119
  60. package/dist/npm/chart-types/barcode-types.js +0 -6
  61. package/dist/npm/chart-types/field-types.js +0 -6
  62. package/dist/npm/chart-types/qrcode-types.js +0 -6
  63. package/dist/npm/chart-types.js +0 -6
  64. package/dist/npm/index.js +0 -13
  65. package/dist/npm/main.js +0 -20
  66. package/dist/npm/package-metadata.js +0 -17
  67. package/dist/npm/qrcode-validator.js +0 -47
  68. package/dist/npm/qrcode.component.js +0 -149
  69. package/dist/npm/qrcode.module.js +0 -54
  70. package/dist/systemjs/kendo-angular-barcodes.js +0 -5
@@ -1,124 +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 { Border, Padding, RenderMode } from './field-types';
6
- /**
7
- * The QR Code encoding modes.
8
- */
9
- export declare type QRCodeEncoding = 'ISO_8859_1' | 'UTF_8' | 'iso_8859_1' | 'utf_8';
10
- /**
11
- * The QR Code error correction levels.
12
- *
13
- * * `"L"`—Approximately 7% of the codewords can be restored.
14
- * * `"M"`—Approximately 15% of the codewords can be restored.
15
- * * `"Q"`—Approximately 25% of the codewords can be restored.
16
- * * `"H"`—Approximately 30% of the codewords can be restored.
17
- */
18
- export declare type QRCodeErrorCorrection = 'L' | 'M' | 'Q' | 'H' | 'l' | 'm' | 'q' | 'h';
19
- /**
20
- * The image overlay configuration of the QR Code.
21
- */
22
- export interface QRCodeOverlay {
23
- /**
24
- * The overlay height in pixels.
25
- */
26
- height?: number;
27
- /**
28
- * The source image for the overlay.
29
- *
30
- * Required only when `type` is set to `'image'`.
31
- */
32
- imageUrl?: string;
33
- /**
34
- * The overlay type.
35
- *
36
- * @default 'image'
37
- */
38
- type?: 'image' | 'swiss';
39
- /**
40
- * The overlay width in pixels.
41
- */
42
- width?: number;
43
- }
44
- /**
45
- * The QR Code configuration options.
46
- */
47
- export interface QRCodeOptions {
48
- /**
49
- * The background color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
50
- *
51
- * @default "white"
52
- */
53
- background?: string;
54
- /**
55
- * The border of the QR Code.
56
- */
57
- border?: Border;
58
- /**
59
- * The color of the QR Code. Accepts a valid CSS color string, including hex and rgb.
60
- *
61
- * @default "black"
62
- */
63
- color?: string;
64
- /**
65
- * The encoding mode used to encode the value.
66
- *
67
- * > **Important** The UTF-8 encoding is not included in the specifications and is not supported by all readers.
68
- *
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
- * @default "ISO_8859_1"
74
- */
75
- encoding?: QRCodeEncoding;
76
- /**
77
- * The error correction level to use.
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.
84
- *
85
- * @default "L"
86
- */
87
- errorCorrection?: QRCodeErrorCorrection;
88
- /**
89
- * An optional image overlay that will placed over the QR Code.
90
- *
91
- * > **Note** Always test if the code reads correctly with the applied overlay.
92
- * > 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
- */
94
- overlay?: QRCodeOverlay;
95
- /**
96
- * The padding of the QR Code. A numeric value sets all paddings.
97
- *
98
- * @default 0
99
- */
100
- padding?: Padding | number;
101
- /**
102
- * Sets the preferred rendering mode of the QR Code.
103
- *
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
- * @default "svg"
109
- */
110
- renderAs?: RenderMode;
111
- /**
112
- * Specifies the size of a QR Code. Numeric values are treated as pixels.
113
- *
114
- * If no size is specified, the size will be determined from the element width and height.
115
- * If the element has width or height of zero, a default value of 200 pixels will be used.
116
- *
117
- * @default "200px"
118
- */
119
- size?: number | string;
120
- /**
121
- * The value of the QR Code.
122
- */
123
- value: number | string;
124
- }
@@ -1,4 +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
- *-------------------------------------------------------------------------------------------*/
@@ -1,7 +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
- export * from './chart-types/barcode-types';
6
- export * from './chart-types/qrcode-types';
7
- export * from './chart-types/field-types';
@@ -1,4 +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
- *-------------------------------------------------------------------------------------------*/
@@ -1,9 +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
- * Generated bundle index. Do not edit.
7
- */
8
- export * from './main';
9
- export { BaseComponent } from './base.component';
@@ -1,9 +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
- * Generated bundle index. Do not edit.
7
- */
8
- export * from './main';
9
- export { BaseComponent } from './base.component';
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"BarcodeComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"BaseComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":31,"character":21},"member":"OnPush"},"exportAs":"kendoBarcode","selector":"kendo-barcode","template":"\n <kendo-resize-sensor (resize)=\"onResize()\" [rateLimit]=\"resizeRateLimit\"></kendo-resize-sensor>\n "}]}],"members":{"background":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":5}}]}],"border":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":87,"character":6}}]}],"checksum":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":109,"character":5}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":131,"character":5}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":157,"character":5}}]}],"padding":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":192,"character":5}}]}],"renderAs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":218,"character":5}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":245,"character":5}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":268,"character":5}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":289,"character":5}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":315,"character":5}}]}],"resizeRateLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":337,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":357,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":358,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":359,"character":26}]}],"createInstance":[{"__symbolic":"method"}],"onError":[{"__symbolic":"method"}]}},"QRCodeComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"BaseComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":41,"character":1},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":42,"character":21},"member":"OnPush"},"selector":"kendo-qrcode","exportAs":"kendoQRCode","template":"\n <kendo-resize-sensor (resize)=\"onResize()\" [rateLimit]=\"resizeRateLimit\"></kendo-resize-sensor>\n "}]}],"members":{"background":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":71,"character":5}}]}],"border":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":98,"character":5}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":120,"character":5}}]}],"encoding":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":147,"character":5}}]}],"errorCorrection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":175,"character":5}}]}],"overlay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":203,"character":5}}]}],"padding":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":227,"character":5}}]}],"renderAs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":253,"character":5}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":282,"character":5}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":301,"character":5}}]}],"resizeRateLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":323,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":342,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":343,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":344,"character":26}]}],"createInstance":[{"__symbolic":"method"}],"onError":[{"__symbolic":"method"}]}},"BarcodeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":35,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"BarcodeComponent"}],"imports":[{"__symbolic":"reference","module":"@progress/kendo-angular-common","name":"ResizeSensorModule","line":37,"character":15}],"exports":[{"__symbolic":"reference","name":"BarcodeComponent"}]}]}],"members":{}},"QRCodeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":35,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"QRCodeComponent"}],"imports":[{"__symbolic":"reference","module":"@progress/kendo-angular-common","name":"ResizeSensorModule","line":37,"character":15}],"exports":[{"__symbolic":"reference","name":"QRCodeComponent"}]}]}],"members":{}},"BarcodesModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":35,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","name":"BarcodeModule"},{"__symbolic":"reference","name":"QRCodeModule"}]}]}],"members":{}},"createBarcodeValidator":{"__symbolic":"error","message":"Lambda not supported","line":31,"character":38,"module":"./barcode-validator"},"createQRCodeValidator":{"__symbolic":"error","message":"Lambda not supported","line":24,"character":37,"module":"./qrcode-validator"},"BarcodeType":{"__symbolic":"interface"},"BarcodeText":{"__symbolic":"interface"},"BarcodeOptions":{"__symbolic":"interface"},"QRCodeEncoding":{"__symbolic":"interface"},"QRCodeErrorCorrection":{"__symbolic":"interface"},"QRCodeOverlay":{"__symbolic":"interface"},"QRCodeOptions":{"__symbolic":"interface"},"DashType":{"__symbolic":"interface"},"Border":{"__symbolic":"interface"},"Margin":{"__symbolic":"interface"},"Padding":{"__symbolic":"interface"},"RenderMode":{"__symbolic":"interface"},"BaseComponent":{"__symbolic":"class","members":{"resizeRateLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":5}}]}],"surfaceElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":23,"character":5},"arguments":["surface",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":39,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":40,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":41,"character":26}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"resize":[{"__symbolic":"method"}],"onResize":[{"__symbolic":"method"}],"exportImage":[{"__symbolic":"method"}],"exportSVG":[{"__symbolic":"method"}],"exportVisual":[{"__symbolic":"method"}],"createInstance":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"isDevMode":[{"__symbolic":"method"}]}}},"origins":{"BarcodeComponent":"./barcode.component","QRCodeComponent":"./qrcode.component","BarcodeModule":"./barcode.module","QRCodeModule":"./qrcode.module","BarcodesModule":"./barcodes.module","createBarcodeValidator":"./barcode-validator","createQRCodeValidator":"./qrcode-validator","BarcodeType":"./chart-types/barcode-types","BarcodeText":"./chart-types/barcode-types","BarcodeOptions":"./chart-types/barcode-types","QRCodeEncoding":"./chart-types/qrcode-types","QRCodeErrorCorrection":"./chart-types/qrcode-types","QRCodeOverlay":"./chart-types/qrcode-types","QRCodeOptions":"./chart-types/qrcode-types","DashType":"./chart-types/field-types","Border":"./chart-types/field-types","Margin":"./chart-types/field-types","Padding":"./chart-types/field-types","RenderMode":"./chart-types/field-types","BaseComponent":"./base.component"},"importAs":"@progress/kendo-angular-barcodes"}
@@ -1,12 +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
- export { BarcodeComponent } from './barcode.component';
6
- export { QRCodeComponent } from './qrcode.component';
7
- export { BarcodeModule } from './barcode.module';
8
- export { QRCodeModule } from './qrcode.module';
9
- export { BarcodesModule } from './barcodes.module';
10
- export { createBarcodeValidator } from './barcode-validator';
11
- export { createQRCodeValidator } from './qrcode-validator';
12
- export * from './chart-types';
@@ -1,11 +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
- export { BarcodeComponent } from './barcode.component';
6
- export { QRCodeComponent } from './qrcode.component';
7
- export { BarcodeModule } from './barcode.module';
8
- export { QRCodeModule } from './qrcode.module';
9
- export { BarcodesModule } from './barcodes.module';
10
- export { createBarcodeValidator } from './barcode-validator';
11
- export { createQRCodeValidator } from './qrcode-validator';
@@ -1,9 +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 { PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;
@@ -1,15 +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
- * @hidden
7
- */
8
- export const packageMetadata = {
9
- name: '@progress/kendo-angular-barcodes',
10
- productName: 'Kendo UI for Angular',
11
- productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1646216855,
13
- version: '',
14
- 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'
15
- };
@@ -1,26 +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 { ValidatorFn } from '@angular/forms';
6
- /**
7
- * Creates a value validator for a particular Barcode type.
8
- *
9
- * @param {QRCodeEncoding} encoding The QR Code encoding. Defaults to 'ISO_8859_1'.
10
- * @returns {ValidatorFn} A validator function that returns an error map with the `qrcode` property if the validation check fails, otherwise `null`.
11
- *
12
- * @example
13
- * ```ts-no-run
14
- * const control = new FormControl('Фоо', createQRCodeValidator());
15
- * console.log(control.errors);
16
- *
17
- * // {
18
- * // qrcode: {
19
- * // message: 'Unsupported character in QR Code: "Ф".',
20
- * // value: '1234',
21
- * // type: 'EAN13'
22
- * // }
23
- * // }
24
- * ```
25
- */
26
- export declare const createQRCodeValidator: (encoding?: import("@progress/kendo-charts").QRCodeEncoding) => ValidatorFn;
@@ -1,44 +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 { qrcodeValidator } from '@progress/kendo-charts';
6
- /**
7
- * Creates a value validator for a particular Barcode type.
8
- *
9
- * @param {QRCodeEncoding} encoding The QR Code encoding. Defaults to 'ISO_8859_1'.
10
- * @returns {ValidatorFn} A validator function that returns an error map with the `qrcode` property if the validation check fails, otherwise `null`.
11
- *
12
- * @example
13
- * ```ts-no-run
14
- * const control = new FormControl('Фоо', createQRCodeValidator());
15
- * console.log(control.errors);
16
- *
17
- * // {
18
- * // qrcode: {
19
- * // message: 'Unsupported character in QR Code: "Ф".',
20
- * // value: '1234',
21
- * // type: 'EAN13'
22
- * // }
23
- * // }
24
- * ```
25
- */
26
- export const createQRCodeValidator = (encoding = 'ISO_8859_1') => {
27
- const validator = qrcodeValidator(encoding);
28
- return (control) => {
29
- if (!control.value) {
30
- return null;
31
- }
32
- const result = validator(control.value);
33
- if (result.valid === true) {
34
- return null;
35
- }
36
- return {
37
- qrcode: {
38
- message: result.error.message,
39
- value: control.value,
40
- encoding: encoding
41
- }
42
- };
43
- };
44
- };
@@ -1,289 +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 { 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"`&mdash;Supports all characters from the [ISO/IEC 8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) character set.
105
- * * `"UTF_8"`&mdash;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"`&mdash;Approximately 7% of the codewords can be restored.
128
- * * `"M"`&mdash;Approximately 15% of the codewords can be restored.
129
- * * `"Q"`&mdash;Approximately 25% of the codewords can be restored.
130
- * * `"H"`&mdash;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. The value sets all paddings in pixels.
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"`&mdash;Renders the component as a Canvas element.
202
- * * `"svg"`&mdash;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
- protected onError(error: Error): void;
289
- }