@ecan-bi/tools 1.0.18 → 1.0.20

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/dist/index.es.js CHANGED
@@ -1,95 +1,95 @@
1
- /*! @ecan-bi/tools@1.0.18 */
2
- var Pe = Object.defineProperty, qe = Object.defineProperties;
3
- var Xe = Object.getOwnPropertyDescriptors;
4
- var de = Object.getOwnPropertySymbols;
5
- var Ke = Object.prototype.hasOwnProperty, Ue = Object.prototype.propertyIsEnumerable;
6
- var Be = (e, o, l) => o in e ? Pe(e, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[o] = l, C = (e, o) => {
1
+ /*! @ecan-bi/tools@1.0.20 */
2
+ var Qe = Object.defineProperty, Pe = Object.defineProperties;
3
+ var qe = Object.getOwnPropertyDescriptors;
4
+ var se = Object.getOwnPropertySymbols;
5
+ var Be = Object.prototype.hasOwnProperty, Ke = Object.prototype.propertyIsEnumerable;
6
+ var Ye = (e, o, l) => o in e ? Qe(e, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[o] = l, C = (e, o) => {
7
7
  for (var l in o || (o = {}))
8
- Ke.call(o, l) && Be(e, l, o[l]);
9
- if (de)
10
- for (var l of de(o))
11
- Ue.call(o, l) && Be(e, l, o[l]);
8
+ Be.call(o, l) && Ye(e, l, o[l]);
9
+ if (se)
10
+ for (var l of se(o))
11
+ Ke.call(o, l) && Ye(e, l, o[l]);
12
12
  return e;
13
- }, Y = (e, o) => qe(e, Xe(o));
13
+ }, Y = (e, o) => Pe(e, qe(o));
14
14
  var Se = (e, o) => {
15
15
  var l = {};
16
16
  for (var t in e)
17
- Ke.call(e, t) && o.indexOf(t) < 0 && (l[t] = e[t]);
18
- if (e != null && de)
19
- for (var t of de(e))
20
- o.indexOf(t) < 0 && Ue.call(e, t) && (l[t] = e[t]);
17
+ Be.call(e, t) && o.indexOf(t) < 0 && (l[t] = e[t]);
18
+ if (e != null && se)
19
+ for (var t of se(e))
20
+ o.indexOf(t) < 0 && Ke.call(e, t) && (l[t] = e[t]);
21
21
  return l;
22
22
  };
23
- var We = (e, o, l) => new Promise((t, y) => {
24
- var s = (n) => {
23
+ var Ue = (e, o, l) => new Promise((t, c) => {
24
+ var f = (n) => {
25
25
  try {
26
- d(l.next(n));
26
+ s(l.next(n));
27
27
  } catch (i) {
28
- y(i);
28
+ c(i);
29
29
  }
30
30
  }, r = (n) => {
31
31
  try {
32
- d(l.throw(n));
32
+ s(l.throw(n));
33
33
  } catch (i) {
34
- y(i);
34
+ c(i);
35
35
  }
36
- }, d = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, r);
37
- d((l = l.apply(e, o)).next());
36
+ }, s = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(f, r);
37
+ s((l = l.apply(e, o)).next());
38
38
  });
39
- import { unref as V, computed as oe } from "vue";
39
+ import { unref as k, computed as le } from "vue";
40
40
  import $ from "dayjs";
41
- import { cloneDeep as fe } from "lodash-es";
42
- const we = (e, o) => {
41
+ import { cloneDeep as ue } from "lodash-es";
42
+ const Le = (e, o) => {
43
43
  const l = C({
44
44
  dayjs: $
45
45
  }, o);
46
46
  let t = "";
47
- const y = [];
48
- for (const d in l)
49
- t += `${d},`, y.push(l[d]);
47
+ const c = [];
48
+ for (const s in l)
49
+ t += `${s},`, c.push(l[s]);
50
50
  t = t.replace(/,$/, "");
51
- const s = `function (${t}){return ${e}}`;
51
+ const f = `function (${t}){return ${e}}`;
52
52
  let r;
53
53
  try {
54
- r = Function(`"use strict";return (${s})`)()(...y);
55
- } catch (d) {
54
+ r = Function(`"use strict";return (${f})`)()(...c);
55
+ } catch (s) {
56
56
  return e;
57
57
  }
58
58
  return r;
59
- }, ie = (e = "", { textData: o, codeData: l } = {}, { useNewline: t = !1, useSpace: y = !1 } = {}) => {
60
- const s = C({}, o), r = (e || "").match(/\{(.+?)\}/g);
59
+ }, te = (e = "", { textData: o, codeData: l } = {}, { useNewline: t = !1, useSpace: c = !1 } = {}) => {
60
+ const f = C({}, o), r = (e || "").match(/\{(.+?)\}/g);
61
61
  if (r == null || r.length === 0)
62
62
  return e;
63
- for (let d = 0; d < r.length; d++) {
64
- const n = r[d];
63
+ for (let s = 0; s < r.length; s++) {
64
+ const n = r[s];
65
65
  let i = n.slice(1, -1).trim();
66
- const f = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, a = i.match(f);
67
- for (let b = 0; b < a.length; b++) {
68
- const u = a[b], S = s[u];
69
- S != null && (i = i.replace(u, S));
66
+ const a = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, d = i.match(a);
67
+ for (let y = 0; y < d.length; y++) {
68
+ const m = d[y], g = f[m];
69
+ g != null && (i = i.replace(m, g));
70
70
  }
71
- (/\(.*\)/g.test(i) || /[+/\\*]/g.test(i)) && (i = we(i, l)), e = e.replace(n, i);
71
+ (/\(.*\)/g.test(i) || /[+/\\*]/g.test(i)) && (i = Le(i, l)), e = e.replace(n, i);
72
72
  }
73
- return t && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), y && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, "&nbsp;&nbsp;")), e = e.replace(/Qfw\((.*?)\)/, (d, n) => o != null && o.Qfw ? o == null ? void 0 : o.Qfw(n) : n), e;
73
+ return t && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), c && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, "&nbsp;&nbsp;")), e = e.replace(/Qfw\((.*?)\)/, (s, n) => o != null && o.Qfw ? o == null ? void 0 : o.Qfw(n) : n), e;
74
74
  }, K = (e, o) => {
75
75
  if (typeof e == "string" && typeof o == "string")
76
76
  return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());
77
77
  if (typeof e == "string" && Array.isArray(o)) {
78
78
  const l = o.length;
79
79
  for (let t = 0; t < l; t++) {
80
- const y = o[t];
81
- if (typeof y == "string" && e.toLocaleLowerCase().includes(y.toLocaleLowerCase()))
80
+ const c = o[t];
81
+ if (typeof c == "string" && e.toLocaleLowerCase().includes(c.toLocaleLowerCase()))
82
82
  return !0;
83
83
  }
84
84
  }
85
85
  return !1;
86
- }, W = (e, o) => Object.prototype.hasOwnProperty.call(e, o), ue = (e) => {
86
+ }, W = (e, o) => Object.prototype.hasOwnProperty.call(e, o), ce = (e) => {
87
87
  const o = [];
88
88
  for (const l of e)
89
- l.conditions ? o.push(...ue(l.conditions)) : (l == null ? void 0 : l.dataType) === "component" && o.push(l);
89
+ l.conditions ? o.push(...ce(l.conditions)) : (l == null ? void 0 : l.dataType) === "component" && o.push(l);
90
90
  return o;
91
91
  };
92
- function Je(e) {
92
+ function Xe(e) {
93
93
  const o = e.split("-");
94
94
  let l = "";
95
95
  if (o != null && o.length)
@@ -106,21 +106,21 @@ function Je(e) {
106
106
  }
107
107
  return l;
108
108
  }
109
- const Ze = (e) => e.replace(/\\n/g, `
110
- `), Oe = (e = "", o) => {
109
+ const Je = (e) => e.replace(/\\n/g, `
110
+ `), Ze = (e = "", o) => {
111
111
  var r;
112
112
  const l = e.match(/\{(.+?)\}/g), t = ((r = e.split(`
113
113
  `)) == null ? void 0 : r.length) - 1;
114
- let y = "";
114
+ let c = "";
115
115
  if (t)
116
- for (let d = 0; d < t; d++)
117
- y += `
116
+ for (let s = 0; s < t; s++)
117
+ c += `
118
118
  `;
119
- let s = e;
119
+ let f = e;
120
120
  if (l != null && l.length) {
121
- for (const d of l) {
122
- const n = ie(
123
- d,
121
+ for (const s of l) {
122
+ const n = te(
123
+ s,
124
124
  {
125
125
  textData: o
126
126
  },
@@ -129,63 +129,64 @@ const Ze = (e) => e.replace(/\\n/g, `
129
129
  useSpace: !1
130
130
  }
131
131
  );
132
- n && (s = s.replace(d, n));
132
+ n && (f = f.replace(s, n));
133
133
  }
134
- return `${y}{text|${s}}`;
134
+ return `${c}{text|${f}}`;
135
135
  } else
136
136
  return e;
137
137
  };
