@ecan-bi/tools 1.0.15 → 1.0.17

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,13 +1,13 @@
1
- /*! @ecan-bi/tools@1.0.15 */
2
- var Pe = Object.defineProperty, qe = Object.defineProperties;
1
+ /*! @ecan-bi/tools@1.0.17 */
2
+ var Qe = Object.defineProperty, qe = Object.defineProperties;
3
3
  var Xe = Object.getOwnPropertyDescriptors;
4
- var de = Object.getOwnPropertySymbols;
4
+ var se = Object.getOwnPropertySymbols;
5
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) => {
6
+ var Be = (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
8
  Ke.call(o, l) && Be(e, l, o[l]);
9
- if (de)
10
- for (var l of de(o))
9
+ if (se)
10
+ for (var l of se(o))
11
11
  Ue.call(o, l) && Be(e, l, o[l]);
12
12
  return e;
13
13
  }, Y = (e, o) => qe(e, Xe(o));
@@ -15,48 +15,48 @@ var Se = (e, o) => {
15
15
  var l = {};
16
16
  for (var t in e)
17
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))
18
+ if (e != null && se)
19
+ for (var t of se(e))
20
20
  o.indexOf(t) < 0 && Ue.call(e, t) && (l[t] = e[t]);
21
21
  return l;
22
22
  };
