@idux/charts 0.8.0 → 1.1.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 +35 -5
- package/dist/index.js +3 -4
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +2 -1
- package/package.json +13 -8
- package/types.d.ts +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,46 @@
|
|
|
1
1
|
# @idux/charts
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 1.1.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 1934758: Add responsive built-in Pie layouts with alignment, paged legends and zero/missing-data presentation, plus explicit layout modes and main-series style overrides. Pie calls without the new layout controls retain 1.0.0 rendering and total calculation; opt into the built-in presentation with `layoutMode: 'auto'` or `align`. Existing explicit geometry and native option overrides retain their compatibility path.
|
|
8
|
+
|
|
9
|
+
Expand component guides, demos and packed Vue 2/Vue 3 playground coverage, including cross-version declaration and browser regression tests.
|
|
10
|
+
|
|
11
|
+
- 887b91a: Add Radar, Gauge and LiquidFill components with pure option builders, public prop types and reactive plot theme/typography configuration. Extend core option types for the new series and coordinate systems.
|
|
12
|
+
|
|
13
|
+
Schedule automatic chart resizing on the next animation frame to avoid ResizeObserver delivery loops, and cancel pending resize work when auto-resize is disabled or the chart is disposed.
|
|
8
14
|
|
|
9
15
|
### Patch Changes
|
|
10
16
|
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
- 34ae7b4: Preserve the built-in Pie radius when a wider legend still fits beside the chart. Reserve the standalone chart inset only when the legend is hidden, avoiding unnecessary shrinking with platform-dependent font widths.
|
|
18
|
+
- Updated dependencies [1934758]
|
|
19
|
+
- Updated dependencies [34ae7b4]
|
|
20
|
+
- Updated dependencies [887b91a]
|
|
21
|
+
- @idux/charts-plots@1.1.0
|
|
22
|
+
- @idux/charts-core@1.1.0
|
|
23
|
+
|
|
24
|
+
## 1.0.0
|
|
25
|
+
|
|
26
|
+
### Major Changes
|
|
27
|
+
|
|
28
|
+
- 493c9e8: Release the first stable 1.0.0 versions of the chart packages. This release includes reactive chart updates and lifecycle fixes, inferred component declarations compatible with Vue 2.7 and Vue 3, and public prop types for Vue 2.6 adapters.
|
|
29
|
+
|
|
30
|
+
### Minor Changes
|
|
31
|
+
|
|
32
|
+
- 45f7872: Export ChartPublicProps, BarChartPublicProps, LineChartPublicProps, and PieChartPublicProps for component type declarations. These types preserve named props and their optionality without broad index signatures. Existing chart configuration types and runtime behavior remain unchanged.
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- 45f7872: Fix reactive chart options and event listeners across Vue 2 and Vue 3. Clean up resize observers and striped area observers when charts update or unmount.
|
|
37
|
+
- 45f7872: Preserve vue-demi imports and emit component declarations compatible with Vue 2.7 and Vue 3, retaining inferred configuration props, events, scoped slots, and instance bindings. Keep ECharts registration reachable when consumers tree-shake the packaged library.
|
|
38
|
+
- Updated dependencies [45f7872]
|
|
39
|
+
- Updated dependencies [45f7872]
|
|
40
|
+
- Updated dependencies [493c9e8]
|
|
41
|
+
- Updated dependencies [45f7872]
|
|
42
|
+
- @idux/charts-core@1.0.0
|
|
43
|
+
- @idux/charts-plots@1.0.0
|
|
14
44
|
|
|
15
45
|
## 0.7.2
|
|
16
46
|
|
package/dist/index.js
CHANGED
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.IduxCharts={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.version=`1.1.0`;var t=require("@idux/charts-core");Object.keys(t).forEach(function(n){n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=require("@idux/charts-plots");Object.keys(n).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.charts-tooltips{min-width:180px}.charts-tooltips-title{
|
|
1
|
+
.charts-tooltips{min-width:180px}.charts-tooltips-title{color:#2f3540;margin-bottom:8px;font-size:12px;font-weight:600;line-height:14px}.charts-tooltips-item{color:#2f3540;background:#fff;border-radius:2px;justify-content:space-between;height:32px;margin-bottom:4px;padding:6px 12px;font-size:12px;line-height:20px;display:flex;position:relative;box-shadow:0 4px 12px #0237b31a}.charts-tooltips-item:last-child{margin-bottom:0}.charts-tooltips-item-border{background:#458fff;border-radius:2px 0 0 2px;width:2px;height:100%;position:absolute;top:0;left:0;box-shadow:0 2px 8px #e8f4ff}
|
|
2
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idux/charts",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "A
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "A chart component library for Vue 2 & 3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
7
|
+
"vue2",
|
|
7
8
|
"vue3",
|
|
8
|
-
"vue 3.x",
|
|
9
9
|
"chart",
|
|
10
10
|
"charts"
|
|
11
11
|
],
|
|
@@ -31,14 +31,16 @@
|
|
|
31
31
|
"*.md",
|
|
32
32
|
"*.d.ts"
|
|
33
33
|
],
|
|
34
|
-
"sideEffects":
|
|
34
|
+
"sideEffects": [
|
|
35
|
+
"**/*.css"
|
|
36
|
+
],
|
|
35
37
|
"dependencies": {
|
|
36
|
-
"@idux/charts-
|
|
37
|
-
"@idux/charts-
|
|
38
|
+
"@idux/charts-core": "1.1.0",
|
|
39
|
+
"@idux/charts-plots": "1.1.0"
|
|
38
40
|
},
|
|
39
41
|
"peerDependencies": {
|
|
40
|
-
"@vue/composition-api": "
|
|
41
|
-
"echarts": "^5.4.0",
|
|
42
|
+
"@vue/composition-api": ">=1.6.2",
|
|
43
|
+
"echarts": "^5.4.3 || ^6.0.0",
|
|
42
44
|
"lodash-es": "^4.17.0",
|
|
43
45
|
"vue": "^2.6.0 || ^3.2.5"
|
|
44
46
|
},
|
|
@@ -47,6 +49,9 @@
|
|
|
47
49
|
"optional": true
|
|
48
50
|
}
|
|
49
51
|
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"echarts": "^6.1.0"
|
|
54
|
+
},
|
|
50
55
|
"scripts": {
|
|
51
56
|
"clean": "rimraf dist node_modules",
|
|
52
57
|
"build": "rimraf dist && vite build"
|
package/types.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
declare module 'vue' {
|
|
2
|
-
export interface GlobalComponents {
|
|
3
|
-
IxChart: typeof import('@idux/charts-core')['IxChart']
|
|
4
|
-
IxBarChart: typeof import('@idux/charts-plots')['IxBarChart']
|
|
5
|
-
IxLineChart: typeof import('@idux/charts-plots')['IxLineChart']
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
declare module 'vue' {
|
|
2
|
+
export interface GlobalComponents {
|
|
3
|
+
IxChart: (typeof import('@idux/charts-core'))['IxChart']
|
|
4
|
+
IxBarChart: (typeof import('@idux/charts-plots'))['IxBarChart']
|
|
5
|
+
IxLineChart: (typeof import('@idux/charts-plots'))['IxLineChart']
|
|
6
|
+
IxRadarChart: (typeof import('@idux/charts-plots'))['IxRadarChart']
|
|
7
|
+
IxGaugeChart: (typeof import('@idux/charts-plots'))['IxGaugeChart']
|
|
8
|
+
IxLiquidFillChart: (typeof import('@idux/charts-plots'))['IxLiquidFillChart']
|
|
9
|
+
IxPieChart: (typeof import('@idux/charts-plots'))['IxPieChart']
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {}
|