@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
package/dist/chunks/index2.js
CHANGED
|
@@ -1,692 +1,185 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return o;
|
|
19
|
-
}
|
|
20
|
-
function ne(r) {
|
|
21
|
-
const e = s(r);
|
|
22
|
-
return B(r.axes) || (e.axes = r.axes?.map((i) => {
|
|
23
|
-
const t = i;
|
|
24
|
-
return delete t.calculateAutomaticMaximum, delete t.calculateAutomaticMinimum, t.title?.content.font?.style !== void 0 && (t.title.content.font.style = t.title.content.font.style.toLowerCase()), t;
|
|
25
|
-
})), e;
|
|
26
|
-
}
|
|
27
|
-
function ae(r) {
|
|
28
|
-
const e = s(r);
|
|
29
|
-
return B(r.series) || (e.series = r.series.map((i, t) => {
|
|
30
|
-
const o = i;
|
|
31
|
-
i.id === void 0 && (o.id = `Series ${Date.now()}-${t}`);
|
|
32
|
-
const n = h(r.series, t);
|
|
33
|
-
return (n === l.BarSeries || n === l.LineSeries || n === l.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), n === l.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), n === l.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = Qe.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
|
|
34
|
-
...o.sliceGrouping,
|
|
35
|
-
label: o.sliceGrouping.groupName
|
|
36
|
-
}, delete o.sliceGrouping.groupName), o.sliceGrouping.groupSliceSymbol !== void 0 && (o.sliceGrouping = {
|
|
37
|
-
...o.sliceGrouping,
|
|
38
|
-
fillSymbol: o.sliceGrouping.groupSliceSymbol
|
|
39
|
-
}, delete o.sliceGrouping.groupSliceSymbol)), o;
|
|
40
|
-
})), e;
|
|
41
|
-
}
|
|
42
|
-
function te(r, e) {
|
|
43
|
-
const i = [];
|
|
44
|
-
return r.forEach((t) => {
|
|
45
|
-
if (!oe(t)) {
|
|
46
|
-
const o = T(t, !1);
|
|
47
|
-
if (o.fieldToSort !== void 0) {
|
|
48
|
-
const n = b({
|
|
49
|
-
queryObject: e,
|
|
50
|
-
fieldToMatch: o.fieldToSort
|
|
51
|
-
});
|
|
52
|
-
n !== void 0 && i.push(
|
|
53
|
-
o.orderBy === void 0 ? n : `${n} ${o.orderBy}`
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}), i;
|
|
58
|
-
}
|
|
59
|
-
async function de(r, e) {
|
|
60
|
-
const i = { ...r };
|
|
61
|
-
let t = e;
|
|
62
|
-
if (!t) {
|
|
63
|
-
const o = ot(r) ? r.iLayer : r.dataSource?.layer;
|
|
64
|
-
o && (t = await Ke(o));
|
|
65
|
-
}
|
|
66
|
-
if (t) {
|
|
67
|
-
const o = C(i.series), n = h(i.series), u = i.series && i.series.length > 0 && i.series[0].x.trim() === "" || n === l.GaugeSeries && !Xe(r) || o === c.PieFromFields || o === c.BarAndLineFromFields || o === c.BoxPlotMonoField || o === c.BoxPlotMonoFieldAndSplitBy || o === c.BoxPlotMultiFields || o === c.BoxPlotMultiFieldsAndSplitBy, v = n === l.ScatterSeries || n === l.HeatSeries || o === c.BarAndLineNoAggregation || o === c.BarAndLineSplitByNoAggregation || o === c.BoxPlotMonoField || o === c.BoxPlotMonoFieldAndSplitBy || o === c.BoxPlotMonoFieldAndCategory || o === c.BoxPlotMonoFieldAndCategoryAndSplitBy || o === c.PieNoAggregation;
|
|
68
|
-
if (i.series = r.series.map((a) => {
|
|
69
|
-
const d = { ...a };
|
|
70
|
-
if (u || (d.x = b({ queryObject: t, fieldToMatch: a.x })), "y" in d && v) {
|
|
71
|
-
const y = d.y;
|
|
72
|
-
if (Array.isArray(y)) {
|
|
73
|
-
const p = Z({
|
|
74
|
-
fieldsList: y,
|
|
75
|
-
queryObject: t
|
|
76
|
-
});
|
|
77
|
-
p !== void 0 && "y" in d && (d.y = p);
|
|
78
|
-
} else "y" in d && typeof y == "string" && (d.y = b({ queryObject: t, fieldToMatch: y }));
|
|
79
|
-
}
|
|
80
|
-
if (a.query !== void 0) {
|
|
81
|
-
let { where: y, groupByFieldsForStatistics: p, outStatistics: m } = a.query;
|
|
82
|
-
if (p = Z({ fieldsList: p, queryObject: t }), m !== void 0 && (m = m.map((x) => {
|
|
83
|
-
const O = { ...x };
|
|
84
|
-
return O.onStatisticField = b({
|
|
85
|
-
queryObject: t,
|
|
86
|
-
fieldToMatch: x.onStatisticField
|
|
87
|
-
}), O;
|
|
88
|
-
})), y !== void 0 && o === c.BarAndLineSplitBy) {
|
|
89
|
-
const x = Je(a.query?.where), O = Ze({
|
|
90
|
-
where: a.query?.where,
|
|
91
|
-
normalize: !1,
|
|
92
|
-
escape: !1
|
|
93
|
-
});
|
|
94
|
-
y = `${b({ queryObject: t, fieldToMatch: x })}=${O}`;
|
|
95
|
-
}
|
|
96
|
-
d.query !== void 0 && (y !== void 0 && (d.query.where = y), p !== void 0 && (d.query.groupByFieldsForStatistics = p), m !== void 0 && (d.query.outStatistics = m));
|
|
97
|
-
}
|
|
98
|
-
return d;
|
|
99
|
-
}), i.series[0]?.query !== void 0) {
|
|
100
|
-
const a = i.series[0].query;
|
|
101
|
-
let { orderByFields: d } = a;
|
|
102
|
-
d !== void 0 && d.length > 0 && (d = te(d, t), d.length > 0 && a.orderByFields !== void 0 && (i.series[0].query.orderByFields = d));
|
|
103
|
-
}
|
|
104
|
-
if (i.orderOptions?.orderByFields !== void 0) {
|
|
105
|
-
let { orderByFields: a } = i.orderOptions;
|
|
106
|
-
a !== void 0 && a.length > 0 && (a = te(a, t), a.length > 0 && (i.orderOptions.orderByFields = a));
|
|
107
|
-
}
|
|
108
|
-
if (n === l.GaugeSeries && r.axes?.[0] !== void 0) {
|
|
109
|
-
const { minimumFromField: a, maximumFromField: d } = r.axes[0];
|
|
110
|
-
if (a !== void 0) {
|
|
111
|
-
const y = typeof a == "string" ? a : a.onStatisticField, p = b({ queryObject: t, fieldToMatch: y });
|
|
112
|
-
let m = a;
|
|
113
|
-
typeof r.axes[0].minimumFromField == "string" ? m = p : typeof a == "object" && (m = {
|
|
114
|
-
...a,
|
|
115
|
-
onStatisticField: p
|
|
116
|
-
}), r.axes[0].minimumFromField = m;
|
|
117
|
-
}
|
|
118
|
-
if (d !== void 0) {
|
|
119
|
-
const y = typeof d == "string" ? d : d.onStatisticField, p = b({ queryObject: t, fieldToMatch: y });
|
|
120
|
-
let m = d;
|
|
121
|
-
typeof r.axes[0].maximumFromField == "string" ? m = p : typeof d == "object" && (m = {
|
|
122
|
-
...d,
|
|
123
|
-
onStatisticField: p
|
|
124
|
-
}), r.axes[0].maximumFromField = m;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return i;
|
|
129
|
-
}
|
|
130
|
-
function le(r) {
|
|
131
|
-
const e = s(r);
|
|
132
|
-
if (!B(r.series) && h(r.series) === l.BoxPlotSeries) {
|
|
133
|
-
const t = e.series[0];
|
|
134
|
-
t && (t.showOutliers !== void 0 && (r.showOutliers === void 0 && (e.showOutliers = t.showOutliers), delete t.showOutliers), t.standardizeValues !== void 0 && (r.standardizeValues === void 0 && (e.standardizeValues = t.standardizeValues), delete t.standardizeValues), t.showMean !== void 0 && (r.showMean === void 0 && (e.showMean = t.showMean), delete t.showMean));
|
|
135
|
-
}
|
|
136
|
-
return e;
|
|
137
|
-
}
|
|
138
|
-
function ce(r) {
|
|
139
|
-
const e = {
|
|
140
|
-
orderType: f.Category,
|
|
141
|
-
orderBy: S.Ascending
|
|
142
|
-
}, i = r.query?.orderByFields?.[0];
|
|
143
|
-
if (i !== void 0) {
|
|
144
|
-
const { outStatisticFieldName: t, statisticType: o } = r.query?.outStatistics?.[0] ?? {}, n = T(i);
|
|
145
|
-
t !== void 0 && n.fieldToSort === t && o !== void 0 && (o === F.Average || o === "mean" ? e.orderType = f.Mean : o === F.ContinuousPercentile && (e.orderType = f.Median)), e.orderBy = n.orderBy ?? S.Ascending;
|
|
146
|
-
}
|
|
147
|
-
return e;
|
|
148
|
-
}
|
|
149
|
-
function ue(r) {
|
|
150
|
-
let e = !1;
|
|
151
|
-
const i = Array.from(new Set(r.series.map((t) => t.type)));
|
|
152
|
-
return i.length === 2 && i.includes(l.BoxPlotSeries) && i.includes(l.LineSeries) && (e = r.series.find((o) => o.type === l.LineSeries)?.query?.outStatistics?.[0] !== void 0), e;
|
|
153
|
-
}
|
|
154
|
-
function fe(r) {
|
|
155
|
-
const e = s(r);
|
|
156
|
-
if (!B(e.series) && h(r.series) === l.BoxPlotSeries) {
|
|
157
|
-
if (e.orderOptions?.data === void 0) {
|
|
158
|
-
const t = ce(r.series[0]);
|
|
159
|
-
t.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
160
|
-
orderType: t.orderType,
|
|
161
|
-
orderBy: t.orderBy
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
if (e.series = r.series.map((t) => {
|
|
165
|
-
const o = t;
|
|
166
|
-
return B(o.x?.trim()) && (o.x = Ue), delete o.query?.orderByFields, o;
|
|
167
|
-
}), ue(e)) {
|
|
168
|
-
e.showMean = !0;
|
|
169
|
-
const t = e.series.find(
|
|
170
|
-
(o) => o.type === l.BoxPlotSeries
|
|
171
|
-
);
|
|
172
|
-
e.series.forEach((o) => {
|
|
173
|
-
o.type === l.LineSeries && (delete o.query?.groupByFieldsForStatistics, delete o.query?.outStatistics, delete o.query?.orderByFields, t && (o.y = t.y));
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
e.series = r.series.map((t) => {
|
|
177
|
-
const o = t;
|
|
178
|
-
return delete o.query?.outStatistics, o;
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
return e;
|
|
182
|
-
}
|
|
183
|
-
function ye(r) {
|
|
184
|
-
const e = s(r);
|
|
185
|
-
return e.legend !== void 0 && !Number.isFinite(e.legend.maxHeight) && (e.legend.maxHeight = void 0), e;
|
|
186
|
-
}
|
|
187
|
-
function pe(r) {
|
|
188
|
-
const e = s(r);
|
|
189
|
-
return "dataSource" in e && e.dataSource.layer && (e.iLayer = e.dataSource.layer, delete e.dataSource), e;
|
|
190
|
-
}
|
|
191
|
-
function me(r) {
|
|
192
|
-
const e = s(r), i = /* @__PURE__ */ new Set(), t = e.id ?? "";
|
|
193
|
-
return i.add(t), e.series.forEach((o) => {
|
|
194
|
-
let n = o.id;
|
|
195
|
-
i.has(n) && (n = `${n}_${Date.now()}`, o.id = n), i.add(n);
|
|
196
|
-
}), e;
|
|
197
|
-
}
|
|
198
|
-
async function Se(r) {
|
|
199
|
-
const { configToUpdate: e, layer: i, chartContainer: t } = r;
|
|
200
|
-
let o = s(e);
|
|
201
|
-
if (o = ne(o), o = ae(o), o = await de(o, i), ie(o)) {
|
|
202
|
-
const n = le(o);
|
|
203
|
-
o = fe(n);
|
|
204
|
-
}
|
|
205
|
-
return o = ye(o), o = me(o), He(o) && !Re(i) && (o = se({ configToUpdate: o, chartContainer: t, layer: i })), o;
|
|
206
|
-
}
|
|
207
|
-
function ve(r) {
|
|
208
|
-
const e = s(r);
|
|
209
|
-
return e?.orderOptions?.orderByFields !== void 0 && C(r.series) === c.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
|
|
210
|
-
(i) => {
|
|
211
|
-
let t = s(i);
|
|
212
|
-
return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (t = i.replace(
|
|
213
|
-
"arcgis_charts_pie_category_from_fields_name",
|
|
214
|
-
K
|
|
215
|
-
)), t;
|
|
216
|
-
}
|
|
217
|
-
)), e;
|
|
218
|
-
}
|
|
219
|
-
function Be(r) {
|
|
220
|
-
const e = s(r);
|
|
221
|
-
if (!B(r.series) && e.axes?.[0] !== void 0 && h(r.series) === l.GaugeSeries && r.axes?.[0] !== void 0) {
|
|
222
|
-
const t = r.axes[0];
|
|
223
|
-
t.ticks !== void 0 && Object.hasOwn(t.ticks, "spacing") && delete t.ticks.spacing, e.axes[0] = t;
|
|
224
|
-
}
|
|
225
|
-
return e;
|
|
226
|
-
}
|
|
227
|
-
function he(r) {
|
|
228
|
-
const e = s(r), { extent: i } = e.series[0]?.query ?? {};
|
|
229
|
-
return i !== void 0 && (e.dataFilters = {
|
|
230
|
-
...e.dataFilters,
|
|
231
|
-
geometry: i
|
|
232
|
-
}, e.series.forEach((t) => {
|
|
233
|
-
"query" in t && "extent" in t.query && delete t.query.extent;
|
|
234
|
-
})), e;
|
|
235
|
-
}
|
|
236
|
-
function X(r) {
|
|
237
|
-
const e = s(r);
|
|
238
|
-
return B(r.series) || (st(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? et()), e.series.forEach((i) => {
|
|
239
|
-
i.rotated !== void 0 && delete i.rotated;
|
|
240
|
-
})), e;
|
|
241
|
-
}
|
|
242
|
-
function ge(r) {
|
|
243
|
-
const e = s(r), i = r.dataSource;
|
|
244
|
-
return "dataSource" in e && !B(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
|
|
245
|
-
}
|
|
246
|
-
function be(r) {
|
|
247
|
-
const e = s(r);
|
|
248
|
-
if ("dataSource" in r) {
|
|
249
|
-
const i = r.dataSource;
|
|
250
|
-
if (i.filter !== void 0 && i.filter.trim() !== "") {
|
|
251
|
-
const t = tt([i.filter, e.dataFilters?.where]);
|
|
252
|
-
e.dataFilters = {
|
|
253
|
-
...e.dataFilters,
|
|
254
|
-
where: t
|
|
255
|
-
}, delete e.dataSource.filter;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
return e;
|
|
259
|
-
}
|
|
260
|
-
function Fe(r) {
|
|
261
|
-
return r !== "originalValue";
|
|
262
|
-
}
|
|
263
|
-
function J(r) {
|
|
264
|
-
let e;
|
|
265
|
-
switch (r) {
|
|
266
|
-
case "mean":
|
|
267
|
-
e = f.Mean;
|
|
268
|
-
break;
|
|
269
|
-
case "median":
|
|
270
|
-
e = f.Median;
|
|
271
|
-
break;
|
|
272
|
-
case "category":
|
|
273
|
-
e = f.Category;
|
|
2
|
+
import { cloneDeep as w } from "lodash-es";
|
|
3
|
+
import { bh as V } from "./interfaces.js";
|
|
4
|
+
import { i as g, f as y, g as p, R as $ } from "./rest-js-object-literals.js";
|
|
5
|
+
function L(i) {
|
|
6
|
+
let r;
|
|
7
|
+
switch (i.length) {
|
|
8
|
+
case 4: {
|
|
9
|
+
const e = i.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);
|
|
10
|
+
e && (r = [
|
|
11
|
+
Number.parseInt(`${e[1]}${e[1]}`, 16),
|
|
12
|
+
Number.parseInt(`${e[2]}${e[2]}`, 16),
|
|
13
|
+
Number.parseInt(`${e[3]}${e[3]}`, 16),
|
|
14
|
+
255
|
|
15
|
+
]);
|
|
274
16
|
break;
|
|
275
|
-
}
|
|
276
|
-
return e;
|
|
277
|
-
}
|
|
278
|
-
function xe(r) {
|
|
279
|
-
const e = s(r);
|
|
280
|
-
if (!B(r.series) && h(r.series) === l.PieSeries) {
|
|
281
|
-
const t = e.series[0];
|
|
282
|
-
if (t) {
|
|
283
|
-
if (t.sortLabelsBy === "originalValue")
|
|
284
|
-
e.sortLabelsBy = t.sortLabelsBy;
|
|
285
|
-
else if (t.sortLabelsBy !== void 0 && e.orderOptions?.data === void 0) {
|
|
286
|
-
const o = P(e);
|
|
287
|
-
o !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = o);
|
|
288
|
-
}
|
|
289
|
-
t.sortLabelsBy && delete t.sortLabelsBy;
|
|
290
17
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
function Ce(r) {
|
|
301
|
-
const e = s(r), i = r.sortOptions?.sortSeriesBy;
|
|
302
|
-
return e.orderOptions === void 0 && typeof i == "string" && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
303
|
-
orderBy: i === "DESC" ? S.Descending : S.Ascending
|
|
304
|
-
}), e;
|
|
305
|
-
}
|
|
306
|
-
function Te(r) {
|
|
307
|
-
const e = s(r);
|
|
308
|
-
return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType === at.Match), e.series.forEach((i) => {
|
|
309
|
-
i.colorType !== void 0 && delete i.colorType;
|
|
310
|
-
}), e;
|
|
311
|
-
}
|
|
312
|
-
function Pe(r) {
|
|
313
|
-
const e = s(r);
|
|
314
|
-
if (e.sortDataBy !== void 0) {
|
|
315
|
-
if (e.orderOptions?.data === void 0) {
|
|
316
|
-
const i = r.sortDataBy, t = J(i?.sortType);
|
|
317
|
-
t && t !== f.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
318
|
-
orderType: t,
|
|
319
|
-
orderBy: i?.sortOrder ?? S.Ascending
|
|
320
|
-
});
|
|
18
|
+
case 5: {
|
|
19
|
+
const e = i.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);
|
|
20
|
+
e && (r = [
|
|
21
|
+
Number.parseInt(`${e[1]}${e[1]}`, 16),
|
|
22
|
+
Number.parseInt(`${e[2]}${e[2]}`, 16),
|
|
23
|
+
Number.parseInt(`${e[3]}${e[3]}`, 16),
|
|
24
|
+
Number.parseInt(`${e[4]}${e[4]}`, 16)
|
|
25
|
+
]);
|
|
26
|
+
break;
|
|
321
27
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
visible: i.scrollbarVisible
|
|
332
|
-
}, delete i.scrollbarVisible);
|
|
333
|
-
}), e;
|
|
334
|
-
}
|
|
335
|
-
function ke(r) {
|
|
336
|
-
const e = s(r), i = e.series[0]?.query?.orderByFields;
|
|
337
|
-
if (i !== void 0 && i.length > 0 && e.orderOptions?.orderByFields === void 0) {
|
|
338
|
-
e.orderOptions ??= {};
|
|
339
|
-
let t = !0;
|
|
340
|
-
if (i.length === 1) {
|
|
341
|
-
const { fieldToSort: o, orderBy: n } = T(i[0]);
|
|
342
|
-
let u;
|
|
343
|
-
o === r.series[0].x || o === K ? u = f.Category : "y" in r.series[0] && o === r.series[0].y && (u = f.YValue), u && u !== f.MultiAxes && (t = !1, e.orderOptions.data === void 0 && (e.orderOptions.data = {
|
|
344
|
-
orderType: u,
|
|
345
|
-
orderBy: n?.toUpperCase() === "DESC" ? S.Descending : S.Ascending
|
|
346
|
-
}));
|
|
28
|
+
case 7: {
|
|
29
|
+
const e = i.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);
|
|
30
|
+
e && (r = [
|
|
31
|
+
Number.parseInt(e[1], 16),
|
|
32
|
+
Number.parseInt(e[2], 16),
|
|
33
|
+
Number.parseInt(e[3], 16),
|
|
34
|
+
255
|
|
35
|
+
]);
|
|
36
|
+
break;
|
|
347
37
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
const t = h(r.series), o = C(r.series);
|
|
358
|
-
if (t !== l.PieSeries && o !== c.BarAndLineFromFields && (i = i ?? r.series[0].x), i && !oe(i)) {
|
|
359
|
-
const { fieldToSort: n, orderBy: u } = T(i);
|
|
360
|
-
let v;
|
|
361
|
-
n === r.series[0].x || n === K ? v = f.Category : "y" in r.series[0] && n === r.series[0].y && (v = f.YValue), v && v !== f.MultiAxes && (e = {
|
|
362
|
-
orderType: v,
|
|
363
|
-
orderBy: u?.toUpperCase() === "DESC" ? S.Descending : S.Ascending
|
|
364
|
-
});
|
|
38
|
+
case 9: {
|
|
39
|
+
const e = i.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);
|
|
40
|
+
e && (r = [
|
|
41
|
+
Number.parseInt(e[1], 16),
|
|
42
|
+
Number.parseInt(e[2], 16),
|
|
43
|
+
Number.parseInt(e[3], 16),
|
|
44
|
+
Number.parseInt(e[4], 16)
|
|
45
|
+
]);
|
|
46
|
+
break;
|
|
365
47
|
}
|
|
366
48
|
}
|
|
367
|
-
return
|
|
368
|
-
}
|
|
369
|
-
function
|
|
370
|
-
|
|
371
|
-
if (
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
49
|
+
return r;
|
|
50
|
+
}
|
|
51
|
+
function N(i) {
|
|
52
|
+
let r;
|
|
53
|
+
if (typeof i == "string" && i.startsWith("#")) {
|
|
54
|
+
const e = L(i);
|
|
55
|
+
e && (r = e);
|
|
56
|
+
} else Array.isArray(i) && i.every((e) => typeof e == "number") && (i.length === 4 ? r = i : i.length === 3 && (r = [...i, 255]));
|
|
57
|
+
return r;
|
|
58
|
+
}
|
|
59
|
+
function R(i) {
|
|
60
|
+
return i === y.BackwardDiagonal || i === y.Cross || i === y.DiagonalCross || i === y.ForwardDiagonal || i === y.Horizontal || i === y.Null || i === y.Solid || i === y.Vertical;
|
|
61
|
+
}
|
|
62
|
+
function I(i) {
|
|
63
|
+
return i === p.Dash || i === p.DashDot || i === p.DashDotDot || i === p.Dot || i === p.Null || i === p.Solid;
|
|
64
|
+
}
|
|
65
|
+
function W(i) {
|
|
66
|
+
const { categoryField: r, numericFields: e, configFields: n, inlineData: s } = i;
|
|
67
|
+
let u = {};
|
|
68
|
+
return n && Object.keys(n).length > 0 && "dataItems" in s && (u = {
|
|
69
|
+
type: "uniqueValue",
|
|
70
|
+
field1: r,
|
|
71
|
+
uniqueValueInfos: []
|
|
72
|
+
}, s.dataItems.forEach((l) => {
|
|
73
|
+
const a = l[r];
|
|
74
|
+
if (a != null) {
|
|
75
|
+
let t = { value: a };
|
|
76
|
+
e.forEach((o) => {
|
|
77
|
+
const c = N(l[`${n.fillColor}_${o}`]), b = l[`${n.fillOpacity}_${o}`], S = l[`${n.fillStyle}_${o}`], m = l[`${n.markerSize}_${o}`], D = N(l[`${n.outlineColor}_${o}`]), O = l[`${n.outlineOpacity}_${o}`], h = l[`${n.outlineWidth}_${o}`], k = l[`${n.outlineStyle}_${o}`], F = N(l[`${n.lineColor}_${o}`]), v = l[`${n.lineOpacity}_${o}`], d = l[`${n.lineWidth}_${o}`], _ = l[`${n.lineStyle}_${o}`], C = l[`${n.displayLabel}_${o}`];
|
|
78
|
+
if (typeof C == "string" && (t = {
|
|
79
|
+
...t,
|
|
80
|
+
label: C
|
|
81
|
+
}), m != null) {
|
|
82
|
+
const f = { type: g.SMS };
|
|
83
|
+
m && typeof m == "number" && (f.size = m), t.symbol = f;
|
|
387
84
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
const t = P(e);
|
|
402
|
-
t !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = t, delete e.orderOptions.orderByFields);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
return e;
|
|
406
|
-
}
|
|
407
|
-
function De(r) {
|
|
408
|
-
const e = s(r);
|
|
409
|
-
return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = ee.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = ee.Hide), e;
|
|
410
|
-
}
|
|
411
|
-
function Me(r) {
|
|
412
|
-
const e = s(r), i = e.series[0];
|
|
413
|
-
if (i && !i.temporalBinning && it(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
|
|
414
|
-
if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
|
|
415
|
-
let t;
|
|
416
|
-
switch (i.timeIntervalUnits) {
|
|
417
|
-
case "esriTimeUnitsSeconds":
|
|
418
|
-
t = g.Second;
|
|
419
|
-
break;
|
|
420
|
-
case "esriTimeUnitsMinutes":
|
|
421
|
-
t = g.Minute;
|
|
422
|
-
break;
|
|
423
|
-
case "esriTimeUnitsHours":
|
|
424
|
-
t = g.Hour;
|
|
425
|
-
break;
|
|
426
|
-
case "esriTimeUnitsDays":
|
|
427
|
-
t = g.Day;
|
|
428
|
-
break;
|
|
429
|
-
case "esriTimeUnitsWeeks":
|
|
430
|
-
t = g.Week;
|
|
431
|
-
break;
|
|
432
|
-
case "esriTimeUnitsMonths":
|
|
433
|
-
t = g.Month;
|
|
434
|
-
break;
|
|
435
|
-
case "esriTimeUnitsYears":
|
|
436
|
-
t = g.Year;
|
|
437
|
-
break;
|
|
438
|
-
}
|
|
439
|
-
t !== void 0 && (i.temporalBinning.unit = t), delete i.timeIntervalUnits;
|
|
85
|
+
if (c || R(S)) {
|
|
86
|
+
const f = t.symbol && t.symbol.type === g.SMS ? t.symbol : {
|
|
87
|
+
type: g.SFS
|
|
88
|
+
};
|
|
89
|
+
if (c && (b && typeof b == "number" && (c[3] = b), f.color = c), R(S) && (f.style = S), t.symbol = f, D || h != null || I(k)) {
|
|
90
|
+
const T = { type: g.SLS };
|
|
91
|
+
D && (O && typeof O == "number" && (D[3] = O), T.color = D), I(k) && (T.style = k), h && typeof h == "number" && (T.width = h), t.symbol.outline = T;
|
|
92
|
+
}
|
|
93
|
+
} else if (F || d != null || I(_)) {
|
|
94
|
+
const f = { type: g.SLS };
|
|
95
|
+
F && (v && typeof v == "number" && (F[3] = v), f.color = F), I(_) && (f.style = _), d != null && typeof d == "number" && (f.width = d), t.symbol = f;
|
|
96
|
+
}
|
|
97
|
+
}), (t.label || t.symbol) && u.uniqueValueInfos.push(t);
|
|
440
98
|
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
99
|
+
})), u;
|
|
100
|
+
}
|
|
101
|
+
function E(i) {
|
|
102
|
+
const { numericFields: r, configFields: e, inlineData: n } = i, s = n;
|
|
103
|
+
return "dataItems" in n && Object.entries(e).forEach(([u, l]) => {
|
|
104
|
+
r.forEach((a) => {
|
|
105
|
+
const t = `${l}_${a}`;
|
|
106
|
+
n.dataItems.forEach((o) => {
|
|
107
|
+
t in o && delete o[t];
|
|
108
|
+
});
|
|
450
109
|
});
|
|
451
|
-
}),
|
|
452
|
-
}
|
|
453
|
-
function
|
|
454
|
-
const e =
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
-
function M(r) {
|
|
492
|
-
let e = s(r);
|
|
493
|
-
return e = be(e), e;
|
|
494
|
-
}
|
|
495
|
-
function W(r) {
|
|
496
|
-
let e = s(r);
|
|
497
|
-
return e = xe(e), e;
|
|
498
|
-
}
|
|
499
|
-
function q(r) {
|
|
500
|
-
let e = s(r);
|
|
501
|
-
return e = Ce(e), e;
|
|
502
|
-
}
|
|
503
|
-
function I(r) {
|
|
504
|
-
let e = s(r);
|
|
505
|
-
return e = Te(e), e;
|
|
506
|
-
}
|
|
507
|
-
function E(r) {
|
|
508
|
-
return Le(r);
|
|
509
|
-
}
|
|
510
|
-
function N(r) {
|
|
511
|
-
let e = s(r);
|
|
512
|
-
return ie(e) && (e = Pe(e)), e;
|
|
513
|
-
}
|
|
514
|
-
function V(r) {
|
|
515
|
-
return Oe(r);
|
|
516
|
-
}
|
|
517
|
-
function G(r) {
|
|
518
|
-
return we(r);
|
|
519
|
-
}
|
|
520
|
-
function z(r) {
|
|
521
|
-
return pe(r);
|
|
522
|
-
}
|
|
523
|
-
function _(r) {
|
|
524
|
-
return Ae(r);
|
|
525
|
-
}
|
|
526
|
-
function j(r) {
|
|
527
|
-
return De(r);
|
|
528
|
-
}
|
|
529
|
-
function H(r) {
|
|
530
|
-
return Me(r);
|
|
531
|
-
}
|
|
532
|
-
function R(r) {
|
|
533
|
-
return We(r);
|
|
534
|
-
}
|
|
535
|
-
function $(r) {
|
|
536
|
-
let e = s(r);
|
|
537
|
-
return e = X(e), qe(e);
|
|
538
|
-
}
|
|
539
|
-
function Y(r) {
|
|
540
|
-
let e = s(r);
|
|
541
|
-
return e = Ie(e), e;
|
|
542
|
-
}
|
|
543
|
-
function Q(r) {
|
|
544
|
-
let e = s(r);
|
|
545
|
-
return e = Ee(e), e;
|
|
546
|
-
}
|
|
547
|
-
function Ve(r) {
|
|
548
|
-
const { versionsToConvert: e = [], configToUpdate: i } = r;
|
|
549
|
-
let t = s(i);
|
|
550
|
-
return e.length > 0 && t !== void 0 && (t = ke(t), e.includes(re) || e.includes($e) ? (t = Ne(t), t = k(t), t = w(t), t = A(t), t = D(t), t = M(t), t = W(t), t = q(t), t = I(t), t = E(t), t = N(t), t = V(t), t = G(t), t = z(t), t = _(t), t = j(t), t = H(t), t = R(t), t = $(t), t = Y(t), t = Q(t)) : e.forEach((o) => {
|
|
551
|
-
if (t !== void 0)
|
|
552
|
-
switch (o) {
|
|
553
|
-
case "1.0.1":
|
|
554
|
-
t = k(t);
|
|
555
|
-
break;
|
|
556
|
-
case "3.4.0":
|
|
557
|
-
t = w(t);
|
|
558
|
-
break;
|
|
559
|
-
case "4.0.0":
|
|
560
|
-
t = A(t);
|
|
561
|
-
break;
|
|
562
|
-
case "4.0.1":
|
|
563
|
-
t = D(t);
|
|
564
|
-
break;
|
|
565
|
-
case "6.4.0":
|
|
566
|
-
t = M(t);
|
|
567
|
-
break;
|
|
568
|
-
case "7.5.1":
|
|
569
|
-
t = W(t);
|
|
570
|
-
break;
|
|
571
|
-
case "8.0.0":
|
|
572
|
-
t = q(t);
|
|
573
|
-
break;
|
|
574
|
-
case "9.2.0":
|
|
575
|
-
t = I(t);
|
|
576
|
-
break;
|
|
577
|
-
case "9.7.0":
|
|
578
|
-
t = E(t);
|
|
579
|
-
break;
|
|
580
|
-
case "10.0.0":
|
|
581
|
-
t = N(t);
|
|
582
|
-
break;
|
|
583
|
-
case "11.0.0":
|
|
584
|
-
t = V(t);
|
|
585
|
-
break;
|
|
586
|
-
case "14.0.1":
|
|
587
|
-
t = G(t);
|
|
588
|
-
break;
|
|
589
|
-
case "16.0.0":
|
|
590
|
-
t = z(t);
|
|
591
|
-
break;
|
|
592
|
-
case "16.1.0":
|
|
593
|
-
t = _(t);
|
|
594
|
-
break;
|
|
595
|
-
case "18.1.3":
|
|
596
|
-
t = j(t);
|
|
597
|
-
break;
|
|
598
|
-
case "20.1.0":
|
|
599
|
-
t = H(t);
|
|
600
|
-
break;
|
|
601
|
-
case "21.0.0":
|
|
602
|
-
t = R(t);
|
|
603
|
-
break;
|
|
604
|
-
case "23.2.0":
|
|
605
|
-
t = $(t);
|
|
606
|
-
break;
|
|
607
|
-
case "24.7.0":
|
|
608
|
-
t = Y(t);
|
|
609
|
-
break;
|
|
610
|
-
case "24.8.0":
|
|
611
|
-
t = Q(t);
|
|
612
|
-
break;
|
|
110
|
+
}), s;
|
|
111
|
+
}
|
|
112
|
+
function j(i) {
|
|
113
|
+
const { categoryField: r, categoryType: e, numericFields: n, inlineData: s } = i;
|
|
114
|
+
let u;
|
|
115
|
+
if ("dataItems" in s) {
|
|
116
|
+
const { dataItems: l } = s, a = [];
|
|
117
|
+
let t = "OBJECTID";
|
|
118
|
+
const o = l.map((b, S) => {
|
|
119
|
+
const m = { ...b };
|
|
120
|
+
return "FID" in b ? t = "FID" : "ObjectId" in b && (t = "ObjectId"), m[t] || (m[t] = S), { attributes: m };
|
|
121
|
+
});
|
|
122
|
+
a.push({ type: "esriFieldTypeOID", name: t });
|
|
123
|
+
let c;
|
|
124
|
+
switch (e) {
|
|
125
|
+
case "dateOnly":
|
|
126
|
+
c = $.DateOnly;
|
|
127
|
+
break;
|
|
128
|
+
case "timeStampOffset":
|
|
129
|
+
c = $.TimestampOffset;
|
|
130
|
+
break;
|
|
131
|
+
case "date":
|
|
132
|
+
c = $.Date;
|
|
133
|
+
break;
|
|
134
|
+
case "number":
|
|
135
|
+
c = $.Double;
|
|
136
|
+
break;
|
|
137
|
+
case "string":
|
|
138
|
+
default:
|
|
139
|
+
c = $.String;
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
a.push({ type: c, name: r }), n.forEach((b) => {
|
|
143
|
+
a.push({ type: $.Double, name: b });
|
|
144
|
+
}), u = {
|
|
145
|
+
id: "",
|
|
146
|
+
layerType: "ArcGISFeatureLayer",
|
|
147
|
+
featureCollection: {
|
|
148
|
+
layers: [{ layerDefinition: { fields: a }, featureSet: { features: o } }]
|
|
613
149
|
}
|
|
614
|
-
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
isBoxPlotConfigWithMeanLinesFromPro: ue,
|
|
644
|
-
preventDuplicatedIds: me,
|
|
645
|
-
adjustBoxPlotConfig: fe,
|
|
646
|
-
convertSortSeriesByToObject: Ce,
|
|
647
|
-
moveBoxPlotSortDataByProp: Pe,
|
|
648
|
-
handleColorMatchChanges: Te,
|
|
649
|
-
moveScrollbarVisible: Le,
|
|
650
|
-
moveSeriesStackedTypePropToChart: Oe,
|
|
651
|
-
convertBoxplotOldToNewDataSortType: J,
|
|
652
|
-
getDataOrderFromOrderByFields: P,
|
|
653
|
-
convertWebChartDataValueTypes: Fe,
|
|
654
|
-
moveOrConvertSeriesOrderByFieldsToChartOrderOptions: ke,
|
|
655
|
-
convertWebChartLabelBehaviorNoneToHide: De,
|
|
656
|
-
handleOrderOptionsChanges: we,
|
|
657
|
-
applyDataOrderInstructionForFromFieldsCharts: Ae,
|
|
658
|
-
convertTemporalBinningProps: Me,
|
|
659
|
-
convertRESTStatisticTypeToWebChartStatisticType: We,
|
|
660
|
-
renameChartSubtitle: qe,
|
|
661
|
-
applyMandatoryConversions: Se,
|
|
662
|
-
convertTo1x0x1: Ne,
|
|
663
|
-
convertTo2x0x0: k,
|
|
664
|
-
convertTo3x5x0: w,
|
|
665
|
-
convertTo4x0x1: A,
|
|
666
|
-
convertTo5x0x0: D,
|
|
667
|
-
convertTo7x0x0: M,
|
|
668
|
-
convertTo7x6x0: W,
|
|
669
|
-
convertTo8x0x1: q,
|
|
670
|
-
convertTo9x3x0: I,
|
|
671
|
-
convertTo10x0x0: E,
|
|
672
|
-
convertTo11x0x0: N,
|
|
673
|
-
convertTo12x0x0: V,
|
|
674
|
-
convertTo15x0x0: G,
|
|
675
|
-
convertTo16x1x0: z,
|
|
676
|
-
convertTo16x1x1: _,
|
|
677
|
-
convertTo19x0x0: j,
|
|
678
|
-
convertTo20x2x0: H,
|
|
679
|
-
convertTo21x1x0: R,
|
|
680
|
-
convertTo23x3x0: $,
|
|
681
|
-
convertTo24x8x0: Y,
|
|
682
|
-
convertTo25x0x0: Q,
|
|
683
|
-
convertTemporalBinningProps2: Ie,
|
|
684
|
-
transformPropsInHeatChart: Ee,
|
|
685
|
-
applyConversions: Ve,
|
|
686
|
-
convertDataSourceToILayer: pe,
|
|
687
|
-
applyDefaultFirstDayOfWeek: se
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
return u;
|
|
153
|
+
}
|
|
154
|
+
async function B(i) {
|
|
155
|
+
const { categoryField: r, categoryType: e, numericFields: n, configFields: s, inlineData: u } = i;
|
|
156
|
+
let l, a, t = w(u);
|
|
157
|
+
s && (l = W({
|
|
158
|
+
categoryField: r,
|
|
159
|
+
numericFields: n,
|
|
160
|
+
configFields: s,
|
|
161
|
+
inlineData: t
|
|
162
|
+
}), t = E({
|
|
163
|
+
numericFields: n,
|
|
164
|
+
configFields: s,
|
|
165
|
+
inlineData: t
|
|
166
|
+
}));
|
|
167
|
+
const o = j({
|
|
168
|
+
categoryField: r,
|
|
169
|
+
categoryType: e,
|
|
170
|
+
numericFields: n,
|
|
171
|
+
inlineData: t
|
|
172
|
+
});
|
|
173
|
+
return o && (a = await V(o)), { chartRenderer: l, iLayer: o, layer: a };
|
|
174
|
+
}
|
|
175
|
+
const M = {
|
|
176
|
+
hexToRGB: L,
|
|
177
|
+
convertColor: N,
|
|
178
|
+
removeConfigFieldsFromData: E
|
|
688
179
|
};
|
|
689
180
|
export {
|
|
690
|
-
|
|
691
|
-
|
|
181
|
+
B as a,
|
|
182
|
+
j as b,
|
|
183
|
+
W as c,
|
|
184
|
+
M as i
|
|
692
185
|
};
|