@arcgis/charts-components 5.2.0-next.160 → 5.2.0-next.162
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/{UE4KTI5X.js → 23EBTARY.js} +2 -2
- package/dist/cdn/{NWITMWCT.js → 2IETCKFR.js} +1 -1
- package/dist/cdn/{YNOSBB23.js → 32HL4LJM.js} +1 -1
- package/dist/cdn/{JX5JAG7D.js → 34EBYEM7.js} +1 -1
- package/dist/cdn/{7ULLR4CN.js → 3L5TASX6.js} +1 -1
- package/dist/cdn/{VWS73BFY.js → 4SKI2UZ4.js} +1 -1
- package/dist/cdn/{B7NGZOWD.js → 57IBZI2Q.js} +1 -1
- package/dist/cdn/{6UOV5TES.js → 5RI6YXV2.js} +1 -1
- package/dist/cdn/{UG74S4GG.js → 6B2Q4ZZ4.js} +1 -1
- package/dist/cdn/{RKYMPBR5.js → 6F64K7IO.js} +1 -1
- package/dist/cdn/{GT7N5NKM.js → 6KA3POYJ.js} +1 -1
- package/dist/cdn/{D4E2DTYE.js → 6PN24NZH.js} +1 -1
- package/dist/cdn/{SZHT3SPH.js → 6THDMW4S.js} +1 -1
- package/dist/cdn/7DHOI5P2.js +4 -0
- package/dist/cdn/{KND6442A.js → 7HDFMHYC.js} +1 -1
- package/dist/cdn/{XDTACW3D.js → 7IIIIZMH.js} +1 -1
- package/dist/cdn/{7NDAZIXV.js → 7P6O2RHA.js} +1 -1
- package/dist/cdn/{OXY57UUR.js → AETI74SR.js} +1 -1
- package/dist/cdn/{HDQ4PVJJ.js → AHBGX7M2.js} +1 -1
- package/dist/cdn/{DNS4RWBT.js → AM34FK2L.js} +1 -1
- package/dist/cdn/{MZAJOKMM.js → ANON4Y5O.js} +1 -1
- package/dist/cdn/{C24TOQMU.js → AU5XPM24.js} +11 -11
- package/dist/cdn/{OIRY7UKP.js → AZ2Z7W7G.js} +1 -1
- package/dist/cdn/{LGUGOYL5.js → BPJQFWYG.js} +1 -1
- package/dist/cdn/{KTDX5Z2G.js → BWLIKQZM.js} +1 -1
- package/dist/cdn/{MMRG4Q5Q.js → C77CMKWU.js} +1 -1
- package/dist/cdn/{7NMS7SSF.js → CGL6HYSO.js} +1 -1
- package/dist/cdn/{SEBELUXK.js → CZ2QBJIW.js} +1 -1
- package/dist/cdn/{54WTBBPU.js → DHXQHBHG.js} +1 -1
- package/dist/cdn/{EI6JNZL7.js → E6TZMNXL.js} +1 -1
- package/dist/cdn/{DLX6ZNYG.js → ENSGJAYI.js} +1 -1
- package/dist/cdn/F4PYAQO2.js +2 -0
- package/dist/cdn/{BSNYZIRT.js → FATD355N.js} +1 -1
- package/dist/cdn/{R5VDLCQN.js → FN2RSJVM.js} +1 -1
- package/dist/cdn/{R623PW73.js → FW6RGCL5.js} +1 -1
- package/dist/cdn/{NDECGMQR.js → GBJ2EWWV.js} +1 -1
- package/dist/cdn/{HOYAL4U2.js → H3LCE55Z.js} +1 -1
- package/dist/cdn/{2USDPS2L.js → HFXBJYPZ.js} +1 -1
- package/dist/cdn/{FF4LQHDS.js → HK4Z5B22.js} +1 -1
- package/dist/cdn/HTC5S4WI.js +2 -0
- package/dist/cdn/{4T5L3BLL.js → HYQNWCWA.js} +1 -1
- package/dist/cdn/{DDNBFHKN.js → IDULNX4O.js} +1 -1
- package/dist/cdn/{7HN4DADA.js → IGHTJLIF.js} +1 -1
- package/dist/cdn/{OWHYUDHE.js → IJY7UQTV.js} +1 -1
- package/dist/cdn/{WGKZDY7Y.js → J2J3NXRC.js} +1 -1
- package/dist/cdn/{C5HTXSZS.js → JR2RRIKO.js} +1 -1
- package/dist/cdn/{DQLO4ITR.js → JXJGHXNJ.js} +1 -1
- package/dist/cdn/{TQUFEFBE.js → KEKVMGV6.js} +1 -1
- package/dist/cdn/{GPHCD6G4.js → KQ74SEOV.js} +1 -1
- package/dist/cdn/{YNHYJOH7.js → KSDJFASU.js} +1 -1
- package/dist/cdn/{UMUPYNTB.js → KX3NHKFW.js} +1 -1
- package/dist/cdn/{YFVUQYKO.js → L3P6D53Z.js} +1 -1
- package/dist/cdn/{2LV6GDYK.js → LEUIZWRV.js} +1 -1
- package/dist/cdn/{ECFOVMA2.js → MDZELM6Q.js} +1 -1
- package/dist/cdn/{JHUXUZ3V.js → MMYG2RYL.js} +1 -1
- package/dist/cdn/{ZBHRRQNP.js → N2FNNEOT.js} +1 -1
- package/dist/cdn/{QSCUSBOE.js → N5GCUS4N.js} +1 -1
- package/dist/cdn/NDU72CRG.js +2 -0
- package/dist/cdn/{Q44XXOXV.js → NSVQKFEV.js} +1 -1
- package/dist/cdn/{PNELR4NS.js → NTJMVBRM.js} +1 -1
- package/dist/cdn/{25EQGAJY.js → NW7U6HWL.js} +1 -1
- package/dist/cdn/{62FK6ANF.js → O2WFSEOJ.js} +1 -1
- package/dist/cdn/{MHIL7RCM.js → OH42GU2Y.js} +1 -1
- package/dist/cdn/{IQHYD6VM.js → OOJPYFJZ.js} +1 -1
- package/dist/cdn/{GCGZ4SRD.js → OZMMTR6U.js} +1 -1
- package/dist/cdn/{75J7S444.js → P7EFHM46.js} +1 -1
- package/dist/cdn/{NAFHJZYK.js → Q27MURSA.js} +1 -1
- package/dist/cdn/{5HKCWI3P.js → QPMXPJOU.js} +1 -1
- package/dist/cdn/{GRQ3RAS2.js → QT5HEM3R.js} +1 -1
- package/dist/cdn/{Y5W5WINS.js → RNKBI3X2.js} +1 -1
- package/dist/cdn/{AWZYMQFF.js → RRUEVNJ6.js} +1 -1
- package/dist/cdn/{WAESGWAL.js → SNQONC4I.js} +1 -1
- package/dist/cdn/{RW56D36T.js → TPWN3WU6.js} +1 -1
- package/dist/cdn/{K4WZTS5W.js → TWAPMNSX.js} +1 -1
- package/dist/cdn/{6IEIR3IJ.js → UDCAINIH.js} +1 -1
- package/dist/cdn/UGHZZOEP.js +2 -0
- package/dist/cdn/{JMC5FR6G.js → UMPUQD5F.js} +1 -1
- package/dist/cdn/{TWACT53N.js → UN4K7L7T.js} +1 -1
- package/dist/cdn/{Q6DXB7DT.js → UQCVYMWO.js} +1 -1
- package/dist/cdn/{VTXTISBO.js → VAP4V5TC.js} +1 -1
- package/dist/cdn/{YWKT5FUP.js → VBZUDWPR.js} +1 -1
- package/dist/cdn/{NTDBPHHL.js → VL4T7FC5.js} +1 -1
- package/dist/cdn/{EBMUNX44.js → VSD6BE2P.js} +1 -1
- package/dist/cdn/{HICARS7N.js → VY53SMFW.js} +1 -1
- package/dist/cdn/{O7SBBJIT.js → W2E7LFTT.js} +1 -1
- package/dist/cdn/{PMMT66SN.js → W6V4XEM4.js} +1 -1
- package/dist/cdn/{6QEBTDLJ.js → WEVL6WYI.js} +1 -1
- package/dist/cdn/{A5UWEHLX.js → WFCQTLQZ.js} +1 -1
- package/dist/cdn/WJINSWQO.js +2 -0
- package/dist/cdn/{TJ5BGDYZ.js → WZFDIC2M.js} +1 -1
- package/dist/cdn/{3GGD7KLV.js → XWZLBTHL.js} +1 -1
- package/dist/cdn/{PABVNO3N.js → Y5CHG4IT.js} +1 -1
- package/dist/cdn/{J3AUMK36.js → YAH2CORT.js} +1 -1
- package/dist/cdn/{ETSSSFIS.js → YFDABY5Y.js} +1 -1
- package/dist/cdn/{P6XYFLVZ.js → ZDM5IDLI.js} +1 -1
- package/dist/cdn/{YVJE3Q7H.js → ZM64YDWU.js} +1 -1
- package/dist/cdn/{TR3X4GPJ.js → ZNNKZGV6.js} +1 -1
- package/dist/cdn/{L3C4LMLQ.js → ZTMZ6GG4.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 +3 -3
- package/dist/chunks/box-plot-model.js +6 -6
- package/dist/chunks/chart-model.js +19 -19
- package/dist/chunks/combo-bar-line-chart-model.js +8 -8
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/histogram-model.js +5 -5
- package/dist/chunks/index.js +1502 -1481
- package/dist/chunks/line-chart-model.js +5 -5
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +10 -10
- package/dist/chunks/pie-chart-model.js +6 -6
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/scatterplot-model.js +12 -12
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/x-bounds.js +17 -17
- package/dist/components/arcgis-chart/customElement.d.ts +2 -1
- package/dist/components/arcgis-chart/customElement.js +90 -85
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +33 -33
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +17 -17
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +20 -24
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +78 -76
- 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 +214 -213
- package/dist/loader.js +1 -1
- package/dist/utils/components/interfaces.d.ts +7 -0
- package/package.json +4 -4
- package/dist/cdn/DGXBF4BH.js +0 -4
- package/dist/cdn/EX7GAUGC.js +0 -2
- package/dist/cdn/FS6K3PGA.js +0 -2
- package/dist/cdn/G37DEPFO.js +0 -2
- package/dist/cdn/GAFCUST3.js +0 -2
- package/dist/cdn/QXNM2F6D.js +0 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { a as d } from "./chart-object-literals.js";
|
|
3
3
|
import { aw as S, a0 as l, g as m, r as c } from "./index2.js";
|
|
4
|
-
import { u as a,
|
|
4
|
+
import { u as a, eM as g } from "./index.js";
|
|
5
5
|
import { m as y } from "./model-setter.js";
|
|
6
6
|
import { M as u } from "./model-with-line-marker-styling.js";
|
|
7
|
-
import { s as p, a as b, b as I, c as v, d as _, W as
|
|
8
|
-
import { S as
|
|
7
|
+
import { s as p, a as b, b as I, c as v, d as _, W as M } from "./negative-values-stacked-to-baseline.js";
|
|
8
|
+
import { S as C, s as k, a as x } from "./serial-chart-model.js";
|
|
9
9
|
import { h as f } from "./serial-chart-data.js";
|
|
10
10
|
var L = Object.defineProperty, D = Object.getOwnPropertyDescriptor, w = (o, e, s, t) => {
|
|
11
11
|
for (var i = D(e, s), r = o.length - 1, n; r >= 0; r--)
|
|
12
12
|
(n = o[r]) && (i = n(e, s, i) || i);
|
|
13
13
|
return i && L(e, s, i), i;
|
|
14
14
|
};
|
|
15
|
-
class h extends
|
|
15
|
+
class h extends C {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments), this._chartType = d.LineSeries;
|
|
18
18
|
}
|
|
@@ -106,7 +106,7 @@ class h extends M {
|
|
|
106
106
|
w([
|
|
107
107
|
y
|
|
108
108
|
], h.prototype, "resetSeriesStyling");
|
|
109
|
-
const F = [
|
|
109
|
+
const F = [M, u];
|
|
110
110
|
g(h, F);
|
|
111
111
|
export {
|
|
112
112
|
h as LineChartModel
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { G as n } from "./common.js";
|
|
3
|
-
import {
|
|
3
|
+
import { eM as f } from "./index.js";
|
|
4
4
|
import { M as a, b as l, d as G } from "./x-bounds.js";
|
|
5
5
|
import { m as p } from "./model-setter.js";
|
|
6
6
|
var m = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = (o, e, t, h) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { C as A } from "./chart-model.js";
|
|
3
|
-
import { l as g, m as C, r, n as m, k as L, h as V, g as v, i as T, o as S, j as B, p as x, d as p, q as
|
|
3
|
+
import { l as g, m as C, r, n as m, k as L, h as V, g as v, i as T, o as S, j as B, p as x, d as p, q as M, s as I, t as O, v as D, w as G, f as z } from "./utils.js";
|
|
4
4
|
import { cloneDeep as k } from "es-toolkit/compat";
|
|
5
5
|
import { W as b } from "./chart-object-literals.js";
|
|
6
6
|
import { aq as u } from "./index2.js";
|
|
7
7
|
import { m as n } from "./model-setter.js";
|
|
8
8
|
import { M as d, b as H, d as Y } from "./x-bounds.js";
|
|
9
|
-
import {
|
|
9
|
+
import { eM as P } from "./index.js";
|
|
10
10
|
import { G as y } from "./common.js";
|
|
11
11
|
const W = (t) => {
|
|
12
12
|
for (const i of t.axes ?? [])
|
|
@@ -47,10 +47,10 @@ const W = (t) => {
|
|
|
47
47
|
o.buffer = s;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
},
|
|
50
|
+
}, R = (t, i) => t.axes?.[i]?.tickSpacing, X = (t) => {
|
|
51
51
|
const { config: i, tickSpacing: s, axisIndex: e } = t;
|
|
52
52
|
i.axes?.[e] !== void 0 && (i.axes[e].tickSpacing = s);
|
|
53
|
-
},
|
|
53
|
+
}, J = (t, i) => t.axes?.[i]?.integerOnlyValues ?? !1, K = (t) => {
|
|
54
54
|
const { config: i, integerOnlyValues: s, axisIndex: e } = t;
|
|
55
55
|
g({
|
|
56
56
|
config: i,
|
|
@@ -225,7 +225,7 @@ class c extends A {
|
|
|
225
225
|
return r({
|
|
226
226
|
config: this._config,
|
|
227
227
|
axisIndex: i,
|
|
228
|
-
func: (s) =>
|
|
228
|
+
func: (s) => M(s, this._config)
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
setAxisValueFormat(i, s) {
|
|
@@ -233,7 +233,7 @@ class c extends A {
|
|
|
233
233
|
config: this._config,
|
|
234
234
|
axisIndex: i,
|
|
235
235
|
func: (e) => {
|
|
236
|
-
|
|
236
|
+
I({
|
|
237
237
|
config: this._config,
|
|
238
238
|
valueFormat: s,
|
|
239
239
|
axisIndex: e,
|
|
@@ -408,14 +408,14 @@ class c extends A {
|
|
|
408
408
|
* @param axisIndex Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
|
|
409
409
|
*/
|
|
410
410
|
getTickSpacing(i) {
|
|
411
|
-
return
|
|
411
|
+
return R(this._config, i);
|
|
412
412
|
}
|
|
413
413
|
setTickSpacing(i, s) {
|
|
414
414
|
r({
|
|
415
415
|
config: this._config,
|
|
416
416
|
axisIndex: s,
|
|
417
417
|
func: (e) => {
|
|
418
|
-
|
|
418
|
+
X({
|
|
419
419
|
config: this._config,
|
|
420
420
|
tickSpacing: i,
|
|
421
421
|
axisIndex: e
|
|
@@ -434,11 +434,11 @@ class c extends A {
|
|
|
434
434
|
return r({
|
|
435
435
|
config: this._config,
|
|
436
436
|
axisIndex: i,
|
|
437
|
-
func: (s) =>
|
|
437
|
+
func: (s) => J(this._config, s)
|
|
438
438
|
}) ?? !1;
|
|
439
439
|
}
|
|
440
440
|
setIntegerOnlyValues(i, s) {
|
|
441
|
-
|
|
441
|
+
K({
|
|
442
442
|
config: this._config,
|
|
443
443
|
integerOnlyValues: i,
|
|
444
444
|
axisIndex: s
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { log as B } from "@arcgis/toolkit/log";
|
|
3
3
|
import { a as g } from "./chart-object-literals.js";
|
|
4
|
-
import { r as b,
|
|
4
|
+
import { r as b, eO as E, x as f, cA as j, u as K, B as q, eM as H } from "./index.js";
|
|
5
5
|
import { i as J } from "./index3.js";
|
|
6
6
|
import { a7 as p, ay as A, k as L, p as G, ax as Q, af as U } from "./index2.js";
|
|
7
7
|
import { C as X } from "./chart-model.js";
|
|
@@ -61,7 +61,7 @@ const P = (t) => t.legend?.displayNumericValue ?? !1, I = (t, e) => {
|
|
|
61
61
|
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
62
62
|
}, Be = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Ee = (t, e) => {
|
|
63
63
|
e.series?.[0] && (e.series[0].numericValueFormat ??= L(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= L(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
|
|
64
|
-
},
|
|
64
|
+
}, je = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Ke = (t, e) => {
|
|
65
65
|
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
66
66
|
}, qe = (t) => t.series[0]?.ticks?.visible ?? !1, He = (t, e) => {
|
|
67
67
|
e.series?.[0] && (e.series[0].ticks ??= A(), e.series[0].ticks.visible = t);
|
|
@@ -256,7 +256,7 @@ class i extends X {
|
|
|
256
256
|
async getCustomSortValues(e) {
|
|
257
257
|
const a = h(this._config), o = b(this._config.series);
|
|
258
258
|
let n = [];
|
|
259
|
-
return o === f.PieFromFields ? n = this.numericFields : a.trim() !== "" && o === f.PieFromCategory && (n = await
|
|
259
|
+
return o === f.PieFromFields ? n = this.numericFields : a.trim() !== "" && o === f.PieFromCategory && (n = await j({
|
|
260
260
|
category: a,
|
|
261
261
|
config: this._config,
|
|
262
262
|
layerInfo: this.layerInfo,
|
|
@@ -378,7 +378,7 @@ class i extends X {
|
|
|
378
378
|
/** @private */
|
|
379
379
|
generateDefaultConfig() {
|
|
380
380
|
const e = Q(this.commonStrings);
|
|
381
|
-
return e.series = [U(this.commonStrings,
|
|
381
|
+
return e.series = [U(this.commonStrings, K(this.layerInfo.layer).idField)], e;
|
|
382
382
|
}
|
|
383
383
|
// ---------------------------------------------------------------------------------------------
|
|
384
384
|
// #region Series Methods
|
|
@@ -630,10 +630,10 @@ class i extends X {
|
|
|
630
630
|
* Optimize data labels overlapping setting for the pie chart.
|
|
631
631
|
*/
|
|
632
632
|
get optimizeDataLabelsOverlapping() {
|
|
633
|
-
return
|
|
633
|
+
return je(this._config);
|
|
634
634
|
}
|
|
635
635
|
set optimizeDataLabelsOverlapping(e) {
|
|
636
|
-
|
|
636
|
+
Ke(e, this._config);
|
|
637
637
|
}
|
|
638
638
|
// ---------------------------------------------------------------------------------------------
|
|
639
639
|
// #region Legend Props
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { S as c, s as y, a as g } from "./serial-chart-model.js";
|
|
3
3
|
import { s as m, a as f, b, c as A, d as S, W as p } from "./negative-values-stacked-to-baseline.js";
|
|
4
4
|
import { h as x } from "./serial-chart-data.js";
|
|
5
|
-
import { u as l,
|
|
5
|
+
import { u as l, eM as T } from "./index.js";
|
|
6
6
|
import { m as n } from "./model-setter.js";
|
|
7
7
|
import { a as L, m as C } from "./chart-object-literals.js";
|
|
8
8
|
import { M as V } from "./model-with-line-marker-styling.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { B as y, c8 as P,
|
|
2
|
+
import { B as y, c8 as P, eM as X } from "./index.js";
|
|
3
3
|
import { substitute as Y } from "@arcgis/core/intl.js";
|
|
4
4
|
import { isEmpty as p, isEqual as D } from "es-toolkit/compat";
|
|
5
5
|
import { g as b, d as f, u as v, e as w } from "./utils.js";
|
|
@@ -9,8 +9,8 @@ import { i as T } from "./index3.js";
|
|
|
9
9
|
import { C as V } from "./chart-model.js";
|
|
10
10
|
import { M as B, a as G, W as U, b as j } from "./data-labels-visibility.js";
|
|
11
11
|
import { W as N } from "./data-labels-symbol.js";
|
|
12
|
-
import { W as q, c as
|
|
13
|
-
import { W as
|
|
12
|
+
import { W as q, c as H, d as J } from "./axis-lines-symbol.js";
|
|
13
|
+
import { W as K, a as Q } from "./x-bounds.js";
|
|
14
14
|
import { W as R, c as Z, d as $ } from "./generate-x-axis-title.js";
|
|
15
15
|
import { m as d } from "./model-setter.js";
|
|
16
16
|
import { a as ee } from "./chart-object-literals.js";
|
|
@@ -26,11 +26,11 @@ function I(t, e, i) {
|
|
|
26
26
|
const s = g(t, e, i), r = z(t), o = T(t);
|
|
27
27
|
return s === r || o;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function M(t, e) {
|
|
30
30
|
const { layerFieldsInfo: i } = e, s = y(i, u(t)), r = b(1, t), o = T(t);
|
|
31
31
|
return s === r || o;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function _(t, e) {
|
|
34
34
|
const { layerFieldsInfo: i } = e, s = x(t), r = y(i, s), o = b(0, t), n = T(t);
|
|
35
35
|
return r === o || n;
|
|
36
36
|
}
|
|
@@ -38,12 +38,12 @@ function g(t, e, i) {
|
|
|
38
38
|
const s = x(t), r = u(t), { layerFieldsInfo: o } = e, n = y(o, s), l = y(o, r);
|
|
39
39
|
return Y(i.titleLabels.xAndY, { x: n, y: l });
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const C = (t) => {
|
|
42
42
|
const { x: e, y: i, config: s, layerInfo: r, updateChartTitle: o, updateXAxisTitle: n, updateYAxisTitle: l, commonStrings: h } = t, { layerFieldsInfo: A } = r, W = y(A, e), O = y(A, i);
|
|
43
43
|
!p(e) && n && v(s, 0, W), !p(i) && l && v(s, 1, O), !p(e) && !p(i) && s.title && o && (s.title.content.text = g(s, r, h));
|
|
44
44
|
}, x = (t) => t.series[0]?.x ?? "", u = (t) => t.series[0]?.y ?? "", re = (t) => {
|
|
45
|
-
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n =
|
|
46
|
-
L(i), i.series[0] && (i.series[0].x = e),
|
|
45
|
+
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n = _(i, s), l = M(i, s);
|
|
46
|
+
L(i), i.series[0] && (i.series[0].x = e), C({
|
|
47
47
|
x: e,
|
|
48
48
|
y: u(i),
|
|
49
49
|
config: i,
|
|
@@ -59,8 +59,8 @@ const M = (t) => {
|
|
|
59
59
|
layerInfo: s
|
|
60
60
|
});
|
|
61
61
|
}, oe = (t) => {
|
|
62
|
-
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n =
|
|
63
|
-
L(i), i.series[0] && (i.series[0].y = e),
|
|
62
|
+
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n = _(i, s), l = M(i, s);
|
|
63
|
+
L(i), i.series[0] && (i.series[0].y = e), C({
|
|
64
64
|
x: x(i),
|
|
65
65
|
y: e,
|
|
66
66
|
config: i,
|
|
@@ -260,12 +260,12 @@ const Se = [
|
|
|
260
260
|
se,
|
|
261
261
|
ie,
|
|
262
262
|
R,
|
|
263
|
-
|
|
263
|
+
K,
|
|
264
264
|
Z,
|
|
265
265
|
Q,
|
|
266
266
|
q,
|
|
267
|
-
K,
|
|
268
267
|
H,
|
|
268
|
+
J,
|
|
269
269
|
$
|
|
270
270
|
];
|
|
271
271
|
X(a, Se);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { isEqual as x } from "es-toolkit/compat";
|
|
3
3
|
import { a as _, c as b, d as f } from "./chart-object-literals.js";
|
|
4
|
-
import { cz as v, cD as L,
|
|
4
|
+
import { cz as v, cD as L, eN as M, eO as P, c5 as p, u as N, eP as V, eM as k } from "./index.js";
|
|
5
5
|
import { i as R } from "./index3.js";
|
|
6
6
|
import { m as o } from "./model-setter.js";
|
|
7
7
|
import { S as E } from "./common.js";
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -6,7 +6,7 @@ import { g as T } from "./model-types.js";
|
|
|
6
6
|
import { b as g } from "./rest-js-object-literals.js";
|
|
7
7
|
import { a as x } from "./chart-object-literals.js";
|
|
8
8
|
import { Q as C, a5 as L, a6 as b, t as M } from "./index2.js";
|
|
9
|
-
import { ch as X, b as B, i as A,
|
|
9
|
+
import { ch as X, b as B, i as A, eM as O } from "./index.js";
|
|
10
10
|
import { m as a, C as f } from "./model-setter.js";
|
|
11
11
|
import { o as P, n as R, p as v, d as y } from "./utils.js";
|
|
12
12
|
const D = (t) => {
|
|
@@ -59,22 +59,22 @@ const E = (t) => {
|
|
|
59
59
|
}, N = (t) => {
|
|
60
60
|
const { name: e, axis: i, index: s } = d(t);
|
|
61
61
|
i?.guides?.[s] !== void 0 && (i.guides[s].name = e);
|
|
62
|
-
},
|
|
62
|
+
}, Q = (t) => {
|
|
63
63
|
const { axis: e, index: i } = d(t);
|
|
64
64
|
return e?.guides?.[i]?.label?.text;
|
|
65
|
-
},
|
|
65
|
+
}, U = (t) => {
|
|
66
66
|
const { labelText: e, axis: i, index: s } = d(t), o = i?.guides?.[s]?.label ?? C(e, L(b.GuideLabel), b.GuideLabel);
|
|
67
67
|
i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...o, text: e });
|
|
68
|
-
},
|
|
68
|
+
}, Y = (t) => {
|
|
69
69
|
const { axis: e, index: i } = d(t);
|
|
70
70
|
return e?.guides?.[i]?.above ?? !1;
|
|
71
|
-
},
|
|
71
|
+
}, q = (t) => {
|
|
72
72
|
const { above: e, axis: i, index: s } = d(t);
|
|
73
73
|
i?.guides?.[s] !== void 0 && (i.guides[s].above = e);
|
|
74
|
-
},
|
|
74
|
+
}, z = (t) => {
|
|
75
75
|
const { axis: e, index: i } = d(t);
|
|
76
76
|
return e?.guides?.[i]?.style;
|
|
77
|
-
},
|
|
77
|
+
}, H = (t) => {
|
|
78
78
|
const { style: e, axis: i, index: s } = d(t);
|
|
79
79
|
i?.guides?.[s] !== void 0 && (i.guides[s].style = e);
|
|
80
80
|
}, he = (t) => {
|
|
@@ -92,10 +92,10 @@ const E = (t) => {
|
|
|
92
92
|
}, _e = (t) => {
|
|
93
93
|
const { config: e, index: i, orientation: s } = t, o = s === c.X ? e.axes?.[0] : e.axes?.[1];
|
|
94
94
|
o?.guides !== void 0 && (i !== void 0 && i < o.guides.length ? o.guides.splice(i, 1) : o.guides.pop());
|
|
95
|
-
},
|
|
95
|
+
}, J = (t) => {
|
|
96
96
|
const { axis: e, index: i } = d(t);
|
|
97
97
|
return e?.guides?.[i]?.tooltipReverseColor ?? !1;
|
|
98
|
-
},
|
|
98
|
+
}, K = (t) => {
|
|
99
99
|
const { axis: e } = d(t);
|
|
100
100
|
[t.index !== void 0 ? e?.guides?.[t.index] : e?.guides].flat().forEach((i) => {
|
|
101
101
|
i !== void 0 && (i.tooltipReverseColor = t.reverseColor);
|
|
@@ -171,10 +171,10 @@ class u extends h {
|
|
|
171
171
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
172
172
|
*/
|
|
173
173
|
getGuideLabelText(e, i) {
|
|
174
|
-
return
|
|
174
|
+
return Q({ config: this._config, index: e, orientation: i });
|
|
175
175
|
}
|
|
176
176
|
setGuideLabelText(e, i, s) {
|
|
177
|
-
|
|
177
|
+
U({ labelText: e, config: this._config, index: i, orientation: s });
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
180
|
* Gets whether the guide should be rendered above the other chart elements.
|
|
@@ -183,10 +183,10 @@ class u extends h {
|
|
|
183
183
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
184
184
|
*/
|
|
185
185
|
getGuideAbove(e, i) {
|
|
186
|
-
return
|
|
186
|
+
return Y({ config: this._config, index: e, orientation: i });
|
|
187
187
|
}
|
|
188
188
|
setGuideAbove(e, i, s) {
|
|
189
|
-
|
|
189
|
+
q({ above: e, config: this._config, index: i, orientation: s });
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
192
|
* Gets the guide style.
|
|
@@ -195,10 +195,10 @@ class u extends h {
|
|
|
195
195
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
196
196
|
*/
|
|
197
197
|
getGuideStyle(e, i) {
|
|
198
|
-
return
|
|
198
|
+
return z({ config: this._config, index: e, orientation: i });
|
|
199
199
|
}
|
|
200
200
|
setGuideStyle(e, i, s) {
|
|
201
|
-
|
|
201
|
+
H({ style: e, config: this._config, index: i, orientation: s });
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* Gets whether the tooltip text color should be reversed for a guide.
|
|
@@ -207,10 +207,10 @@ class u extends h {
|
|
|
207
207
|
* @param orientation - The axis orientation of the guide.
|
|
208
208
|
*/
|
|
209
209
|
getGuideTooltipReverseColor(e, i) {
|
|
210
|
-
return
|
|
210
|
+
return J({ config: this._config, index: e, orientation: i });
|
|
211
211
|
}
|
|
212
212
|
setGuideTooltipReverseColor(e, i, s) {
|
|
213
|
-
|
|
213
|
+
K({ reverseColor: e, config: this._config, index: i, orientation: s });
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
* Gets whether the tooltip text color should be reversed for a guide.
|
|
@@ -1926,7 +1926,8 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Whether to automatically add the missing series to cover the split-by values not referenced in the configuration.
|
|
1928
1928
|
* - This property only applies to plain chart configuration object that's constructed following the [WebChart](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/web-chart/#WebChart) specification.
|
|
1929
|
-
* -
|
|
1929
|
+
* - In 5.2, [`addMissingSeries`](/references/charts-components/utils/components/interfaces/#MissingSplitBySeriesProps-addMissingSeries) is `false` by default. If it is set to `true`, the missing series will be added.
|
|
1930
|
+
* - In 6.0, [`addMissingSeries`](/references/charts-components/utils/components/interfaces/#MissingSplitBySeriesProps-addMissingSeries) is `true` by default.
|
|
1930
1931
|
* - When [`seriesTemplate`](/references/charts-components/utils/components/interfaces/#MissingSplitBySeriesProps-seriesTemplate) is omitted, the first existing series from the configuration will be copied to be used as a model for the missing ones. The chart won't render if the series template is not set and there's no series in the configuration.
|
|
1931
1932
|
* - If a chart is configured using a chart model, this property is not necessary as the split-by series will be updated automatically when the model's properties are changed.
|
|
1932
1933
|
*
|