@ck-ui/component-library 1.0.9 → 1.0.10

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.
@@ -1,11 +1,11 @@
1
1
  import { jsxs as We, jsx as x } from "react/jsx-runtime";
2
- import ze, { useState as se, useRef as Ze, useCallback as ce, useMemo as ye, useEffect as _e } from "react";
2
+ import ze, { useState as se, useRef as Ze, useCallback as ce, useMemo as pe, useEffect as _e } from "react";
3
3
  import { g as Ye } from "../../_commonjsHelpers-C6fGbg64.js";
4
4
  import { buildChartConfig as Be } from "./_config/builders.js";
5
5
  import { getOnRender as et, getChartEvents as tt } from "./_config/events.js";
6
6
  import { EXTENDED_PALETTE as H, STACKED_AREA_PALETTE as Ke } from "./_constant/constants.js";
7
7
  import { mergeClasses as Je } from "../../utils/mergeClasses.js";
8
- import '../../assets/index-CRlPQn7l.css';var le = {}, fe = {}, W = {}, be;
8
+ import '../../assets/index-EOsQwhza.css';var le = {}, fe = {}, W = {}, be;
9
9
  function rt() {
10
10
  return be || (be = 1, Object.defineProperty(W, "__esModule", { value: !0 }), W.default = "ffffffff-ffff-ffff-ffff-ffffffffffff"), W;
11
11
  }
@@ -41,7 +41,7 @@ function oe() {
41
41
  return J.default = c, J;
42
42
  }
43
43
  var $ = {}, je;
