@opentinyvue/vue-huicharts-line 2.21.0 → 3.21.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/lib/index.js CHANGED
@@ -1,35 +1,39 @@
1
1
  import Core, { getTooltip, getYAxis, getRows, isNull } from '@opentinyvue/vue-huicharts-core';
2
2
  import { $prefix } from '@opentinyvue/vue-common';
3
+ import { openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot } from 'vue';
3
4
 
4
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
5
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
6
- if (render) {
7
- options.render = render;
8
- options.staticRenderFns = staticRenderFns;
9
- options._compiled = true;
10
- }
11
- var hook;
12
- if (injectStyles) {
13
- hook = injectStyles;
5
+ function _createForOfIteratorHelperLoose(r, e) {
6
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7
+ if (t) return (t = t.call(r)).next.bind(t);
8
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
9
+ t && (r = t);
10
+ var o = 0;
11
+ return function() {
12
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
13
+ };
14
14
  }
15
- if (hook) {
16
- if (options.functional) {
17
- options._injectStyles = hook;
18
- var originalRender = options.render;
19
- options.render = function renderWithStyleInjection(h, context) {
20
- hook.call(context);
21
- return originalRender(h, context);
22
- };
23
- } else {
24
- var existing = options.beforeCreate;
25
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
26
- }
15
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16
+ }
17
+ function _unsupportedIterableToArray(r, a) {
18
+ if (r) {
19
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
20
+ var t = {}.toString.call(r).slice(8, -1);
21
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
27
22
  }
28
- return {
29
- exports: scriptExports,
30
- options
31
- };
32
23
  }
24
+ function _arrayLikeToArray(r, a) {
25
+ (null == a || a > r.length) && (a = r.length);
26
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
27
+ return n;
28
+ }
29
+ var _export_sfc = function _export_sfc2(sfc, props) {
30
+ var target = sfc.__vccOpts || sfc;
31
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
32
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
33
+ target[key] = val;
34
+ }
35
+ return target;
36
+ };
33
37
 
34
38
  function _extends() {
35
39
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
@@ -213,22 +217,7 @@ var getLineSeries = function getLineSeries2(args) {
213
217
  });
214
218
  return series;
215
219
  };
216
- var render = function render2() {
217
- var _vm = this;
218
- var _h = _vm.$createElement;
219
- var _c = _vm._self._c || _h;
220
- return _c("div", {
221
- staticClass: "hui-chart chart-box"
222
- }, [_c("div", {
223
- ref: "chartRef",
224
- style: {
225
- width: _vm.width,
226
- height: _vm.height
227
- }
228
- }), _vm._t("default")], 2);
229
- };
230
- var staticRenderFns = [];
231
- var __vue2_script = {
220
+ var _sfc_main = {
232
221
  name: $prefix + "ChartLine",
233
222
  mixins: [Core],
234
223
  data: function data() {
@@ -249,16 +238,25 @@ var __vue2_script = {
249
238
  }
250
239
  }
251
240
  };
252
- var __cssModules = {};
253
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
254
- function __vue2_injectStyles(context) {
255
- for (var o in __cssModules) {
256
- this[o] = __cssModules[o];
257
- }
241
+ var _hoisted_1 = {
242
+ class: "hui-chart chart-box"
243
+ };
244
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
245
+ return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode(
246
+ "div",
247
+ {
248
+ ref: "chartRef",
249
+ style: normalizeStyle({
250
+ width: _ctx.width,
251
+ height: _ctx.height
252
+ })
253
+ },
254
+ null,
255
+ 4
256
+ /* STYLE */
257
+ ), renderSlot(_ctx.$slots, "default")]);
258
258
  }
259
- var HuiChartsLine = /* @__PURE__ */ function() {
260
- return __component__.exports;
261
- }();
259
+ var HuiChartsLine = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
262
260
  HuiChartsLine.install = function(Vue) {
263
261
  Vue.component(HuiChartsLine.name, HuiChartsLine);
264
262
  };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-huicharts-line",
3
- "version": "2.21.0",
3
+ "version": "3.21.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-huicharts-core": "~2.21.0",
11
- "@opentinyvue/vue-common": "~2.21.0"
10
+ "@opentinyvue/vue-huicharts-core": "~3.21.0",
11
+ "@opentinyvue/vue-common": "~3.21.0"
12
12
  },
13
13
  "license": "MIT",
14
14
  "types": "index.d.ts",
