@progress/kendo-charts 1.20.0-dev.202111111633 → 1.20.0-dev.202111251025

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 (33) hide show
  1. package/dist/cdn/js/kendo-charts.js +1 -1
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/chart/chart.js +2 -1
  4. package/dist/es/chart/pan-and-zoom/mousewheel-zoom.js +10 -2
  5. package/dist/es/common/mousewheel-delta.js +12 -0
  6. package/dist/es/core/axis.js +20 -0
  7. package/dist/es/core/category-axis.js +2 -2
  8. package/dist/es/core/date-category-axis.js +2 -1
  9. package/dist/es/core/date-value-axis.js +2 -1
  10. package/dist/es/core/logarithmic-axis.js +2 -1
  11. package/dist/es/core/numeric-axis.js +4 -3
  12. package/dist/es2015/chart/chart.js +2 -1
  13. package/dist/es2015/chart/pan-and-zoom/mousewheel-zoom.js +10 -2
  14. package/dist/es2015/common/mousewheel-delta.js +12 -0
  15. package/dist/es2015/core/axis.js +20 -0
  16. package/dist/es2015/core/category-axis.js +2 -2
  17. package/dist/es2015/core/date-category-axis.js +2 -1
  18. package/dist/es2015/core/date-value-axis.js +2 -1
  19. package/dist/es2015/core/logarithmic-axis.js +2 -1
  20. package/dist/es2015/core/numeric-axis.js +4 -3
  21. package/dist/npm/barcode.d.ts +133 -2
  22. package/dist/npm/core.d.ts +1 -1
  23. package/dist/npm/field-types/border.interface.d.ts +21 -0
  24. package/dist/npm/field-types/dash-type.d.ts +7 -0
  25. package/dist/npm/field-types/margin.interface.d.ts +24 -0
  26. package/dist/npm/field-types/padding.interface.d.ts +7 -0
  27. package/dist/npm/field-types/render-mode.d.ts +8 -0
  28. package/dist/npm/field-types.d.ts +5 -0
  29. package/dist/npm/main.d.ts +1 -0
  30. package/dist/npm/main.js +56 -14
  31. package/dist/npm/qrcode.d.ts +127 -2
  32. package/dist/systemjs/kendo-charts.js +1 -1
  33. package/package.json +2 -2
@@ -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
  }