@arcgis/charts-components 5.2.0-next.3 → 5.2.0-next.5

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.
@@ -3,15 +3,15 @@ import { substitute as P } from "@arcgis/core/intl.js";
3
3
  import { cloneDeep as ae, isEmpty as Ie, memoize as Le } from "lodash-es";
4
4
  import { S as J } from "./common.js";
5
5
  import { s as N, u as E, g as re, a as Fe, b as qe, c as Ve, d as ce } from "./utils.js";
6
- import { w as R, bW as Ne, bl as Re, x as ke, Y as W, cq as Oe, cp as De, p as we, aH as le, c0 as Pe, d as Ee, aG as Me, I as $e, a7 as Ye, bj as We, W as Xe, e as He, bm as je, cY as Ke, v as Ue, d2 as de, bK as Qe, d3 as ze, bG as Ge, B as _e, d0 as Ze, an as X, a6 as he, cR as ne, b9 as Je, k as ee, bo as et, bs as ye, ba as j, bg as me } from "./index2.js";
6
+ import { w as R, bW as Ne, bl as Re, x as ke, Y as X, cq as Oe, cp as De, p as we, aH as le, c0 as Pe, d as Ee, aG as Me, I as $e, a7 as Ye, bj as We, W as Xe, e as He, bm as je, cY as Ke, v as Ue, d2 as de, bK as Qe, d3 as ze, bG as Ge, B as _e, d0 as Ze, an as H, a6 as he, cR as ne, b9 as Je, k as ee, bo as et, bs as ye, ba as K, bg as me } from "./index2.js";
7
7
  import { a as M, s as Te, g as Q, b as ge, c as tt } from "./data.js";
8
- import { g as xe } from "./series-types.js";
9
- import { u as v, r as q, k as st, n as V, m as K, p as it, t as at, s as te } from "./chart-object-literals.js";
10
- import { C as D, d as w, F as U } from "./index3.js";
8
+ import { C as D, F as $, d as w } from "./index3.js";
9
+ import { u as v, r as q, k as st, n as V, m as U, p as it, t as at, s as te } from "./chart-object-literals.js";
11
10
  import { convertChartSpec as rt } from "../utils/chart-config/converter/index.js";
12
- import { h as Be, i as O, j as lt, n as nt, g as b, m as A, e as pe } from "./index5.js";
13
- import { c as se, e as ot } from "./type-guards.js";
14
- import { az as ut, t as ct, Y as dt, a9 as yt, al as mt, x as gt, C as fe, H as Se, $ as pt } from "./index.js";
11
+ import { az as lt, t as nt, Y as ot, a9 as ut, al as ct, x as dt, C as pe, H as fe, $ as yt } from "./index.js";
12
+ import { c as se, e as mt } from "./type-guards.js";
13
+ import { h as xe, i as O, j as gt, n as pt, g as b, m as A, e as Se } from "./index5.js";
14
+ import { g as Be } from "./series-types.js";
15
15
  import { g as oe } from "./utils2.js";
16
16
  import { a as ft, b as St } from "./series-length.js";
17
17
  import { i as Ft, R as ht } from "./rest-js-object-literals.js";
@@ -76,12 +76,12 @@ function Ct(t) {
76
76
  return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
77
77
  }
78
78
  function ys(t, e) {
79
- return e != null || Be(t);
79
+ return e != null || xe(t);
80
80
  }