138
- function el(e) {
139
- let o = "", l = "", t = "", y = "";
138
+ function Oe(e) {
139
+ let o = "", l = "", t = "", c = "";
140
140
  e.indexOf(".") > -1 ? (l = e.split(".")[0], t = e.split(".")[1]) : l = e;
141
- let s = 0, r = 0;
141
+ let f = 0, r = 0;
142
142
  for (r = l.length - 1; r >= 0; )
143
- s % 3 === 0 && s !== 0 ? l[r] === "-" ? o += l[r] : o += "," + l[r] : o += l[r], r--, s++;
144
- return o = o.split("").reverse().join(""), e.indexOf(".") > -1 ? y = o + "." + t : y = o, y;
143
+ f % 3 === 0 && f !== 0 ? l[r] === "-" ? o += l[r] : o += "," + l[r] : o += l[r], r--, f++;
144
+ return o = o.split("").reverse().join(""), e.indexOf(".") > -1 ? c = o + "." + t : c = o, c;
145
145
  }
146
- function ll(s) {
147
- return We(this, arguments, function* ({ graphicConfig: e, request: o, INDICATOR_URL: l = "", PAGE_ID: t, dataSourceId: y }) {
146
+ function el(f) {
147
+ return Ue(this, arguments, function* ({ graphicConfig: e, request: o, INDICATOR_URL: l = "", PAGE_ID: t, dataSourceId: c }) {
148
148
  var r;
149
149
  try {
150
- const { leftAxisList: d = [], rightAxisList: n = [], queryColumnList: i = [], indicators: f = [] } = V(e), a = [...d, ...n, ...i, ...f], b = {};
151
- for (const u of a) {
152
- const { indexCode: S = "", parentId: A = "" } = u;
153
- A && !W(u, "calcType") && !b[A] && (b[A] = S);
150
+ const { leftAxisList: s = [], rightAxisList: n = [], queryColumnList: i = [], indicators: a = [] } = k(e), d = [...s, ...n, ...i, ...a], y = {};
151
+ for (const m of d) {
152
+ const { indexCode: g = "", parentId: A = "" } = m;
153
+ A && !W(m, "calcType") && !y[A] && (y[A] = g);
154
154
  }
155
- if ((r = Object.keys(b)) != null && r.length) {
156
- const u = [];
157
- for (const x in b)
158
- u.push(
159
- new Promise((c, m) => {
155
+ if ((r = Object.keys(y)) != null && r.length) {
156
+ const m = [];
157
+ for (const b in y)
158
+ m.push(
159
+ new Promise((u, x) => {
160
160
  o.post(
161
161
  `${l}/diagram/hrpIndexWithComplex`,
162
162
  {
163
163
  pageId: t,
164
- indexGuid: x,
165
- indexCode: b[x],
166
- dataSourceId: y
164
+ indexGuid: b,
165
+ indexCode: y[b],
166
+ dataSourceId: c
167
167
  }
168
- ).then((g) => {
169
- var v;
170
- const { success: w, data: N = [] } = g.data;
171
- w && ((v = N == null ? void 0 : N.dataViewColumns) != null && v.length) ? c(N.dataViewColumns) : m(N);
172
- }).catch((g) => {
173
- m(g);
168
+ ).then((S) => {
169
+ var V;
170
+ const { success: L, data: p = [] } = S.data;
171
+ L && ((V = p == null ? void 0 : p.dataViewColumns) != null && V.length) ? u(p.dataViewColumns) : x(p);
172
+ }).catch((S) => {
173
+ console.error(S), x(S);
174
174
  });
175
175
  })
176
176
  );
177
- return (yield Promise.all(u)).reduce(
178
- (x, c) => x.filter((m) => c.find((g) => g.typeGuid === m.typeGuid))
179
- ).filter((x) => x.typeGuid);
177
+ return (yield Promise.all(m)).reduce(
178
+ (b, u) => b.filter((x) => u.find((S) => S.typeGuid === x.typeGuid))
179
+ ).filter((b) => b.typeGuid);
180
180
  }
181
- } catch (d) {
181
+ } catch (s) {
182
+ console.error(s);
182
183
  }
183
184
  return [];
184
185
  });
185
186
  }
186
- const ol = ["table", "bar", "combograph", "line", "pie", "radar", "scatter", "list", "circulate"];
187
- let ze = /* @__PURE__ */ new Map();
188
- const tl = [
187
+ const ll = ["table", "bar", "combograph", "line", "pie", "radar", "scatter", "list", "circulate"];
188
+ let _e = /* @__PURE__ */ new Map();
189
+ const ol = [
189
190
  "keyValue",
190
191
  "conditionKey",
191
192
  "conditionLabel",
@@ -194,46 +195,46 @@ const tl = [
194
195
  "customValue",
195
196
  "id",
196
197
  "keyName"
197
- ], ce = (e) => ze.get(e), il = (e, o = {}) => {
198
- const { around: l, unit: t, id: y } = e;
199
- let s = "";
200
- const { pageMode: r = "", componentList: d = [] } = (o == null ? void 0 : o.graphicConfig) || {};
198
+ ], ye = (e) => _e.get(e), tl = (e, o = {}) => {
199
+ const { around: l, unit: t, id: c } = e;
200
+ let f = "";
201
+ const { pageMode: r = "", componentList: s = [] } = (o == null ? void 0 : o.graphicConfig) || {};
201
202
  let n = null, i = null;
202
203
  if (r === "design") {
203
- const f = d == null ? void 0 : d.find((c) => c.id === y);
204
- if (!f)
204
+ const a = s == null ? void 0 : s.find((u) => u.id === c);
205
+ if (!a)
205
206
  return [];
206
- const { interval: a, intervalUnit: b, startTime: u, endTime: S, operate: A, useCurrentTime: x } = f || {};
207
- if (x && (n = $().subtract(a, b), i = $()), u && (n = $(u)), S && (i = $(S)), A) {
208
- const { type: c, value: m, mode: g } = A;
209
- switch (c) {
207
+ const { interval: d, intervalUnit: y, startTime: m, endTime: g, operate: A, useCurrentTime: b } = a || {};
208
+ if (b && (n = $().subtract(d, y), i = $()), m && (n = $(m)), g && (i = $(g)), A) {
209
+ const { type: u, value: x, mode: S } = A;
210
+ switch (u) {
210
211
  case "add":
211
- n = n && n.add(m, g), i = i && i.add(m, g);
212
+ n = n && n.add(x, S), i = i && i.add(x, S);
212
213
  break;
213
214
  case "minus":
214
- n = n && n.subtract(m, g), i = i && i.subtract(m, g);
215
+ n = n && n.subtract(x, S), i = i && i.subtract(x, S);
215
216
  }
216
217
  }
217
218
  } else {
218
- const f = ce(y) || {};
219
- V(f.startTime) && (n = $(V(f.startTime))), V(f.endTime) && (i = $(V(f.endTime)));
219
+ const a = ye(c) || {};
220
+ k(a.startTime) && (n = $(k(a.startTime))), k(a.endTime) && (i = $(k(a.endTime)));
220
221
  }
221
222
  if (n && i) {
222
- const f = i.diff(n, t.toLowerCase());
223
- s = `${l === "before" ? "-" : ""}${f + 1}`;
223
+ const a = i.diff(n, t.toLowerCase());
224
+ f = `${l === "before" ? "-" : ""}${a + 1}`;
224
225
  }
225
- return s ? [s] : [];
226
- }, _e = (e, o) => {
226
+ return f ? [f] : [];
227
+ }, We = (e, o) => {
227
228
  if (o)
228
229
  W(e, "indexCode") && (e.hrpIndexCode = e.indexCode, delete e.indexCode), W(e, "indexCodeNum") && (e.hrpIndexCodeNum = e.indexCodeNum, delete e.indexCodeNum), W(e, "dataType") && delete e.dataType;
229
230
  else {
230
- const { calcWays: l = [], dateCalcTypes: t = [], activeKey: y, componentId: s = "" } = e;
231
- if (y === 5 && (l != null && l.length) && (t != null && t.length) && s) {
231
+ const { calcWays: l = [], dateCalcTypes: t = [], activeKey: c, componentId: f = "" } = e;
232
+ if (c === 5 && (l != null && l.length) && (t != null && t.length) && f) {
232
233
  const r = l[0].split("-");
233
- (r == null ? void 0 : r.length) > 1 && r[0] === "rangeValue" && (e.calcWays = il({
234
+ (r == null ? void 0 : r.length) > 1 && r[0] === "rangeValue" && (e.calcWays = tl({
234
235
  around: r[1],
235
236
  unit: t[0],
236
- id: s
237
+ id: f
237
238
  })), delete e.radioValue;
238
239
  }
239
240
  if (W(e, "dataType")) {
@@ -247,216 +248,216 @@ const tl = [
247
248
  }
248
249
  W(e, "activeKey") && delete e.activeKey, W(e, "radioValue") && delete e.radioValue, W(e, "indexCode") && (e.hrpIndexCode = e.indexCode, delete e.indexCode), W(e, "indexCodeNum") && (e.hrpIndexCodeNum = e.indexCodeNum, delete e.indexCodeNum), e.dataType !== "component" && e.useCurrentTime && (e.fieldValue = $().format(e.dateFormat)), W(e, "modelKey") && delete e.modelKey, W(e, "prop") && delete e.prop, delete e.useCurrentTime;
249
250
  }
250
- }, le = (e, o) => {
251
+ }, ee = (e, o) => {
251
252
  const l = [];
252
- return e != null && e.length && fe(e).forEach((t) => {
253
+ return e != null && e.length && ue(e).forEach((t) => {
253
254
  if (t.join && t.conditions) {
254
- const y = !t.conditions.some((s) => s.join && s.conditions);
255
- t.conditions.forEach((s, r) => {
256
- _e(s, o);
257
- const d = {};
258
- if (r < t.conditions.length - 1 && (d.join = t.join), y)
259
- l.push(C(C({}, d), s));
260
- else if (s.join && s.conditions) {
255
+ const c = !t.conditions.some((f) => f.join && f.conditions);
256
+ t.conditions.forEach((f, r) => {
257
+ We(f, o);
258
+ const s = {};
259
+ if (r < t.conditions.length - 1 && (s.join = t.join), c)
260
+ l.push(C(C({}, s), f));
261
+ else if (f.join && f.conditions) {
261
262
  const n = o ? "sqlConditions" : "conditions";
262
263
  l.push(C({
263
- [n]: le([s], o)
264
- }, d));
264
+ [n]: ee([f], o)
265
+ }, s));
265
266
  } else
266
- l.push(C(C({}, d), s));
267
+ l.push(C(C({}, s), f));
267
268
  });
268
269
  } else
269
- _e(t, o), l.push(t);
270
+ We(t, o), l.push(t);
270
271
  }), l;
271
272
  }, Ae = (e = {}, o) => {
272
273
  if (e != null && e.sortCpnts && o) {
273
- const w = Qe(e);
274
- w && (o.sort = w);
274
+ const L = He(e);
275
+ L && (o.sort = L);
275
276
  }
276
277
  const {
277
278
  label: l,
278
279
  name: t,
279
- location: y,
280
- show: s,
280
+ location: c,
281
+ show: f,
281
282
  indexCode: r,
282
- indexCodeNum: d,
283
+ indexCodeNum: s,
283
284
  calcType: n = "COLUMN",
284
285
  builtInFormula: i,
285
- builtInValueSource: f,
286
- builtInCalcWay: a,
287
- formula: b,
288
- conditions: u,
289
- aggregate: S,
286
+ builtInValueSource: a,
287
+ builtInCalcWay: d,
288
+ formula: y,
289
+ conditions: m,
290
+ aggregate: g,
290
291
  distinct: A,
291
- dimByCount: x,
292
- dataTo: c
292
+ dimByCount: b,
293
+ dataTo: u
293
294
  } = e;
294
- let m;
295
- if (u && (m = le(u)), n === "COMPONENT") {
296
- const w = {};
297
- return ye(w, f), {
295
+ let x;
296
+ if (m && (x = ee(m)), n === "COMPONENT") {
297
+ const L = {};
298
+ return me(L, a), {
298
299
  label: l.trim(),
299
300
  columnName: t,
300
- show: s,
301
+ show: f,
301
302
  calcType: n,
302
- componentAlias: a,
303
- componentValue: w.fieldValue || null
303
+ componentAlias: d,
304
+ componentValue: L.fieldValue || null
304
305
  };
305
306
  }
306
- const g = {
307
+ const S = {
307
308
  label: l.trim(),
308
309
  columnName: t,
309
- location: y,
310
- show: s,
311
- calcType: c === "1" ? "VIEW" : n,
310
+ location: c,
311
+ show: f,
312
+ calcType: u === "1" ? "VIEW" : n,
312
313
  hrpIndexCode: r,
313
- hrpIndexCodeNum: d,
314
- aggregate: S,
314
+ hrpIndexCodeNum: s,
315
+ aggregate: g,
315
316
  builtInFormula: i,
316
- builtInValueSource: f,
317
- formula: b,
318
- conditions: m
317
+ builtInValueSource: a,
318
+ formula: y,
319
+ conditions: x
319
320
  };
320
321
  if (i === "DATE_OFFSET") {
321
- const w = a.split("-");
322
- if ((w == null ? void 0 : w.length) === 3) {
323
- let N = w[0];
324
- return w[2] === "before" && w[0] !== "0" && (N = `-${w[0]}`), Y(C({}, g), {
325
- calcWays: [N],
326
- dateCalcTypes: [w[1]]
322
+ const L = d.split("-");
323
+ if ((L == null ? void 0 : L.length) === 3) {
324
+ let p = L[0];
325
+ return L[2] === "before" && L[0] !== "0" && (p = `-${L[0]}`), Y(C({}, S), {
326
+ calcWays: [p],
327
+ dateCalcTypes: [L[1]]
327
328
  });
328
329
  }
329
330
  } else
330
- return t === "the_count" && (g.calcType = "AGGREGATE", g.distinct = !!A, g.typeGuid = x), Y(C({}, g), {
331
- builtInCalcWay: a
331
+ return t === "the_count" && (S.calcType = "AGGREGATE", S.distinct = !!A, S.typeGuid = b), Y(C({}, S), {
332
+ builtInCalcWay: d
332
333
  });
333
- }, nl = (e) => {
334
+ }, il = (e) => {
334
335
  if (!e)
335
336
  return [];
336
- const o = fe((e == null ? void 0 : e.controlList) || []).filter((S) => S.conditionKey !== "parentCode"), {
337
+ const o = ue((e == null ? void 0 : e.controlList) || []).filter((g) => g.conditionKey !== "parentCode"), {
337
338
  classificationList: l = [],
338
339
  rowHeaderList: t = [],
339
- dimensionList: y = [],
340
- seriesList: s = [],
340
+ dimensionList: c = [],
341
+ seriesList: f = [],
341
342
  leftAxisList: r = [],
342
- rightAxisList: d = [],
343
+ rightAxisList: s = [],
343
344
  queryColumnList: n = [],
344
345
  indicators: i = []
345
346
  } = e;
346
- He(o);
347
- const f = [
347
+ $e(o);
348
+ const a = [
348
349
  ...l,
349
350
  ...t,
350
- ...y,
351
- ...s,
351
+ ...c,
352
+ ...f,
352
353
  ...r,
353
- ...d,
354
+ ...s,
354
355
  ...n,
355
356
  ...i
356
- ], a = [];
357
- for (const S of f) {
358
- const A = ue((S == null ? void 0 : S.conditions) || []);
357
+ ], d = [];
358
+ for (const g of a) {
359
+ const A = ce((g == null ? void 0 : g.conditions) || []);
359
360
  if (A != null && A.length) {
360
- const x = A.filter((c) => (c == null ? void 0 : c.dataType) === "component").map((c) => {
361
- const m = {};
362
- return c != null && c.dateFormat && (m.format = c.dateFormat), c.fieldValue === "PARENT" && (m.id = "PARENT", m.keyName = c.modelKey, m.modelKey = c.modelKey, m.prop = c.prop), C({
363
- conditionKey: c.fieldName,
364
- conditionLabel: c.fieldName,
365
- conditionName: c.fieldName,
366
- conditionValueType: c.fieldType,
367
- id: c.componentId,
368
- keyName: c.fieldValue,
369
- rule: c.rule,
361
+ const b = A.filter((u) => (u == null ? void 0 : u.dataType) === "component").map((u) => {
362
+ const x = {};
363
+ return u != null && u.dateFormat && (x.format = u.dateFormat), u.fieldValue === "PARENT" && (x.id = "PARENT", x.keyName = u.modelKey, x.modelKey = u.modelKey, x.prop = u.prop), C({
364
+ conditionKey: u.fieldName,
365
+ conditionLabel: u.fieldName,
366
+ conditionName: u.fieldName,
367
+ conditionValueType: u.fieldType,
368
+ id: u.componentId,
369
+ keyName: u.fieldValue,
370
+ rule: u.rule,
370
371
  notGlobal: !0,
371
- indexCode: c.indexCode,
372
- typeGuid: c.typeGuid,
373
- indexCodeNum: c.indexCodeNum
374
- }, m);
372
+ indexCode: u.indexCode,
373
+ typeGuid: u.typeGuid,
374
+ indexCodeNum: u.indexCodeNum
375
+ }, x);
375
376
  });
376
- if (x != null && x.length)
377
- for (const c of x)
378
- a.find((m) => m.keyName === c.keyName) || a.push(c);
377
+ if (b != null && b.length)
378
+ for (const u of b)
379
+ d.find((x) => x.keyName === u.keyName) || d.push(u);
379
380
  }
380
381
  }
381
- const b = a.length, u = o;
382
- for (let S = 0; S < b; S++) {
383
- const A = a[S];
382
+ const y = d.length, m = o;
383
+ for (let g = 0; g < y; g++) {
384
+ const A = d[g];
384
385
  if ((A == null ? void 0 : A.conditionKey) === "parentCode")
385
386
  continue;
386
387
  const {
387
- id: x,
388
- keyName: c,
389
- prop: m,
390
- format: g,
391
- modelKey: w,
392
- dataType: N = "component",
393
- customValue: v
394
- } = A, E = $e(A);
395
- ye(E, x, { prop: m, dateFormat: g, modelKey: w, keyName: c }), N === "" && (E.fieldValue = v || ""), u.push(E);
388
+ id: b,
389
+ keyName: u,
390
+ prop: x,
391
+ format: S,
392
+ modelKey: L,
393
+ dataType: p = "component",
394
+ customValue: V
395
+ } = A, E = ze(A);
396
+ me(E, b, { prop: x, dateFormat: S, modelKey: L, keyName: u }), p === "" && (E.fieldValue = V || ""), m.push(E);
396
397
  }
397
- for (let S = u.length - 1; S >= 0; S--) {
398
- const A = u[S];
399
- A.globalCondition || ue(u).find((c) => c.alias === A.alias && c.globalCondition) && u.splice(S, 1);
398
+ for (let g = m.length - 1; g >= 0; g--) {
399
+ const A = m[g];
400
+ A.globalCondition || ce(m).find((u) => u.alias === A.alias && u.globalCondition) && m.splice(g, 1);
400
401
  }
401
- return u;
402
+ return m;
402
403
  };
403
- function $e(e) {
404
+ function ze(e) {
404
405
  const {
405
406
  id: o,
406
407
  keyName: l,
407
408
  conditionLabel: t,
408
- conditionKey: y,
409
- conditionValueType: s,
409
+ conditionKey: c,
410
+ conditionValueType: f,
410
411
  prop: r,
411
- rule: d = "NONE",
412
+ rule: s = "NONE",
412
413
  notGlobal: n = !1,
413
414
  indexCode: i,
414
- typeGuid: f,
415
- indexCodeNum: a,
416
- dataType: b = "component"
415
+ typeGuid: a,
416
+ indexCodeNum: d,
417
+ dataType: y = "component"
417
418
  } = e;
418
- let u = l || o;
419
- u && r && (u += `-${r}`);
420
- let S = d;
421
- return S === "NONE" && (["startTime", "endTime"].includes(r) ? S = r === "startTime" ? "GREATER_EQUAL" : "LESS_EQUAL" : l != null && l.includes("startTime") ? S = r === "GREATER_EQUAL" : l != null && l.includes("endTime") ? S = r === "LESS_EQUAL" : S = "EQUAL"), o === "PARENT" && (u = e.modelKey, u && r && (u += `-${r}`), S = d), {
422
- rule: S,
419
+ let m = l || o;
420
+ m && r && (m += `-${r}`);
421
+ let g = s;
422
+ return g === "NONE" && (["startTime", "endTime"].includes(r) ? g = r === "startTime" ? "GREATER_EQUAL" : "LESS_EQUAL" : l != null && l.includes("startTime") ? g = r === "GREATER_EQUAL" : l != null && l.includes("endTime") ? g = r === "LESS_EQUAL" : g = "EQUAL"), o === "PARENT" && (m = e.modelKey, m && r && (m += `-${r}`), g = s), {
423
+ rule: g,
423
424
  label: t,
424
- fieldName: y,
425
+ fieldName: c,
425
426
  fieldValue: "",
426
427
  // 在关联控件中取
427
428
  // dateFormat: 'YYYY-MM',
428
- valueType: s,
429
- alias: u,
429
+ valueType: f,
430
+ alias: m,
430
431
  globalCondition: !n,
431
432
  indexCode: i,
432
- typeGuid: f,
433
- indexCodeNum: a,
434
- dataType: b
433
+ typeGuid: a,
434
+ indexCodeNum: d,
435
+ dataType: y
435
436
  };
436
437
  }
437
- function He(e) {
438
+ function $e(e) {
438
439
  if (e != null && e.length)
439
440
  for (const o of e)
440
441
  if (o != null && o.conditions)
441
- He(o.conditions);
442
+ $e(o.conditions);
442
443
  else {
443
444
  const {
444
445
  id: l,
445
446
  keyName: t,
446
- prop: y,
447
- modelKey: s,
447
+ prop: c,
448
+ modelKey: f,
448
449
  format: r,
449
- dataType: d = "component",
450
+ dataType: s = "component",
450
451
  customValue: n
451
- } = o, i = $e(o);
452
- ye(i, l, { prop: y, dateFormat: r, modelKey: s, keyName: t }), d === "" && (i.fieldValue = n || "");
453
- for (const f in i)
454
- o[f] = i[f];
455
- for (const f of tl)
456
- delete o[f];
452
+ } = o, i = ze(o);
453
+ me(i, l, { prop: c, dateFormat: r, modelKey: f, keyName: t }), s === "" && (i.fieldValue = n || "");
454
+ for (const a in i)
455
+ o[a] = i[a];
456
+ for (const a of ol)
457
+ delete o[a];
457
458
  }
458
459
  }
459
- function rl(e) {
460
+ function nl(e) {
460
461
  const o = [];
461
462
  if (e != null && e.length) {
462
463
  for (const l of e)
@@ -467,7 +468,7 @@ function rl(e) {
467
468
  valueType: l.variableType,
468
469
  alias: l.keyName || ""
469
470
  };
470
- ye(t, l.id, {
471
+ me(t, l.id, {
471
472
  dateFormat: l.format,
472
473
  prop: l.dateTypeValue,
473
474
  keyName: l.keyName,
@@ -479,107 +480,107 @@ function rl(e) {
479
480
  }
480
481
  return o;
481
482
  }
482
- function ye(e, o, l) {
483
- const { prop: t = "", dateFormat: y = "", modelKey: s = "", keyName: r = "", operateValue: d, operateMode: n, operateType: i } = l || {}, f = s || r;
484
- if (o === "PARENT" && f && t) {
485
- const m = window.config.record;
486
- let g = t, w = y;
487
- const N = t.match(/\{(.+?)\}/g);
488
- if (N != null && N.length) {
489
- const v = N[0].slice(1, -1).trim();
490
- g = t.replace(N[0], ""), w = v, e.dateFormat = w;
483
+ function me(e, o, l) {
484
+ const { prop: t = "", dateFormat: c = "", modelKey: f = "", keyName: r = "", operateValue: s, operateMode: n, operateType: i } = l || {}, a = f || r;
485
+ if (o === "PARENT" && a && t) {
486
+ const x = window.config.record;
487
+ let S = t, L = c;
488
+ const p = t.match(/\{(.+?)\}/g);
489
+ if (p != null && p.length) {
490
+ const V = p[0].slice(1, -1).trim();
491
+ S = t.replace(p[0], ""), L = V, e.dateFormat = L;
491
492
  }
492
- if (m && m[f]) {
493
- const v = V(m[f][g]);
494
- $.isDayjs(v) ? e.fieldValue = v.format(w || "YYYY-MM-DD") : e.fieldValue = v;
493
+ if (x && x[a]) {
494
+ const V = k(x[a][S]);
495
+ $.isDayjs(V) ? e.fieldValue = V.format(L || "YYYY-MM-DD") : e.fieldValue = V;
495
496
  }
496
497
  return;
497
498
  }
498
- const a = ce(o) || {}, { value: b, format: u = "YYYY-MM-DD", type: S = "", useCurrentTime: A, RECORD: x } = a || {}, c = y || u;
499
- if (K(a.type, "date")) {
500
- let m;
501
- if (A ? b ? m = V(b) : m = $() : m = V(b), d && n && i)
499
+ const d = ye(o) || {}, { value: y, format: m = "YYYY-MM-DD", type: g = "", useCurrentTime: A, RECORD: b } = d || {}, u = c || m;
500
+ if (K(d.type, "date")) {
501
+ let x;
502
+ if (A ? y ? x = k(y) : x = $() : x = k(y), s && n && i)
502
503
  switch (i) {
503
504
  case "add":
504
- m = m.add(d, n);
505
+ x = x.add(s, n);
505
506
  break;
506
507
  case "minus":
507
- m = m.subtract(d, n);
508
+ x = x.subtract(s, n);
508
509
  break;
509
510
  }
510
- e.fieldValue = m == null ? void 0 : m.format(c), e.dateFormat = c;
511
- } else if (S === "ecanRangePicker") {
512
- let m = t;
511
+ e.fieldValue = x == null ? void 0 : x.format(u), e.dateFormat = u;
512
+ } else if (g === "ecanRangePicker") {
513
+ let x = t;
513
514
  if (!t) {
514
- const w = r && r.split("-");
515
- w != null && w.length && (m = w[w.length - 1]);
515
+ const L = r && r.split("-");
516
+ L != null && L.length && (x = L[L.length - 1]);
516
517
  }
517
- if (!m)
518
+ if (!x)
518
519
  return;
519
- let g = null;
520
- if (V(a[m]) && (g = $(V(a[m]))), d && n && i) {
521
- if (d === "rangeValue") {
522
- if (a.startTime && a.endTime) {
523
- const w = V(a.endTime).diff(V(a.startTime), n) + 1;
520
+ let S = null;
521
+ if (k(d[x]) && (S = $(k(d[x]))), s && n && i) {
522
+ if (s === "rangeValue") {
523
+ if (d.startTime && d.endTime) {
524
+ const L = k(d.endTime).diff(k(d.startTime), n) + 1;
524
525
  switch (i) {
525
526
  case "add":
526
- g = g && g.add(w, n);
527
+ S = S && S.add(L, n);
527
528
  break;
528
529
  case "minus":
529
- g = g && g.subtract(w, n);
530
+ S = S && S.subtract(L, n);
530
531
  }
531
532
  }
532
- } else if (!isNaN(+d))
533
+ } else if (!isNaN(+s))
533
534
  switch (i) {
534
535
  case "add":
535
- g = g && g.add(d, n);
536
+ S = S && S.add(s, n);
536
537
  break;
537
538
  case "minus":
538
- g = g && g.subtract(d, n);
539
+ S = S && S.subtract(s, n);
539
540
  }
540
541
  }
541
- if (g && (e.fieldValue = g == null ? void 0 : g.format(c)), m === "rangeValue" && a.startTime && a.endTime) {
542
- const w = Je(c);
543
- w && (e.fieldValue = V(a.endTime).diff(V(a.startTime), w) + 1);
542
+ if (S && (e.fieldValue = S == null ? void 0 : S.format(u)), x === "rangeValue" && d.startTime && d.endTime) {
543
+ const L = Xe(u);
544
+ L && (e.fieldValue = k(d.endTime).diff(k(d.startTime), L) + 1);
544
545
  }
545
- e.dateFormat = c;
546
+ e.dateFormat = u;
546
547
  } else
547
- K(S, ol) ? s && x ? e.fieldValue = x[s] : !s && x ? e.fieldValue = x.value : e.fieldValue = V(b) : e.fieldValue = V(b);
548
+ K(g, ll) ? f && b ? e.fieldValue = b[f] : !f && b ? e.fieldValue = b.value : e.fieldValue = k(y) : e.fieldValue = k(y);
548
549
  }
549
- const se = (e) => {
550
+ const fe = (e) => {
550
551
  var o;
551
552
  if (e) {
552
- const l = Array.isArray(e) ? fe(e) : [fe(e)];
553
- let t = "", y = [];
554
- const s = [], r = [], d = [];
553
+ const l = Array.isArray(e) ? ue(e) : [ue(e)];
554
+ let t = "", c = [];
555
+ const f = [], r = [], s = [];
555
556
  for (const n of l) {
556
- if (n.defaultCode && (n.label = n.columnName, delete n.defaultCode), n.type === "CUSTOM" && (y = n.customOrderColumns), t = n.type, s.push(n.label), (o = n.columnName) != null && o.includes("_ecanrepeat_")) {
557
+ if (n.defaultCode && (n.label = n.columnName, delete n.defaultCode), n.type === "CUSTOM" && (c = n.customOrderColumns), t = n.type, f.push(n.label), (o = n.columnName) != null && o.includes("_ecanrepeat_")) {
557
558
  const i = n.columnName.split("_ecanrepeat_");
558
559
  r.push(i[0]);
559
560
  } else
560
561
  r.push(n.columnName);
561
- d.push(n.order);
562
+ s.push(n.order);
562
563
  }
563
- return t !== "CUSTOM" && (s == null ? void 0 : s.length) > 1 && (t = "COMBINATION"), t === "CUSTOM" ? {
564
- label: s.join(","),
564
+ return t !== "CUSTOM" && (f == null ? void 0 : f.length) > 1 && (t = "COMBINATION"), t === "CUSTOM" ? {
565
+ label: f.join(","),
565
566
  columnName: r.join(","),
566
567
  type: t,
567
- customOrderColumns: y
568
+ customOrderColumns: c
568
569
  } : {
569
- label: s.join(","),
570
+ label: f.join(","),
570
571
  columnName: r.join(","),
571
- order: d.join(","),
572
+ order: s.join(","),
572
573
  type: t
573
574
  };
574
575
  } else
575
576
  return e;
576
- }, Qe = (e) => {
577
+ }, He = (e) => {
577
578
  const { sortCpnts: o = [] } = e;
578
579
  let l, t = "";
579
- for (const y of o) {
580
- const s = ce(y) || {}, { type: r, RECORD: d } = s;
581
- if (K(r, "image") && K(d == null ? void 0 : d.value, ["asc", "desc"])) {
582
- t = d.value.toUpperCase();
580
+ for (const c of o) {
581
+ const f = ye(c) || {}, { type: r, RECORD: s } = f;
582
+ if (K(r, "image") && K(s == null ? void 0 : s.value, ["asc", "desc"])) {
583
+ t = s.value.toUpperCase();
583
584
  break;
584
585
  }
585
586
  }
@@ -589,169 +590,168 @@ const se = (e) => {
589
590
  order: t,
590
591
  type: "NORMAL"
591
592
  }), l;
592
- }, al = (e, o = {}) => {
593
- var Ne, Fe, ve, ke, Ve, Ie, he, Ge, De, je;
594
- const { graphicConfig: l, type: t, globalModel: y, isGroupTable: s = !1 } = e;
595
- y && (ze = y);
596
- let r = e.pageId;
597
- const d = K(t, "pivottable");
593
+ }, rl = (e, o = {}) => {
594
+ var pe, Ne, Fe, ve, ke, Ve, Ie, Ee, Ge, De;
595
+ const { graphicConfig: l, type: t, globalModel: c, isGroupTable: f = !1 } = e;
596
+ c && (_e = c);
597
+ const r = K(t, "pivottable");
598
598
  let {
599
- source: n,
600
- dataViewId: i,
601
- plugin: f = "1",
599
+ source: s,
600
+ dataViewId: n,
601
+ plugin: i = "1",
602
602
  // 插件类型
603
603
  layer: a,
604
604
  // 后台图表类型,值分0,1
605
- chartType: b,
605
+ chartType: d,
606
606
  // 前端图表类型
607
- classificationList: u = [],
608
- rowHeaderList: S = [],
609
- dimensionList: A = [],
607
+ classificationList: y = [],
608
+ rowHeaderList: m = [],
609
+ dimensionList: g = [],
610
610
  // 文本组件的维度列表
611
- seriesList: x = [],
612
- leftAxisList: c = [],
613
- rightAxisList: m = [],
614
- queryColumnList: g = [],
615
- indicators: w = [],
616
- controlList: N = [],
617
- formFields: v = {},
618
- variableList: E = [],
619
- variableConditions: Z = [],
611
+ seriesList: A = [],
612
+ leftAxisList: b = [],
613
+ rightAxisList: u = [],
614
+ queryColumnList: x = [],
615
+ indicators: S = [],
616
+ controlList: L = [],
617
+ formFields: p = {},
618
+ variableList: V = [],
619
+ variableConditions: E = [],
620
620
  // dataSourceId, // 所属数据源ID
621
- idxLibMode: re,
621
+ idxLibMode: ne,
622
622
  // 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
623
- preview: me = !1,
623
+ preview: re = !1,
624
624
  // 预览开关
625
- edvDataSetId: Le
625
+ edvDataSetId: ae
626
626
  // 数据集id
627
627
  } = l || {}, I = [];
628
- if ((l == null ? void 0 : l.pageMode) === "design" ? (I = ((Ne = l.sqlConditions) != null ? Ne : []).map((L) => {
629
- const T = {};
630
- if (!W(L, "globalCondition") && !L.join && (T.globalCondition = !0), !L.join) {
631
- const p = L.rule || "EQUAL";
632
- T.rule = p === "NONE" ? "EQUAL" : p;
628
+ if ((l == null ? void 0 : l.pageMode) === "design" ? (I = ((pe = l.sqlConditions) != null ? pe : []).map((w) => {
629
+ const N = {};
630
+ if (!W(w, "globalCondition") && !w.join && (N.globalCondition = !0), !w.join) {
631
+ const T = w.rule || "EQUAL";
632
+ N.rule = T === "NONE" ? "EQUAL" : T;
633
633
  }
634
- return C(C({}, L), T);
635
- }), Z != null && Z.length && (I = I.concat(Z))) : (I = nl(l), E != null && E.length && (I = I.concat(rl(E)))), I != null && I.length) {
636
- const L = I.filter((p) => p.globalCondition), T = I.filter((p) => !p.globalCondition);
637
- (L == null ? void 0 : L.length) > 1 && (I = [
634
+ return C(C({}, w), N);
635
+ }), E != null && E.length && (I = I.concat(E))) : (I = il(l), V != null && V.length && (I = I.concat(nl(V)))), I != null && I.length) {
636
+ const w = I.filter((T) => T.globalCondition), N = I.filter((T) => !T.globalCondition);
637
+ (w == null ? void 0 : w.length) > 1 && (I = [
638
638
  {
639
639
  join: "&&",
640
- conditions: L
640
+ conditions: w
641
641
  },
642
- ...T
642
+ ...N
643
643
  ]);
644
644
  }
645
- I != null && I.length && (I = le(I, "1")), a == null && (K(t, ["table", "card"]) || K(t, ["list", "circulate"]) && (u == null ? void 0 : u.length) > 1 ? a = "1" : K(t, ["select", "checkbox", "radio"]) ? a = "3" : a = "2");
645
+ I != null && I.length && (I = ee(I, "1")), a == null && (K(t, ["table", "card"]) || K(t, ["list", "circulate"]) && (y == null ? void 0 : y.length) > 1 ? a = "1" : K(t, ["select", "checkbox", "radio"]) ? a = "3" : a = "2");
646
646
  let H;
647
- const Ce = [];
647
+ const we = [];
648
648
  let xe = "";
649
- if (Array.isArray(u) && u.length > 0 && (!["ecanList", "ecanCirculate"].includes(t) || (u == null ? void 0 : u.length) === 1)) {
650
- const L = u.length;
651
- for (let T = 0; T < L; T++) {
652
- const p = u[T] || {}, {
649
+ if (Array.isArray(y) && y.length > 0 && (!["ecanList", "ecanCirculate"].includes(t) || (y == null ? void 0 : y.length) === 1)) {
650
+ const w = y.length;
651
+ for (let N = 0; N < w; N++) {
652
+ const T = y[N] || {}, {
653
653
  label: G = "",
654
654
  name: D = "",
655
655
  show: j = !1,
656
656
  sort: Q,
657
657
  customGroup: q,
658
658
  conditions: F,
659
- dateFormat: k,
659
+ dateFormat: v,
660
660
  typeGuid: R = "",
661
- truncations: M = []
662
- } = p;
663
- if (j || L === 1) {
661
+ truncations: h = []
662
+ } = T;
663
+ if (j || w === 1) {
664
664
  xe = R, H = {
665
665
  label: G.trim(),
666
666
  columnName: D,
667
667
  show: j,
668
- sort: Qe(p) || se(Q) || Q,
668
+ sort: He(T) || fe(Q) || Q,
669
669
  customGroup: q,
670
- conditions: le(F),
670
+ conditions: ee(F),
671
671
  typeGuid: R
672
- }, k && (H.dateFormat = k), D === "the_date" && !H.dateFormat && (H.dateFormat = "YYYY-MM");
673
- const h = {};
674
- if (Array.isArray(M) && M.length > 0) {
675
- const U = M.length;
672
+ }, v && (H.dateFormat = v), D === "the_date" && !H.dateFormat && (H.dateFormat = "YYYY-MM");
673
+ const M = {};
674
+ if (Array.isArray(h) && h.length > 0) {
675
+ const U = h.length;
676
676
  for (let _ = 0; _ < U; _++) {
677
- const z = M[_] || {}, { rule: P = "", num: X = 0, name: ee = "" } = z;
678
- P && X && (h.num = X, h.rule = P, ee && (h.otherGroupName = ee));
677
+ const z = h[_] || {}, { rule: P = "", num: X = 0, name: O = "" } = z;
678
+ P && X && (M.num = X, M.rule = P, O && (M.otherGroupName = O));
679
679
  }
680
680
  }
681
- if ((Fe = Object.keys(h)) != null && Fe.length && (H.truncation = h), K(t, ["scatter", "valueline"]))
682
- Ce.push(H);
681
+ if ((Ne = Object.keys(M)) != null && Ne.length && (H.truncation = M), K(t, ["scatter", "valueline"]))
682
+ we.push(H);
683
683
  else
684
684
  break;
685
685
  }
686
686
  }
687
687
  }
688
- let Te;
689
- if (Array.isArray(x) && x.length > 0) {
690
- const L = x.length;
691
- for (let T = 0; T < L; T++) {
692
- const p = x[T] || {}, { label: G = "", name: D = "", show: j = !1, sort: Q, customGroup: q, conditions: F, typeGuid: k } = p;
693
- if (j || L === 1) {
694
- Te = {
688
+ let Ce;
689
+ if (Array.isArray(A) && A.length > 0) {
690
+ const w = A.length;
691
+ for (let N = 0; N < w; N++) {
692
+ const T = A[N] || {}, { label: G = "", name: D = "", show: j = !1, sort: Q, customGroup: q, conditions: F, typeGuid: v } = T;
693
+ if (j || w === 1) {
694
+ Ce = {
695
695
  label: G.trim(),
696
696
  columnName: D,
697
697
  show: j,
698
- sort: se(Q),
698
+ sort: fe(Q),
699
699
  customGroup: q,
700
- conditions: le(F),
701
- typeGuid: k
700
+ conditions: ee(F),
701
+ typeGuid: v
702
702
  };
703
703
  break;
704
704
  }
705
705
  }
706
706
  }
707
707
  const B = [];
708
- c == null || c.forEach((L) => {
709
- L.location = "LEFT", B.push(Ae(L, H));
710
- }), m == null || m.forEach((L) => {
711
- L.location = "RIGHT", B.push(Ae(L, H));
708
+ b == null || b.forEach((w) => {
709
+ w.location = "LEFT", B.push(Ae(w, H));
710
+ }), u == null || u.forEach((w) => {
711
+ w.location = "RIGHT", B.push(Ae(w, H));
712
712
  });
713
- let ae = w;
714
- (ke = (ve = o == null ? void 0 : o.pivotTableCal) == null ? void 0 : ve.indicators) != null && ke.length && (ae = o.pivotTableCal.indicators), ae == null || ae.forEach((L) => {
715
- L.location = "LEFT", B.push(Ae(L, H));
713
+ let de = S;
714
+ (ve = (Fe = o == null ? void 0 : o.pivotTableCal) == null ? void 0 : Fe.indicators) != null && ve.length && (de = o.pivotTableCal.indicators), de == null || de.forEach((w) => {
715
+ w.location = "LEFT", B.push(Ae(w, H));
716
716
  });
717
717
  const J = [];
718
- ["ecanList", "ecanCirculate"].includes(t) && (u == null ? void 0 : u.length) > 1 && (g = u), (Ie = (Ve = o == null ? void 0 : o.pivotTableCal) == null ? void 0 : Ve.dimensions) != null && Ie.length && (g = o.pivotTableCal.dimensions), g == null || g.forEach((L) => {
719
- const { label: T, name: p, location: G, show: D, indexCode: j, sort: Q, typeGuid: q, indexCodeNum: F, dateFormat: k, conditions: R } = L;
720
- let M = se(Q);
718
+ ["ecanList", "ecanCirculate"].includes(t) && (y == null ? void 0 : y.length) > 1 && (x = y), (Ve = (ke = o == null ? void 0 : o.pivotTableCal) == null ? void 0 : ke.dimensions) != null && Ve.length && (x = o.pivotTableCal.dimensions), x == null || x.forEach((w) => {
719
+ const { label: N, name: T, location: G, show: D, indexCode: j, sort: Q, typeGuid: q, indexCodeNum: F, dateFormat: v, conditions: R } = w;
720
+ let h = fe(Q);
721
721
  if (o.sort) {
722
722
  const { field: U, order: _ } = o.sort;
723
723
  let z = B.find((P) => P.label === U);
724
- !z && T === U && (z = L), z && (M = {
724
+ !z && N === U && (z = w), z && (h = {
725
725
  columnName: z.columnName,
726
726
  label: o.sort.field,
727
727
  order: _.toUpperCase(),
728
728
  type: "NORMAL"
729
729
  });
730
730
  }
731
- const h = {
732
- label: T,
733
- columnName: p,
731
+ const M = {
732
+ label: N,
733
+ columnName: T,
734
734
  location: G,
735
735
  show: D,
736
- sort: M,
736
+ sort: h,
737
737
  calcType: "COLUMN",
738
738
  hrpIndexCode: j,
739
739
  hrpIndexCodeNum: F,
740
- conditions: le(R),
740
+ conditions: ee(R),
741
741
  typeGuid: q
742
742
  };
743
- k && (h.dateFormat = k), p === "the_date" && !h.dateFormat && (h.dateFormat = "YYYY-MM"), J.push(h);
743
+ v && (M.dateFormat = v), T === "the_date" && !M.dateFormat && (M.dateFormat = "YYYY-MM"), J.push(M);
744
744
  });
745
- let ne = [], O = [];
746
- if (Array.isArray(S) && S.length > 0 ? O = S : Array.isArray(A) && A.length > 0 && (O = A), O != null && O.length) {
747
- const L = O.length;
748
- for (let T = 0; T < L; T++) {
749
- const p = O[T] || {}, { label: G = "", name: D = "", show: j = !1, sort: Q, customGroup: q, conditions: F, truncations: k, typeGuid: R = "", dateFormat: M } = p;
750
- let h = se(Q);
745
+ let ie = [], Z = [];
746
+ if (Array.isArray(m) && m.length > 0 ? Z = m : Array.isArray(g) && g.length > 0 && (Z = g), Z != null && Z.length) {
747
+ const w = Z.length;
748
+ for (let N = 0; N < w; N++) {
749
+ const T = Z[N] || {}, { label: G = "", name: D = "", show: j = !1, sort: Q, customGroup: q, conditions: F, truncations: v, typeGuid: R = "", dateFormat: h } = T;
750
+ let M = fe(Q);
751
751
  if (o.sort) {
752
752
  const { field: z, order: P } = o.sort;
753
- let X = B.find((ee) => ee.label === z);
754
- !X && p.label === z && (X = p), X && (h = {
753
+ let X = B.find((O) => O.label === z);
754
+ !X && T.label === z && (X = T), X && (M = {
755
755
  columnName: X.columnName,
756
756
  label: o.sort.field,
757
757
  order: P.toUpperCase(),
@@ -762,288 +762,280 @@ const se = (e) => {
762
762
  label: G.trim(),
763
763
  columnName: D,
764
764
  show: j,
765
- sort: h,
765
+ sort: M,
766
766
  customGroup: q,
767
- conditions: le(F),
767
+ conditions: ee(F),
768
768
  typeGuid: R
769
769
  };
770
- M && (U.dateFormat = M), D === "the_date" && !U.dateFormat && (U.dateFormat = "YYYY-MM");
770
+ h && (U.dateFormat = h), D === "the_date" && !U.dateFormat && (U.dateFormat = "YYYY-MM");
771
771
  const _ = {};
772
- if (Array.isArray(k) && k.length > 0) {
773
- const z = k.length;
772
+ if (Array.isArray(v) && v.length > 0) {
773
+ const z = v.length;
774
774
  for (let P = 0; P < z; P++) {
775
- const X = k[P] || {}, { rule: ee = "", num: Re = 0, name: Ye = "" } = X;
776
- ee && Re && (_.num = Re, _.rule = ee, Ye && (_.otherGroupName = Ye));
775
+ const X = v[P] || {}, { rule: O = "", num: je = 0, name: Re = "" } = X;
776
+ O && je && (_.num = je, _.rule = O, Re && (_.otherGroupName = Re));
777
777
  }
778
778
  }
779
- (he = Object.keys(_)) != null && he.length && (U.truncation = _), ne.push(U);
779
+ (Ie = Object.keys(_)) != null && Ie.length && (U.truncation = _), ie.push(U);
780
780
  }
781
781
  }
782
- let ge = [], pe;
782
+ let ge = [], Te;
783
783
  if (o != null && o.pivotTableCal) {
784
- let L = [];
784
+ let w = [];
785
785
  const {
786
- calc: T = [],
787
- filter: p = [],
786
+ calc: N = [],
787
+ filter: T = [],
788
788
  truncations: G = [],
789
789
  sorts: D = [],
790
790
  aggregateMethod: j = [],
791
791
  rowDimensionKeys: Q = [],
792
792
  colDimensionKeys: q = []
793
793
  } = o.pivotTableCal;
794
- if (B.push(...T), p != null && p.length)
795
- for (const F of p) {
796
- const Me = F, { type: k } = Me, R = Se(Me, ["type"]);
797
- k === "indicators" ? L = B : k === "dimension" && (L = J);
798
- const M = L.find((h) => h.columnName === F.fieldName);
799
- M && (M.conditions || (M.conditions = []), M.conditions.push(R));
794
+ if (B.push(...N), T != null && T.length)
795
+ for (const F of T) {
796
+ const Me = F, { type: v } = Me, R = Se(Me, ["type"]);
797
+ v === "indicators" ? w = B : v === "dimension" && (w = J);
798
+ const h = w.find((M) => M.columnName === F.fieldName);
799
+ h && (h.conditions || (h.conditions = []), h.conditions.push(R));
800
800
  }
801
801
  if (G != null && G.length)
802
802
  for (const F of G) {
803
- const k = J.find((R) => R.columnName === F.key);
804
- k && (k.truncation = {
803
+ const v = J.find((R) => R.columnName === F.key);
804
+ v && (v.truncation = {
805
805
  num: F.num,
806
806
  rule: F.rule
807
807
  });
808
808
  }
809
809
  if (D != null && D.length)
810
810
  for (const F of D) {
811
- const Ee = F, { fieldType: k, columnData: R } = Ee, M = Se(Ee, ["fieldType", "columnData"]);
812
- k === "indicators" ? (L = B, pe = R) : k === "dimension" && (L = J);
813
- const h = L.find((U) => U.label === M.label);
814
- h && (h.sort = Y(C({}, M), {
815
- columnName: h.columnName
811
+ const he = F, { fieldType: v, columnData: R } = he, h = Se(he, ["fieldType", "columnData"]);
812
+ v === "indicators" ? (w = B, Te = R) : v === "dimension" && (w = J);
813
+ const M = w.find((U) => U.label === h.label);
814
+ M && (M.sort = Y(C({}, h), {
815
+ columnName: M.columnName
816
816
  }));
817
817
  }
818
- if ((Ge = Object.keys(j)) != null && Ge.length)
818
+ if ((Ee = Object.keys(j)) != null && Ee.length)
819
819
  for (const F in j) {
820
- const k = J.find((R) => R.label === F);
821
- k && ((De = j[F]) != null && De.length) && (k.aggregateMethod = j[F]);
820
+ const v = J.find((R) => R.label === F);
821
+ v && ((Ge = j[F]) != null && Ge.length) && (v.aggregateMethod = j[F]);
822
822
  }
823
- ne = [], ge = [];
823
+ ie = [], ge = [];
824
824
  for (const F of J)
825
- Q.includes(F.columnName) ? ne.push(F) : q.includes(F.columnName) && ge.push(F);
825
+ Q.includes(F.columnName) ? ie.push(F) : q.includes(F.columnName) && ge.push(F);
826
826
  }
827
- if (K(t, ["text", "proportion", "counter"]) ? b = "zb" : K(t, ["valueline"]) && (b = "valueline"), s || t === "card") {
828
- if (ne.length === 0 || B.length === 0)
827
+ if (K(t, ["text", "proportion", "counter"]) ? d = "zb" : K(t, ["valueline"]) && (d = "valueline"), f || t === "card") {
828
+ if (ie.length === 0 || B.length === 0)
829
829
  return;
830
- b = "grouptable";
830
+ d = "grouptable";
831
831
  } else {
832
832
  if (a === "1" && J.length === 0)
833
833
  return;
834
834
  if (a === "2" && B.length === 0)
835
835
  return;
836
- if (a === "3" && (!xe && n !== "EDV_DATA_SET" || !v.labelField || !v.valueField))
836
+ if (a === "3" && (!xe && s !== "EDV_DATA_SET" || !p.labelField || !p.valueField))
837
837
  return;
838
838
  if (a === "3" && t === "ecanDataSelect" && B.length === 0)
839
839
  return;
840
840
  }
841
- if (A != null && A.length && (a = "1", b = "grouptable"), !r) {
842
- const { pathname: L } = window == null ? void 0 : window.location;
843
- if (L) {
844
- const T = L.split("/");
845
- T != null && T.length && (r = T[T.length - 1]);
846
- }
847
- }
841
+ g != null && g.length && (a = "1", d = "grouptable");
848
842
  let be;
849
- if (!K(t, ["scatter", "valueline"]) && ((je = Object.keys(v)) != null && je.length)) {
850
- const L = ue(N).find((p) => p.conditionKey === "parentCode"), T = {};
851
- if (L) {
852
- const p = ce(L.id) || {};
853
- if (p != null && p.itemCodes)
854
- T.parentItemCodes = p.itemCodes;
843
+ if (!K(t, ["scatter", "valueline"]) && ((De = Object.keys(p)) != null && De.length)) {
844
+ const w = ce(L).find((T) => T.conditionKey === "parentCode"), N = {};
845
+ if (w) {
846
+ const T = ye(w.id) || {};
847
+ if (T != null && T.itemCodes)
848
+ N.parentItemCodes = T.itemCodes;
855
849
  else
856
850
  return;
857
851
  }
858
- t === "ecanDataSelect" && (T.indicatorList = B.filter((p) => p.show)), n === "EDV_DATA_SET" && (T.edvDataSetId = Le), be = C({
852
+ t === "ecanDataSelect" && (N.indicatorList = B.filter((T) => T.show)), s === "EDV_DATA_SET" && (N.edvDataSetId = ae), be = C({
859
853
  url: "/diagram/formData",
860
- source: n,
861
- dataViewId: i,
854
+ source: s,
855
+ dataViewId: n,
862
856
  plugin: "4",
863
857
  layer: a,
864
858
  chartType: "normalSelect",
865
859
  rangeIndexTypeGuid: xe,
866
860
  type: t === "ecanDataSelect" ? "normalSelectData" : "normalSelect",
867
- labelField: v.labelField,
868
- valueField: v.valueField,
869
- pageId: r,
861
+ labelField: p.labelField,
862
+ valueField: p.valueField,
870
863
  sqlConditions: I,
871
864
  idxLibMode: "WITH_DATE_DIM_TABLE",
872
865
  keyName: e.keyName
873
- }, T);
866
+ }, N);
874
867
  } else {
875
- let L = {};
876
- K(t, ["scatter", "valueline"]) ? L = {
877
- classifications: Ce
878
- } : L = {
868
+ let w = {};
869
+ K(t, ["scatter", "valueline"]) ? w = {
870
+ classifications: we
871
+ } : w = {
879
872
  classification: H
880
873
  }, be = C({
881
874
  url: "/diagram",
882
- source: n,
883
- dataViewId: i,
884
- plugin: d ? "5" : f,
875
+ source: s,
876
+ dataViewId: n,
877
+ plugin: r ? "5" : i,
885
878
  layer: a,
886
- chartType: d ? "pivot-table" : b,
887
- series: Te,
879
+ chartType: r ? "pivot-table" : d,
880
+ series: Ce,
888
881
  indicatorList: B,
889
- queryColumns: s ? [] : J,
882
+ queryColumns: f ? [] : J,
890
883
  pageFlag: !0,
891
- pageId: r,
892
- edvDataSetId: Le || "",
893
- sqlConditions: I.map((T) => {
894
- const { fieldValue: p } = T, G = {};
895
- return p && Array.isArray(p) && (G.fieldValue = JSON.stringify(p)), C(C({}, T), G);
884
+ edvDataSetId: ae || "",
885
+ sqlConditions: I.map((N) => {
886
+ const { fieldValue: T } = N, G = {};
887
+ return T && Array.isArray(T) && (G.fieldValue = JSON.stringify(T)), C(C({}, N), G);
896
888
  }),
897
- idxLibMode: re,
898
- preview: me,
899
- rowHeaders: ne,
889
+ idxLibMode: ne,
890
+ preview: re,
891
+ rowHeaders: ie,
900
892
  keyName: e.keyName,
901
893
  // 透视表指标排序相关入参
902
- columnData: pe,
894
+ columnData: Te,
903
895
  columnHeaders: ge
904
- }, L);
896
+ }, w);
905
897
  }
906
898
  return be;
907
- }, dl = {
908
- formatIndicatorParams: al
909
- }, sl = (e = [], o) => {
899
+ }, al = {
900
+ formatIndicatorParams: rl
901
+ }, dl = (e = [], o) => {
910
902
  let { name: l = "name", types: t = [] } = o || {};
911
903
  l = (l == null ? void 0 : l.trim()) || l;
912
- const y = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), r = e.length, d = t.length;
904
+ const c = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map(), r = e.length, s = t.length;
913
905
  if (r === 1) {
914
- const f = [];
915
- for (let b = 0; b < d; b++) {
916
- const u = t[b], { label: S, value: A } = u, x = Y(C({}, e[0]), { value: e[0][A] });
917
- y.add(S), f.push(x);
906
+ const a = [];
907
+ for (let y = 0; y < s; y++) {
908
+ const m = t[y], { label: g, value: A } = m, b = Y(C({}, e[0]), { value: e[0][A] });
909
+ c.add(g), a.push(b);
918
910
  }
919
- const a = e[0][l] || "";
920
- s.set(a, f);
911
+ const d = e[0][l] || "";
912
+ f.set(d, a);
921
913
  } else
922
- for (let f = 0; f < r; f++) {
923
- const a = e[f], b = a[l];
924
- y.add(b);
925
- for (let u = 0; u < d; u++) {
926
- const S = t[u], { label: A, value: x } = S, c = Y(C({}, a), { value: a[x] });
927
- if (s.has(A)) {
928
- const m = s.get(A);
929
- m.push(c), s.set(A, m);
914
+ for (let a = 0; a < r; a++) {
915
+ const d = e[a], y = d[l];
916
+ c.add(y);
917
+ for (let m = 0; m < s; m++) {
918
+ const g = t[m], { label: A, value: b } = g, u = Y(C({}, d), { value: d[b] });
919
+ if (f.has(A)) {
920
+ const x = f.get(A);
921
+ x.push(u), f.set(A, x);
930
922
  } else
931
- s.set(A, [c]);
923
+ f.set(A, [u]);
932
924
  }
933
925
  }
934
- const n = Array.from(y), i = [];
935
- for (const [f, a] of s)
926
+ const n = Array.from(c), i = [];
927
+ for (const [a, d] of f)
936
928
  i.push({
937
- name: f,
938
- data: a
929
+ name: a,
930
+ data: d
939
931
  });
940
932
  return {
941
933
  dimensions: n,
942
934
  dataset: i
943
935
  };
944
- }, fl = (e, o) => {
945
- let { name: l = "name", value: t = "value", type: y = "type" } = o || {};
946
- l = l == null ? void 0 : l.trim(), t = t == null ? void 0 : t.trim(), y = y == null ? void 0 : y.trim();
947
- const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), d = e.length;
948
- for (let f = 0; f < d; f++) {
949
- const a = e[f], b = a[l] || "", u = a[t] || "", S = a[y] || "";
950
- if (s.add(b), r.has(S)) {
951
- const A = r.get(S);
952
- A.push(C({ name: b, value: u }, a)), r.set(S, A);
936
+ }, sl = (e, o) => {
937
+ let { name: l = "name", value: t = "value", type: c = "type" } = o || {};
938
+ l = l == null ? void 0 : l.trim(), t = t == null ? void 0 : t.trim(), c = c == null ? void 0 : c.trim();
939
+ const f = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), s = e.length;
940
+ for (let a = 0; a < s; a++) {
941
+ const d = e[a], y = d[l] || "", m = d[t] || "", g = d[c] || "";
942
+ if (f.add(y), r.has(g)) {
943
+ const A = r.get(g);
944
+ A.push(C({ name: y, value: m }, d)), r.set(g, A);
953
945
  } else
954
- r.set(S, [C({ name: b, value: u }, a)]);
946
+ r.set(g, [C({ name: y, value: m }, d)]);
955
947
  }
956
- const n = Array.from(s), i = [];
957
- for (const [f, a] of r)
948
+ const n = Array.from(f), i = [];
949
+ for (const [a, d] of r)
958
950
  i.push({
959
- name: f,
960
- data: a
951
+ name: a,
952
+ data: d
961
953
  });
962
954
  return {
963
955
  dimensions: n,
964
956
  dataset: i
965
957
  };
966
- }, te = (e, o) => {
967
- var y;
958
+ }, oe = (e, o) => {
959
+ var c;
968
960
  if (e == null)
969
961
  return o;
970
962
  const l = e.match(/\{.*\}/g);
971
963
  if (l == null || l.length === 0)
972
964
  return o;
973
965
  const t = l.length;
974
- for (let s = 0; s < t; s++) {
975
- const r = l[s];
966
+ for (let f = 0; f < t; f++) {
967
+ const r = l[f];
976
968
  if (r == null || r === "")
977
969
  break;
978
- let d = (y = r.slice(1, -1)) == null ? void 0 : y.trim();
979
- d = d == null ? void 0 : d.replace(/value/g, o);
970
+ let s = (c = r.slice(1, -1)) == null ? void 0 : c.trim();
971
+ s = s == null ? void 0 : s.replace(/value/g, o);
980
972
  try {
981
- let n = d;
982
- (/\(.*\)/g.test(d) || /[+/\\*]/g.test(d)) && (n = we(d)), e = e.replace(r, n);
973
+ let n = s;
974
+ (/\(.*\)/g.test(s) || /[+/\\*]/g.test(s)) && (n = Le(s)), e = e.replace(r, n);
983
975
  } catch (n) {
984
- e = e.replace(r, d);
976
+ e = e.replace(r, s);
985
977
  }
986
978
  }
987
979
  return e;
988
980
  };
989
- function ul(e) {
981
+ function fl(e) {
990
982
  return e.isShowMarkLine ? {
991
983
  markLine: {
992
984
  data: [{ type: e.markLineType }]
993
985
  }
994
986
  } : {};
995
987
  }
996
- const cl = (e, o, l) => {
988
+ const ul = (e, o, l) => {
997
989
  switch (e.type) {
998
990
  case "bar":
999
- return yl(e, o, l);
991
+ return cl(e, o, l);
1000
992
  case "line":
1001
- return ml(e, o, l);
993
+ return yl(e, o, l);
1002
994
  case "pie":
1003
- return xl(e, o, l);
995
+ return ml(e, o, l);
1004
996
  case "comboGraph":
1005
- return gl(e, o, l);
997
+ return xl(e, o, l);
1006
998
  default:
1007
999
  return {};
1008
1000
  }
1009
- }, yl = (e, o, l) => {
1010
- const t = e.yAxisLabelFormatter, y = e.xAxisLabelFormatter, { dimensions: s = [], dataset: r = [] } = o, d = oe(() => {
1011
- const { gradientShow: i, gradientColors: f, gradientOffset: a, barBorderRadius: b } = e, u = r, S = u.length, A = [];
1012
- for (let x = 0; x < S; x++) {
1013
- const c = Y(C({}, u[x]), {
1001
+ }, cl = (e, o, l) => {
1002
+ const t = e.yAxisLabelFormatter, c = e.xAxisLabelFormatter, { dimensions: f = [], dataset: r = [] } = o, s = le(() => {
1003
+ const { gradientShow: i, gradientColors: a, gradientOffset: d, barBorderRadius: y } = e, m = r, g = m.length, A = [];
1004
+ for (let b = 0; b < g; b++) {
1005
+ const u = Y(C({}, m[b]), {
1014
1006
  type: "bar",
1015
1007
  barWidth: e.barWidth,
1016
1008
  showBackground: e.showBarBackground
1017
- }), { isStack: m, stackColumns: g } = e;
1018
- if (m && g.includes(u[x].name || !g) && (c.stack = "stack"), c.label = {
1009
+ }), { isStack: x, stackColumns: S } = e;
1010
+ if (x && S.includes(m[b].name || !S) && (u.stack = "stack"), u.label = {
1019
1011
  show: e.labelShow,
1020
1012
  fontSize: e.labelFontSize,
1021
1013
  position: e.labelPosition,
1022
1014
  color: e.labelColor,
1023
1015
  width: e.labelWidth,
1024
1016
  overflow: e.labelOverflow,
1025
- formatter: (w) => {
1026
- let N = "", v = e.labelFormatter;
1027
- v === "" && (v = "{c}");
1028
- const { seriesName: E, name: Z, value: re, data: me } = w || {};
1029
- return N += ie(
1030
- v,
1017
+ formatter: (L) => {
1018
+ let p = "", V = e.labelFormatter;
1019
+ V === "" && (V = "{c}");
1020
+ const { seriesName: E, name: ne, value: re, data: ae } = L || {};
1021
+ return p += te(
1022
+ V,
1031
1023
  {
1032
1024
  textData: C({
1033
- name: Z,
1025
+ name: ne,
1034
1026
  value: re,
1035
1027
  a: E,
1036
- b: Z,
1028
+ b: ne,
1037
1029
  c: re || 0
1038
- }, me)
1030
+ }, ae)
1039
1031
  },
1040
1032
  {
1041
1033
  useNewline: !0,
1042
1034
  useSpace: !0
1043
1035
  }
1044
- ), N;
1036
+ ), p;
1045
1037
  }
1046
- }, c.itemStyle = {}, i && (c.itemStyle = {
1038
+ }, u.itemStyle = {}, i && (u.itemStyle = {
1047
1039
  color: {
1048
1040
  x: e.isUseHorizontalAxis ? 1 : 0,
1049
1041
  y: 0,
@@ -1051,78 +1043,78 @@ const cl = (e, o, l) => {
1051
1043
  y2: e.isUseHorizontalAxis ? 0 : 1,
1052
1044
  colorStops: [{
1053
1045
  offset: 0,
1054
- color: e.colors[x]
1046
+ color: e.colors[b]
1055
1047
  }, {
1056
- offset: a,
1057
- color: f[x]
1048
+ offset: d,
1049
+ color: a[b]
1058
1050
  }, {
1059
1051
  offset: 1,
1060
- color: f[x]
1052
+ color: a[b]
1061
1053
  }]
1062
1054
  }
1063
- }), b) {
1064
- const w = b.split(",");
1065
- if (w != null && w.length) {
1066
- const N = [];
1067
- for (const v of w) {
1068
- const E = parseFloat(v);
1069
- isNaN(E) || N.push(E);
1055
+ }), y) {
1056
+ const L = y.split(",");
1057
+ if (L != null && L.length) {
1058
+ const p = [];
1059
+ for (const V of L) {
1060
+ const E = parseFloat(V);
1061
+ isNaN(E) || p.push(E);
1070
1062
  }
1071
- c.itemStyle.barBorderRadius = N;
1063
+ u.itemStyle.barBorderRadius = p;
1072
1064
  }
1073
1065
  }
1074
- e.isShowMarkLine && (c.markLine = {
1066
+ e.isShowMarkLine && (u.markLine = {
1075
1067
  data: [{ type: e.markLineType }]
1076
- }), A.push(c);
1068
+ }), A.push(u);
1077
1069
  }
1078
1070
  return A;
1079
- }), n = oe(() => s.map((i) => {
1080
- let f = {};
1081
- return i && typeof i == "object" ? f = Y(C({}, i), {
1071
+ }), n = le(() => f.map((i) => {
1072
+ let a = {};
1073
+ return i && typeof i == "object" ? a = Y(C({}, i), {
1082
1074
  textStyle: {
1083
1075
  fontSize: l
1084
1076
  }
1085
- }) : f = {
1077
+ }) : a = {
1086
1078
  value: i,
1087
1079
  textStyle: {
1088
1080
  fontSize: l
1089
1081
  }
1090
- }, f;
1082
+ }, a;
1091
1083
  }));
1092
1084
  return {
1093
1085
  tooltip: {
1094
1086
  trigger: "axis",
1095
1087
  show: e.tooltipShow,
1096
1088
  formatter: (i) => {
1097
- const f = i.length;
1098
- let a = "", b = e.tooltipFormatter;
1099
- b === "" && (b = "{marker} {a} {c}");
1100
- for (let u = 0; u < f; u++) {
1101
- const { marker: S, seriesName: A, name: x, value: c, data: m } = i[u] || {};
1102
- if (u === 0) {
1103
- let g = x;
1104
- typeof x == "string" && x[0] === "0" && !isNaN(+x) && (g = (+x).toString()), a += `${te(y, g)}<br/>`;
1089
+ const a = i.length;
1090
+ let d = "", y = e.tooltipFormatter;
1091
+ y === "" && (y = "{marker} {a} {c}");
1092
+ for (let m = 0; m < a; m++) {
1093
+ const { marker: g, seriesName: A, name: b, value: u, data: x } = i[m] || {};
1094
+ if (m === 0) {
1095
+ let S = b;
1096
+ typeof b == "string" && b[0] === "0" && !isNaN(+b) && (S = (+b).toString()), d += `${oe(c, S)}<br/>`;
1105
1097
  }
1106
- a += ie(
1107
- b,
1098
+ d += te(
1099
+ y,
1108
1100
  {
1109
1101
  textData: C({
1110
- marker: S,
1111
- name: x,
1112
- value: c,
1113
- Qfw: el,
1102
+ marker: g,
1103
+ name: b,
1104
+ value: u,
1105
+ Qfw: Oe,
1114
1106
  a: A,
1115
- b: x,
1116
- c: c || 0
1117
- }, m)
1107
+ b,
1108
+ c: u || 0
1109
+ }, x)
1118
1110
  },
1119
1111
  {
1120
1112
  useNewline: !0,
1121
1113
  useSpace: !0
1122
1114
  }
1123
- ), a += "<br/>";
1115
+ ), d += "<br/>";
1124
1116
  }
1125
- return a;
1117
+ return d;
1126
1118
  },
1127
1119
  // valueFormatter: (value) => {
1128
1120
  // return useVariablesInText(chartsOptions.tooltipValueFormatter as string, { value })
@@ -1155,20 +1147,20 @@ const cl = (e, o, l) => {
1155
1147
  itemHeight: e.legendItemHeight,
1156
1148
  itemWidth: e.legendItemWidth,
1157
1149
  itemGap: e.legendItemGap,
1158
- data: r.map((i, f) => ({
1150
+ data: r.map((i, a) => ({
1159
1151
  name: i.name,
1160
1152
  itemStyle: {
1161
- color: e.colors[f]
1153
+ color: e.colors[a]
1162
1154
  },
1163
1155
  icon: e.legendType
1164
1156
  })),
1165
- formatter: (i) => Oe(e.legendFormatter, {
1157
+ formatter: (i) => Ze(e.legendFormatter, {
1166
1158
  name: i
1167
1159
  })
1168
1160
  },
1169
1161
  xAxis: {
1170
1162
  type: e.isUseHorizontalAxis ? "value" : "category",
1171
- data: e.isUseHorizontalAxis ? null : V(n),
1163
+ data: e.isUseHorizontalAxis ? null : k(n),
1172
1164
  inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
1173
1165
  minInterval: e.xAxisMinInterval,
1174
1166
  splitLine: {
@@ -1190,7 +1182,7 @@ const cl = (e, o, l) => {
1190
1182
  overflow: e.xAxisLabelOverflow,
1191
1183
  fontSize: e.xAxisLabelFontSize,
1192
1184
  formatter(i) {
1193
- return typeof i == "string" && i[0] === "0" && !isNaN(+i) && (i = (+i).toString()), te(y, i);
1185
+ return typeof i == "string" && i[0] === "0" && !isNaN(+i) && (i = (+i).toString()), oe(c, i);
1194
1186
  }
1195
1187
  },
1196
1188
  axisLine: {
@@ -1212,7 +1204,7 @@ const cl = (e, o, l) => {
1212
1204
  },
1213
1205
  yAxis: {
1214
1206
  type: e.isUseHorizontalAxis ? "category" : "value",
1215
- data: e.isUseHorizontalAxis ? V(s) : null,
1207
+ data: e.isUseHorizontalAxis ? k(f) : null,
1216
1208
  inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
1217
1209
  minInterval: e.yAxisMinInterval,
1218
1210
  splitLine: {
@@ -1233,7 +1225,7 @@ const cl = (e, o, l) => {
1233
1225
  width: e.yAxisLabelWidth,
1234
1226
  overflow: e.yAxisLabelOverflow,
1235
1227
  formatter(i) {
1236
- return te(t, i);
1228
+ return oe(t, i);
1237
1229
  }
1238
1230
  },
1239
1231
  axisLine: {
@@ -1250,28 +1242,28 @@ const cl = (e, o, l) => {
1250
1242
  },
1251
1243
  max: e.yAxisMaxValue || null
1252
1244
  },
1253
- series: V(d)
1245
+ series: k(s)
1254
1246
  };
1255
- }, ml = (e, o, l) => {
1256
- const t = e.yAxisLabelFormatter, y = e.xAxisLabelFormatter, { dimensions: s = [], dataset: r = [] } = o, d = oe(() => s.map((i) => {
1257
- let f = {};
1258
- return i && typeof i == "object" ? f = Y(C({}, i), {
1247
+ }, yl = (e, o, l) => {
1248
+ const t = e.yAxisLabelFormatter, c = e.xAxisLabelFormatter, { dimensions: f = [], dataset: r = [] } = o, s = le(() => f.map((i) => {
1249
+ let a = {};
1250
+ return i && typeof i == "object" ? a = Y(C({}, i), {
1259
1251
  textStyle: {
1260
1252
  fontSize: l
1261
1253
  }
1262
- }) : f = {
1254
+ }) : a = {
1263
1255
  value: i,
1264
1256
  textStyle: {
1265
1257
  fontSize: l
1266
1258
  }
1267
- }, f;
1268
- })), n = oe(() => {
1269
- const i = [], f = r.length;
1270
- for (let a = 0; a < f; a++) {
1271
- const b = {};
1272
- e.shadowColor && (b.shadowColor = e.shadowColor, b.shadowBlur = e.shadowBlur, b.shadowOffsetY = e.shadowOffsetY, b.shadowOffsetX = e.shadowOffsetX), i.push(C(Y(C({
1259
+ }, a;
1260
+ })), n = le(() => {
1261
+ const i = [], a = r.length;
1262
+ for (let d = 0; d < a; d++) {
1263
+ const y = {};
1264
+ e.shadowColor && (y.shadowColor = e.shadowColor, y.shadowBlur = e.shadowBlur, y.shadowOffsetY = e.shadowOffsetY, y.shadowOffsetX = e.shadowOffsetX), i.push(C(Y(C({
1273
1265
  type: "line"
1274
- }, r[a]), {
1266
+ }, r[d]), {
1275
1267
  symbolSize: e.symbolSize,
1276
1268
  smooth: e.smooth,
1277
1269
  areaStyle: {
@@ -1283,19 +1275,19 @@ const cl = (e, o, l) => {
1283
1275
  y2: 1,
1284
1276
  colorStops: [{
1285
1277
  offset: 0,
1286
- color: e.colors[a]
1278
+ color: e.colors[d]
1287
1279
  }, {
1288
1280
  offset: 1,
1289
1281
  color: e.areaGradientColor || "transparent"
1290
1282
  }],
1291
1283
  global: !1
1292
- } : e.colors[a],
1284
+ } : e.colors[d],
1293
1285
  opacity: e.areaStyleOpacity
1294
1286
  },
1295
1287
  lineStyle: C({
1296
1288
  width: e.lineStyleWidth
1297
- }, b)
1298
- }), ul(e)));
1289
+ }, y)
1290
+ }), fl(e)));
1299
1291
  }
1300
1292
  return i;
1301
1293
  });
@@ -1304,30 +1296,30 @@ const cl = (e, o, l) => {
1304
1296
  trigger: "axis",
1305
1297
  show: e.tooltipShow,
1306
1298
  formatter: (i) => {
1307
- const f = i.length;
1308
- let a = "", b = e.tooltipFormatter;
1309
- b === "" && (b = "{marker} {a} {c}");
1310
- for (let u = 0; u < f; u++) {
1311
- const { marker: S, seriesName: A, name: x, value: c, data: m } = i[u] || {};
1312
- u === 0 && (a += `${x}<br/>`), a += ie(
1313
- b,
1299
+ const a = i.length;
1300
+ let d = "", y = e.tooltipFormatter;
1301
+ y === "" && (y = "{marker} {a} {c}");
1302
+ for (let m = 0; m < a; m++) {
1303
+ const { marker: g, seriesName: A, name: b, value: u, data: x } = i[m] || {};
1304
+ m === 0 && (d += `${b}<br/>`), d += te(
1305
+ y,
1314
1306
  {
1315
1307
  textData: C({
1316
- marker: S,
1317
- name: x,
1318
- value: c,
1308
+ marker: g,
1309
+ name: b,
1310
+ value: u,
1319
1311
  a: A,
1320
- b: x,
1321
- c
1322
- }, m)
1312
+ b,
1313
+ c: u
1314
+ }, x)
1323
1315
  },
1324
1316
  {
1325
1317
  useNewline: !0,
1326
1318
  useSpace: !0
1327
1319
  }
1328
- ), a += "<br/>";
1320
+ ), d += "<br/>";
1329
1321
  }
1330
- return a;
1322
+ return d;
1331
1323
  },
1332
1324
  textStyle: {
1333
1325
  color: e.tooltipTextStyleColor,
@@ -1339,7 +1331,7 @@ const cl = (e, o, l) => {
1339
1331
  xAxis: {
1340
1332
  name: e.xAxisName,
1341
1333
  type: "category",
1342
- data: V(d),
1334
+ data: k(s),
1343
1335
  minInterval: e.xAxisMinInterval,
1344
1336
  splitLine: {
1345
1337
  show: e.xAxisSplitLineShow,
@@ -1354,7 +1346,7 @@ const cl = (e, o, l) => {
1354
1346
  width: e.xAxisLabelWidth,
1355
1347
  overflow: e.xAxisLabelOverflow,
1356
1348
  formatter(i) {
1357
- return te(y, i);
1349
+ return oe(c, i);
1358
1350
  }
1359
1351
  },
1360
1352
  axisLine: {
@@ -1380,7 +1372,7 @@ const cl = (e, o, l) => {
1380
1372
  fontSize: l,
1381
1373
  color: e.yAxisLabelColor,
1382
1374
  formatter(i) {
1383
- return te(t, i);
1375
+ return oe(t, i);
1384
1376
  }
1385
1377
  },
1386
1378
  axisLine: {
@@ -1400,16 +1392,16 @@ const cl = (e, o, l) => {
1400
1392
  fontSize: l
1401
1393
  }
1402
1394
  },
1403
- series: V(n)
1395
+ series: k(n)
1404
1396
  };
1405
- }, xl = (e, o, l) => {
1397
+ }, ml = (e, o, l) => {
1406
1398
  const { dataset: t = [] } = o;
1407
- let { data: y = [] } = t[0] || {};
1399
+ let { data: c = [] } = t[0] || {};
1408
1400
  if (Array.isArray(e.colors)) {
1409
- const s = e.isUseLabelColors, r = e.colors;
1410
- y = y.map((d, n) => C({
1411
- label: s ? { color: r[n] } : {}
1412
- }, d));
1401
+ const f = e.isUseLabelColors, r = e.colors;
1402
+ c = c.map((s, n) => C({
1403
+ label: f ? { color: r[n] } : {}
1404
+ }, s));
1413
1405
  }
1414
1406
  return {
1415
1407
  title: {
@@ -1426,21 +1418,21 @@ const cl = (e, o, l) => {
1426
1418
  tooltip: {
1427
1419
  show: e.tooltipShow,
1428
1420
  trigger: e.tooltipTrigger,
1429
- formatter: (s) => {
1430
- const { marker: r, seriesName: d, name: n, value: i, percent: f, data: a } = s || {};
1431
- return ie(
1421
+ formatter: (f) => {
1422
+ const { marker: r, seriesName: s, name: n, value: i, percent: a, data: d } = f || {};
1423
+ return te(
1432
1424
  e.tooltipFormatter,
1433
1425
  {
1434
1426
  textData: C({
1435
1427
  marker: r,
1436
1428
  name: n,
1437
1429
  value: i,
1438
- percent: f,
1439
- a: d,
1430
+ percent: a,
1431
+ a: s,
1440
1432
  b: n,
1441
1433
  c: i,
1442
- d: f
1443
- }, a)
1434
+ d: a
1435
+ }, d)
1444
1436
  },
1445
1437
  {
1446
1438
  useNewline: !0,
@@ -1467,7 +1459,7 @@ const cl = (e, o, l) => {
1467
1459
  },
1468
1460
  series: [
1469
1461
  {
1470
- data: y,
1462
+ data: c,
1471
1463
  type: "pie",
1472
1464
  radius: [e.innerRadius, e.outerRadius],
1473
1465
  center: [e.centerLeft, e.centerTop],
@@ -1479,7 +1471,7 @@ const cl = (e, o, l) => {
1479
1471
  color: e.labelColor,
1480
1472
  fontSize: l === 18 ? l : e.labelFontSize,
1481
1473
  position: e.labelPosition,
1482
- formatter: Ze(e.labelFormatter)
1474
+ formatter: Je(e.labelFormatter)
1483
1475
  },
1484
1476
  labelLine: {
1485
1477
  show: e.labelLineShow,
@@ -1497,8 +1489,8 @@ const cl = (e, o, l) => {
1497
1489
  }
1498
1490
  ]
1499
1491
  };
1500
- }, gl = (e, o, l) => {
1501
- const { dimensions: t = [], dataset: y = [] } = o, s = oe(() => t.map((n) => {
1492
+ }, xl = (e, o, l) => {
1493
+ const { dimensions: t = [], dataset: c = [] } = o, f = le(() => t.map((n) => {
1502
1494
  let i = {};
1503
1495
  return n && typeof n == "object" ? i = Y(C({}, n), {
1504
1496
  textStyle: {
@@ -1510,21 +1502,21 @@ const cl = (e, o, l) => {
1510
1502
  fontSize: l
1511
1503
  }
1512
1504
  }, i;
1513
- })), r = oe(() => {
1514
- const n = [], i = y.length, f = e.seriesTypes;
1515
- for (let a = 0; a < i; a++) {
1516
- const b = f[a], { type: u, axisIndex: S } = b || {};
1505
+ })), r = le(() => {
1506
+ const n = [], i = c.length, a = e.seriesTypes;
1507
+ for (let d = 0; d < i; d++) {
1508
+ const y = a[d], { type: m, axisIndex: g } = y || {};
1517
1509
  let A = C({
1518
- type: u,
1519
- yAxisIndex: S
1520
- }, y[a]);
1521
- if (u === "line") {
1522
- const x = {};
1523
- e.shadowColor && (x.shadowColor = e.shadowColor, x.shadowBlur = e.shadowBlur, x.shadowOffsetY = e.shadowOffsetY, x.shadowOffsetX = e.shadowOffsetX), A = Y(C({}, A), {
1510
+ type: m,
1511
+ yAxisIndex: g
1512
+ }, c[d]);
1513
+ if (m === "line") {
1514
+ const b = {};
1515
+ e.shadowColor && (b.shadowColor = e.shadowColor, b.shadowBlur = e.shadowBlur, b.shadowOffsetY = e.shadowOffsetY, b.shadowOffsetX = e.shadowOffsetX), A = Y(C({}, A), {
1524
1516
  symbolSize: e.symbolSize,
1525
1517
  smooth: e.smooth,
1526
1518
  itemStyle: {
1527
- color: e.colors[a]
1519
+ color: e.colors[d]
1528
1520
  },
1529
1521
  areaStyle: {
1530
1522
  color: e.areaGradientShow ? {
@@ -1535,51 +1527,51 @@ const cl = (e, o, l) => {
1535
1527
  y2: 1,
1536
1528
  colorStops: [{
1537
1529
  offset: 0,
1538
- color: e.colors[a]
1530
+ color: e.colors[d]
1539
1531
  }, {
1540
1532
  offset: 1,
1541
1533
  color: e.areaGradientColor || "transparent"
1542
1534
  }],
1543
1535
  global: !1
1544
- } : e.colors[a],
1536
+ } : e.colors[d],
1545
1537
  opacity: e.areaStyleOpacity
1546
1538
  },
1547
1539
  lineStyle: C({
1548
1540
  width: e.lineStyleWidth
1549
- }, x)
1541
+ }, b)
1550
1542
  });
1551
1543
  }
1552
- if (u === "bar") {
1553
- const { gradientShow: x, gradientColors: c, gradientOffset: m } = e, g = {};
1544
+ if (m === "bar") {
1545
+ const { gradientShow: b, gradientColors: u, gradientOffset: x } = e, S = {};
1554
1546
  if (e.barBorderRadius) {
1555
- const w = e.barBorderRadius.split(",");
1556
- if (w != null && w.length) {
1557
- const N = [];
1558
- for (const v of w) {
1559
- const E = parseFloat(v);
1560
- isNaN(E) || N.push(E);
1547
+ const L = e.barBorderRadius.split(",");
1548
+ if (L != null && L.length) {
1549
+ const p = [];
1550
+ for (const V of L) {
1551
+ const E = parseFloat(V);
1552
+ isNaN(E) || p.push(E);
1561
1553
  }
1562
- g.borderRadius = N;
1554
+ S.borderRadius = p;
1563
1555
  }
1564
1556
  }
1565
- x && (g.color = {
1557
+ b && (S.color = {
1566
1558
  x: 0,
1567
1559
  y: 0,
1568
1560
  x2: 0,
1569
1561
  y2: 1,
1570
1562
  colorStops: [{
1571
1563
  offset: 0,
1572
- color: e.colors[a]
1564
+ color: e.colors[d]
1573
1565
  }, {
1574
- offset: m,
1575
- color: c[a]
1566
+ offset: x,
1567
+ color: u[d]
1576
1568
  }, {
1577
1569
  offset: 1,
1578
- color: c[a]
1570
+ color: u[d]
1579
1571
  }]
1580
1572
  }), A = Y(C({}, A), {
1581
1573
  barWidth: e.barWidth,
1582
- itemStyle: g
1574
+ itemStyle: S
1583
1575
  });
1584
1576
  }
1585
1577
  e.isShowMarkLine && (A.markLine = {
@@ -1587,16 +1579,16 @@ const cl = (e, o, l) => {
1587
1579
  }), n.push(A);
1588
1580
  }
1589
1581
  return n;
1590
- }), d = oe(() => {
1582
+ }), s = le(() => {
1591
1583
  const n = e.yAxis;
1592
- return n == null ? void 0 : n.map((i, f) => ({
1584
+ return n == null ? void 0 : n.map((i, a) => ({
1593
1585
  type: "value",
1594
1586
  minInterval: e.yAxisMinInterval,
1595
1587
  splitLine: {
1596
- show: f === 0 ? e.yAxisLeftSplitLineShow : e.yAxisRightSplitLineShow,
1588
+ show: a === 0 ? e.yAxisLeftSplitLineShow : e.yAxisRightSplitLineShow,
1597
1589
  lineStyle: {
1598
1590
  color: e.yAxisSplitLineStyleColor,
1599
- type: f === 0 ? e.yAxisLeftSplitLineType : e.yAxisRightSplitLineType
1591
+ type: a === 0 ? e.yAxisLeftSplitLineType : e.yAxisRightSplitLineType
1600
1592
  }
1601
1593
  },
1602
1594
  splitArea: {
@@ -1606,8 +1598,8 @@ const cl = (e, o, l) => {
1606
1598
  fontSize: l,
1607
1599
  show: e.yAxisLabelShow,
1608
1600
  color: e.yAxisLabelColor,
1609
- formatter(a) {
1610
- return te(i.axisLabelFormatter, a);
1601
+ formatter(d) {
1602
+ return oe(i.axisLabelFormatter, d);
1611
1603
  }
1612
1604
  },
1613
1605
  axisLine: {
@@ -1616,11 +1608,11 @@ const cl = (e, o, l) => {
1616
1608
  color: e.yAxisLineStyleColor
1617
1609
  }
1618
1610
  },
1619
- name: f === 0 ? e.yAxisLeftName : e.yAxisRightName,
1611
+ name: a === 0 ? e.yAxisLeftName : e.yAxisRightName,
1620
1612
  nameTextStyle: {
1621
1613
  fontSize: e.yAxisLabelFontSize,
1622
1614
  color: e.yAxisLabelColor,
1623
- align: f === 0 ? "right" : "left"
1615
+ align: a === 0 ? "right" : "left"
1624
1616
  },
1625
1617
  max: e.yAxisMaxValue || null
1626
1618
  }));
@@ -1641,32 +1633,32 @@ const cl = (e, o, l) => {
1641
1633
  show: e.tooltipShow,
1642
1634
  formatter: (n) => {
1643
1635
  const i = n.length;
1644
- let f = "", a = e.tooltipFormatter;
1645
- a === "" && (a = "{marker} {a} {c}");
1646
- const b = e.seriesTypes;
1647
- for (let u = 0; u < i; u++) {
1648
- const S = b[u], { tooltipFormatter: A } = S || {}, { marker: x, seriesName: c, name: m, value: g, data: w } = n[u] || {};
1649
- u === 0 && (f += `${m}<br/>`), f += ie(
1636
+ let a = "", d = e.tooltipFormatter;
1637
+ d === "" && (d = "{marker} {a} {c}");
1638
+ const y = e.seriesTypes;
1639
+ for (let m = 0; m < i; m++) {
1640
+ const g = y[m], { tooltipFormatter: A } = g || {}, { marker: b, seriesName: u, name: x, value: S, data: L } = n[m] || {};
1641
+ m === 0 && (a += `${x}<br/>`), a += te(
1650
1642
  // 如果系列有提示框组件就使用自定义,没有就用默认的
1651
- A || a,
1643
+ A || d,
1652
1644
  {
1653
1645
  textData: C({
1654
- marker: x,
1655
- name: m,
1656
- value: g,
1657
- seriesName: c,
1658
- a: c,
1659
- b: m,
1660
- c: g
1661
- }, w)
1646
+ marker: b,
1647
+ name: x,
1648
+ value: S,
1649
+ seriesName: u,
1650
+ a: u,
1651
+ b: x,
1652
+ c: S
1653
+ }, L)
1662
1654
  },
1663
1655
  {
1664
1656
  useNewline: !0,
1665
1657
  useSpace: !0
1666
1658
  }
1667
- ), f += "<br/>";
1659
+ ), a += "<br/>";
1668
1660
  }
1669
- return f;
1661
+ return a;
1670
1662
  },
1671
1663
  textStyle: {
1672
1664
  color: e.tooltipTextStyleColor || "#333",
@@ -1679,7 +1671,7 @@ const cl = (e, o, l) => {
1679
1671
  name: e.xAxisName,
1680
1672
  minInterval: e.xAxisMinInterval,
1681
1673
  type: "category",
1682
- data: V(s),
1674
+ data: k(f),
1683
1675
  splitLine: {
1684
1676
  show: e.xAxisSplitLineShow,
1685
1677
  lineStyle: {
@@ -1702,10 +1694,10 @@ const cl = (e, o, l) => {
1702
1694
  show: e.xAxisTickShow
1703
1695
  }
1704
1696
  },
1705
- yAxis: V(d),
1706
- series: V(r)
1697
+ yAxis: k(s),
1698
+ series: k(r)
1707
1699
  };
1708
- }, bl = (e) => ({
1700
+ }, gl = (e) => ({
1709
1701
  title: {
1710
1702
  text: e.titleText,
1711
1703
  subtext: e.titleSubtext,
@@ -1724,16 +1716,16 @@ const cl = (e, o, l) => {
1724
1716
  containLabel: e.gridContainLabel
1725
1717
  },
1726
1718
  color: e.colors
1727
- }), Sl = (e, o, l = 12) => C(C({}, bl(e)), cl(e, o, l)), Tl = Y(C({}, dl), {
1728
- runCode: we,
1729
- useTransformChartDataByAttrKey: sl,
1730
- useTransformChartDataByAttrValue: fl,
1731
- useValueFormatter: te,
1732
- useVariablesInText: ie,
1733
- transformProps: Sl,
1734
- getIndicatorParams: ll
1719
+ }), bl = (e, o, l = 12) => C(C({}, gl(e)), ul(e, o, l)), Cl = Y(C({}, al), {
1720
+ runCode: Le,
1721
+ useTransformChartDataByAttrKey: dl,
1722
+ useTransformChartDataByAttrValue: sl,
1723
+ useValueFormatter: oe,
1724
+ useVariablesInText: te,
1725
+ transformProps: bl,
1726
+ getIndicatorParams: el
1735
1727
  });
1736
1728
  export {
1737
- Tl as default
1729
+ Cl as default
1738
1730
  };
1739
1731
  //# sourceMappingURL=index.es.js.map