@progress/kendo-charts 1.19.1 → 1.20.0-dev.202111121622

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 (61) 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 +15 -6
  4. package/dist/es/chart/constants.js +3 -1
  5. package/dist/es/chart/pan-and-zoom/mousewheel-zoom.js +8 -4
  6. package/dist/es/chart/selection.js +41 -1
  7. package/dist/es/common/mousewheel-delta.js +4 -7
  8. package/dist/es/core/axis.js +47 -0
  9. package/dist/es/core/category-axis.js +62 -20
  10. package/dist/es/core/date-category-axis.js +26 -38
  11. package/dist/es/core/date-value-axis.js +37 -40
  12. package/dist/es/core/logarithmic-axis.js +62 -88
  13. package/dist/es/core/numeric-axis.js +57 -81
  14. package/dist/es/main.js +1 -0
  15. package/dist/es/qrcode/encodings/data-modes/alpha-numeric-data-mode.js +103 -0
  16. package/dist/es/qrcode/encodings/data-modes/byte-data-mode.js +51 -0
  17. package/dist/es/qrcode/encodings/data-modes/data-mode-instances.js +12 -0
  18. package/dist/es/qrcode/encodings/data-modes/numeric-data-mode.js +49 -0
  19. package/dist/es/qrcode/encodings/data-modes/qr-data-mode.js +50 -0
  20. package/dist/es/qrcode/encodings/encoders/iso-encoder.js +29 -0
  21. package/dist/es/qrcode/encodings/encoders/utf8-encoder.js +91 -0
  22. package/dist/es/qrcode/encodings/encoding-result.js +16 -0
  23. package/dist/es/qrcode/encodings/encoding.js +701 -0
  24. package/dist/es/qrcode/encodings/free-cell-visitor.js +57 -0
  25. package/dist/es/qrcode/encodings/version-codewords.js +1289 -0
  26. package/dist/es/qrcode/qrcode.js +403 -0
  27. package/dist/es/qrcode/utils.js +28 -0
  28. package/dist/es/qrcode.js +1 -0
  29. package/dist/es/stock/navigator.js +3 -2
  30. package/dist/es2015/chart/chart.js +15 -6
  31. package/dist/es2015/chart/constants.js +3 -1
  32. package/dist/es2015/chart/pan-and-zoom/mousewheel-zoom.js +6 -4
  33. package/dist/es2015/chart/selection.js +40 -1
  34. package/dist/es2015/common/mousewheel-delta.js +4 -7
  35. package/dist/es2015/core/axis.js +39 -0
  36. package/dist/es2015/core/category-axis.js +56 -18
  37. package/dist/es2015/core/date-category-axis.js +27 -36
  38. package/dist/es2015/core/date-value-axis.js +35 -40
  39. package/dist/es2015/core/logarithmic-axis.js +52 -83
  40. package/dist/es2015/core/numeric-axis.js +47 -78
  41. package/dist/es2015/main.js +1 -0
  42. package/dist/es2015/qrcode/encodings/data-modes/alpha-numeric-data-mode.js +91 -0
  43. package/dist/es2015/qrcode/encodings/data-modes/byte-data-mode.js +41 -0
  44. package/dist/es2015/qrcode/encodings/data-modes/data-mode-instances.js +13 -0
  45. package/dist/es2015/qrcode/encodings/data-modes/numeric-data-mode.js +39 -0
  46. package/dist/es2015/qrcode/encodings/data-modes/qr-data-mode.js +44 -0
  47. package/dist/es2015/qrcode/encodings/encoders/iso-encoder.js +19 -0
  48. package/dist/es2015/qrcode/encodings/encoders/utf8-encoder.js +83 -0
  49. package/dist/es2015/qrcode/encodings/encoding-result.js +10 -0
  50. package/dist/es2015/qrcode/encodings/encoding.js +701 -0
  51. package/dist/es2015/qrcode/encodings/free-cell-visitor.js +49 -0
  52. package/dist/es2015/qrcode/encodings/version-codewords.js +1289 -0
  53. package/dist/es2015/qrcode/qrcode.js +395 -0
  54. package/dist/es2015/qrcode/utils.js +28 -0
  55. package/dist/es2015/qrcode.js +1 -0
  56. package/dist/es2015/stock/navigator.js +3 -2
  57. package/dist/npm/main.d.ts +1 -0
  58. package/dist/npm/main.js +3172 -283
  59. package/dist/npm/qrcode.d.ts +5 -0
  60. package/dist/systemjs/kendo-charts.js +1 -1
  61. package/package.json +1 -1
