@siemens/ix-echarts 2.3.1 → 3.0.0-alpha.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.
- package/dist/index.js +11 -38
- package/dist/types/index.d.ts +0 -1
- package/dist/types/register.d.ts +1 -1
- package/package.json +7 -9
- package/dist/index.esm.js +0 -1480
package/dist/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
1
|
/*
|
|
6
2
|
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
7
3
|
*
|
|
@@ -29,8 +25,8 @@ const colors$3 = [
|
|
|
29
25
|
'#AAAA96' /* theme-chart-17 */,
|
|
30
26
|
'#FFBC66' /* theme-chart-5 */,
|
|
31
27
|
];
|
|
32
|
-
|
|
33
|
-
themeName: 'brand-dark',
|
|
28
|
+
var brandDark = {
|
|
29
|
+
themeName: 'theme-brand-dark',
|
|
34
30
|
theme: {
|
|
35
31
|
color: colors$3,
|
|
36
32
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
@@ -387,8 +383,8 @@ const colors$2 = [
|
|
|
387
383
|
'#5E5E4A' /* theme-chart-17 */,
|
|
388
384
|
'#801100' /* theme-chart-5 */,
|
|
389
385
|
];
|
|
390
|
-
|
|
391
|
-
themeName: 'brand-light',
|
|
386
|
+
var brandLight = {
|
|
387
|
+
themeName: 'theme-brand-light',
|
|
392
388
|
theme: {
|
|
393
389
|
color: colors$2,
|
|
394
390
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
@@ -745,8 +741,8 @@ const colors$1 = [
|
|
|
745
741
|
'#AAAA96' /* theme-chart-17 */,
|
|
746
742
|
'#90B4C5' /* theme-chart-5 */,
|
|
747
743
|
];
|
|
748
|
-
|
|
749
|
-
themeName: 'classic-dark',
|
|
744
|
+
var classicDark = {
|
|
745
|
+
themeName: 'theme-classic-dark',
|
|
750
746
|
theme: {
|
|
751
747
|
color: colors$1,
|
|
752
748
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
@@ -1103,8 +1099,8 @@ const colors = [
|
|
|
1103
1099
|
'#7A8000' /* theme-chart-17 */,
|
|
1104
1100
|
'#61778C' /* theme-chart-5 */,
|
|
1105
1101
|
];
|
|
1106
|
-
|
|
1107
|
-
themeName: 'classic-light',
|
|
1102
|
+
var classicLight = {
|
|
1103
|
+
themeName: 'theme-classic-light',
|
|
1108
1104
|
theme: {
|
|
1109
1105
|
color: colors,
|
|
1110
1106
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
@@ -1442,17 +1438,12 @@ const classicLightProject = {
|
|
|
1442
1438
|
* This source code is licensed under the MIT license found in the
|
|
1443
1439
|
* LICENSE file in the root directory of this source tree.
|
|
1444
1440
|
*/
|
|
1445
|
-
function
|
|
1441
|
+
function registerTheme(echartsInstance) {
|
|
1446
1442
|
const echarts = echartsInstance !== null && echartsInstance !== void 0 ? echartsInstance : window.echarts;
|
|
1447
1443
|
if (!echarts) {
|
|
1448
1444
|
throw Error('echarts not found');
|
|
1449
1445
|
}
|
|
1450
|
-
[
|
|
1451
|
-
classicDarkProject,
|
|
1452
|
-
classicLightProject,
|
|
1453
|
-
brandDarkProject,
|
|
1454
|
-
brandLightProject,
|
|
1455
|
-
].forEach((themeBundle) => {
|
|
1446
|
+
[classicDark, classicLight, brandDark, brandLight].forEach((themeBundle) => {
|
|
1456
1447
|
echarts.registerTheme(themeBundle.themeName, themeBundle.theme);
|
|
1457
1448
|
});
|
|
1458
1449
|
}
|
|
@@ -1469,22 +1460,4 @@ function getComputedCSSProperty(cssProperty) {
|
|
|
1469
1460
|
return getComputedStyle(document.body).getPropertyValue(`--theme-${cssProperty}`);
|
|
1470
1461
|
}
|
|
1471
1462
|
|
|
1472
|
-
|
|
1473
|
-
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
1474
|
-
*
|
|
1475
|
-
* SPDX-License-Identifier: MIT
|
|
1476
|
-
*
|
|
1477
|
-
* This source code is licensed under the MIT license found in the
|
|
1478
|
-
* LICENSE file in the root directory of this source tree.
|
|
1479
|
-
*/
|
|
1480
|
-
function convertThemeName(conventionalName) {
|
|
1481
|
-
return conventionalName.replace('theme-', '');
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
exports.brandDark = brandDarkProject;
|
|
1485
|
-
exports.brandLight = brandLightProject;
|
|
1486
|
-
exports.classicDark = classicDarkProject;
|
|
1487
|
-
exports.classicLight = classicLightProject;
|
|
1488
|
-
exports.convertThemeName = convertThemeName;
|
|
1489
|
-
exports.getComputedCSSProperty = getComputedCSSProperty;
|
|
1490
|
-
exports.registerTheme = registerEChartsThemes;
|
|
1463
|
+
export { brandDark, brandLight, classicDark, classicLight, getComputedCSSProperty, registerTheme };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,4 +4,3 @@ export { default as brandDark } from './themes/brand-dark';
|
|
|
4
4
|
export { default as brandLight } from './themes/brand-light';
|
|
5
5
|
export { default as classicDark } from './themes/classic-dark';
|
|
6
6
|
export { default as classicLight } from './themes/classic-light';
|
|
7
|
-
export declare function convertThemeName(conventionalName: string): string;
|
package/dist/types/register.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
"url": "https://github.com/siemens/ix",
|
|
8
8
|
"directory": "packages/echarts"
|
|
9
9
|
},
|
|
10
|
-
"version": "
|
|
10
|
+
"version": "3.0.0-alpha.1",
|
|
11
11
|
"description": "Siemens iX theme for echarts",
|
|
12
12
|
"main": "dist/index.js",
|
|
13
|
-
"module": "dist/index.esm.js",
|
|
14
13
|
"types": "dist/types/index.d.ts",
|
|
15
14
|
"files": [
|
|
16
15
|
"dist"
|
|
@@ -18,19 +17,18 @@
|
|
|
18
17
|
"author": "",
|
|
19
18
|
"license": "MIT",
|
|
20
19
|
"devDependencies": {
|
|
21
|
-
"@playwright/test": "^1.
|
|
22
|
-
"@rollup/plugin-typescript": "^8.
|
|
23
|
-
"echarts": "^5.
|
|
20
|
+
"@playwright/test": "^1.49.1",
|
|
21
|
+
"@rollup/plugin-typescript": "^8.5.0",
|
|
22
|
+
"echarts": "^5.5.1",
|
|
24
23
|
"http-server": "^14.1.1",
|
|
25
24
|
"rimraf": "^3.0.2",
|
|
26
|
-
"rollup": "^2.
|
|
27
|
-
"rollup-plugin-dts": "^4.2.
|
|
25
|
+
"rollup": "^2.79.1",
|
|
26
|
+
"rollup-plugin-dts": "^4.2.3",
|
|
28
27
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
29
28
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
30
29
|
"rollup-plugin-terser": "^7.0.2",
|
|
31
|
-
"typescript": "^4.
|
|
30
|
+
"typescript": "^4.9.5"
|
|
32
31
|
},
|
|
33
|
-
"dependencies": {},
|
|
34
32
|
"peerDependencies": {
|
|
35
33
|
"echarts": "^5.3.3"
|
|
36
34
|
},
|