@idux/charts 0.7.2 → 1.0.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @idux/charts
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 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.
8
+
9
+ ### Minor Changes
10
+
11
+ - 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.
12
+
13
+ ### Patch Changes
14
+
15
+ - 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.
16
+ - 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.
17
+ - Updated dependencies [45f7872]
18
+ - Updated dependencies [45f7872]
19
+ - Updated dependencies [493c9e8]
20
+ - Updated dependencies [45f7872]
21
+ - @idux/charts-core@1.0.0
22
+ - @idux/charts-plots@1.0.0
23
+
3
24
  ## 0.7.2
4
25
 
5
26
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from "@idux/charts-core";
2
2
  export * from "@idux/charts-plots";
3
- const o = "0.7.2";
4
- export {
5
- o as version
6
- };
3
+ // index.ts
4
+ var e = "1.0.0";
5
+ export { e as version };
@@ -1 +1 @@
1
- (function(e,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("@idux/charts-core"),require("@idux/charts-plots")):typeof define=="function"&&define.amd?define(["exports","@idux/charts-core","@idux/charts-plots"],r):(e=typeof globalThis<"u"?globalThis:e||self,r(e.IduxCharts={},e.IduxChartsCore,e.IduxChartsPlots))})(this,function(e,r,i){"use strict";const o="",n="0.7.2";e.version=n,Object.keys(r).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:()=>r[t]})}),Object.keys(i).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:()=>i[t]})}),Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
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.0.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{font-weight:600;color:#2f3540;margin-bottom:8px;line-height:14px;font-size:12px}.charts-tooltips-item{position:relative;display:flex;justify-content:space-between;font-size:12px;height:32px;line-height:20px;color:#2f3540;background:#FFFFFF;box-shadow:0 4px 12px #0237b31a;padding:6px 12px;margin-bottom:4px;border-radius:2px}.charts-tooltips-item:last-child{margin-bottom:0}.charts-tooltips-item-border{position:absolute;left:0;top:0;height:100%;width:2px;background:#458FFF;border-radius:2px 0 0 2px;box-shadow:0 2px 8px #e8f4ff}
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": "0.7.2",
4
- "description": "A UI Component Development Kit for Vue 3.x",
3
+ "version": "1.0.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": false,
34
+ "sideEffects": [
35
+ "**/*.css"
36
+ ],
35
37
  "dependencies": {
36
- "@idux/charts-core": "0.7.2",
37
- "@idux/charts-plots": "0.7.2"
38
+ "@idux/charts-core": "1.0.0",
39
+ "@idux/charts-plots": "1.0.0"
38
40
  },
39
41
  "peerDependencies": {
40
- "@vue/composition-api": "^1.7.0",
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,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
- IxPieChart: typeof import('@idux/charts-plots')['IxPieChart']
7
- }
8
- }
9
-
10
- export {}
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
+ IxPieChart: (typeof import('@idux/charts-plots'))['IxPieChart']
7
+ }
8
+ }
9
+
10
+ export {}