@@ -0,0 +1,50 @@
1
+ import { Class } from '../../../common';
2
+ import { extend } from '../../utils';
3
+ import {
4
+ toBitsString
5
+ } from '../../utils';
6
+
7
+ export var QRDataMode = (function (Class) {
8
+ function QRDataMode() {
9
+ Class.call(this);
10
+
11
+ this.initProperties();
12
+ }
13
+
14
+ if ( Class ) QRDataMode.__proto__ = Class;
15
+ QRDataMode.prototype = Object.create( Class && Class.prototype );
16
+ QRDataMode.prototype.constructor = QRDataMode;
17
+
18
+ QRDataMode.prototype.initProperties = function initProperties () {
19
+ extend(this, {
20
+ modeIndicator: "",
21
+ bitsInCharacterCount: []
22
+ });
23
+ };
24
+
25
+ QRDataMode.prototype.getVersionIndex = function getVersionIndex (version) {
26
+ if (version < 10) {
27
+ return 0;
28
+ } else if (version > 26) {
29
+ return 2;
30
+ }
31
+
32
+ return 1;
33
+ };
34
+
35
+ QRDataMode.prototype.getBitsCharacterCount = function getBitsCharacterCount (version) {
36
+ return this.bitsInCharacterCount[this.getVersionIndex(version || 40)];
37
+ };
38
+
39
+ QRDataMode.prototype.getModeCountString = function getModeCountString (length, version) {
40
+ return this.modeIndicator + toBitsString(length, this.getBitsCharacterCount(version));
41
+ };
42
+
43
+ QRDataMode.prototype.encode = function encode () { };
44
+
45
+ QRDataMode.prototype.getStringBitsLength = function getStringBitsLength () { };
46
+
47
+ QRDataMode.prototype.getValue = function getValue () { };
48
+
49
+ return QRDataMode;
50
+ }(Class));
@@ -0,0 +1,29 @@
1
+ import { Class } from '../../../common';
2
+ import { EncodingResult } from '../encoding-result';
3
+ import {
4
+ getModes,
5
+ getVersion,
6
+ getDataCodewordsCount,
7
+ getDataString
8
+ } from '../encoding';
9
+
10
+ export var IsoEncoder = (function (Class) {
11
+ function IsoEncoder () {
12
+ Class.apply(this, arguments);
13
+ }
14
+
15
+ if ( Class ) IsoEncoder.__proto__ = Class;
16
+ IsoEncoder.prototype = Object.create( Class && Class.prototype );
17
+ IsoEncoder.prototype.constructor = IsoEncoder;
18
+
19
+ IsoEncoder.prototype.getEncodingResult = function getEncodingResult (inputString, errorCorrectionLevel) {
20
+ var modes = getModes(inputString),
21
+ dataCodewordsCount = getDataCodewordsCount(modes),
22
+ version = getVersion(dataCodewordsCount, errorCorrectionLevel),
23
+ dataString = getDataString(modes, version);
24
+
25
+ return new EncodingResult(dataString, version);
26
+ };
27
+
28
+ return IsoEncoder;
29
+ }(Class));
@@ -0,0 +1,91 @@
1
+ import { Class } from '../../../common';
2
+ import { EncodingResult } from '../encoding-result';
3
+ import { DataModeInstances } from '../data-modes/data-mode-instances';
4
+ import { extend } from '../../utils';
5
+ import { toBitsString } from '../../utils';
6
+ import { getVersion } from '../encoding';
7
+
8
+ var BYTE = "byte";
9
+
10
+ export var Utf8Encoder = (function (Class) {
11
+ function Utf8Encoder() {
12
+ Class.call(this);
13
+
14
+ this.initProperties();
15
+
16
+ this.mode = DataModeInstances[this.encodingMode];
17
+ }
18
+
19
+ if ( Class ) Utf8Encoder.__proto__ = Class;
20
+ Utf8Encoder.prototype = Object.create( Class && Class.prototype );
21
+ Utf8Encoder.prototype.constructor = Utf8Encoder;
22
+
23
+ Utf8Encoder.prototype.initProperties = function initProperties () {
24
+ extend(this, {
25
+ encodingMode: BYTE,
26
+ utfBOM: "111011111011101110111111",
27
+ initialModeCountStringLength: 20,
28
+ ranges: [128, 2048, 65536, 2097152, 67108864]
29
+ });
30
+ };
31
+
32
+ Utf8Encoder.prototype.getEncodingResult = function getEncodingResult (inputString, errorCorrectionLevel) {
33
+ var data = this.encode(inputString),
34
+ dataCodewordsCount = this.getDataCodewordsCount(data),
35
+ version = getVersion(dataCodewordsCount, errorCorrectionLevel),
36
+ dataString = this.mode.getModeCountString(data.length / 8, version) + data;
37
+
38
+ return new EncodingResult(dataString, version);
39
+ };
40
+
41
+ Utf8Encoder.prototype.getDataCodewordsCount = function getDataCodewordsCount (data) {
42
+ var dataLength = data.length,
43
+ dataCodewordsCount = Math.ceil((this.initialModeCountStringLength + dataLength) / 8);
44
+
45
+ return dataCodewordsCount;
46
+ };
47
+
48
+ Utf8Encoder.prototype.encode = function encode (str) {
49
+ var this$1 = this;
50
+
51
+ var result = this.utfBOM;
52
+
53
+ for (var i = 0; i < str.length; i++) {
54
+ result += this$1.encodeCharacter(str.charCodeAt(i));
55
+ }
56
+
57
+ return result;
58
+ };
59
+
60
+ Utf8Encoder.prototype.encodeCharacter = function encodeCharacter (code) {
61
+ var bytesCount = this.getBytesCount(code),
62
+ bc = bytesCount - 1,
63
+ result = "";
64
+
65
+ if (bytesCount === 1) {
66
+ result = toBitsString(code, 8);
67
+ } else {
68
+ var significantOnes = 8 - bytesCount;
69
+
70
+ for (var i = 0; i < bc; i++) {
71
+ result = toBitsString(code >> (i * 6) & 63 | 128, 8) + result;
72
+ }
73
+
74
+ result = ((code >> bc * 6) | ((255 >> significantOnes) << significantOnes)).toString(2) + result;
75
+ }
76
+
77
+ return result;
78
+ };
79
+
80
+ Utf8Encoder.prototype.getBytesCount = function getBytesCount (code) {
81
+ var ranges = this.ranges;
82
+
83
+ for (var i = 0; i < ranges.length; i++) {
84
+ if (code < ranges[i]) {
85
+ return i + 1;
86
+ }
87
+ }
88
+ };
89
+
90
+ return Utf8Encoder;
91
+ }(Class));
@@ -0,0 +1,16 @@
1
+ import { Class } from '../../common';
2
+
3
+ export var EncodingResult = (function (Class) {
4
+ function EncodingResult(dataString, version) {
5
+ Class.call(this);
6
+
7
+ this.dataString = dataString;
8
+ this.version = version;
9
+ }
10
+
11
+ if ( Class ) EncodingResult.__proto__ = Class;
12
+ EncodingResult.prototype = Object.create( Class && Class.prototype );
13
+ EncodingResult.prototype.constructor = EncodingResult;
14
+
15
+ return EncodingResult;
16
+ }(Class));