44
- function L() {
44
+ function P() {
45
45
  if (je) return $;
46
46
  je = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.unsafeStringify = void 0;
47
47
  const r = ie(), c = [];
@@ -79,7 +79,7 @@ var ke;
79
79
  function Qe() {
80
80
  if (ke) return F;
81
81
  ke = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.updateV1State = void 0;
82
- const r = ve(), c = L(), v = {};
82
+ const r = ve(), c = P(), v = {};
83
83
  function d(n, C, u) {
84
84
  let s;
85
85
  const g = n?._v6 ?? !1;
@@ -107,8 +107,8 @@ function Qe() {
107
107
  else if (t < 0 || t + 16 > b.length)
108
108
  throw new RangeError(`UUID byte range ${t}:${t + 15} is out of buffer bounds`);
109
109
  C ??= Date.now(), u ??= 0, s ??= (n[8] << 8 | n[9]) & 16383, g ??= n.slice(10, 16), C += 122192928e5;
110
- const p = ((C & 268435455) * 1e4 + u) % 4294967296;
111
- b[t++] = p >>> 24 & 255, b[t++] = p >>> 16 & 255, b[t++] = p >>> 8 & 255, b[t++] = p & 255;
110
+ const y = ((C & 268435455) * 1e4 + u) % 4294967296;
111
+ b[t++] = y >>> 24 & 255, b[t++] = y >>> 16 & 255, b[t++] = y >>> 8 & 255, b[t++] = y & 255;
112
112
  const S = C / 4294967296 * 1e4 & 268435455;
113
113
  b[t++] = S >>> 8 & 255, b[t++] = S & 255, b[t++] = S >>> 24 & 15 | 16, b[t++] = S >>> 16 & 255, b[t++] = s >>> 8 | 128, b[t++] = s & 255;
114
114
  for (let i = 0; i < 6; ++i)
@@ -121,7 +121,7 @@ var z = {}, De;
121
121
  function Ge() {
122
122
  if (De) return z;
123
123
  De = 1, Object.defineProperty(z, "__esModule", { value: !0 });
124
- const r = oe(), c = L();
124
+ const r = oe(), c = P();
125
125
  function v(e) {
126
126
  const a = typeof e == "string" ? (0, r.default)(e) : e, n = d(a);
127
127
  return typeof e == "string" ? (0, c.unsafeStringify)(n) : n;
@@ -137,21 +137,21 @@ function it() {
137
137
  if (Me) return Z;
138
138
  Me = 1, Object.defineProperty(Z, "__esModule", { value: !0 });
139
139
  function r(t) {
140
- const p = e(t), S = d(p, t.length * 8);
140
+ const y = e(t), S = d(y, t.length * 8);
141
141
  return c(S);
142
142
  }
143
143
  function c(t) {
144
- const p = new Uint8Array(t.length * 4);
144
+ const y = new Uint8Array(t.length * 4);
145
145
  for (let S = 0; S < t.length * 4; S++)
146
- p[S] = t[S >> 2] >>> S % 4 * 8 & 255;
147
- return p;
146
+ y[S] = t[S >> 2] >>> S % 4 * 8 & 255;
147
+ return y;
148
148
  }
149
149
  function v(t) {
150
150
  return (t + 64 >>> 9 << 4) + 14 + 1;
151
151
  }
152
- function d(t, p) {
153
- const S = new Uint32Array(v(p)).fill(0);
154
- S.set(t), S[p >> 5] |= 128 << p % 32, S[S.length - 1] = p, t = S;
152
+ function d(t, y) {
153
+ const S = new Uint32Array(v(y)).fill(0);
154
+ S.set(t), S[y >> 5] |= 128 << y % 32, S[S.length - 1] = y, t = S;
155
155
  let i = 1732584193, l = -271733879, o = -1732584194, f = 271733878;
156
156
  for (let _ = 0; _ < t.length; _ += 16) {
157
157
  const U = i, A = l, O = o, k = f;
@@ -162,32 +162,32 @@ function it() {
162
162
  function e(t) {
163
163
  if (t.length === 0)
164
164
  return new Uint32Array();
165
- const p = new Uint32Array(v(t.length * 8)).fill(0);
165
+ const y = new Uint32Array(v(t.length * 8)).fill(0);
166
166
  for (let S = 0; S < t.length; S++)
167
- p[S >> 2] |= (t[S] & 255) << S % 4 * 8;
168
- return p;
167
+ y[S >> 2] |= (t[S] & 255) << S % 4 * 8;
168
+ return y;
169
169
  }
170
- function a(t, p) {
171
- const S = (t & 65535) + (p & 65535);
172
- return (t >> 16) + (p >> 16) + (S >> 16) << 16 | S & 65535;
170
+ function a(t, y) {
171
+ const S = (t & 65535) + (y & 65535);
172
+ return (t >> 16) + (y >> 16) + (S >> 16) << 16 | S & 65535;
173
173
  }
174
- function n(t, p) {
175
- return t << p | t >>> 32 - p;
174
+ function n(t, y) {
175
+ return t << y | t >>> 32 - y;
176
176
  }
177
- function C(t, p, S, i, l, o) {
178
- return a(n(a(a(p, t), a(i, o)), l), S);
177
+ function C(t, y, S, i, l, o) {
178
+ return a(n(a(a(y, t), a(i, o)), l), S);
179
179
  }
180
- function u(t, p, S, i, l, o, f) {
181
- return C(p & S | ~p & i, t, p, l, o, f);
180
+ function u(t, y, S, i, l, o, f) {
181
+ return C(y & S | ~y & i, t, y, l, o, f);
182
182
  }
183
- function s(t, p, S, i, l, o, f) {
184
- return C(p & i | S & ~i, t, p, l, o, f);
183
+ function s(t, y, S, i, l, o, f) {
184
+ return C(y & i | S & ~i, t, y, l, o, f);
185
185
  }
186
- function g(t, p, S, i, l, o, f) {
187
- return C(p ^ S ^ i, t, p, l, o, f);
186
+ function g(t, y, S, i, l, o, f) {
187
+ return C(y ^ S ^ i, t, y, l, o, f);
188
188
  }
189
- function b(t, p, S, i, l, o, f) {
190
- return C(S ^ (p | ~i), t, p, l, o, f);
189
+ function b(t, y, S, i, l, o, f) {
190
+ return C(S ^ (y | ~i), t, y, l, o, f);
191
191
  }
192
192
  return Z.default = r, Z;
193
193
  }
@@ -195,7 +195,7 @@ var E = {}, Re;
195
195
  function ae() {
196
196
  if (Re) return E;
197
197
  Re = 1, Object.defineProperty(E, "__esModule", { value: !0 }), E.URL = E.DNS = E.stringToBytes = void 0;
198
- const r = oe(), c = L();
198
+ const r = oe(), c = P();
199
199
  function v(e) {
200
200
  e = unescape(encodeURIComponent(e));
201
201
  const a = new Uint8Array(e.length);
@@ -212,8 +212,8 @@ function ae() {
212
212
  if (t.set(b), t.set(g, b.length), t = a(t), t[6] = t[6] & 15 | e, t[8] = t[8] & 63 | 128, u) {
213
213
  if (s = s || 0, s < 0 || s + 16 > u.length)
214
214
  throw new RangeError(`UUID byte range ${s}:${s + 15} is out of buffer bounds`);
215
- for (let p = 0; p < 16; ++p)
216
- u[s + p] = t[p];
215
+ for (let y = 0; y < 16; ++y)
216
+ u[s + y] = t[y];
217
217
  return u;
218
218
  }
219
219
  return (0, c.unsafeStringify)(t);
@@ -248,7 +248,7 @@ var Ee;
248
248
  function st() {
249
249
  if (Ee) return Y;
250
250
  Ee = 1, Object.defineProperty(Y, "__esModule", { value: !0 });
251
- const r = ut(), c = ve(), v = L();
251
+ const r = ut(), c = ve(), v = P();
252
252
  function d(e, a, n) {
253
253
  if (r.default.randomUUID && !a && !e)
254
254
  return r.default.randomUUID();
@@ -267,10 +267,10 @@ function st() {
267
267
  }
268
268
  return Y.default = d, Y;
269
269
  }
270
- var he = {}, ee = {}, Pe;
270
+ var he = {}, ee = {}, qe;
271
271
  function ct() {
272
- if (Pe) return ee;
273
- Pe = 1, Object.defineProperty(ee, "__esModule", { value: !0 });
272
+ if (qe) return ee;
273
+ qe = 1, Object.defineProperty(ee, "__esModule", { value: !0 });
274
274
  function r(d, e, a, n) {
275
275
  switch (d) {
276
276
  case 0:
@@ -303,20 +303,20 @@ function ct() {
303
303
  b[o] = s[g][o];
304
304
  for (let o = 16; o < 80; ++o)
305
305
  b[o] = c(b[o - 3] ^ b[o - 8] ^ b[o - 14] ^ b[o - 16], 1);
306
- let t = a[0], p = a[1], S = a[2], i = a[3], l = a[4];
306
+ let t = a[0], y = a[1], S = a[2], i = a[3], l = a[4];
307
307
  for (let o = 0; o < 80; ++o) {
308
- const f = Math.floor(o / 20), _ = c(t, 5) + r(f, p, S, i) + l + e[f] + b[o] >>> 0;
309
- l = i, i = S, S = c(p, 30) >>> 0, p = t, t = _;
308
+ const f = Math.floor(o / 20), _ = c(t, 5) + r(f, y, S, i) + l + e[f] + b[o] >>> 0;
309
+ l = i, i = S, S = c(y, 30) >>> 0, y = t, t = _;
310
310
  }
311
- a[0] = a[0] + t >>> 0, a[1] = a[1] + p >>> 0, a[2] = a[2] + S >>> 0, a[3] = a[3] + i >>> 0, a[4] = a[4] + l >>> 0;
311
+ a[0] = a[0] + t >>> 0, a[1] = a[1] + y >>> 0, a[2] = a[2] + S >>> 0, a[3] = a[3] + i >>> 0, a[4] = a[4] + l >>> 0;
312
312
  }
313
313
  return Uint8Array.of(a[0] >> 24, a[0] >> 16, a[0] >> 8, a[0], a[1] >> 24, a[1] >> 16, a[1] >> 8, a[1], a[2] >> 24, a[2] >> 16, a[2] >> 8, a[2], a[3] >> 24, a[3] >> 16, a[3] >> 8, a[3], a[4] >> 24, a[4] >> 16, a[4] >> 8, a[4]);
314
314
  }
315
315
  return ee.default = v, ee;
316
316
  }
317
- var Le;
317
+ var Pe;
318
318
  function lt() {
319
- return Le || (Le = 1, function(r) {
319
+ return Pe || (Pe = 1, function(r) {
320
320
  Object.defineProperty(r, "__esModule", { value: !0 }), r.URL = r.DNS = void 0;
321
321
  const c = ct(), v = ae();
322
322
  var d = ae();
@@ -331,11 +331,11 @@ function lt() {
331
331
  e.DNS = v.DNS, e.URL = v.URL, r.default = e;
332
332
  }(he)), he;
333
333
  }
334
- var te = {}, Te;
334
+ var te = {}, Le;
335
335
  function ft() {
336
- if (Te) return te;
337
- Te = 1, Object.defineProperty(te, "__esModule", { value: !0 });
338
- const r = L(), c = Qe(), v = Ge();
336
+ if (Le) return te;
337
+ Le = 1, Object.defineProperty(te, "__esModule", { value: !0 });
338
+ const r = P(), c = Qe(), v = Ge();
339
339
  function d(e, a, n) {
340
340
  e ??= {}, n ??= 0;
341
341
  let C = (0, c.default)({ ...e, _v6: !0 }, new Uint8Array(16));
@@ -350,11 +350,11 @@ function ft() {
350
350
  }
351
351
  return te.default = d, te;
352
352
  }
353
- var re = {}, qe;
353
+ var re = {}, Te;
354
354
  function dt() {
355
- if (qe) return re;
356
- qe = 1, Object.defineProperty(re, "__esModule", { value: !0 });
357
- const r = oe(), c = L();
355
+ if (Te) return re;
356
+ Te = 1, Object.defineProperty(re, "__esModule", { value: !0 });
357
+ const r = oe(), c = P();
358
358
  function v(e) {
359
359
  const a = typeof e == "string" ? (0, r.default)(e) : e, n = d(a);
360
360
  return typeof e == "string" ? (0, c.unsafeStringify)(n) : n;
@@ -369,7 +369,7 @@ var N = {}, Ve;
369
369
  function ht() {
370
370
  if (Ve) return N;
371
371
  Ve = 1, Object.defineProperty(N, "__esModule", { value: !0 }), N.updateV7State = void 0;
372
- const r = ve(), c = L(), v = {};
372
+ const r = ve(), c = P(), v = {};
373
373
  function d(n, C, u) {
374
374
  let s;
375
375
  if (n)
@@ -423,7 +423,7 @@ function vt() {
423
423
  Object.defineProperty(r, "parse", { enumerable: !0, get: function() {
424
424
  return d.default;
425
425
  } });
426
- var e = L();
426
+ var e = P();
427
427
  Object.defineProperty(r, "stringify", { enumerable: !0, get: function() {
428
428
  return e.default;
429
429
  } });
@@ -459,9 +459,9 @@ function vt() {
459
459
  Object.defineProperty(r, "v7", { enumerable: !0, get: function() {
460
460
  return t.default;
461
461
  } });
462
- var p = ie();
462
+ var y = ie();
463
463
  Object.defineProperty(r, "validate", { enumerable: !0, get: function() {
464
- return p.default;
464
+ return y.default;
465
465
  } });
466
466
  var S = gt();
467
467
  Object.defineProperty(r, "version", { enumerable: !0, get: function() {
@@ -469,12 +469,12 @@ function vt() {
469
469
  } });
470
470
  }(fe)), fe;
471
471
  }
472
- var P = {}, Ne;
472
+ var q = {}, Ne;
473
473
  function mt() {
474
- if (Ne) return P;
475
- Ne = 1, Object.defineProperty(P, "__esModule", {
474
+ if (Ne) return q;
475
+ Ne = 1, Object.defineProperty(q, "__esModule", {
476
476
  value: !0
477
- }), P.checkIfDataTableExists = n, P.cloneDataSource = C, P.deepCopyOf = a, P.isCallable = v, P.isObject = c, P.isSameObjectContent = d, P.isUndefined = e;
477
+ }), q.checkIfDataTableExists = n, q.cloneDataSource = C, q.deepCopyOf = a, q.isCallable = v, q.isObject = c, q.isSameObjectContent = d, q.isUndefined = e;
478
478
  function r(u) {
479
479
  "@babel/helpers - typeof";
480
480
  return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
@@ -522,21 +522,21 @@ function mt() {
522
522
  return b;
523
523
  }
524
524
  if (r(u) === "object") {
525
- var p = {};
525
+ var y = {};
526
526
  for (var S in u) {
527
527
  if (S === "data") {
528
- u[S]._dataStore && s === "clone" ? p[S] = u[S] : u[S]._dataStore && s === "diff" ? p[S] = "-" : p[S] = this.cloneDataSource(u[S]);
528
+ u[S]._dataStore && s === "clone" ? y[S] = u[S] : u[S]._dataStore && s === "diff" ? y[S] = "-" : y[S] = this.cloneDataSource(u[S]);
529
529
  continue;
530
530
  }
531
- p[S] = this.cloneDataSource(u[S]);
531
+ y[S] = this.cloneDataSource(u[S]);
532
532
  }
533
- return p;
533
+ return y;
534
534
  }
535
535
  }
536
- return P;
536
+ return q;
537
537
  }
538
538
  var ge = {}, xe;
539
- function pt() {
539
+ function yt() {
540
540
  return xe || (xe = 1, function(r) {
541
541
  Object.defineProperty(r, "__esModule", {
542
542
  value: !0
@@ -544,7 +544,7 @@ function pt() {
544
544
  }(ge)), ge;
545
545
  }
546
546
  var He;
547
- function yt() {
547
+ function pt() {
548
548
  return He || (He = 1, function(r) {
549
549
  function c(A) {
550
550
  "@babel/helpers - typeof";
@@ -557,7 +557,7 @@ function yt() {
557
557
  Object.defineProperty(r, "__esModule", {
558
558
  value: !0
559
559
  }), r.default = void 0;
560
- var v = C(ze), d = /* @__PURE__ */ vt(), e = n(mt()), a = C(pt());
560
+ var v = C(ze), d = /* @__PURE__ */ vt(), e = n(mt()), a = C(yt());
561
561
  function n(A, O) {
562
562
  if (typeof WeakMap == "function") var k = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
563
563
  return (n = function(h, j) {
@@ -601,7 +601,7 @@ function yt() {
601
601
  }
602
602
  return String(A);
603
603
  }
604
- function p(A, O, k) {
604
+ function y(A, O, k) {
605
605
  return O = o(O), S(A, l() ? Reflect.construct(O, k || [], o(A).constructor) : O.apply(A, k));
606
606
  }
607
607
  function S(A, O) {
@@ -640,7 +640,7 @@ function yt() {
640
640
  var U = /* @__PURE__ */ function(A) {
641
641
  function O(k) {
642
642
  var m;
643
- return u(this, O), m = p(this, O, [k]), m.initialUnmount = !1, m.containerRef = /* @__PURE__ */ v.default.createRef(), m.containerId = (0, d.v4)(), m.oldOptions = null, m.FusionCharts = k.fcLibrary || O.fusionChartsCore || window.FusionCharts, m;
643
+ return u(this, O), m = y(this, O, [k]), m.initialUnmount = !1, m.containerRef = /* @__PURE__ */ v.default.createRef(), m.containerId = (0, d.v4)(), m.oldOptions = null, m.FusionCharts = k.fcLibrary || O.fusionChartsCore || window.FusionCharts, m;
644
644
  }
645
645
  return f(O, A), g(O, [{
646
646
  key: "componentDidMount",
@@ -660,22 +660,22 @@ function yt() {
660
660
  else {
661
661
  var m;
662
662
  this.initialUnmount = !0;
663
- var y = (m = this.props.type) === null || m === void 0 ? void 0 : m.toLowerCase().includes("map");
664
- y || this.chartObj.dispose();
663
+ var p = (m = this.props.type) === null || m === void 0 ? void 0 : m.toLowerCase().includes("map");
664
+ p || this.chartObj.dispose();
665
665
  }
666
666
  }
667
667
  }, {
668
668
  key: "detectChanges",
669
669
  value: function(m) {
670
- var y = this.resolveChartOptions(m), h = this.oldOptions, j = ["width", "height", "type", "dataFormat", "dataSource", "events"];
671
- this.checkAndUpdateChartDimensions(y, h), this.checkAndUpdateChartType(y, h), this.checkAndUpdateChartData(y, h), this.checkAndUpdateEvents(y, h), this.checkAndUpdateRestOptions(a.default.filter(function(w) {
670
+ var p = this.resolveChartOptions(m), h = this.oldOptions, j = ["width", "height", "type", "dataFormat", "dataSource", "events"];
671
+ this.checkAndUpdateChartDimensions(p, h), this.checkAndUpdateChartType(p, h), this.checkAndUpdateChartData(p, h), this.checkAndUpdateEvents(p, h), this.checkAndUpdateRestOptions(a.default.filter(function(w) {
672
672
  return j.indexOf(w) === -1;
673
- }), y, h), this.oldOptions = y;
673
+ }), p, h), this.oldOptions = p;
674
674
  }
675
675
  }, {
676
676
  key: "checkAndUpdateChartDimensions",
677
- value: function(m, y) {
678
- var h = m.width, j = m.height, w = y.width, D = y.height;
677
+ value: function(m, p) {
678
+ var h = m.width, j = m.height, w = p.width, D = p.height;
679
679
  (String(h) !== String(w) || String(j) !== String(D)) && (!e.isUndefined(h) && !e.isUndefined(j) ? this.chartObj.resizeTo(h, j) : (e.isUndefined(h) || this.chartObj.resizeTo({
680
680
  w: h
681
681
  }), e.isUndefined(j) || this.chartObj.resizeTo({
@@ -684,14 +684,14 @@ function yt() {
684
684
  }
685
685
  }, {
686
686
  key: "checkAndUpdateChartType",
687
- value: function(m, y) {
688
- var h = m.type, j = y.type;
687
+ value: function(m, p) {
688
+ var h = m.type, j = p.type;
689
689
  String(h).toLowerCase() !== String(j).toLowerCase() && (e.isUndefined(h) || this.chartObj.chartType(String(h).toLowerCase()));
690
690
  }
691
691
  }, {
692
692
  key: "checkAndUpdateChartData",
693
- value: function(m, y) {
694
- var h = m.dataFormat, j = m.dataSource, w = y.dataFormat, D = y.dataSource;
693
+ value: function(m, p) {
694
+ var h = m.dataFormat, j = m.dataSource, w = p.dataFormat, D = p.dataSource;
695
695
  if (String(h).toLowerCase() !== String(w).toLowerCase() && !e.isUndefined(h) && !e.isUndefined(j)) {
696
696
  this.chartObj.setChartData(j, String(h).toLowerCase()), this.chartObj.render();
697
697
  return;
@@ -705,16 +705,16 @@ function yt() {
705
705
  }
706
706
  }, {
707
707
  key: "isSameChartData",
708
- value: function(m, y) {
709
- if (e.checkIfDataTableExists(m) && !e.checkIfDataTableExists(y) || !e.checkIfDataTableExists(m) && e.checkIfDataTableExists(y) || e.checkIfDataTableExists(m) && e.checkIfDataTableExists(y) && m.data !== y.data)
708
+ value: function(m, p) {
709
+ if (e.checkIfDataTableExists(m) && !e.checkIfDataTableExists(p) || !e.checkIfDataTableExists(m) && e.checkIfDataTableExists(p) || e.checkIfDataTableExists(m) && e.checkIfDataTableExists(p) && m.data !== p.data)
710
710
  return !1;
711
- var h = JSON.stringify(e.cloneDataSource(y, "diff")), j = JSON.stringify(e.cloneDataSource(m, "diff"));
711
+ var h = JSON.stringify(e.cloneDataSource(p, "diff")), j = JSON.stringify(e.cloneDataSource(m, "diff"));
712
712
  return h === j;
713
713
  }
714
714
  }, {
715
715
  key: "checkAndUpdateEvents",
716
- value: function(m, y) {
717
- var h = this, j = m.events, w = y.events, D, R;
716
+ value: function(m, p) {
717
+ var h = this, j = m.events, w = p.events, D, R;
718
718
  this.detectChartEventsChange(j, w) && (e.isUndefined(j) || (D = Object.assign({}, j), R = e.isUndefined(w) ? {} : Object.assign({}, w), Object.keys(R).forEach(function(M) {
719
719
  R[M] === D[M] ? D[M] = void 0 : h.chartObj.removeEventListener(M, R[M]);
720
720
  }), Object.keys(D).forEach(function(M) {
@@ -723,54 +723,54 @@ function yt() {
723
723
  }
724
724
  }, {
725
725
  key: "detectChartEventsChange",
726
- value: function(m, y) {
727
- return e.isObject(m) && e.isObject(y) ? !this.isSameChartEvents(m, y) : m !== y;
726
+ value: function(m, p) {
727
+ return e.isObject(m) && e.isObject(p) ? !this.isSameChartEvents(m, p) : m !== p;
728
728
  }
729
729
  }, {
730
730
  key: "isSameChartEvents",
731
- value: function(m, y) {
732
- if (Object.keys(m).length !== Object.keys(y).length)
731
+ value: function(m, p) {
732
+ if (Object.keys(m).length !== Object.keys(p).length)
733
733
  return !1;
734
734
  for (var h = Object.keys(m), j = 0; j < h.length; ++j) {
735
735
  var w = h[j];
736
- if (m[w] !== y[w])
736
+ if (m[w] !== p[w])
737
737
  return !1;
738
738
  }
739
739
  return !0;
740
740
  }
741
741
  }, {
742
742
  key: "checkAndUpdateRestOptions",
743
- value: function(m, y, h) {
743
+ value: function(m, p, h) {
744
744
  var j = this, w = !1;
745
745
  m.forEach(function(D) {
746
- var R = y[D], M = h[D];
746
+ var R = p[D], M = h[D];
747
747
  j.isSameOptionValue(R, M) || e.isUndefined(R) || j.chartObj.options && j.chartObj.options.hasOwnProperty(D) && (j.chartObj.options[D] = R, w = !0);
748
748
  }), w && this.chartObj.render();
749
749
  }
750
750
  }, {
751
751
  key: "isSameOptionValue",
752
- value: function(m, y) {
753
- return e.isObject(m) && e.isObject(y) ? e.isSameObjectContent(m, y) : String(m) === String(y);
752
+ value: function(m, p) {
753
+ return e.isObject(m) && e.isObject(p) ? e.isSameObjectContent(m, p) : String(m) === String(p);
754
754
  }
755
755
  }, {
756
756
  key: "renderChart",
757
757
  value: function() {
758
- var m = this, y = this.resolveChartOptions(this.props), h = {};
759
- this.containerRef.current && this.props.renderInShadowDom ? y.renderAt = this.containerRef.current : y.renderAt = this.containerId, Object.keys(this.props).forEach(function(j) {
758
+ var m = this, p = this.resolveChartOptions(this.props), h = {};
759
+ this.containerRef.current && this.props.renderInShadowDom ? p.renderAt = this.containerRef.current : p.renderAt = this.containerId, Object.keys(this.props).forEach(function(j) {
760
760
  var w = j.match(/^fcEvent-.*/i);
761
761
  if (w && typeof m.props[j] == "function") {
762
762
  var D = j.replace(/^fcEvent-/i, "");
763
763
  h[D] = m.props[j];
764
764
  }
765
- }), Object.keys(h).length > 0 && (y.events === void 0 ? y.events = h : y.events = Object.assign(y.events, h)), this.chartObj = new this.FusionCharts(y), this.chartObj.render(), this.oldOptions = y, this.props.onRender && typeof this.props.onRender == "function" && this.props.onRender(this.chartObj);
765
+ }), Object.keys(h).length > 0 && (p.events === void 0 ? p.events = h : p.events = Object.assign(p.events, h)), this.chartObj = new this.FusionCharts(p), this.chartObj.render(), this.oldOptions = p, this.props.onRender && typeof this.props.onRender == "function" && this.props.onRender(this.chartObj);
766
766
  }
767
767
  }, {
768
768
  key: "resolveChartOptions",
769
769
  value: function(m) {
770
- var y = m.chartConfig ? m.chartConfig : {}, h = a.default.reduce(function(j, w) {
770
+ var p = m.chartConfig ? m.chartConfig : {}, h = a.default.reduce(function(j, w) {
771
771
  return j[w] = m[w], j;
772
772
  }, {});
773
- return Object.assign(h, y), e.isObject(h.dataSource) && !e.checkIfDataTableExists(h.dataSource) ? h.dataSource = e.deepCopyOf(h.dataSource) : e.isObject(h.dataSource) && e.checkIfDataTableExists(h.dataSource) && (h.dataSource = e.cloneDataSource(h.dataSource, "clone")), e.isObject(h.link) && (h.link = e.deepCopyOf(h.link)), e.isObject(h.events) && (h.events = Object.assign({}, h.events)), h;
773
+ return Object.assign(h, p), e.isObject(h.dataSource) && !e.checkIfDataTableExists(h.dataSource) ? h.dataSource = e.deepCopyOf(h.dataSource) : e.isObject(h.dataSource) && e.checkIfDataTableExists(h.dataSource) && (h.dataSource = e.cloneDataSource(h.dataSource, "clone")), e.isObject(h.link) && (h.link = e.deepCopyOf(h.link)), e.isObject(h.events) && (h.events = Object.assign({}, h.events)), h;
774
774
  }
775
775
  }, {
776
776
  key: "render",
@@ -784,7 +784,7 @@ function yt() {
784
784
  }], [{
785
785
  key: "fcRoot",
786
786
  value: function(m) {
787
- for (var y = arguments.length, h = new Array(y > 1 ? y - 1 : 0), j = 1; j < y; j++)
787
+ for (var p = arguments.length, h = new Array(p > 1 ? p - 1 : 0), j = 1; j < p; j++)
788
788
  h[j - 1] = arguments[j];
789
789
  h.forEach(function(w) {
790
790
  w.getName && w.getType || w.name && w.type ? m.addDep(w) : w(m);
@@ -795,9 +795,9 @@ function yt() {
795
795
  r.default = U;
796
796
  }(le)), le;
797
797
  }
798
- var _t = yt();
799
- const bt = /* @__PURE__ */ Ye(_t), Ct = "_sankey_1s5fe_1", Ot = "_stackedArea_1s5fe_32", At = "_msCombiDy2d_1s5fe_32", St = "_scrollArea_1s5fe_44", jt = "_scrollLine2d_1s5fe_77", wt = "_bar2d_1s5fe_87", kt = "_line_1s5fe_106", Dt = "_stackedcolumn2d_1s5fe_173", Mt = "_scrollStackedColumn2d_1s5fe_173", Rt = "_groupChart_1s5fe_204", Ut = "_multipleLineChart_1s5fe_214", It = "_column2dMultiColor_1s5fe_228", Et = "_fusion_chart_wrapper_1s5fe_388", I = {
800
- "ckds-finops-charts": "_ckds-finops-charts_1s5fe_1",
798
+ var _t = pt();
799
+ const bt = /* @__PURE__ */ Ye(_t), Ct = "_sankey_qcfb7_1", Ot = "_stackedArea_qcfb7_32", At = "_msCombiDy2d_qcfb7_32", St = "_scrollArea_qcfb7_44", jt = "_scrollLine2d_qcfb7_77", wt = "_bar2d_qcfb7_87", kt = "_line_qcfb7_106", Dt = "_stackedcolumn2d_qcfb7_173", Mt = "_scrollStackedColumn2d_qcfb7_173", Rt = "_groupChart_qcfb7_204", Ut = "_multipleLineChart_qcfb7_214", It = "_column2dMultiColor_qcfb7_228", Et = "_fusion_chart_wrapper_qcfb7_388", I = {
800
+ "ckds-finops-charts": "_ckds-finops-charts_qcfb7_1",
801
801
  sankey: Ct,
802
802
  stackedArea: Ot,
803
803
  msCombiDy2d: At,
@@ -811,20 +811,22 @@ const bt = /* @__PURE__ */ Ye(_t), Ct = "_sankey_1s5fe_1", Ot = "_stackedArea_1s
811
811
  multipleLineChart: Ut,
812
812
  column2dMultiColor: It,
813
813
  fusion_chart_wrapper: Et,
814
- "doughnut-legend": "_doughnut-legend_1s5fe_392",
815
- "doughnut-legend-item": "_doughnut-legend-item_1s5fe_401",
816
- "doughnut-legend-item--hidden": "_doughnut-legend-item--hidden_1s5fe_413",
817
- "doughnut-legend-icon": "_doughnut-legend-icon_1s5fe_417",
818
- "doughnut-legend-text": "_doughnut-legend-text_1s5fe_425"
819
- }, Pt = bt;
820
- function Lt(r) {
814
+ "doughnut-legend": "_doughnut-legend_qcfb7_392",
815
+ "doughnut-legend-item": "_doughnut-legend-item_qcfb7_401",
816
+ "doughnut-legend-item--hidden": "_doughnut-legend-item--hidden_qcfb7_413",
817
+ "doughnut-legend-icon": "_doughnut-legend-icon_qcfb7_417",
818
+ "doughnut-legend-text": "_doughnut-legend-text_qcfb7_425"
819
+ }, qt = bt;
820
+ function Pt(r) {
821
821
  if (r.chartType === "column2d" && r.usePerBarColors && !Array.isArray(r.graphData)) {
822
822
  const d = r.graphData?.dataset?.[0]?.data || [], e = (r.palettecolors || H).split(",").map((a) => a.trim());
823
- return d.map((a, n) => a.color || e[n % e.length]);
823
+ return d.map(
824
+ (a, n) => a.color || e[n % e.length]
825
+ );
824
826
  }
825
827
  return r.chartType === "stackedArea" ? (r.palettecolors || Ke).split(",").map((d) => d.trim()) : r.chartType === "scrollArea" || r.chartType === "line" ? (r.palettecolors || "#8ECFFF").split(",").map((d) => d.trim()) : (r.palettecolors || H).split(",").map((v) => v.trim());
826
828
  }
827
- function Tt({
829
+ function Lt({
828
830
  items: r,
829
831
  colors: c,
830
832
  hiddenSeries: v,
@@ -860,7 +862,7 @@ function Tt({
860
862
  );
861
863
  }) });
862
864
  }
863
- function qt(r) {
865
+ function Tt(r) {
864
866
  const { chartType: c, showLegend: v } = r;
865
867
  if (v === "0") return null;
866
868
  if (c === "doughnutChart")
@@ -911,11 +913,11 @@ function $t(r, c, v, d) {
911
913
  if (v === "doughnutChart") {
912
914
  const s = r;
913
915
  if (!s?.data) return r;
914
- const g = (d || H).split(",").map((p) => p.trim()), t = s.data.map((p, S) => ({
915
- ...p,
916
- color: p.color || g[S % g.length]
916
+ const g = (d || H).split(",").map((y) => y.trim()), t = s.data.map((y, S) => ({
917
+ ...y,
918
+ color: y.color || g[S % g.length]
917
919
  })).filter(
918
- (p) => !c[p.legendItemName || p.label || ""]
920
+ (y) => !c[y.legendItemName || y.label || ""]
919
921
  );
920
922
  return { ...s, data: t };
921
923
  }
@@ -923,17 +925,21 @@ function $t(r, c, v, d) {
923
925
  return Object.values(c).some(Boolean) ? [] : r;
924
926
  if (v === "column2d" || v === "bar2d" || v === "area") {
925
927
  if (v === "column2d" && !Array.isArray(r) && r?.dataset) {
926
- const s = r, g = s.category || [], b = s.dataset || [], t = g.map((i, l) => ({ label: i.label || "", index: l })).filter((i) => !c[i.label]).map((i) => i.index), p = t.map((i) => g[i]), S = b.map((i) => ({
928
+ const s = r, g = s.category || [], b = s.dataset || [], t = g.map((i, l) => ({ label: i.label || "", index: l })).filter((i) => !c[i.label]).map((i) => i.index), y = t.map((i) => g[i]), S = b.map((i) => ({
927
929
  ...i,
928
930
  data: t.map((l) => (i.data || [])[l])
929
931
  }));
930
- return { ...s, category: p, dataset: S };
932
+ return {
933
+ ...s,
934
+ category: y,
935
+ dataset: S
936
+ };
931
937
  }
932
938
  if (Array.isArray(r)) {
933
939
  const s = (d || H).split(",").map((t) => t.trim());
934
- return r.map((t, p) => ({
940
+ return r.map((t, y) => ({
935
941
  ...t,
936
- color: t.color || s[p % s.length]
942
+ color: t.color || s[y % s.length]
937
943
  })).filter((t) => !c[t.label || ""]);
938
944
  }
939
945
  return r;
@@ -960,7 +966,7 @@ function Ft(r) {
960
966
  ...A,
961
967
  [U]: !A[U]
962
968
  }));
963
- }, []), p = ye(
969
+ }, []), y = pe(
964
970
  () => $t(
965
971
  r.graphData,
966
972
  d,
@@ -970,8 +976,8 @@ function Ft(r) {
970
976
  [r.graphData, d, c, r.palettecolors]
971
977
  ), S = Be({
972
978
  ...r,
973
- graphData: p
974
- }), i = ye(
979
+ graphData: y
980
+ }), i = pe(
975
981
  () => Object.entries(d).filter(([, U]) => U).map(([U]) => U).join("|") || "all",
976
982
  [d]
977
983
  ), l = ce(() => {
@@ -980,14 +986,14 @@ function Ft(r) {
980
986
  if (U.getAttribute("data-rounded-applied") === "true") return;
981
987
  const A = U.querySelector("svg");
982
988
  if (!A) return;
983
- const O = Array.from(A.querySelectorAll("rect")), k = c === "bar2d", m = O.filter((y) => {
984
- const h = parseFloat(y.getAttribute("height") || "0"), j = parseFloat(y.getAttribute("width") || "0"), w = y.getAttribute("fill") || "", D = w === "#ffffff" || w === "none" || w === "transparent" || w === "#FFFFFF";
989
+ const O = Array.from(A.querySelectorAll("rect")), k = c === "bar2d", m = O.filter((p) => {
990
+ const h = parseFloat(p.getAttribute("height") || "0"), j = parseFloat(p.getAttribute("width") || "0"), w = p.getAttribute("fill") || "", D = w === "#ffffff" || w === "none" || w === "transparent" || w === "#FFFFFF";
985
991
  return h > 10 && j > 2 && !D;
986
992
  });
987
993
  if (m.length !== 0) {
988
994
  if (k)
989
- m.forEach((y) => {
990
- const h = parseFloat(y.getAttribute("x") || "0"), j = parseFloat(y.getAttribute("y") || "0"), w = parseFloat(y.getAttribute("width") || "0"), D = parseFloat(y.getAttribute("height") || "0"), R = 4, M = document.createElementNS(
995
+ m.forEach((p) => {
996
+ const h = parseFloat(p.getAttribute("x") || "0"), j = parseFloat(p.getAttribute("y") || "0"), w = parseFloat(p.getAttribute("width") || "0"), D = parseFloat(p.getAttribute("height") || "0"), R = 4, M = document.createElementNS(
991
997
  "http://www.w3.org/2000/svg",
992
998
  "path"
993
999
  ), V = `M${h},${j} L${h + w - R},${j} Q${h + w},${j} ${h + w},${j + R} L${h + w},${j + D - R} Q${h + w},${j + D} ${h + w - R},${j + D} L${h},${j + D} Z`;
@@ -998,17 +1004,17 @@ function Ft(r) {
998
1004
  "stroke-width",
999
1005
  "opacity",
1000
1006
  "class"
1001
- ].forEach((T) => {
1002
- const q = y.getAttribute(T);
1003
- q && M.setAttribute(T, q);
1004
- }), y.getAttribute("style") && M.setAttribute("style", y.getAttribute("style") || ""), y.parentNode?.replaceChild(M, y);
1007
+ ].forEach((L) => {
1008
+ const T = p.getAttribute(L);
1009
+ T && M.setAttribute(L, T);
1010
+ }), p.getAttribute("style") && M.setAttribute("style", p.getAttribute("style") || ""), p.parentNode?.replaceChild(M, p);
1005
1011
  });
1006
1012
  else {
1007
- const y = {};
1013
+ const p = {};
1008
1014
  m.forEach((h) => {
1009
1015
  const w = `${Math.round(parseFloat(h.getAttribute("x") || "0"))}`;
1010
- y[w] || (y[w] = []), y[w].push(h);
1011
- }), Object.values(y).forEach((h) => {
1016
+ p[w] || (p[w] = []), p[w].push(h);
1017
+ }), Object.values(p).forEach((h) => {
1012
1018
  let j = null, w = 1 / 0;
1013
1019
  h.forEach((R) => {
1014
1020
  const M = parseFloat(R.getAttribute("y") || "0");
@@ -1016,11 +1022,11 @@ function Ft(r) {
1016
1022
  });
1017
1023
  const D = j;
1018
1024
  if (D) {
1019
- const R = parseFloat(D.getAttribute("x") || "0"), M = parseFloat(D.getAttribute("y") || "0"), V = parseFloat(D.getAttribute("width") || "0"), ue = parseFloat(D.getAttribute("height") || "0"), T = 4, q = document.createElementNS(
1025
+ const R = parseFloat(D.getAttribute("x") || "0"), M = parseFloat(D.getAttribute("y") || "0"), V = parseFloat(D.getAttribute("width") || "0"), ue = parseFloat(D.getAttribute("height") || "0"), L = 4, T = document.createElementNS(
1020
1026
  "http://www.w3.org/2000/svg",
1021
1027
  "path"
1022
- ), Xe = `M${R},${M + ue} L${R},${M + T} Q${R},${M} ${R + T},${M} L${R + V - T},${M} Q${R + V},${M} ${R + V},${M + T} L${R + V},${M + ue} Z`;
1023
- q.setAttribute("d", Xe), [
1028
+ ), Xe = `M${R},${M + ue} L${R},${M + L} Q${R},${M} ${R + L},${M} L${R + V - L},${M} Q${R + V},${M} ${R + V},${M + L} L${R + V},${M + ue} Z`;
1029
+ T.setAttribute("d", Xe), [
1024
1030
  "fill",
1025
1031
  "fill-opacity",
1026
1032
  "stroke",
@@ -1028,9 +1034,9 @@ function Ft(r) {
1028
1034
  "opacity",
1029
1035
  "class"
1030
1036
  ].forEach((me) => {
1031
- const pe = D.getAttribute(me);
1032
- pe && q.setAttribute(me, pe);
1033
- }), D.getAttribute("style") && q.setAttribute("style", D.getAttribute("style") || ""), D.parentNode?.replaceChild(q, D);
1037
+ const ye = D.getAttribute(me);
1038
+ ye && T.setAttribute(me, ye);
1039
+ }), D.getAttribute("style") && T.setAttribute("style", D.getAttribute("style") || ""), D.parentNode?.replaceChild(T, D);
1034
1040
  }
1035
1041
  });
1036
1042
  }
@@ -1043,8 +1049,8 @@ function Ft(r) {
1043
1049
  const U = s.current;
1044
1050
  if (!U) return;
1045
1051
  const A = () => {
1046
- const y = U.querySelector("svg")?.querySelectorAll("rect");
1047
- return y && y.length > 5 ? (l(), !0) : !1;
1052
+ const p = U.querySelector("svg")?.querySelectorAll("rect");
1053
+ return p && p.length > 5 ? (l(), !0) : !1;
1048
1054
  };
1049
1055
  if (A()) return;
1050
1056
  const O = new MutationObserver(() => {
@@ -1059,7 +1065,7 @@ function Ft(r) {
1059
1065
  return () => {
1060
1066
  O.disconnect(), k.forEach(clearTimeout);
1061
1067
  };
1062
- }, [v, p, l]), _e(() => {
1068
+ }, [v, y, l]), _e(() => {
1063
1069
  n(!1);
1064
1070
  const U = s.current;
1065
1071
  if (!U) return;
@@ -1078,7 +1084,7 @@ function Ft(r) {
1078
1084
  return () => {
1079
1085
  O.disconnect(), clearTimeout(k);
1080
1086
  };
1081
- }, [p, i]);
1087
+ }, [y, i]);
1082
1088
  const o = Je(
1083
1089
  I["ckds-finops-charts"],
1084
1090
  c === "sankey" && I.sankey,
@@ -1093,11 +1099,12 @@ function Ft(r) {
1093
1099
  c === "groupChart" && I.groupChart,
1094
1100
  c === "multipleLineChart" && I.multipleLineChart,
1095
1101
  c === "column2d" && r.usePerBarColors && I.column2dMultiColor,
1096
- r.wrapperClassName
1102
+ c,
1103
+ r.className
1097
1104
  );
1098
1105
  if (!S)
1099
1106
  return null;
1100
- const f = qt(r), _ = Lt(r);
1107
+ const f = Tt(r), _ = Pt(r);
1101
1108
  return /* @__PURE__ */ We(
1102
1109
  "div",
1103
1110
  {
@@ -1105,16 +1112,20 @@ function Ft(r) {
1105
1112
  "data-hovered-type": C ?? void 0,
1106
1113
  children: [
1107
1114
  /* @__PURE__ */ x("div", { className: I.fusion_chart_wrapper, ref: s, children: /* @__PURE__ */ x(
1108
- Pt,
1115
+ qt,
1109
1116
  {
1110
1117
  ...S,
1111
- events: tt({ ...r, graphData: p, onPlotHover: b }),
1118
+ events: tt({
1119
+ ...r,
1120
+ graphData: y,
1121
+ onPlotHover: b
1122
+ }),
1112
1123
  onRender: et(r)
1113
1124
  },
1114
1125
  i
1115
1126
  ) }),
1116
1127
  f && a && /* @__PURE__ */ x(
1117
- Tt,
1128
+ Lt,
1118
1129
  {
1119
1130
  items: f,
1120
1131
  colors: _,