@vaadin/charts 24.10.4 → 24.10.5
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.
- package/package.json +8 -8
- package/src/helpers.js +5 -20
- package/src/vaadin-chart-mixin.js +2 -1
- package/src/vaadin-chart-series-mixin.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/charts",
|
|
3
|
-
"version": "24.10.
|
|
3
|
+
"version": "24.10.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/component-base": "~24.10.
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "~24.10.
|
|
42
|
-
"@vaadin/vaadin-material-styles": "~24.10.
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "~24.10.
|
|
40
|
+
"@vaadin/component-base": "~24.10.5",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "~24.10.5",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "~24.10.5",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "~24.10.5",
|
|
44
44
|
"highcharts": "9.2.2",
|
|
45
45
|
"lit": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vaadin/chai-plugins": "~24.10.
|
|
49
|
-
"@vaadin/test-runner-commands": "~24.10.
|
|
48
|
+
"@vaadin/chai-plugins": "~24.10.5",
|
|
49
|
+
"@vaadin/test-runner-commands": "~24.10.5",
|
|
50
50
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
51
51
|
"sinon": "^18.0.0"
|
|
52
52
|
},
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "58e7810171be7423aab5c5caefbf67f62074c796"
|
|
59
59
|
}
|
package/src/helpers.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import `deepMerge` from `@vaadin/component-base/src/object-utils.js` instead.
|
|
3
|
+
*/
|
|
4
|
+
export { deepMerge } from '@vaadin/component-base/src/object-utils.js';
|
|
5
|
+
|
|
1
6
|
export function inflateFunctions(config) {
|
|
2
7
|
if (Array.isArray(config)) {
|
|
3
8
|
config.forEach(inflateFunctions);
|
|
@@ -27,26 +32,6 @@ export function inflateFunctions(config) {
|
|
|
27
32
|
});
|
|
28
33
|
}
|
|
29
34
|
|
|
30
|
-
export function deepMerge(target, source) {
|
|
31
|
-
const isObject = (item) => item && typeof item === 'object' && !Array.isArray(item);
|
|
32
|
-
|
|
33
|
-
if (isObject(source) && isObject(target)) {
|
|
34
|
-
Object.keys(source).forEach((key) => {
|
|
35
|
-
if (isObject(source[key])) {
|
|
36
|
-
if (!target[key]) {
|
|
37
|
-
Object.assign(target, { [key]: {} });
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
deepMerge(target[key], source[key]);
|
|
41
|
-
} else {
|
|
42
|
-
Object.assign(target, { [key]: source[key] });
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return target;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
35
|
export function prepareExport(chart) {
|
|
51
36
|
// Guard against another print 'before print' event coming before
|
|
52
37
|
// the 'after print' event.
|
|
@@ -30,10 +30,11 @@ import 'highcharts/es-modules/masters/modules/gantt.src.js';
|
|
|
30
30
|
import 'highcharts/es-modules/masters/modules/draggable-points.src.js';
|
|
31
31
|
import Pointer from 'highcharts/es-modules/Core/Pointer.js';
|
|
32
32
|
import Highcharts from 'highcharts/es-modules/masters/highstock.src.js';
|
|
33
|
+
import { deepMerge } from '@vaadin/component-base/src/object-utils.js';
|
|
33
34
|
import { get } from '@vaadin/component-base/src/path-utils.js';
|
|
34
35
|
import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
|
|
35
36
|
import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js';
|
|
36
|
-
import { cleanupExport,
|
|
37
|
+
import { cleanupExport, inflateFunctions, prepareExport } from './helpers.js';
|
|
37
38
|
|
|
38
39
|
['exportChart', 'exportChartLocal', 'getSVG'].forEach((methodName) => {
|
|
39
40
|
/* eslint-disable @typescript-eslint/no-invalid-this, prefer-arrow-callback */
|
package/web-types.json
CHANGED