@progress/kendo-angular-barcodes 24.2.2-develop.9 → 25.0.0-develop.1

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.
@@ -1,27 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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
- import { QRCodeEncoding } from './chart-types';
7
- /**
8
- * Creates a value validator for a specific QR Code encoding.
9
- *
10
- * @param {QRCodeEncoding} encoding Sets the QR Code encoding. Defaults to `ISO_8859_1`.
11
- * @returns {ValidatorFn} Returns a validator function. The function returns an error map with the `qrcode` property if the value is invalid. Otherwise, it returns `null`.
12
- *
13
- * @example
14
- * ```ts-no-run
15
- * const control = new FormControl('Фоо', createQRCodeValidator());
16
- * console.log(control.errors);
17
- *
18
- * // {
19
- * // qrcode: {
20
- * // message: 'Unsupported character in QR Code: "Ф".',
21
- * // value: '1234',
22
- * // type: 'EAN13'
23
- * // }
24
- * // }
25
- * ```
26
- */
27
- export declare const createQRCodeValidator: (encoding?: QRCodeEncoding) => ValidatorFn;
@@ -1,108 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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
- import * as i0 from "@angular/core";
10
- /**
11
- * Represents the [Kendo UI QR Code component for Angular](https://www.telerik.com/kendo-angular-ui/components/barcodes/qrcode).
12
- *
13
- * Shows a QR Code for the provided value.
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
- export declare class QRCodeComponent extends BaseComponent {
31
- protected element: ElementRef;
32
- protected renderer: Renderer2;
33
- protected ngZone: NgZone;
34
- /**
35
- * Sets the background color of the QR Code. Accepts any valid CSS color string, such as hex or rgb.
36
- *
37
- * @default "white"
38
- */
39
- background?: string;
40
- /**
41
- * Sets the border of the QR Code.
42
- */
43
- border?: Border;
44
- /**
45
- * Sets the color of the QR Code. Accepts any valid CSS color string, such as hex or rgb.
46
- *
47
- * @default "black"
48
- */
49
- color?: string;
50
- /**
51
- * Sets the encoding mode for the value.
52
- *
53
- * > **Important** The UTF-8 encoding is not part of the specifications and some readers may not support it.
54
- *
55
- * @default "ISO_8859_1"
56
- */
57
- encoding?: QRCodeEncoding;
58
- /**
59
- * Sets the error correction level.
60
- *
61
- * @default "L"
62
- */
63
- errorCorrection?: QRCodeErrorCorrection;
64
- /**
65
- * Sets an optional image overlay to display over the QR Code.
66
- *
67
- * > **Note** Always test if the code scans correctly with the overlay. If needed, increase the `errorCorrection` level to `"M"` or `"H"`.
68
- */
69
- overlay?: QRCodeOverlay;
70
- /**
71
- * Sets the padding for the QR Code in pixels.
72
- *
73
- * @default 0
74
- */
75
- padding?: number;
76
- /**
77
- * Sets the rendering mode for the QR Code.
78
- *
79
- * @default "svg"
80
- */
81
- renderAs?: RenderMode;
82
- /**
83
- * Sets the size of the QR Code. Numeric values are in pixels.
84
- *
85
- * If no size is specified, the size will be determined from the element width and height.
86
- * If the element has width or height of zero, a default value of 200 pixels will be used.
87
- *
88
- * @default "200px"
89
- */
90
- size?: number | string;
91
- /**
92
- * Sets the value to encode in the QR Code.
93
- */
94
- value: number | string;
95
- /**
96
- * Limits how often the QR Code resizes automatically. Sets the maximum redraws per second when the container size changes.
97
- * Set to `0` to disable automatic resizing.
98
- *
99
- * @default 10
100
- */
101
- resizeRateLimit: number;
102
- protected get options(): QRCodeOptions;
103
- constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
104
- protected createInstance(element: any, options: any): QRCode;
105
- protected onError(error: Error): void;
106
- static ɵfac: i0.ɵɵFactoryDeclaration<QRCodeComponent, never>;
107
- static ɵcmp: i0.ɵɵComponentDeclaration<QRCodeComponent, "kendo-qrcode", ["kendoQRCode"], { "background": { "alias": "background"; "required": false; }; "border": { "alias": "border"; "required": false; }; "color": { "alias": "color"; "required": false; }; "encoding": { "alias": "encoding"; "required": false; }; "errorCorrection": { "alias": "errorCorrection"; "required": false; }; "overlay": { "alias": "overlay"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "renderAs": { "alias": "renderAs"; "required": false; }; "size": { "alias": "size"; "required": false; }; "value": { "alias": "value"; "required": false; }; "resizeRateLimit": { "alias": "resizeRateLimit"; "required": false; }; }, {}, never, never, true, never>;
108
- }
@@ -1,33 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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 i0 from "@angular/core";
6
- import * as i1 from "./qrcode.component";
7
- /**
8
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the QR Code component.
9
- *
10
- * Use this module to add QR Code support to your application.
11
- *
12
- * @example
13
- * ```ts
14
- * // Import the QRCodeModule
15
- * import { QRCodeModule } from '@progress/kendo-angular-barcodes';
16
- *
17
- * import { NgModule } from '@angular/core';
18
- * import { BrowserModule } from '@angular/platform-browser';
19
- * import { AppComponent } from './app.component';
20
- *
21
- * @NgModule({
22
- * declarations: [AppComponent],
23
- * imports: [BrowserModule, QRCodeModule],
24
- * bootstrap: [AppComponent]
25
- * })
26
- * export class AppModule {}
27
- * ```
28
- */
29
- export declare class QRCodeModule {
30
- static ɵfac: i0.ɵɵFactoryDeclaration<QRCodeModule, never>;
31
- static ɵmod: i0.ɵɵNgModuleDeclaration<QRCodeModule, never, [typeof i1.QRCodeComponent], [typeof i1.QRCodeComponent]>;
32
- static ɵinj: i0.ɵɵInjectorDeclaration<QRCodeModule>;
33
- }