@arcgis/charts-components 5.2.0-next.154 → 5.2.0-next.155
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/cdn/{EOH2W3LP.js → 25EQGAJY.js} +1 -1
- package/dist/cdn/{DIT5QYRZ.js → 2LV6GDYK.js} +1 -1
- package/dist/cdn/{QPE4226Z.js → 2USDPS2L.js} +1 -1
- package/dist/cdn/{BOPSKTO3.js → 3GGD7KLV.js} +1 -1
- package/dist/cdn/{NR6WJN42.js → 4T5L3BLL.js} +1 -1
- package/dist/cdn/{JOZZX5IK.js → 54WTBBPU.js} +1 -1
- package/dist/cdn/{O5YSHLEC.js → 5HKCWI3P.js} +1 -1
- package/dist/cdn/{KMYMJ4TB.js → 62FK6ANF.js} +1 -1
- package/dist/cdn/{M5WNLFQ6.js → 6IEIR3IJ.js} +1 -1
- package/dist/cdn/{XUN6JTT4.js → 6QEBTDLJ.js} +1 -1
- package/dist/cdn/{QJTMDECJ.js → 6UOV5TES.js} +1 -1
- package/dist/cdn/{GEWPZ2SD.js → 6WBGIBLN.js} +1 -1
- package/dist/cdn/{VUMWERXB.js → 75J7S444.js} +1 -1
- package/dist/cdn/{VSC4SDJS.js → 7NDAZIXV.js} +1 -1
- package/dist/cdn/{S7MBWOPD.js → 7ULLR4CN.js} +1 -1
- package/dist/cdn/{HF5XFFU2.js → A5UWEHLX.js} +1 -1
- package/dist/cdn/{YNLUQX4T.js → AWZYMQFF.js} +1 -1
- package/dist/cdn/{5IGMXNM2.js → B7NGZOWD.js} +1 -1
- package/dist/cdn/{YKD6IBPT.js → C5HTXSZS.js} +1 -1
- package/dist/cdn/D4E2DTYE.js +2 -0
- package/dist/cdn/DDNBFHKN.js +2 -0
- package/dist/cdn/DGXBF4BH.js +4 -0
- package/dist/cdn/{WN23K74S.js → DLX6ZNYG.js} +1 -1
- package/dist/cdn/{O6OHBRAO.js → DNS4RWBT.js} +1 -1
- package/dist/cdn/{F27FJBNB.js → DQLO4ITR.js} +1 -1
- package/dist/cdn/{GANKBRNZ.js → EBMUNX44.js} +1 -1
- package/dist/cdn/{BIXI63YR.js → ECFOVMA2.js} +1 -1
- package/dist/cdn/{IVJ2VRAU.js → EI6JNZL7.js} +1 -1
- package/dist/cdn/{5XIL7NWT.js → ETSSSFIS.js} +1 -1
- package/dist/cdn/{4ZBAUXGZ.js → EX7GAUGC.js} +1 -1
- package/dist/cdn/{THF4PSZK.js → FF4LQHDS.js} +1 -1
- package/dist/cdn/{KNM4Y7PI.js → FS6K3PGA.js} +1 -1
- package/dist/cdn/{YUJPRB3D.js → G37DEPFO.js} +1 -1
- package/dist/cdn/{HQA37HHH.js → GAFCUST3.js} +1 -1
- package/dist/cdn/{23DAXBKQ.js → GCGZ4SRD.js} +1 -1
- package/dist/cdn/{Z2DQ6K54.js → GPHCD6G4.js} +1 -1
- package/dist/cdn/{D3A6JODU.js → GRQ3RAS2.js} +1 -1
- package/dist/cdn/{47EPN7FR.js → GT7N5NKM.js} +1 -1
- package/dist/cdn/{5HL7EQRK.js → HOYAL4U2.js} +1 -1
- package/dist/cdn/{4TEMFIHR.js → J3AUMK36.js} +1 -1
- package/dist/cdn/{I6KD2MMJ.js → JHUXUZ3V.js} +1 -1
- package/dist/cdn/{UBOQOV4R.js → JMC5FR6G.js} +1 -1
- package/dist/cdn/{YW52HGG5.js → JX5JAG7D.js} +1 -1
- package/dist/cdn/{IHFE6MFI.js → K4WZTS5W.js} +1 -1
- package/dist/cdn/{IVCIEJ4G.js → KND6442A.js} +1 -1
- package/dist/cdn/{X7NFMMYD.js → KTDX5Z2G.js} +1 -1
- package/dist/cdn/{6RWJ4N2Q.js → L3C4LMLQ.js} +1 -1
- package/dist/cdn/{5WX476SX.js → LGUGOYL5.js} +1 -1
- package/dist/cdn/{DYTFQZOO.js → MHIL7RCM.js} +1 -1
- package/dist/cdn/{273IJ43I.js → MMRG4Q5Q.js} +1 -1
- package/dist/cdn/{EMJJDN2H.js → MZAJOKMM.js} +1 -1
- package/dist/cdn/{VZUGRGXA.js → NAFHJZYK.js} +1 -1
- package/dist/cdn/{KKLIUCWP.js → NDECGMQR.js} +1 -1
- package/dist/cdn/{XZYQVNBK.js → NTDBPHHL.js} +1 -1
- package/dist/cdn/{YJUJ2JXY.js → O7SBBJIT.js} +1 -1
- package/dist/cdn/{MYR6PJFL.js → OIRY7UKP.js} +1 -1
- package/dist/cdn/{7UC2JQPS.js → P6XYFLVZ.js} +1 -1
- package/dist/cdn/{ERKURCJE.js → PMMT66SN.js} +1 -1
- package/dist/cdn/{PIWPQCJ7.js → PNELR4NS.js} +1 -1
- package/dist/cdn/{6OWV7F4O.js → Q44XXOXV.js} +1 -1
- package/dist/cdn/{DY2RFK5X.js → Q6DXB7DT.js} +1 -1
- package/dist/cdn/{A2TBWLEB.js → QSCUSBOE.js} +1 -1
- package/dist/cdn/{7RUDMEC3.js → QXNM2F6D.js} +1 -1
- package/dist/cdn/{INRSI4JY.js → R5VDLCQN.js} +1 -1
- package/dist/cdn/{WMOWSZUY.js → R623PW73.js} +1 -1
- package/dist/cdn/{T35Z5NW4.js → RKYMPBR5.js} +1 -1
- package/dist/cdn/{F4HRPOER.js → RW56D36T.js} +1 -1
- package/dist/cdn/{XPNVMNSO.js → SEBELUXK.js} +1 -1
- package/dist/cdn/{QBQZBIOR.js → SZHT3SPH.js} +1 -1
- package/dist/cdn/{AXJC4XS3.js → TQUFEFBE.js} +1 -1
- package/dist/cdn/{F7BDZDWJ.js → TR3X4GPJ.js} +1 -1
- package/dist/cdn/{KWK2VF72.js → TWACT53N.js} +1 -1
- package/dist/cdn/{AQDO3GMP.js → UG74S4GG.js} +1 -1
- package/dist/cdn/{6U6W5ZSW.js → VTXTISBO.js} +1 -1
- package/dist/cdn/{LX3JDSZQ.js → VWS73BFY.js} +1 -1
- package/dist/cdn/{BC262Z6H.js → WAESGWAL.js} +1 -1
- package/dist/cdn/{4VKFYSJT.js → WGKZDY7Y.js} +1 -1
- package/dist/cdn/{FJG5G3NR.js → XDTACW3D.js} +1 -1
- package/dist/cdn/{BNQWCCMX.js → Y5W5WINS.js} +1 -1
- package/dist/cdn/{KHOVZWE4.js → YFVUQYKO.js} +1 -1
- package/dist/cdn/{4YF43WY7.js → YNOSBB23.js} +1 -1
- package/dist/cdn/{A4TOCPEB.js → YWKT5FUP.js} +1 -1
- package/dist/cdn/{CQ4UAH3F.js → ZBHRRQNP.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/box-plot-data.js +100 -98
- package/dist/chunks/box-plot-model.js +11 -11
- package/dist/chunks/chart-model.js +26 -26
- package/dist/chunks/chart-ui-utils.js +11 -11
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +19 -19
- package/dist/chunks/combo-bar-line-chart-model.js +8 -8
- package/dist/chunks/data.js +16 -16
- package/dist/chunks/gauge-model.js +11 -11
- package/dist/chunks/histogram-model.js +9 -9
- package/dist/chunks/index.js +1293 -1265
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +7 -7
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/scatterplot-model.js +5 -5
- package/dist/chunks/serial-chart-data.js +220 -218
- package/dist/chunks/serial-chart-model.js +19 -19
- package/dist/chunks/x-bounds.js +21 -21
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +261 -260
- package/dist/utils/chart-config/converter/index.js +14 -14
- package/dist/utils/chart-config/utils/index.d.ts +10 -3
- package/package.json +4 -4
- package/dist/cdn/3IQQDZZD.js +0 -2
- package/dist/cdn/JY62I5FE.js +0 -2
- package/dist/cdn/WOQECVI6.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { bP as j, r as F,
|
|
3
|
-
import { g as
|
|
2
|
+
import { bP as j, r as F, eK as W } from "./index.js";
|
|
3
|
+
import { g as L, W as I, c as z, d as N } from "./series-length.js";
|
|
4
4
|
import { m as a, C as n } from "./model-setter.js";
|
|
5
5
|
import { a4 as p, a6 as c, a5 as f } from "./index2.js";
|
|
6
6
|
var R = Object.defineProperty, M = Object.getOwnPropertyDescriptor, U = (e, t, r, l) => {
|
|
@@ -10,7 +10,7 @@ var R = Object.defineProperty, M = Object.getOwnPropertyDescriptor, U = (e, t, r
|
|
|
10
10
|
};
|
|
11
11
|
const B = (e) => e.title?.content, E = (e, t) => {
|
|
12
12
|
if (e) {
|
|
13
|
-
const r =
|
|
13
|
+
const r = L(t);
|
|
14
14
|
t.title === void 0 && (t.title = p({
|
|
15
15
|
text: "",
|
|
16
16
|
visible: !0,
|
|
@@ -36,8 +36,8 @@ class h extends n {
|
|
|
36
36
|
U([
|
|
37
37
|
a
|
|
38
38
|
], h.prototype, "titleSymbol");
|
|
39
|
-
var q = Object.defineProperty,
|
|
40
|
-
for (var i =
|
|
39
|
+
var q = Object.defineProperty, K = Object.getOwnPropertyDescriptor, A = (e, t, r, l) => {
|
|
40
|
+
for (var i = K(t, r), s = e.length - 1, o; s >= 0; s--)
|
|
41
41
|
(o = e[s]) && (i = o(t, r, i) || i);
|
|
42
42
|
return i && q(t, r, i), i;
|
|
43
43
|
};
|
|
@@ -52,10 +52,10 @@ class u extends n {
|
|
|
52
52
|
this._config = t;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
A([
|
|
56
56
|
a
|
|
57
57
|
], u.prototype, "config");
|
|
58
|
-
class
|
|
58
|
+
class G extends n {
|
|
59
59
|
/**
|
|
60
60
|
* The chart model's layer.
|
|
61
61
|
*/
|
|
@@ -63,7 +63,7 @@ class H extends n {
|
|
|
63
63
|
return this.layerInfo?.layer;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const H = (e) => e.id, J = (e, t) => {
|
|
67
67
|
t.id = e;
|
|
68
68
|
};
|
|
69
69
|
class Q extends n {
|
|
@@ -71,10 +71,10 @@ class Q extends n {
|
|
|
71
71
|
* The chart ID.
|
|
72
72
|
*/
|
|
73
73
|
get chartId() {
|
|
74
|
-
return
|
|
74
|
+
return H(this._config);
|
|
75
75
|
}
|
|
76
76
|
set chartId(t) {
|
|
77
|
-
|
|
77
|
+
J(t, this._config);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
const X = (e) => e.version;
|
|
@@ -290,7 +290,7 @@ var wt = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, Ft = (e, t
|
|
|
290
290
|
(o = e[s]) && (i = o(t, r, i) || i);
|
|
291
291
|
return i && wt(t, r, i), i;
|
|
292
292
|
};
|
|
293
|
-
const Wt = (e) => e.chartRenderer,
|
|
293
|
+
const Wt = (e) => e.chartRenderer, Lt = (e, t) => {
|
|
294
294
|
t.chartRenderer = e;
|
|
295
295
|
};
|
|
296
296
|
class x extends n {
|
|
@@ -343,16 +343,16 @@ class x extends n {
|
|
|
343
343
|
return Wt(this._config);
|
|
344
344
|
}
|
|
345
345
|
set chartRenderer(t) {
|
|
346
|
-
|
|
346
|
+
Lt(t, this._config);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
Ft([
|
|
350
350
|
a
|
|
351
351
|
], x.prototype, "chartRenderer");
|
|
352
|
-
var
|
|
352
|
+
var It = Object.defineProperty, zt = Object.getOwnPropertyDescriptor, Nt = (e, t, r, l) => {
|
|
353
353
|
for (var i = zt(t, r), s = e.length - 1, o; s >= 0; s--)
|
|
354
354
|
(o = e[s]) && (i = o(t, r, i) || i);
|
|
355
|
-
return i &&
|
|
355
|
+
return i && It(t, r, i), i;
|
|
356
356
|
};
|
|
357
357
|
const Rt = (e) => e.background, Mt = (e, t) => {
|
|
358
358
|
t.background = e;
|
|
@@ -376,7 +376,7 @@ var Ut = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, Et = (e, t
|
|
|
376
376
|
(o = e[s]) && (i = o(t, r, i) || i);
|
|
377
377
|
return i && Ut(t, r, i), i;
|
|
378
378
|
};
|
|
379
|
-
const qt = (e, t) => t.series[e].visible ?? !0,
|
|
379
|
+
const qt = (e, t) => t.series[e].visible ?? !0, Kt = (e, t) => {
|
|
380
380
|
j({ detail: e }, t);
|
|
381
381
|
};
|
|
382
382
|
class C extends n {
|
|
@@ -389,14 +389,14 @@ class C extends n {
|
|
|
389
389
|
return qt(t, this._config);
|
|
390
390
|
}
|
|
391
391
|
setSeriesVisibility(t) {
|
|
392
|
-
|
|
392
|
+
Kt(t, this._config);
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
Et([
|
|
396
396
|
a
|
|
397
397
|
], C.prototype, "setSeriesVisibility");
|
|
398
|
-
const
|
|
399
|
-
class
|
|
398
|
+
const At = (e, t) => t.series[e]?.id;
|
|
399
|
+
class Gt extends n {
|
|
400
400
|
/**
|
|
401
401
|
* Gets the series ID for a given series index.
|
|
402
402
|
* If the series index is out of bounds, this function will return `undefined`.
|
|
@@ -404,11 +404,11 @@ class Ht extends n {
|
|
|
404
404
|
* @param seriesIndex - The index of the series.
|
|
405
405
|
*/
|
|
406
406
|
getSeriesId(t) {
|
|
407
|
-
return
|
|
407
|
+
return At(t, this._config);
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
const
|
|
411
|
-
class
|
|
410
|
+
const Ht = (e, t) => t.series.findIndex((r) => r.id === e);
|
|
411
|
+
class Jt extends n {
|
|
412
412
|
/**
|
|
413
413
|
* Gets the series index for a given series ID.
|
|
414
414
|
* If the series ID is not found, this function will return `undefined`.
|
|
@@ -416,7 +416,7 @@ class Kt extends n {
|
|
|
416
416
|
* @param seriesId - The ID of the series.
|
|
417
417
|
*/
|
|
418
418
|
getSeriesIndex(t) {
|
|
419
|
-
return
|
|
419
|
+
return Ht(t, this._config);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
const Qt = (e) => F(e.series);
|
|
@@ -543,9 +543,9 @@ class ve extends n {
|
|
|
543
543
|
}
|
|
544
544
|
const ge = [
|
|
545
545
|
u,
|
|
546
|
-
|
|
546
|
+
G,
|
|
547
547
|
Q,
|
|
548
|
-
|
|
548
|
+
I,
|
|
549
549
|
h,
|
|
550
550
|
Y,
|
|
551
551
|
b,
|
|
@@ -558,8 +558,8 @@ const ge = [
|
|
|
558
558
|
x,
|
|
559
559
|
T,
|
|
560
560
|
C,
|
|
561
|
-
|
|
562
|
-
|
|
561
|
+
Gt,
|
|
562
|
+
Jt,
|
|
563
563
|
z,
|
|
564
564
|
Xt,
|
|
565
565
|
$,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { F as o, W as f } from "./interfaces.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cN as b, J as N, ck as d, c5 as g } from "./index.js";
|
|
4
4
|
import { R as u } from "./rest-js-object-literals.js";
|
|
5
5
|
import { d as r, l as c } from "./chart-object-literals.js";
|
|
6
6
|
import { F as n } from "./common.js";
|
|
@@ -77,20 +77,20 @@ const A = {
|
|
|
77
77
|
function E(e, t) {
|
|
78
78
|
let a = "";
|
|
79
79
|
if (e !== void 0 && !Number.isNaN(e)) {
|
|
80
|
-
const i =
|
|
80
|
+
const i = N(document.documentElement);
|
|
81
81
|
a = Intl.NumberFormat(i, t).format(e);
|
|
82
82
|
}
|
|
83
83
|
return a;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function O(e, t) {
|
|
86
86
|
let a = !1;
|
|
87
87
|
if (t !== void 0) {
|
|
88
88
|
const i = typeof t == "string" ? t.trim() : t, s = e.trim();
|
|
89
|
-
typeof t == "string" ? a = i === s || i ===
|
|
89
|
+
typeof t == "string" ? a = i === s || i === g && s === "" : a = i.includes(s);
|
|
90
90
|
}
|
|
91
91
|
return a;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function V(e) {
|
|
94
94
|
let t;
|
|
95
95
|
switch (e) {
|
|
96
96
|
case "trailing":
|
|
@@ -105,10 +105,10 @@ function O(e) {
|
|
|
105
105
|
}
|
|
106
106
|
return t;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function B(e) {
|
|
109
109
|
return e === void 0 || Number.isNaN(e.r) || Number.isNaN(e.g) || Number.isNaN(e.b) ? null : e;
|
|
110
110
|
}
|
|
111
|
-
const
|
|
111
|
+
const M = (e) => {
|
|
112
112
|
["e", "E"].includes(e.key) && e.preventDefault();
|
|
113
113
|
}, U = (e) => {
|
|
114
114
|
if (e.pickListElement !== void 0) {
|
|
@@ -154,17 +154,17 @@ export {
|
|
|
154
154
|
D as b,
|
|
155
155
|
F as c,
|
|
156
156
|
P as d,
|
|
157
|
-
|
|
157
|
+
O as e,
|
|
158
158
|
U as f,
|
|
159
|
-
|
|
159
|
+
B as g,
|
|
160
160
|
v as h,
|
|
161
161
|
I as i,
|
|
162
162
|
W as j,
|
|
163
|
-
|
|
163
|
+
M as k,
|
|
164
164
|
H as l,
|
|
165
165
|
x as m,
|
|
166
166
|
E as n,
|
|
167
|
-
|
|
167
|
+
V as o,
|
|
168
168
|
S as p,
|
|
169
169
|
C as s
|
|
170
170
|
};
|
|
@@ -4,7 +4,7 @@ import { g as h } from "./runtime.js";
|
|
|
4
4
|
import { fetchT9nStringsBundle as n } from "@arcgis/toolkit/intl";
|
|
5
5
|
import { getElementLocale as m } from "@arcgis/toolkit/intl/dom";
|
|
6
6
|
import { a as e } from "./chart-object-literals.js";
|
|
7
|
-
import {
|
|
7
|
+
import { cN as p } from "./index.js";
|
|
8
8
|
function k(s) {
|
|
9
9
|
const c = o(s.series);
|
|
10
10
|
let r = "graph-bar";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import G from "@arcgis/core/Color.js";
|
|
3
3
|
import { createClassBreaksRenderer as J } from "@arcgis/core/smartMapping/renderers/color.js";
|
|
4
|
-
import {
|
|
5
|
-
import { cloneDeep as Q, memoize as U, isEqual as
|
|
4
|
+
import { cO as Y, cP as L } from "./index.js";
|
|
5
|
+
import { cloneDeep as Q, memoize as U, isEqual as N, sortBy as X, flatMap as Z } from "es-toolkit/compat";
|
|
6
6
|
import { getSchemes as ee } from "@arcgis/core/smartMapping/symbology/color.js";
|
|
7
7
|
import { i as V } from "./index2.js";
|
|
8
8
|
import { b as S, a as b, R as g, d as k } from "./rest-js-object-literals.js";
|
|
@@ -80,7 +80,7 @@ function se(e) {
|
|
|
80
80
|
if (l != null) {
|
|
81
81
|
let n = { value: l };
|
|
82
82
|
t.forEach((i) => {
|
|
83
|
-
const u = x(a[`${s.fillColor}_${i}`]), f = a[`${s.fillOpacity}_${i}`], d = a[`${s.fillStyle}_${i}`], m = a[`${s.markerSize}_${i}`], p = x(a[`${s.outlineColor}_${i}`]), R = a[`${s.outlineOpacity}_${i}`], C = a[`${s.outlineWidth}_${i}`], B = a[`${s.outlineStyle}_${i}`], $ = x(a[`${s.lineColor}_${i}`]),
|
|
83
|
+
const u = x(a[`${s.fillColor}_${i}`]), f = a[`${s.fillOpacity}_${i}`], d = a[`${s.fillStyle}_${i}`], m = a[`${s.markerSize}_${i}`], p = x(a[`${s.outlineColor}_${i}`]), R = a[`${s.outlineOpacity}_${i}`], C = a[`${s.outlineWidth}_${i}`], B = a[`${s.outlineStyle}_${i}`], $ = x(a[`${s.lineColor}_${i}`]), O = a[`${s.lineOpacity}_${i}`], F = a[`${s.lineWidth}_${i}`], w = a[`${s.lineStyle}_${i}`], _ = a[`${s.displayLabel}_${i}`];
|
|
84
84
|
if (typeof _ == "string" && (n = {
|
|
85
85
|
...n,
|
|
86
86
|
label: _
|
|
@@ -96,9 +96,9 @@ function se(e) {
|
|
|
96
96
|
const v = { type: S.SLS };
|
|
97
97
|
p && (R && typeof R == "number" && (p[3] = R), v.color = p), D(B) && (v.style = B), C && typeof C == "number" && (v.width = C), n.symbol.outline = v;
|
|
98
98
|
}
|
|
99
|
-
} else if ($ || F != null || D(
|
|
99
|
+
} else if ($ || F != null || D(w)) {
|
|
100
100
|
const h = { type: S.SLS };
|
|
101
|
-
$ && (
|
|
101
|
+
$ && (O && typeof O == "number" && ($[3] = O), h.color = $), D(w) && (h.style = w), F != null && typeof F == "number" && (h.width = F), n.symbol = h;
|
|
102
102
|
}
|
|
103
103
|
}), (n.label || n.symbol) && r.uniqueValueInfos.push(n);
|
|
104
104
|
}
|
|
@@ -182,7 +182,7 @@ const xe = {
|
|
|
182
182
|
convertColor: x,
|
|
183
183
|
removeConfigFieldsFromData: j
|
|
184
184
|
}, T = te.all(), le = ee({ geometryType: "point", theme: "high-to-low" });
|
|
185
|
-
function
|
|
185
|
+
function P(e, o, t) {
|
|
186
186
|
const s = Math.max(0, Math.min(1, t));
|
|
187
187
|
return [
|
|
188
188
|
Math.round(e[0] + (o[0] - e[0]) * s),
|
|
@@ -209,12 +209,12 @@ function ie(e) {
|
|
|
209
209
|
else
|
|
210
210
|
for (let n = 0; n < o; n++) {
|
|
211
211
|
const i = n / (o - 1);
|
|
212
|
-
r.push(
|
|
212
|
+
r.push(P(a, l, i));
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
return r;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function K(e) {
|
|
218
218
|
const { colorRamp: o, numberOfClassBreaks: t, isFlipped: s } = e;
|
|
219
219
|
let c = [], r = !1;
|
|
220
220
|
if (o.colorsForClassBreaks && o.colorsForClassBreaks.length > 0) {
|
|
@@ -238,7 +238,7 @@ function P(e) {
|
|
|
238
238
|
c = [];
|
|
239
239
|
break;
|
|
240
240
|
}
|
|
241
|
-
const R = u * (l.length - 1) - f, C =
|
|
241
|
+
const R = u * (l.length - 1) - f, C = P(m, p, R);
|
|
242
242
|
n.push(C);
|
|
243
243
|
}
|
|
244
244
|
c = n;
|
|
@@ -249,7 +249,7 @@ function P(e) {
|
|
|
249
249
|
function W(e) {
|
|
250
250
|
const { numberOfClassBreaks: o, selectedColorRamp: t, colorRamp: s, isFlipped: c = !1 } = e;
|
|
251
251
|
let r = ne(o, s);
|
|
252
|
-
const a = t ?
|
|
252
|
+
const a = t ? K({ colorRamp: t, numberOfClassBreaks: o, isFlipped: c }) : [];
|
|
253
253
|
return r.length !== o && (r = a), r.length !== o && (r = ie({
|
|
254
254
|
numberOfClassBreaks: o,
|
|
255
255
|
baseColors: a.length > 0 ? a : s
|
|
@@ -342,7 +342,7 @@ function me(e) {
|
|
|
342
342
|
), u = E(t, i), f = fe(o).filter((p) => !!p), d = new Set(I(f).map(r)), m = E(t, d);
|
|
343
343
|
return n * c.exactN + u * c.generated + m * c.anyOverlap;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Oe(e, o) {
|
|
346
346
|
const t = {
|
|
347
347
|
exactN: 100,
|
|
348
348
|
generated: 10,
|
|
@@ -368,7 +368,7 @@ function Ne(e, o) {
|
|
|
368
368
|
}
|
|
369
369
|
return c;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function we(e, o) {
|
|
372
372
|
let t = !0;
|
|
373
373
|
if (!e?.length || o.length < 2)
|
|
374
374
|
t = !1;
|
|
@@ -397,7 +397,7 @@ function de(e) {
|
|
|
397
397
|
return o.size === 1 ? t : void 0;
|
|
398
398
|
}
|
|
399
399
|
function pe(e, o) {
|
|
400
|
-
const t =
|
|
400
|
+
const t = K({
|
|
401
401
|
colorRamp: A.defaultColorRampForCharts,
|
|
402
402
|
numberOfClassBreaks: 1
|
|
403
403
|
})[0];
|
|
@@ -472,7 +472,7 @@ function ge(e) {
|
|
|
472
472
|
const { colorRampName: o, availableColorRamps: t } = e;
|
|
473
473
|
return be(o, t) ?? A.defaultColorRampForCharts;
|
|
474
474
|
}
|
|
475
|
-
const
|
|
475
|
+
const Ne = U(
|
|
476
476
|
async (e) => {
|
|
477
477
|
const {
|
|
478
478
|
data: o,
|
|
@@ -514,8 +514,8 @@ function Te({
|
|
|
514
514
|
let s = !0;
|
|
515
515
|
if (Array.isArray(e) && Array.isArray(o)) {
|
|
516
516
|
const c = (r) => r.map(({ symbol: a, ...l }) => l);
|
|
517
|
-
if (
|
|
518
|
-
const r = e.map((i) => i.symbol?.color), a = o.map((i) => i.symbol?.color), l =
|
|
517
|
+
if (N(c(e), c(o))) {
|
|
518
|
+
const r = e.map((i) => i.symbol?.color), a = o.map((i) => i.symbol?.color), l = N(r, a), n = N(r, [...a].reverse());
|
|
519
519
|
s = t ? !(l || n) : !l;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
@@ -529,10 +529,10 @@ export {
|
|
|
529
529
|
Me as d,
|
|
530
530
|
W as e,
|
|
531
531
|
se as f,
|
|
532
|
-
|
|
532
|
+
Ne as g,
|
|
533
533
|
re as h,
|
|
534
|
-
|
|
534
|
+
we as i,
|
|
535
535
|
ae as j,
|
|
536
536
|
xe as k,
|
|
537
|
-
|
|
537
|
+
Oe as p
|
|
538
538
|
};
|
|
@@ -3,13 +3,13 @@ import { g as m, s as p, a as b, b as L, W as u } from "./rounded-corners.js";
|
|
|
3
3
|
import { m as a } from "./model-setter.js";
|
|
4
4
|
import { g as _, a as k, e as C, b as M, f as v, s as z, h as B, c as O, i as V, d as D, j as A, k as F, n as H, o as g, p as W, q as j, r as w, W as P } from "./negative-values-stacked-to-baseline.js";
|
|
5
5
|
import { S as T, s as I } from "./serial-chart-model.js";
|
|
6
|
-
import { cB as N, u as S, cD as d, cz as q,
|
|
6
|
+
import { cB as N, u as S, cD as d, cz as q, eK as K } from "./index.js";
|
|
7
7
|
import { a as n } from "./chart-object-literals.js";
|
|
8
|
-
import { ao as
|
|
9
|
-
var
|
|
10
|
-
for (var s =
|
|
8
|
+
import { ao as R, a3 as h, a0 as y } from "./index2.js";
|
|
9
|
+
var E = Object.defineProperty, G = Object.getOwnPropertyDescriptor, l = (c, e, i, o) => {
|
|
10
|
+
for (var s = G(e, i), t = c.length - 1, f; t >= 0; t--)
|
|
11
11
|
(f = c[t]) && (s = f(e, i, s) || s);
|
|
12
|
-
return s &&
|
|
12
|
+
return s && E(e, i, s), s;
|
|
13
13
|
};
|
|
14
14
|
class r extends T {
|
|
15
15
|
constructor() {
|
|
@@ -23,7 +23,7 @@ class r extends T {
|
|
|
23
23
|
// ---------------------------------------------------------------------------------------------
|
|
24
24
|
/** @private */
|
|
25
25
|
generateDefaultConfig() {
|
|
26
|
-
const e =
|
|
26
|
+
const e = R(this.commonStrings);
|
|
27
27
|
return e.series = [
|
|
28
28
|
h({
|
|
29
29
|
commonStrings: this.commonStrings,
|
|
@@ -293,8 +293,8 @@ l([
|
|
|
293
293
|
l([
|
|
294
294
|
a
|
|
295
295
|
], r.prototype, "setSeriesHideOversizedStackedLabels");
|
|
296
|
-
const
|
|
297
|
-
|
|
296
|
+
const J = [P, u];
|
|
297
|
+
K(r, J);
|
|
298
298
|
export {
|
|
299
299
|
r as ComboBarLineChartModel
|
|
300
300
|
};
|
package/dist/chunks/data.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { capitalize as u } from "es-toolkit/compat";
|
|
3
|
-
import { b6 as
|
|
3
|
+
import { b6 as L, r as B, l as $, u as N, t as I, c_ as _, x as H, cw as x, c5 as P, A as v, cL as E, E as M } from "./index.js";
|
|
4
4
|
import { g as C } from "./series-types.js";
|
|
5
|
-
import { H as f, S as o, P as
|
|
5
|
+
import { H as f, S as o, P as U } from "./common.js";
|
|
6
6
|
import { g as l, t as n, a as d, d as g } from "./chart-object-literals.js";
|
|
7
|
-
import { l as
|
|
8
|
-
function
|
|
7
|
+
import { l as W } from "./index2.js";
|
|
8
|
+
function K(e, s) {
|
|
9
9
|
let r;
|
|
10
10
|
return s === n.Category && Array.isArray(e) ? r = o.customSort : s === n.Category ? r = e === l.Ascending ? o.xAxisAsc : o.xAxisDesc : e === l.Ascending ? r = o.yAxisAsc : r = o.yAxisDesc, r;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function J(e, s) {
|
|
13
13
|
let r;
|
|
14
14
|
return s === n.Category && Array.isArray(e) ? r = f.customSort : r = e === l.Ascending ? f.Asc : f.Desc, r;
|
|
15
15
|
}
|
|
16
16
|
const R = (e) => {
|
|
17
17
|
const s = e.orderOptions?.data && "orderBy" in e.orderOptions.data ? e.orderOptions.data.orderBy : l.Ascending;
|
|
18
|
-
return
|
|
18
|
+
return K(
|
|
19
19
|
s,
|
|
20
20
|
e.orderOptions?.data?.orderType ?? n.Category
|
|
21
21
|
);
|
|
@@ -23,12 +23,12 @@ const R = (e) => {
|
|
|
23
23
|
const s = C(e.series);
|
|
24
24
|
let r = !1;
|
|
25
25
|
return (s === d.BarSeries || s === d.LineSeries) && (r = R(e) === o.customSort), r;
|
|
26
|
-
},
|
|
26
|
+
}, Z = (e) => {
|
|
27
27
|
let s = [];
|
|
28
28
|
const r = e.orderOptions?.data?.orderType;
|
|
29
29
|
return V(e) && r === n.Category && (s = e.orderOptions?.data?.orderBy), s;
|
|
30
30
|
}, w = (e, s, r, t) => {
|
|
31
|
-
const i = C(s.series), m =
|
|
31
|
+
const i = C(s.series), m = L(s);
|
|
32
32
|
s.orderOptions ??= {};
|
|
33
33
|
let a = m ? [""] : l.Ascending;
|
|
34
34
|
if (m)
|
|
@@ -63,10 +63,10 @@ const R = (e) => {
|
|
|
63
63
|
seriesIndex: h,
|
|
64
64
|
splitByField: S = "",
|
|
65
65
|
fieldList: O
|
|
66
|
-
} = e, T = C(s.series), b =
|
|
66
|
+
} = e, T = C(s.series), b = B(s.series);
|
|
67
67
|
let A;
|
|
68
68
|
if ($(a)) {
|
|
69
|
-
const y =
|
|
69
|
+
const y = _(a);
|
|
70
70
|
A = t.length === 1 && t[0] === y;
|
|
71
71
|
} else {
|
|
72
72
|
const { idField: y, isTraditionalTypeOID: D } = N(I(a));
|
|
@@ -75,7 +75,7 @@ const R = (e) => {
|
|
|
75
75
|
let p = "y", F = "y";
|
|
76
76
|
switch (T) {
|
|
77
77
|
case d.PieSeries: {
|
|
78
|
-
i !== g.NoAggregation ? m ===
|
|
78
|
+
i !== g.NoAggregation ? m === U.Category ? (p = `${i}_${t[0]}_0`.toUpperCase(), F = A ? u(g.Count) : u(`${i} of ${t[0]}`)) : p = M : p = t[0];
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
81
81
|
case d.BarSeries:
|
|
@@ -88,7 +88,7 @@ const R = (e) => {
|
|
|
88
88
|
fieldName: r,
|
|
89
89
|
numericFields: t,
|
|
90
90
|
fieldList: O ?? []
|
|
91
|
-
}) || b ===
|
|
91
|
+
}) || b === H.BarAndLineFromFields ? p = E : (p = i !== g.NoAggregation ? `${i}_${t[c ?? 0]}_${c ?? 0}`.toUpperCase() : t[c ?? 0], F = A ? u(g.Count) : u(`${i} of ${t[c ?? 0]}`));
|
|
92
92
|
else {
|
|
93
93
|
const y = t[0];
|
|
94
94
|
p = i !== g.NoAggregation ? `${i}_${y}_${h ?? 0}`.toUpperCase() : y, F = A ? u(g.Count) : u(`${i} of ${y}`);
|
|
@@ -103,7 +103,7 @@ const R = (e) => {
|
|
|
103
103
|
};
|
|
104
104
|
function Y(e) {
|
|
105
105
|
const { fieldName: s, fieldList: r } = e, t = x(r ?? [], s);
|
|
106
|
-
return s ===
|
|
106
|
+
return s === P || s === v || s === W || s === void 0 || s.trim() === "" || t === void 0;
|
|
107
107
|
}
|
|
108
108
|
function j(e) {
|
|
109
109
|
const { fieldName: s, fieldList: r, numericFields: t } = e, i = t.filter((m) => x(r ?? [], m)?.type !== "esriFieldTypeOID");
|
|
@@ -111,10 +111,10 @@ function j(e) {
|
|
|
111
111
|
}
|
|
112
112
|
export {
|
|
113
113
|
ee as a,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
J as b,
|
|
115
|
+
K as c,
|
|
116
116
|
w as d,
|
|
117
|
-
|
|
117
|
+
Z as e,
|
|
118
118
|
R as f,
|
|
119
119
|
se as g,
|
|
120
120
|
j as s,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { a as c, G as S, d as x } from "./chart-object-literals.js";
|
|
3
3
|
import { as as d, a4 as b, aB as _, at as m, ar as I } from "./index2.js";
|
|
4
|
-
import { u as C,
|
|
4
|
+
import { u as C, eK as L } from "./index.js";
|
|
5
5
|
import { C as T } from "./chart-model.js";
|
|
6
6
|
import { m as n } from "./model-setter.js";
|
|
7
7
|
import { M as A } from "./model-with-x-guides.js";
|
|
@@ -17,13 +17,13 @@ const N = (t) => t.axes[0].needle?.visible ?? !0, R = (t, e) => {
|
|
|
17
17
|
e.axes[0].needle === void 0 && (e.axes[0].needle = d()), e.axes[0].needle.startWidth = t;
|
|
18
18
|
}, $ = (t) => t.axes[0].needle?.endWidth, j = (t, e) => {
|
|
19
19
|
e.axes[0].needle === void 0 && (e.axes[0].needle = d()), e.axes[0].needle.endWidth = t;
|
|
20
|
-
}, q = (t) => t.axes[0].needle?.innerRadius,
|
|
20
|
+
}, q = (t) => t.axes[0].needle?.innerRadius, K = (t, e) => {
|
|
21
21
|
e.axes[0].needle === void 0 && (e.axes[0].needle = d()), e.axes[0].needle.innerRadius = t;
|
|
22
|
-
},
|
|
22
|
+
}, Q = (t) => t.axes[0].needle?.displayPin ?? !1, Y = (t, e) => {
|
|
23
23
|
e.axes[0].needle === void 0 && (e.axes[0].needle = d()), e.axes[0].needle.displayPin = t;
|
|
24
|
-
},
|
|
24
|
+
}, z = (t) => t.axes[0].innerLabel?.visible ?? !0, H = (t, e) => {
|
|
25
25
|
e.axes[0].innerLabel === void 0 && (e.axes[0].innerLabel = b()), e.axes[0].innerLabel.visible = t;
|
|
26
|
-
},
|
|
26
|
+
}, J = (t) => t.axes[0].innerLabel?.content, U = (t, e) => {
|
|
27
27
|
e.axes[0].innerLabel === void 0 && (e.axes[0].innerLabel = b()), t !== void 0 && (e.axes[0].innerLabel.content = t);
|
|
28
28
|
}, Z = (t) => t.axes[0].progressBands?.visible ?? !0, ee = (t, e) => {
|
|
29
29
|
e.axes[0].progressBands === void 0 && (e.axes[0].progressBands = {
|
|
@@ -268,25 +268,25 @@ class i extends T {
|
|
|
268
268
|
return q(this._config);
|
|
269
269
|
}
|
|
270
270
|
set needleInnerRadius(e) {
|
|
271
|
-
|
|
271
|
+
K(e, this._config);
|
|
272
272
|
}
|
|
273
273
|
/**
|
|
274
274
|
* Whether to display the pin for the gauge's needle.
|
|
275
275
|
*/
|
|
276
276
|
get needleDisplayPin() {
|
|
277
|
-
return
|
|
277
|
+
return Q(this._config);
|
|
278
278
|
}
|
|
279
279
|
set needleDisplayPin(e) {
|
|
280
|
-
|
|
280
|
+
Y(e, this._config);
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* Whether the inner label is visible.
|
|
284
284
|
*/
|
|
285
285
|
get innerLabelVisible() {
|
|
286
|
-
return
|
|
286
|
+
return z(this._config);
|
|
287
287
|
}
|
|
288
288
|
set innerLabelVisible(e) {
|
|
289
|
-
|
|
289
|
+
H(e, this._config);
|
|
290
290
|
}
|
|
291
291
|
/**
|
|
292
292
|
* Content symbol for the inner label.
|
|
@@ -300,7 +300,7 @@ class i extends T {
|
|
|
300
300
|
* ```
|
|
301
301
|
*/
|
|
302
302
|
get innerLabelContent() {
|
|
303
|
-
return
|
|
303
|
+
return J(this._config);
|
|
304
304
|
}
|
|
305
305
|
set innerLabelContent(e) {
|
|
306
306
|
U(e, this._config);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { eK as m } from "./index.js";
|
|
3
3
|
import { g as h, s as y, a as g, b as f, c as p, d, e as c, f as S, h as v, i as b, j as u, k as _, l as D, m as M, n as O, o as w, p as C, q as W, r as T, t as x, u as A, v as N, w as L, x as E, y as F, z as X, A as B } from "./histogram-data.js";
|
|
4
|
-
import { C as
|
|
5
|
-
import { M as
|
|
4
|
+
import { C as P } from "./chart-model.js";
|
|
5
|
+
import { M as j, a as H, W as I, b as V } from "./data-labels-visibility.js";
|
|
6
6
|
import { W as G } from "./data-labels-symbol.js";
|
|
7
7
|
import { W as q, a as z } from "./x-bounds.js";
|
|
8
|
-
import { W as
|
|
9
|
-
import { W as
|
|
8
|
+
import { W as K, c as Y, d as k } from "./axis-lines-symbol.js";
|
|
9
|
+
import { W as J, c as Q, d as R } from "./generate-x-axis-title.js";
|
|
10
10
|
import { m as s } from "./model-setter.js";
|
|
11
11
|
import { a as U } from "./chart-object-literals.js";
|
|
12
12
|
import { av as Z } from "./index2.js";
|
|
@@ -16,7 +16,7 @@ var et = Object.defineProperty, st = Object.getOwnPropertyDescriptor, o = (i, t,
|
|
|
16
16
|
(l = i[n]) && (a = l(t, r, a) || a);
|
|
17
17
|
return a && et(t, r, a), a;
|
|
18
18
|
};
|
|
19
|
-
class e extends
|
|
19
|
+
class e extends P {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments), this._chartType = U.HistogramSeries;
|
|
22
22
|
}
|
|
@@ -217,19 +217,19 @@ o([
|
|
|
217
217
|
], e.prototype, "seriesOverlays");
|
|
218
218
|
const ot = [
|
|
219
219
|
$,
|
|
220
|
-
P,
|
|
221
220
|
j,
|
|
222
221
|
H,
|
|
222
|
+
I,
|
|
223
223
|
V,
|
|
224
224
|
G,
|
|
225
225
|
tt,
|
|
226
|
-
|
|
226
|
+
J,
|
|
227
227
|
q,
|
|
228
228
|
Q,
|
|
229
229
|
z,
|
|
230
|
+
K,
|
|
230
231
|
Y,
|
|
231
232
|
k,
|
|
232
|
-
J,
|
|
233
233
|
R
|
|
234
234
|
];
|
|
235
235
|
m(e, ot);
|