81
81
  async function ms(t) {
82
82
  const { config: e, layer: s, abortSignal: r } = t;
83
83
  let a = !1;
84
- return se(s) || ot(e) ? e && se(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
84
+ return se(s) || mt(e) ? e && se(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
85
85
  }
86
86
  async function bt(t) {
87
87
  const {
@@ -103,13 +103,13 @@ async function bt(t) {
103
103
  runtimeDataFilters: n,
104
104
  ignoreViewExtent: o
105
105
  });
106
- if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ut.outStatistics.outStatisticFieldName), R(y) && je({
106
+ if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = lt.outStatistics.outStatisticFieldName), R(y) && je({
107
107
  xAxisValueFormatType: Ke(d),
108
108
  setTimeBinningInfoWhenNotProvided: c,
109
109
  seriesConfig: y,
110
110
  queryObject: e
111
111
  }) && Ue(r, e)) {
112
- const { temporalBinning: p, x: B } = y, { uniqueQuery: C } = de({
112
+ const { temporalBinning: p, x } = y, { uniqueQuery: C } = de({
113
113
  chartConfig: d,
114
114
  queryConfig: u,
115
115
  queryObject: e,
@@ -119,7 +119,7 @@ async function bt(t) {
119
119
  }), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
120
  g = await Qe({
121
121
  queryObject: e,
122
- dateField: B,
122
+ dateField: x,
123
123
  splitByField: r,
124
124
  queryConfig: C,
125
125
  axisTimeZone: h,
@@ -143,7 +143,7 @@ async function bt(t) {
143
143
  setTimeBinningInfoWhenNotProvided: c,
144
144
  returnFeaturesExtent: m,
145
145
  chartLimits: F
146
- }), { elementCount: B } = await ze({
146
+ }), { elementCount: x } = await ze({
147
147
  chartConfig: d,
148
148
  queryObject: e,
149
149
  queryConfig: u,
@@ -154,7 +154,7 @@ async function bt(t) {
154
154
  g = await Ge({
155
155
  queryObject: e,
156
156
  queryConfig: p,
157
- featureCount: B,
157
+ featureCount: x,
158
158
  errorStrings: a,
159
159
  abortSignal: i
160
160
  }), l = Array.from(
@@ -178,7 +178,7 @@ function At(t, e) {
178
178
  escape: !1
179
179
  });
180
180
  e && a !== null && (a = Number(a));
181
- const i = xe([r]);
181
+ const i = Be([r]);
182
182
  i !== void 0 && s.set(i, [
183
183
  ...s.get(i) ?? [],
184
184
  a
@@ -203,7 +203,7 @@ function It(t) {
203
203
  })
204
204
  );
205
205
  if (i.query) {
206
- if (i.id = `${s}-${e.series.length}-${Date.now()}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
206
+ if (i.id = s === null ? $.nullValue : `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
207
207
  const o = i.id;
208
208
  i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
209
209
  }
@@ -229,9 +229,9 @@ async function Lt(t) {
229
229
  if (r && !se(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || l !== void 0) && e.addMissingSeries) {
230
230
  const d = s.series.length === 0;
231
231
  s.series.length === 0 && l !== void 0 && s.series.push(l);
232
- const y = W(s.series);
232
+ const y = X(s.series);
233
233
  if (y === D.BoxPlotMonoFieldAndSplitBy || y === D.BoxPlotMultiFieldsAndSplitBy || y === D.BoxPlotMonoFieldAndCategoryAndSplitBy || y === D.BarAndLineSplitBy || y === D.BarAndLineSplitByNoAggregation) {
234
- const u = Me(s.series[0]?.query?.where), p = $e(r), B = Ye(u, p), C = B ? We(B) : !1, h = await bt({
234
+ const u = Me(s.series[0]?.query?.where), p = $e(r), x = Ye(u, p), C = x ? We(x) : !1, h = await bt({
235
235
  queryObject: r,
236
236
  chartConfig: s,
237
237
  splitByField: u,
@@ -267,7 +267,7 @@ async function Lt(t) {
267
267
  return g;
268
268
  }
269
269
  function qt(t, e) {
270
- e && !Be(e) && (e = Ee({ chartConfig: e, queryObject: t }));
270
+ e && !xe(e) && (e = Ee({ chartConfig: e, queryObject: t }));
271
271
  }
272
272
  async function gs(t) {
273
273
  const {
@@ -311,7 +311,7 @@ function ps(t) {
311
311
  const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
312
312
  let n = !1;
313
313
  if (!r && a > 1 && e) {
314
- const o = ke(e), c = xe(s?.series), m = W(s?.series), F = /* @__PURE__ */ new Set();
314
+ const o = ke(e), c = Be(s?.series), m = X(s?.series), F = /* @__PURE__ */ new Set();
315
315
  switch (c) {
316
316
  case v.ComboLineAndBarSeries:
317
317
  case v.BarSeries:
@@ -408,10 +408,10 @@ const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
408
408
  statisticType: q.Count
409
409
  }
410
410
  ]
411
- }, n && s.title && (s.title.content.text = H(s, r, a));
411
+ }, n && s.title && (s.title.content.text = j(s, r, a));
412
412
  }, Ds = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? q.Count, ws = (t) => {
413
413
  const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = _(s, r, a);
414
- i && e !== q.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === q.Count || e === q.Sum) && kt(K.Zero, s), n && s.title && (s.title.content.text = H(s, r, a));
414
+ i && e !== q.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === q.Count || e === q.Sum) && kt(U.Zero, s), n && s.title && (s.title.content.text = j(s, r, a));
415
415
  }, Ps = (t) => t.nullPolicy, kt = (t, e) => {
416
416
  e.nullPolicy = t;
417
417
  }, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
@@ -430,11 +430,11 @@ function Us(t, e) {
430
430
  Ze(e) || (e.viewType = t);
431
431
  }
432
432
  function Qs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? U.classBreaks.breaksCount;
433
+ return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
434
434
  }
435
435
  function zs(t, e) {
436
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? U.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
- breaksCount: t ?? U.classBreaks.breaksCount
436
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? $.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
+ breaksCount: t ?? $.classBreaks.breaksCount
438
438
  };
439
439
  }
440
440
  function Gs(t) {
@@ -443,7 +443,7 @@ function Gs(t) {
443
443
  function _s(t, e) {
444
444
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
445
445
  classificationMethod: t
446
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? U.classBreaks.breaksCount;
446
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
447
447
  }
448
448
  function Zs(t, e) {
449
449
  e.firstDayOfWeek = t;
@@ -478,25 +478,25 @@ function ii(t, e) {
478
478
  }
479
479
  };
480
480
  }
481
- function $(t) {
482
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = X(i?.layer).idField;
481
+ function Y(t) {
482
+ const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = H(i?.layer).idField;
483
483
  let c;
484
484
  const m = a.series[e ?? 0];
485
485
  let F = !1, l = !1, g = !1;
486
486
  if (m === void 0) {
487
487
  const u = a.series;
488
- F = u.slice(0, e).every((p) => b(p)), l = u.slice(0, e).every((p) => A(p)), g = u.slice(0, e).every((p) => pe(p));
488
+ F = u.slice(0, e).every((p) => b(p)), l = u.slice(0, e).every((p) => A(p)), g = u.slice(0, e).every((p) => Se(p));
489
489
  } else
490
- F = b(m), l = A(m), g = pe(m);
491
- F ? c = dt({
490
+ F = b(m), l = A(m), g = Se(m);
491
+ F ? c = ot({
492
492
  commonStrings: n,
493
493
  seriesIndex: e,
494
494
  objectIDField: o
495
- }) : l ? c = yt({
495
+ }) : l ? c = ut({
496
496
  commonStrings: n,
497
497
  seriesIndex: e,
498
498
  objectIDField: o
499
- }) : g ? c = mt(n, o) : c = gt({
499
+ }) : g ? c = ct(n, o) : c = dt({
500
500
  seriesIndex: e,
501
501
  objectIDField: o,
502
502
  commonStrings: n
@@ -526,7 +526,7 @@ function $(t) {
526
526
  }
527
527
  if (R(a.series[0]) && R(y)) {
528
528
  let u;
529
- if (a?.series?.[0] !== void 0 && (u = W(a.series)), u !== D.BarAndLineNoAggregation && u !== D.BarAndLineSplitByNoAggregation) {
529
+ if (a?.series?.[0] !== void 0 && (u = X(a.series)), u !== D.BarAndLineNoAggregation && u !== D.BarAndLineSplitByNoAggregation) {
530
530
  let p = Tt(a);
531
531
  p === te.Quarter && (p = te.Month), y.temporalBinning = {
532
532
  ...a.series[0]?.temporalBinning,
@@ -536,8 +536,8 @@ function $(t) {
536
536
  }
537
537
  return ae(y);
538
538
  }
539
- function H(t, e, s) {
540
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), n = M(t), o = G(t), c = be(t), m = ue(t), F = i && (o.length === 0 || o.includes(a)), l = ct(c, s), g = F ? "" : o.map((h) => w(r ?? [], h)).join(", "), d = w(r ?? [], n), y = w(r ?? [], m), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", B = d;
539
+ function j(t, e, s) {
540
+ const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = H(e.layer), n = M(t), o = G(t), c = be(t), m = ue(t), F = i && (o.length === 0 || o.includes(a)), l = nt(c, s), g = F ? "" : o.map((h) => w(r ?? [], h)).join(", "), d = w(r ?? [], n), y = w(r ?? [], m), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", x = d;
541
541
  let C = "";
542
542
  if (Te({
543
543
  fieldName: n,
@@ -554,13 +554,13 @@ function H(t, e, s) {
554
554
  const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
555
555
  C = P(s.titleLabels[f], {
556
556
  aggregationType: h,
557
- [p]: B
557
+ [p]: x
558
558
  });
559
559
  } else {
560
560
  const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
561
561
  C = P(s.titleLabels[f], {
562
562
  aggregationType: h,
563
- [p]: B,
563
+ [p]: x,
564
564
  splitByField: y
565
565
  });
566
566
  }
@@ -569,13 +569,13 @@ function H(t, e, s) {
569
569
  const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
570
570
  C = P(s.titleLabels[h], {
571
571
  aggregationType: l,
572
- [p]: B
572
+ [p]: x
573
573
  });
574
574
  } else {
575
575
  const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
576
576
  C = P(s.titleLabels[h], {
577
577
  aggregationType: l,
578
- [p]: B,
578
+ [p]: x,
579
579
  splitByField: y
580
580
  });
581
581
  }
@@ -584,7 +584,7 @@ function H(t, e, s) {
584
584
  C = P(s.titleLabels[h], {
585
585
  aggregationType: l,
586
586
  aggregationField: g,
587
- [p]: B,
587
+ [p]: x,
588
588
  splitByField: y
589
589
  });
590
590
  } else if (o.length > 0) {
@@ -592,7 +592,7 @@ function H(t, e, s) {
592
592
  C = P(s.titleLabels[h], {
593
593
  aggregationType: l,
594
594
  aggregationFields: g,
595
- [p]: B
595
+ [p]: x
596
596
  });
597
597
  }
598
598
  return C;
@@ -647,7 +647,7 @@ const ie = (t) => {
647
647
  function Dt(t) {
648
648
  const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
649
649
  let c = !1;
650
- const m = $({
650
+ const m = Y({
651
651
  config: a,
652
652
  xAxisField: e,
653
653
  aggregationType: r,
@@ -676,20 +676,20 @@ function Dt(t) {
676
676
  });
677
677
  l.query = { outStatistics: g };
678
678
  const d = a.series[0];
679
- return d !== void 0 && (l.id = d.id, (b(l) && b(d) || A(l) && A(d)) && Y(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && Y(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
679
+ return d !== void 0 && (l.id = d.id, (b(l) && b(d) || A(l) && A(d)) && W(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && W(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
680
680
  }
681
681
  function Ae(t) {
682
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = X(i.layer).idField, m = [];
682
+ const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = H(i.layer).idField, m = [];
683
683
  let F = !1;
684
684
  for (let u = 0; u < s.length; u += 1) {
685
- const p = $({
685
+ const p = Y({
686
686
  config: a,
687
687
  xAxisField: e,
688
688
  aggregationType: r,
689
689
  layerInfo: i,
690
690
  seriesIndex: u,
691
691
  commonStrings: n
692
- }), B = a.series[u]?.y, C = typeof B == "string" ? B : Q({
692
+ }), x = a.series[u]?.y, C = typeof x == "string" && x.trim() !== "" ? x : Q({
693
693
  config: a,
694
694
  xAxisField: e,
695
695
  numericFields: s,
@@ -722,8 +722,8 @@ function Ae(t) {
722
722
  (S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
723
723
  );
724
724
  if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
725
- (b(f) && b(T) || A(f) && A(T)) && Y(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
726
- const S = $({
725
+ (b(f) && b(T) || A(f) && A(T)) && W(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
726
+ const S = Y({
727
727
  config: a,
728
728
  xAxisField: e,
729
729
  aggregationType: r,
@@ -740,7 +740,7 @@ function Ae(t) {
740
740
  ), d = a.series.filter((u) => O(u)), y = a.series.filter(
741
741
  (u) => b(u) || A(u)
742
742
  );
743
- return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), F = !0), y.length === 1 && g.length === 1 && ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && Y(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), F = !0)), a.colorMatch = !F, m;
743
+ return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), F = !0), y.length === 1 && g.length === 1 && ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && W(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), F = !0)), a.colorMatch = !F, m;
744
744
  }
745
745
  function ai(t) {
746
746
  const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c = G(s), m = _(s, r, a), F = ve(s, r, a);
@@ -766,7 +766,7 @@ function ai(t) {
766
766
  }
767
767
  ]
768
768
  }) : (delete l.query?.outStatistics, l.y = c[g]);
769
- }), m && s.title && (s.title.content.text = H(s, r, a)), F && s.series[0].type !== v.HeatSeries) {
769
+ }), m && s.title && (s.title.content.text = j(s, r, a)), F && s.series[0].type !== v.HeatSeries) {
770
770
  const l = re({
771
771
  config: s,
772
772
  layerInfo: r,
@@ -787,7 +787,7 @@ function wt(t) {
787
787
  layerInfo: n,
788
788
  commonStrings: o,
789
789
  splitByFieldInfos: c
790
- } = t, { layer: m, layerFieldsInfo: F } = n, { categoriesArray: l, splitByFieldType: g } = c, d = r.length === 0 ? X(m).idField : r[0];
790
+ } = t, { layer: m, layerFieldsInfo: F } = n, { categoriesArray: l, splitByFieldType: g } = c, d = r.length === 0 ? H(m).idField : r[0];
791
791
  let y = [], u = !1;
792
792
  if (l.length === 0) {
793
793
  y = Ae({
@@ -802,7 +802,7 @@ function wt(t) {
802
802
  p.query && (p.query.where = `${e}=''`);
803
803
  } else
804
804
  for (let p = 0; p < l.length; p += 1) {
805
- const B = l[p], C = Q({
805
+ const x = l[p], C = Q({
806
806
  config: i,
807
807
  xAxisField: s,
808
808
  numericFields: r,
@@ -811,7 +811,7 @@ function wt(t) {
811
811
  seriesIndex: p,
812
812
  splitByField: e,
813
813
  fieldList: F
814
- }).name, h = $({
814
+ }).name, h = Y({
815
815
  config: i,
816
816
  xAxisField: s,
817
817
  aggregationType: a,
@@ -821,15 +821,15 @@ function wt(t) {
821
821
  }), f = he({
822
822
  queryObject: n.layer,
823
823
  fieldName: e,
824
- fieldValue: B ?? ""
825
- }), k = `${B}`, S = {
824
+ fieldValue: x ?? ""
825
+ }), k = `${x}`, S = {
826
826
  ...h,
827
827
  id: k,
828
828
  name: f ?? k,
829
829
  y: C,
830
830
  query: {
831
831
  ...h.query,
832
- where: `${e}=${g === ht.String && B !== null ? `'${B}'` : B}`,
832
+ where: `${e}=${g === ht.String && x !== null ? `'${x}'` : x}`,
833
833
  outStatistics: a !== q.NoAggregation ? [
834
834
  {
835
835
  ...h.query?.outStatistics?.[0] ?? {},
@@ -844,7 +844,7 @@ function wt(t) {
844
844
  const I = i.series.find(
845
845
  (L) => String(Ce(L)).trim().replace(/'/gu, "") === k
846
846
  );
847
- I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && Y(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((L) => L.query?.fetchNullValues)), y.push(S);
847
+ I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((L) => L.query?.fetchNullValues)), y.push(S);
848
848
  }
849
849
  return i.colorMatch = !u, y;
850
850
  }
@@ -858,15 +858,15 @@ const ri = (t) => {
858
858
  layerInfo: n,
859
859
  commonStrings: o,
860
860
  splitByFieldInfos: c
861
- } = t, { layerFieldsInfo: m } = n ?? {}, F = ft(i), l = M(i), g = m.find((x) => x.name === l), d = i.series[0].query?.fetchNullValues, y = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = m.find((x) => x.name === e), B = _(i, n, o), C = ve(i, n, o), h = Pt(i, n);
861
+ } = t, { layerFieldsInfo: m } = n ?? {}, F = ft(i), l = M(i), g = m.find((B) => B.name === l), d = i.series[0].query?.fetchNullValues, y = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = m.find((B) => B.name === e), x = _(i, n, o), C = ve(i, n, o), h = Pt(i, n);
862
862
  let f = Fe(i);
863
- const k = i.series.some((x) => O(x)), T = lt(i.series), S = nt(i.series), I = ne(i), L = {};
863
+ const k = i.series.some((B) => O(B)), T = gt(i.series), S = pt(i.series), I = ne(i), L = {};
864
864
  I && (L.classBreaksRules = i.series[0]?.classBreaksRules, L.xTemporalBinning = i.series[0]?.xTemporalBinning, L.yTemporalBinning = i.series[0]?.yTemporalBinning, L.emptyCells = i.series[0]?.emptyCells, L.nullPolicy = i.nullPolicy);
865
865
  let Z = !1;
866
- if (et(p) ? f = fe() : !ye(g) && ye(p) ? f = Se() : !j(g) && j(p) ? (f = Se(), Z = !0) : j(g) && !j(p) && (k ? f = fe() : f = pt(), Z = !0), f !== void 0 && Ve(i, o, f), F === 0 && (i.series = [
867
- $({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
868
- ]), i.series.forEach((x) => {
869
- x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
866
+ if (et(p) ? f = pe() : !ye(g) && ye(p) ? f = fe() : !K(g) && K(p) ? (f = fe(), Z = !0) : K(g) && !K(p) && (k ? f = pe() : f = yt(), Z = !0), f !== void 0 && Ve(i, o, f), F === 0 && (i.series = [
867
+ Y({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
868
+ ]), i.series.forEach((B) => {
869
+ B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
870
870
  }), s === "" || r.length > 1 ? Te({
871
871
  fieldName: e,
872
872
  numericFields: r,
@@ -895,31 +895,31 @@ const ri = (t) => {
895
895
  commonStrings: o,
896
896
  splitByFieldInfos: c
897
897
  })), h && i.series[0].type !== v.HeatSeries) {
898
- const x = w(m, e);
899
- E(i, 0, x);
898
+ const B = w(m, e);
899
+ E(i, 0, B);
900
900
  }
901
901
  if (C && i.series[0].type !== v.HeatSeries) {
902
- const x = re({
902
+ const B = re({
903
903
  config: i,
904
904
  layerInfo: n,
905
905
  commonStrings: o,
906
906
  numericFields: r,
907
907
  aggregationType: a
908
908
  });
909
- E(i, 1, x);
909
+ E(i, 1, B);
910
910
  }
911
- if (B && i.title && (i.title.content.text = H(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z)) {
912
- const x = f?.type === v.DateAxisFormat ? K.Null : K.Interpolate;
913
- Bt(x, i);
911
+ if (x && i.title && (i.title.content.text = j(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z)) {
912
+ const B = f?.type === v.DateAxisFormat ? U.Null : U.Interpolate;
913
+ Bt(B, i);
914
914
  }
915
- I && (i.series[0].classBreaksRules = L.classBreaksRules, i.series[0].xTemporalBinning = L.xTemporalBinning, i.series[0].yTemporalBinning = L.yTemporalBinning, i.series[0].emptyCells = L.emptyCells, i.nullPolicy = L.nullPolicy), u ? i.series.forEach((x) => {
916
- delete x.query;
917
- }) : d && i.series.forEach((x) => {
918
- x.query && (x.query.fetchNullValues = d);
919
- }), y && i.series.forEach((x) => {
920
- (x.type === v.BarSeries || x.type === v.LineSeries || x.type === v.RadarSeries) && (x.nullCategory = y);
915
+ I && (i.series[0].classBreaksRules = L.classBreaksRules, i.series[0].xTemporalBinning = L.xTemporalBinning, i.series[0].yTemporalBinning = L.yTemporalBinning, i.series[0].emptyCells = L.emptyCells, i.nullPolicy = L.nullPolicy), u ? i.series.forEach((B) => {
916
+ delete B.query;
917
+ }) : d && i.series.forEach((B) => {
918
+ B.query && (B.query.fetchNullValues = d);
919
+ }), y && i.series.forEach((B) => {
920
+ (B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = y);
921
921
  });
922
- }, Y = (t, e) => {
922
+ }, W = (t, e) => {
923
923
  t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
924
924
  ...e.markerSymbol,
925
925
  color: t.markerSymbol?.color
@@ -927,11 +927,11 @@ const ri = (t) => {
927
927
  }, li = (t) => {
928
928
  const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ue(e);
929
929
  let o;
930
- if (W(e.series) === D.BarAndLineFromFields)
930
+ if (X(e.series) === D.BarAndLineFromFields)
931
931
  o = a.axisLabels.values;
932
932
  else if (Ie(n)) {
933
933
  const m = i.query?.outStatistics?.[0]?.onStatisticField;
934
- m !== void 0 && m !== X(r.layer).idField && (o = w(r.layerFieldsInfo, m));
934
+ m !== void 0 && m !== H(r.layer).idField && (o = w(r.layerFieldsInfo, m));
935
935
  } else {
936
936
  const m = String(Ce(i)).trim().replace(/'/gu, "");
937
937
  o = he({
@@ -953,7 +953,7 @@ const ri = (t) => {
953
953
  });
954
954
  }
955
955
  }, oi = async (t) => {
956
- const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = G(e), o = W(e.series);
956
+ const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = G(e), o = X(e.series);
957
957
  let c = [];
958
958
  return i === v.CategoryAxisFormat && (o === D.BarAndLineFromFields || a === ee ? c = n.map((m) => w(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await qe({
959
959
  layerInfo: s,
@@ -963,7 +963,7 @@ const ri = (t) => {
963
963
  }))), c;
964
964
  };
965
965
  function _(t, e, s) {
966
- const r = H(t, e, s), a = St(t), i = z(t);
966
+ const r = j(t, e, s), a = St(t), i = z(t);
967
967
  return r === a || i;
968
968
  }
969
969
  function ve(t, e, s) {
@@ -990,7 +990,7 @@ function ci(t, e) {
990
990
  size: 0,
991
991
  timeAggregationType: at.Start,
992
992
  trimIncompleteTimeInterval: !0,
993
- nullPolicy: K.Null
993
+ nullPolicy: U.Null
994
994
  } : delete s.temporalBinning);
995
995
  });
996
996
  }
@@ -1000,7 +1000,7 @@ export {
1000
1000
  ri as B,
1001
1001
  ui as C,
1002
1002
  ci as D,
1003
- H as E,
1003
+ j as E,
1004
1004
  Nt as F,
1005
1005
  Bs as G,
1006
1006
  Ks as H,
@@ -223,6 +223,8 @@ export abstract class ArcgisChart extends LitElement {
223
223
  };
224
224
  notifications: {
225
225
  invalidConfig: string;
226
+ invalidConfigForRaster: string;
227
+ invalidConfigTitle: string;
226
228
  invalidSeriesConfig: string;
227
229
  invalidSeriesConfigTitle: string;
228
230
  validateAggregationTypeMsg: string;
@@ -488,6 +490,8 @@ export abstract class ArcgisChart extends LitElement {
488
490
  };
489
491
  notifications: {
490
492
  invalidConfig: string;
493
+ invalidConfigForRaster: string;
494
+ invalidConfigTitle: string;
491
495
  invalidSeriesConfig: string;
492
496
  invalidSeriesConfigTitle: string;
493
497
  validateAggregationTypeMsg: string;
@@ -1018,6 +1022,8 @@ export abstract class ArcgisChart extends LitElement {
1018
1022
  } | undefined;
1019
1023
  notifications?: {
1020
1024
  invalidConfig?: string | undefined;
1025
+ invalidConfigForRaster?: string | undefined;
1026
+ invalidConfigTitle?: string | undefined;
1021
1027
  invalidSeriesConfig?: string | undefined;
1022
1028
  invalidSeriesConfigTitle?: string | undefined;
1023
1029
  validateAggregationTypeMsg?: string | undefined;