@opentinyvue/vue-huicharts-liquidfill 2.22.0 → 3.22.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,36 +1,40 @@
1
1
  import Core, { isObject, itemLabel, itemContent, getFormatted } from '@opentinyvue/vue-huicharts-core';
2
2
  import 'echarts-liquidfill';
3
3
  import { $prefix } from '@opentinyvue/vue-common';
4
+ import { openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot } from 'vue';
4
5
 
5
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
6
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
7
- if (render) {
8
- options.render = render;
9
- options.staticRenderFns = staticRenderFns;
10
- options._compiled = true;
11
- }
12
- var hook;
13
- if (injectStyles) {
14
- hook = injectStyles;
6
+ function _createForOfIteratorHelperLoose(r, e) {
7
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
8
+ if (t) return (t = t.call(r)).next.bind(t);
9
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
10
+ t && (r = t);
11
+ var o = 0;
12
+ return function() {
13
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
14
+ };
15
15
  }
16
- if (hook) {
17
- if (options.functional) {
18
- options._injectStyles = hook;
19
- var originalRender = options.render;
20
- options.render = function renderWithStyleInjection(h, context) {
21
- hook.call(context);
22
- return originalRender(h, context);
23
- };
24
- } else {
25
- var existing = options.beforeCreate;
26
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
27
- }
16
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17
+ }
18
+ function _unsupportedIterableToArray(r, a) {
19
+ if (r) {
20
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
21
+ var t = {}.toString.call(r).slice(8, -1);
22
+ 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;
28
23
  }
29
- return {
30
- exports: scriptExports,
31
- options
32
- };
33
24
  }
25
+ function _arrayLikeToArray(r, a) {
26
+ (null == a || a > r.length) && (a = r.length);
27
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
28
+ return n;
29
+ }
30
+ var _export_sfc = function _export_sfc2(sfc, props) {
31
+ var target = sfc.__vccOpts || sfc;
32
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
33
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
34
+ target[key] = val;
35
+ }
36
+ return target;
37
+ };
34
38
 
35
39
  var isArr = Array.isArray;
36
40
  var getTooltip = function getTooltip2(data2) {
@@ -124,22 +128,7 @@ var getIChartOption = function getIChartOption2(columns, rows, settings, extra)
124
128
  };
125
129
  return ichartOption;
126
130
  };
127
- var render = function render2() {
128
- var _vm = this;
129
- var _h = _vm.$createElement;
130
- var _c = _vm._self._c || _h;
131
- return _c("div", {
132
- staticClass: "hui-chart chart-box"
133
- }, [_c("div", {
134
- ref: "chartRef",
135
- style: {
136
- width: _vm.width,
137
- height: _vm.height
138
- }
139
- }), _vm._t("default")], 2);
140
- };
141
- var staticRenderFns = [];
142
- var __vue2_script = {
131
+ var _sfc_main = {
143
132
  name: $prefix + "ChartLiquidfill",
144
133
  mixins: [Core],
145
134
  data: function data() {
@@ -158,16 +147,25 @@ var __vue2_script = {
158
147
  }
159
148
  }
160
149
  };
161
- var __cssModules = {};
162
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
163
- function __vue2_injectStyles(context) {
164
- for (var o in __cssModules) {
165
- this[o] = __cssModules[o];
166
- }
150
+ var _hoisted_1 = {
151
+ class: "hui-chart chart-box"
152
+ };
153
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
154
+ return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode(
155
+ "div",
156
+ {
157
+ ref: "chartRef",
158
+ style: normalizeStyle({
159
+ width: _ctx.width,
160
+ height: _ctx.height
161
+ })
162
+ },
163
+ null,
164
+ 4
165
+ /* STYLE */
166
+ ), renderSlot(_ctx.$slots, "default")]);
167
167
  }
168
- var HuiChartsLiquidfill = /* @__PURE__ */ function() {
169
- return __component__.exports;
170
- }();
168
+ var HuiChartsLiquidfill = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
171
169
  HuiChartsLiquidfill.install = function(Vue) {
172
170
  Vue.component(HuiChartsLiquidfill.name, HuiChartsLiquidfill);
173
171
  };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-huicharts-liquidfill",
3
- "version": "2.22.0",
3
+ "version": "3.22.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.22.0",
10
+ "@opentinyvue/vue-huicharts-core": "~3.22.0",
11
11
  "echarts-liquidfill": "3.1.0",
12
- "@opentinyvue/vue-common": "~2.22.0"
12
+ "@opentinyvue/vue-common": "~3.22.0"
13
13
  },
14
14
  "license": "MIT",
15
15
  "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(): 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;