@@ -1,6 +1,218 @@
1
- declare const _default: import("vue/types/vue").ExtendedVue<import("vue").default, {
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<{}, {}, {
2
2
  iChartName: string;
3
- }, {
3
+ }, {}, {
4
4
  updateChart(data: any): void;
5
- }, any, Record<never, any>>;
5
+ }, {
6
+ name: string;
7
+ emits: string[];
8
+ props: {
9
+ data: {
10
+ type: ObjectConstructor;
11
+ default(): {};
12
+ };
13
+ settings: {
14
+ type: ObjectConstructor;
15
+ default(): {};
16
+ };
17
+ width: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ height: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ events: {
26
+ type: ObjectConstructor;
27
+ default(): void;
28
+ };
29
+ initOptions: {
30
+ type: ObjectConstructor;
31
+ default(): {};
32
+ };
33
+ tooltipVisible: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ legendVisible: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ legendPosition: {
42
+ type: StringConstructor;
43
+ };
44
+ theme: ObjectConstructor;
45
+ themeName: (StringConstructor | ObjectConstructor)[];
46
+ judgeWidth: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ widthChangeDelay: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ resizeable: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ changeDelay: {
59
+ type: NumberConstructor;
60
+ default: number;
61
+ };
62
+ dataEmpty: BooleanConstructor;
63
+ beforeConfig: {
64
+ type: FunctionConstructor;
65
+ };
66
+ afterConfig: {
67
+ type: FunctionConstructor;
68
+ };
69
+ afterSetOption: {
70
+ type: FunctionConstructor;
71
+ };
72
+ afterSetOptionOnce: {
73
+ type: FunctionConstructor;
74
+ };
75
+ loading: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ extend: {
80
+ type: ObjectConstructor;
81
+ default(): void;
82
+ };
83
+ tooltipFormatter: {
84
+ type: FunctionConstructor;
85
+ };
86
+ markArea: {
87
+ type: ObjectConstructor;
88
+ };
89
+ markLine: {
90
+ type: ObjectConstructor;
91
+ };
92
+ markPoint: {
93
+ type: ObjectConstructor;
94
+ };
95
+ grid: {
96
+ type: (ObjectConstructor | ArrayConstructor)[];
97
+ };
98
+ colors: {
99
+ type: ArrayConstructor;
100
+ };
101
+ visualMap: (ObjectConstructor | ArrayConstructor)[];
102
+ dataZoom: (ObjectConstructor | ArrayConstructor)[];
103
+ toolbox: (ObjectConstructor | ArrayConstructor)[];
104
+ title: ObjectConstructor;
105
+ legend: (ObjectConstructor | ArrayConstructor)[];
106
+ xAxis: (ObjectConstructor | ArrayConstructor)[];
107
+ yAxis: (ObjectConstructor | ArrayConstructor)[];
108
+ radar: ObjectConstructor;
109
+ tooltip: ObjectConstructor;
110
+ axisPointer: ObjectConstructor;
111
+ brush: (ObjectConstructor | ArrayConstructor)[];
112
+ geo: ObjectConstructor;
113
+ timeline: (ObjectConstructor | ArrayConstructor)[];
114
+ graphic: (ObjectConstructor | ArrayConstructor)[];
115
+ series: (ObjectConstructor | ArrayConstructor)[];
116
+ backgroundColor: (StringConstructor | ObjectConstructor)[];
117
+ textStyle: ObjectConstructor;
118
+ animation: ObjectConstructor;
119
+ options: {
120
+ type: ObjectConstructor;
121
+ default: () => {};
122
+ };
123
+ cancelResizeCheck: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ setOptionOpts: {
128
+ type: ObjectConstructor;
129
+ default(): void;
130
+ };
131
+ colorMode: {
132
+ type: StringConstructor;
133
+ default: string;
134
+ };
135
+ };
136
+ data(): {
137
+ huiChartOption: {};
138
+ eChartOption: {};
139
+ renderOption: {};
140
+ initOpts: {};
141
+ watchToPropsEchartOptions: never[];
142
+ selfChart: string[];
143
+ isSelfChart: boolean;
144
+ chartList: never[];
145
+ once: {};
146
+ store: {};
147
+ };
148
+ computed: {
149
+ delay(): any;
150
+ size(): any;
151
+ setting(): any;
152
+ };
153
+ watch: {
154
+ options: {
155
+ handler(): void;
156
+ deep: boolean;
157
+ };
158
+ setting: {
159
+ handler(): void;
160
+ deep: boolean;
161
+ };
162
+ events: {
163
+ handler(val: any, oldVal: any): void;
164
+ deep: boolean;
165
+ };
166
+ initOptions: {
167
+ handler(val: any): void;
168
+ deep: boolean;
169
+ };
170
+ judgeWidth: {
171
+ handler(val: any): void;
172
+ };
173
+ delay: {
174
+ handler(val: any): void;
175
+ deep: boolean;
176
+ };
177
+ resizeable: {
178
+ handler(val: any): void;
179
+ };
180
+ setOptionOpts: {
181
+ handler(val: any): void;
182
+ deep: boolean;
183
+ };
184
+ loading(val: any): void;
185
+ dataEmpty(val: any): void;
186
+ size: {
187
+ handler(): void;
188
+ };
189
+ colors: {
190
+ handler(): void;
191
+ deep: boolean;
192
+ };
193
+ };
194
+ methods: {
195
+ selfSetting(options: any): void;
196
+ setAnimation(options: any): void;
197
+ applyMarks(options: any): void;
198
+ applyExtend(huiChartOption: any): any;
199
+ refreshChart(): void;
200
+ renderChart(huiChartOption: any): void;
201
+ addEvents(val: any): void;
202
+ removeEvents(oldVal: any): void;
203
+ resize(): void;
204
+ afterConfigFn(huiChartOption: any): any;
205
+ beforeConfigFn(data: any): any;
206
+ isStack(): boolean;
207
+ calcColors({ len, type, isStack }: {
208
+ len: any;
209
+ type: any;
210
+ isStack: any;
211
+ }): string[];
212
+ computedChartColor(): any;
213
+ };
214
+ created(): void;
215
+ mounted(): void;
216
+ beforeUnmount(): void;
217
+ }, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>;
6
218
  export default _default;