@arcgis/charts-components 5.2.0-next.10 → 5.2.0-next.12
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/26ESJ72L.js +2 -0
- package/dist/cdn/{2XYTPC2V.js → 2PFDGKA5.js} +1 -1
- package/dist/cdn/3MKY6UCO.js +2 -0
- package/dist/cdn/3SBYV6BW.js +2 -0
- package/dist/cdn/{4ETF22K6.js → 3T4NYRGX.js} +1 -1
- package/dist/cdn/{LOZOENFC.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/3UFVHYX5.js +2 -0
- package/dist/cdn/{NKJC4MT7.js → 4LQHAOMY.js} +1 -1
- package/dist/cdn/5BADQJ64.js +2 -0
- package/dist/cdn/{CEE2QRZ5.js → 5F5N7ZZ6.js} +1 -1
- package/dist/cdn/{QM27URJR.js → 5PKMZMGG.js} +1 -1
- package/dist/cdn/{PZKRRAXW.js → 624WBDC3.js} +1 -1
- package/dist/cdn/{7EEYYP6X.js → 66GCPNDR.js} +1 -1
- package/dist/cdn/{5V3ADOWS.js → 6VVUN6AX.js} +1 -1
- package/dist/cdn/73JQ2I2Q.js +3 -0
- package/dist/cdn/7HUD5SQI.js +2 -0
- package/dist/cdn/A636YSNA.js +2 -0
- package/dist/cdn/AIFWLINL.js +2 -0
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/BJYCLLJL.js +2 -0
- package/dist/cdn/BXJZ4YYQ.js +2 -0
- package/dist/cdn/CRCAJAFA.js +2 -0
- package/dist/cdn/{F7Q3XDZH.js → CTE365PT.js} +1 -1
- package/dist/cdn/{PRPNJEPZ.js → CVF3NLTS.js} +1 -1
- package/dist/cdn/{RH4AC577.js → DKRPN24O.js} +1 -1
- package/dist/cdn/{M6JCOZIE.js → DL6PRHZT.js} +1 -1
- package/dist/cdn/{2PAVNZEM.js → DOVGECFB.js} +1 -1
- package/dist/cdn/DYNPQ2KT.js +2 -0
- package/dist/cdn/{SYIW6YJN.js → ECICE4SU.js} +1 -1
- package/dist/cdn/{GNC62GNV.js → EEFS6HU7.js} +1 -1
- package/dist/cdn/{2A7JZQX5.js → EYF75TH5.js} +1 -1
- package/dist/cdn/{H4B3ERFL.js → EYYQKOXI.js} +1 -1
- package/dist/cdn/{VMS7DT3M.js → GHLJNZ27.js} +1 -1
- package/dist/cdn/{XUT56VH6.js → HQONJQEW.js} +1 -1
- package/dist/cdn/{Z4HCNLCD.js → IBKS2NZ3.js} +1 -1
- package/dist/cdn/IDHDU3DJ.js +2 -0
- package/dist/cdn/{SPVZ5BND.js → IHHPUKGG.js} +1 -1
- package/dist/cdn/{QF4UBQYT.js → IM5PHXV3.js} +1 -1
- package/dist/cdn/ISSVKLHV.js +2 -0
- package/dist/cdn/{Z5VVIVR3.js → IYP3GZSC.js} +1 -1
- package/dist/cdn/{25YAWDIB.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/{WBJ6NWHX.js → J47CNZCT.js} +1 -1
- package/dist/cdn/{PM6FCUUV.js → JHANH4UG.js} +1 -1
- package/dist/cdn/{CBHWMUGA.js → JKTF2L3L.js} +21 -21
- package/dist/cdn/JLWDVTJW.js +2 -0
- package/dist/cdn/JQX5EJZV.js +2 -0
- package/dist/cdn/{QF6LHQTR.js → K2P5RSE5.js} +1 -1
- package/dist/cdn/{ZIVPZF6E.js → KJPXY6NE.js} +1 -1
- package/dist/cdn/{3376CR53.js → KL33ETQG.js} +1 -1
- package/dist/cdn/{YDJPGFXU.js → KUUBYC33.js} +1 -1
- package/dist/cdn/{ICVAXCHZ.js → KZTGYTHS.js} +1 -1
- package/dist/cdn/{6SRJ2VKV.js → LA7COTN7.js} +1 -1
- package/dist/cdn/{HD4FP3ZK.js → LJDGLKFL.js} +1 -1
- package/dist/cdn/LL757OZ7.js +2 -0
- package/dist/cdn/{FTOYQNHN.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{NFANBMTU.js → MGMUUWSP.js} +1 -1
- package/dist/cdn/{LIPUN4CH.js → MPSRB65O.js} +1 -1
- package/dist/cdn/{OYCT7CFU.js → N5ZIF7M4.js} +1 -1
- package/dist/cdn/NVEIMJJ7.js +2 -0
- package/dist/cdn/{255TSQSE.js → O363DXQ4.js} +6 -6
- package/dist/cdn/O533LNDP.js +2 -0
- package/dist/cdn/ODWDODUY.js +2 -0
- package/dist/cdn/{N7NZHIGS.js → OEOAL6JO.js} +1 -1
- package/dist/cdn/{IHTJSWKK.js → PGHVUDMJ.js} +1 -1
- package/dist/cdn/{YSWV4FZE.js → PGWOWXHQ.js} +1 -1
- package/dist/cdn/{L6ZALCLC.js → PIONRTCB.js} +1 -1
- package/dist/cdn/{CSAUXIK2.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/QSBAOCG4.js +2 -0
- package/dist/cdn/{KB76VF4V.js → QT3VTHUJ.js} +1 -1
- package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/{4J6UFQ2Q.js → RJSCJBFO.js} +1 -1
- package/dist/cdn/{GXC7VLYM.js → RMBD6ZSC.js} +1 -1
- package/dist/cdn/RMHGA6AU.js +2 -0
- package/dist/cdn/{KHNP4LWB.js → S5EYODWJ.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/{RA3CZHC7.js → SMCXHMTP.js} +1 -1
- package/dist/cdn/{KKKCWW6G.js → SN2GPX3I.js} +1 -1
- package/dist/cdn/SNMFJ4CN.js +2 -0
- package/dist/cdn/{GBDEYCR6.js → SOOQD5FC.js} +1 -1
- package/dist/cdn/T2SFRF7I.js +2 -0
- package/dist/cdn/{5OKNLDIJ.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/U7TKKTUC.js +2 -0
- package/dist/cdn/{TH4OHGTQ.js → V2UF2WVE.js} +1 -1
- package/dist/cdn/{XWZYTOHY.js → VFUFK3UT.js} +1 -1
- package/dist/cdn/VP42WLDX.js +2 -0
- package/dist/cdn/W4XQNHSD.js +4 -0
- package/dist/cdn/{LO6KKSE4.js → W55GZOYQ.js} +1 -1
- package/dist/cdn/{IKCVYV5L.js → WMXNQ5XH.js} +1 -1
- package/dist/cdn/WVV5DAII.js +2 -0
- package/dist/cdn/{3S3PN7AK.js → X5PNAE7T.js} +1 -1
- package/dist/cdn/XRLVJJBT.js +2 -0
- package/dist/cdn/{VW4GW2JT.js → YBN53S4C.js} +1 -1
- package/dist/cdn/{CDHUW42P.js → YCJIOFQR.js} +1 -1
- package/dist/cdn/{SZEYHOGG.js → Z2UG6CUL.js} +1 -1
- package/dist/cdn/{I5AALJRN.js → ZFK3D55V.js} +1 -1
- package/dist/cdn/ZP22BN3G.js +2 -0
- package/dist/cdn/ZW4PF3UK.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/index2.js +218 -210
- package/dist/chunks/index3.js +1 -0
- package/dist/chunks/index4.js +21 -14
- package/dist/chunks/pie-chart-data.js +42 -36
- package/dist/chunks/pie-chart-model.js +175 -162
- package/dist/chunks/serial-chart-data.js +588 -569
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/web-component-utils.js +529 -508
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +4512 -4434
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +34 -35
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +13 -14
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +25 -26
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +28 -30
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +37 -39
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/json-schema/index.d.ts +9 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +264 -264
- package/dist/utils/chart-config/utils/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +1 -3
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/inline-conversion/index.d.ts +0 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +3 -3
- package/dist/cdn/2HTYRBIX.js +0 -2
- package/dist/cdn/3CFZUVMF.js +0 -2
- package/dist/cdn/3W2A4SAP.js +0 -2
- package/dist/cdn/4YJSRB7R.js +0 -2
- package/dist/cdn/5JNEJJU3.js +0 -2
- package/dist/cdn/6MF2R6DJ.js +0 -2
- package/dist/cdn/BER7FMK3.js +0 -2
- package/dist/cdn/BJRHNVLR.js +0 -2
- package/dist/cdn/CGYB5KPV.js +0 -2
- package/dist/cdn/DJ5OHPYW.js +0 -2
- package/dist/cdn/EK33HUAH.js +0 -2
- package/dist/cdn/GKPMAFU3.js +0 -2
- package/dist/cdn/HFJ4EPET.js +0 -2
- package/dist/cdn/JEH22SPH.js +0 -2
- package/dist/cdn/JMAVBKEZ.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/JQYB4ZDY.js +0 -2
- package/dist/cdn/PJZVDHIF.js +0 -2
- package/dist/cdn/PNDFAGEB.js +0 -2
- package/dist/cdn/QAIY4AMN.js +0 -2
- package/dist/cdn/SHTFWNG3.js +0 -2
- package/dist/cdn/SXT5DNXJ.js +0 -4
- package/dist/cdn/U4COKMGA.js +0 -2
- package/dist/cdn/U6USPTQ5.js +0 -2
- package/dist/cdn/UHPAFBYO.js +0 -2
- package/dist/cdn/VL2G5M57.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/VSPTNIIU.js +0 -2
- package/dist/cdn/X4BYDZDR.js +0 -2
- package/dist/cdn/XACXJMSF.js +0 -3
- package/dist/cdn/XJ2L7VN4.js +0 -2
- package/dist/cdn/XP5GZU4O.js +0 -2
- package/dist/cdn/XXXXO6OB.js +0 -2
- package/dist/cdn/YXWIKYN4.js +0 -2
package/dist/chunks/index3.js
CHANGED
|
@@ -385,6 +385,7 @@ const ne = {
|
|
|
385
385
|
xAxisField: "arcgis_charts_x_axis_field",
|
|
386
386
|
xAxisDisplayField: "arcgis_charts_x_axis_display_field",
|
|
387
387
|
nullValue: "arcgis_charts_null",
|
|
388
|
+
emptyStringValue: "arcgis_charts_empty",
|
|
388
389
|
queryMaxFloatPrecision: 10,
|
|
389
390
|
dateFormatUTC: {
|
|
390
391
|
timeZone: "UTC",
|
package/dist/chunks/index4.js
CHANGED
|
@@ -3,7 +3,7 @@ import { substitute as f } from "@arcgis/core/intl.js";
|
|
|
3
3
|
import E from "ajv";
|
|
4
4
|
import { g as w } from "./runtime.js";
|
|
5
5
|
import { fetchT9nStringsBundle as S, getElementLocale as v } from "@arcgis/toolkit/intl";
|
|
6
|
-
import { C as u,
|
|
6
|
+
import { C as u, d2 as M, Y as C, m as F, Z as V, af as z, ak as G, E as A, I as L, a7 as D, bk as U, a as $, aF as H, bg as J, cr as _, V as Q, k as K, n as Z, l as X, b9 as Y, aG as ee } from "./index2.js";
|
|
7
7
|
import { g as te, az as ie } from "./index.js";
|
|
8
8
|
import { q as T, C as h, h as re } from "./index3.js";
|
|
9
9
|
import { g as x } from "./series-types.js";
|
|
@@ -754,6 +754,7 @@ When the value is set to false, we want to order the split-by series based on th
|
|
|
754
754
|
"x",
|
|
755
755
|
"y"
|
|
756
756
|
],
|
|
757
|
+
description: 'A simple point geometry, with spatial reference defined.\n\n`IPoint` can also be imported from the following packages:\n\n```js import { IPoint } from "@esri/arcgis-rest-routing"; import { IPoint } from "@esri/arcgis-rest-geocoding"; ```',
|
|
757
758
|
title: "IPoint"
|
|
758
759
|
},
|
|
759
760
|
ILocation: {
|
|
@@ -803,6 +804,7 @@ When the value is set to false, we want to order the split-by series based on th
|
|
|
803
804
|
required: [
|
|
804
805
|
"paths"
|
|
805
806
|
],
|
|
807
|
+
description: "Polyline geometry.",
|
|
806
808
|
title: "IPolyline"
|
|
807
809
|
},
|
|
808
810
|
Position: {
|
|
@@ -1033,6 +1035,7 @@ When the value is set to false, we want to order the split-by series based on th
|
|
|
1033
1035
|
required: [
|
|
1034
1036
|
"rings"
|
|
1035
1037
|
],
|
|
1038
|
+
description: "Polygon geometry.",
|
|
1036
1039
|
title: "IPolygon"
|
|
1037
1040
|
},
|
|
1038
1041
|
IPolygonWithCurves: {
|
|
@@ -1067,6 +1070,7 @@ When the value is set to false, we want to order the split-by series based on th
|
|
|
1067
1070
|
required: [
|
|
1068
1071
|
"curveRings"
|
|
1069
1072
|
],
|
|
1073
|
+
description: "Polygon geometry with curves.",
|
|
1070
1074
|
title: "IPolygonWithCurves"
|
|
1071
1075
|
},
|
|
1072
1076
|
ElipticArc: {
|
|
@@ -4854,6 +4858,7 @@ They are also defined as properties of the layer definition when there are no de
|
|
|
4854
4858
|
"id",
|
|
4855
4859
|
"layerType"
|
|
4856
4860
|
],
|
|
4861
|
+
description: "Tiled image service layer definition.",
|
|
4857
4862
|
title: "ITiledImageServiceLayer"
|
|
4858
4863
|
},
|
|
4859
4864
|
IWCSLayer: {
|
|
@@ -4938,6 +4943,7 @@ They are also defined as properties of the layer definition when there are no de
|
|
|
4938
4943
|
"layerType",
|
|
4939
4944
|
"wcsInfo"
|
|
4940
4945
|
],
|
|
4946
|
+
description: "Web Coverage Service (WCS) layer definition.",
|
|
4941
4947
|
title: "IWCSLayer"
|
|
4942
4948
|
},
|
|
4943
4949
|
IExclusionArea: {
|
|
@@ -5523,6 +5529,7 @@ They are also defined as properties of the layer definition when there are no de
|
|
|
5523
5529
|
"id",
|
|
5524
5530
|
"layerType"
|
|
5525
5531
|
],
|
|
5532
|
+
description: "Feature layers can be created by referencing a layer from either a map service or a feature service or by specifying a feature collection object. Use a map service if you just want to retrieve geometries and attributes from the server and symbolize them yourself. Use a feature service if you want to take advantage of symbols from the service's source map document. Also, use a feature service if you plan on doing editing with the feature layer. Feature layers honor any feature templates configured in the source map document. Feature collection objects are used to create a feature layer based on the supplied definition.",
|
|
5526
5533
|
title: "IFeatureLayer"
|
|
5527
5534
|
},
|
|
5528
5535
|
IGeoRssLayer: {
|
|
@@ -6717,7 +6724,7 @@ Only applicable to bar chart, line chart.`
|
|
|
6717
6724
|
},
|
|
6718
6725
|
intlOptions: {
|
|
6719
6726
|
$ref: "#/definitions/Intl.NumberFormatOptions",
|
|
6720
|
-
description: "Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/
|
|
6727
|
+
description: "Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](https://cldr.unicode.org/translation/number-currency-formats/number-and-currency-patterns) specifications."
|
|
6721
6728
|
}
|
|
6722
6729
|
},
|
|
6723
6730
|
required: [
|
|
@@ -6910,7 +6917,7 @@ Only applicable to bar chart, line chart.`
|
|
|
6910
6917
|
},
|
|
6911
6918
|
intlOptions: {
|
|
6912
6919
|
$ref: "#/definitions/Intl.DateTimeFormatOptions",
|
|
6913
|
-
description: "Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/
|
|
6920
|
+
description: "Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](https://cldr.unicode.org/translation/date-time/date-time-patterns) specifications."
|
|
6914
6921
|
},
|
|
6915
6922
|
formatPerDateTimeUnit: {
|
|
6916
6923
|
$ref: "#/definitions/WebChartDateTimeUnitFormatOptions",
|
|
@@ -10400,11 +10407,11 @@ If not provided the series will be displayed as they are ordered in the config.`
|
|
|
10400
10407
|
description: "Gives a JSON representation of the heat chart object.",
|
|
10401
10408
|
title: "WebHeatChart"
|
|
10402
10409
|
},
|
|
10403
|
-
'Omit<(structure-1066060463-
|
|
10404
|
-
$ref: "#/definitions/Pick%3C(structure-1066060463-
|
|
10405
|
-
title: 'Omit<(structure-1066060463-
|
|
10410
|
+
'Omit<(structure-1066060463-59771-61514-1066060463-59696-61515-1066060463-55801-61517-1066060463-0-64570|undefined)937098756,("data"|"orderByFields")>': {
|
|
10411
|
+
$ref: "#/definitions/Pick%3C(structure-1066060463-59771-61514-1066060463-59696-61515-1066060463-55801-61517-1066060463-0-64570%7Cundefined)937098756%2CExclude%3C(%22series%22%7C%22data%22%7C%22orderByFields%22)%2C(%22data%22%7C%22orderByFields%22)%3E%3E",
|
|
10412
|
+
title: 'Omit<(structure-1066060463-59771-61514-1066060463-59696-61515-1066060463-55801-61517-1066060463-0-64570|undefined)937098756,("data"|"orderByFields")>'
|
|
10406
10413
|
},
|
|
10407
|
-
'Pick<(structure-1066060463-
|
|
10414
|
+
'Pick<(structure-1066060463-59771-61514-1066060463-59696-61515-1066060463-55801-61517-1066060463-0-64570|undefined)937098756,Exclude<("series"|"data"|"orderByFields"),("data"|"orderByFields")>>': {
|
|
10408
10415
|
type: "object",
|
|
10409
10416
|
properties: {
|
|
10410
10417
|
series: {
|
|
@@ -10415,7 +10422,7 @@ If not provided the series will be displayed as they are ordered in the config.`
|
|
|
10415
10422
|
}
|
|
10416
10423
|
},
|
|
10417
10424
|
additionalProperties: !1,
|
|
10418
|
-
title: 'Pick<(structure-1066060463-
|
|
10425
|
+
title: 'Pick<(structure-1066060463-59771-61514-1066060463-59696-61515-1066060463-55801-61517-1066060463-0-64570|undefined)937098756,Exclude<("series"|"data"|"orderByFields"),("data"|"orderByFields")>>'
|
|
10419
10426
|
},
|
|
10420
10427
|
OverlayTerms: {
|
|
10421
10428
|
type: "string",
|
|
@@ -10636,7 +10643,7 @@ function se() {
|
|
|
10636
10643
|
};
|
|
10637
10644
|
}
|
|
10638
10645
|
const le = se();
|
|
10639
|
-
async function
|
|
10646
|
+
async function P(i) {
|
|
10640
10647
|
const { seriesConfigs: r, queryObject: n, allowUsingObjectIdStat: e, errorStrings: t } = i, a = [], o = n ? L(n) : void 0, p = t ?? (await S(
|
|
10641
10648
|
v(document.documentElement).t9nLocale,
|
|
10642
10649
|
w("./assets/common/t9n"),
|
|
@@ -10664,7 +10671,7 @@ async function q(i) {
|
|
|
10664
10671
|
}
|
|
10665
10672
|
return a;
|
|
10666
10673
|
}
|
|
10667
|
-
async function
|
|
10674
|
+
async function q(i, r) {
|
|
10668
10675
|
const n = [], e = r ?? (await S(
|
|
10669
10676
|
v(document.documentElement).t9nLocale,
|
|
10670
10677
|
w("./assets/common/t9n"),
|
|
@@ -10749,7 +10756,7 @@ async function B(i) {
|
|
|
10749
10756
|
const { input: r, queryObject: n, allowUsingObjectIdStat: e, errorStrings: t } = i;
|
|
10750
10757
|
let a = [];
|
|
10751
10758
|
if (n !== void 0) {
|
|
10752
|
-
const o = await
|
|
10759
|
+
const o = await P({
|
|
10753
10760
|
seriesConfigs: r.series,
|
|
10754
10761
|
queryObject: n,
|
|
10755
10762
|
allowUsingObjectIdStat: e,
|
|
@@ -10757,7 +10764,7 @@ async function B(i) {
|
|
|
10757
10764
|
});
|
|
10758
10765
|
a = a.concat(o);
|
|
10759
10766
|
}
|
|
10760
|
-
return a = a.concat(await
|
|
10767
|
+
return a = a.concat(await q(r, t)), a;
|
|
10761
10768
|
}
|
|
10762
10769
|
async function N(i) {
|
|
10763
10770
|
const { queryObject: r, chartConfig: n, errorStrings: e } = i;
|
|
@@ -10833,8 +10840,8 @@ function ve(i) {
|
|
|
10833
10840
|
const Ie = {
|
|
10834
10841
|
findCustomErrors: N,
|
|
10835
10842
|
findWarnings: B,
|
|
10836
|
-
findNumericAggregationWarnings:
|
|
10837
|
-
findDuplicateSeriesIDWarnings:
|
|
10843
|
+
findNumericAggregationWarnings: P,
|
|
10844
|
+
findDuplicateSeriesIDWarnings: q,
|
|
10838
10845
|
findLayerLoadError: R,
|
|
10839
10846
|
createStartingSchema: g,
|
|
10840
10847
|
extractSchemaNameFromRefPath: O,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { substitute as
|
|
3
|
-
import { memoize as W, isEmpty as $, isNull as
|
|
4
|
-
import { P as
|
|
2
|
+
import { substitute as O } from "@arcgis/core/intl.js";
|
|
3
|
+
import { memoize as W, isEmpty as $, isNull as M, cloneDeep as R } from "lodash-es";
|
|
4
|
+
import { P as g, a as y } from "./common.js";
|
|
5
5
|
import { g as A, u as q } from "./utils.js";
|
|
6
|
-
import { g as
|
|
7
|
-
import { b as
|
|
8
|
-
import { g as
|
|
9
|
-
import { S as
|
|
6
|
+
import { g as U } from "./data.js";
|
|
7
|
+
import { b as k } from "./series-length.js";
|
|
8
|
+
import { g as z } from "./utils2.js";
|
|
9
|
+
import { S as G, t as _, a3 as H } from "./index.js";
|
|
10
10
|
import { d as P } from "./index3.js";
|
|
11
|
-
import { m as
|
|
11
|
+
import { m as h, an as L, n as V } from "./index2.js";
|
|
12
12
|
import { i as w } from "./index4.js";
|
|
13
13
|
import { r as m, p as b, n as F, u as J } from "./chart-object-literals.js";
|
|
14
14
|
import { i as Q } from "./rest-js-object-literals.js";
|
|
15
15
|
function v(r) {
|
|
16
|
-
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: s, mode: i }) : "", l =
|
|
16
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: s, mode: i }) : "", l = k(t), d = w(t);
|
|
17
17
|
return a === l || d;
|
|
18
18
|
}
|
|
19
19
|
function B(r) {
|
|
@@ -23,18 +23,18 @@ function B(r) {
|
|
|
23
23
|
commonStrings: s,
|
|
24
24
|
numericFields: f(t),
|
|
25
25
|
aggregationType: T(t, i)
|
|
26
|
-
}) : "", l =
|
|
26
|
+
}) : "", l = z(1, t), d = w(t);
|
|
27
27
|
return a === l || d;
|
|
28
28
|
}
|
|
29
29
|
const I = (r) => r.series?.[0]?.x ?? "";
|
|
30
30
|
function X(r, t) {
|
|
31
31
|
const e = r.series?.[0];
|
|
32
|
-
return [`${t ===
|
|
32
|
+
return [`${t === g.Category ? e.y : V} ${b.Descending}`];
|
|
33
33
|
}
|
|
34
34
|
const K = (r, t) => {
|
|
35
|
-
let e =
|
|
35
|
+
let e = y.valueDesc;
|
|
36
36
|
const i = r.orderOptions?.data?.orderType ?? X(r, t), s = r.orderOptions?.data && "orderBy" in r.orderOptions.data ? r.orderOptions.data.orderBy : b.Descending;
|
|
37
|
-
return i === F.Category && Array.isArray(s) ? e =
|
|
37
|
+
return i === F.Category && Array.isArray(s) ? e = y.customSort : i === F.Category ? s === b.Ascending ? e = y.labelAsc : e = y.labelDesc : s === b.Ascending ? e = y.valueAsc : e = y.valueDesc, e;
|
|
38
38
|
}, f = W(
|
|
39
39
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
40
40
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
@@ -49,12 +49,12 @@ const K = (r, t) => {
|
|
|
49
49
|
), T = (r, t) => {
|
|
50
50
|
const e = f(r);
|
|
51
51
|
let i;
|
|
52
|
-
return t ===
|
|
52
|
+
return t === g.Fields && e.length === 0 ? i = m.Sum : i = r.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? m.NoAggregation, i;
|
|
53
53
|
};
|
|
54
54
|
function Y(r) {
|
|
55
55
|
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = L(e?.layer).idField, l = H(s, a), d = I(t), c = t.series[0]?.dataLabels, o = {
|
|
56
56
|
...l,
|
|
57
|
-
x: i ===
|
|
57
|
+
x: i === g.Category ? d : h,
|
|
58
58
|
slices: t.series?.[0]?.slices,
|
|
59
59
|
dataLabels: {
|
|
60
60
|
...l.dataLabels,
|
|
@@ -73,8 +73,8 @@ function Y(r) {
|
|
|
73
73
|
}, n = T(t, i);
|
|
74
74
|
if (n !== m.NoAggregation && a !== void 0) {
|
|
75
75
|
const u = `${n}_${a}_0`.toUpperCase();
|
|
76
|
-
o.y = i ===
|
|
77
|
-
outStatistics: i ===
|
|
76
|
+
o.y = i === g.Category ? u : V, o.query = {
|
|
77
|
+
outStatistics: i === g.Category ? [
|
|
78
78
|
{
|
|
79
79
|
statisticType: n,
|
|
80
80
|
onStatisticField: a,
|
|
@@ -83,21 +83,21 @@ function Y(r) {
|
|
|
83
83
|
] : []
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
return i ===
|
|
86
|
+
return i === g.Category && o.query !== void 0 ? o.query.groupByFieldsForStatistics = [d] : delete o.query?.groupByFieldsForStatistics, R(o);
|
|
87
87
|
}
|
|
88
88
|
function D(r) {
|
|
89
|
-
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, { layerFieldsInfo: a } = e, { idField: l, isTraditionalTypeOID: d } = L(e.layer), c = I(t), o = f(t), n = T(t, i), u = d && (o.length === 0 || o.includes(l)), p =
|
|
89
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, { layerFieldsInfo: a } = e, { idField: l, isTraditionalTypeOID: d } = L(e.layer), c = I(t), o = f(t), n = T(t, i), u = d && (o.length === 0 || o.includes(l)), p = _(n, s), x = u ? "" : o.map((E) => P(a ?? [], E)).join(", "), S = P(a ?? [], c);
|
|
90
90
|
let C = "", N;
|
|
91
|
-
return i ===
|
|
91
|
+
return i === g.Fields ? N = o.length === 0 : N = c === "", N ? C = s.utilsStrings.chartType.pieChart : n === m.NoAggregation ? C = O(s.titleLabels.aggrFieldsByCategory, {
|
|
92
92
|
aggregationFields: u ? l : x,
|
|
93
93
|
category: S
|
|
94
|
-
}) : n === m.Count ? C =
|
|
94
|
+
}) : n === m.Count ? C = O(s.titleLabels.aggrTypeCategory, {
|
|
95
95
|
aggregationType: p,
|
|
96
96
|
category: S
|
|
97
|
-
}) : o.length > 0 && (S ===
|
|
97
|
+
}) : o.length > 0 && (S === h || $(S) || M(S) ? C = O(s.titleLabels.aggrTypeOfAggrFields, {
|
|
98
98
|
aggregationType: p,
|
|
99
99
|
aggregationFields: x
|
|
100
|
-
}) : C =
|
|
100
|
+
}) : C = O(s.titleLabels.aggrTypeOfAggrFieldsByCategory, {
|
|
101
101
|
aggregationType: p,
|
|
102
102
|
aggregationFields: x,
|
|
103
103
|
category: S
|
|
@@ -105,17 +105,17 @@ function D(r) {
|
|
|
105
105
|
}
|
|
106
106
|
const ue = (r) => {
|
|
107
107
|
const { newSortOrderKind: t, config: e, orderByList: i } = r;
|
|
108
|
-
e.orderOptions ??= {}, t ===
|
|
108
|
+
e.orderOptions ??= {}, t === y.customSort && i !== void 0 ? e.orderOptions.data = {
|
|
109
109
|
orderType: F.Category,
|
|
110
110
|
orderBy: [...i]
|
|
111
111
|
} : e.orderOptions.data = {
|
|
112
|
-
orderType: t ===
|
|
113
|
-
orderBy: t ===
|
|
112
|
+
orderType: t === y.labelAsc || t === y.labelDesc ? F.Category : F.YValue,
|
|
113
|
+
orderBy: t === y.labelAsc || t === y.valueAsc ? b.Ascending : b.Descending
|
|
114
114
|
};
|
|
115
115
|
}, pe = (r) => {
|
|
116
116
|
const { newCategory: t, config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = e.series?.length ?? 0, d = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), c = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
|
|
117
117
|
if (e.series.forEach((o) => {
|
|
118
|
-
o.x = s ===
|
|
118
|
+
o.x = s === g.Category ? t : h, o.query !== void 0 && t !== h ? o.query.groupByFieldsForStatistics = [t] : delete o.query?.groupByFieldsForStatistics;
|
|
119
119
|
}), l === 0) {
|
|
120
120
|
const o = [Y({ config: e, layerInfo: i, mode: s, commonStrings: a })];
|
|
121
121
|
e.series = o;
|
|
@@ -132,7 +132,7 @@ const ue = (r) => {
|
|
|
132
132
|
q(e, 1, n);
|
|
133
133
|
}
|
|
134
134
|
e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
|
|
135
|
-
const o = s ===
|
|
135
|
+
const o = s === g.Fields ? f(e).filter((n) => n !== L(i.layer).idField) : f(e);
|
|
136
136
|
Z({ newNumericFields: o, config: e, layerInfo: i, mode: s, commonStrings: a });
|
|
137
137
|
}
|
|
138
138
|
};
|
|
@@ -149,7 +149,7 @@ function j(r) {
|
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
t.length <= 1 ? n.query.where = o.query?.where : delete n.query.where;
|
|
152
|
-
const u =
|
|
152
|
+
const u = U({
|
|
153
153
|
config: i,
|
|
154
154
|
xAxisField: I(i),
|
|
155
155
|
numericFields: t,
|
|
@@ -159,7 +159,7 @@ function j(r) {
|
|
|
159
159
|
fieldList: d
|
|
160
160
|
}).name;
|
|
161
161
|
if (e !== m.NoAggregation)
|
|
162
|
-
if (a ===
|
|
162
|
+
if (a === g.Category) {
|
|
163
163
|
if (t.length > 0) {
|
|
164
164
|
const p = t[0];
|
|
165
165
|
n.query.outStatistics = [
|
|
@@ -204,7 +204,7 @@ const me = (r) => {
|
|
|
204
204
|
e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
|
|
205
205
|
const o = e.series?.[0]?.displayCategoryOnDataLabel, n = e.series?.[0]?.displayNumericValueOnDataLabel, u = e.series?.[0]?.displayPercentageOnDataLabel;
|
|
206
206
|
e.legend = {
|
|
207
|
-
...e.legend ??
|
|
207
|
+
...e.legend ?? G(),
|
|
208
208
|
displayNumericValue: n,
|
|
209
209
|
displayPercentage: u,
|
|
210
210
|
displayCategory: o
|
|
@@ -214,7 +214,7 @@ const me = (r) => {
|
|
|
214
214
|
const { config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = L(i?.layer).idField;
|
|
215
215
|
let d = T(e, s);
|
|
216
216
|
const c = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), o = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
|
|
217
|
-
if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t, l !== void 0 && (t.length === 0 && s ===
|
|
217
|
+
if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t, l !== void 0 && (t.length === 0 && s === g.Category ? (t.push(l), d = m.Count) : d === m.Count && t.length >= 1 && !t.includes(l) && (d = m.Sum)), i !== void 0) {
|
|
218
218
|
if (j({
|
|
219
219
|
config: e,
|
|
220
220
|
layerInfo: i,
|
|
@@ -240,16 +240,21 @@ const me = (r) => {
|
|
|
240
240
|
}, fe = (r, t) => {
|
|
241
241
|
let e = [];
|
|
242
242
|
const i = r.orderOptions?.data?.orderType, s = K(r, t), a = r.orderOptions?.data && "orderBy" in r.orderOptions.data ? r.orderOptions.data.orderBy : void 0;
|
|
243
|
-
return s ===
|
|
243
|
+
return s === y.customSort && i === F.Category && Array.isArray(a) && (e = a), e;
|
|
244
244
|
}, Fe = (r) => {
|
|
245
245
|
const { values: t, config: e, mode: i } = r;
|
|
246
246
|
e.orderOptions ??= {};
|
|
247
247
|
const s = e.orderOptions?.data?.orderType;
|
|
248
|
-
K(e, i) ===
|
|
248
|
+
K(e, i) === y.customSort && s === F.Category && (e.orderOptions.data = {
|
|
249
249
|
orderType: F.Category,
|
|
250
250
|
orderBy: [...t]
|
|
251
251
|
});
|
|
252
252
|
};
|
|
253
|
+
function Te(r) {
|
|
254
|
+
const { category: t = "", numericFields: e = [], fallbackMode: i = g.Category } = r, s = t.trim() !== "" && t !== h;
|
|
255
|
+
let a = i;
|
|
256
|
+
return e.length > 1 ? a = g.Fields : s && e.length <= 1 && (a = g.Category), a;
|
|
257
|
+
}
|
|
253
258
|
export {
|
|
254
259
|
f as a,
|
|
255
260
|
T as b,
|
|
@@ -259,7 +264,8 @@ export {
|
|
|
259
264
|
ue as f,
|
|
260
265
|
I as g,
|
|
261
266
|
fe as h,
|
|
262
|
-
|
|
263
|
-
|
|
267
|
+
Te as i,
|
|
268
|
+
Fe as j,
|
|
269
|
+
D as k,
|
|
264
270
|
pe as s
|
|
265
271
|
};
|