@synergy-design-system/metadata 3.16.1 → 3.17.0
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/CHANGELOG.md +14 -0
- package/data/core/component/component:syn-chart.json +2 -2
- package/data/core/setup/setup:angular-components-module.json +1 -1
- package/data/core/setup/setup:angular-forms-module.json +1 -1
- package/data/core/setup/setup:angular-package.json +2 -2
- package/data/core/setup/setup:angular-validators-module.json +1 -1
- package/data/core/setup/setup:components-package.json +2 -2
- package/data/core/setup/setup:react-package.json +2 -2
- package/data/core/setup/setup:tokens-package.json +2 -2
- package/data/core/setup/setup:vue-package.json +2 -2
- package/data/core/token/token:tokens-charts-js-index-d-ts.json +1 -1
- package/data/core/token/token:tokens-charts-js-index-js.json +1 -1
- package/data/core/token/token:tokens-charts-scss-tokens-scss.json +1 -1
- package/data/core/token/token:tokens-charts-themes-sick2025-dark-css.json +1 -1
- package/data/core/token/token:tokens-charts-themes-sick2025-light-css.json +1 -1
- package/data/core/token/token:tokens-figma-variables-sick2018-dark-json.json +1 -1
- package/data/core/token/token:tokens-figma-variables-sick2018-light-json.json +1 -1
- package/data/core/token/token:tokens-figma-variables-sick2025-dark-json.json +1 -1
- package/data/core/token/token:tokens-figma-variables-sick2025-light-json.json +1 -1
- package/data/core/token/token:tokens-js-index-d-ts.json +1 -1
- package/data/core/token/token:tokens-js-index-js.json +1 -1
- package/data/core/token/token:tokens-scss-tokens-scss.json +1 -1
- package/data/core/token/token:tokens-themes-sick2018-dark-css.json +1 -1
- package/data/core/token/token:tokens-themes-sick2018-light-css.json +1 -1
- package/data/core/token/token:tokens-themes-sick2025-dark-css.json +1 -1
- package/data/core/token/token:tokens-themes-sick2025-light-css.json +1 -1
- package/data/index.json +1 -1
- package/data/layers/examples/component/component:syn-chart.md +115 -106
- package/data/layers/examples/component/component:syn-combobox.md +0 -18
- package/data/layers/full/component/component:syn-chart/angular/chart.component.ts +11 -5
- package/data/layers/full/component/component:syn-chart/components/chart.component.ts +67 -20
- package/data/layers/full/component/component:syn-chart/components/chart.palettes.ts +59 -59
- package/data/layers/full/component/component:syn-chart/components/types.ts +47 -4
- package/data/layers/full/component/component:syn-chart/react/chart.ts +1 -1
- package/data/layers/full/component/component:syn-chart/vue/SynVueChart.vue +11 -5
- package/data/layers/full/setup/setup:angular-package/angular/CHANGELOG.md +20 -0
- package/data/layers/full/setup/setup:angular-package/angular/package.json +1 -1
- package/data/layers/full/setup/setup:components-package/components/CHANGELOG.md +19 -0
- package/data/layers/full/setup/setup:components-package/components/package.json +1 -1
- package/data/layers/full/setup/setup:react-package/react/CHANGELOG.md +20 -0
- package/data/layers/full/setup/setup:react-package/react/package.json +1 -1
- package/data/layers/full/setup/setup:react-package/react/syn-jsx-elements.ts +2 -2
- package/data/layers/full/setup/setup:tokens-package/tokens/CHANGELOG.md +19 -0
- package/data/layers/full/setup/setup:tokens-package/tokens/package.json +1 -1
- package/data/layers/full/setup/setup:vue-package/vue/CHANGELOG.md +20 -0
- package/data/layers/full/setup/setup:vue-package/vue/package.json +1 -1
- package/data/layers/full/tokens/charts/js/index.d.ts +275 -265
- package/data/layers/full/tokens/charts/js/index.js +143 -133
- package/data/layers/full/tokens/charts/scss/_tokens.scss +135 -133
- package/data/layers/full/tokens/charts/themes/sick2025_dark.css +135 -133
- package/data/layers/full/tokens/charts/themes/sick2025_light.css +135 -133
- package/data/layers/full/tokens/js/index.d.ts +11 -1
- package/data/layers/full/tokens/js/index.js +11 -1
- package/data/layers/full/tokens/scss/_tokens.scss +3 -1
- package/data/layers/full/tokens/themes/sick2018_dark.css +3 -1
- package/data/layers/full/tokens/themes/sick2018_light.css +3 -1
- package/data/layers/full/tokens/themes/sick2025_dark.css +3 -1
- package/data/layers/full/tokens/themes/sick2025_light.css +3 -1
- package/data/layers/interface/component/component:syn-chart.json +5 -5
- package/data/layers/interface/component/component:syn-chart.md +4 -4
- package/data/manifest.json +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1291](https://github.com/synergy-design-system/synergy-design-system/pull/1291) [`363595e`](https://github.com/synergy-design-system/synergy-design-system/commit/363595ea1fde8baad6e11d69365732aa9f547c10) Thanks [@kirchsuSICKAG](https://github.com/kirchsuSICKAG)! - Released on: 2026-06-24
|
|
8
|
+
|
|
9
|
+
feat: ✨ chart axes mvp ([#1203](https://github.com/synergy-design-system/synergy-design-system/issues/1203))
|
|
10
|
+
|
|
11
|
+
This release introduces the first chart axis MVP for syn-chart.
|
|
12
|
+
|
|
13
|
+
New features:
|
|
14
|
+
- Adds and registers a Synergy ECharts light theme as default for syn-chart.
|
|
15
|
+
- Provides a config callback API with preset methods like `axesShowSplitLines()`, `axesAddXLabelIcons()`, and `axesHideLabels()` as an alternative to raw ECharts configuration objects for the _config_ property. These methods support both method chaining and sequential calling patterns for maximum flexibility.
|
|
16
|
+
|
|
3
17
|
## 3.16.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"documentation": "https://synergy-design-system.github.io/?path=/docs/charting-syn-chart--docs",
|
|
18
18
|
"events": [],
|
|
19
19
|
"packageName": "@synergy-design-system/react",
|
|
20
|
-
"since": "
|
|
20
|
+
"since": "3.15.0",
|
|
21
21
|
"sourcePath": "packages/react/src/types/syn-jsx-elements.ts",
|
|
22
22
|
"status": "experimental",
|
|
23
23
|
"subpathExport": "./types/latest",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"name": "syn-chart",
|
|
159
159
|
"package": "components",
|
|
160
160
|
"relations": [],
|
|
161
|
-
"since": "
|
|
161
|
+
"since": "3.15.0",
|
|
162
162
|
"sources": [
|
|
163
163
|
"packages/angular/components/chart/chart.component.ts",
|
|
164
164
|
"packages/components/src/components/chart/chart.component.ts",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"custom": {
|
|
3
3
|
"framework": "angular",
|
|
4
4
|
"packageName": "@synergy-design-system/angular",
|
|
5
|
-
"packageVersion": "3.
|
|
5
|
+
"packageVersion": "3.16.0",
|
|
6
6
|
"subpathExports": [
|
|
7
7
|
".",
|
|
8
8
|
"./components/*",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"name": "Angular Framework Package",
|
|
40
40
|
"package": "angular",
|
|
41
41
|
"relations": [],
|
|
42
|
-
"since": "3.
|
|
42
|
+
"since": "3.16.0",
|
|
43
43
|
"sources": [
|
|
44
44
|
"packages/angular/README.md",
|
|
45
45
|
"packages/angular/CHANGELOG.md",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"custom": {
|
|
3
3
|
"packageName": "@synergy-design-system/components",
|
|
4
|
-
"packageVersion": "3.
|
|
4
|
+
"packageVersion": "3.16.0"
|
|
5
5
|
},
|
|
6
6
|
"id": "setup:components-package",
|
|
7
7
|
"kind": "setup",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"name": "Components Package",
|
|
41
41
|
"package": "components",
|
|
42
42
|
"relations": [],
|
|
43
|
-
"since": "3.
|
|
43
|
+
"since": "3.16.0",
|
|
44
44
|
"sources": [
|
|
45
45
|
"packages/components/README.md",
|
|
46
46
|
"packages/components/CHANGELOG.md",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"custom": {
|
|
3
3
|
"framework": "react",
|
|
4
4
|
"packageName": "@synergy-design-system/react",
|
|
5
|
-
"packageVersion": "3.
|
|
5
|
+
"packageVersion": "3.16.0",
|
|
6
6
|
"subpathExports": [
|
|
7
7
|
".",
|
|
8
8
|
"./components/*",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"name": "React Framework Package",
|
|
43
43
|
"package": "react",
|
|
44
44
|
"relations": [],
|
|
45
|
-
"since": "3.
|
|
45
|
+
"since": "3.16.0",
|
|
46
46
|
"sources": [
|
|
47
47
|
"packages/react/README.md",
|
|
48
48
|
"packages/react/CHANGELOG.md",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"./themes/*"
|
|
33
33
|
],
|
|
34
34
|
"packageName": "@synergy-design-system/tokens",
|
|
35
|
-
"packageVersion": "3.
|
|
35
|
+
"packageVersion": "3.16.0"
|
|
36
36
|
},
|
|
37
37
|
"id": "setup:tokens-package",
|
|
38
38
|
"kind": "setup",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"name": "Tokens Package",
|
|
60
60
|
"package": "tokens",
|
|
61
61
|
"relations": [],
|
|
62
|
-
"since": "3.
|
|
62
|
+
"since": "3.16.0",
|
|
63
63
|
"sources": [
|
|
64
64
|
"packages/tokens/BREAKING_CHANGES.md",
|
|
65
65
|
"packages/tokens/CHANGELOG.md",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"custom": {
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"packageName": "@synergy-design-system/vue",
|
|
5
|
-
"packageVersion": "3.
|
|
5
|
+
"packageVersion": "3.16.0"
|
|
6
6
|
},
|
|
7
7
|
"id": "setup:vue-package",
|
|
8
8
|
"kind": "setup",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"name": "Vue Framework Package",
|
|
34
34
|
"package": "vue",
|
|
35
35
|
"relations": [],
|
|
36
|
-
"since": "3.
|
|
36
|
+
"since": "3.16.0",
|
|
37
37
|
"sources": [
|
|
38
38
|
"packages/vue/README.md",
|
|
39
39
|
"packages/vue/CHANGELOG.md",
|
package/data/index.json
CHANGED
|
@@ -13,6 +13,7 @@ The default story demonstrates a basic line chart configuration. The chart is co
|
|
|
13
13
|
xAxis: {
|
|
14
14
|
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
15
15
|
type: "category",
|
|
16
|
+
name: "Days",
|
|
16
17
|
},
|
|
17
18
|
yAxis: { type: "value" },
|
|
18
19
|
};
|
|
@@ -29,12 +30,14 @@ The config property is the main way to configure the chart. It accepts an object
|
|
|
29
30
|
```html
|
|
30
31
|
<syn-chart id="chart-config"></syn-chart>
|
|
31
32
|
<script type="module">
|
|
32
|
-
const
|
|
33
|
-
chart
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
const charts = document.querySelectorAll("#chart-config");
|
|
34
|
+
charts.forEach((chart) => {
|
|
35
|
+
chart.config = {
|
|
36
|
+
series: [{ data: [150, 230, 224], type: "line" }],
|
|
37
|
+
xAxis: { data: ["Mon", "Tue", "Wed"], type: "category" },
|
|
38
|
+
yAxis: { type: "value" },
|
|
39
|
+
};
|
|
40
|
+
});
|
|
38
41
|
</script>
|
|
39
42
|
```
|
|
40
43
|
|
|
@@ -47,51 +50,53 @@ Use the palette attribute to apply a Synergy design token color palette to chart
|
|
|
47
50
|
```html
|
|
48
51
|
<syn-chart id="chart-palette" palette="sequential-01"></syn-chart>
|
|
49
52
|
<script type="module">
|
|
50
|
-
const
|
|
51
|
-
chart
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
53
|
+
const charts = document.querySelectorAll("#chart-palette");
|
|
54
|
+
charts.forEach((chart) => {
|
|
55
|
+
chart.config = {
|
|
56
|
+
series: [
|
|
57
|
+
{
|
|
58
|
+
data: [150, 230, 224, 218, 135, 147, 260],
|
|
59
|
+
name: "Series A",
|
|
60
|
+
type: "line",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
data: [80, 130, 180, 100, 90, 120, 200],
|
|
64
|
+
name: "Series B",
|
|
65
|
+
type: "line",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
data: [200, 160, 140, 170, 210, 180, 150],
|
|
69
|
+
name: "Series C",
|
|
70
|
+
type: "line",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
data: [100, 120, 150, 80, 70, 110, 130],
|
|
74
|
+
name: "Series D",
|
|
75
|
+
type: "line",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
data: [180, 200, 170, 190, 220, 210, 240],
|
|
79
|
+
name: "Series E",
|
|
80
|
+
type: "line",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
data: [90, 110, 130, 70, 60, 100, 120],
|
|
84
|
+
name: "Series F",
|
|
85
|
+
type: "line",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
data: [160, 190, 150, 200, 230, 220, 250],
|
|
89
|
+
name: "Series G",
|
|
90
|
+
type: "line",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
xAxis: {
|
|
94
|
+
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
95
|
+
type: "category",
|
|
87
96
|
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
type: "category",
|
|
92
|
-
},
|
|
93
|
-
yAxis: { type: "value" },
|
|
94
|
-
};
|
|
97
|
+
yAxis: { type: "value" },
|
|
98
|
+
};
|
|
99
|
+
});
|
|
95
100
|
</script>
|
|
96
101
|
```
|
|
97
102
|
|
|
@@ -114,20 +119,22 @@ Use getInstance() to access the underlying ECharts instance directly and work wi
|
|
|
114
119
|
event payload.
|
|
115
120
|
</p>
|
|
116
121
|
<script type="module">
|
|
117
|
-
const
|
|
118
|
-
chart
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
const charts = document.querySelectorAll("#chart-get-instance");
|
|
123
|
+
charts.forEach((chart) => {
|
|
124
|
+
chart.config = {
|
|
125
|
+
series: [{ data: [150, 230, 224, 218, 135, 147, 260], type: "line" }],
|
|
126
|
+
tooltip: { trigger: "item" },
|
|
127
|
+
xAxis: {
|
|
128
|
+
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
129
|
+
type: "category",
|
|
130
|
+
},
|
|
131
|
+
yAxis: { type: "value" },
|
|
132
|
+
};
|
|
133
|
+
const chartInstance = chart.getInstance();
|
|
134
|
+
chartInstance.on("click", (params) =>
|
|
135
|
+
console.log("ECharts click event:", params),
|
|
136
|
+
);
|
|
137
|
+
});
|
|
131
138
|
</script>
|
|
132
139
|
```
|
|
133
140
|
|
|
@@ -140,52 +147,54 @@ You can use multiple charts in one <syn-chart> instance, each with its own confi
|
|
|
140
147
|
```html
|
|
141
148
|
<syn-chart id="chart-multiple-charts" palette="categorical"></syn-chart>
|
|
142
149
|
<script type="module">
|
|
143
|
-
const
|
|
150
|
+
const charts = document.querySelectorAll("#chart-multiple-charts");
|
|
144
151
|
|
|
145
152
|
const getHexValueFromVariable = (val) =>
|
|
146
153
|
getComputedStyle(document.documentElement).getPropertyValue(val).trim();
|
|
147
154
|
|
|
148
|
-
chart
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
155
|
+
charts.forEach((chart) => {
|
|
156
|
+
chart.config = {
|
|
157
|
+
series: [
|
|
158
|
+
{
|
|
159
|
+
data: [160, 185, 180, 175, 150, 160, 190],
|
|
160
|
+
name: "Series A",
|
|
161
|
+
type: "line",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
data: [170, 165, 155, 168, 180, 170, 158],
|
|
165
|
+
name: "Series B",
|
|
166
|
+
type: "line",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
data: [165, 175, 158, 172, 182, 175, 185],
|
|
170
|
+
name: "Series C",
|
|
171
|
+
type: "line",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
color: [getHexValueFromVariable("--syn-sequential-05-80")],
|
|
175
|
+
data: [80, 60, 90, 50, 70, 55, 85],
|
|
176
|
+
name: "Series D",
|
|
177
|
+
type: "line",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
color: [getHexValueFromVariable("--syn-sequential-05-60")],
|
|
181
|
+
data: [65, 75, 55, 80, 45, 70, 60],
|
|
182
|
+
name: "Series E",
|
|
183
|
+
type: "line",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
color: [getHexValueFromVariable("--syn-sequential-05-40")],
|
|
187
|
+
data: [50, 70, 60, 45, 55, 65, 75],
|
|
188
|
+
name: "Series F",
|
|
189
|
+
type: "line",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
xAxis: {
|
|
193
|
+
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
194
|
+
type: "category",
|
|
182
195
|
},
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
type: "category",
|
|
187
|
-
},
|
|
188
|
-
yAxis: { type: "value" },
|
|
189
|
-
};
|
|
196
|
+
yAxis: { type: "value" },
|
|
197
|
+
};
|
|
198
|
+
});
|
|
190
199
|
</script>
|
|
191
200
|
```
|
|
@@ -491,24 +491,6 @@ The filtered options shown in the list can be customized by passing a function t
|
|
|
491
491
|
// the highlight option renderer utility function can be imported via:
|
|
492
492
|
// import { highlightOptionRenderer } from '@synergy-design-system/components';
|
|
493
493
|
|
|
494
|
-
// preview-ignore:start
|
|
495
|
-
const highlightOptionRenderer = (e, t) => {
|
|
496
|
-
if (!t) return e;
|
|
497
|
-
let n = e.cloneNode(!0),
|
|
498
|
-
r = n.getTextLabel();
|
|
499
|
-
n.selected = e.selected;
|
|
500
|
-
let i = r.toLowerCase().indexOf(t.toLowerCase()),
|
|
501
|
-
a = n.innerHTML.indexOf(r),
|
|
502
|
-
o = document.createElement(`mark`);
|
|
503
|
-
((o.textContent = r.slice(i, i + t.length)),
|
|
504
|
-
o.classList.add(`syn-highlight-style`));
|
|
505
|
-
let s = r.replace(new RegExp(t, `i`), o.outerHTML),
|
|
506
|
-
c = n.innerHTML.slice(0, a),
|
|
507
|
-
l = n.innerHTML.slice(a + r.length);
|
|
508
|
-
return ((n.innerHTML = c.concat(s, l)), n);
|
|
509
|
-
};
|
|
510
|
-
// preview-ignore:end
|
|
511
|
-
|
|
512
494
|
const comboboxes = document.querySelectorAll(".highlight-combobox");
|
|
513
495
|
comboboxes.forEach((combobox) => {
|
|
514
496
|
combobox.getOption = highlightOptionRenderer;
|