@arcgis/charts-components 5.1.0-next.65 → 5.1.0-next.67
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/2333HQZZ.js +2 -0
- package/dist/cdn/25LAV2UI.js +2 -0
- package/dist/cdn/{SMGWUDX3.js → 2J5IWBKU.js} +1 -1
- package/dist/cdn/2NIOPMWE.js +2 -0
- package/dist/cdn/32WPXK4K.js +2 -0
- package/dist/cdn/35NR6IHU.js +2 -0
- package/dist/cdn/4BDLJPIB.js +2 -0
- package/dist/cdn/4HRFZU2C.js +2 -0
- package/dist/cdn/4NYTLY62.js +2 -0
- package/dist/cdn/{66CPF67N.js → 5KOFW5BO.js} +1 -1
- package/dist/cdn/5PSQ7OKJ.js +2 -0
- package/dist/cdn/6GURKNO2.js +2 -0
- package/dist/cdn/{GLST76GV.js → 6GVGNQYH.js} +1 -1
- package/dist/cdn/6RKNXP6N.js +2 -0
- package/dist/cdn/{X6QQ322N.js → 6TKG7ZF7.js} +1 -1
- package/dist/cdn/{6VW6XPBH.js → 75FO5HPY.js} +1 -1
- package/dist/cdn/7HGCX3PA.js +2 -0
- package/dist/cdn/7Y5FTMNT.js +2 -0
- package/dist/cdn/{4YWBOW4N.js → 7YDVVZJU.js} +1 -1
- package/dist/cdn/AALOFAWG.js +2 -0
- package/dist/cdn/AMLWVAHN.js +2 -0
- package/dist/cdn/BVK4ULHH.js +2 -0
- package/dist/cdn/BXDRHDLV.js +2 -0
- package/dist/cdn/BXNLQMSP.js +2 -0
- package/dist/cdn/{3WMOCDMO.js → CCNHG4LT.js} +1 -1
- package/dist/cdn/CUAIY5DK.js +37 -0
- package/dist/cdn/DHCFSWRJ.js +2 -0
- package/dist/cdn/ECRW3QJF.js +2 -0
- package/dist/cdn/{DHZT5P3N.js → EF4GVHB2.js} +1 -1
- package/dist/cdn/EGHVQUKF.js +2 -0
- package/dist/cdn/EP5VVTAX.js +2 -0
- package/dist/cdn/EWLMYFSA.js +2 -0
- package/dist/cdn/{QFC7M2Y2.js → FFXTYOTF.js} +1 -1
- package/dist/cdn/FOSGOEWY.js +2 -0
- package/dist/cdn/G56RB2UI.js +2 -0
- package/dist/cdn/{HR62GM42.js → GKYHQ5OF.js} +1 -1
- package/dist/cdn/GXQDCOI4.js +99 -0
- package/dist/cdn/HW42VNOU.js +2 -0
- package/dist/cdn/I54YDLFZ.js +2 -0
- package/dist/cdn/I6IYDKWG.js +2 -0
- package/dist/cdn/IN3H6ULU.js +2 -0
- package/dist/cdn/ISNJYFT7.js +2 -0
- package/dist/cdn/ITB7EYBT.js +2 -0
- package/dist/cdn/JDQ6BNXO.js +2 -0
- package/dist/cdn/JMMW4Z5P.js +2 -0
- package/dist/cdn/JTL73F75.js +2 -0
- package/dist/cdn/KOLQWSYX.js +2 -0
- package/dist/cdn/KYFOP4WA.js +2 -0
- package/dist/cdn/L2NQ6Z3Z.js +2 -0
- package/dist/cdn/LGAAHH35.js +2 -0
- package/dist/cdn/LIXBROPH.js +2 -0
- package/dist/cdn/LRQVALTM.js +2 -0
- package/dist/cdn/LT62HS4S.js +2 -0
- package/dist/cdn/MUCSVAGN.js +2 -0
- package/dist/cdn/N4IITAR7.js +2 -0
- package/dist/cdn/NEEKPRM4.js +2 -0
- package/dist/cdn/NEFPCTH3.js +2 -0
- package/dist/cdn/NVV2EBVI.js +2 -0
- package/dist/cdn/O7ZCEGVR.js +2 -0
- package/dist/cdn/{WIP3X44L.js → OPDQRTZL.js} +3 -3
- package/dist/cdn/PG36SBDU.js +2 -0
- package/dist/cdn/PGJD4Q7S.js +2 -0
- package/dist/cdn/PGVNBWSU.js +23 -0
- package/dist/cdn/PL24HKI7.js +2 -0
- package/dist/cdn/PLBPOYRN.js +2 -0
- package/dist/cdn/QEPCR5IP.js +2 -0
- package/dist/cdn/QT24FAYQ.js +2 -0
- package/dist/cdn/R6XIAIZH.js +2 -0
- package/dist/cdn/RDBNRYTF.js +2 -0
- package/dist/cdn/RQLVJM4J.js +2 -0
- package/dist/cdn/RX6QOYCR.js +2 -0
- package/dist/cdn/SNZF4LXV.js +2 -0
- package/dist/cdn/{QRNEQ6OE.js → TJA5FMLP.js} +1 -1
- package/dist/cdn/TZJGC4RS.js +2 -0
- package/dist/cdn/{IIJZ52BJ.js → VRXVXPKS.js} +1 -1
- package/dist/cdn/VWCFL5P6.js +2 -0
- package/dist/cdn/W5VC5OCC.js +2 -0
- package/dist/cdn/W6T7TNP5.js +2 -0
- package/dist/cdn/WNEW6UZS.js +2 -0
- package/dist/cdn/XFXE7IY2.js +2 -0
- package/dist/cdn/XV7GLCBP.js +2 -0
- package/dist/cdn/Y3DU5EIT.js +2 -0
- package/dist/cdn/Y3NWCVUF.js +2 -0
- package/dist/cdn/YHUBOYF5.js +2 -0
- package/dist/cdn/YNRVU2AU.js +2 -0
- package/dist/cdn/YPSEQYTV.js +2 -0
- package/dist/cdn/YQTJQ5J7.js +2 -0
- package/dist/cdn/Z4GL4EF6.js +2 -0
- package/dist/cdn/ZIXBICPN.js +2 -0
- package/dist/cdn/ZRDVJBTQ.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +8 -0
- package/dist/chart-rendering/common/interfaces.d.ts +7 -0
- package/dist/chunks/action-bar-utils.js +22 -28
- package/dist/chunks/axis-lines-symbol.js +8 -8
- package/dist/chunks/bar-chart-model.js +19 -25
- package/dist/chunks/bar-chart-series.js +12 -18
- package/dist/chunks/box-plot-data.js +75 -81
- package/dist/chunks/box-plot-model.js +19 -19
- package/dist/chunks/chart-model.js +40 -46
- package/dist/chunks/chart-ui-utils2.js +47 -53
- package/dist/chunks/class-breaks.js +16 -16
- package/dist/chunks/combo-bar-line-chart-model.js +20 -20
- package/dist/chunks/data-labels-symbol.js +5 -5
- package/dist/chunks/data.js +53 -59
- package/dist/chunks/gauge-model.js +22 -28
- package/dist/chunks/generate-x-axis-title.js +30 -36
- package/dist/chunks/heat-chart-model.js +10 -16
- package/dist/chunks/histogram-data.js +53 -59
- package/dist/chunks/histogram-model.js +31 -31
- package/dist/chunks/index.js +608 -20565
- package/dist/chunks/index2.js +171 -678
- package/dist/chunks/index3.js +46 -181
- package/dist/chunks/interfaces.js +16443 -103
- package/dist/chunks/interfaces2.js +109 -0
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +15 -21
- package/dist/chunks/model-with-guides.js +22 -28
- package/dist/chunks/model-with-tooltips.js +23 -29
- package/dist/chunks/model-with-x-guides.js +4 -4
- package/dist/chunks/model-with-y-guides.js +25 -31
- package/dist/chunks/negative-values-stacked-to-baseline.js +41 -47
- package/dist/chunks/pie-chart-data.js +33 -39
- package/dist/chunks/pie-chart-model.js +62 -68
- package/dist/chunks/radar-chart-model.js +8 -15
- package/dist/chunks/rotated-state.js +9 -15
- package/dist/chunks/scatterplot-model.js +84 -90
- package/dist/chunks/serial-chart-data.js +8178 -4195
- package/dist/chunks/serial-chart-model.js +32 -39
- package/dist/chunks/series-length.js +14 -20
- package/dist/chunks/series.js +10 -16
- package/dist/chunks/utils.js +337 -119
- package/dist/chunks/utils2.js +19 -25
- package/dist/chunks/web-component-utils.js +42 -42
- package/dist/components/arcgis-chart/customElement.js +5255 -5339
- package/dist/components/arcgis-charts-action-bar/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +22 -28
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +15 -20
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -16
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +33 -38
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +7 -13
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +14 -20
- package/dist/components/arcgis-charts-config-font-style/customElement.js +14 -20
- package/dist/components/arcgis-charts-config-format/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +10 -16
- package/dist/components/arcgis-charts-config-general/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -19
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +13 -19
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +20 -26
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +17 -24
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -21
- package/dist/components/arcgis-charts-config-histogram/customElement.js +26 -32
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +26 -32
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +18 -24
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -18
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -24
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +22 -28
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +12 -19
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +421 -412
- package/dist/utils/chart-config/utils/index.d.ts +22 -1
- package/dist/utils/chart-config/validator/index.d.ts +2 -2
- package/dist/utils/data/index.d.ts +48 -1
- package/dist/utils/data/pie-chart/index.d.ts +31 -0
- package/package.json +3 -3
- package/dist/cdn/2R7GVZ2K.js +0 -2
- package/dist/cdn/3LT2GKQ2.js +0 -2
- package/dist/cdn/4D7IL776.js +0 -23
- package/dist/cdn/4TUXERAH.js +0 -2
- package/dist/cdn/53BACKKK.js +0 -2
- package/dist/cdn/5TNV7JHC.js +0 -2
- package/dist/cdn/627BGNFG.js +0 -2
- package/dist/cdn/6LOKVOKI.js +0 -2
- package/dist/cdn/6NZ5UJML.js +0 -2
- package/dist/cdn/6WJVFMRO.js +0 -2
- package/dist/cdn/7GZN67ZQ.js +0 -2
- package/dist/cdn/7SSD7QVG.js +0 -2
- package/dist/cdn/7XRXZ5B3.js +0 -2
- package/dist/cdn/7Y57O4FJ.js +0 -2
- package/dist/cdn/7Y7YFJKK.js +0 -2
- package/dist/cdn/7YXQ6TZT.js +0 -2
- package/dist/cdn/A642VLJ3.js +0 -2
- package/dist/cdn/AVCKTWRB.js +0 -2
- package/dist/cdn/BCEUGCIB.js +0 -2
- package/dist/cdn/BP7HN7YH.js +0 -2
- package/dist/cdn/BPZNMCFA.js +0 -2
- package/dist/cdn/DRLAYMR6.js +0 -2
- package/dist/cdn/DXWMRZX7.js +0 -2
- package/dist/cdn/E7ZG5PMT.js +0 -2
- package/dist/cdn/EDBE2EVF.js +0 -2
- package/dist/cdn/EDCUOXXS.js +0 -2
- package/dist/cdn/EWCL54AQ.js +0 -2
- package/dist/cdn/FKR2N42T.js +0 -2
- package/dist/cdn/GT2GE37X.js +0 -2
- package/dist/cdn/HHMRHLFD.js +0 -2
- package/dist/cdn/HMYIPN7X.js +0 -2
- package/dist/cdn/HQZDYYW6.js +0 -2
- package/dist/cdn/HZDIYXNY.js +0 -2
- package/dist/cdn/I34GLJPW.js +0 -2
- package/dist/cdn/IGRLN5QE.js +0 -2
- package/dist/cdn/IJD3YDOE.js +0 -2
- package/dist/cdn/ITF5WJUH.js +0 -2
- package/dist/cdn/J73HEYK6.js +0 -2
- package/dist/cdn/JWTEQZTD.js +0 -2
- package/dist/cdn/KDLX6TGN.js +0 -2
- package/dist/cdn/LLNUWDC5.js +0 -2
- package/dist/cdn/LZ7LNUEI.js +0 -2
- package/dist/cdn/MAZJTJ64.js +0 -2
- package/dist/cdn/MB7BDR7H.js +0 -2
- package/dist/cdn/MTTVUHUH.js +0 -2
- package/dist/cdn/MVLJJ7VZ.js +0 -2
- package/dist/cdn/N373OIOT.js +0 -2
- package/dist/cdn/N4GBOPIU.js +0 -2
- package/dist/cdn/OG3JZ3LP.js +0 -37
- package/dist/cdn/PSYU6XTK.js +0 -2
- package/dist/cdn/PVTBEXFF.js +0 -2
- package/dist/cdn/PYLJO324.js +0 -2
- package/dist/cdn/QQ6DOFHZ.js +0 -99
- package/dist/cdn/RAJWBR34.js +0 -2
- package/dist/cdn/S7COU7MH.js +0 -2
- package/dist/cdn/SYY7UU2N.js +0 -2
- package/dist/cdn/TN45YUM2.js +0 -2
- package/dist/cdn/TODWZ6FZ.js +0 -2
- package/dist/cdn/TP7767ZV.js +0 -2
- package/dist/cdn/UFJOL4MK.js +0 -2
- package/dist/cdn/ULSVHCH4.js +0 -2
- package/dist/cdn/UVFPEIK2.js +0 -2
- package/dist/cdn/V3PU5TMU.js +0 -2
- package/dist/cdn/V3VVN7ST.js +0 -2
- package/dist/cdn/V5JXE6N4.js +0 -2
- package/dist/cdn/VPOAGMYE.js +0 -2
- package/dist/cdn/VXMMIOTJ.js +0 -2
- package/dist/cdn/WL2XRSAH.js +0 -2
- package/dist/cdn/WWARKOXR.js +0 -2
- package/dist/cdn/WWGW24FD.js +0 -2
- package/dist/cdn/XUHCS2SB.js +0 -2
- package/dist/cdn/YBAPI2UV.js +0 -2
- package/dist/cdn/YJDYXU2Q.js +0 -2
- package/dist/cdn/YUZ26Q2B.js +0 -2
- package/dist/cdn/ZRDKD2U3.js +0 -2
- package/dist/cdn/ZVOSWG36.js +0 -2
- /package/dist/cdn/{FPDW4F45.js → VCUC6CMW.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { substitute as M } from "@arcgis/core/intl.js";
|
|
3
|
-
import { memoize as
|
|
3
|
+
import { memoize as X, isEmpty as ce, isEqual as de, cloneDeep as $ } from "lodash-es";
|
|
4
4
|
import "@arcgis/toolkit/type";
|
|
5
5
|
import { u, n as p, p as h } from "./series-types.js";
|
|
6
6
|
import { R as ye } from "./rest-js-object-literals.js";
|
|
7
7
|
import "@arcgis/toolkit/intl";
|
|
8
8
|
import "luxon";
|
|
9
|
-
import {
|
|
9
|
+
import { aB as q, cN as V, y as C, bY as I, cw as me, c2 as ue, bu as fe, bi as w, bl as J, aV as R, aX as Q, J as _, aC as G, z as K, aW as Se, aI as pe, aD as ge } from "./interfaces.js";
|
|
10
10
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
11
11
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
12
12
|
import "@arcgis/core/rest/support/Query.js";
|
|
@@ -23,23 +23,17 @@ import "simple-statistics";
|
|
|
23
23
|
import "@arcgis/core/Graphic.js";
|
|
24
24
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
25
25
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
26
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
27
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
28
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
29
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
30
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
31
|
-
import "@arcgis/core/core/sql.js";
|
|
32
26
|
import "@arcgis/toolkit/dom";
|
|
33
|
-
import {
|
|
27
|
+
import { b as D, h as H, j as be, k as he, s as U, l as Ae } from "./utils.js";
|
|
34
28
|
import { B as m } from "./common.js";
|
|
35
29
|
import "@esri/arcgis-html-sanitizer";
|
|
36
30
|
import { g as z } from "./utils2.js";
|
|
37
|
-
import { a as
|
|
38
|
-
import { c as
|
|
39
|
-
const
|
|
31
|
+
import { a as Fe } from "./series-length.js";
|
|
32
|
+
import { c as W } from "./data.js";
|
|
33
|
+
const ps = (s, e) => e?.series?.[s]?.name, gs = (s, e, t) => {
|
|
40
34
|
const o = t;
|
|
41
35
|
o?.series?.[e] !== void 0 && (o.series[e].name = s);
|
|
42
|
-
},
|
|
36
|
+
}, xs = (s, e) => {
|
|
43
37
|
let t;
|
|
44
38
|
const o = e.series?.[s];
|
|
45
39
|
return o?.type === u.BoxPlotSeries ? t = o.fillSymbol?.color : o?.type === u.LineSeries && (t = o.lineSymbol?.color), t;
|
|
@@ -52,22 +46,22 @@ const As = (s, e) => e?.series?.[s]?.name, Bs = (s, e, t) => {
|
|
|
52
46
|
...q(),
|
|
53
47
|
color: s
|
|
54
48
|
});
|
|
55
|
-
},
|
|
49
|
+
}, bs = (s, e, t) => {
|
|
56
50
|
const i = t?.series?.[e];
|
|
57
51
|
i?.type === u.BoxPlotSeries && i.fillSymbol !== void 0 ? i.fillSymbol.color = s : i?.type === u.LineSeries && i.lineSymbol !== void 0 && (i.lineSymbol.color = s, i.markerSymbol !== void 0 && (i.markerSymbol.color = s));
|
|
58
52
|
}, we = (s) => s.series.map((e) => e.id), Le = (s, e) => {
|
|
59
53
|
e?.series?.sort(
|
|
60
54
|
(t, o) => s.findIndex((i) => t.id === i) - s.findIndex((i) => o.id === i)
|
|
61
55
|
);
|
|
62
|
-
},
|
|
56
|
+
}, hs = (s, e, t) => {
|
|
63
57
|
const o = we(t), [i] = o.splice(s, 1);
|
|
64
58
|
o.splice(e, 0, i), Le(o, t);
|
|
65
|
-
},
|
|
59
|
+
}, As = (s) => N(s) ? s.series.findIndex((e) => e.type === u.BoxPlotSeries) : -1;
|
|
66
60
|
function Te(s, e, t) {
|
|
67
|
-
const o = re(s, e, t), i =
|
|
61
|
+
const o = re(s, e, t), i = Fe(s), r = V(s);
|
|
68
62
|
return o === i || r;
|
|
69
63
|
}
|
|
70
|
-
function
|
|
64
|
+
function Z(s, e, t) {
|
|
71
65
|
const o = T(s, e, t), i = z(1, s), r = V(s);
|
|
72
66
|
return o === i || r;
|
|
73
67
|
}
|
|
@@ -75,13 +69,13 @@ function ve(s) {
|
|
|
75
69
|
const { config: e, layerInfo: t, newCategory: o } = s, { layerFieldsInfo: i } = t, r = L(e), l = o !== C ? w(i, r) : "", n = z(0, e), a = V(e);
|
|
76
70
|
return l === n || a || n.trim() === "";
|
|
77
71
|
}
|
|
78
|
-
const L = (s) => I(s)?.x ?? C, Me =
|
|
72
|
+
const L = (s) => I(s)?.x ?? C, Me = X(
|
|
79
73
|
(s) => {
|
|
80
74
|
const e = I(s), t = e?.query?.where?.split("=")[0].trim() ?? "";
|
|
81
75
|
return me(e?.query?.where) ? "" : t;
|
|
82
76
|
},
|
|
83
77
|
(s) => I(s)?.query?.where
|
|
84
|
-
), ee =
|
|
78
|
+
), ee = X(
|
|
85
79
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
86
80
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
87
81
|
(s) => ue(s?.series).filter((e) => e !== ""),
|
|
@@ -89,12 +83,12 @@ const L = (s) => I(s)?.x ?? C, Me = $(
|
|
|
89
83
|
(s) => s?.series
|
|
90
84
|
), O = (s) => {
|
|
91
85
|
const { category: e, seriesIndex: t, y: o, commonStrings: i } = s, l = {
|
|
92
|
-
...
|
|
86
|
+
...G(i, t),
|
|
93
87
|
x: e === void 0 || e === "" ? C : e,
|
|
94
88
|
y: o,
|
|
95
89
|
query: {}
|
|
96
90
|
};
|
|
97
|
-
return
|
|
91
|
+
return $(l);
|
|
98
92
|
}, Oe = (s) => {
|
|
99
93
|
const { category: e, seriesIndex: t, y: o, commonStrings: i } = s, l = {
|
|
100
94
|
...Se({ commonStrings: i, seriesIndex: t }),
|
|
@@ -102,16 +96,16 @@ const L = (s) => I(s)?.x ?? C, Me = $(
|
|
|
102
96
|
y: o,
|
|
103
97
|
query: {}
|
|
104
98
|
};
|
|
105
|
-
return
|
|
99
|
+
return $(l);
|
|
106
100
|
};
|
|
107
101
|
function se(s) {
|
|
108
|
-
const { x: e, y: t, seriesTemplate: o, commonStrings: i } = s, { id: r, fillSymbol: l } = o ?? {}, n =
|
|
109
|
-
return n.id = a, n.name = a, n.x = e, n.y = t, l ? n.fillSymbol = l : n.fillSymbol && (n.fillSymbol.color =
|
|
102
|
+
const { x: e, y: t, seriesTemplate: o, commonStrings: i } = s, { id: r, fillSymbol: l } = o ?? {}, n = G(i), a = r ?? `series_${Date.now()}`;
|
|
103
|
+
return n.id = a, n.name = a, n.x = e, n.y = t, l ? n.fillSymbol = l : n.fillSymbol && (n.fillSymbol.color = K, n.fillSymbol?.outline && (n.fillSymbol.outline.color = K)), n;
|
|
110
104
|
}
|
|
111
105
|
function te(s) {
|
|
112
106
|
const { numericFields: e, config: t, layerInfo: o, category: i, commonStrings: r } = s, { layerFieldsInfo: l } = o, n = [], a = i ?? L(t);
|
|
113
107
|
let y = !1;
|
|
114
|
-
const c =
|
|
108
|
+
const c = W({
|
|
115
109
|
fieldName: a,
|
|
116
110
|
numericFields: e,
|
|
117
111
|
fieldList: l
|
|
@@ -125,13 +119,13 @@ function te(s) {
|
|
|
125
119
|
});
|
|
126
120
|
n.push(f);
|
|
127
121
|
} else if (c) {
|
|
128
|
-
const f = e.length > 1 ? e : e[0],
|
|
122
|
+
const f = e.length > 1 ? e : e[0], A = O({
|
|
129
123
|
y: f,
|
|
130
124
|
seriesIndex: 0,
|
|
131
125
|
category: a,
|
|
132
126
|
commonStrings: r
|
|
133
127
|
}), x = e.length > 1 ? r.axisLabels.values : w(o.layerFieldsInfo, e[0]), g = {
|
|
134
|
-
...
|
|
128
|
+
...A,
|
|
135
129
|
id: e[0],
|
|
136
130
|
name: x,
|
|
137
131
|
x: c ? C : a
|
|
@@ -139,17 +133,17 @@ function te(s) {
|
|
|
139
133
|
S !== void 0 && (!t.colorMatch && "fillSymbol" in S && (g.fillSymbol = S.fillSymbol, y = !0), g.id = S.id, g.name = S.name), n.push(g);
|
|
140
134
|
} else
|
|
141
135
|
for (let f = 0; f < e.length; f += 1) {
|
|
142
|
-
const
|
|
143
|
-
y:
|
|
136
|
+
const A = e[f], x = O({
|
|
137
|
+
y: A,
|
|
144
138
|
seriesIndex: f,
|
|
145
139
|
category: a,
|
|
146
140
|
commonStrings: r
|
|
147
|
-
}), g = w(l,
|
|
141
|
+
}), g = w(l, A), S = {
|
|
148
142
|
...x,
|
|
149
|
-
id:
|
|
143
|
+
id: A,
|
|
150
144
|
name: g,
|
|
151
145
|
x: a
|
|
152
|
-
}, d = t.series.find((B) =>
|
|
146
|
+
}, d = t.series.find((B) => A === B.y);
|
|
153
147
|
d !== void 0 && (!t.colorMatch && "fillSymbol" in d && (S.fillSymbol = d.fillSymbol, y = !0), S.id = d.id, S.name = d.name), n.push(S);
|
|
154
148
|
}
|
|
155
149
|
return t.series.length === 1 && n.length === 1 && !t.colorMatch && "fillSymbol" in t.series[0] && (n[0].fillSymbol = t.series[0].fillSymbol, y = !0), t.colorMatch = !y, n;
|
|
@@ -164,11 +158,11 @@ function Pe(s, e, t) {
|
|
|
164
158
|
...n,
|
|
165
159
|
type: u.LineSeries,
|
|
166
160
|
lineSymbol: {
|
|
167
|
-
...Q({ width:
|
|
161
|
+
...Q({ width: _ }),
|
|
168
162
|
...l !== void 0 ? { color: l.color } : {}
|
|
169
163
|
},
|
|
170
164
|
markerSymbol: {
|
|
171
|
-
...
|
|
165
|
+
...R(),
|
|
172
166
|
...l !== void 0 ? { color: l.color } : {}
|
|
173
167
|
}
|
|
174
168
|
});
|
|
@@ -207,7 +201,7 @@ function oe(s) {
|
|
|
207
201
|
)), i;
|
|
208
202
|
}
|
|
209
203
|
async function Ve(s) {
|
|
210
|
-
const { config: e, layerInfo: t, commonStrings: o, splitByField: i, numericFields: r, category: l } = s, { layer: n, layerFieldsInfo: a } = t, { fetchNullValues: y } = I(e)?.query ?? {}, c = l ?? L(e), { categoriesArray: f, splitByFieldType:
|
|
204
|
+
const { config: e, layerInfo: t, commonStrings: o, splitByField: i, numericFields: r, category: l } = s, { layer: n, layerFieldsInfo: a } = t, { fetchNullValues: y } = I(e)?.query ?? {}, c = l ?? L(e), { categoriesArray: f, splitByFieldType: A } = await Ae({
|
|
211
205
|
config: e,
|
|
212
206
|
layer: n,
|
|
213
207
|
layerFieldsInfo: a,
|
|
@@ -235,30 +229,30 @@ async function Ve(s) {
|
|
|
235
229
|
seriesIndex: d,
|
|
236
230
|
category: c,
|
|
237
231
|
commonStrings: o
|
|
238
|
-
},
|
|
232
|
+
}, E = S ? Oe(v) : O(v), ne = J({
|
|
239
233
|
queryObject: t.layer,
|
|
240
234
|
fieldName: i,
|
|
241
235
|
fieldValue: B ?? ""
|
|
242
|
-
}), k = `${B}`,
|
|
243
|
-
...
|
|
236
|
+
}), k = `${B}`, F = {
|
|
237
|
+
...E,
|
|
244
238
|
id: k,
|
|
245
239
|
name: ne ?? k,
|
|
246
240
|
x: c === void 0 || c === "" ? C : c,
|
|
247
241
|
query: {
|
|
248
|
-
...
|
|
249
|
-
where: `${i}=${
|
|
242
|
+
...E.query,
|
|
243
|
+
where: `${i}=${A === ye.String && B !== null ? `'${B}'` : B}`
|
|
250
244
|
}
|
|
251
245
|
}, b = e.series.find((ae) => ie(ae) === k);
|
|
252
|
-
b !== void 0 && (e.colorMatch || (
|
|
246
|
+
b !== void 0 && (e.colorMatch || (F.type === u.BoxPlotSeries ? P(b) ? F.fillSymbol = b.fillSymbol : F.fillSymbol = {
|
|
253
247
|
...q(),
|
|
254
248
|
color: b.lineSymbol?.color
|
|
255
|
-
} : P(b) ? (
|
|
256
|
-
...Q({ width:
|
|
249
|
+
} : P(b) ? (F.lineSymbol = {
|
|
250
|
+
...Q({ width: _ }),
|
|
257
251
|
...b.fillSymbol !== void 0 ? { color: b.fillSymbol.color } : {}
|
|
258
|
-
},
|
|
259
|
-
...
|
|
252
|
+
}, F.markerSymbol = {
|
|
253
|
+
...R(),
|
|
260
254
|
...b.fillSymbol !== void 0 ? { color: b.fillSymbol.color } : {}
|
|
261
|
-
}) : (
|
|
255
|
+
}) : (F.lineSymbol = b.lineSymbol, F.markerSymbol = b.markerSymbol), g = !0), F.id = b.id, F.name = b.name), x.push(F);
|
|
262
256
|
}
|
|
263
257
|
if (x = oe({
|
|
264
258
|
formerSeries: e.series,
|
|
@@ -275,10 +269,10 @@ async function Ve(s) {
|
|
|
275
269
|
}
|
|
276
270
|
return x;
|
|
277
271
|
}
|
|
278
|
-
const
|
|
279
|
-
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo: r, commonStrings: l } = s, { layerFieldsInfo: n } = r, a = qe(o, t, e), y = fe(n), c = L(i), f = Te(i, r, l),
|
|
280
|
-
let g =
|
|
281
|
-
if (!y.includes(c) && y.includes(o) ? g = pe() : y.includes(c) && !y.includes(o) && (g = ge()), g !== void 0 && he(i, l, g),
|
|
272
|
+
const Fs = async (s) => {
|
|
273
|
+
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo: r, commonStrings: l } = s, { layerFieldsInfo: n } = r, a = qe(o, t, e), y = fe(n), c = L(i), f = Te(i, r, l), A = Z(i, r, l), x = ve({ config: i, layerInfo: r, newCategory: o });
|
|
274
|
+
let g = H(i);
|
|
275
|
+
if (!y.includes(c) && y.includes(o) ? g = pe() : y.includes(c) && !y.includes(o) && (g = ge()), g !== void 0 && he(i, l, g), j(a ? { newShowMeanLines: i.showMean, config: i, commonStrings: l } : { newShowMeanLines: !1, config: i, commonStrings: l }), i.series = a ? await Ve({
|
|
282
276
|
config: i,
|
|
283
277
|
layerInfo: r,
|
|
284
278
|
splitByField: e,
|
|
@@ -292,14 +286,14 @@ const vs = async (s) => {
|
|
|
292
286
|
category: o,
|
|
293
287
|
commonStrings: l
|
|
294
288
|
}), x) {
|
|
295
|
-
const d =
|
|
289
|
+
const d = W({
|
|
296
290
|
fieldName: o,
|
|
297
291
|
numericFields: t,
|
|
298
292
|
fieldList: n
|
|
299
293
|
}) ? "" : w(n, o);
|
|
300
294
|
D(i, 0, d);
|
|
301
295
|
}
|
|
302
|
-
if (
|
|
296
|
+
if (A) {
|
|
303
297
|
const S = T(i, r, l);
|
|
304
298
|
D(i, 1, S);
|
|
305
299
|
}
|
|
@@ -327,21 +321,21 @@ function re(s, e, t) {
|
|
|
327
321
|
valueField: n
|
|
328
322
|
})), y;
|
|
329
323
|
}
|
|
330
|
-
const
|
|
324
|
+
const Bs = (s) => {
|
|
331
325
|
const { series: e, splitByField: t, layerInfo: o, commonStrings: i } = s;
|
|
332
326
|
let r = typeof e.y == "string" ? w(o.layerFieldsInfo, e.y) : i.axisLabels.values;
|
|
333
|
-
return ce(t) || (r = ie(e)), r =
|
|
327
|
+
return ce(t) || (r = ie(e)), r = J({
|
|
334
328
|
queryObject: o.layer,
|
|
335
329
|
fieldName: t,
|
|
336
330
|
fieldValue: r ?? ""
|
|
337
331
|
}) ?? r, r ?? e.id;
|
|
338
|
-
},
|
|
332
|
+
}, Cs = (s) => s?.showOutliers ?? !1, ws = (s) => {
|
|
339
333
|
const { newShowOutliers: e, config: t, layerInfo: o, commonStrings: i } = s;
|
|
340
|
-
if (t.showOutliers = e,
|
|
334
|
+
if (t.showOutliers = e, Z(t, o, i)) {
|
|
341
335
|
const l = T(t, o, i);
|
|
342
336
|
D(t, 1, l);
|
|
343
337
|
}
|
|
344
|
-
},
|
|
338
|
+
}, Ls = (s) => {
|
|
345
339
|
const { newStandardizeValues: e, config: t, layerInfo: o, commonStrings: i } = s, r = z(1, t), l = T(t, o, i), n = V(t);
|
|
346
340
|
if (t.standardizeValues = e, r === l || n) {
|
|
347
341
|
const a = T(t, o, i);
|
|
@@ -362,7 +356,7 @@ const Ms = (s) => {
|
|
|
362
356
|
break;
|
|
363
357
|
}
|
|
364
358
|
return e;
|
|
365
|
-
},
|
|
359
|
+
}, Ts = (s, e, t) => {
|
|
366
360
|
let o = p.Category, i = h.Ascending;
|
|
367
361
|
if (e.orderOptions = e.orderOptions ?? {}, s === m.customSort && t !== void 0)
|
|
368
362
|
e.orderOptions.data = {
|
|
@@ -401,7 +395,7 @@ const Ms = (s) => {
|
|
|
401
395
|
orderBy: i
|
|
402
396
|
};
|
|
403
397
|
}
|
|
404
|
-
}, N = (s) => s.showMean ?? !1,
|
|
398
|
+
}, N = (s) => s.showMean ?? !1, j = (s) => {
|
|
405
399
|
const { newShowMeanLines: e = !1, config: t, commonStrings: o, previousMeanLinesBoxColor: i } = s, r = e ? i : Be(t), l = (e ?? !1) !== (t.showMean ?? !1);
|
|
406
400
|
if (t.showMean = e, l) {
|
|
407
401
|
let n;
|
|
@@ -412,21 +406,21 @@ const Ms = (s) => {
|
|
|
412
406
|
}), t.series = n);
|
|
413
407
|
}
|
|
414
408
|
return e && i !== void 0 && Ce(i, t), { previousMeanLinesBoxColor: r };
|
|
415
|
-
},
|
|
409
|
+
}, vs = (s) => {
|
|
416
410
|
let e = [];
|
|
417
411
|
const t = s.orderOptions?.data?.orderType;
|
|
418
412
|
return le(s) === m.customSort && t === p.Category && (e = s.orderOptions?.data?.orderBy), e;
|
|
419
|
-
},
|
|
413
|
+
}, Ms = (s, e) => {
|
|
420
414
|
e.orderOptions ??= {};
|
|
421
415
|
const t = e.orderOptions?.data?.orderType;
|
|
422
416
|
le(e) === m.customSort && t === p.Category && (e.orderOptions.data = {
|
|
423
417
|
orderType: p.Category,
|
|
424
418
|
orderBy: s
|
|
425
419
|
});
|
|
426
|
-
},
|
|
427
|
-
const t = L(s), o =
|
|
420
|
+
}, Os = async (s, e) => {
|
|
421
|
+
const t = L(s), o = H(s)?.type, i = ee(s);
|
|
428
422
|
let r = [];
|
|
429
|
-
return o === u.CategoryAxisFormat && (
|
|
423
|
+
return o === u.CategoryAxisFormat && (W({
|
|
430
424
|
fieldName: t,
|
|
431
425
|
numericFields: i,
|
|
432
426
|
fieldList: e.layerFieldsInfo
|
|
@@ -437,34 +431,34 @@ const Ms = (s) => {
|
|
|
437
431
|
}))), r;
|
|
438
432
|
}, Y = (s) => s.trim() === "" || s === C, Ne = (s, e) => e.length > 1 && !Y(s), qe = (s, e, t) => !Ne(s, e) && t !== "";
|
|
439
433
|
export {
|
|
440
|
-
|
|
434
|
+
As as A,
|
|
441
435
|
re as B,
|
|
442
436
|
T as C,
|
|
443
|
-
|
|
437
|
+
Bs as D,
|
|
444
438
|
L as a,
|
|
445
439
|
ee as b,
|
|
446
440
|
Me as c,
|
|
447
|
-
|
|
448
|
-
|
|
441
|
+
Cs as d,
|
|
442
|
+
ws as e,
|
|
449
443
|
ke as f,
|
|
450
444
|
N as g,
|
|
451
|
-
|
|
445
|
+
Ls as h,
|
|
452
446
|
le as i,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
447
|
+
Ts as j,
|
|
448
|
+
Os as k,
|
|
449
|
+
vs as l,
|
|
450
|
+
Ms as m,
|
|
451
|
+
j as n,
|
|
458
452
|
Be as o,
|
|
459
453
|
Ce as p,
|
|
460
454
|
qe as q,
|
|
461
|
-
|
|
455
|
+
Fs as r,
|
|
462
456
|
Ne as s,
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
457
|
+
ps as t,
|
|
458
|
+
gs as u,
|
|
459
|
+
xs as v,
|
|
460
|
+
bs as w,
|
|
467
461
|
we as x,
|
|
468
462
|
Le as y,
|
|
469
|
-
|
|
463
|
+
hs as z
|
|
470
464
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as O } from "./chart-model.js";
|
|
3
3
|
import { B as P } from "./common.js";
|
|
4
4
|
import { W as D, a as T, b as V } from "./axis-lines-symbol.js";
|
|
5
5
|
import { W as E, b as N } from "./model-with-guides.js";
|
|
6
6
|
import { W as R, a as U, b as z } from "./generate-x-axis-title.js";
|
|
7
|
-
import { M as X, a as
|
|
8
|
-
import { W as
|
|
9
|
-
import { W as
|
|
7
|
+
import { M as X, a as j, W as K, b as Y } from "./model-with-tooltips.js";
|
|
8
|
+
import { W as k } from "./rotated-state.js";
|
|
9
|
+
import { W as G } from "./data-labels-symbol.js";
|
|
10
10
|
import { g as q, s as g, a as J, b as f } from "./series.js";
|
|
11
|
-
import {
|
|
11
|
+
import { d as H, e as Q, c as Z } from "./utils.js";
|
|
12
12
|
import { s as $, d as ee, e as te, f as se, h as ie, i as y, j as p, k as u, l as m, m as S, g as oe, n as re, o as ne, p as L, a as ae, c as le, b as he, q as ce, r as _, t as de, u as C, v as ge, w as B, x as fe, y as ye, z as pe, A as ue, B as me, C as Se, D as M } from "./box-plot-data.js";
|
|
13
13
|
import { m as r } from "./model-setter.js";
|
|
14
|
-
import { log as
|
|
14
|
+
import { log as x } from "@arcgis/toolkit/log";
|
|
15
15
|
import { u as Le } from "./series-types.js";
|
|
16
|
-
import {
|
|
16
|
+
import { y as F, aA as _e, aC as Ce, bE as Be, dB as Me, z as b, I as v, J as w } from "./interfaces.js";
|
|
17
17
|
import { g as l } from "./index4.js";
|
|
18
|
-
import { M as
|
|
18
|
+
import { M as xe, a as Fe } from "./model-with-y-guides.js";
|
|
19
19
|
var be = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, n = (c, e, t, s) => {
|
|
20
20
|
for (var o = ve(e, t), a = c.length - 1, h; a >= 0; a--)
|
|
21
21
|
(h = c[a]) && (o = h(e, t, o) || o);
|
|
22
22
|
return o && be(e, t, o), o;
|
|
23
23
|
};
|
|
24
|
-
class i extends
|
|
24
|
+
class i extends O {
|
|
25
25
|
constructor() {
|
|
26
|
-
super(...arguments), this._chartType = Le.BoxPlotSeries, this._category =
|
|
26
|
+
super(...arguments), this._chartType = Le.BoxPlotSeries, this._category = F, this._splitByField = "", this._numericFields = [];
|
|
27
27
|
}
|
|
28
28
|
async setup(e) {
|
|
29
29
|
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && await this.updateSeriesFromLayerFilter(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -39,7 +39,7 @@ class i extends A {
|
|
|
39
39
|
}
|
|
40
40
|
set category(e) {
|
|
41
41
|
const t = e.trim() === "";
|
|
42
|
-
this._category = t ?
|
|
42
|
+
this._category = t ? F : e, this.dirtyAsyncSetters.push("category"), this.processSeriesRebuild();
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* The numeric fields array for the box plot.
|
|
@@ -49,7 +49,7 @@ class i extends A {
|
|
|
49
49
|
}
|
|
50
50
|
set numericFields(e) {
|
|
51
51
|
const { layerFieldsInfo: t } = this.layerInfo;
|
|
52
|
-
typeof e == "string" && (e = [e]), H(t, e) ? (this._numericFields = e, this.dirtyAsyncSetters.push("numericFields"), $(this._category, this._numericFields) && (this._splitByField = "", this.dirtyAsyncSetters.push("splitByField")), this.processSeriesRebuild()) :
|
|
52
|
+
typeof e == "string" && (e = [e]), H(t, e) ? (this._numericFields = e, this.dirtyAsyncSetters.push("numericFields"), $(this._category, this._numericFields) && (this._splitByField = "", this.dirtyAsyncSetters.push("splitByField")), this.processSeriesRebuild()) : x("error", "box-plot-model", "Invalid `numericFields`");
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* The split-by field for the box plot.
|
|
@@ -58,7 +58,7 @@ class i extends A {
|
|
|
58
58
|
return this._splitByField;
|
|
59
59
|
}
|
|
60
60
|
set splitByField(e) {
|
|
61
|
-
Q(this.layerInfo.layerFieldsInfo, e) ? (this._splitByField = e, this.dirtyAsyncSetters.push("splitByField"), this.processSeriesRebuild()) :
|
|
61
|
+
Q(this.layerInfo.layerFieldsInfo, e) ? (this._splitByField = e, this.dirtyAsyncSetters.push("splitByField"), this.processSeriesRebuild()) : x("error", "box-plot-model", "Invalid `splitByField`");
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Whether outliers are shown.
|
|
@@ -353,8 +353,8 @@ class i extends A {
|
|
|
353
353
|
break;
|
|
354
354
|
}
|
|
355
355
|
if (this.showMeanLines === !0 && l(h)) {
|
|
356
|
-
const I = this.getSeriesLineStyle(a),
|
|
357
|
-
if (I !== v ||
|
|
356
|
+
const I = this.getSeriesLineStyle(a), A = this.getSeriesLineWidth(a);
|
|
357
|
+
if (I !== v || A !== w) {
|
|
358
358
|
o = !0;
|
|
359
359
|
break;
|
|
360
360
|
}
|
|
@@ -412,14 +412,14 @@ n([
|
|
|
412
412
|
r
|
|
413
413
|
], i.prototype, "resetSeriesStyling");
|
|
414
414
|
const we = [
|
|
415
|
-
|
|
415
|
+
xe,
|
|
416
416
|
X,
|
|
417
|
-
K,
|
|
418
417
|
j,
|
|
418
|
+
K,
|
|
419
|
+
k,
|
|
419
420
|
Y,
|
|
420
421
|
G,
|
|
421
|
-
|
|
422
|
-
xe,
|
|
422
|
+
Fe,
|
|
423
423
|
R,
|
|
424
424
|
E,
|
|
425
425
|
U,
|