@progress/kendo-charts 1.20.0-dev.202111190958 → 1.20.0-dev.202111250926

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,5 +1,136 @@
1
+ import { Group } from '@progress/kendo-drawing';
2
+ import { Border, Margin, Padding, RenderMode } from './field-types';
3
+
4
+ /**
5
+ * Supported symbologies (encodings) for the Barcode component.
6
+ */
7
+ export type BarcodeType =
8
+ 'EAN8' | 'EAN13' | 'UPCE' | 'UPCA' | 'Code11' | 'Code39' | 'Code39Extended' |
9
+ 'Code93' | 'Code93Extended' | 'Code128' | 'Code128A' | 'Code128B' | 'Code128C' |
10
+ 'GS1-128' | 'MSImod10' | 'MSImod11' | 'MSImod1010' | 'MSImod1110' | 'POSTNET' |
11
+ 'ean8' | 'ean13' | 'upce' | 'upca' | 'code11' | 'code39' | 'code39extended' |
12
+ 'code93' | 'code93extended' | 'code128' | 'code128a' | 'code128b' | 'code128c' |
13
+ 'gs1-128' | 'msimod10' | 'msimod11' | 'msimod1010' | 'msimod1110' | 'postnet';
14
+
15
+ /**
16
+ * The Barcode text label configuration.
17
+ */
18
+ export interface BarcodeText {
19
+ /**
20
+ * The color of the text. Any valid CSS color string will work here, including hex and rgb.
21
+ *
22
+ * @default "black"
23
+ */
24
+ color?: string;
25
+
26
+ /**
27
+ * The font of the text.
28
+ *
29
+ * @default "16px Consolas, Monaco, Sans Mono, monospace, sans-serif"
30
+ */
31
+ font?: string;
32
+
33
+ /**
34
+ * The margin of the text. A numeric value sets all margins.
35
+ *
36
+ * @default 0
37
+ */
38
+ margin?: Margin | number;
39
+
40
+ /**
41
+ * A flag indicating of the Barcode text label is visible.
42
+ *
43
+ * If set to false the barcode will not display the value as a text below the barcode lines.
44
+ *
45
+ * @default true
46
+ */
47
+ visible?: boolean;
48
+ }
49
+
50
+ /**
51
+ * The Barcode configuration options.
52
+ */
53
+ export interface BarcodeOptions {
54
+ /**
55
+ * The background color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
56
+ *
57
+ * @default "white"
58
+ */
59
+ background?: string;
60
+
61
+ /**
62
+ * The border of the Barcode.
63
+ */
64
+ border?: Border;
65
+
66
+ /**
67
+ * If set to `true`, the Barcode will display the checksum digit next to the value in the text area.
68
+ *
69
+ * @default true
70
+ */
71
+ checksum?: boolean;
72
+
73
+ /**
74
+ * The color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
75
+ *
76
+ * @default "black"
77
+ */
78
+ color?: string;
79
+
80
+ /**
81
+ * The height of the Barcode in pixels.
82
+ *
83
+ * @default 100
84
+ */
85
+ height?: number;
86
+
87
+ /**
88
+ * The padding of the barcode. A numeric value sets all paddings.
89
+ *
90
+ * @default 0
91
+ */
92
+ padding?: Padding | number;
93
+
94
+ /**
95
+ * Sets the preferred rendering mode of the Barcode.
96
+ *
97
+ * The supported values are:
98
+ * * "canvas" - renders the component as a Canvas element.
99
+ * * "svg" - renders the component as an inline SVG document.
100
+ *
101
+ * @default "svg"
102
+ */
103
+ renderAs?: RenderMode;
104
+
105
+ /**
106
+ * The Barcode text label configuration.
107
+ */
108
+ text?: BarcodeText;
109
+
110
+ /**
111
+ * The symbology (encoding) the Barcode will use.
112
+ *
113
+ * @default "Code39"
114
+ */
115
+ type: BarcodeType;
116
+
117
+ /**
118
+ * The value of the Barcode.
119
+ */
120
+ value: number | string;
121
+
122
+ /**
123
+ * The width of the Barcode in pixels.
124
+ *
125
+ * @default 300
126
+ */
127
+ width?: number;
128
+ }
129
+
1
130
  export class Barcode {
2
- constructor(element: any, options: any);
131
+ constructor(element: Element, options: BarcodeOptions);
132
+
3
133
  public redraw(): void;
4
- public setOptions(options: any): void;
134
+ public setOptions(options: BarcodeOptions): void;
135
+ public exportVisual(): Group;
5
136
  }