23
- var We = (e, o, l) => new Promise((t, m) => {
23
+ var We = (e, o, l) => new Promise((t, y) => {
24
24
  var s = (n) => {
25
25
  try {
26
26
  d(l.next(n));
27
27
  } catch (i) {
28
- m(i);
28
+ y(i);
29
29
  }
30
30
  }, r = (n) => {
31
31
  try {
32
32
  d(l.throw(n));
33
33
  } catch (i) {
34
- m(i);
34
+ y(i);
35
35
  }
36
36
  }, d = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, r);
37
37
  d((l = l.apply(e, o)).next());
38
38
  });
39
39
  import { unref as V, computed as oe } from "vue";
40
40
  import $ from "dayjs";
41
- import { cloneDeep as fe } from "lodash-es";
41
+ import { cloneDeep as ue } from "lodash-es";
42
42
  const we = (e, o) => {
43
43
  const l = C({
44
44
  dayjs: $
45
45
  }, o);
46
46
  let t = "";
47
- const m = [];
47
+ const y = [];
48
48
  for (const d in l)
49
- t += `${d},`, m.push(l[d]);
49
+ t += `${d},`, y.push(l[d]);
50
50
  t = t.replace(/,$/, "");
51
51
  const s = `function (${t}){return ${e}}`;
52
52
  let r;
53
53
  try {
54
- r = Function(`"use strict";return (${s})`)()(...m);
54
+ r = Function(`"use strict";return (${s})`)()(...y);
55
55
  } catch (d) {
56
56
  return e;
57
57
  }
58
58
  return r;
59
- }, ie = (e = "", { textData: o, codeData: l } = {}, { useNewline: t = !1, useSpace: m = !1 } = {}) => {
59
+ }, ie = (e = "", { textData: o, codeData: l } = {}, { useNewline: t = !1, useSpace: y = !1 } = {}) => {
60
60
  const s = C({}, o), r = (e || "").match(/\{(.+?)\}/g);
61
61
  if (r == null || r.length === 0)
62
62
  return e;
@@ -70,23 +70,23 @@ const we = (e, o) => {
70
70
  }
71
71
  (/\(.*\)/g.test(i) || /[+/\\*]/g.test(i)) && (i = we(i, l)), e = e.replace(n, i);
72
72
  }
73
- return t && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), m && (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/>")), 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;
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 m = o[t];
81
- if (typeof m == "string" && e.toLocaleLowerCase().includes(m.toLocaleLowerCase()))
80
+ const y = o[t];
81
+ if (typeof y == "string" && e.toLocaleLowerCase().includes(y.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
92
  function Je(e) {
@@ -111,10 +111,10 @@ const Ze = (e) => e.replace(/\\n/g, `
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 m = "";
114
+ let y = "";
115
115
  if (t)
116
116
  for (let d = 0; d < t; d++)
117
- m += `
117
+ y += `
118
118
  `;
119
119
  let s = e;
120
120
  if (l != null && l.length) {
@@ -131,20 +131,20 @@ const Ze = (e) => e.replace(/\\n/g, `
131
131
  );
132
132
  n && (s = s.replace(d, n));
133
133
  }
134
- return `${m}{text|${s}}`;
134
+ return `${y}{text|${s}}`;
135
135
  } else
136
136
  return e;
137
137
  };
138
138
  function el(e) {
139
- let o = "", l = "", t = "", m = "";
139
+ let o = "", l = "", t = "", y = "";
140
140
  e.indexOf(".") > -1 ? (l = e.split(".")[0], t = e.split(".")[1]) : l = e;
141
141
  let s = 0, r = 0;
142
142
  for (r = l.length - 1; r >= 0; )
143
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 ? m = o + "." + t : m = o, m;
144
+ return o = o.split("").reverse().join(""), e.indexOf(".") > -1 ? y = o + "." + t : y = o, y;
145
145
  }
146
146
  function ll(s) {
147
- return We(this, arguments, function* ({ graphicConfig: e, request: o, INDICATOR_URL: l = "", PAGE_ID: t, dataSourceId: m }) {
147
+ return We(this, arguments, function* ({ graphicConfig: e, request: o, INDICATOR_URL: l = "", PAGE_ID: t, dataSourceId: y }) {
148
148
  var r;
149
149
  try {
150
150
  const { leftAxisList: d = [], rightAxisList: n = [], queryColumnList: i = [], indicators: f = [] } = V(e), a = [...d, ...n, ...i, ...f], b = {};
@@ -156,26 +156,26 @@ function ll(s) {
156
156
  const u = [];
157
157
  for (const x in b)
158
158
  u.push(
159
- new Promise((c, y) => {
159
+ new Promise((c, m) => {
160
160
  o.post(
161
161
  `${l}/diagram/hrpIndexWithComplex`,
162
162
  {
163
163
  pageId: t,
164
164
  indexGuid: x,
165
165
  indexCode: b[x],
166
- dataSourceId: m
166
+ dataSourceId: y
167
167
  }
168
168
  ).then((g) => {
169
169
  var v;
170
170
  const { success: w, data: N = [] } = g.data;
171
- w && ((v = N == null ? void 0 : N.dataViewColumns) != null && v.length) ? c(N.dataViewColumns) : y(N);
171
+ w && ((v = N == null ? void 0 : N.dataViewColumns) != null && v.length) ? c(N.dataViewColumns) : m(N);
172
172
  }).catch((g) => {
173
- y(g);
173
+ m(g);
174
174
  });
175
175
  })
176
176
  );
177
177
  return (yield Promise.all(u)).reduce(
178
- (x, c) => x.filter((y) => c.find((g) => g.typeGuid === y.typeGuid))
178
+ (x, c) => x.filter((m) => c.find((g) => g.typeGuid === m.typeGuid))
179
179
  ).filter((x) => x.typeGuid);
180
180
  }
181
181
  } catch (d) {
@@ -194,28 +194,28 @@ const tl = [
194
194
  "customValue",
195
195
  "id",
196
196
  "keyName"
197
- ], ce = (e) => ze.get(e), il = (e, o = {}) => {
198
- const { around: l, unit: t, id: m } = e;
197
+ ], ye = (e) => ze.get(e), il = (e, o = {}) => {
198
+ const { around: l, unit: t, id: y } = e;
199
199
  let s = "";
200
200
  const { pageMode: r = "", componentList: d = [] } = (o == null ? void 0 : o.graphicConfig) || {};
201
201
  let n = null, i = null;
202
202
  if (r === "design") {
203
- const f = d == null ? void 0 : d.find((c) => c.id === m);
203
+ const f = d == null ? void 0 : d.find((c) => c.id === y);
204
204
  if (!f)
205
205
  return [];
206
206
  const { interval: a, intervalUnit: b, startTime: u, endTime: S, operate: A, useCurrentTime: x } = f || {};
207
207
  if (x && (n = $().subtract(a, b), i = $()), u && (n = $(u)), S && (i = $(S)), A) {
208
- const { type: c, value: y, mode: g } = A;
208
+ const { type: c, value: m, mode: g } = A;
209
209
  switch (c) {
210
210
  case "add":
211
- n = n && n.add(y, g), i = i && i.add(y, g);
211
+ n = n && n.add(m, g), i = i && i.add(m, g);
212
212
  break;
213
213
  case "minus":
214
- n = n && n.subtract(y, g), i = i && i.subtract(y, g);
214
+ n = n && n.subtract(m, g), i = i && i.subtract(m, g);
215
215
  }
216
216
  }
217
217
  } else {
218
- const f = ce(m) || {};
218
+ const f = ye(y) || {};
219
219
  V(f.startTime) && (n = $(V(f.startTime))), V(f.endTime) && (i = $(V(f.endTime)));
220
220
  }
221
221
  if (n && i) {
@@ -227,8 +227,8 @@ const tl = [
227
227
  if (o)
228
228
  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
229
  else {
230
- const { calcWays: l = [], dateCalcTypes: t = [], activeKey: m, componentId: s = "" } = e;
231
- if (m === 5 && (l != null && l.length) && (t != null && t.length) && s) {
230
+ const { calcWays: l = [], dateCalcTypes: t = [], activeKey: y, componentId: s = "" } = e;
231
+ if (y === 5 && (l != null && l.length) && (t != null && t.length) && s) {
232
232
  const r = l[0].split("-");
233
233
  (r == null ? void 0 : r.length) > 1 && r[0] === "rangeValue" && (e.calcWays = il({
234
234
  around: r[1],
@@ -249,13 +249,13 @@ const tl = [
249
249
  }
250
250
  }, le = (e, o) => {
251
251
  const l = [];
252
- return e != null && e.length && fe(e).forEach((t) => {
252
+ return e != null && e.length && ue(e).forEach((t) => {
253
253
  if (t.join && t.conditions) {
254
- const m = !t.conditions.some((s) => s.join && s.conditions);
254
+ const y = !t.conditions.some((s) => s.join && s.conditions);
255
255
  t.conditions.forEach((s, r) => {
256
256
  _e(s, o);
257
257
  const d = {};
258
- if (r < t.conditions.length - 1 && (d.join = t.join), m)
258
+ if (r < t.conditions.length - 1 && (d.join = t.join), y)
259
259
  l.push(C(C({}, d), s));
260
260
  else if (s.join && s.conditions) {
261
261
  const n = o ? "sqlConditions" : "conditions";
@@ -270,13 +270,13 @@ const tl = [
270
270
  }), l;
271
271
  }, Ae = (e = {}, o) => {
272
272
  if (e != null && e.sortCpnts && o) {
273
- const w = Qe(e);
273
+ const w = Pe(e);
274
274
  w && (o.sort = w);
275
275
  }
276
276
  const {
277
277
  label: l,
278
278
  name: t,
279
- location: m,
279
+ location: y,
280
280
  show: s,
281
281
  indexCode: r,
282
282
  indexCodeNum: d,
@@ -291,8 +291,8 @@ const tl = [
291
291
  dimByCount: x,
292
292
  dataTo: c
293
293
  } = e;
294
- let y;
295
- if (u && (y = le(u)), n === "COMPONENT") {
294
+ let m;
295
+ if (u && (m = le(u)), n === "COMPONENT") {
296
296
  const w = {};
297
297
  return me(w, f), {
298
298
  label: l.trim(),
@@ -306,7 +306,7 @@ const tl = [
306
306
  const g = {
307
307
  label: l.trim(),
308
308
  columnName: t,
309
- location: m,
309
+ location: y,
310
310
  show: s,
311
311
  calcType: c === "1" ? "VIEW" : n,
312
312
  hrpIndexCode: r,
@@ -315,7 +315,7 @@ const tl = [
315
315
  builtInFormula: i,
316
316
  builtInValueSource: f,
317
317
  formula: b,
318
- conditions: y
318
+ conditions: m
319
319
  };
320
320
  if (i === "DATE_OFFSET") {
321
321
  const w = a.split("-");
@@ -333,10 +333,10 @@ const tl = [
333
333
  }, nl = (e) => {
334
334
  if (!e)
335
335
  return [];
336
- const o = fe((e == null ? void 0 : e.controlList) || []).filter((S) => S.conditionKey !== "parentCode"), {
336
+ const o = ue((e == null ? void 0 : e.controlList) || []).filter((S) => S.conditionKey !== "parentCode"), {
337
337
  classificationList: l = [],
338
338
  rowHeaderList: t = [],
339
- dimensionList: m = [],
339
+ dimensionList: y = [],
340
340
  seriesList: s = [],
341
341
  leftAxisList: r = [],
342
342
  rightAxisList: d = [],
@@ -347,7 +347,7 @@ const tl = [
347
347
  const f = [
348
348
  ...l,
349
349
  ...t,
350
- ...m,
350
+ ...y,
351
351
  ...s,
352
352
  ...r,
353
353
  ...d,
@@ -355,11 +355,11 @@ const tl = [
355
355
  ...i
356
356
  ], a = [];
357
357
  for (const S of f) {
358
- const A = ue((S == null ? void 0 : S.conditions) || []);
358
+ const A = ce((S == null ? void 0 : S.conditions) || []);
359
359
  if (A != null && A.length) {
360
360
  const x = A.filter((c) => (c == null ? void 0 : c.dataType) === "component").map((c) => {
361
- const y = {};
362
- return c != null && c.dateFormat && (y.format = c.dateFormat), c.fieldValue === "PARENT" && (y.id = "PARENT", y.keyName = c.modelKey, y.modelKey = c.modelKey, y.prop = c.prop), 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
363
  conditionKey: c.fieldName,
364
364
  conditionLabel: c.fieldName,
365
365
  conditionName: c.fieldName,
@@ -371,11 +371,11 @@ const tl = [
371
371
  indexCode: c.indexCode,
372
372
  typeGuid: c.typeGuid,
373
373
  indexCodeNum: c.indexCodeNum
374
- }, y);
374
+ }, m);
375
375
  });
376
376
  if (x != null && x.length)
377
377
  for (const c of x)
378
- a.find((y) => y.keyName === c.keyName) || a.push(c);
378
+ a.find((m) => m.keyName === c.keyName) || a.push(c);
379
379
  }
380
380
  }
381
381
  const b = a.length, u = o;
@@ -386,17 +386,17 @@ const tl = [
386
386
  const {
387
387
  id: x,
388
388
  keyName: c,
389
- prop: y,
389
+ prop: m,
390
390
  format: g,
391
391
  modelKey: w,
392
392
  dataType: N = "component",
393
393
  customValue: v
394
394
  } = A, E = $e(A);
395
- me(E, x, { prop: y, dateFormat: g, modelKey: w, keyName: c }), N === "" && (E.fieldValue = v || ""), u.push(E);
395
+ me(E, x, { prop: m, dateFormat: g, modelKey: w, keyName: c }), N === "" && (E.fieldValue = v || ""), u.push(E);
396
396
  }
397
397
  for (let S = u.length - 1; S >= 0; S--) {
398
398
  const A = u[S];
399
- A.globalCondition || ue(u).find((c) => c.alias === A.alias && c.globalCondition) && u.splice(S, 1);
399
+ A.globalCondition || ce(u).find((c) => c.alias === A.alias && c.globalCondition) && u.splice(S, 1);
400
400
  }
401
401
  return u;
402
402
  };
@@ -405,7 +405,7 @@ function $e(e) {
405
405
  id: o,
406
406
  keyName: l,
407
407
  conditionLabel: t,
408
- conditionKey: m,
408
+ conditionKey: y,
409
409
  conditionValueType: s,
410
410
  prop: r,
411
411
  rule: d = "NONE",
@@ -421,7 +421,7 @@ function $e(e) {
421
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
422
  rule: S,
423
423
  label: t,
424
- fieldName: m,
424
+ fieldName: y,
425
425
  fieldValue: "",
426
426
  // 在关联控件中取
427
427
  // dateFormat: 'YYYY-MM',
@@ -443,13 +443,13 @@ function He(e) {
443
443
  const {
444
444
  id: l,
445
445
  keyName: t,
446
- prop: m,
446
+ prop: y,
447
447
  modelKey: s,
448
448
  format: r,
449
449
  dataType: d = "component",
450
450
  customValue: n
451
451
  } = o, i = $e(o);
452
- me(i, l, { prop: m, dateFormat: r, modelKey: s, keyName: t }), d === "" && (i.fieldValue = n || "");
452
+ me(i, l, { prop: y, dateFormat: r, modelKey: s, keyName: t }), d === "" && (i.fieldValue = n || "");
453
453
  for (const f in i)
454
454
  o[f] = i[f];
455
455
  for (const f of tl)
@@ -480,44 +480,44 @@ function rl(e) {
480
480
  return o;
481
481
  }
482
482
  function me(e, o, l) {
483
- const { prop: t = "", dateFormat: m = "", modelKey: s = "", keyName: r = "", operateValue: d, operateMode: n, operateType: i } = l || {}, f = s || r;
483
+ const { prop: t = "", dateFormat: y = "", modelKey: s = "", keyName: r = "", operateValue: d, operateMode: n, operateType: i } = l || {}, f = s || r;
484
484
  if (o === "PARENT" && f && t) {
485
- const y = window.config.record;
486
- let g = t, w = m;
485
+ const m = window.config.record;
486
+ let g = t, w = y;
487
487
  const N = t.match(/\{(.+?)\}/g);
488
488
  if (N != null && N.length) {
489
489
  const v = N[0].slice(1, -1).trim();
490
490
  g = t.replace(N[0], ""), w = v, e.dateFormat = w;
491
491
  }
492
- if (y && y[f]) {
493
- const v = V(y[f][g]);
492
+ if (m && m[f]) {
493
+ const v = V(m[f][g]);
494
494
  $.isDayjs(v) ? e.fieldValue = v.format(w || "YYYY-MM-DD") : e.fieldValue = v;
495
495
  }
496
496
  return;
497
497
  }
498
- const a = ce(o) || {}, { value: b, format: u = "YYYY-MM-DD", type: S = "", useCurrentTime: A, RECORD: x } = a || {}, c = m || u;
498
+ const a = ye(o) || {}, { value: b, format: u = "YYYY-MM-DD", type: S = "", useCurrentTime: A, RECORD: x } = a || {}, c = y || u;
499
499
  if (K(a.type, "date")) {
500
- let y;
501
- if (A ? b ? y = V(b) : y = $() : y = V(b), d && n && i)
500
+ let m;
501
+ if (A ? b ? m = V(b) : m = $() : m = V(b), d && n && i)
502
502
  switch (i) {
503
503
  case "add":
504
- y = y.add(d, n);
504
+ m = m.add(d, n);
505
505
  break;
506
506
  case "minus":
507
- y = y.subtract(d, n);
507
+ m = m.subtract(d, n);
508
508
  break;
509
509
  }
510
- e.fieldValue = y == null ? void 0 : y.format(c), e.dateFormat = c;
510
+ e.fieldValue = m == null ? void 0 : m.format(c), e.dateFormat = c;
511
511
  } else if (S === "ecanRangePicker") {
512
- let y = t;
512
+ let m = t;
513
513
  if (!t) {
514
514
  const w = r && r.split("-");
515
- w != null && w.length && (y = w[w.length - 1]);
515
+ w != null && w.length && (m = w[w.length - 1]);
516
516
  }
517
- if (!y)
517
+ if (!m)
518
518
  return;
519
519
  let g = null;
520
- if (V(a[y]) && (g = $(V(a[y]))), d && n && i) {
520
+ if (V(a[m]) && (g = $(V(a[m]))), d && n && i) {
521
521
  if (d === "rangeValue") {
522
522
  if (a.startTime && a.endTime) {
523
523
  const w = V(a.endTime).diff(V(a.startTime), n) + 1;
@@ -538,7 +538,7 @@ function me(e, o, l) {
538
538
  g = g && g.subtract(d, n);
539
539
  }
540
540
  }
541
- if (g && (e.fieldValue = g == null ? void 0 : g.format(c)), y === "rangeValue" && a.startTime && a.endTime) {
541
+ if (g && (e.fieldValue = g == null ? void 0 : g.format(c)), m === "rangeValue" && a.startTime && a.endTime) {
542
542
  const w = Je(c);
543
543
  w && (e.fieldValue = V(a.endTime).diff(V(a.startTime), w) + 1);
544
544
  }
@@ -546,14 +546,14 @@ function me(e, o, l) {
546
546
  } else
547
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
548
  }
549
- const se = (e) => {
549
+ const fe = (e) => {
550
550
  var o;
551
551
  if (e) {
552
- const l = Array.isArray(e) ? fe(e) : [fe(e)];
553
- let t = "", m = [];
552
+ const l = Array.isArray(e) ? ue(e) : [ue(e)];
553
+ let t = "", y = [];
554
554
  const s = [], r = [], d = [];
555
555
  for (const n of l) {
556
- if (n.defaultCode && (n.label = n.columnName, delete n.defaultCode), n.type === "CUSTOM" && (m = n.customOrderColumns), t = n.type, s.push(n.label), (o = n.columnName) != null && o.includes("_ecanrepeat_")) {
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
557
  const i = n.columnName.split("_ecanrepeat_");
558
558
  r.push(i[0]);
559
559
  } else
@@ -564,7 +564,7 @@ const se = (e) => {
564
564
  label: s.join(","),
565
565
  columnName: r.join(","),
566
566
  type: t,
567
- customOrderColumns: m
567
+ customOrderColumns: y
568
568
  } : {
569
569
  label: s.join(","),
570
570
  columnName: r.join(","),
@@ -573,11 +573,11 @@ const se = (e) => {
573
573
  };
574
574
  } else
575
575
  return e;
576
- }, Qe = (e) => {
576
+ }, Pe = (e) => {
577
577
  const { sortCpnts: o = [] } = e;
578
578
  let l, t = "";
579
- for (const m of o) {
580
- const s = ce(m) || {}, { type: r, RECORD: d } = s;
579
+ for (const y of o) {
580
+ const s = ye(y) || {}, { type: r, RECORD: d } = s;
581
581
  if (K(r, "image") && K(d == null ? void 0 : d.value, ["asc", "desc"])) {
582
582
  t = d.value.toUpperCase();
583
583
  break;
@@ -591,8 +591,8 @@ const se = (e) => {
591
591
  }), l;
592
592
  }, al = (e, o = {}) => {
593
593
  var Ne, Fe, ve, ke, Ve, Ie, he, Ge, De, je;
594
- const { graphicConfig: l, type: t, globalModel: m, isGroupTable: s = !1 } = e;
595
- m && (ze = m);
594
+ const { graphicConfig: l, type: t, globalModel: y, isGroupTable: s = !1 } = e;
595
+ y && (ze = y);
596
596
  let r = e.pageId;
597
597
  const d = K(t, "pivottable");
598
598
  let {
@@ -610,7 +610,7 @@ const se = (e) => {
610
610
  // 文本组件的维度列表
611
611
  seriesList: x = [],
612
612
  leftAxisList: c = [],
613
- rightAxisList: y = [],
613
+ rightAxisList: m = [],
614
614
  queryColumnList: g = [],
615
615
  indicators: w = [],
616
616
  controlList: N = [],
@@ -620,7 +620,7 @@ const se = (e) => {
620
620
  // dataSourceId, // 所属数据源ID
621
621
  idxLibMode: re,
622
622
  // 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
623
- preview: ye = !1,
623
+ preview: xe = !1,
624
624
  // 预览开关
625
625
  edvDataSetId: Le
626
626
  // 数据集id
@@ -645,7 +645,7 @@ const se = (e) => {
645
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");
646
646
  let H;
647
647
  const Ce = [];
648
- let xe = "";
648
+ let ge = "";
649
649
  if (Array.isArray(u) && u.length > 0 && (!["ecanList", "ecanCirculate"].includes(t) || (u == null ? void 0 : u.length) === 1)) {
650
650
  const L = u.length;
651
651
  for (let T = 0; T < L; T++) {
@@ -653,7 +653,7 @@ const se = (e) => {
653
653
  label: G = "",
654
654
  name: D = "",
655
655
  show: j = !1,
656
- sort: Q,
656
+ sort: P,
657
657
  customGroup: q,
658
658
  conditions: F,
659
659
  dateFormat: k,
@@ -661,11 +661,11 @@ const se = (e) => {
661
661
  truncations: M = []
662
662
  } = p;
663
663
  if (j || L === 1) {
664
- xe = R, H = {
664
+ ge = R, H = {
665
665
  label: G.trim(),
666
666
  columnName: D,
667
667
  show: j,
668
- sort: Qe(p) || se(Q) || Q,
668
+ sort: Pe(p) || fe(P) || P,
669
669
  customGroup: q,
670
670
  conditions: le(F),
671
671
  typeGuid: R
@@ -674,8 +674,8 @@ const se = (e) => {
674
674
  if (Array.isArray(M) && M.length > 0) {
675
675
  const U = M.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 = M[_] || {}, { rule: Q = "", num: X = 0, name: ee = "" } = z;
678
+ Q && X && (h.num = X, h.rule = Q, ee && (h.otherGroupName = ee));
679
679
  }
680
680
  }
681
681
  if ((Fe = Object.keys(h)) != null && Fe.length && (H.truncation = h), K(t, ["scatter", "valueline"]))
@@ -689,13 +689,13 @@ const se = (e) => {
689
689
  if (Array.isArray(x) && x.length > 0) {
690
690
  const L = x.length;
691
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;
692
+ const p = x[T] || {}, { label: G = "", name: D = "", show: j = !1, sort: P, customGroup: q, conditions: F, typeGuid: k } = p;
693
693
  if (j || L === 1) {
694
694
  Te = {
695
695
  label: G.trim(),
696
696
  columnName: D,
697
697
  show: j,
698
- sort: se(Q),
698
+ sort: fe(P),
699
699
  customGroup: q,
700
700
  conditions: le(F),
701
701
  typeGuid: k
@@ -707,7 +707,7 @@ const se = (e) => {
707
707
  const B = [];
708
708
  c == null || c.forEach((L) => {
709
709
  L.location = "LEFT", B.push(Ae(L, H));
710
- }), y == null || y.forEach((L) => {
710
+ }), m == null || m.forEach((L) => {
711
711
  L.location = "RIGHT", B.push(Ae(L, H));
712
712
  });
713
713
  let ae = w;
@@ -716,11 +716,11 @@ const se = (e) => {
716
716
  });
717
717
  const J = [];
718
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);
719
+ const { label: T, name: p, location: G, show: D, indexCode: j, sort: P, typeGuid: q, indexCodeNum: F, dateFormat: k, conditions: R } = L;
720
+ let M = fe(P);
721
721
  if (o.sort) {
722
722
  const { field: U, order: _ } = o.sort;
723
- let z = B.find((P) => P.label === U);
723
+ let z = B.find((Q) => Q.label === U);
724
724
  !z && T === U && (z = L), z && (M = {
725
725
  columnName: z.columnName,
726
726
  label: o.sort.field,
@@ -746,15 +746,15 @@ const se = (e) => {
746
746
  if (Array.isArray(S) && S.length > 0 ? O = S : Array.isArray(A) && A.length > 0 && (O = A), O != null && O.length) {
747
747
  const L = O.length;
748
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);
749
+ const p = O[T] || {}, { label: G = "", name: D = "", show: j = !1, sort: P, customGroup: q, conditions: F, truncations: k, typeGuid: R = "", dateFormat: M } = p;
750
+ let h = fe(P);
751
751
  if (o.sort) {
752
- const { field: z, order: P } = o.sort;
752
+ const { field: z, order: Q } = o.sort;
753
753
  let X = B.find((ee) => ee.label === z);
754
754
  !X && p.label === z && (X = p), X && (h = {
755
755
  columnName: X.columnName,
756
756
  label: o.sort.field,
757
- order: P.toUpperCase(),
757
+ order: Q.toUpperCase(),
758
758
  type: "NORMAL"
759
759
  });
760
760
  }
@@ -771,15 +771,15 @@ const se = (e) => {
771
771
  const _ = {};
772
772
  if (Array.isArray(k) && k.length > 0) {
773
773
  const z = k.length;
774
- for (let P = 0; P < z; P++) {
775
- const X = k[P] || {}, { rule: ee = "", num: Re = 0, name: Ye = "" } = X;
774
+ for (let Q = 0; Q < z; Q++) {
775
+ const X = k[Q] || {}, { rule: ee = "", num: Re = 0, name: Ye = "" } = X;
776
776
  ee && Re && (_.num = Re, _.rule = ee, Ye && (_.otherGroupName = Ye));
777
777
  }
778
778
  }
779
779
  (he = Object.keys(_)) != null && he.length && (U.truncation = _), ne.push(U);
780
780
  }
781
781
  }
782
- let ge = [], pe;
782
+ let be = [], pe;
783
783
  if (o != null && o.pivotTableCal) {
784
784
  let L = [];
785
785
  const {
@@ -788,7 +788,7 @@ const se = (e) => {
788
788
  truncations: G = [],
789
789
  sorts: D = [],
790
790
  aggregateMethod: j = [],
791
- rowDimensionKeys: Q = [],
791
+ rowDimensionKeys: P = [],
792
792
  colDimensionKeys: q = []
793
793
  } = o.pivotTableCal;
794
794
  if (B.push(...T), p != null && p.length)
@@ -820,9 +820,9 @@ const se = (e) => {
820
820
  const k = J.find((R) => R.label === F);
821
821
  k && ((De = j[F]) != null && De.length) && (k.aggregateMethod = j[F]);
822
822
  }
823
- ne = [], ge = [];
823
+ ne = [], be = [];
824
824
  for (const F of J)
825
- Q.includes(F.columnName) ? ne.push(F) : q.includes(F.columnName) && ge.push(F);
825
+ P.includes(F.columnName) ? ne.push(F) : q.includes(F.columnName) && be.push(F);
826
826
  }
827
827
  if (K(t, ["text", "proportion", "counter"]) ? b = "zb" : K(t, ["valueline"]) && (b = "valueline"), s || t === "card") {
828
828
  if (ne.length === 0 || B.length === 0)
@@ -833,7 +833,7 @@ const se = (e) => {
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" && (!ge && n !== "EDV_DATA_SET" || !v.labelField || !v.valueField))
837
837
  return;
838
838
  if (a === "3" && t === "ecanDataSelect" && B.length === 0)
839
839
  return;
@@ -845,24 +845,24 @@ const se = (e) => {
845
845
  T != null && T.length && (r = T[T.length - 1]);
846
846
  }
847
847
  }
848
- let be;
848
+ let de;
849
849
  if (!K(t, ["scatter", "valueline"]) && ((je = Object.keys(v)) != null && je.length)) {
850
- const L = ue(N).find((p) => p.conditionKey === "parentCode"), T = {};
850
+ const L = ce(N).find((p) => p.conditionKey === "parentCode"), T = {};
851
851
  if (L) {
852
- const p = ce(L.id) || {};
852
+ const p = ye(L.id) || {};
853
853
  if (p != null && p.itemCodes)
854
854
  T.parentItemCodes = p.itemCodes;
855
855
  else
856
856
  return;
857
857
  }
858
- t === "ecanDataSelect" && (T.indicatorList = B.filter((p) => p.show)), n === "EDV_DATA_SET" && (T.edvDataSetId = Le), be = C({
858
+ t === "ecanDataSelect" && (T.indicatorList = B.filter((p) => p.show)), n === "EDV_DATA_SET" && (T.edvDataSetId = Le), de = C({
859
859
  url: "/diagram/formData",
860
860
  source: n,
861
861
  dataViewId: i,
862
862
  plugin: "4",
863
863
  layer: a,
864
864
  chartType: "normalSelect",
865
- rangeIndexTypeGuid: xe,
865
+ rangeIndexTypeGuid: ge,
866
866
  type: t === "ecanDataSelect" ? "normalSelectData" : "normalSelect",
867
867
  labelField: v.labelField,
868
868
  valueField: v.valueField,
@@ -877,7 +877,7 @@ const se = (e) => {
877
877
  classifications: Ce
878
878
  } : L = {
879
879
  classification: H
880
- }, be = C({
880
+ }, de = C({
881
881
  url: "/diagram",
882
882
  source: n,
883
883
  dataViewId: i,
@@ -895,46 +895,43 @@ const se = (e) => {
895
895
  return p && Array.isArray(p) && (G.fieldValue = JSON.stringify(p)), C(C({}, T), G);
896
896
  }),
897
897
  idxLibMode: re,
898
- preview: ye,
898
+ preview: xe,
899
899
  rowHeaders: ne,
900
900
  keyName: e.keyName,
901
901
  // 透视表指标排序相关入参
902
902
  columnData: pe,
903
- columnHeaders: ge
903
+ columnHeaders: be
904
904
  }, L);
905
905
  }
906
- return be;
907
- }, dl = () => {
908
- console.log("This is indicator");
909
- }, sl = {
910
- formatIndicatorParams: al,
911
- formatTest: dl
912
- }, fl = (e = [], o) => {
906
+ return console.log("resultParams", de), de;
907
+ }, dl = {
908
+ formatIndicatorParams: al
909
+ }, sl = (e = [], o) => {
913
910
  let { name: l = "name", types: t = [] } = o || {};
914
911
  l = (l == null ? void 0 : l.trim()) || l;
915
- const m = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), r = e.length, d = t.length;
912
+ const y = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), r = e.length, d = t.length;
916
913
  if (r === 1) {
917
914
  const f = [];
918
915
  for (let b = 0; b < d; b++) {
919
916
  const u = t[b], { label: S, value: A } = u, x = Y(C({}, e[0]), { value: e[0][A] });
920
- m.add(S), f.push(x);
917
+ y.add(S), f.push(x);
921
918
  }
922
919
  const a = e[0][l] || "";
923
920
  s.set(a, f);
924
921
  } else
925
922
  for (let f = 0; f < r; f++) {
926
923
  const a = e[f], b = a[l];
927
- m.add(b);
924
+ y.add(b);
928
925
  for (let u = 0; u < d; u++) {
929
926
  const S = t[u], { label: A, value: x } = S, c = Y(C({}, a), { value: a[x] });
930
927
  if (s.has(A)) {
931
- const y = s.get(A);
932
- y.push(c), s.set(A, y);
928
+ const m = s.get(A);
929
+ m.push(c), s.set(A, m);
933
930
  } else
934
931
  s.set(A, [c]);
935
932
  }
936
933
  }
937
- const n = Array.from(m), i = [];
934
+ const n = Array.from(y), i = [];
938
935
  for (const [f, a] of s)
939
936
  i.push({
940
937
  name: f,
@@ -944,12 +941,12 @@ const se = (e) => {
944
941
  dimensions: n,
945
942
  dataset: i
946
943
  };
947
- }, ul = (e, o) => {
948
- let { name: l = "name", value: t = "value", type: m = "type" } = o || {};
949
- l = l == null ? void 0 : l.trim(), t = t == null ? void 0 : t.trim(), m = m == null ? void 0 : m.trim();
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();
950
947
  const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), d = e.length;
951
948
  for (let f = 0; f < d; f++) {
952
- const a = e[f], b = a[l] || "", u = a[t] || "", S = a[m] || "";
949
+ const a = e[f], b = a[l] || "", u = a[t] || "", S = a[y] || "";
953
950
  if (s.add(b), r.has(S)) {
954
951
  const A = r.get(S);
955
952
  A.push(C({ name: b, value: u }, a)), r.set(S, A);
@@ -967,8 +964,8 @@ const se = (e) => {
967
964
  dataset: i
968
965
  };
969
966
  }, te = (e, o) => {
970
- var m;
971
- if (console.log("This is useValueFormatter"), e == null)
967
+ var y;
968
+ if (e == null)
972
969
  return o;
973
970
  const l = e.match(/\{.*\}/g);
974
971
  if (l == null || l.length === 0)
@@ -978,7 +975,7 @@ const se = (e) => {
978
975
  const r = l[s];
979
976
  if (r == null || r === "")
980
977
  break;
981
- let d = (m = r.slice(1, -1)) == null ? void 0 : m.trim();
978
+ let d = (y = r.slice(1, -1)) == null ? void 0 : y.trim();
982
979
  d = d == null ? void 0 : d.replace(/value/g, o);
983
980
  try {
984
981
  let n = d;
@@ -989,36 +986,36 @@ const se = (e) => {
989
986
  }
990
987
  return e;
991
988
  };
992
- function cl(e) {
989
+ function ul(e) {
993
990
  return e.isShowMarkLine ? {
994
991
  markLine: {
995
992
  data: [{ type: e.markLineType }]
996
993
  }
997
994
  } : {};
998
995
  }
999
- const ml = (e, o, l) => {
996
+ const cl = (e, o, l) => {
1000
997
  switch (e.type) {
1001
998
  case "bar":
1002
999
  return yl(e, o, l);
1003
1000
  case "line":
1004
- return xl(e, o, l);
1001
+ return ml(e, o, l);
1005
1002
  case "pie":
1006
- return gl(e, o, l);
1003
+ return xl(e, o, l);
1007
1004
  case "comboGraph":
1008
- return bl(e, o, l);
1005
+ return gl(e, o, l);
1009
1006
  default:
1010
1007
  return {};
1011
1008
  }
1012
1009
  }, yl = (e, o, l) => {
1013
- const t = e.yAxisLabelFormatter, m = e.xAxisLabelFormatter, { dimensions: s = [], dataset: r = [] } = o, d = oe(() => {
1010
+ const t = e.yAxisLabelFormatter, y = e.xAxisLabelFormatter, { dimensions: s = [], dataset: r = [] } = o, d = oe(() => {
1014
1011
  const { gradientShow: i, gradientColors: f, gradientOffset: a, barBorderRadius: b } = e, u = r, S = u.length, A = [];
1015
1012
  for (let x = 0; x < S; x++) {
1016
1013
  const c = Y(C({}, u[x]), {
1017
1014
  type: "bar",
1018
1015
  barWidth: e.barWidth,
1019
1016
  showBackground: e.showBarBackground
1020
- }), { isStack: y, stackColumns: g } = e;
1021
- if (y && g.includes(u[x].name || !g) && (c.stack = "stack"), c.label = {
1017
+ }), { isStack: m, stackColumns: g } = e;
1018
+ if (m && g.includes(u[x].name || !g) && (c.stack = "stack"), c.label = {
1022
1019
  show: e.labelShow,
1023
1020
  fontSize: e.labelFontSize,
1024
1021
  position: e.labelPosition,
@@ -1028,7 +1025,7 @@ const ml = (e, o, l) => {
1028
1025
  formatter: (w) => {
1029
1026
  let N = "", v = e.labelFormatter;
1030
1027
  v === "" && (v = "{c}");
1031
- const { seriesName: E, name: Z, value: re, data: ye } = w || {};
1028
+ const { seriesName: E, name: Z, value: re, data: xe } = w || {};
1032
1029
  return N += ie(
1033
1030
  v,
1034
1031
  {
@@ -1038,7 +1035,7 @@ const ml = (e, o, l) => {
1038
1035
  a: E,
1039
1036
  b: Z,
1040
1037
  c: re || 0
1041
- }, ye)
1038
+ }, xe)
1042
1039
  },
1043
1040
  {
1044
1041
  useNewline: !0,
@@ -1101,10 +1098,10 @@ const ml = (e, o, l) => {
1101
1098
  let a = "", b = e.tooltipFormatter;
1102
1099
  b === "" && (b = "{marker} {a} {c}");
1103
1100
  for (let u = 0; u < f; u++) {
1104
- const { marker: S, seriesName: A, name: x, value: c, data: y } = i[u] || {};
1101
+ const { marker: S, seriesName: A, name: x, value: c, data: m } = i[u] || {};
1105
1102
  if (u === 0) {
1106
1103
  let g = x;
1107
- typeof x == "string" && x[0] === "0" && !isNaN(+x) && (g = (+x).toString()), a += `${te(m, g)}<br/>`;
1104
+ typeof x == "string" && x[0] === "0" && !isNaN(+x) && (g = (+x).toString()), a += `${te(y, g)}<br/>`;
1108
1105
  }
1109
1106
  a += ie(
1110
1107
  b,
@@ -1117,7 +1114,7 @@ const ml = (e, o, l) => {
1117
1114
  a: A,
1118
1115
  b: x,
1119
1116
  c: c || 0
1120
- }, y)
1117
+ }, m)
1121
1118
  },
1122
1119
  {
1123
1120
  useNewline: !0,
@@ -1193,7 +1190,7 @@ const ml = (e, o, l) => {
1193
1190
  overflow: e.xAxisLabelOverflow,
1194
1191
  fontSize: e.xAxisLabelFontSize,
1195
1192
  formatter(i) {
1196
- return typeof i == "string" && i[0] === "0" && !isNaN(+i) && (i = (+i).toString()), te(m, i);
1193
+ return typeof i == "string" && i[0] === "0" && !isNaN(+i) && (i = (+i).toString()), te(y, i);
1197
1194
  }
1198
1195
  },
1199
1196
  axisLine: {
@@ -1255,8 +1252,8 @@ const ml = (e, o, l) => {
1255
1252
  },
1256
1253
  series: V(d)
1257
1254
  };
1258
- }, xl = (e, o, l) => {
1259
- const t = e.yAxisLabelFormatter, m = e.xAxisLabelFormatter, { dimensions: s = [], dataset: r = [] } = o, d = oe(() => s.map((i) => {
1255
+ }, ml = (e, o, l) => {
1256
+ const t = e.yAxisLabelFormatter, y = e.xAxisLabelFormatter, { dimensions: s = [], dataset: r = [] } = o, d = oe(() => s.map((i) => {
1260
1257
  let f = {};
1261
1258
  return i && typeof i == "object" ? f = Y(C({}, i), {
1262
1259
  textStyle: {
@@ -1298,7 +1295,7 @@ const ml = (e, o, l) => {
1298
1295
  lineStyle: C({
1299
1296
  width: e.lineStyleWidth
1300
1297
  }, b)
1301
- }), cl(e)));
1298
+ }), ul(e)));
1302
1299
  }
1303
1300
  return i;
1304
1301
  });
@@ -1311,7 +1308,7 @@ const ml = (e, o, l) => {
1311
1308
  let a = "", b = e.tooltipFormatter;
1312
1309
  b === "" && (b = "{marker} {a} {c}");
1313
1310
  for (let u = 0; u < f; u++) {
1314
- const { marker: S, seriesName: A, name: x, value: c, data: y } = i[u] || {};
1311
+ const { marker: S, seriesName: A, name: x, value: c, data: m } = i[u] || {};
1315
1312
  u === 0 && (a += `${x}<br/>`), a += ie(
1316
1313
  b,
1317
1314
  {
@@ -1322,7 +1319,7 @@ const ml = (e, o, l) => {
1322
1319
  a: A,
1323
1320
  b: x,
1324
1321
  c
1325
- }, y)
1322
+ }, m)
1326
1323
  },
1327
1324
  {
1328
1325
  useNewline: !0,
@@ -1357,7 +1354,7 @@ const ml = (e, o, l) => {
1357
1354
  width: e.xAxisLabelWidth,
1358
1355
  overflow: e.xAxisLabelOverflow,
1359
1356
  formatter(i) {
1360
- return te(m, i);
1357
+ return te(y, i);
1361
1358
  }
1362
1359
  },
1363
1360
  axisLine: {
@@ -1405,12 +1402,12 @@ const ml = (e, o, l) => {
1405
1402
  },
1406
1403
  series: V(n)
1407
1404
  };
1408
- }, gl = (e, o, l) => {
1405
+ }, xl = (e, o, l) => {
1409
1406
  const { dataset: t = [] } = o;
1410
- let { data: m = [] } = t[0] || {};
1407
+ let { data: y = [] } = t[0] || {};
1411
1408
  if (Array.isArray(e.colors)) {
1412
1409
  const s = e.isUseLabelColors, r = e.colors;
1413
- m = m.map((d, n) => C({
1410
+ y = y.map((d, n) => C({
1414
1411
  label: s ? { color: r[n] } : {}
1415
1412
  }, d));
1416
1413
  }
@@ -1470,7 +1467,7 @@ const ml = (e, o, l) => {
1470
1467
  },
1471
1468
  series: [
1472
1469
  {
1473
- data: m,
1470
+ data: y,
1474
1471
  type: "pie",
1475
1472
  radius: [e.innerRadius, e.outerRadius],
1476
1473
  center: [e.centerLeft, e.centerTop],
@@ -1500,8 +1497,8 @@ const ml = (e, o, l) => {
1500
1497
  }
1501
1498
  ]
1502
1499
  };
1503
- }, bl = (e, o, l) => {
1504
- const { dimensions: t = [], dataset: m = [] } = o, s = oe(() => t.map((n) => {
1500
+ }, gl = (e, o, l) => {
1501
+ const { dimensions: t = [], dataset: y = [] } = o, s = oe(() => t.map((n) => {
1505
1502
  let i = {};
1506
1503
  return n && typeof n == "object" ? i = Y(C({}, n), {
1507
1504
  textStyle: {
@@ -1514,13 +1511,13 @@ const ml = (e, o, l) => {
1514
1511
  }
1515
1512
  }, i;
1516
1513
  })), r = oe(() => {
1517
- const n = [], i = m.length, f = e.seriesTypes;
1514
+ const n = [], i = y.length, f = e.seriesTypes;
1518
1515
  for (let a = 0; a < i; a++) {
1519
1516
  const b = f[a], { type: u, axisIndex: S } = b || {};
1520
1517
  let A = C({
1521
1518
  type: u,
1522
1519
  yAxisIndex: S
1523
- }, m[a]);
1520
+ }, y[a]);
1524
1521
  if (u === "line") {
1525
1522
  const x = {};
1526
1523
  e.shadowColor && (x.shadowColor = e.shadowColor, x.shadowBlur = e.shadowBlur, x.shadowOffsetY = e.shadowOffsetY, x.shadowOffsetX = e.shadowOffsetX), A = Y(C({}, A), {
@@ -1553,7 +1550,7 @@ const ml = (e, o, l) => {
1553
1550
  });
1554
1551
  }
1555
1552
  if (u === "bar") {
1556
- const { gradientShow: x, gradientColors: c, gradientOffset: y } = e, g = {};
1553
+ const { gradientShow: x, gradientColors: c, gradientOffset: m } = e, g = {};
1557
1554
  if (e.barBorderRadius) {
1558
1555
  const w = e.barBorderRadius.split(",");
1559
1556
  if (w != null && w.length) {
@@ -1574,7 +1571,7 @@ const ml = (e, o, l) => {
1574
1571
  offset: 0,
1575
1572
  color: e.colors[a]
1576
1573
  }, {
1577
- offset: y,
1574
+ offset: m,
1578
1575
  color: c[a]
1579
1576
  }, {
1580
1577
  offset: 1,
@@ -1648,18 +1645,18 @@ const ml = (e, o, l) => {
1648
1645
  a === "" && (a = "{marker} {a} {c}");
1649
1646
  const b = e.seriesTypes;
1650
1647
  for (let u = 0; u < i; u++) {
1651
- const S = b[u], { tooltipFormatter: A } = S || {}, { marker: x, seriesName: c, name: y, value: g, data: w } = n[u] || {};
1652
- u === 0 && (f += `${y}<br/>`), f += ie(
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(
1653
1650
  // 如果系列有提示框组件就使用自定义,没有就用默认的
1654
1651
  A || a,
1655
1652
  {
1656
1653
  textData: C({
1657
1654
  marker: x,
1658
- name: y,
1655
+ name: m,
1659
1656
  value: g,
1660
1657
  seriesName: c,
1661
1658
  a: c,
1662
- b: y,
1659
+ b: m,
1663
1660
  c: g
1664
1661
  }, w)
1665
1662
  },
@@ -1708,7 +1705,7 @@ const ml = (e, o, l) => {
1708
1705
  yAxis: V(d),
1709
1706
  series: V(r)
1710
1707
  };
1711
- }, Sl = (e) => ({
1708
+ }, bl = (e) => ({
1712
1709
  title: {
1713
1710
  text: e.titleText,
1714
1711
  subtext: e.titleSubtext,
@@ -1727,16 +1724,16 @@ const ml = (e, o, l) => {
1727
1724
  containLabel: e.gridContainLabel
1728
1725
  },
1729
1726
  color: e.colors
1730
- }), Al = (e, o, l = 12) => C(C({}, Sl(e)), ml(e, o, l)), pl = Y(C({}, sl), {
1727
+ }), Sl = (e, o, l = 12) => C(C({}, bl(e)), cl(e, o, l)), Tl = Y(C({}, dl), {
1731
1728
  runCode: we,
1732
- useTransformChartDataByAttrKey: fl,
1733
- useTransformChartDataByAttrValue: ul,
1729
+ useTransformChartDataByAttrKey: sl,
1730
+ useTransformChartDataByAttrValue: fl,
1734
1731
  useValueFormatter: te,
1735
1732
  useVariablesInText: ie,
1736
- transformProps: Al,
1733
+ transformProps: Sl,
1737
1734
  getIndicatorParams: ll
1738
1735
  });
1739
1736
  export {
1740
- pl as default
1737
+ Tl as default
1741
1738
  };
1742
1739
  //# sourceMappingURL=index.es.js.map