@arcgis/charts-components 5.2.0-next.40 → 5.2.0-next.42
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/{EJK3RW6P.js → 22GC5BZP.js} +1 -1
- package/dist/cdn/{7CZ4J2W3.js → 2VWSSNE6.js} +1 -1
- package/dist/cdn/{Z3XWLWF4.js → 2WFIFBMW.js} +1 -1
- package/dist/cdn/{KFH7ONYI.js → 33NDNTD4.js} +1 -1
- package/dist/cdn/{YKOEU6IH.js → 3WV4T637.js} +1 -1
- package/dist/cdn/{LGM37IA4.js → 3YJRZ7CT.js} +1 -1
- package/dist/cdn/{J2YNPNIL.js → 4MSUALRF.js} +1 -1
- package/dist/cdn/{YAMKN44F.js → 4QGMMXRI.js} +1 -1
- package/dist/cdn/{SGVBAC76.js → 4RGS5J3H.js} +1 -1
- package/dist/cdn/{DIBTCFWT.js → 4WQF5DM3.js} +1 -1
- package/dist/cdn/{LV3T5QZF.js → 4ZJHIYGJ.js} +1 -1
- package/dist/cdn/{KPWBRKB2.js → 5XXP2NRJ.js} +1 -1
- package/dist/cdn/{LQ4XNJEN.js → 6TA7HFV2.js} +1 -1
- package/dist/cdn/76HEBLTU.js +2 -0
- package/dist/cdn/{Y4AQR62O.js → 76ILRLUC.js} +1 -1
- package/dist/cdn/{NIKK5PQK.js → 7KYTSBST.js} +1 -1
- package/dist/cdn/{77YS6YLT.js → 7RFX7LUS.js} +4 -4
- package/dist/cdn/{YSAFZOZ6.js → 7T4W77V3.js} +1 -1
- package/dist/cdn/{3GGLSOHN.js → B6GOLH4Q.js} +1 -1
- package/dist/cdn/{67K3MAX5.js → CHFKSXBJ.js} +1 -1
- package/dist/cdn/{PKQ36JAB.js → CMPHWKTI.js} +1 -1
- package/dist/cdn/{QCRIXDV3.js → CXT62XXL.js} +1 -1
- package/dist/cdn/{PIXOUTW3.js → D4WXMS4I.js} +1 -1
- package/dist/cdn/{M7YZTXYW.js → D7FL6CSK.js} +1 -1
- package/dist/cdn/{EVCIAJFC.js → DE5QJPJV.js} +1 -1
- package/dist/cdn/{FXACMXC2.js → DWOP2HE4.js} +1 -1
- package/dist/cdn/{BMQRK46I.js → E47MLNJA.js} +1 -1
- package/dist/cdn/{TBGSY7QJ.js → EAXAXRX2.js} +1 -1
- package/dist/cdn/EIXU5GSK.js +2 -0
- package/dist/cdn/{I7QOG3AA.js → ELICLP7J.js} +1 -1
- package/dist/cdn/{4GZPZPT6.js → EMMV3MPZ.js} +1 -1
- package/dist/cdn/{2MWAHHYM.js → ESAVCU5M.js} +20 -20
- package/dist/cdn/{32EVZ7R6.js → F5P4Z43T.js} +1 -1
- package/dist/cdn/{OEIPZTMI.js → G3IEARQP.js} +1 -1
- package/dist/cdn/{M7F2IDEE.js → GGN3I7J2.js} +1 -1
- package/dist/cdn/{RB7LVEKZ.js → GKXBWOFH.js} +1 -1
- package/dist/cdn/{NKUXUCUP.js → GP3V6A7V.js} +1 -1
- package/dist/cdn/{HAOL7B5B.js → HCYQEOJ6.js} +1 -1
- package/dist/cdn/{KML35YPO.js → HP47BFLZ.js} +1 -1
- package/dist/cdn/{BUXRBQJJ.js → HRMCHOLZ.js} +1 -1
- package/dist/cdn/{MAHZG3PJ.js → I2CZFSEB.js} +1 -1
- package/dist/cdn/{FFKWJL25.js → I6REUMW3.js} +1 -1
- package/dist/cdn/{LHQWVJAF.js → IIQVRNZF.js} +1 -1
- package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
- package/dist/cdn/{XCRTBM2X.js → ISYGPFXM.js} +1 -1
- package/dist/cdn/{W2YAFML7.js → J64IDIEG.js} +1 -1
- package/dist/cdn/{K63SHENK.js → JATS27TM.js} +1 -1
- package/dist/cdn/{GHE7Q677.js → JPPLQW3P.js} +1 -1
- package/dist/cdn/{WNKDEOFZ.js → JWD4Y2L6.js} +1 -1
- package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
- package/dist/cdn/K4APZJ2O.js +2 -0
- package/dist/cdn/{CFC3NUMS.js → KHLGXKN5.js} +1 -1
- package/dist/cdn/KRBNJLUR.js +2 -0
- package/dist/cdn/{G6EAXNDR.js → LJLL37FG.js} +1 -1
- package/dist/cdn/{YTUVGIHK.js → LMIDBRIM.js} +1 -1
- package/dist/cdn/{FX3T2NSR.js → LSMBD5CK.js} +1 -1
- package/dist/cdn/{UM5S2Y4R.js → LSWWNXP3.js} +1 -1
- package/dist/cdn/{LLUS6VGO.js → MCT4U7MC.js} +1 -1
- package/dist/cdn/{QCTAG2EK.js → MLBDUKS3.js} +1 -1
- package/dist/cdn/{WGANHKGM.js → MNE46H4A.js} +1 -1
- package/dist/cdn/{BDKELWTL.js → NFJXS4T6.js} +1 -1
- package/dist/cdn/{L7HQ4MVM.js → NG254LPM.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → NYFHPR6N.js} +1 -1
- package/dist/cdn/{A7NYIP7H.js → OGRUONHM.js} +1 -1
- package/dist/cdn/{XM6AWAPQ.js → PCODH67Z.js} +1 -1
- package/dist/cdn/{IQFWMCJN.js → PDYF2IZ2.js} +1 -1
- package/dist/cdn/{LX7XADSL.js → PF7KNYUV.js} +1 -1
- package/dist/cdn/{ME5VD6DD.js → PGO6DEJM.js} +1 -1
- package/dist/cdn/{FGNKVNM7.js → PLEZNRQC.js} +1 -1
- package/dist/cdn/{D3ITKS2P.js → QFDQH5CQ.js} +1 -1
- package/dist/cdn/{XJFVSX2E.js → QJMUS3VS.js} +1 -1
- package/dist/cdn/{KHT4LCWN.js → QYNNPEED.js} +1 -1
- package/dist/cdn/{AAKVGDCP.js → QZ5YUJ7Y.js} +1 -1
- package/dist/cdn/{7GOPZGE7.js → R32CA4NB.js} +1 -1
- package/dist/cdn/{NDOLRRBV.js → RE5QI7WA.js} +1 -1
- package/dist/cdn/{FLNKNNA4.js → RPTZ52MF.js} +1 -1
- package/dist/cdn/{7IEZ4KIQ.js → RS37HDC7.js} +1 -1
- package/dist/cdn/{T7SDOM4Y.js → SDHNDW2J.js} +1 -1
- package/dist/cdn/{GVLUS52N.js → SG3NAFAX.js} +1 -1
- package/dist/cdn/{2WUJ5KOD.js → T3ZESENF.js} +1 -1
- package/dist/cdn/{ZVPPOBET.js → TAGN7GHJ.js} +1 -1
- package/dist/cdn/{QWKP4JOC.js → U5FPTPFH.js} +1 -1
- package/dist/cdn/{OJR4AWVU.js → UG37REGM.js} +1 -1
- package/dist/cdn/{F2OCFEOW.js → UNFEHNQQ.js} +1 -1
- package/dist/cdn/{6TCG2WXL.js → USQYT55U.js} +1 -1
- package/dist/cdn/{2AFGL3N3.js → UTJ2ODDK.js} +1 -1
- package/dist/cdn/VAUVQGBW.js +3 -0
- package/dist/cdn/{LH4X6ACJ.js → WGYVJ5PD.js} +1 -1
- package/dist/cdn/{GOZ5QOUF.js → WIPAO2FH.js} +1 -1
- package/dist/cdn/{RJENJCOJ.js → WKRYWDKZ.js} +1 -1
- package/dist/cdn/{LU3GHFTE.js → WVPMH6DW.js} +1 -1
- package/dist/cdn/{YMY3CBBG.js → XY4HDZKZ.js} +1 -1
- package/dist/cdn/{IRSXCGOE.js → YABRVLVL.js} +1 -1
- package/dist/cdn/{LBG2RY2P.js → YE6DMUZG.js} +1 -1
- package/dist/cdn/{7HTA55LZ.js → YGGPPIZ7.js} +1 -1
- package/dist/cdn/{DGYWXTWO.js → YXG7RVTK.js} +1 -1
- package/dist/cdn/{BDCXALOP.js → Z7NF4IGS.js} +1 -1
- package/dist/cdn/ZSATO43B.js +2 -0
- 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 +1 -1
- package/dist/chunks/box-plot-model.js +5 -5
- package/dist/chunks/chart-model.js +1 -1
- package/dist/chunks/chart-object-literals.js +2 -1
- package/dist/chunks/class-breaks.js +14 -14
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +5 -5
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +66 -57
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/index2.js +3496 -3375
- package/dist/chunks/index4.js +26 -8
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +8 -8
- package/dist/chunks/pie-chart-model.js +9 -9
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/scatterplot-model.js +11 -11
- package/dist/chunks/serial-chart-data.js +785 -701
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/utils.js +16 -16
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/chunks/x-bounds.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +3531 -3519
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +57 -70
- 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/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +215 -213
- package/dist/json-schema/index.d.ts +15 -2
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -2
- package/dist/spec/chart-object-literals.d.ts +1 -0
- package/dist/spec/data-source.d.ts +6 -1
- package/dist/utils/chart-config/converter/index.js +26 -26
- package/dist/utils/data/index.d.ts +8 -1
- package/dist/utils/defaults/interfaces.d.ts +1 -1
- package/dist/utils/layer/query-features/index.d.ts +17 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/cdn/4HBMPMYY.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/GN53HRKZ.js +0 -2
- package/dist/cdn/HR4NMTBV.js +0 -2
- package/dist/cdn/QU7LT4XK.js +0 -3
- package/dist/cdn/ZLFL6BY5.js +0 -2
|
@@ -7,14 +7,14 @@ import { C as N } from "./chart-model.js";
|
|
|
7
7
|
import { m as o } from "./model-setter.js";
|
|
8
8
|
import { B as E } from "./common.js";
|
|
9
9
|
import { M as R, a as U, W as z, b as X } from "./data-labels-visibility.js";
|
|
10
|
-
import { M as j, a as
|
|
11
|
-
import { W as
|
|
10
|
+
import { M as j, a as k } from "./model-with-y-guides.js";
|
|
11
|
+
import { W as K, c as Y, d as G } from "./axis-lines-symbol.js";
|
|
12
12
|
import { W as q, c as H, d as J } from "./generate-x-axis-title.js";
|
|
13
13
|
import { W as Q, a as Z } from "./x-bounds.js";
|
|
14
14
|
import { W as $ } from "./data-labels-symbol.js";
|
|
15
15
|
import { W as ee } from "./rotated-state.js";
|
|
16
16
|
import { g as te, s as u, b as se, a as S } from "./series.js";
|
|
17
|
-
import {
|
|
17
|
+
import { k as ie, j as re, h as oe } from "./utils.js";
|
|
18
18
|
import { s as ne, d as ae, e as le, f as he, h as ce, i as L, j as _, k as C, l as B, m as M, g as ge, n as de, o as fe, p as x, a as ye, c as me, b as pe, q as ue, r as F, t as Se, u as v, v as Le, w, x as _e, y as Ce, z as Be, A as Me, B as xe, C as Fe, D as b } from "./box-plot-data.js";
|
|
19
19
|
var ve = Object.defineProperty, we = Object.getOwnPropertyDescriptor, n = (c, e, t, s) => {
|
|
20
20
|
for (var r = we(e, t), a = c.length - 1, h; a >= 0; a--)
|
|
@@ -427,13 +427,13 @@ const be = [
|
|
|
427
427
|
ee,
|
|
428
428
|
X,
|
|
429
429
|
$,
|
|
430
|
-
|
|
430
|
+
k,
|
|
431
431
|
q,
|
|
432
432
|
Q,
|
|
433
433
|
H,
|
|
434
434
|
Z,
|
|
435
|
+
K,
|
|
435
436
|
Y,
|
|
436
|
-
k,
|
|
437
437
|
G,
|
|
438
438
|
J
|
|
439
439
|
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { h as j } from "./utils.js";
|
|
3
3
|
import { b as F, W, c as L, d as I } from "./series-length.js";
|
|
4
4
|
import { m as a, C as n } from "./model-setter.js";
|
|
5
5
|
import { F as p, T as c, J as f } from "./index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import
|
|
2
|
+
import W from "@arcgis/core/Color.js";
|
|
3
3
|
import { createClassBreaksRenderer as q } from "@arcgis/core/smartMapping/renderers/color.js";
|
|
4
|
-
import { a3 as G,
|
|
4
|
+
import { a3 as G, bY as _ } from "./index2.js";
|
|
5
5
|
import { cloneDeep as J, memoize as Y, isEqual as T, sortBy as Q, flatMap as U } from "lodash-es";
|
|
6
6
|
import { getSchemes as X } from "@arcgis/core/smartMapping/symbology/color.js";
|
|
7
7
|
import { k as L } from "./index.js";
|
|
@@ -182,7 +182,7 @@ const $e = {
|
|
|
182
182
|
convertColor: x,
|
|
183
183
|
removeConfigFieldsFromData: j
|
|
184
184
|
}, w = Z.all(), re = X({ geometryType: "point", theme: "high-to-low" });
|
|
185
|
-
function
|
|
185
|
+
function H(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,7 +209,7 @@ function ne(e) {
|
|
|
209
209
|
else
|
|
210
210
|
for (let i = 0; i < o; i++) {
|
|
211
211
|
const l = i / (o - 1);
|
|
212
|
-
n.push(
|
|
212
|
+
n.push(H(r, a, l));
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
return n;
|
|
@@ -238,7 +238,7 @@ function le(e) {
|
|
|
238
238
|
c = [];
|
|
239
239
|
break;
|
|
240
240
|
}
|
|
241
|
-
const R = f * (a.length - 1) - u, g =
|
|
241
|
+
const R = f * (a.length - 1) - u, g = H(m, d, R);
|
|
242
242
|
i.push(g);
|
|
243
243
|
}
|
|
244
244
|
c = i;
|
|
@@ -246,7 +246,7 @@ function le(e) {
|
|
|
246
246
|
}
|
|
247
247
|
return c;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function K(e) {
|
|
250
250
|
const { numberOfClassBreaks: o, selectedColorRamp: t, colorRamp: s, isFlipped: c = !1 } = e;
|
|
251
251
|
let n = ae(o, s);
|
|
252
252
|
const r = t ? le({ colorRamp: t, numberOfClassBreaks: o, isFlipped: c }) : [];
|
|
@@ -304,7 +304,7 @@ function y(e) {
|
|
|
304
304
|
}
|
|
305
305
|
function M(e) {
|
|
306
306
|
let o;
|
|
307
|
-
if (e instanceof
|
|
307
|
+
if (e instanceof W) {
|
|
308
308
|
const t = e.toRgba();
|
|
309
309
|
o = [y(t[0]), y(t[1]), y(t[2]), y(t[3] * 255)];
|
|
310
310
|
} else if (Array.isArray(e) && e.every((t) => typeof t == "number") && e.length === 4) {
|
|
@@ -336,7 +336,7 @@ function fe(e) {
|
|
|
336
336
|
}
|
|
337
337
|
function ue(e) {
|
|
338
338
|
const { ramp: o, breakKeys: t, breakCount: s, weights: c } = e, n = (d) => d.join(","), r = o.colorsForClassBreaks?.find((d) => d.numClasses === s)?.colors ?? [], a = new Set(I(r).map(n)), i = E(t, a), l = new Set(
|
|
339
|
-
I(
|
|
339
|
+
I(K({ numberOfClassBreaks: s, selectedColorRamp: o })).map(
|
|
340
340
|
n
|
|
341
341
|
)
|
|
342
342
|
), f = E(t, l), u = fe(o).filter((d) => !!d), p = new Set(I(u).map(n)), m = E(t, p);
|
|
@@ -431,14 +431,14 @@ async function me(e) {
|
|
|
431
431
|
return r;
|
|
432
432
|
}
|
|
433
433
|
function pe(e) {
|
|
434
|
-
return e?.length ? e :
|
|
434
|
+
return e?.length ? e : P.esriColorRamps;
|
|
435
435
|
}
|
|
436
436
|
function de(e, o) {
|
|
437
437
|
return e ? pe(o).find((s) => s.name === e) : void 0;
|
|
438
438
|
}
|
|
439
439
|
function he(e) {
|
|
440
440
|
const { colorRampName: o, availableColorRamps: t } = e;
|
|
441
|
-
return de(o, t) ??
|
|
441
|
+
return de(o, t) ?? P.defaultColorRampForCharts;
|
|
442
442
|
}
|
|
443
443
|
const Ne = Y(
|
|
444
444
|
async (e) => {
|
|
@@ -455,7 +455,7 @@ const Ne = Y(
|
|
|
455
455
|
} = e, f = he({
|
|
456
456
|
colorRampName: n,
|
|
457
457
|
availableColorRamps: r
|
|
458
|
-
}), u = l ?? !1, p =
|
|
458
|
+
}), u = l ?? !1, p = K({
|
|
459
459
|
numberOfClassBreaks: t,
|
|
460
460
|
selectedColorRamp: f,
|
|
461
461
|
colorRamp: i ? a?.map((m) => m.symbol?.color) : void 0,
|
|
@@ -470,7 +470,7 @@ const Ne = Y(
|
|
|
470
470
|
});
|
|
471
471
|
},
|
|
472
472
|
(e) => JSON.stringify(e)
|
|
473
|
-
),
|
|
473
|
+
), P = {
|
|
474
474
|
esriColorRamps: w,
|
|
475
475
|
defaultColorRampForCharts: w.find((e) => e.name === "Blue 3") ?? w[0]
|
|
476
476
|
};
|
|
@@ -495,8 +495,8 @@ export {
|
|
|
495
495
|
oe as b,
|
|
496
496
|
te as c,
|
|
497
497
|
Be as d,
|
|
498
|
-
|
|
499
|
-
|
|
498
|
+
P as e,
|
|
499
|
+
K as f,
|
|
500
500
|
Ne as g,
|
|
501
501
|
Me as h,
|
|
502
502
|
$e as i,
|
|
@@ -3,7 +3,7 @@ import { g as p, s as b, a as _, 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 k, a as C, e as v, b as M, f as z, s as O, h as B, c as V, i as D, d as F, j as A, k as H, n as W, o as d, p as j, q as P, r as T, W as w } from "./negative-values-stacked-to-baseline.js";
|
|
5
5
|
import { S as N, s as q } from "./serial-chart-model.js";
|
|
6
|
-
import {
|
|
6
|
+
import { h as R } from "./utils.js";
|
|
7
7
|
import { u as S } from "./chart-object-literals.js";
|
|
8
8
|
import { j as Z, g as l, i as g } from "./index5.js";
|
|
9
9
|
import { x as E, y, Z as m } from "./index.js";
|
package/dist/chunks/data.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { capitalize as u } from "lodash-es";
|
|
3
|
-
import { N as x, k as B, m as L,
|
|
3
|
+
import { N as x, k as B, m as L, cU as $, Y as N, an as I, af as H, ax as P, l as _, n as U } from "./index2.js";
|
|
4
4
|
import { g as F } from "./series-types.js";
|
|
5
|
-
import { H as A, S as o, P as
|
|
5
|
+
import { H as A, S as o, P as v } from "./common.js";
|
|
6
6
|
import { p as l, n, u as d, r as g } from "./chart-object-literals.js";
|
|
7
|
-
import { C as
|
|
7
|
+
import { C as M } from "./index3.js";
|
|
8
8
|
import { g as W } from "./index.js";
|
|
9
9
|
import { d as Y } from "./type-guards.js";
|
|
10
10
|
function k(e, r) {
|
|
@@ -77,7 +77,7 @@ const E = (e) => {
|
|
|
77
77
|
let p = "y", C = "y";
|
|
78
78
|
switch (T) {
|
|
79
79
|
case d.PieSeries: {
|
|
80
|
-
i !== g.NoAggregation ? y ===
|
|
80
|
+
i !== g.NoAggregation ? y === v.Category ? (p = `${i}_${t[0]}_0`.toUpperCase(), C = f ? u(g.Count) : u(`${i} of ${t[0]}`)) : p = U : p = t[0];
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
83
|
case d.BarSeries:
|
|
@@ -90,7 +90,7 @@ const E = (e) => {
|
|
|
90
90
|
fieldName: s,
|
|
91
91
|
numericFields: t,
|
|
92
92
|
fieldList: O ?? []
|
|
93
|
-
}) || b ===
|
|
93
|
+
}) || b === M.BarAndLineFromFields ? p = _ : (p = i !== g.NoAggregation ? `${i}_${t[c ?? 0]}_${c ?? 0}`.toUpperCase() : t[c ?? 0], C = f ? u(g.Count) : u(`${i} of ${t[c ?? 0]}`));
|
|
94
94
|
else {
|
|
95
95
|
const m = t[0];
|
|
96
96
|
p = i !== g.NoAggregation ? `${i}_${m}_${h ?? 0}`.toUpperCase() : m, C = f ? u(g.Count) : u(`${i} of ${m}`);
|
|
@@ -8,7 +8,7 @@ import { M as T } from "./model-with-x-guides.js";
|
|
|
8
8
|
import { W as A, c as W, d as V } from "./axis-lines-symbol.js";
|
|
9
9
|
import { W as F, c as D, d as B } from "./generate-x-axis-title.js";
|
|
10
10
|
import { W as E, a as M } from "./x-bounds.js";
|
|
11
|
-
import { g as N,
|
|
11
|
+
import { g as N, h as P } from "./utils.js";
|
|
12
12
|
const w = (t) => t.axes[0].needle?.visible ?? !0, R = (t, e) => {
|
|
13
13
|
e.axes[0].needle === void 0 && (e.axes[0].needle = d()), e.axes[0].needle.visible = t;
|
|
14
14
|
}, G = (t) => t.axes[0].needle?.symbol, k = (t, e) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { m as t } from "./model-setter.js";
|
|
3
3
|
import { H as o } from "./common.js";
|
|
4
|
-
import { S as u, g as _, a as
|
|
5
|
-
import { F as
|
|
6
|
-
import { d
|
|
7
|
-
import { u as
|
|
8
|
-
import { O as
|
|
4
|
+
import { S as u, g as _, a as S } from "./serial-chart-model.js";
|
|
5
|
+
import { F as C, G as T, H as A, I as F, J as O, K as x, L, M as R, N as D, O as I, P as v, Q as w, R as b, S as B, T as P, U as k, V as E, X as N, Y as W, Z as Y, _ as H, $ as G, a0 as M, a1 as U, a2 as V, a3 as X, a4 as j, a5 as K, a6 as Z, a7 as q, a8 as c, a9 as m, aa as z, ab as J, ac as Q, ad as $, ae as ee, af as te, z as y, ag as ie, ah as se, ai as re, aj as oe, ak as ne, al as ae, am as ge, an as le } from "./serial-chart-data.js";
|
|
6
|
+
import { d } from "./data.js";
|
|
7
|
+
import { u as pe, r as f } from "./chart-object-literals.js";
|
|
8
|
+
import { O as ce } from "./index.js";
|
|
9
9
|
import { an as h } from "./index2.js";
|
|
10
|
-
import { q as
|
|
10
|
+
import { q as me } from "./index3.js";
|
|
11
11
|
var ye = Object.defineProperty, de = Object.getOwnPropertyDescriptor, i = (l, e, r, a) => {
|
|
12
12
|
for (var n = de(e, r), g = l.length - 1, p; g >= 0; g--)
|
|
13
13
|
(p = l[g]) && (n = p(e, r, n) || n);
|
|
@@ -15,13 +15,13 @@ var ye = Object.defineProperty, de = Object.getOwnPropertyDescriptor, i = (l, e,
|
|
|
15
15
|
};
|
|
16
16
|
class s extends u {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(...arguments), this._chartType =
|
|
18
|
+
super(...arguments), this._chartType = pe.HeatSeries;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Generate the proper chart title given the current config.
|
|
22
22
|
*/
|
|
23
23
|
generateChartTitle() {
|
|
24
|
-
return this.layerInfo !== void 0 ?
|
|
24
|
+
return this.layerInfo !== void 0 ? C(this._config, this.layerInfo, this.commonStrings) : "";
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Generate the proper y-axis title given the current config.
|
|
@@ -36,20 +36,29 @@ class s extends u {
|
|
|
36
36
|
get layer() {
|
|
37
37
|
return super.layer;
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Sets up the heat chart model from the provided model params.
|
|
41
|
+
* @param {ModelParams<ChartConfig<typeof ModelTypes.HeatChart>>} params - The model setup params.
|
|
42
|
+
*/
|
|
39
43
|
async setup(e) {
|
|
40
|
-
await this.loadConfigFromLayer(e),
|
|
44
|
+
await this.loadConfigFromLayer(e), T({
|
|
45
|
+
commonStrings: this.commonStrings,
|
|
46
|
+
config: this._config,
|
|
47
|
+
layerInfo: this.layerInfo
|
|
48
|
+
}), this.setupLocalProps(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
41
49
|
}
|
|
42
50
|
/**
|
|
43
51
|
* The y axis field used by the heat chart.
|
|
44
52
|
*/
|
|
45
53
|
get yAxisField() {
|
|
46
|
-
return
|
|
54
|
+
return A(this._config);
|
|
47
55
|
}
|
|
48
56
|
set yAxisField(e) {
|
|
49
|
-
|
|
57
|
+
F({
|
|
50
58
|
yField: e,
|
|
51
59
|
config: this._config,
|
|
52
|
-
layerInfo: this.layerInfo
|
|
60
|
+
layerInfo: this.layerInfo,
|
|
61
|
+
commonStrings: this.commonStrings
|
|
53
62
|
});
|
|
54
63
|
}
|
|
55
64
|
/**
|
|
@@ -60,11 +69,11 @@ class s extends u {
|
|
|
60
69
|
* **Note**: This is only applicable for calendar heat charts (when `xAxisField` and `yAxisField` are date fields).
|
|
61
70
|
*/
|
|
62
71
|
get viewType() {
|
|
63
|
-
return
|
|
72
|
+
return O(this._config);
|
|
64
73
|
}
|
|
65
74
|
set viewType(e) {
|
|
66
75
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
67
|
-
|
|
76
|
+
x(e, this._config), this.emitConfigUpdate("heatChartViewType");
|
|
68
77
|
});
|
|
69
78
|
}
|
|
70
79
|
/**
|
|
@@ -79,10 +88,10 @@ class s extends u {
|
|
|
79
88
|
* ```
|
|
80
89
|
*/
|
|
81
90
|
get xTemporalBinning() {
|
|
82
|
-
return
|
|
91
|
+
return L(this._config);
|
|
83
92
|
}
|
|
84
93
|
set xTemporalBinning(e) {
|
|
85
|
-
|
|
94
|
+
R({
|
|
86
95
|
commonStrings: this.commonStrings,
|
|
87
96
|
binning: e,
|
|
88
97
|
config: this._config
|
|
@@ -100,10 +109,10 @@ class s extends u {
|
|
|
100
109
|
* ```
|
|
101
110
|
*/
|
|
102
111
|
get yTemporalBinning() {
|
|
103
|
-
return
|
|
112
|
+
return D(this._config);
|
|
104
113
|
}
|
|
105
114
|
set yTemporalBinning(e) {
|
|
106
|
-
|
|
115
|
+
I({
|
|
107
116
|
commonStrings: this.commonStrings,
|
|
108
117
|
binning: e,
|
|
109
118
|
config: this._config
|
|
@@ -129,46 +138,46 @@ class s extends u {
|
|
|
129
138
|
* `manual` - Allows you to manually specify the class breaks.
|
|
130
139
|
*/
|
|
131
140
|
get classificationMethod() {
|
|
132
|
-
return
|
|
141
|
+
return b(this._config);
|
|
133
142
|
}
|
|
134
143
|
set classificationMethod(e) {
|
|
135
144
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
136
|
-
e && (
|
|
145
|
+
e && (B(e, this._config), this.emitConfigUpdate("classificationMethod"));
|
|
137
146
|
});
|
|
138
147
|
}
|
|
139
148
|
/**
|
|
140
149
|
* The name of the color ramp used by the heat chart.
|
|
141
150
|
*/
|
|
142
151
|
get colorRampName() {
|
|
143
|
-
return
|
|
152
|
+
return P(this._config);
|
|
144
153
|
}
|
|
145
154
|
set colorRampName(e) {
|
|
146
|
-
|
|
155
|
+
k(e, this._config);
|
|
147
156
|
}
|
|
148
157
|
/**
|
|
149
158
|
* Whether the color ramp is flipped for the heat chart,
|
|
150
159
|
* which means the colors will be reversed (e.g., if the original color ramp goes from light to dark, flipping it will make it go from dark to light).
|
|
151
160
|
*/
|
|
152
161
|
get isColorRampFlipped() {
|
|
153
|
-
return
|
|
162
|
+
return E(this._config);
|
|
154
163
|
}
|
|
155
164
|
set isColorRampFlipped(e) {
|
|
156
|
-
|
|
165
|
+
N(e, this._config);
|
|
157
166
|
}
|
|
158
167
|
/**
|
|
159
168
|
* Hide the empty rows and columns in the heat chart.
|
|
160
169
|
*/
|
|
161
170
|
get hideEmptyRowsAndColumns() {
|
|
162
|
-
return
|
|
171
|
+
return W(this._config);
|
|
163
172
|
}
|
|
164
173
|
set hideEmptyRowsAndColumns(e) {
|
|
165
|
-
|
|
174
|
+
Y(this._config, e);
|
|
166
175
|
}
|
|
167
176
|
/**
|
|
168
177
|
* The grid line width used by the heat chart.
|
|
169
178
|
*/
|
|
170
179
|
get gridLineWidth() {
|
|
171
|
-
return
|
|
180
|
+
return H(this._config);
|
|
172
181
|
}
|
|
173
182
|
set gridLineWidth(e) {
|
|
174
183
|
G(e, this._config);
|
|
@@ -177,7 +186,7 @@ class s extends u {
|
|
|
177
186
|
* The grid line color used by the heat chart.
|
|
178
187
|
*/
|
|
179
188
|
get gridLineColor() {
|
|
180
|
-
return
|
|
189
|
+
return M(this._config);
|
|
181
190
|
}
|
|
182
191
|
set gridLineColor(e) {
|
|
183
192
|
U(e, this._config);
|
|
@@ -190,7 +199,7 @@ class s extends u {
|
|
|
190
199
|
return _(0, this._config);
|
|
191
200
|
}
|
|
192
201
|
set seriesName(e) {
|
|
193
|
-
typeof e == "string" &&
|
|
202
|
+
typeof e == "string" && S(e, 0, this._config);
|
|
194
203
|
}
|
|
195
204
|
/**
|
|
196
205
|
* The heat rules type used by the heat chart.
|
|
@@ -198,10 +207,10 @@ class s extends u {
|
|
|
198
207
|
* `renderer`: A class break renderer is used to apply specific colors to cells based on defined value ranges, allowing for more customized visualizations.
|
|
199
208
|
*/
|
|
200
209
|
get heatRulesType() {
|
|
201
|
-
return
|
|
210
|
+
return V(this._config);
|
|
202
211
|
}
|
|
203
212
|
set heatRulesType(e) {
|
|
204
|
-
|
|
213
|
+
X(this._config, e);
|
|
205
214
|
}
|
|
206
215
|
/**
|
|
207
216
|
* Set the gradient rules for the heat chart, which define how data values map to colors.
|
|
@@ -223,10 +232,10 @@ class s extends u {
|
|
|
223
232
|
* ```
|
|
224
233
|
*/
|
|
225
234
|
get gradientRules() {
|
|
226
|
-
return
|
|
235
|
+
return j(this._config);
|
|
227
236
|
}
|
|
228
237
|
set gradientRules(e) {
|
|
229
|
-
|
|
238
|
+
K(this._config, e);
|
|
230
239
|
}
|
|
231
240
|
/**
|
|
232
241
|
* Gets the grid lines symbol. Contains styling information such as line width, line style, and line color.
|
|
@@ -241,19 +250,19 @@ class s extends u {
|
|
|
241
250
|
* Heat chart only supports one numeric field, if there are multiple numeric fields provided in the array, only the first one will be used and the rest will be ignored.
|
|
242
251
|
*/
|
|
243
252
|
get numericFields() {
|
|
244
|
-
const e =
|
|
253
|
+
const e = Z(this._config);
|
|
245
254
|
return e !== void 0 ? [e] : [];
|
|
246
255
|
}
|
|
247
256
|
set numericFields(e) {
|
|
248
|
-
const { idField: r } = h(this.layerInfo.layer), a =
|
|
249
|
-
|
|
257
|
+
const { idField: r } = h(this.layerInfo.layer), a = me(e[0]), n = a ? r : e[0];
|
|
258
|
+
q({
|
|
250
259
|
field: n,
|
|
251
260
|
config: this._config,
|
|
252
261
|
layerInfo: this.layerInfo,
|
|
253
262
|
commonStrings: this.commonStrings
|
|
254
263
|
});
|
|
255
264
|
const g = c(this._config);
|
|
256
|
-
a && g !== f.Count &&
|
|
265
|
+
a && g !== f.Count && m({
|
|
257
266
|
aggregationType: f.Count,
|
|
258
267
|
config: this._config,
|
|
259
268
|
layerInfo: this.layerInfo,
|
|
@@ -267,7 +276,7 @@ class s extends u {
|
|
|
267
276
|
return c(this._config);
|
|
268
277
|
}
|
|
269
278
|
set aggregationType(e) {
|
|
270
|
-
|
|
279
|
+
m({
|
|
271
280
|
aggregationType: e,
|
|
272
281
|
config: this._config,
|
|
273
282
|
layerInfo: this.layerInfo,
|
|
@@ -284,26 +293,26 @@ class s extends u {
|
|
|
284
293
|
set splitByField(e) {
|
|
285
294
|
}
|
|
286
295
|
get legendPosition() {
|
|
287
|
-
return
|
|
296
|
+
return z(this._config);
|
|
288
297
|
}
|
|
289
298
|
set legendPosition(e) {
|
|
290
|
-
|
|
299
|
+
J(e, this._config);
|
|
291
300
|
}
|
|
292
301
|
get nullPolicy() {
|
|
293
|
-
return
|
|
302
|
+
return Q(this._config);
|
|
294
303
|
}
|
|
295
304
|
set nullPolicy(e) {
|
|
296
|
-
|
|
305
|
+
$(e, this._config);
|
|
297
306
|
}
|
|
298
307
|
get emptyCell() {
|
|
299
|
-
return
|
|
308
|
+
return ee(this._config);
|
|
300
309
|
}
|
|
301
310
|
/**
|
|
302
311
|
* The heat chart's empty cell configuration.
|
|
303
312
|
*/
|
|
304
313
|
set emptyCell(e) {
|
|
305
314
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
306
|
-
|
|
315
|
+
te(e, this._config), this.emitConfigUpdate("emptyCell");
|
|
307
316
|
});
|
|
308
317
|
}
|
|
309
318
|
getSortOrder() {
|
|
@@ -316,38 +325,38 @@ class s extends u {
|
|
|
316
325
|
* @returns {"Asc" | "Desc" | "customSort"}
|
|
317
326
|
*/
|
|
318
327
|
getXAxisSortOrder() {
|
|
319
|
-
const e =
|
|
328
|
+
const e = y(this._config)[0];
|
|
320
329
|
return e === o.Asc || e === o.Desc || e === o.customSort ? e : o.Asc;
|
|
321
330
|
}
|
|
322
331
|
setXAxisSortOrder(e, r) {
|
|
323
|
-
|
|
332
|
+
d(e, this._config, r);
|
|
324
333
|
}
|
|
325
334
|
/**
|
|
326
335
|
* Gets the sort order for on the y axis for heat chart.
|
|
327
336
|
* @returns {"Asc" | "Desc" | "customSort"}
|
|
328
337
|
*/
|
|
329
338
|
getYAxisSortOrder() {
|
|
330
|
-
const e =
|
|
339
|
+
const e = y(this._config)[1];
|
|
331
340
|
return e === o.Asc || e === o.Desc || e === o.customSort ? e : o.Asc;
|
|
332
341
|
}
|
|
333
342
|
setYAxisSortOrder(e, r) {
|
|
334
|
-
|
|
343
|
+
d(e, this._config, r, !0);
|
|
335
344
|
}
|
|
336
345
|
get emptyCellText() {
|
|
337
|
-
return
|
|
346
|
+
return ie(this._config);
|
|
338
347
|
}
|
|
339
348
|
set emptyCellText(e) {
|
|
340
|
-
|
|
349
|
+
se(e, this._config);
|
|
341
350
|
}
|
|
342
351
|
get includeLeapDay() {
|
|
343
|
-
return
|
|
352
|
+
return re(this._config);
|
|
344
353
|
}
|
|
345
354
|
/**
|
|
346
355
|
* Whether to include leap day (February 29) in the heat chart when using "day of month" temporal binning.
|
|
347
356
|
*/
|
|
348
357
|
set includeLeapDay(e) {
|
|
349
358
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
350
|
-
|
|
359
|
+
oe(e, this._config), this.emitConfigUpdate("includeLeapDay");
|
|
351
360
|
});
|
|
352
361
|
}
|
|
353
362
|
/**
|
|
@@ -357,18 +366,18 @@ class s extends u {
|
|
|
357
366
|
* - `7`: Sunday
|
|
358
367
|
*/
|
|
359
368
|
get firstDayOfWeek() {
|
|
360
|
-
return
|
|
369
|
+
return ne(this._config);
|
|
361
370
|
}
|
|
362
371
|
set firstDayOfWeek(e) {
|
|
363
372
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
364
|
-
|
|
373
|
+
ae(e, this._config), this.emitConfigUpdate("firstDayOfWeek");
|
|
365
374
|
});
|
|
366
375
|
}
|
|
367
376
|
get emptyCellSymbol() {
|
|
368
|
-
return
|
|
377
|
+
return ge(this._config);
|
|
369
378
|
}
|
|
370
379
|
set emptyCellSymbol(e) {
|
|
371
|
-
|
|
380
|
+
le(e, this._config);
|
|
372
381
|
}
|
|
373
382
|
// Chart override methods that aren't supported
|
|
374
383
|
/**
|
|
@@ -410,7 +419,7 @@ class s extends u {
|
|
|
410
419
|
* @private
|
|
411
420
|
*/
|
|
412
421
|
generateDefaultConfig() {
|
|
413
|
-
const e =
|
|
422
|
+
const e = ce(this.commonStrings, h(this.layerInfo.layer).idField);
|
|
414
423
|
return e.axes?.forEach((r, a) => {
|
|
415
424
|
r && (r.valueFormat = {
|
|
416
425
|
// use short date format for y axis labels
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { h as m } from "./utils.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
4
|
import { C as P } from "./chart-model.js";
|
|
5
5
|
import { M as j, a as H, W as I, b as V } from "./data-labels-visibility.js";
|