@@ -4,4 +4,4 @@ export class DateCategoryAxis {
4
4
 
5
5
  export class DateValueAxis {
6
6
  public options: any;
7
- }
7
+ }
@@ -0,0 +1,21 @@
1
+ import { DashType } from './dash-type';
2
+
3
+ /**
4
+ * The appearance settings for the border lines.
5
+ */
6
+ export interface Border {
7
+ /**
8
+ * The color of the border line. Accepts a valid CSS color string, including hex and rgb.
9
+ */
10
+ color?: string;
11
+
12
+ /**
13
+ * The dash type of the border line.
14
+ */
15
+ dashType?: DashType;
16
+
17
+ /**
18
+ * The width of the border line in pixels.
19
+ */
20
+ width?: number;
21
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The dash line type.
3
+ */
4
+ export type DashType =
5
+ 'dash' | 'dashDot' | 'dot' |
6
+ 'longDash' | 'longDashDot' | 'longDashDotDot' |
7
+ 'solid';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The margin size for each side.
3
+ */
4
+ export interface Margin {
5
+ /**
6
+ * The top margin in pixels.
7
+ */
8
+ top?: number;
9
+
10
+ /**
11
+ * The right margin in pixels.
12
+ */
13
+ right?: number;
14
+
15
+ /**
16
+ * The bottom margin in pixels.
17
+ */
18
+ bottom?: number;
19
+
20
+ /**
21
+ * The left margin in pixels.
22
+ */
23
+ left?: number;
24
+ }
@@ -0,0 +1,7 @@
1
+ import { Margin } from './margin.interface';
2
+
3
+ /**
4
+ * The padding size for each side.
5
+ */
6
+ export interface Padding extends Margin {
7
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Sets the rendering mode of the component.
3
+ *
4
+ * The supported values are:
5
+ * * "canvas" - renders the component as a Canvas element.
6
+ * * "svg" - renders the component as an inline SVG document.
7
+ */
8
+ export type RenderMode = 'svg' | 'canvas';
@@ -0,0 +1,5 @@
1
+ export { Border } from './field-types/border.interface';
2
+ export { DashType } from './field-types/dash-type';
3
+ export { Margin } from './field-types/margin.interface';
4
+ export { Padding } from './field-types/padding.interface';
5
+ export { RenderMode } from './field-types/render-mode';
@@ -7,5 +7,6 @@ export * from './gauges';
7
7
  export * from './barcode';
8
8
  export * from './qrcode';
9
9
  export * from './common';
10
+ export * from './field-types'
10
11
 
11
12
  export function chartBaseTheme(): any;
@@ -1,5 +1,130 @@
1
+ import { Group } from '@progress/kendo-drawing';
2
+ import { Border, Padding, RenderMode } from './field-types';
3
+
4
+ /**
5
+ * The QR Code encoding modes.
6
+ */
7
+ export type QRCodeEncoding =
8
+ 'ISO_8859_1' | 'UTF_8' |
9
+ 'iso_8859_1' | 'utf_8';
10
+
11
+ /**
12
+ * The QR Code error correction levels.
13
+ *
14
+ * * "L" - approximately 7% of the codewords can be restored.
15
+ * * "M" - approximately 15% of the codewords can be restored.
16
+ * * "Q" - approximately 25% of the codewords can be restored.
17
+ * * "H" - approximately 30% of the codewords can be restored.
18
+ */
19
+ export type QRCodeErrorCorrection =
20
+ 'L' | 'M' | 'Q' | 'H' |
21
+ 'l' | 'm' | 'q' | 'h';
22
+
23
+ /**
24
+ * The QR Code image overlay configuration.
25
+ */
26
+ export interface QRCodeOverlay {
27
+ height?: number;
28
+ imageUrl?: string;
29
+ type?: 'image' | 'swiss';
30
+ width?: number;
31
+ }
32
+
33
+ /**
34
+ * The QR Code configuration options.
35
+ */
36
+ export interface QRCodeOptions {
37
+ /**
38
+ * The background color of the QR code. Accepts a valid CSS color string, including hex and rgb.
39
+ *
40
+ * @default "white"
41
+ */
42
+ background?: string;
43
+
44
+ /**
45
+ * The border of the QR code.
46
+ */
47
+ border?: Border;
48
+
49
+ /**
50
+ * The color of the QR code. Accepts a valid CSS color string, including hex and rgb.
51
+ *
52
+ * @default "black"
53
+ */
54
+ color?: string;
55
+
56
+ /**
57
+ * The encoding mode used to encode the value.
58
+ *
59
+ * > *Important:* The UTF-8 encoding is not included in the specifications and is not supported by all readers.
60
+ *
61
+ * The possible values are:
62
+ * * "ISO_8859_1" - supports all characters from the [ISO/IEC 8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) character set.
63
+ * * "UTF_8" - supports all [Unicode](https://en.wikipedia.org/wiki/List_of_Unicode_characters) characters.
64
+ *
65
+ * @default "ISO_8859_1"
66
+ */
67
+ encoding?: QRCodeEncoding;
68
+
69
+ /**
70
+ * The error correction level to use.
71
+ *
72
+ * The possible values are:
73
+ * * "L" - approximately 7% of the codewords can be restored.
74
+ * * "M" - approximately 15% of the codewords can be restored.
75
+ * * "Q" - approximately 25% of the codewords can be restored.
76
+ * * "H" - approximately 30% of the codewords can be restored.
77
+ *
78
+ * @default "L"
79
+ */
80
+ errorCorrection?: QRCodeErrorCorrection;
81
+
82
+ /**
83
+ * An optional image overlay that will placed over the QR Code.
84
+ *
85
+ * > **Note:** Always test if the code reads correctly with the overlay.
86
+ * > Depending on the length of the value and the size of the overlay, you might need to raise the `errorCorrection` to "M" or "H".
87
+ */
88
+ overlay?: QRCodeOverlay;
89
+
90
+ /**
91
+ * The padding of the QR Code. A numeric value sets all paddings.
92
+ *
93
+ * @default 0
94
+ */
95
+ padding?: Padding | number;
96
+
97
+ /**
98
+ * Sets the preferred rendering mode of the QR Code.
99
+ *
100
+ * The supported values are:
101
+ * * "canvas" - renders the component as a Canvas element.
102
+ * * "svg" - renders the component as an inline SVG document.
103
+ *
104
+ * @default "svg"
105
+ */
106
+ renderAs?: RenderMode;
107
+
108
+ /**
109
+ * Specifies the size of a QR Code. Numeric values are treated as pixels.
110
+ *
111
+ * If no size is specified, it will be determined from the element width and height.
112
+ * In case the element has width or height of zero, a default value of 200 pixels will be used.
113
+ *
114
+ * @default "200px"
115
+ */
116
+ size?: number | string;
117
+
118
+ /**
119
+ * The value of the QR Code.
120
+ */
121
+ value: number | string;
122
+ }
123
+
1
124
  export class QRCode {
2
- constructor(element: any, options: any);
125
+ constructor(element: Element, options: QRCodeOptions);
126
+
3
127
  public redraw(): void;
4
- public setOptions(options: any): void;
128
+ public setOptions(options: QRCodeOptions): void;
129
+ public exportVisual(): Group;
5
130
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Kendo UI platform-independent Charts library",
4
4
  "author": "Progress",
5
5
  "license": "SEE LICENSE IN license.txt",
6
- "version": "1.20.0-dev.202111190958",
6
+ "version": "1.20.0-dev.202111250926",
7
7
  "main": "dist/npm/main.js",
8
8
  "module": "dist/es/main.js",
9
9
  "jsnext:main": "dist/es/main.js",