@arcgis/charts-components 5.2.0-next.89 → 5.2.0-next.90
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/{255J2IDZ.js → 2B4DKL3R.js} +1 -1
- package/dist/cdn/{AF2VHZ3K.js → 3HG6OEAW.js} +1 -1
- package/dist/cdn/{GF5RCT7U.js → 3K7H52Y5.js} +1 -1
- package/dist/cdn/{B3J7GR64.js → 44ICH2UX.js} +1 -1
- package/dist/cdn/{LF4LYD3D.js → 4A42J7HF.js} +1 -1
- package/dist/cdn/{VVLHQONN.js → 4JMHK7HK.js} +1 -1
- package/dist/cdn/{G45UKTNI.js → 4JWNKQ22.js} +1 -1
- package/dist/cdn/{QYAEDUSX.js → 4O4L6CM3.js} +1 -1
- package/dist/cdn/{T6DZBPJC.js → 4QQRIMTI.js} +1 -1
- package/dist/cdn/{LPS3VU35.js → 4VW736DF.js} +1 -1
- package/dist/cdn/{KLWPXDAD.js → 54LUEUIT.js} +1 -1
- package/dist/cdn/{M6OCFMDB.js → 57PMXO2G.js} +1 -1
- package/dist/cdn/{AEKNZ5HX.js → 5YBMIR4F.js} +1 -1
- package/dist/cdn/{4V35YCIC.js → 65HVRSR6.js} +1 -1
- package/dist/cdn/{ENVLWI5H.js → 6K6Z6CQE.js} +1 -1
- package/dist/cdn/{WSHAUD65.js → 73DFT5MR.js} +1 -1
- package/dist/cdn/{MEOVOANP.js → 7HANUCEA.js} +1 -1
- package/dist/cdn/{3KDTVBIG.js → BHJHX65O.js} +1 -1
- package/dist/cdn/{TXFV35UH.js → BZEYWH2F.js} +1 -1
- package/dist/cdn/{LPZD4ZKK.js → BZIGQJAH.js} +1 -1
- package/dist/cdn/{IDH345JS.js → CDWFPVYG.js} +1 -1
- package/dist/cdn/{LMT3CJIW.js → CKRZTUGB.js} +1 -1
- package/dist/cdn/{J47KRLNI.js → COSE26XR.js} +1 -1
- package/dist/cdn/{WSL3KIDE.js → CPDE3ZSY.js} +1 -1
- package/dist/cdn/{IWY3WAPJ.js → D5O2M65G.js} +1 -1
- package/dist/cdn/{K3ZRQQD7.js → D7LBGWWL.js} +1 -1
- package/dist/cdn/{FHYZ5QCJ.js → DLCJMSYG.js} +1 -1
- package/dist/cdn/{YEZO2L2D.js → DOE5S7EP.js} +1 -1
- package/dist/cdn/{7DCT627N.js → EFXNPF4V.js} +1 -1
- package/dist/cdn/{5DIUGUTH.js → ELNZ7PTF.js} +1 -1
- package/dist/cdn/{NEDOBJNH.js → F66W272X.js} +1 -1
- package/dist/cdn/{V3ITNIER.js → F6VXAPTT.js} +1 -1
- package/dist/cdn/{RMRXMLPD.js → GK6IJBRW.js} +1 -1
- package/dist/cdn/{CM4FOO3G.js → GUMN6KPP.js} +1 -1
- package/dist/cdn/{BO3LKAOY.js → GUWBPR2H.js} +1 -1
- package/dist/cdn/{ER6XIB34.js → GVJF3VFV.js} +1 -1
- package/dist/cdn/{KWN3N6VE.js → H2NVXIPH.js} +2 -2
- package/dist/cdn/{LXKZKLGE.js → H4R2P2BO.js} +1 -1
- package/dist/cdn/{NBZGC5RR.js → HIVJRWLF.js} +1 -1
- package/dist/cdn/{6WWEQU3O.js → HSIYQNVK.js} +1 -1
- package/dist/cdn/{IP46DLF6.js → HZEGDF6W.js} +1 -1
- package/dist/cdn/{DZWIVB6V.js → IGE2Z7GO.js} +1 -1
- package/dist/cdn/{AO3CHQZX.js → IHDWXIBS.js} +2 -2
- package/dist/cdn/{CCUAQ7BS.js → IIV6X3KV.js} +1 -1
- package/dist/cdn/{54CWBGOT.js → JSPNXGH3.js} +1 -1
- package/dist/cdn/{74WIGEYX.js → JXAPOWHG.js} +1 -1
- package/dist/cdn/{YD4TDPP5.js → KAUOH4F3.js} +1 -1
- package/dist/cdn/{POK4XAOI.js → KHC2DMSU.js} +1 -1
- package/dist/cdn/{OEB4JHC5.js → KHWZ54IX.js} +1 -1
- package/dist/cdn/{MHQYPRTN.js → KJAMXKR3.js} +1 -1
- package/dist/cdn/{CGHKRNJC.js → KPEBWOLJ.js} +1 -1
- package/dist/cdn/{XFCDAI5T.js → KQUI4CT6.js} +1 -1
- package/dist/cdn/{5PVEURDM.js → KVWM73YN.js} +1 -1
- package/dist/cdn/{6RNJLIW7.js → KYCNUCTQ.js} +1 -1
- package/dist/cdn/KZ4SCRQT.js +2 -0
- package/dist/cdn/{SHUVH6EE.js → L6IM34J7.js} +1 -1
- package/dist/cdn/{GT6SCH3C.js → LCJVASMQ.js} +1 -1
- package/dist/cdn/{QQBBCUQ3.js → LJJPOUVA.js} +1 -1
- package/dist/cdn/{LODICMAM.js → LKC6J4IQ.js} +1 -1
- package/dist/cdn/{HJ2PHQD5.js → LU7UO6PR.js} +1 -1
- package/dist/cdn/{CD35AZCK.js → LZ3ZRY2F.js} +1 -1
- package/dist/cdn/{3VGDEPLZ.js → MF2ZBHWI.js} +1 -1
- package/dist/cdn/{X45ACF6H.js → MTFWTSTG.js} +1 -1
- package/dist/cdn/{JW662K55.js → N4XXKTCN.js} +1 -1
- package/dist/cdn/{EZIHNH4L.js → NGGJIQHT.js} +1 -1
- package/dist/cdn/{XF6T5ABY.js → NYR4K242.js} +1 -1
- package/dist/cdn/{B6EQRXIO.js → OCT2KA4Q.js} +1 -1
- package/dist/cdn/{BJ2GQUQQ.js → OPMACXLA.js} +1 -1
- package/dist/cdn/{6R75UK7R.js → OQQIDPDH.js} +1 -1
- package/dist/cdn/{LJRP7HPA.js → QBBUOEKF.js} +2 -2
- package/dist/cdn/{6LV3ASGE.js → QFXCVZYG.js} +1 -1
- package/dist/cdn/{SMR2VM6B.js → QIBUTVUN.js} +1 -1
- package/dist/cdn/{O6Y5E725.js → QVLDIB2N.js} +1 -1
- package/dist/cdn/{APBHRWO7.js → RAJO727X.js} +1 -1
- package/dist/cdn/{2PS272XV.js → RCAJJ24P.js} +1 -1
- package/dist/cdn/{7P3FHJUU.js → SBJGOYJL.js} +1 -1
- package/dist/cdn/{6EWSNVVQ.js → SBZKGQBV.js} +1 -1
- package/dist/cdn/{OX6VTXSJ.js → SJBJ2N5C.js} +2 -2
- package/dist/cdn/{I7NNKTPZ.js → SMTDJE55.js} +1 -1
- package/dist/cdn/{L4BZX57U.js → SOR4DYKA.js} +1 -1
- package/dist/cdn/{IPKYTV7V.js → SQHEWY2J.js} +1 -1
- package/dist/cdn/{GDGYKODO.js → SZNZAD56.js} +1 -1
- package/dist/cdn/{RIQLLNP5.js → ULF3LG3W.js} +1 -1
- package/dist/cdn/{72KEQM4K.js → UZHQF5CV.js} +1 -1
- package/dist/cdn/{2GXJ2BAR.js → VBDLVCPP.js} +1 -1
- package/dist/cdn/{RPWGXKU5.js → VCBFPEET.js} +1 -1
- package/dist/cdn/{U3542JBJ.js → VVOQ4Q2X.js} +1 -1
- package/dist/cdn/{G4VATGUV.js → WPLJ5BXE.js} +1 -1
- package/dist/cdn/{6HYAHTR7.js → WTABMFFY.js} +1 -1
- package/dist/cdn/{M5QTOCZ2.js → XW5I2M45.js} +1 -1
- package/dist/cdn/{E4L772I2.js → XYJJ2PIL.js} +1 -1
- package/dist/cdn/{PG5R4NDA.js → YOUTTWJN.js} +1 -1
- package/dist/cdn/{URJ4RY65.js → YQL5A2WS.js} +1 -1
- package/dist/cdn/{4EFLSDWR.js → YX7WAUQZ.js} +1 -1
- package/dist/cdn/{L452VJW3.js → Z4ZXC4GO.js} +22 -22
- package/dist/cdn/{EJAZNU6L.js → ZFHU5I2O.js} +1 -1
- package/dist/cdn/{TFA6LCYF.js → ZO4GRLG6.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +4 -4
- package/dist/chunks/box-plot-model.js +2 -2
- package/dist/chunks/chart-ui-utils.js +11 -11
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +10 -10
- package/dist/chunks/data.js +19 -19
- package/dist/chunks/index.js +1603 -1582
- package/dist/chunks/index3.js +13 -13
- package/dist/chunks/index4.js +219 -231
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/rounded-corners.js +3 -3
- package/dist/chunks/scatterplot-model.js +9 -9
- package/dist/chunks/serial-chart-data.js +32 -32
- package/dist/chunks/serial-chart-model.js +14 -14
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/web-component-utils.js +19 -19
- package/dist/chunks/x-bounds.js +13 -13
- package/dist/components/arcgis-chart/customElement.js +2984 -2965
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +389 -381
- package/dist/utils/chart-config/converter/index.js +14 -14
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/layer/index.d.ts +20 -5
- package/dist/utils/layer/interfaces.d.ts +0 -13
- package/package.json +4 -4
- package/dist/cdn/ZNTX5IKT.js +0 -2
package/dist/chunks/index4.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { substitute as
|
|
3
|
-
import
|
|
4
|
-
import { g as
|
|
5
|
-
import { fetchT9nStringsBundle as
|
|
6
|
-
import { getElementLocale as
|
|
7
|
-
import {
|
|
8
|
-
import { l as
|
|
9
|
-
import { i as
|
|
10
|
-
import { g as
|
|
11
|
-
import { a as
|
|
12
|
-
import { d as
|
|
13
|
-
import { i as
|
|
14
|
-
const
|
|
2
|
+
import { substitute as y } from "@arcgis/core/intl.js";
|
|
3
|
+
import P from "ajv";
|
|
4
|
+
import { g as k } from "./runtime.js";
|
|
5
|
+
import { fetchT9nStringsBundle as B } from "@arcgis/toolkit/intl";
|
|
6
|
+
import { getElementLocale as N } from "@arcgis/toolkit/intl/dom";
|
|
7
|
+
import { c4 as u, q as E, aS as M, au as C, bE as V, p as I, w as T, bt as z, c5 as G, t as x, bR as W, aO as U, bo as F, c6 as H, bf as J, W as _, c7 as K, bA as Q, y as Z, c8 as X, M as Y, N as ee } from "./index.js";
|
|
8
|
+
import { l as te, q as ie } from "./index3.js";
|
|
9
|
+
import { i as v, a as h, D as re } from "./index2.js";
|
|
10
|
+
import { g as S } from "./series-types.js";
|
|
11
|
+
import { a as p, o as ne, d as ae } from "./chart-object-literals.js";
|
|
12
|
+
import { d as oe } from "./rest-js-object-literals.js";
|
|
13
|
+
import { i as se } from "./type-guards.js";
|
|
14
|
+
const g = {
|
|
15
15
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
16
16
|
definitions: {
|
|
17
17
|
WebChartTypes: {
|
|
@@ -10678,164 +10678,151 @@ If not provided the series will be displayed as they are ordered in the config.`
|
|
|
10678
10678
|
},
|
|
10679
10679
|
$ref: "#/definitions/WebChart"
|
|
10680
10680
|
};
|
|
10681
|
-
function
|
|
10682
|
-
const r =
|
|
10683
|
-
return r !== -1 ?
|
|
10681
|
+
function A(t) {
|
|
10682
|
+
const r = t.lastIndexOf("/");
|
|
10683
|
+
return r !== -1 ? t.slice(r + 1) : t;
|
|
10684
10684
|
}
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
"messages."
|
|
10690
|
-
)).errorStrings;
|
|
10691
|
-
return i.map((e) => {
|
|
10692
|
-
let t = e;
|
|
10693
|
-
const a = e.dataPath.startsWith(".") ? e.dataPath.substring(1) : e.dataPath;
|
|
10685
|
+
function L(t, r) {
|
|
10686
|
+
return r.map((e) => {
|
|
10687
|
+
let i = e;
|
|
10688
|
+
const n = e.dataPath.startsWith(".") ? e.dataPath.substring(1) : e.dataPath;
|
|
10694
10689
|
switch (e.keyword) {
|
|
10695
10690
|
case u.Required:
|
|
10696
|
-
|
|
10691
|
+
i = {
|
|
10697
10692
|
...e,
|
|
10698
|
-
message:
|
|
10699
|
-
dataPath:
|
|
10693
|
+
message: y(t.errors.requiredProperty, {
|
|
10694
|
+
dataPath: n,
|
|
10700
10695
|
missingProperty: e.params.missingProperty
|
|
10701
10696
|
})
|
|
10702
10697
|
};
|
|
10703
10698
|
break;
|
|
10704
10699
|
case u.MinLength:
|
|
10705
|
-
|
|
10700
|
+
i = {
|
|
10706
10701
|
...e,
|
|
10707
|
-
message:
|
|
10708
|
-
dataPath:
|
|
10702
|
+
message: y(t.errors.minLength, {
|
|
10703
|
+
dataPath: n,
|
|
10709
10704
|
limit: e.params.limit.toString()
|
|
10710
10705
|
})
|
|
10711
10706
|
};
|
|
10712
10707
|
break;
|
|
10713
10708
|
case u.MinItems:
|
|
10714
|
-
|
|
10709
|
+
i = {
|
|
10715
10710
|
...e,
|
|
10716
|
-
message:
|
|
10717
|
-
dataPath:
|
|
10711
|
+
message: y(t.errors.minItems, {
|
|
10712
|
+
dataPath: n,
|
|
10718
10713
|
limit: e.params.limit.toString()
|
|
10719
10714
|
})
|
|
10720
10715
|
};
|
|
10721
10716
|
break;
|
|
10722
10717
|
case u.MaxItems:
|
|
10723
|
-
|
|
10718
|
+
i = {
|
|
10724
10719
|
...e,
|
|
10725
|
-
message:
|
|
10726
|
-
dataPath:
|
|
10720
|
+
message: y(t.errors.maxItems, {
|
|
10721
|
+
dataPath: n,
|
|
10727
10722
|
limit: e.params.limit.toString()
|
|
10728
10723
|
})
|
|
10729
10724
|
};
|
|
10730
10725
|
break;
|
|
10731
10726
|
case u.Pattern:
|
|
10732
|
-
e.params.pattern === "\\w+" && (
|
|
10727
|
+
e.params.pattern === "\\w+" && (i = {
|
|
10733
10728
|
...e,
|
|
10734
|
-
message:
|
|
10729
|
+
message: y(t.errors.whiteSpacePattern, { dataPath: n }),
|
|
10735
10730
|
params: {}
|
|
10736
10731
|
});
|
|
10737
10732
|
break;
|
|
10738
10733
|
case u.AdditionalProperties:
|
|
10739
|
-
|
|
10734
|
+
i = {
|
|
10740
10735
|
...e,
|
|
10741
|
-
message:
|
|
10742
|
-
dataPath:
|
|
10736
|
+
message: y(t.errors.additionalProperty, {
|
|
10737
|
+
dataPath: n,
|
|
10743
10738
|
additionalProperty: e.params.additionalProperty
|
|
10744
10739
|
})
|
|
10745
10740
|
};
|
|
10746
10741
|
break;
|
|
10747
10742
|
case u.Enum:
|
|
10748
|
-
|
|
10743
|
+
i = {
|
|
10749
10744
|
...e,
|
|
10750
|
-
message:
|
|
10751
|
-
dataPath:
|
|
10745
|
+
message: y(t.errors.enumValues, {
|
|
10746
|
+
dataPath: n,
|
|
10752
10747
|
allowedValues: e.params.allowedValues.join(", ")
|
|
10753
10748
|
})
|
|
10754
10749
|
};
|
|
10755
10750
|
break;
|
|
10756
10751
|
case u.AnyOf: {
|
|
10757
|
-
let
|
|
10758
|
-
e.schemaPath === "#/properties/legend/anyOf" && (
|
|
10759
|
-
(
|
|
10760
|
-
)),
|
|
10752
|
+
let a = [];
|
|
10753
|
+
e.schemaPath === "#/properties/legend/anyOf" && (a = g.definitions.WebChart.properties.legend.anyOf.map(
|
|
10754
|
+
(s) => A(s.$ref)
|
|
10755
|
+
)), i = {
|
|
10761
10756
|
...e,
|
|
10762
|
-
params:
|
|
10763
|
-
message:
|
|
10757
|
+
params: a,
|
|
10758
|
+
message: y(t.errors.anyOfValues, { dataPath: n, schemaOptions: a.join(", ") })
|
|
10764
10759
|
};
|
|
10765
10760
|
break;
|
|
10766
10761
|
}
|
|
10767
10762
|
}
|
|
10768
|
-
return
|
|
10763
|
+
return i;
|
|
10769
10764
|
});
|
|
10770
10765
|
}
|
|
10771
|
-
function
|
|
10772
|
-
return { ...
|
|
10766
|
+
function w(t, r) {
|
|
10767
|
+
return { ...t, $ref: `#/definitions/${r}` };
|
|
10773
10768
|
}
|
|
10774
|
-
async function
|
|
10775
|
-
let
|
|
10776
|
-
const e =
|
|
10777
|
-
I(document.documentElement).t9nLocale,
|
|
10778
|
-
w("./assets/common/t9n"),
|
|
10779
|
-
"messages."
|
|
10780
|
-
)).errorStrings, t = z(i);
|
|
10769
|
+
async function D(t) {
|
|
10770
|
+
let r;
|
|
10771
|
+
const { queryObject: e, abortSignal: i, errorStrings: n } = t, a = E(e);
|
|
10781
10772
|
try {
|
|
10782
|
-
await
|
|
10773
|
+
await a?.load({ signal: i });
|
|
10783
10774
|
} catch {
|
|
10784
|
-
const
|
|
10785
|
-
|
|
10786
|
-
keyword:
|
|
10787
|
-
message:
|
|
10788
|
-
params: { url:
|
|
10775
|
+
const d = a?.url ?? "", l = M(a)?.portalItem?.id ?? "";
|
|
10776
|
+
r = {
|
|
10777
|
+
keyword: C.LayerLoadFailure,
|
|
10778
|
+
message: y(n.errors.layerLoadFailure, { url: d, portalItemId: l }),
|
|
10779
|
+
params: { url: d, portalItemId: l }
|
|
10789
10780
|
};
|
|
10790
10781
|
}
|
|
10791
|
-
return
|
|
10782
|
+
return r;
|
|
10792
10783
|
}
|
|
10793
|
-
function
|
|
10794
|
-
const
|
|
10795
|
-
return
|
|
10796
|
-
let
|
|
10797
|
-
const
|
|
10798
|
-
let a =
|
|
10799
|
-
switch (
|
|
10800
|
-
case
|
|
10801
|
-
a = g
|
|
10784
|
+
function de() {
|
|
10785
|
+
const t = new P({ allErrors: !0 });
|
|
10786
|
+
return (r, e) => {
|
|
10787
|
+
let i = [];
|
|
10788
|
+
const n = S(e?.series);
|
|
10789
|
+
let a = g;
|
|
10790
|
+
switch (n) {
|
|
10791
|
+
case p.GaugeSeries:
|
|
10792
|
+
a = w(g, "WebGaugeChart");
|
|
10802
10793
|
break;
|
|
10803
|
-
case
|
|
10804
|
-
a = g
|
|
10794
|
+
case p.BoxPlotSeries:
|
|
10795
|
+
a = w(g, "WebBoxPlot");
|
|
10805
10796
|
break;
|
|
10806
|
-
case
|
|
10807
|
-
a = g
|
|
10797
|
+
case p.RadarSeries:
|
|
10798
|
+
a = w(g, "WebRadarChart");
|
|
10808
10799
|
break;
|
|
10809
10800
|
default:
|
|
10810
|
-
a = g
|
|
10801
|
+
a = w(g, "WebChart");
|
|
10811
10802
|
break;
|
|
10812
10803
|
}
|
|
10813
|
-
const
|
|
10814
|
-
return
|
|
10804
|
+
const s = t.compile(a);
|
|
10805
|
+
return s(e), s.errors !== null && s.errors !== void 0 && (i = L(r, s.errors)), i;
|
|
10815
10806
|
};
|
|
10816
10807
|
}
|
|
10817
|
-
const
|
|
10818
|
-
|
|
10819
|
-
const { seriesConfigs: r, queryObject:
|
|
10820
|
-
I(document.documentElement).t9nLocale,
|
|
10821
|
-
w("./assets/common/t9n"),
|
|
10822
|
-
"messages."
|
|
10823
|
-
)).errorStrings;
|
|
10808
|
+
const le = de();
|
|
10809
|
+
function $(t) {
|
|
10810
|
+
const { seriesConfigs: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: n } = t, a = [], s = e ? x(e) : void 0;
|
|
10824
10811
|
for (let d = 0; d < r.length; d += 1) {
|
|
10825
|
-
const
|
|
10826
|
-
if (
|
|
10827
|
-
for (let
|
|
10828
|
-
const
|
|
10829
|
-
if (
|
|
10830
|
-
const
|
|
10812
|
+
const l = r[d].query?.outStatistics;
|
|
10813
|
+
if (l !== void 0)
|
|
10814
|
+
for (let c = 0; c < l.length; c += 1) {
|
|
10815
|
+
const m = l[c], o = W(m.onStatisticField, s);
|
|
10816
|
+
if (o && !(o.type === oe.OID && i || U(o)) && m.statisticType !== ae.Count) {
|
|
10817
|
+
const b = `series[${d}].query.outStatistics[${c}]`;
|
|
10831
10818
|
a.push({
|
|
10832
|
-
keyword:
|
|
10833
|
-
message:
|
|
10834
|
-
dataPath:
|
|
10819
|
+
keyword: F.NonNumericAggregation,
|
|
10820
|
+
message: y(n.errors.nonNumericAggregation, { dataPath: b }),
|
|
10821
|
+
dataPath: b,
|
|
10835
10822
|
params: {
|
|
10836
|
-
fieldName:
|
|
10837
|
-
fieldType:
|
|
10838
|
-
aggregationRequested:
|
|
10823
|
+
fieldName: m.onStatisticField,
|
|
10824
|
+
fieldType: o.type,
|
|
10825
|
+
aggregationRequested: m.statisticType
|
|
10839
10826
|
}
|
|
10840
10827
|
});
|
|
10841
10828
|
}
|
|
@@ -10843,185 +10830,186 @@ async function q(i) {
|
|
|
10843
10830
|
}
|
|
10844
10831
|
return a;
|
|
10845
10832
|
}
|
|
10846
|
-
|
|
10847
|
-
const
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
const d = `series[${p}].id`;
|
|
10858
|
-
n.push({
|
|
10859
|
-
keyword: $.DuplicateSeriesID,
|
|
10860
|
-
message: f(e.errors.duplicateSeriesID, {
|
|
10833
|
+
function O(t, r) {
|
|
10834
|
+
const e = [];
|
|
10835
|
+
if (r !== void 0 && r.series.length > 1) {
|
|
10836
|
+
const i = /* @__PURE__ */ new Set();
|
|
10837
|
+
let n = 0;
|
|
10838
|
+
r.series.forEach((a, s) => {
|
|
10839
|
+
if (i.add(a.id), i.size === n) {
|
|
10840
|
+
const d = `series[${s}].id`;
|
|
10841
|
+
e.push({
|
|
10842
|
+
keyword: F.DuplicateSeriesID,
|
|
10843
|
+
message: y(t?.errors.duplicateSeriesID ?? "", {
|
|
10861
10844
|
dataPath: d,
|
|
10862
|
-
seriesID:
|
|
10863
|
-
seriesName:
|
|
10845
|
+
seriesID: a.id,
|
|
10846
|
+
seriesName: a.name
|
|
10864
10847
|
}),
|
|
10865
10848
|
dataPath: d,
|
|
10866
|
-
params: { seriesId:
|
|
10849
|
+
params: { seriesId: a.id, seriesName: a.name }
|
|
10867
10850
|
});
|
|
10868
10851
|
} else
|
|
10869
|
-
|
|
10852
|
+
n += 1;
|
|
10870
10853
|
});
|
|
10871
10854
|
}
|
|
10872
|
-
return
|
|
10855
|
+
return e;
|
|
10873
10856
|
}
|
|
10874
|
-
function
|
|
10875
|
-
const r = /* @__PURE__ */ new Set(),
|
|
10876
|
-
if (
|
|
10877
|
-
const
|
|
10878
|
-
|
|
10879
|
-
const
|
|
10880
|
-
|
|
10881
|
-
|
|
10857
|
+
function j(t) {
|
|
10858
|
+
const r = /* @__PURE__ */ new Set(), e = H(t);
|
|
10859
|
+
if (e) {
|
|
10860
|
+
const i = S(t.series), n = I(t.series);
|
|
10861
|
+
i === p.GaugeSeries && !J(t) || n === h.PieFromFields || n === h.BarAndLineFromFields || n === h.BoxPlotMonoField || n === h.BoxPlotMultiFields || n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMultiFieldsAndSplitBy || r.add(e.x);
|
|
10862
|
+
const d = i === p.ScatterSeries || i === p.BoxPlotSeries || i === p.HeatSeries || n === h.BarAndLineNoAggregation || n === h.BarAndLineSplitByNoAggregation || n === h.PieNoAggregation, l = [
|
|
10863
|
+
te,
|
|
10864
|
+
T,
|
|
10865
|
+
Q,
|
|
10882
10866
|
Z,
|
|
10883
10867
|
X,
|
|
10884
|
-
|
|
10885
|
-
re.outStatistics.outStatisticFieldName ?? ""
|
|
10868
|
+
ie.outStatistics.outStatisticFieldName ?? ""
|
|
10886
10869
|
];
|
|
10887
|
-
let
|
|
10888
|
-
|
|
10889
|
-
showMean:
|
|
10890
|
-
seriesConfig:
|
|
10891
|
-
}) :
|
|
10892
|
-
const { query:
|
|
10893
|
-
|
|
10870
|
+
let c = [];
|
|
10871
|
+
_(t) ? c = K({
|
|
10872
|
+
showMean: t.showMean,
|
|
10873
|
+
seriesConfig: t.series
|
|
10874
|
+
}) : c = t.series.map((o) => "y" in o ? o.y : void 0).filter((o) => o !== void 0).flat(), d ? c.forEach((o) => r.add(o)) : l.push(...c), t.series.forEach((o) => {
|
|
10875
|
+
const { query: f } = o;
|
|
10876
|
+
f && (Y(f.where) || r.add(ee(f.where)), f.groupByFieldsForStatistics && f.groupByFieldsForStatistics.forEach((b) => r.add(b)), f.outStatistics && f.outStatistics.forEach((b) => r.add(b.onStatisticField)));
|
|
10894
10877
|
});
|
|
10895
|
-
const m =
|
|
10896
|
-
if (
|
|
10897
|
-
const
|
|
10898
|
-
r.add(
|
|
10899
|
-
}),
|
|
10900
|
-
const
|
|
10901
|
-
|
|
10878
|
+
const m = n === h.BarAndLineNoAggregation || n === h.BarAndLineSplitByNoAggregation || n === h.PieNoAggregation;
|
|
10879
|
+
if (t.orderOptions?.orderByFields && m && t.orderOptions.orderByFields.forEach((o) => {
|
|
10880
|
+
const f = re(o).fieldToSort;
|
|
10881
|
+
r.add(f);
|
|
10882
|
+
}), i === p.GaugeSeries && t.axes?.[0] !== void 0) {
|
|
10883
|
+
const o = t.axes?.[0];
|
|
10884
|
+
o && "minimumFromField" in o && typeof o.minimumFromField == "string" && r.add(o.minimumFromField), o && "maximumFromField" in o && typeof o.maximumFromField == "string" && r.add(o.maximumFromField);
|
|
10902
10885
|
}
|
|
10903
|
-
|
|
10904
|
-
r.delete(
|
|
10886
|
+
l.forEach((o) => {
|
|
10887
|
+
r.delete(o);
|
|
10905
10888
|
});
|
|
10906
10889
|
}
|
|
10907
|
-
return Array.from(r.values()).filter((
|
|
10890
|
+
return Array.from(r.values()).filter((i) => !v(i));
|
|
10908
10891
|
}
|
|
10909
|
-
|
|
10910
|
-
const { chartConfig: r, queryObject:
|
|
10911
|
-
let
|
|
10912
|
-
const a = e
|
|
10913
|
-
I(document.documentElement).t9nLocale,
|
|
10914
|
-
w("./assets/common/t9n"),
|
|
10915
|
-
"messages."
|
|
10916
|
-
)).errorStrings, o = de(n) ? U({ layer: n, chartType: C(r.series) }) : L(n), d = k(r).filter((y) => !D(y, o));
|
|
10892
|
+
function pe(t) {
|
|
10893
|
+
const { chartConfig: r, queryObject: e, errorStrings: i } = t;
|
|
10894
|
+
let n;
|
|
10895
|
+
const a = se(e) ? G({ layer: e, chartType: S(r.series) }) : x(e), d = j(r).filter((l) => !W(l, a));
|
|
10917
10896
|
if (d.length > 0) {
|
|
10918
|
-
const
|
|
10919
|
-
|
|
10920
|
-
keyword:
|
|
10921
|
-
message:
|
|
10922
|
-
params:
|
|
10897
|
+
const l = d.join(", ");
|
|
10898
|
+
n = {
|
|
10899
|
+
keyword: C.LayerFieldsNotFound,
|
|
10900
|
+
message: y(i.errors.layerFieldsNotFound, { fieldNames: l }),
|
|
10901
|
+
params: l
|
|
10923
10902
|
};
|
|
10924
10903
|
}
|
|
10925
|
-
return
|
|
10904
|
+
return n;
|
|
10926
10905
|
}
|
|
10927
|
-
|
|
10928
|
-
const { input: r, queryObject:
|
|
10906
|
+
function R(t) {
|
|
10907
|
+
const { input: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: n } = t;
|
|
10929
10908
|
let a = [];
|
|
10930
|
-
if (
|
|
10931
|
-
const
|
|
10909
|
+
if (e !== void 0) {
|
|
10910
|
+
const s = $({
|
|
10932
10911
|
seriesConfigs: r.series,
|
|
10933
|
-
queryObject:
|
|
10934
|
-
allowUsingObjectIdStat:
|
|
10935
|
-
errorStrings:
|
|
10912
|
+
queryObject: e,
|
|
10913
|
+
allowUsingObjectIdStat: i,
|
|
10914
|
+
errorStrings: n
|
|
10936
10915
|
});
|
|
10937
|
-
a = a.concat(
|
|
10916
|
+
a = a.concat(s);
|
|
10938
10917
|
}
|
|
10939
|
-
return a = a.concat(
|
|
10918
|
+
return a = a.concat(O(n, r)), a;
|
|
10940
10919
|
}
|
|
10941
|
-
|
|
10942
|
-
const { queryObject: r, chartConfig:
|
|
10943
|
-
let
|
|
10920
|
+
function q(t) {
|
|
10921
|
+
const { queryObject: r, chartConfig: e, errorStrings: i, layerLoadError: n } = t;
|
|
10922
|
+
let a = [];
|
|
10944
10923
|
if (r !== void 0) {
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
o !== void 0 && (t = t.concat(o));
|
|
10924
|
+
if (n !== void 0)
|
|
10925
|
+
a = a.concat(n);
|
|
10926
|
+
else if (e !== void 0) {
|
|
10927
|
+
const s = pe({ chartConfig: e, queryObject: r, errorStrings: i });
|
|
10928
|
+
s !== void 0 && (a = a.concat(s));
|
|
10951
10929
|
}
|
|
10952
10930
|
}
|
|
10953
|
-
return
|
|
10931
|
+
return a;
|
|
10954
10932
|
}
|
|
10955
|
-
|
|
10956
|
-
const { input: r, queryObject:
|
|
10957
|
-
let
|
|
10958
|
-
if (
|
|
10959
|
-
|
|
10933
|
+
function ce(t) {
|
|
10934
|
+
const { input: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: n, layerLoadError: a } = t;
|
|
10935
|
+
let s;
|
|
10936
|
+
if (z(r?.version).versionStatus === ne.Newer)
|
|
10937
|
+
s = { valid: !0, schemaErrors: [], customErrors: [], warnings: [] };
|
|
10960
10938
|
else {
|
|
10961
|
-
const
|
|
10962
|
-
let
|
|
10963
|
-
r !== void 0 &&
|
|
10964
|
-
valid:
|
|
10965
|
-
schemaErrors:
|
|
10966
|
-
customErrors:
|
|
10967
|
-
warnings:
|
|
10939
|
+
const d = le(n, r);
|
|
10940
|
+
let l = [], c = [];
|
|
10941
|
+
r !== void 0 && d.length === 0 && (c = q({ queryObject: e, chartConfig: r, errorStrings: n, layerLoadError: a }), c.length === 0 && (l = R({ input: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: n }))), s = {
|
|
10942
|
+
valid: d.length === 0 && l.length === 0 && c.length === 0,
|
|
10943
|
+
schemaErrors: d,
|
|
10944
|
+
customErrors: c,
|
|
10945
|
+
warnings: l
|
|
10968
10946
|
};
|
|
10969
10947
|
}
|
|
10970
|
-
return
|
|
10948
|
+
return s;
|
|
10949
|
+
}
|
|
10950
|
+
async function Te(t) {
|
|
10951
|
+
const { input: r, queryObject: e, allowUsingObjectIdStat: i, abortSignal: n } = t, a = t.errorStrings ?? (await B(
|
|
10952
|
+
N(document.documentElement).t9nLocale,
|
|
10953
|
+
k("./assets/common/t9n"),
|
|
10954
|
+
"messages."
|
|
10955
|
+
)).errorStrings, s = await D({ errorStrings: a, queryObject: e, abortSignal: n });
|
|
10956
|
+
return ce({ input: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: a, layerLoadError: s });
|
|
10971
10957
|
}
|
|
10972
|
-
function xe(
|
|
10973
|
-
const r =
|
|
10974
|
-
let
|
|
10958
|
+
function xe(t) {
|
|
10959
|
+
const r = S(t?.series);
|
|
10960
|
+
let e = !1;
|
|
10975
10961
|
switch (r) {
|
|
10976
|
-
case
|
|
10977
|
-
case
|
|
10978
|
-
|
|
10962
|
+
case p.HistogramSeries:
|
|
10963
|
+
case p.GaugeSeries: {
|
|
10964
|
+
e = (t?.series?.[0]?.x?.trim()?.length ?? 0) === 0;
|
|
10979
10965
|
break;
|
|
10980
10966
|
}
|
|
10981
|
-
case
|
|
10982
|
-
const
|
|
10983
|
-
|
|
10967
|
+
case p.ScatterSeries: {
|
|
10968
|
+
const i = t?.series;
|
|
10969
|
+
e = (i?.[0]?.x?.length ?? 0) === 0 || (i?.[0]?.y?.length ?? 0) === 0;
|
|
10984
10970
|
break;
|
|
10985
10971
|
}
|
|
10986
|
-
case
|
|
10987
|
-
const
|
|
10988
|
-
|
|
10972
|
+
case p.PieSeries: {
|
|
10973
|
+
const i = t?.series;
|
|
10974
|
+
I(i) === h.PieFromFields ? e = (i?.[0]?.query?.outStatistics?.length ?? 0) === 0 : e = (i?.[0]?.x?.length ?? 0) === 0 || i?.[0]?.x === T;
|
|
10989
10975
|
break;
|
|
10990
10976
|
}
|
|
10991
|
-
case
|
|
10992
|
-
const
|
|
10993
|
-
|
|
10977
|
+
case p.BoxPlotSeries: {
|
|
10978
|
+
const i = t?.series;
|
|
10979
|
+
e = [i?.[0]?.y].flat().length === 0 || i?.[0]?.y === "";
|
|
10994
10980
|
break;
|
|
10995
10981
|
}
|
|
10996
|
-
case
|
|
10997
|
-
case
|
|
10998
|
-
case
|
|
10999
|
-
case
|
|
11000
|
-
const
|
|
11001
|
-
|
|
10982
|
+
case p.ComboLineAndBarSeries:
|
|
10983
|
+
case p.RadarSeries:
|
|
10984
|
+
case p.BarSeries:
|
|
10985
|
+
case p.LineSeries: {
|
|
10986
|
+
const i = t?.series;
|
|
10987
|
+
I(i) === h.BarAndLineFromFields ? e = (i?.[0]?.query?.outStatistics?.length ?? 0) === 0 : e = (i?.[0]?.x?.trim()?.length ?? 0) === 0;
|
|
11002
10988
|
break;
|
|
11003
10989
|
}
|
|
11004
|
-
case
|
|
11005
|
-
const
|
|
11006
|
-
|
|
10990
|
+
case p.HeatSeries: {
|
|
10991
|
+
const i = t?.series, n = v(i?.[0]?.x) || v(i?.[0]?.y), a = t !== void 0 && V(t) ? !1 : i?.[0]?.xTemporalBinning === void 0;
|
|
10992
|
+
e = n || a;
|
|
11007
10993
|
break;
|
|
11008
10994
|
}
|
|
11009
10995
|
}
|
|
11010
|
-
return
|
|
10996
|
+
return e;
|
|
11011
10997
|
}
|
|
11012
10998
|
const We = {
|
|
11013
|
-
findCustomErrors:
|
|
11014
|
-
findWarnings:
|
|
11015
|
-
findNumericAggregationWarnings:
|
|
11016
|
-
findDuplicateSeriesIDWarnings:
|
|
11017
|
-
findLayerLoadError:
|
|
11018
|
-
createStartingSchema:
|
|
11019
|
-
extractSchemaNameFromRefPath:
|
|
11020
|
-
getRequiredFieldNamesFromChartConfig:
|
|
11021
|
-
customizeValidationErrors:
|
|
10999
|
+
findCustomErrors: q,
|
|
11000
|
+
findWarnings: R,
|
|
11001
|
+
findNumericAggregationWarnings: $,
|
|
11002
|
+
findDuplicateSeriesIDWarnings: O,
|
|
11003
|
+
findLayerLoadError: D,
|
|
11004
|
+
createStartingSchema: w,
|
|
11005
|
+
extractSchemaNameFromRefPath: A,
|
|
11006
|
+
getRequiredFieldNamesFromChartConfig: j,
|
|
11007
|
+
customizeValidationErrors: L
|
|
11022
11008
|
};
|
|
11023
11009
|
export {
|
|
11010
|
+
Te as a,
|
|
11024
11011
|
We as c,
|
|
11012
|
+
D as f,
|
|
11025
11013
|
xe as i,
|
|
11026
|
-
|
|
11014
|
+
ce as v
|
|
11027
11015
|
};
|
|
@@ -4,7 +4,7 @@ import { getElementLocale as g } from "@arcgis/toolkit/intl/dom";
|
|
|
4
4
|
import { g as l } from "./runtime.js";
|
|
5
5
|
import { convertChartSpec as m } from "../utils/chart-config/converter/index.js";
|
|
6
6
|
import { a6 as y } from "./index3.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bD as o, ba as p, t as u, r as _ } from "./index.js";
|
|
8
8
|
import { cloneDeep as C } from "lodash-es";
|
|
9
9
|
const h = 30;
|
|
10
10
|
function U(r, e, t, i) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { g as k, b as S, s as b, a as v } from "./series.js";
|
|
3
3
|
import { n } from "./index3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c1 as i, c2 as o } from "./index.js";
|
|
5
5
|
import { C as y, m as h } from "./model-setter.js";
|
|
6
6
|
const l = (s) => {
|
|
7
7
|
const { config: e, seriesIndex: a, callback: t } = s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { b_ as n } from "./index.js";
|
|
3
3
|
import { C, m as u } from "./model-setter.js";
|
|
4
4
|
import { al as h } from "./index3.js";
|
|
5
5
|
const c = (r) => {
|
|
@@ -47,7 +47,7 @@ function p(r, e) {
|
|
|
47
47
|
function S(r) {
|
|
48
48
|
return r.roundCorners?.cornerRadius;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function _(r, e) {
|
|
51
51
|
e.roundCorners = {
|
|
52
52
|
rounded: e.roundCorners?.rounded ?? !1,
|
|
53
53
|
cornerRadius: r ?? e.roundCorners?.cornerRadius
|
|
@@ -72,7 +72,7 @@ class f extends C {
|
|
|
72
72
|
return S(this._config);
|
|
73
73
|
}
|
|
74
74
|
set cornerRadius(e) {
|
|
75
|
-
t(this._config) &&
|
|
75
|
+
t(this._config) && _(e, this._config);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
l([
|