@arcgis/charts-components 5.2.0-next.54 → 5.2.0-next.56
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/{BUOEEUYK.js → 2B7R5EPU.js} +1 -1
- package/dist/cdn/{4CNIERJX.js → 2DHUAIBZ.js} +1 -1
- package/dist/cdn/{QM25LJL6.js → 2EDBRZSQ.js} +1 -1
- package/dist/cdn/2ULHNXRJ.js +2 -0
- package/dist/cdn/37UC5ORG.js +2 -0
- package/dist/cdn/{3WDEAWZX.js → 3MGWFTQH.js} +1 -1
- package/dist/cdn/{OZ5I3KXC.js → 3Z4FG2HV.js} +1 -1
- package/dist/cdn/{4N76NKSQ.js → 4B5XCGIW.js} +1 -1
- package/dist/cdn/{KNN4G3JB.js → 4L2YTJ24.js} +1 -1
- package/dist/cdn/{6EGZEBLQ.js → 4MQOMRB6.js} +1 -1
- package/dist/cdn/{KNP746RO.js → 4PMNY6J6.js} +1 -1
- package/dist/cdn/{LBPN3OKH.js → 4SFDTXQJ.js} +1 -1
- package/dist/cdn/{VPREA6CX.js → 53DFPXFT.js} +1 -1
- package/dist/cdn/{OYWI5PAE.js → 5GXB34LE.js} +1 -1
- package/dist/cdn/{B5MGM6AD.js → 5PAOUYHV.js} +2 -2
- package/dist/cdn/{EKBZUXYB.js → 5WIDEL4K.js} +1 -1
- package/dist/cdn/{EZNGHLSR.js → 6HFL4FZL.js} +1 -1
- package/dist/cdn/{ORKE6J33.js → 6Z7SZ44K.js} +1 -1
- package/dist/cdn/7IK6J5VF.js +2 -0
- package/dist/cdn/{ZZOKDSTD.js → A34ROM33.js} +1 -1
- package/dist/cdn/A6QLIVFM.js +45 -0
- package/dist/cdn/{LMN4NECB.js → ALOMPW5P.js} +1 -1
- package/dist/cdn/{J7XMDEFX.js → BGTNSGMQ.js} +1 -1
- package/dist/cdn/{LGBVDWMK.js → BM62ZXFE.js} +1 -1
- package/dist/cdn/{4UJL6VJ3.js → BNBZEIMG.js} +1 -1
- package/dist/cdn/{23WDH4FI.js → C3YMGEUW.js} +1 -1
- package/dist/cdn/{43DN7ID6.js → C64W7ELG.js} +1 -1
- package/dist/cdn/{4HW6IYHV.js → CB6BIIF2.js} +1 -1
- package/dist/cdn/{ZO4IZDFT.js → CD2NGAV3.js} +1 -1
- package/dist/cdn/{JKHGXCTI.js → CPRSIFTK.js} +1 -1
- package/dist/cdn/{5LFGIBZK.js → DRHDCMI3.js} +1 -1
- package/dist/cdn/{KMJ2IQP7.js → DTNHSQRD.js} +1 -1
- package/dist/cdn/DUAMGCAK.js +2 -0
- package/dist/cdn/{BSQZDV2P.js → E4T5VUXT.js} +1 -1
- package/dist/cdn/EDYZLWGW.js +3 -0
- package/dist/cdn/{LF3I5SMX.js → EKWX6BR7.js} +1 -1
- package/dist/cdn/{4WTYDOTA.js → EQXKSMAG.js} +1 -1
- package/dist/cdn/{H6B2SK7Y.js → EZ6DGROJ.js} +1 -1
- package/dist/cdn/{WLMD3CUK.js → F64XESDA.js} +1 -1
- package/dist/cdn/{LDMINI6S.js → FJPWWKHZ.js} +1 -1
- package/dist/cdn/{QIUSAIXS.js → FQ6B5P53.js} +1 -1
- package/dist/cdn/{W6FPVGPJ.js → G5DDARQJ.js} +1 -1
- package/dist/cdn/G5FTVXQF.js +2 -0
- package/dist/cdn/{54B66D3D.js → GHTCOHC2.js} +1 -1
- package/dist/cdn/{3OOV2HEE.js → GSD4ZLN6.js} +1 -1
- package/dist/cdn/{STE7V4ZZ.js → GVUHKCSZ.js} +1 -1
- package/dist/cdn/GXGUKV7H.js +2 -0
- package/dist/cdn/{223CX3CX.js → HDCSZ2BJ.js} +2 -2
- package/dist/cdn/{FZUKEGI7.js → I6LYDJKQ.js} +1 -1
- package/dist/cdn/{JI3UI5FQ.js → IDAMYFLT.js} +1 -1
- package/dist/cdn/IH2BBWAQ.js +2 -0
- package/dist/cdn/{HQ4XATLY.js → J4C4QWY4.js} +1 -1
- package/dist/cdn/{IZMUEFG7.js → JXZJXDU5.js} +3 -3
- package/dist/cdn/{W65LLW5X.js → JYROXMJN.js} +1 -1
- package/dist/cdn/{JOXPPBNA.js → KI2XMATI.js} +1 -1
- package/dist/cdn/{IIRJV7HP.js → LDBJRKCM.js} +1 -1
- package/dist/cdn/{JT5VM5N6.js → LOEMTYZB.js} +1 -1
- package/dist/cdn/M5K6IJLD.js +2 -0
- package/dist/cdn/{IL4TO3HW.js → M7ZANON3.js} +1 -1
- package/dist/cdn/{UVHDF33O.js → MCJTQ4YF.js} +1 -1
- package/dist/cdn/{WV7XTPHK.js → MEQOANO2.js} +1 -1
- package/dist/cdn/MLA3N4MI.js +2 -0
- package/dist/cdn/{CQRB56BW.js → MR7KELUF.js} +1 -1
- package/dist/cdn/{PZZLUH6L.js → MY2W3RH7.js} +1 -1
- package/dist/cdn/{7RRVJPTW.js → MYK7BBLS.js} +1 -1
- package/dist/cdn/{WSHLYTT6.js → N7D4B5LO.js} +1 -1
- package/dist/cdn/{CI7R2F5C.js → NFU76HOO.js} +1 -1
- package/dist/cdn/{2BGSZGPZ.js → NZVEN4LR.js} +1 -1
- package/dist/cdn/{JMV4L7WL.js → OEYB3NZZ.js} +1 -1
- package/dist/cdn/{U274OJKG.js → OKK5OJ6S.js} +1 -1
- package/dist/cdn/{LYGQJLFB.js → OS5TUH4X.js} +1 -1
- package/dist/cdn/PHUJHKPW.js +2 -0
- package/dist/cdn/{R3RNZJIN.js → PXTV6Y3K.js} +1 -1
- package/dist/cdn/{4S3UBB4K.js → QMJ75W7D.js} +1 -1
- package/dist/cdn/{CA5SZB65.js → QRJMT2DB.js} +1 -1
- package/dist/cdn/{KB5UMMBY.js → RKGAXZQB.js} +1 -1
- package/dist/cdn/{LVGR5T3E.js → RP2TRPHY.js} +1 -1
- package/dist/cdn/{UFB3GU6S.js → TT6WOAKC.js} +1 -1
- package/dist/cdn/{KVDM5PYB.js → UGOWEOTC.js} +1 -1
- package/dist/cdn/{3UBK3J76.js → UIU5UYBO.js} +1 -1
- package/dist/cdn/{YUZVGY4R.js → UYQBMPSN.js} +1 -1
- package/dist/cdn/V23GYHYZ.js +2 -0
- package/dist/cdn/{HZDQYG6D.js → VPJVWP7S.js} +1 -1
- package/dist/cdn/{AV73HH5X.js → XWJ4GDXQ.js} +1 -1
- package/dist/cdn/{OK4I2WDK.js → ZAAMSMQB.js} +1 -1
- package/dist/cdn/{HFPPW74G.js → ZCACFAKY.js} +1 -1
- package/dist/cdn/{SX4X3IVG.js → ZKZOXEXY.js} +1 -1
- package/dist/cdn/{EXCIMJOH.js → ZMBNBTJQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +0 -5
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +25 -33
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +5 -5
- package/dist/chunks/box-plot-data.js +19 -19
- package/dist/chunks/box-plot-model.js +16 -16
- package/dist/chunks/chart-model.js +9 -9
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +19 -19
- package/dist/chunks/gauge-model.js +13 -13
- package/dist/chunks/heat-chart-model.js +7 -7
- package/dist/chunks/histogram-data.js +26 -26
- package/dist/chunks/histogram-model.js +7 -7
- package/dist/chunks/index.js +174 -165
- package/dist/chunks/index2.js +1910 -1821
- package/dist/chunks/index3.js +17 -19
- package/dist/chunks/index4.js +38 -2
- package/dist/chunks/line-chart-model.js +4 -4
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/model-with-y-guides.js +23 -23
- package/dist/chunks/negative-values-stacked-to-baseline.js +12 -12
- package/dist/chunks/pie-chart-data.js +14 -14
- package/dist/chunks/pie-chart-model.js +17 -17
- package/dist/chunks/radar-chart-model.js +4 -4
- package/dist/chunks/scatterplot-model.js +13 -13
- package/dist/chunks/serial-chart-data.js +2 -2
- package/dist/chunks/serial-chart-model.js +18 -18
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/utils.js +13 -13
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +11 -11
- package/dist/chunks/x-bounds.js +15 -15
- package/dist/components/arcgis-chart/customElement.js +4997 -5137
- package/dist/components/arcgis-charts-action-bar/customElement.js +32 -29
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +113 -113
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/components/arcgis-charts-info-modal/customElement.js +6 -6
- 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 +459 -457
- package/dist/json-schema/index.d.ts +35 -4
- package/dist/model/mixins/model-with-multi-axes.d.ts +1 -1
- package/dist/spec/data-source.d.ts +9 -2
- package/dist/utils/chart-config/converter/index.js +40 -40
- package/dist/utils/chart-config/utils/index.d.ts +2 -2
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +8 -1
- package/dist/utils/defaults/interfaces.d.ts +6 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -0
- package/dist/utils/type-guards/chart-types.d.ts +10 -0
- package/package.json +4 -4
- package/dist/cdn/2GEIEFIX.js +0 -2
- package/dist/cdn/35R7YJXM.js +0 -3
- package/dist/cdn/4NKFXLHB.js +0 -2
- package/dist/cdn/6ZIFXUKN.js +0 -45
- package/dist/cdn/D6WL3G34.js +0 -2
- package/dist/cdn/DYCCUVNT.js +0 -2
- package/dist/cdn/FDXN5BIJ.js +0 -2
- package/dist/cdn/GJKX6UCH.js +0 -2
- package/dist/cdn/KTRSRC2A.js +0 -2
- package/dist/cdn/O3N5YFJC.js +0 -2
- package/dist/cdn/OQ56CBAK.js +0 -2
- package/dist/cdn/RZRAOK3W.js +0 -2
- package/dist/cdn/UWAFXDFW.js +0 -2
- /package/dist/cdn/{HRUQXEFI.js → 22WGB4CQ.js} +0 -0
- /package/dist/cdn/{C4O77AVT.js → 3CGAUDYD.js} +0 -0
- /package/dist/cdn/{K25GJKPH.js → 3FZCVKWJ.js} +0 -0
- /package/dist/cdn/{4ASVJDBN.js → 3GVTYZ2I.js} +0 -0
- /package/dist/cdn/{RTVU7ANC.js → 4EBMUPEV.js} +0 -0
- /package/dist/cdn/{OZSAA5YQ.js → 4VL2SBHK.js} +0 -0
- /package/dist/cdn/{Q3ZQR5JF.js → 7WVTY3XI.js} +0 -0
- /package/dist/cdn/{VEXNULZX.js → A2NFOGT2.js} +0 -0
- /package/dist/cdn/{SWEIMWH2.js → ASZ6YFIL.js} +0 -0
- /package/dist/cdn/{7CGAXWPM.js → AZKX3FMB.js} +0 -0
- /package/dist/cdn/{O25MQAZU.js → AZMQPJO3.js} +0 -0
- /package/dist/cdn/{6RG6AF7N.js → CDJRYMBP.js} +0 -0
- /package/dist/cdn/{ZCAHK6VZ.js → CHMLTTRN.js} +0 -0
- /package/dist/cdn/{BAPR67OA.js → CL5G6D6W.js} +0 -0
- /package/dist/cdn/{WWIRRYDD.js → CMGCZ4MF.js} +0 -0
- /package/dist/cdn/{Q5E66RNY.js → CVJSVWF3.js} +0 -0
- /package/dist/cdn/{MDPDU2BA.js → D3KIBJKD.js} +0 -0
- /package/dist/cdn/{GZZJATH3.js → DJPMW6UC.js} +0 -0
- /package/dist/cdn/{2R5BXKVB.js → EXS2KOEA.js} +0 -0
- /package/dist/cdn/{ZYK5XBZK.js → GP3LPIRJ.js} +0 -0
- /package/dist/cdn/{57VIC2YX.js → HBOYEK6P.js} +0 -0
- /package/dist/cdn/{GEHO65XE.js → HQMOMCWF.js} +0 -0
- /package/dist/cdn/{7MEYUIY2.js → HSQ32NUA.js} +0 -0
- /package/dist/cdn/{DGJATKEL.js → IUOORM26.js} +0 -0
- /package/dist/cdn/{R6XIGSQS.js → JZ5HUNM5.js} +0 -0
- /package/dist/cdn/{RLCLIRL6.js → KOCZJFY6.js} +0 -0
- /package/dist/cdn/{XVK4ONRA.js → LHDBHPXR.js} +0 -0
- /package/dist/cdn/{YS73YUW5.js → MVCB4RM7.js} +0 -0
- /package/dist/cdn/{TQLMPVI5.js → MZ2RZ62O.js} +0 -0
- /package/dist/cdn/{F7IPTEHX.js → OSUM4CWA.js} +0 -0
- /package/dist/cdn/{AFE4UMQE.js → PAQGR4DD.js} +0 -0
- /package/dist/cdn/{HWHKCIYW.js → PEEVY5UG.js} +0 -0
- /package/dist/cdn/{XWLP2CHH.js → TGEHTOWR.js} +0 -0
- /package/dist/cdn/{3UDKG6TV.js → TSSN2OW3.js} +0 -0
- /package/dist/cdn/{L5J4TYCU.js → UB36FUCN.js} +0 -0
- /package/dist/cdn/{JEW6MSOC.js → V7AEHY25.js} +0 -0
- /package/dist/cdn/{JNFMKAES.js → VNNTABNO.js} +0 -0
- /package/dist/cdn/{X6QMN2HV.js → VT6X6QMA.js} +0 -0
- /package/dist/cdn/{R6T7WJQJ.js → WKQB6Z7Z.js} +0 -0
package/dist/chunks/index3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import K from "@esri/arcgis-html-sanitizer";
|
|
3
|
-
import { isEmpty as U, isEqual as
|
|
4
|
-
import {
|
|
3
|
+
import { isEmpty as U, isEqual as x } from "lodash-es";
|
|
4
|
+
import { ar as C, aB as q, aA as X, aF as $, ag as Y, G as L, L as Q, u as Z, p as j, aC as J } from "./index.js";
|
|
5
5
|
import { g as S } from "./series-types.js";
|
|
6
6
|
import { p as b, q as ee, l as te, k as ie, s as p, u as n, g as ae } from "./chart-object-literals.js";
|
|
7
7
|
import { g as T, i as y, h as re } from "./rest-js-object-literals.js";
|
|
@@ -195,8 +195,6 @@ const ne = {
|
|
|
195
195
|
innerRadius: 25,
|
|
196
196
|
displayPin: !1
|
|
197
197
|
},
|
|
198
|
-
gaugeFirstLabelId: "arcgis_charts_gauge_first_label",
|
|
199
|
-
gaugeLastLabelId: "arcgis_charts_gauge_last_label",
|
|
200
198
|
// containers
|
|
201
199
|
headerContainer: {
|
|
202
200
|
layout: "vertical",
|
|
@@ -336,7 +334,7 @@ const ne = {
|
|
|
336
334
|
color: [0, 0, 0, 255],
|
|
337
335
|
chartEllipsis: "...",
|
|
338
336
|
backgroundColor: [255, 255, 255, 255],
|
|
339
|
-
grayColor:
|
|
337
|
+
grayColor: C,
|
|
340
338
|
// medium gray
|
|
341
339
|
xAxisMinGridDistance: 120,
|
|
342
340
|
xCategoryAxisMinGridDistance: 40,
|
|
@@ -474,11 +472,11 @@ const ne = {
|
|
|
474
472
|
text: "null",
|
|
475
473
|
symbol: {
|
|
476
474
|
type: y.SFS,
|
|
477
|
-
color:
|
|
475
|
+
color: C,
|
|
478
476
|
outline: {
|
|
479
477
|
type: y.SLS,
|
|
480
478
|
style: T.Solid,
|
|
481
|
-
color:
|
|
479
|
+
color: C,
|
|
482
480
|
width: 1
|
|
483
481
|
}
|
|
484
482
|
}
|
|
@@ -536,7 +534,7 @@ const ne = {
|
|
|
536
534
|
function fe(t) {
|
|
537
535
|
return t?.colorMatch ?? !1;
|
|
538
536
|
}
|
|
539
|
-
function
|
|
537
|
+
function Ce(t) {
|
|
540
538
|
let e = L();
|
|
541
539
|
if (t !== void 0) {
|
|
542
540
|
const i = S(t.series);
|
|
@@ -544,7 +542,7 @@ function xe(t) {
|
|
|
544
542
|
}
|
|
545
543
|
return e;
|
|
546
544
|
}
|
|
547
|
-
function
|
|
545
|
+
function xe(t) {
|
|
548
546
|
return t?.map((e) => e.type) ?? [];
|
|
549
547
|
}
|
|
550
548
|
function Le(t) {
|
|
@@ -601,8 +599,8 @@ function Ae(t) {
|
|
|
601
599
|
maxLineThreePlusSeriesCountTotal: z,
|
|
602
600
|
maxPieChartSliceCountTotal: N,
|
|
603
601
|
maxGaugeByFeaturesLimit: w,
|
|
604
|
-
maxBoxPlotSeriesCount:
|
|
605
|
-
maxBoxUniqueSeriesCountTotal:
|
|
602
|
+
maxBoxPlotSeriesCount: D,
|
|
603
|
+
maxBoxUniqueSeriesCountTotal: I,
|
|
606
604
|
maxBoxTwoSeriesCountTotal: W,
|
|
607
605
|
maxBoxTwoSeriesCountPerSeries: V,
|
|
608
606
|
maxBoxThreePlusSeriesCountTotal: E,
|
|
@@ -630,7 +628,7 @@ function Ae(t) {
|
|
|
630
628
|
case n.BoxPlotSeries:
|
|
631
629
|
{
|
|
632
630
|
const g = e / i;
|
|
633
|
-
i <=
|
|
631
|
+
i <= D ? i === 0 ? o = !0 : i === 1 ? o = e <= I : i === 2 ? o = e <= W && g <= V : i > 2 && (o = e <= E && g <= G) : o = !1;
|
|
634
632
|
}
|
|
635
633
|
break;
|
|
636
634
|
case n.HeatSeries:
|
|
@@ -806,10 +804,10 @@ function ce(t, e) {
|
|
|
806
804
|
function we(t) {
|
|
807
805
|
return t.orderOptions?.orderByFields?.map((e) => ce(e).fieldToSort) ?? [];
|
|
808
806
|
}
|
|
809
|
-
function
|
|
807
|
+
function De(t) {
|
|
810
808
|
return t === h.BarAndLineSplitBy || t === h.BarAndLineSplitByNoAggregation || t === h.BoxPlotMonoFieldAndSplitBy || t === h.BoxPlotMultiFieldsAndSplitBy || t === h.BoxPlotMonoFieldAndCategoryAndSplitBy;
|
|
811
809
|
}
|
|
812
|
-
function
|
|
810
|
+
function Ie(t, e) {
|
|
813
811
|
let { selectionItems: i } = t ?? {};
|
|
814
812
|
const { selectionOIDs: r } = t ?? {};
|
|
815
813
|
let { selectionItems: a } = e ?? {};
|
|
@@ -818,7 +816,7 @@ function De(t, e) {
|
|
|
818
816
|
[j]: void 0
|
|
819
817
|
});
|
|
820
818
|
i !== void 0 && (i = i.map(o)), a !== void 0 && (a = a.map(o));
|
|
821
|
-
const u = !
|
|
819
|
+
const u = !x(i, a), l = !x(r, s);
|
|
822
820
|
return u || l;
|
|
823
821
|
}
|
|
824
822
|
function We(t) {
|
|
@@ -881,18 +879,18 @@ export {
|
|
|
881
879
|
ce as h,
|
|
882
880
|
we as i,
|
|
883
881
|
Oe as j,
|
|
884
|
-
|
|
882
|
+
xe as k,
|
|
885
883
|
Le as l,
|
|
886
884
|
ke as m,
|
|
887
|
-
|
|
888
|
-
|
|
885
|
+
Ie as n,
|
|
886
|
+
Ce as o,
|
|
889
887
|
Ge as p,
|
|
890
888
|
F as q,
|
|
891
889
|
Ae as r,
|
|
892
890
|
de as s,
|
|
893
891
|
Me as t,
|
|
894
892
|
We as u,
|
|
895
|
-
|
|
893
|
+
De as v,
|
|
896
894
|
ve as w,
|
|
897
895
|
Ne as x,
|
|
898
896
|
He as y,
|
package/dist/chunks/index4.js
CHANGED
|
@@ -4,8 +4,8 @@ import E from "ajv";
|
|
|
4
4
|
import { g as w } from "./runtime.js";
|
|
5
5
|
import { fetchT9nStringsBundle as S } from "@arcgis/toolkit/intl";
|
|
6
6
|
import { getElementLocale as v } from "@arcgis/toolkit/intl/dom";
|
|
7
|
-
import { C as u,
|
|
8
|
-
import { g as ie,
|
|
7
|
+
import { C as u, d4 as M, Y as T, m as F, Z as V, af as z, ak as G, E as A, aw as U, I as L, a7 as D, bk as H, a as $, aF as J, bg as _, ct as K, V as Q, k as Z, n as X, l as Y, b9 as ee, aG as te } from "./index2.js";
|
|
8
|
+
import { g as ie, aD as re } from "./index.js";
|
|
9
9
|
import { q as x, C as h, h as ne } from "./index3.js";
|
|
10
10
|
import { g as C } from "./series-types.js";
|
|
11
11
|
import { u as l, v as ae, r as oe } from "./chart-object-literals.js";
|
|
@@ -5839,6 +5839,15 @@ They are also defined as properties of the layer definition when there are no de
|
|
|
5839
5839
|
},
|
|
5840
5840
|
WebChartDataItemValue: {
|
|
5841
5841
|
anyOf: [
|
|
5842
|
+
{
|
|
5843
|
+
type: "array",
|
|
5844
|
+
items: {
|
|
5845
|
+
type: [
|
|
5846
|
+
"number",
|
|
5847
|
+
"string"
|
|
5848
|
+
]
|
|
5849
|
+
}
|
|
5850
|
+
},
|
|
5842
5851
|
{
|
|
5843
5852
|
type: "string",
|
|
5844
5853
|
format: "date-time"
|
|
@@ -5971,6 +5980,30 @@ They are also defined as properties of the layer definition when there are no de
|
|
|
5971
5980
|
description: "JSON representation of the pre-computed category data for heat chart axes.",
|
|
5972
5981
|
title: "WebHeatChartAxesData"
|
|
5973
5982
|
},
|
|
5983
|
+
WebChartGaugeChartDataItem: {
|
|
5984
|
+
type: "object",
|
|
5985
|
+
properties: {
|
|
5986
|
+
dataItems: {
|
|
5987
|
+
type: "array",
|
|
5988
|
+
items: {
|
|
5989
|
+
$ref: "#/definitions/WebChartDataItem"
|
|
5990
|
+
}
|
|
5991
|
+
},
|
|
5992
|
+
calculatedAxisMinimum: {
|
|
5993
|
+
type: "number"
|
|
5994
|
+
},
|
|
5995
|
+
calculatedAxisMaximum: {
|
|
5996
|
+
type: "number"
|
|
5997
|
+
},
|
|
5998
|
+
gaugeValue: {
|
|
5999
|
+
type: "number"
|
|
6000
|
+
}
|
|
6001
|
+
},
|
|
6002
|
+
required: [
|
|
6003
|
+
"dataItems"
|
|
6004
|
+
],
|
|
6005
|
+
title: "WebChartGaugeChartDataItem"
|
|
6006
|
+
},
|
|
5974
6007
|
ScatterplotTrendLineData: {
|
|
5975
6008
|
type: "object",
|
|
5976
6009
|
properties: {
|
|
@@ -6158,6 +6191,9 @@ Only applicable to bar chart, line chart.`
|
|
|
6158
6191
|
{
|
|
6159
6192
|
$ref: "#/definitions/WebChartBoxPlotDataItem"
|
|
6160
6193
|
},
|
|
6194
|
+
{
|
|
6195
|
+
$ref: "#/definitions/WebChartGaugeChartDataItem"
|
|
6196
|
+
},
|
|
6161
6197
|
{
|
|
6162
6198
|
$ref: "#/definitions/WebChartGenericDataItem"
|
|
6163
6199
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { u as m } from "./chart-object-literals.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Y as S, $ as n, ap as d, aF as c } from "./index.js";
|
|
4
4
|
import { an as a } from "./index2.js";
|
|
5
5
|
import { m as y } from "./model-setter.js";
|
|
6
6
|
import { M as g } from "./model-with-line-marker-styling.js";
|
|
@@ -8,10 +8,10 @@ import { s as u, a as p, b, c as I, d as v, W as _ } from "./negative-values-sta
|
|
|
8
8
|
import { S as C, s as L, a as M } from "./serial-chart-model.js";
|
|
9
9
|
import { h as f } from "./serial-chart-data.js";
|
|
10
10
|
import { h as k } from "./utils.js";
|
|
11
|
-
var
|
|
12
|
-
for (var i =
|
|
11
|
+
var F = Object.defineProperty, D = Object.getOwnPropertyDescriptor, x = (o, e, s, t) => {
|
|
12
|
+
for (var i = D(e, s), r = o.length - 1, l; r >= 0; r--)
|
|
13
13
|
(l = o[r]) && (i = l(e, s, i) || i);
|
|
14
|
-
return i &&
|
|
14
|
+
return i && F(e, s, i), i;
|
|
15
15
|
};
|
|
16
16
|
class h extends C {
|
|
17
17
|
constructor() {
|
|
@@ -3,7 +3,7 @@ import { fetchT9nStringsBundle as d } from "@arcgis/toolkit/intl";
|
|
|
3
3
|
import { getElementLocale as c } from "@arcgis/toolkit/intl/dom";
|
|
4
4
|
import { g } from "./runtime.js";
|
|
5
5
|
import { convertChartSpec as h } from "../utils/chart-config/converter/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { X as f } from "./index.js";
|
|
7
7
|
import { ac as o, bx as l, I as y, an as u } from "./index2.js";
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "luxon";
|
|
@@ -3,10 +3,10 @@ import { C as b } from "./chart-model.js";
|
|
|
3
3
|
import { r as o, l as h, s as x, m as A, a as C, n as m, o as L, p as V, h as v } from "./utils.js";
|
|
4
4
|
import { cloneDeep as T } from "lodash-es";
|
|
5
5
|
import { j as y } from "./chart-object-literals.js";
|
|
6
|
-
import {
|
|
6
|
+
import { J as g } from "./index.js";
|
|
7
7
|
import { m as r } from "./model-setter.js";
|
|
8
|
-
import { g as S, b as B, e as
|
|
9
|
-
import { M as
|
|
8
|
+
import { g as S, b as B, e as I, f as M, c as O, d as D, a as G, s as z } from "./utils2.js";
|
|
9
|
+
import { M as d, b as H, d as Y } from "./x-bounds.js";
|
|
10
10
|
import { G as p } from "./common.js";
|
|
11
11
|
const P = (t) => {
|
|
12
12
|
for (const i of t.axes ?? [])
|
|
@@ -14,8 +14,8 @@ const P = (t) => {
|
|
|
14
14
|
return i.grid;
|
|
15
15
|
}, F = (t, i, s) => {
|
|
16
16
|
const e = i.axes;
|
|
17
|
-
s.forEach((
|
|
18
|
-
e?.[
|
|
17
|
+
(s ?? e?.map((f, l) => l) ?? []).forEach((f) => {
|
|
18
|
+
e?.[f] !== void 0 && (e[f].grid = T(t));
|
|
19
19
|
});
|
|
20
20
|
}, W = (t, i) => i.axes?.[t]?.visible ?? !0, Z = (t, i, s) => {
|
|
21
21
|
const e = s.axes?.[i];
|
|
@@ -28,13 +28,13 @@ const P = (t) => {
|
|
|
28
28
|
}, $ = (t, i) => t.axes?.[i]?.buffer ?? !1, U = (t) => {
|
|
29
29
|
const { config: i, buffer: s, axisIndex: e } = t, c = i.axes?.[e];
|
|
30
30
|
c !== void 0 && (c.buffer = s);
|
|
31
|
-
}, E = (t, i) => t.axes?.[i]?.tickSpacing,
|
|
31
|
+
}, E = (t, i) => t.axes?.[i]?.tickSpacing, J = (t) => {
|
|
32
32
|
const { config: i, tickSpacing: s, axisIndex: e } = t;
|
|
33
33
|
i.axes?.[e] !== void 0 && (i.axes[e].tickSpacing = s);
|
|
34
|
-
},
|
|
34
|
+
}, R = (t, i) => t.axes?.[i]?.integerOnlyValues ?? !1, X = (t) => {
|
|
35
35
|
const { config: i, integerOnlyValues: s, axisIndex: e } = t;
|
|
36
36
|
i.axes?.[e] !== void 0 && (i.axes[e].integerOnlyValues = s);
|
|
37
|
-
},
|
|
37
|
+
}, q = (t) => t.horizontalAxisLabelsBehavior ?? y.Rotate, K = (t, i) => {
|
|
38
38
|
i.horizontalAxisLabelsBehavior = t;
|
|
39
39
|
}, Q = (t) => t.verticalAxisLabelsBehavior ?? y.Wrap, ii = (t, i) => {
|
|
40
40
|
i.verticalAxisLabelsBehavior = t;
|
|
@@ -112,7 +112,7 @@ class a extends b {
|
|
|
112
112
|
return o({
|
|
113
113
|
config: this._config,
|
|
114
114
|
axisIndex: i,
|
|
115
|
-
func: (s) =>
|
|
115
|
+
func: (s) => I(s, this._config)
|
|
116
116
|
}) ?? !0;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
@@ -127,7 +127,7 @@ class a extends b {
|
|
|
127
127
|
config: this._config,
|
|
128
128
|
axisIndex: s,
|
|
129
129
|
func: (e) => {
|
|
130
|
-
|
|
130
|
+
M(i, e, this._config), this.emitConfigUpdate("setAxisLabelsVisibility");
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
});
|
|
@@ -141,7 +141,7 @@ class a extends b {
|
|
|
141
141
|
return o({
|
|
142
142
|
config: this._config,
|
|
143
143
|
axisIndex: i,
|
|
144
|
-
func: (s) =>
|
|
144
|
+
func: (s) => O(s, this._config)
|
|
145
145
|
}) ?? !1;
|
|
146
146
|
}
|
|
147
147
|
setAxisTitleVisibility(i, s) {
|
|
@@ -149,7 +149,7 @@ class a extends b {
|
|
|
149
149
|
config: this._config,
|
|
150
150
|
axisIndex: s,
|
|
151
151
|
func: (e) => {
|
|
152
|
-
|
|
152
|
+
D(i, e, this._config);
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
}
|
|
@@ -282,7 +282,7 @@ class a extends b {
|
|
|
282
282
|
return o({
|
|
283
283
|
config: this._config,
|
|
284
284
|
axisIndex: i,
|
|
285
|
-
func: (s) =>
|
|
285
|
+
func: (s) => G(this._config, s)
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
288
|
setAxisTitleSymbol(i, s) {
|
|
@@ -298,7 +298,7 @@ class a extends b {
|
|
|
298
298
|
* Gets the horizontal axis labels behavior for the chart.
|
|
299
299
|
*/
|
|
300
300
|
getHorizontalAxisLabelsBehavior() {
|
|
301
|
-
return
|
|
301
|
+
return q(this._config);
|
|
302
302
|
}
|
|
303
303
|
setHorizontalAxisLabelsBehavior(i) {
|
|
304
304
|
K(i, this._config);
|
|
@@ -319,7 +319,7 @@ class a extends b {
|
|
|
319
319
|
return P(this._config);
|
|
320
320
|
}
|
|
321
321
|
setGridLinesSymbol(i, s) {
|
|
322
|
-
|
|
322
|
+
F(i, this._config, s);
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
325
|
* Get the default x-axis title text.
|
|
@@ -420,7 +420,7 @@ class a extends b {
|
|
|
420
420
|
config: this._config,
|
|
421
421
|
axisIndex: s,
|
|
422
422
|
func: (e) => {
|
|
423
|
-
|
|
423
|
+
J({
|
|
424
424
|
config: this._config,
|
|
425
425
|
tickSpacing: i,
|
|
426
426
|
axisIndex: e
|
|
@@ -440,7 +440,7 @@ class a extends b {
|
|
|
440
440
|
return o({
|
|
441
441
|
config: this._config,
|
|
442
442
|
axisIndex: i,
|
|
443
|
-
func: (s) =>
|
|
443
|
+
func: (s) => R(this._config, s)
|
|
444
444
|
}) ?? !1;
|
|
445
445
|
}
|
|
446
446
|
setIntegerOnlyValues(i, s) {
|
|
@@ -448,7 +448,7 @@ class a extends b {
|
|
|
448
448
|
config: this._config,
|
|
449
449
|
axisIndex: s,
|
|
450
450
|
func: (e) => {
|
|
451
|
-
|
|
451
|
+
X({
|
|
452
452
|
config: this._config,
|
|
453
453
|
integerOnlyValues: i,
|
|
454
454
|
axisIndex: e
|
|
@@ -563,12 +563,12 @@ n([
|
|
|
563
563
|
n([
|
|
564
564
|
r
|
|
565
565
|
], a.prototype, "cursorCrosshair");
|
|
566
|
-
var gi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor,
|
|
566
|
+
var gi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, _ = (t, i, s, e) => {
|
|
567
567
|
for (var c = ui(i, s), f = t.length - 1, l; f >= 0; f--)
|
|
568
568
|
(l = t[f]) && (c = l(i, s, c) || c);
|
|
569
569
|
return c && gi(i, s, c), c;
|
|
570
570
|
};
|
|
571
|
-
class u extends
|
|
571
|
+
class u extends d {
|
|
572
572
|
/**
|
|
573
573
|
* Gets the number guides in the Y-axis guides list.
|
|
574
574
|
*
|
|
@@ -593,13 +593,13 @@ class u extends _ {
|
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
|
|
596
|
+
_([
|
|
597
597
|
r
|
|
598
598
|
], u.prototype, "addYAxisGuide");
|
|
599
|
-
|
|
599
|
+
_([
|
|
600
600
|
r
|
|
601
601
|
], u.prototype, "deleteYAxisGuide");
|
|
602
|
-
const hi = [
|
|
602
|
+
const hi = [d];
|
|
603
603
|
v(u, hi);
|
|
604
604
|
export {
|
|
605
605
|
a as M,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { s as c, a as k, g as b, b as n } from "./series.js";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as m } from "./index.js";
|
|
4
4
|
import { g as i, m as a } from "./index5.js";
|
|
5
5
|
import { C as v, m as y } from "./model-setter.js";
|
|
6
|
-
const
|
|
6
|
+
const _ = (s, e) => {
|
|
7
7
|
if (i(e.series[s]) || a(e.series[s]))
|
|
8
8
|
return b(e.series[s]);
|
|
9
|
-
},
|
|
9
|
+
}, f = (s, e, r) => {
|
|
10
10
|
(i(r.series[e]) || a(r.series[e])) && c(s, r.series[e]);
|
|
11
11
|
}, O = (s, e) => {
|
|
12
12
|
if (i(e.series[s]) || a(e.series[s]))
|
|
@@ -34,10 +34,10 @@ const f = (s, e) => {
|
|
|
34
34
|
}, q = (s, e) => i(e.series[s]) || a(e.series[s]) ? e.series[s].showArea ?? !1 : !1, R = (s) => {
|
|
35
35
|
const { visible: e, seriesIndex: r, config: t } = s;
|
|
36
36
|
(i(t.series[r]) || a(t.series[r])) && (t.series[r].showArea = e);
|
|
37
|
-
},
|
|
37
|
+
}, E = (s, e) => i(e.series[s]) || a(e.series[s]) ? e.series[s].markerVisible ?? !0 : !1, G = (s) => {
|
|
38
38
|
const { visible: e, seriesIndex: r, config: t } = s;
|
|
39
39
|
(i(t.series[r]) || a(t.series[r])) && (t.series[r].markerVisible = e);
|
|
40
|
-
},
|
|
40
|
+
}, H = (s, e) => i(e.series[s]) || a(e.series[s]) ? e.series[s].areaColor : void 0, J = (s, e) => i(e.series[s]) || a(e.series[s]) ? e.series?.[s]?.connectLines : void 0, K = (s) => {
|
|
41
41
|
const { connect: e, seriesIndex: r, config: t } = s;
|
|
42
42
|
(i(t.series[r]) || a(t.series[r])) && (t.series[r].connectLines = e);
|
|
43
43
|
};
|
|
@@ -74,23 +74,23 @@ L([
|
|
|
74
74
|
], C.prototype, "setNegativeValuesStackedToBaseline");
|
|
75
75
|
export {
|
|
76
76
|
C as W,
|
|
77
|
-
|
|
77
|
+
f as a,
|
|
78
78
|
j as b,
|
|
79
79
|
w as c,
|
|
80
80
|
P as d,
|
|
81
81
|
O as e,
|
|
82
82
|
W as f,
|
|
83
|
-
|
|
83
|
+
_ as g,
|
|
84
84
|
A as h,
|
|
85
85
|
z as i,
|
|
86
86
|
D as j,
|
|
87
87
|
F as k,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
J as l,
|
|
89
|
+
K as m,
|
|
90
90
|
q as n,
|
|
91
91
|
R as o,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
E as p,
|
|
93
|
+
G as q,
|
|
94
|
+
H as r,
|
|
95
95
|
d as s
|
|
96
96
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as O } from "@arcgis/core/intl.js";
|
|
3
|
-
import { memoize as
|
|
3
|
+
import { memoize as W, isEmpty as $, isNull as M, cloneDeep as R } from "lodash-es";
|
|
4
4
|
import { P as g, a as y } from "./common.js";
|
|
5
5
|
import { g as A, u as q } from "./utils.js";
|
|
6
|
-
import { g as
|
|
6
|
+
import { g as U } from "./data.js";
|
|
7
7
|
import { b as k } from "./series-length.js";
|
|
8
8
|
import { g as z } from "./utils2.js";
|
|
9
|
-
import {
|
|
9
|
+
import { X as G, w as _, a6 as X } from "./index.js";
|
|
10
10
|
import { d as P } from "./index3.js";
|
|
11
11
|
import { m as h, an as L, n as V } from "./index2.js";
|
|
12
12
|
import { i as w } from "./index4.js";
|
|
13
|
-
import { r as m, p as b, n as F, u as
|
|
14
|
-
import { i as
|
|
13
|
+
import { r as m, p as b, n as F, u as H } from "./chart-object-literals.js";
|
|
14
|
+
import { i as J } from "./rest-js-object-literals.js";
|
|
15
15
|
function v(r) {
|
|
16
16
|
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: s, mode: i }) : "", l = k(t), d = w(t);
|
|
17
17
|
return a === l || d;
|
|
@@ -27,15 +27,15 @@ function B(r) {
|
|
|
27
27
|
return a === l || d;
|
|
28
28
|
}
|
|
29
29
|
const I = (r) => r.series?.[0]?.x ?? "";
|
|
30
|
-
function
|
|
30
|
+
function Q(r, t) {
|
|
31
31
|
const e = r.series?.[0];
|
|
32
32
|
return [`${t === g.Category ? e.y : V} ${b.Descending}`];
|
|
33
33
|
}
|
|
34
34
|
const K = (r, t) => {
|
|
35
35
|
let e = y.valueDesc;
|
|
36
|
-
const i = r.orderOptions?.data?.orderType ??
|
|
36
|
+
const i = r.orderOptions?.data?.orderType ?? Q(r, t), s = r.orderOptions?.data && "orderBy" in r.orderOptions.data ? r.orderOptions.data.orderBy : b.Descending;
|
|
37
37
|
return i === F.Category && Array.isArray(s) ? e = y.customSort : i === F.Category ? s === b.Ascending ? e = y.labelAsc : e = y.labelDesc : s === b.Ascending ? e = y.valueAsc : e = y.valueDesc, e;
|
|
38
|
-
}, f =
|
|
38
|
+
}, f = W(
|
|
39
39
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
40
40
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
41
41
|
(r) => {
|
|
@@ -52,14 +52,14 @@ const K = (r, t) => {
|
|
|
52
52
|
return t === g.Fields && e.length === 0 ? i = m.Sum : i = r.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? m.NoAggregation, i;
|
|
53
53
|
};
|
|
54
54
|
function Y(r) {
|
|
55
|
-
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = L(e?.layer).idField, l =
|
|
55
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = L(e?.layer).idField, l = X(s, a), d = I(t), c = t.series[0]?.dataLabels, o = {
|
|
56
56
|
...l,
|
|
57
57
|
x: i === g.Category ? d : h,
|
|
58
58
|
slices: t.series?.[0]?.slices,
|
|
59
59
|
dataLabels: {
|
|
60
60
|
...l.dataLabels,
|
|
61
|
-
type: l.dataLabels?.type ??
|
|
62
|
-
content: { ...l.dataLabels?.content, ...c?.content, type:
|
|
61
|
+
type: l.dataLabels?.type ?? H.Text,
|
|
62
|
+
content: { ...l.dataLabels?.content, ...c?.content, type: J.TS },
|
|
63
63
|
visible: c?.visible ?? !1
|
|
64
64
|
},
|
|
65
65
|
innerRadiusSize: t.series?.[0]?.innerRadius,
|
|
@@ -83,7 +83,7 @@ function Y(r) {
|
|
|
83
83
|
] : []
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
return i === g.Category && o.query !== void 0 ? o.query.groupByFieldsForStatistics = [d] : delete o.query?.groupByFieldsForStatistics,
|
|
86
|
+
return i === g.Category && o.query !== void 0 ? o.query.groupByFieldsForStatistics = [d] : delete o.query?.groupByFieldsForStatistics, R(o);
|
|
87
87
|
}
|
|
88
88
|
function D(r) {
|
|
89
89
|
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, { layerFieldsInfo: a } = e, { idField: l, isTraditionalTypeOID: d } = L(e.layer), c = I(t), o = f(t), n = T(t, i), u = d && (o.length === 0 || o.includes(l)), p = _(n, s), x = u ? "" : o.map((E) => P(a ?? [], E)).join(", "), C = P(a ?? [], c);
|
|
@@ -94,7 +94,7 @@ function D(r) {
|
|
|
94
94
|
}) : n === m.Count ? S = O(s.titleLabels.aggrTypeCategory, {
|
|
95
95
|
aggregationType: p,
|
|
96
96
|
category: C
|
|
97
|
-
}) : o.length > 0 && (C === h ||
|
|
97
|
+
}) : o.length > 0 && (C === h || $(C) || M(C) ? S = O(s.titleLabels.aggrTypeOfAggrFields, {
|
|
98
98
|
aggregationType: p,
|
|
99
99
|
aggregationFields: x
|
|
100
100
|
}) : S = O(s.titleLabels.aggrTypeOfAggrFieldsByCategory, {
|
|
@@ -149,7 +149,7 @@ function j(r) {
|
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
t.length <= 1 ? n.query.where = o.query?.where : delete n.query.where;
|
|
152
|
-
const u =
|
|
152
|
+
const u = U({
|
|
153
153
|
config: i,
|
|
154
154
|
xAxisField: I(i),
|
|
155
155
|
numericFields: t,
|
|
@@ -3,7 +3,7 @@ import { log as W } from "@arcgis/toolkit/log";
|
|
|
3
3
|
import { u as p } from "./chart-object-literals.js";
|
|
4
4
|
import { Y as L, an as k } from "./index2.js";
|
|
5
5
|
import { i as A } from "./index4.js";
|
|
6
|
-
import {
|
|
6
|
+
import { X as d, a8 as T, a2 as O, aB as V, a5 as w, a6 as G } from "./index.js";
|
|
7
7
|
import { C as h } from "./index3.js";
|
|
8
8
|
import { C as z } from "./chart-model.js";
|
|
9
9
|
import { m as s } from "./model-setter.js";
|
|
@@ -11,7 +11,7 @@ import { b as g, P as y } from "./common.js";
|
|
|
11
11
|
import { M as x, a as B, W as E, b as R } from "./data-labels-visibility.js";
|
|
12
12
|
import { W as j } from "./data-labels-symbol.js";
|
|
13
13
|
import { h as I, k as U, c as K } from "./utils.js";
|
|
14
|
-
import { i as m, a as _, g as f, s as $, c as
|
|
14
|
+
import { i as m, a as _, g as f, s as $, c as X, b as Y, d as q, e as H, f as J, h as D, j as C, k as Q } from "./pie-chart-data.js";
|
|
15
15
|
import { cloneDeep as Z } from "lodash-es";
|
|
16
16
|
import { i as S } from "./rest-js-object-literals.js";
|
|
17
17
|
const ee = (t) => t.legend?.displayNumericValue ?? !1, te = (t, e) => {
|
|
@@ -134,11 +134,11 @@ const ue = (t) => t.series?.[0]?.innerRadius, fe = (t, e) => {
|
|
|
134
134
|
e.series?.[0] && (e.series[0].numericValueFormat ??= O(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= O(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
|
|
135
135
|
}, Ue = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Ke = (t, e) => {
|
|
136
136
|
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
137
|
-
}, $e = (t) => t.series[0]?.ticks?.visible ?? !1,
|
|
137
|
+
}, $e = (t) => t.series[0]?.ticks?.visible ?? !1, Xe = (t, e) => {
|
|
138
138
|
e.series?.[0] && (e.series[0].ticks ??= T(), e.series[0].ticks.visible = t);
|
|
139
|
-
},
|
|
139
|
+
}, Ye = (t) => t.series[0]?.ticks?.lineSymbol, qe = (t, e) => {
|
|
140
140
|
t && e.series?.[0] && (e.series[0].ticks ??= T(), e.series[0].ticks.lineSymbol = Z(t));
|
|
141
|
-
},
|
|
141
|
+
}, He = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, Je = (t, e) => e.series?.[0]?.slices?.[t]?.label, Qe = (t, e, i) => {
|
|
142
142
|
i.series?.[0]?.slices?.[e] && (i.series[0].slices[e].label = t);
|
|
143
143
|
}, Ze = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, et = (t, e, i) => {
|
|
144
144
|
const o = i.series?.[0]?.slices?.[e]?.fillSymbol;
|
|
@@ -224,7 +224,7 @@ class r extends z {
|
|
|
224
224
|
category: f(this._config),
|
|
225
225
|
numericFields: e,
|
|
226
226
|
fallbackMode: this._mode
|
|
227
|
-
}),
|
|
227
|
+
}), X({
|
|
228
228
|
newNumericFields: e,
|
|
229
229
|
config: this._config,
|
|
230
230
|
layerInfo: this.layerInfo,
|
|
@@ -236,10 +236,10 @@ class r extends z {
|
|
|
236
236
|
* Aggregation type for the pie chart.
|
|
237
237
|
*/
|
|
238
238
|
get aggregationType() {
|
|
239
|
-
return
|
|
239
|
+
return Y(this._config, this._mode);
|
|
240
240
|
}
|
|
241
241
|
set aggregationType(e) {
|
|
242
|
-
|
|
242
|
+
q({
|
|
243
243
|
newAggregationType: e,
|
|
244
244
|
config: this._config,
|
|
245
245
|
layerInfo: this.layerInfo,
|
|
@@ -251,10 +251,10 @@ class r extends z {
|
|
|
251
251
|
* Gets the sort order for the pie chart.
|
|
252
252
|
*/
|
|
253
253
|
getSortOrder() {
|
|
254
|
-
return
|
|
254
|
+
return H(this._config, this._mode);
|
|
255
255
|
}
|
|
256
256
|
setSortOrder(e, i) {
|
|
257
|
-
|
|
257
|
+
J({
|
|
258
258
|
newSortOrderKind: e,
|
|
259
259
|
config: this._config,
|
|
260
260
|
orderByList: i
|
|
@@ -319,10 +319,10 @@ class r extends z {
|
|
|
319
319
|
* Ticks symbol connecting slices to labels.
|
|
320
320
|
*/
|
|
321
321
|
get ticksSymbol() {
|
|
322
|
-
return
|
|
322
|
+
return Ye(this._config);
|
|
323
323
|
}
|
|
324
324
|
set ticksSymbol(e) {
|
|
325
|
-
|
|
325
|
+
qe(e, this._config);
|
|
326
326
|
}
|
|
327
327
|
// ---------------------------------------------------------------------------------------------
|
|
328
328
|
// #region Slices Props
|
|
@@ -416,7 +416,7 @@ class r extends z {
|
|
|
416
416
|
* @param sliceIndex - The index of the slice.
|
|
417
417
|
*/
|
|
418
418
|
getOriginalSliceName(e) {
|
|
419
|
-
return
|
|
419
|
+
return He(e, this._config);
|
|
420
420
|
}
|
|
421
421
|
/**
|
|
422
422
|
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -424,10 +424,10 @@ class r extends z {
|
|
|
424
424
|
* @param sliceIndex - The index of the slice.
|
|
425
425
|
*/
|
|
426
426
|
getSliceName(e) {
|
|
427
|
-
return
|
|
427
|
+
return Je(e, this._config);
|
|
428
428
|
}
|
|
429
429
|
setSliceName(e, i) {
|
|
430
|
-
|
|
430
|
+
Qe(e, i, this._config);
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
433
|
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -504,7 +504,7 @@ class r extends z {
|
|
|
504
504
|
return $e(this._config);
|
|
505
505
|
}
|
|
506
506
|
set ticksVisibility(e) {
|
|
507
|
-
|
|
507
|
+
Xe(e, this._config);
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* Start angle of the pie chart.
|
|
@@ -673,7 +673,7 @@ class r extends z {
|
|
|
673
673
|
* Generate the proper chart title given the current config.
|
|
674
674
|
*/
|
|
675
675
|
generateChartTitle() {
|
|
676
|
-
return
|
|
676
|
+
return Q({
|
|
677
677
|
config: this._config,
|
|
678
678
|
layerInfo: this.layerInfo,
|
|
679
679
|
commonStrings: this.commonStrings,
|
|
@@ -6,12 +6,12 @@ import { h as T } from "./utils.js";
|
|
|
6
6
|
import { m as d } from "./model-setter.js";
|
|
7
7
|
import { u as L, o as C } from "./chart-object-literals.js";
|
|
8
8
|
import { M as V } from "./model-with-line-marker-styling.js";
|
|
9
|
-
import {
|
|
9
|
+
import { ab as v, ac as x, ap as B, aF as X } from "./index.js";
|
|
10
10
|
import { an as a } from "./index2.js";
|
|
11
|
-
var
|
|
12
|
-
for (var s =
|
|
11
|
+
var F = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, h = (l, i, e, t) => {
|
|
12
|
+
for (var s = _(i, e), r = l.length - 1, n; r >= 0; r--)
|
|
13
13
|
(n = l[r]) && (s = n(i, e, s) || s);
|
|
14
|
-
return s &&
|
|
14
|
+
return s && F(i, e, s), s;
|
|
15
15
|
};
|
|
16
16
|
class o extends c {
|
|
17
17
|
constructor() {
|