@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.100
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/LICENSE.md +4 -2
- package/README.md +2 -2
- package/dist/cdn/225VUGML.js +4 -0
- package/dist/cdn/22V4YZLT.js +2 -0
- package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
- package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
- package/dist/cdn/{G6OHBBUT.js → 2INZEFXR.js} +1 -1
- package/dist/cdn/{I5VHQW7B.js → 2OAB6VMZ.js} +1 -1
- package/dist/cdn/2RSKVWTZ.js +2 -0
- package/dist/cdn/{NFDXH5B3.js → 2TNZTI5Q.js} +1 -1
- package/dist/cdn/{VY3KBD6N.js → 2YDNWOWT.js} +1 -1
- package/dist/cdn/{TSI3C3OV.js → 3DGX6WFJ.js} +1 -1
- package/dist/cdn/3NLKE6ZN.js +2 -0
- package/dist/cdn/{CODAXMWM.js → 3W64DBHG.js} +1 -1
- package/dist/cdn/3XSL5VPN.js +2 -0
- package/dist/cdn/{Y7HBWU3M.js → 3ZKNY2GI.js} +1 -1
- package/dist/cdn/42FKRE56.js +2 -0
- package/dist/cdn/42PLGMOG.js +2 -0
- package/dist/cdn/455LSMAU.js +2 -0
- package/dist/cdn/4A4EW5Z5.js +2 -0
- package/dist/cdn/4DR6JUR7.js +104 -0
- package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
- package/dist/cdn/4U63XRSZ.js +2 -0
- package/dist/cdn/{O6SNP6QE.js → 4YKB2PME.js} +1 -1
- package/dist/cdn/{3V4HRXIT.js → 5BZCHVPD.js} +1 -1
- package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
- package/dist/cdn/5GDVKAX5.js +2 -0
- package/dist/cdn/5SYHQWPP.js +2 -0
- package/dist/cdn/{2X75KJPF.js → 5V2YHARQ.js} +1 -1
- package/dist/cdn/{7ILH7ZG2.js → 5VHWJWWP.js} +1 -1
- package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
- package/dist/cdn/62GSQDTE.js +2 -0
- package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
- package/dist/cdn/{DIKQ7BPQ.js → 65WMT7WD.js} +1 -1
- package/dist/cdn/6DYDDJKB.js +2 -0
- package/dist/cdn/6H6SZO4Y.js +2 -0
- package/dist/cdn/{B4KT2HUE.js → 6MALKAJY.js} +1 -1
- package/dist/cdn/6VIPQGM6.js +2 -0
- package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
- package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
- package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
- package/dist/cdn/7FPQDD3C.js +2 -0
- package/dist/cdn/7GTZX5NP.js +2 -0
- package/dist/cdn/7NGEMDYM.js +2 -0
- package/dist/cdn/7TM4LYGN.js +2 -0
- package/dist/cdn/{NHDVOYQ2.js → 7TTQNVC5.js} +1 -1
- package/dist/cdn/AA456L7Q.js +2 -0
- package/dist/cdn/{OA7FHTCA.js → AAHQPRYK.js} +1 -1
- package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
- package/dist/cdn/AIQU35U3.js +2 -0
- package/dist/cdn/AMIDKZA2.js +2 -0
- package/dist/cdn/AOVXHBJK.js +2 -0
- package/dist/cdn/{SGOYJFLO.js → ATWR3DSK.js} +1 -1
- package/dist/cdn/AYCQHDDV.js +2 -0
- package/dist/cdn/AZYYQMCD.js +2 -0
- package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
- package/dist/cdn/{UQPFMDJB.js → B46RQ2MZ.js} +1 -1
- package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
- package/dist/cdn/{4JQ2RRLY.js → BK2QOEX2.js} +1 -1
- package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
- package/dist/cdn/BWLRC2U5.js +2 -0
- package/dist/cdn/BYSUABOV.js +2 -0
- package/dist/cdn/{WASEMNYV.js → CHBL4DXX.js} +1 -1
- package/dist/cdn/{I36OAVW3.js → CTMOMBBM.js} +1 -1
- package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
- package/dist/cdn/D5DOFLCS.js +2 -0
- package/dist/cdn/{CUJHGXNK.js → DLMRATCW.js} +1 -1
- package/dist/cdn/{N3VOUI25.js → DWO7GMVE.js} +1 -1
- package/dist/cdn/E6E2KLJ2.js +2 -0
- package/dist/cdn/E6JK3JRJ.js +2 -0
- package/dist/cdn/EB4CM3YK.js +2 -0
- package/dist/cdn/EJW2UHAB.js +2 -0
- package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
- package/dist/cdn/EWIMT2AS.js +2 -0
- package/dist/cdn/FBS4RBSA.js +2 -0
- package/dist/cdn/{75P3QRL4.js → FLUZSJXH.js} +1 -1
- package/dist/cdn/{UAZ34KDJ.js → FSEQQXRO.js} +1 -1
- package/dist/cdn/G3KO465U.js +4 -0
- package/dist/cdn/GVJ5WCQD.js +2 -0
- package/dist/cdn/H2ECCBL7.js +2 -0
- package/dist/cdn/H2R62NYZ.js +2 -0
- package/dist/cdn/{66KSEDOR.js → H7Z3QWIW.js} +1 -1
- package/dist/cdn/{ABIVSH72.js → HJSR7M2A.js} +1 -1
- package/dist/cdn/{RKN64EJQ.js → HUMEIOOQ.js} +1 -1
- package/dist/cdn/{N6OT5IBC.js → HZUBDLNR.js} +1 -1
- package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
- package/dist/cdn/IBMPLHXH.js +2 -0
- package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → IGOJGDYE.js} +1 -1
- package/dist/cdn/{4QQVKRJ5.js → IRIGTY65.js} +1 -1
- package/dist/cdn/JCCCT72R.js +2 -0
- package/dist/cdn/{AJBEE7WE.js → JMR2NH33.js} +1 -1
- package/dist/cdn/JSVAA6N4.js +2 -0
- package/dist/cdn/JVHMHWIM.js +2 -0
- package/dist/cdn/JZMYBU7B.js +2 -0
- package/dist/cdn/KKE5EKYC.js +2 -0
- package/dist/cdn/KODMEY56.js +2 -0
- package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
- package/dist/cdn/KYESCAI2.js +2 -0
- package/dist/cdn/KYOCE6FA.js +2 -0
- package/dist/cdn/KZSCAJDG.js +2 -0
- package/dist/cdn/L5JZ5COY.js +2 -0
- package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
- package/dist/cdn/LZ7SW2R3.js +2 -0
- package/dist/cdn/M4G6TGMS.js +2 -0
- package/dist/cdn/{LNF44ZGQ.js → MJVTTSEV.js} +1 -1
- package/dist/cdn/MMUAG4IX.js +2 -0
- package/dist/cdn/MQI4ZLAS.js +2 -0
- package/dist/cdn/{DD4QUBOF.js → N7VRRNQD.js} +1 -1
- package/dist/cdn/{RWEUTQWS.js → NJF5UIYM.js} +1 -1
- package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
- package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
- package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
- package/dist/cdn/{4E7C5QPS.js → NWYSPTLF.js} +1 -1
- package/dist/cdn/O4DFT4N4.js +2 -0
- package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
- package/dist/cdn/OGH6DSQR.js +2 -0
- package/dist/cdn/{53FG76LL.js → OH3X6QIK.js} +1 -1
- package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
- package/dist/cdn/OIWZXO7H.js +2 -0
- package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
- package/dist/cdn/OKKEWHMB.js +2 -0
- package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
- package/dist/cdn/OURE3TA5.js +2 -0
- package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → P3AYFJRV.js} +1 -1
- package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
- package/dist/cdn/{RDTBZUT7.js → PAPE3NIS.js} +1 -1
- package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
- package/dist/cdn/{XWKBJDZT.js → PMFGLOZL.js} +1 -1
- package/dist/cdn/PT2OG4W2.js +2 -0
- package/dist/cdn/PWJBGZPW.js +2 -0
- package/dist/cdn/Q366CY3F.js +45 -0
- package/dist/cdn/{OYHKUGS6.js → QHJSE3P3.js} +1 -1
- package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
- package/dist/cdn/QKUFLZC3.js +2 -0
- package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
- package/dist/cdn/QO2RH3XB.js +3 -0
- package/dist/cdn/QPX4FNCB.js +2 -0
- package/dist/cdn/{XIJ5VLER.js → QTAETIIH.js} +1 -1
- package/dist/cdn/QYRHZJH3.js +2 -0
- package/dist/cdn/{FLO3N6JD.js → QZIF3GED.js} +1 -1
- package/dist/cdn/RD7TKIQS.js +2 -0
- package/dist/cdn/RGIL6ZEZ.js +2 -0
- package/dist/cdn/RNGQEQRO.js +2 -0
- package/dist/cdn/RPUEIRTH.js +2 -0
- package/dist/cdn/{VFM2EV3M.js → S6CNTZIE.js} +1 -1
- package/dist/cdn/S6RBDFHP.js +2 -0
- package/dist/cdn/SIHW3QVG.js +2 -0
- package/dist/cdn/SS7GYFUD.js +2 -0
- package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
- package/dist/cdn/SXT66JGI.js +2 -0
- package/dist/cdn/SZSTCHLY.js +2 -0
- package/dist/cdn/SZYIWW3C.js +2 -0
- package/dist/cdn/T75QDGXB.js +2 -0
- package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
- package/dist/cdn/{AK7X7SGI.js → TENIFMA5.js} +1 -1
- package/dist/cdn/{M4AQLWZU.js → TNUZFQGZ.js} +1 -1
- package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
- package/dist/cdn/{O2ERVMSN.js → U25H6VUE.js} +1 -1
- package/dist/cdn/UCHQXTEC.js +2 -0
- package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
- package/dist/cdn/ULQSD4KK.js +2 -0
- package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
- package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
- package/dist/cdn/UVESG7TY.js +2 -0
- package/dist/cdn/{PH6UOHRS.js → V4NEFGS3.js} +1 -1
- package/dist/cdn/{NG2IHVZ4.js → V54RTUAV.js} +1 -1
- package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
- package/dist/cdn/VMHDTE3U.js +2 -0
- package/dist/cdn/VQMG3F5Z.js +2 -0
- package/dist/cdn/VQU2TVX7.js +3 -0
- package/dist/cdn/VWUW3HFU.js +2 -0
- package/dist/cdn/W66Q5TB6.js +2 -0
- package/dist/cdn/{5AOYADA3.js → WKRD4TIL.js} +1 -1
- package/dist/cdn/WMYNPECY.js +2 -0
- package/dist/cdn/WOGALV3T.js +2 -0
- package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
- package/dist/cdn/WTMEWLUJ.js +2 -0
- package/dist/cdn/WTOK3YQI.js +2 -0
- package/dist/cdn/WVOXFKFO.js +2 -0
- package/dist/cdn/X2FMGJRP.js +2 -0
- package/dist/cdn/X733UM32.js +2 -0
- package/dist/cdn/XGWHDERD.js +2 -0
- package/dist/cdn/{2HGBRW4I.js → XOB6RSOR.js} +1 -1
- package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
- package/dist/cdn/YFMHKHFE.js +2 -0
- package/dist/cdn/YHC6WRNQ.js +2 -0
- package/dist/cdn/ZDKUHFRX.js +2 -0
- package/dist/cdn/ZK72BJCQ.js +2 -0
- package/dist/cdn/{EUOPRFMU.js → ZLARROJV.js} +1 -1
- package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
- package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -0
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +111 -73
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +38 -46
- package/dist/chunks/axis-lines-symbol.js +9 -9
- package/dist/chunks/bar-chart-model.js +49 -41
- package/dist/chunks/box-plot-data.js +291 -274
- package/dist/chunks/box-plot-model.js +143 -130
- package/dist/chunks/chart-model.js +194 -153
- package/dist/chunks/chart-object-literals.js +26 -25
- package/dist/chunks/chart-ui-utils.js +148 -66
- package/dist/chunks/chart-ui-utils2.js +68 -149
- package/dist/chunks/class-breaks.js +270 -238
- package/dist/chunks/combo-bar-line-chart-model.js +122 -101
- package/dist/chunks/data-labels-symbol.js +39 -24
- package/dist/chunks/data-labels-visibility.js +8 -8
- package/dist/chunks/data.js +70 -70
- package/dist/chunks/default.js +6 -6
- package/dist/chunks/gauge-model.js +71 -71
- package/dist/chunks/generate-x-axis-title.js +19 -19
- package/dist/chunks/heat-chart-model.js +98 -69
- package/dist/chunks/histogram-data.js +24 -24
- package/dist/chunks/histogram-model.js +11 -11
- package/dist/chunks/index.js +9353 -1079
- package/dist/chunks/index2.js +851 -8748
- package/dist/chunks/index3.js +1169 -846
- package/dist/chunks/index4.js +10969 -677
- package/dist/chunks/index5.js +62 -10794
- package/dist/chunks/interfaces.js +9 -9
- package/dist/chunks/line-chart-model.js +41 -25
- package/dist/chunks/model-setter.js +59 -64
- package/dist/chunks/model-types.js +1 -1
- package/dist/chunks/model-with-line-marker-styling.js +72 -47
- package/dist/chunks/model-with-x-guides.js +6 -6
- package/dist/chunks/model-with-y-guides.js +52 -67
- package/dist/chunks/negative-values-stacked-to-baseline.js +122 -71
- package/dist/chunks/pie-chart-data.js +175 -193
- package/dist/chunks/pie-chart-model.js +388 -320
- package/dist/chunks/radar-chart-model.js +413 -46
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +10 -10
- package/dist/chunks/rotated-state.js +2 -2
- package/dist/chunks/rounded-corners.js +90 -0
- package/dist/chunks/scatterplot-model.js +27 -27
- package/dist/chunks/serial-chart-data.js +887 -755
- package/dist/chunks/serial-chart-model.js +151 -129
- package/dist/chunks/series-length.js +18 -18
- package/dist/chunks/series-types.js +22 -18
- package/dist/chunks/series.js +3 -3
- package/dist/chunks/store.js +5 -5
- package/dist/chunks/type-guards.js +49 -23
- package/dist/chunks/type-guards2.js +61 -52
- package/dist/chunks/utils.js +99 -89
- package/dist/chunks/utils2.js +9 -9
- package/dist/chunks/web-component-utils.js +632 -492
- package/dist/chunks/x-bounds.js +98 -97
- package/dist/components/arcgis-chart/customElement.d.ts +791 -277
- package/dist/components/arcgis-chart/customElement.js +11155 -10958
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +12 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +40 -37
- package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +39 -33
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +30 -30
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +44 -43
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -15
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +31 -39
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +17 -17
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +26 -28
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +18 -20
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +243 -229
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-format/customElement.js +94 -87
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-general/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-guide/customElement.js +26 -27
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +10 -13
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +66 -78
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +58 -59
- package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +27 -27
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +35 -36
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +42 -44
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +7 -8
- package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +57 -64
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +56 -57
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +66 -67
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +80 -80
- package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +9 -11
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
- package/dist/components/arcgis-charts-info-modal/customElement.js +7 -7
- 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.d.ts +70 -62
- package/dist/index.js +500 -471
- package/dist/interfaces.d.ts +57 -14
- package/dist/json-schema/index.d.ts +211 -6
- package/dist/loader.js +2 -2
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -4
- package/dist/model/box-plot-model/box-plot-model.d.ts +11 -5
- package/dist/model/chart-model/chart-model-base.d.ts +10 -0
- package/dist/model/chart-model/chart-model-wrapper.d.ts +24 -0
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +33 -21
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +41 -8
- package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/mixins/model-with-guides.d.ts +1 -1
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +28 -19
- package/dist/model/mixins/model-with-multi-axes.d.ts +62 -99
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +61 -2
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
- package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/model/properties/rounded-corners.d.ts +18 -0
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
- package/dist/model/shared/setup-utils.d.ts +3 -3
- package/dist/{model.js → model/shared/setup-utils.js} +12 -12
- package/dist/model/shared/type-guards.d.ts +38 -22
- package/dist/spec/chart-object-literals.d.ts +4 -3
- package/dist/spec/data-source.d.ts +17 -3
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +42 -6
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +3 -3
- package/dist/utils/chart-config/converter/index.js +742 -0
- package/dist/utils/chart-config/utils/index.d.ts +58 -9
- package/dist/utils/chart-config/validator/index.d.ts +2 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +4 -3
- package/dist/utils/components/interfaces.d.ts +2 -0
- package/dist/utils/cursor/interfaces.d.ts +21 -0
- package/dist/utils/data/categorical-data/index.d.ts +18 -2
- package/dist/utils/data/index.d.ts +28 -22
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +31 -6
- package/dist/utils/defaults/interfaces.d.ts +73 -4
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +26 -8
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/layer/interfaces.d.ts +0 -12
- package/dist/utils/layer/query-features/index.d.ts +8 -3
- package/dist/utils/layer/query-parser/index.d.ts +13 -9
- package/dist/utils/layer/utils/index.d.ts +22 -5
- package/dist/utils/localization/interfaces.d.ts +13 -1
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/misc/interfaces.d.ts +1 -0
- package/dist/utils/type-guards/chart-types.d.ts +10 -0
- package/dist/utils/type-guards/series-types.d.ts +9 -2
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +10 -9
- package/dist/cdn/3FTJIVFE.js +0 -2
- package/dist/cdn/45JPWIBI.js +0 -2
- package/dist/cdn/45PJ5TQL.js +0 -2
- package/dist/cdn/47HHRDX4.js +0 -2
- package/dist/cdn/4OZZXXZF.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/5HQ2CJEQ.js +0 -2
- package/dist/cdn/5MVNVHYG.js +0 -2
- package/dist/cdn/6JGLHOFY.js +0 -2
- package/dist/cdn/6LQYOBAL.js +0 -2
- package/dist/cdn/6PAONFHB.js +0 -2
- package/dist/cdn/6SRISPQN.js +0 -3
- package/dist/cdn/74JAZF7U.js +0 -2
- package/dist/cdn/7BEC5WZB.js +0 -2
- package/dist/cdn/7IV6GMF7.js +0 -2
- package/dist/cdn/7SNOZDAD.js +0 -2
- package/dist/cdn/7YBKGD3V.js +0 -2
- package/dist/cdn/A5GIBV5W.js +0 -2
- package/dist/cdn/AT2NWWBG.js +0 -2
- package/dist/cdn/ATIARKAU.js +0 -2
- package/dist/cdn/B7DM7VT6.js +0 -2
- package/dist/cdn/BBURKBKE.js +0 -2
- package/dist/cdn/BZCVDNC4.js +0 -102
- package/dist/cdn/CAJVNPHZ.js +0 -2
- package/dist/cdn/CHQDKVVQ.js +0 -4
- package/dist/cdn/CPPT5HUK.js +0 -58
- package/dist/cdn/CXQOEN77.js +0 -2
- package/dist/cdn/D23GGWFM.js +0 -2
- package/dist/cdn/DNMVB3A2.js +0 -2
- package/dist/cdn/DYC3Q36R.js +0 -2
- package/dist/cdn/EQVQRZHJ.js +0 -2
- package/dist/cdn/EXTKNE2L.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/F5Q73CFW.js +0 -2
- package/dist/cdn/FAQDMSUC.js +0 -2
- package/dist/cdn/FCXI523J.js +0 -2
- package/dist/cdn/FJPGZEGK.js +0 -2
- package/dist/cdn/FT2K3J7O.js +0 -2
- package/dist/cdn/GCSGY6GL.js +0 -2
- package/dist/cdn/GUH6CQE6.js +0 -2
- package/dist/cdn/GWQJXXP3.js +0 -2
- package/dist/cdn/H6NH46AS.js +0 -2
- package/dist/cdn/HJHMEVMB.js +0 -2
- package/dist/cdn/HUCSTT64.js +0 -2
- package/dist/cdn/HX4236ZL.js +0 -2
- package/dist/cdn/I2M6YAUU.js +0 -2
- package/dist/cdn/IWVS6SKP.js +0 -2
- package/dist/cdn/JILAM6NH.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/KC6CFXB7.js +0 -2
- package/dist/cdn/KKWXEF5W.js +0 -2
- package/dist/cdn/KV4ZPVWQ.js +0 -2
- package/dist/cdn/LKY2A3U6.js +0 -2
- package/dist/cdn/M75ENKIU.js +0 -2
- package/dist/cdn/MHG42BA5.js +0 -2
- package/dist/cdn/MKQAQDRM.js +0 -2
- package/dist/cdn/MOMKSNIZ.js +0 -2
- package/dist/cdn/MRTKZZTF.js +0 -2
- package/dist/cdn/NS3THLCD.js +0 -2
- package/dist/cdn/NS7OCROO.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/O4M33ZPK.js +0 -2
- package/dist/cdn/OVM5QF7Q.js +0 -2
- package/dist/cdn/OY6UOUYX.js +0 -2
- package/dist/cdn/P3RM2ACY.js +0 -2
- package/dist/cdn/P4HSSZRL.js +0 -2
- package/dist/cdn/P6SC5DD2.js +0 -2
- package/dist/cdn/P74SXC5B.js +0 -2
- package/dist/cdn/PAIRUVLU.js +0 -2
- package/dist/cdn/PEZCCXQ7.js +0 -2
- package/dist/cdn/PKMZ6N6M.js +0 -2
- package/dist/cdn/PTFRQF65.js +0 -2
- package/dist/cdn/PYKHO4QI.js +0 -2
- package/dist/cdn/RG3I5ORH.js +0 -2
- package/dist/cdn/RKKWMNWU.js +0 -2
- package/dist/cdn/S3BC57BJ.js +0 -4
- package/dist/cdn/S6PJHEJ7.js +0 -2
- package/dist/cdn/THTYR6IL.js +0 -2
- package/dist/cdn/TORIY3OE.js +0 -2
- package/dist/cdn/TTDZKISK.js +0 -2
- package/dist/cdn/TXSWWAOF.js +0 -2
- package/dist/cdn/TZ4GOE2Q.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/UNUPCA4W.js +0 -2
- package/dist/cdn/URYNG6OA.js +0 -2
- package/dist/cdn/V2XJSJH4.js +0 -2
- package/dist/cdn/V76PIVCF.js +0 -2
- package/dist/cdn/V7MBHG4F.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/X6WA2KXK.js +0 -2
- package/dist/cdn/XFZX5ULX.js +0 -2
- package/dist/cdn/XJFVSX2E.js +0 -2
- package/dist/cdn/XMQCH4QI.js +0 -2
- package/dist/cdn/Y3CXVO2M.js +0 -2
- package/dist/cdn/YIIPYKTL.js +0 -2
- package/dist/cdn/YKGZVYK2.js +0 -2
- package/dist/cdn/YVVQVAJZ.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/cdn/YZQ54BRI.js +0 -2
- package/dist/cdn/Z7EBST4A.js +0 -3
- package/dist/cdn/ZFM5RGWD.js +0 -142
- package/dist/cdn/ZQCUJ7VE.js +0 -2
- package/dist/chunks/bar-chart-series.js +0 -15
- package/dist/chunks/index6.js +0 -103
- package/dist/chunks/index7.js +0 -66
- package/dist/chunks/time-zone.js +0 -38
- package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
- /package/dist/cdn/{WVRBLV5L.js → 7NWEE7T2.js} +0 -0
- /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type Extent from "@arcgis/core/geometry/Extent.js";
|
|
2
1
|
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
3
2
|
import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
|
|
4
3
|
import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
5
4
|
import type Layer from "@arcgis/core/layers/Layer.js";
|
|
6
|
-
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
7
5
|
import type CodedValueDomain from "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
6
|
+
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
8
7
|
import type Renderer from "@arcgis/core/renderers/Renderer.js";
|
|
9
8
|
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
|
|
10
9
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
11
10
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
11
|
+
import type { ChartOptions } from "../../chart-rendering/common/interfaces.js";
|
|
12
12
|
import type { SupportedLayer, SupportedRasterLayer } from "../../interfaces.js";
|
|
13
13
|
import type { IFeatureLayer, IField, IImageServiceLayer, ITiledImageServiceLayer, IWCSLayer } from "../../spec/rest-js-types.js";
|
|
14
14
|
import type { WebChart, WebChartDataFilters, WebChartQuery } from "../../spec/web-chart.js";
|
|
15
|
-
import type { QueryObject, QueryObjectOrRaster,
|
|
15
|
+
import type { QueryObject, QueryObjectOrRaster, RendererInfo } from "./interfaces.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Returns the renderer type and the field and normalization field if applicable.
|
|
@@ -22,6 +22,16 @@ import type { QueryObject, QueryObjectOrRaster, QueryObjectProps, RendererInfo }
|
|
|
22
22
|
*/
|
|
23
23
|
export function getRendererInfo(layerRenderer?: Renderer): RendererInfo;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Function creating a FeatureLayer from a set of parameters.
|
|
27
|
+
* It returns the created Feature Layer.
|
|
28
|
+
* It is memoized (cached) to avoid multiple creations for a same feature layer.
|
|
29
|
+
*
|
|
30
|
+
* @param featureLayer
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export function getFeatureLayerUnloaded(featureLayer: IFeatureLayer): FeatureLayer;
|
|
34
|
+
|
|
25
35
|
/**
|
|
26
36
|
* Function creating a FeatureLayer from a set of parameters.
|
|
27
37
|
* It returns the created Feature Layer.
|
|
@@ -58,13 +68,18 @@ export function getLayer(iLayer: IFeatureLayer | IImageServiceLayer | ITiledImag
|
|
|
58
68
|
export function getLayer(iLayer: IFeatureLayer | IImageServiceLayer | ITiledImageServiceLayer | IWCSLayer, abortSignal?: AbortSignal): Promise<FeatureLayer | ImageryLayer | ImageryTileLayer | WCSLayer>;
|
|
59
69
|
|
|
60
70
|
/**
|
|
61
|
-
* Returns the
|
|
62
|
-
* It can return either a FeatureLayer, an ImageryLayer, an ImageryTileLayer,
|
|
71
|
+
* Returns the layer object for the given layer or ILayer synchronously (without loading it).
|
|
72
|
+
* It can return either a FeatureLayer, an ImageryLayer, an ImageryTileLayer, or a WCSLayer (and possibly nothing).
|
|
63
73
|
*
|
|
64
74
|
* @param props
|
|
65
75
|
* @internal
|
|
66
76
|
*/
|
|
67
|
-
export function
|
|
77
|
+
export function getQueryObjectUnloaded(props: {
|
|
78
|
+
layerOrLayerView?: QueryObjectOrRaster;
|
|
79
|
+
iLayer?: WebChart["iLayer"];
|
|
80
|
+
view?: MapView | SceneView;
|
|
81
|
+
layerItemId?: string;
|
|
82
|
+
}): QueryObjectOrRaster | undefined;
|
|
68
83
|
|
|
69
84
|
/**
|
|
70
85
|
* Fetches all the fields info from a layer.
|
|
@@ -187,6 +202,7 @@ export function getFieldCodedValueDomain(queryObject: QueryObject, field?: strin
|
|
|
187
202
|
*
|
|
188
203
|
* @param fieldValue - The field value to get the description for
|
|
189
204
|
* @param domain - The domain of the field
|
|
205
|
+
* @internal
|
|
190
206
|
*/
|
|
191
207
|
export function getFieldDescriptionFromDomain(fieldValue: number | string, domain?: CodedValueDomain): string | undefined;
|
|
192
208
|
|
|
@@ -194,6 +210,7 @@ export function getFieldDescriptionFromDomain(fieldValue: number | string, domai
|
|
|
194
210
|
* Get the field description from the query object given a field name and a field value.
|
|
195
211
|
*
|
|
196
212
|
* @param props - The query object (layer or feature layer view)
|
|
213
|
+
* @internal
|
|
197
214
|
*/
|
|
198
215
|
export function getFieldDescriptionFromQueryObject(props: {
|
|
199
216
|
queryObject: QueryObjectOrRaster;
|
|
@@ -273,8 +290,9 @@ export function buildQueryConfig(props: {
|
|
|
273
290
|
queryObject?: QueryObjectOrRaster;
|
|
274
291
|
chartConfig: WebChart;
|
|
275
292
|
runtimeDataFilters?: WebChartDataFilters;
|
|
293
|
+
filterByViewExtent?: boolean;
|
|
276
294
|
ignoreViewExtent?: boolean;
|
|
277
|
-
|
|
295
|
+
view?: ChartOptions["view"];
|
|
278
296
|
}): WebChartQuery;
|
|
279
297
|
|
|
280
298
|
/**
|
|
@@ -332,4 +350,4 @@ export function findMatchingLayerFromView(props: {
|
|
|
332
350
|
* @param layer - The layer
|
|
333
351
|
* @param abortSignal - Optional abort signal to cancel the request
|
|
334
352
|
*/
|
|
335
|
-
export function loadLayer(layer: Layer | SupportedLayer | SupportedRasterLayer, abortSignal?: AbortSignal): Promise<void>;
|
|
353
|
+
export function loadLayer(layer: Layer | SupportedLayer | SupportedRasterLayer | undefined, abortSignal?: AbortSignal): Promise<void>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Former interface describing the property `configFields` from an inline data source.
|
|
3
3
|
* Is an object which dictate which data-item field should be used for defining a property of the rendered element (line, point, bars, etc). Used in inline data source mode only.
|
|
4
|
-
*
|
|
5
|
-
* @internal
|
|
6
4
|
*/
|
|
7
5
|
export interface WebChartConfigFields {
|
|
8
6
|
fillColor?: string;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import type MapView from "@arcgis/core/views/MapView.js";
|
|
2
|
-
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
3
1
|
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
|
|
4
2
|
import type { SupportedLayer, SupportedRasterLayer } from "../../interfaces.js";
|
|
5
3
|
import type { RESTRendererType } from "../../spec/rest-js-object-literals.js";
|
|
6
|
-
import type { WebChart } from "../../spec/web-chart.js";
|
|
7
|
-
|
|
8
|
-
/** @internal */
|
|
9
|
-
export interface QueryObjectProps {
|
|
10
|
-
chartConfig?: WebChart;
|
|
11
|
-
layer?: QueryObjectOrRaster;
|
|
12
|
-
view?: MapView | SceneView;
|
|
13
|
-
filterByViewExtent?: boolean;
|
|
14
|
-
abortSignal?: AbortSignal;
|
|
15
|
-
}
|
|
16
4
|
|
|
17
5
|
/** @internal */
|
|
18
6
|
export interface RendererInfo {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type AttributeBinsGraphic from "@arcgis/core/AttributeBinsGraphic.js";
|
|
2
2
|
import type AttributeBinsFeatureSet from "@arcgis/core/rest/support/AttributeBinsFeatureSet.js";
|
|
3
|
+
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
3
4
|
import type { WebChartDataItem } from "../../../spec/data-source.js";
|
|
4
5
|
import type { WebChartQuery, WebChartTemporalBinning, WebHeatChart } from "../../../spec/web-chart.js";
|
|
5
6
|
import type { ErrorStrings } from "../../localization/interfaces.js";
|
|
6
7
|
import type { ChartSubType } from "../../misc/interfaces.js";
|
|
7
8
|
import type { QueryObject } from "../interfaces.js";
|
|
8
9
|
import type { AbortControllerKeyType, Features } from "./interfaces.js";
|
|
9
|
-
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Performs a query analytic.
|
|
@@ -48,7 +48,8 @@ export function queryAttributeBinsForHeatChart(props: {
|
|
|
48
48
|
queryObject: QueryObject;
|
|
49
49
|
queryConfig: WebChartQuery;
|
|
50
50
|
view?: ChartOptions["view"];
|
|
51
|
-
syncViewTimeZone?:
|
|
51
|
+
syncViewTimeZone?: boolean;
|
|
52
|
+
returnStatisticsAggregatedIds: boolean;
|
|
52
53
|
errorStrings: ErrorStrings;
|
|
53
54
|
abortSignal?: AbortSignal;
|
|
54
55
|
}): Promise<AttributeBinsFeatureSet | undefined>;
|
|
@@ -64,6 +65,7 @@ export function queryFeaturesForMatrixHeatChart(props: {
|
|
|
64
65
|
queryObject: QueryObject;
|
|
65
66
|
queryConfig: WebChartQuery;
|
|
66
67
|
returnFeaturesExtent?: boolean;
|
|
68
|
+
returnStatisticsAggregatedIds: boolean;
|
|
67
69
|
errorStrings: ErrorStrings;
|
|
68
70
|
abortKey?: AbortControllerKeyType;
|
|
69
71
|
abortSignal?: AbortSignal;
|
|
@@ -84,6 +86,7 @@ export function queryAttributeBinsForScatterplot(props: {
|
|
|
84
86
|
xMax: number;
|
|
85
87
|
x: string;
|
|
86
88
|
y: string;
|
|
89
|
+
returnStatisticsAggregatedIds: boolean;
|
|
87
90
|
errorStrings: ErrorStrings;
|
|
88
91
|
abortSignal?: AbortSignal;
|
|
89
92
|
}): Promise<AttributeBinsFeatureSet | undefined>;
|
|
@@ -126,6 +129,7 @@ export function queryFeatures(props: {
|
|
|
126
129
|
queryObject: QueryObject;
|
|
127
130
|
queryConfig?: WebChartQuery;
|
|
128
131
|
returnUniqueIdsOnly?: boolean;
|
|
132
|
+
returnStatisticsAggregatedIds: boolean;
|
|
129
133
|
errorStrings: ErrorStrings;
|
|
130
134
|
abortKey?: AbortControllerKeyType;
|
|
131
135
|
abortSignal?: AbortSignal;
|
|
@@ -144,6 +148,7 @@ export function queryAllFeatures(props: {
|
|
|
144
148
|
returnUniqueIdsOnly?: boolean;
|
|
145
149
|
featureCount?: number;
|
|
146
150
|
noBatch?: boolean;
|
|
151
|
+
returnStatisticsAggregatedIds: boolean;
|
|
147
152
|
errorStrings: ErrorStrings;
|
|
148
153
|
abortKey?: AbortControllerKeyType;
|
|
149
154
|
abortSignal?: AbortSignal;
|
|
@@ -199,6 +204,6 @@ export function queryAttributeBinsForTemporalData(props: {
|
|
|
199
204
|
errorStrings: ErrorStrings;
|
|
200
205
|
view?: ChartOptions["view"];
|
|
201
206
|
syncViewTimeZone?: boolean;
|
|
202
|
-
|
|
207
|
+
returnStatisticsAggregatedIds: boolean;
|
|
203
208
|
abortSignal?: AbortSignal;
|
|
204
209
|
}): Promise<AttributeBinsGraphic[]>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type Geometry from "@arcgis/core/geometry/Geometry.js";
|
|
2
|
-
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
3
2
|
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
4
3
|
import type AttributeBinsQuery from "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
5
4
|
import type Query from "@arcgis/core/rest/support/Query.js";
|
|
@@ -8,7 +7,8 @@ import type { QueryProperties } from "@arcgis/core/rest/support/Query.js";
|
|
|
8
7
|
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
9
8
|
import type { RESTFieldType } from "../../../spec/rest-js-object-literals.js";
|
|
10
9
|
import type { WebChartHeatChartSeries, WebChartQuery, WebChartTemporalBinning } from "../../../spec/web-chart.js";
|
|
11
|
-
import type { QueryObject
|
|
10
|
+
import type { QueryObject } from "../interfaces.js";
|
|
11
|
+
import type { ChartLayer, SupportedLayer } from "../../../interfaces.js";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Indicates whether a query can be cached. It is not when:
|
|
@@ -24,7 +24,7 @@ export function isQueryCacheable(query: AttributeBinsQuery | Query | QueryProper
|
|
|
24
24
|
* @param layer
|
|
25
25
|
* @internal
|
|
26
26
|
*/
|
|
27
|
-
export function getMaxRecords(layer?: Pick<
|
|
27
|
+
export function getMaxRecords(layer?: Pick<ChartLayer, "sourceJSON"> | SubtypeSublayer): number;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Function building a where clause by concatenating a list of filters by using the AND operator.
|
|
@@ -33,16 +33,16 @@ export function getMaxRecords(layer?: Pick<FeatureLayer, "sourceJSON"> | Subtype
|
|
|
33
33
|
* @param operand - The operand to use to combine the filters (OR, AND...)
|
|
34
34
|
* @internal
|
|
35
35
|
*/
|
|
36
|
-
export function combineFilters(filterList: (string | null | undefined)[], operand?: string): string;
|
|
36
|
+
export function combineFilters(filterList: (number | string | null | undefined)[], operand?: string): string;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Computes the time extent to be used by the query.
|
|
40
40
|
*
|
|
41
|
-
* @param
|
|
41
|
+
* @param viewTimeExtent - The layer or feature layer view
|
|
42
42
|
* @param defaultTimeExtent - The time extent defined at the series config level or provided at runtime
|
|
43
43
|
* @internal
|
|
44
44
|
*/
|
|
45
|
-
export function getQueryTimeExtent(
|
|
45
|
+
export function getQueryTimeExtent(viewTimeExtent?: TimeExtent | null, defaultTimeExtent?: WebChartQuery["timeExtent"]): WebChartQuery["timeExtent"] | undefined;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Computes the extent to be used by the query. We prioritize the feature layer view extent
|
|
@@ -87,7 +87,8 @@ export function mapAttributeBinsQueryForTemporalData(props: {
|
|
|
87
87
|
splitByField?: string;
|
|
88
88
|
axisTimeZone?: string;
|
|
89
89
|
view?: ChartOptions["view"];
|
|
90
|
-
syncViewTimeZone?:
|
|
90
|
+
syncViewTimeZone?: boolean;
|
|
91
|
+
returnStatisticsAggregatedIds: boolean;
|
|
91
92
|
}): AttributeBinsQuery;
|
|
92
93
|
|
|
93
94
|
/**
|
|
@@ -128,7 +129,8 @@ export function mapAttributeBinsQueryForHeatChart(props: {
|
|
|
128
129
|
configTimeZone?: string;
|
|
129
130
|
includeLeapDay?: boolean;
|
|
130
131
|
view?: ChartOptions["view"];
|
|
131
|
-
syncViewTimeZone?:
|
|
132
|
+
syncViewTimeZone?: boolean;
|
|
133
|
+
returnStatisticsAggregatedIds: boolean;
|
|
132
134
|
}): AttributeBinsQuery;
|
|
133
135
|
|
|
134
136
|
/**
|
|
@@ -146,6 +148,7 @@ export function mapAttributeBinsQueryForScatterplot(props: {
|
|
|
146
148
|
xMax: number;
|
|
147
149
|
x: string;
|
|
148
150
|
y: string;
|
|
151
|
+
returnStatisticsAggregatedIds: boolean;
|
|
149
152
|
}): AttributeBinsQuery;
|
|
150
153
|
|
|
151
154
|
/**
|
|
@@ -158,10 +161,11 @@ export function mapQuery(props: {
|
|
|
158
161
|
queryObject: QueryObject;
|
|
159
162
|
queryConfig?: WebChartQuery;
|
|
160
163
|
maxRecordCountFactor?: number;
|
|
164
|
+
returnStatisticsAggregatedIds: boolean;
|
|
161
165
|
}): Query;
|
|
162
166
|
|
|
163
167
|
/**
|
|
164
168
|
* @param layer
|
|
165
169
|
* @internal
|
|
166
170
|
*/
|
|
167
|
-
export function getMaxRecordCountFactor(layer?: Pick<
|
|
171
|
+
export function getMaxRecordCountFactor(layer?: Pick<ChartLayer, "sourceJSON"> | SupportedLayer): number | undefined;
|
|
@@ -4,8 +4,9 @@ import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js
|
|
|
4
4
|
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
|
|
5
5
|
import type LayerView from "@arcgis/core/views/layers/LayerView.js";
|
|
6
6
|
import type Layer from "@arcgis/core/layers/Layer.js";
|
|
7
|
+
import type { SelectableLayerWithObjectIds } from "@arcgis/core/views/selection/types.js";
|
|
7
8
|
import type { QueryObject, QueryObjectOrRaster } from "../interfaces.js";
|
|
8
|
-
import type { SupportedLayer, SupportedRasterLayer } from "../../../interfaces.js";
|
|
9
|
+
import type { ChartLayer, ChartLayerInput, SupportedLayer, SupportedRasterLayer } from "../../../interfaces.js";
|
|
9
10
|
import type { WebChart } from "../../../spec/web-chart.js";
|
|
10
11
|
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
11
12
|
|
|
@@ -33,6 +34,22 @@ export function isFeatureLayerView(queryObject: LayerView | QueryObjectOrRaster
|
|
|
33
34
|
*/
|
|
34
35
|
export function isFeatureLayer(queryObject: Layer | QueryObjectOrRaster | undefined): queryObject is FeatureLayer;
|
|
35
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Indicates whether an input exposes the feature-layer contract required by charts.
|
|
39
|
+
*
|
|
40
|
+
* @param queryObject
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export function isFeatureLayerLike(queryObject: Layer | QueryObjectOrRaster | undefined): queryObject is ChartLayer;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Indicates whether a chart layer exposes the object ID selection contract.
|
|
47
|
+
*
|
|
48
|
+
* @param queryObject
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
export function isSelectableLayerWithObjectIds(queryObject: ChartLayerInput | undefined): queryObject is ChartLayerInput & SelectableLayerWithObjectIds;
|
|
52
|
+
|
|
36
53
|
/**
|
|
37
54
|
* Indicates whether the input object is an instance of `SubtypeGroupLayer`.
|
|
38
55
|
*
|
|
@@ -65,7 +82,7 @@ export function isSupportedLayer(queryObject: Layer | QueryObjectOrRaster | unde
|
|
|
65
82
|
* @param layer
|
|
66
83
|
* @internal
|
|
67
84
|
*/
|
|
68
|
-
export function getMainLayer(layer:
|
|
85
|
+
export function getMainLayer(layer: ChartLayer | SubtypeSublayer | undefined): ChartLayer | SubtypeGroupLayer | undefined;
|
|
69
86
|
|
|
70
87
|
/**
|
|
71
88
|
* @param layer
|
|
@@ -77,19 +94,19 @@ export function getMainLayer(layer: SupportedRasterLayer): SupportedRasterLayer;
|
|
|
77
94
|
* @param layer
|
|
78
95
|
* @internal
|
|
79
96
|
*/
|
|
80
|
-
export function getMainLayer(layer:
|
|
97
|
+
export function getMainLayer(layer: ChartLayer | SubtypeSublayer | SupportedRasterLayer): ChartLayer | SubtypeGroupLayer | SupportedRasterLayer;
|
|
81
98
|
|
|
82
99
|
/**
|
|
83
100
|
* @param layer
|
|
84
101
|
* @internal
|
|
85
102
|
*/
|
|
86
|
-
export function getMainLayer(layer:
|
|
103
|
+
export function getMainLayer(layer: ChartLayer | SubtypeSublayer | SupportedRasterLayer | undefined): ChartLayer | SubtypeGroupLayer | SupportedRasterLayer | undefined;
|
|
87
104
|
|
|
88
105
|
/**
|
|
89
106
|
* @param layer
|
|
90
107
|
* @internal
|
|
91
108
|
*/
|
|
92
|
-
export function getMainLayer(layer:
|
|
109
|
+
export function getMainLayer(layer: ChartLayer | SubtypeSublayer | SupportedRasterLayer | undefined): ChartLayer | SubtypeGroupLayer | SupportedRasterLayer | undefined;
|
|
93
110
|
|
|
94
111
|
/**
|
|
95
112
|
* Indicates whether a layer supports queries with a `distance` parameter
|
|
@@ -19,7 +19,7 @@ export interface ComponentLocaleItem<T extends LocaleItem> {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/** @internal */
|
|
22
|
-
export const SupportedLocalesForFormats: (
|
|
22
|
+
export const SupportedLocalesForFormats: (SupportedLocale | string | string | string | string | string | string | string | string | string | string | string)[];
|
|
23
23
|
|
|
24
24
|
/** @internal */
|
|
25
25
|
export type SupportedLocalesForFormats = SupportedLocale | "ar-u-nu-latn" | "de-AT" | "de-CH" | "de-DE" | "en-AU" | "en-GB" | "es-ES" | "es-MX" | "fr-CA" | "it-CH" | "it-IT";
|
|
@@ -114,6 +114,8 @@ export const CommonStringsIdentity: (value: {
|
|
|
114
114
|
};
|
|
115
115
|
notifications: {
|
|
116
116
|
invalidConfig: string;
|
|
117
|
+
invalidConfigForRaster: string;
|
|
118
|
+
invalidConfigTitle: string;
|
|
117
119
|
invalidSeriesConfig: string;
|
|
118
120
|
invalidSeriesConfigTitle: string;
|
|
119
121
|
validateAggregationTypeMsg: string;
|
|
@@ -167,6 +169,10 @@ export const CommonStringsIdentity: (value: {
|
|
|
167
169
|
twoTemporalSeriesLineCountCannotExceedLimit: string;
|
|
168
170
|
threePlusTemporalSeriesLineCountCannotExceedLimit: string;
|
|
169
171
|
lineSeriesCountCannotExceedLimit: string;
|
|
172
|
+
uniqueSeriesRadarCountCannotExceedLimit: string;
|
|
173
|
+
twoSeriesRadarCountCannotExceedLimit: string;
|
|
174
|
+
threePlusSeriesRadarCountCannotExceedLimit: string;
|
|
175
|
+
radarSeriesCountCannotExceedLimit: string;
|
|
170
176
|
uniqueSeriesBoxCountCannotExceedLimit: string;
|
|
171
177
|
twoSeriesBoxCountCannotExceedLimit: string;
|
|
172
178
|
threePlusBoxLineCountCannotExceedLimit: string;
|
|
@@ -379,6 +385,8 @@ export const CommonStringsIdentity: (value: {
|
|
|
379
385
|
};
|
|
380
386
|
notifications: {
|
|
381
387
|
invalidConfig: string;
|
|
388
|
+
invalidConfigForRaster: string;
|
|
389
|
+
invalidConfigTitle: string;
|
|
382
390
|
invalidSeriesConfig: string;
|
|
383
391
|
invalidSeriesConfigTitle: string;
|
|
384
392
|
validateAggregationTypeMsg: string;
|
|
@@ -432,6 +440,10 @@ export const CommonStringsIdentity: (value: {
|
|
|
432
440
|
twoTemporalSeriesLineCountCannotExceedLimit: string;
|
|
433
441
|
threePlusTemporalSeriesLineCountCannotExceedLimit: string;
|
|
434
442
|
lineSeriesCountCannotExceedLimit: string;
|
|
443
|
+
uniqueSeriesRadarCountCannotExceedLimit: string;
|
|
444
|
+
twoSeriesRadarCountCannotExceedLimit: string;
|
|
445
|
+
threePlusSeriesRadarCountCannotExceedLimit: string;
|
|
446
|
+
radarSeriesCountCannotExceedLimit: string;
|
|
435
447
|
uniqueSeriesBoxCountCannotExceedLimit: string;
|
|
436
448
|
twoSeriesBoxCountCannotExceedLimit: string;
|
|
437
449
|
threePlusBoxLineCountCannotExceedLimit: string;
|
|
@@ -15,7 +15,6 @@ export type SerialChartType = typeof WebChartTypes.BarSeries | typeof WebChartTy
|
|
|
15
15
|
/** @internal */
|
|
16
16
|
export type SupportedChartType = typeof WebChartTypes.BarSeries | typeof WebChartTypes.BoxPlotSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.HistogramSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.PieSeries | typeof WebChartTypes.RadarSeries | typeof WebChartTypes.ScatterSeries;
|
|
17
17
|
|
|
18
|
-
/** @internal */
|
|
19
18
|
export type ChartTypes = Extract<WebChartTypes, WebChartType>;
|
|
20
19
|
|
|
21
20
|
/** @internal */
|
|
@@ -251,8 +250,8 @@ export function sanitizeHTMLOutput(inputToSanitize: string): string;
|
|
|
251
250
|
* Indicates if a provided number value is valid.
|
|
252
251
|
* An invalid value is: undefined | NaN | Infinite | -Infinite | null
|
|
253
252
|
* See for more details:
|
|
254
|
-
* - https://developer.mozilla.org/
|
|
255
|
-
* - https://developer.mozilla.org/
|
|
253
|
+
* - https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite
|
|
254
|
+
* - https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
|
|
256
255
|
*
|
|
257
256
|
* @param value
|
|
258
257
|
* @internal
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WebChart } from "../../spec/web-chart.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Check the `subType` in the chart config to determine whether the chart is a gauge by feature.
|
|
5
|
+
* If `subType` is not defined, the chart is defaulted to be a statistic gauge.
|
|
6
|
+
*
|
|
7
|
+
* @param config - the chart config
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export function isGaugeByFeature(config: WebChart): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WebChartCalendarDatePartsBinning, WebChartHeatChartSeries, WebChartSeries, WebChartTemporalBinning } from "../../spec/web-chart.js";
|
|
1
|
+
import type { WebChartBarChartSeries, WebChartCalendarDatePartsBinning, WebChartHeatChartSeries, WebChartLineChartSeries, WebChartRadarChartSeries, WebChartSeries, WebChartTemporalBinning } from "../../spec/web-chart.js";
|
|
2
2
|
import type { ChartTypes } from "../misc/index.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -35,4 +35,11 @@ export function getChartOrSeriesType(chartSeries: WebChartSeries[] | undefined,
|
|
|
35
35
|
* @returns The binning type for the specified axis
|
|
36
36
|
* @internal
|
|
37
37
|
*/
|
|
38
|
-
export function getHeatChartBinningType(chartSeries: WebChartHeatChartSeries | undefined, isXAxis?: boolean): WebChartCalendarDatePartsBinning | WebChartTemporalBinning | undefined;
|
|
38
|
+
export function getHeatChartBinningType(chartSeries: WebChartHeatChartSeries | undefined, isXAxis?: boolean): WebChartCalendarDatePartsBinning | WebChartTemporalBinning | undefined;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Type guard to know if the series type supports null category
|
|
42
|
+
*
|
|
43
|
+
* @param series - series The series to check
|
|
44
|
+
*/
|
|
45
|
+
export function supportsNullCategory(series: WebChartSeries): series is WebChartBarChartSeries | WebChartLineChartSeries | WebChartRadarChartSeries;
|
|
@@ -104,11 +104,7 @@ export type BoxPlotConfig = WebBoxPlot;
|
|
|
104
104
|
*/
|
|
105
105
|
export type HeatChartConfig = WebHeatChart;
|
|
106
106
|
|
|
107
|
-
/**
|
|
108
|
-
* Type alias for the supported chart series types.
|
|
109
|
-
*
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
107
|
+
/** Type alias for the supported chart series types. */
|
|
112
108
|
export type SupportedChartSeries = WebChartBarChartSeries | WebChartBoxPlotSeries | WebChartGaugeSeries | WebChartHistogramSeries | WebChartLineChartSeries | WebChartPieChartSeries | WebChartRadarChartSeries | WebChartScatterplotSeries;
|
|
113
109
|
|
|
114
110
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/charts-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.100",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": "./dist/index.js",
|
|
11
|
+
"./utils/chart-config/converter/index": "./dist/utils/chart-config/converter/index.js",
|
|
12
|
+
"./model/shared/setup-utils": "./dist/model/shared/setup-utils.js",
|
|
11
13
|
"./loader": "./dist/loader.js",
|
|
12
14
|
"./package.json": "./package.json",
|
|
13
15
|
"./components/*/customElement": "./dist/components/*/customElement.js",
|
|
@@ -27,25 +29,24 @@
|
|
|
27
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
28
30
|
"dependencies": {
|
|
29
31
|
"@amcharts/amcharts4": "^4.10.31",
|
|
30
|
-
"@amcharts/amcharts5": "~5.
|
|
32
|
+
"@amcharts/amcharts5": "~5.20.4",
|
|
33
|
+
"@arcgis/lumina": "5.2.0-next.100",
|
|
34
|
+
"@arcgis/toolkit": "5.2.0-next.100",
|
|
31
35
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
32
36
|
"@lit/task": "^1.0.3",
|
|
37
|
+
"@zumer/snapdom": "^2.24.1",
|
|
33
38
|
"ajv": "6.12.6",
|
|
34
39
|
"d3-shape": "^3.2.0",
|
|
35
|
-
"fastq": "~1.13.0",
|
|
36
|
-
"html2canvas": "^1.4.1",
|
|
37
40
|
"jszip": "^3.10.1",
|
|
38
41
|
"lit": "^3.3.0",
|
|
39
42
|
"lodash-es": "^4.18.1",
|
|
40
43
|
"luxon": "~3.7.2",
|
|
41
44
|
"simple-statistics": "^7.8.8",
|
|
42
|
-
"tslib": "^2.8.1"
|
|
43
|
-
"@arcgis/lumina": "5.2.0-next.1",
|
|
44
|
-
"@arcgis/toolkit": "5.2.0-next.1"
|
|
45
|
+
"tslib": "^2.8.1"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
|
-
"@arcgis/core": "
|
|
48
|
-
"@esri/calcite-components": "^5.
|
|
48
|
+
"@arcgis/core": "5.2.0-next.100",
|
|
49
|
+
"@esri/calcite-components": "^5.2.0-next.65"
|
|
49
50
|
},
|
|
50
51
|
"css.customData": [
|
|
51
52
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/3FTJIVFE.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{d as h}from"./AK7X7SGI.js";import{g as b}from"./MHG42BA5.js";import a from"./6SRISPQN.js";import"./EZV7JSQJ.js";import"./Z7EBST4A.js";import"./PAIRUVLU.js";import{f as y}from"./KX7KGXKQ.js";import{g as d,l as n}from"./SP2IPHWF.js";import"./NZR4L5AA.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import{A as u,G as I,g as C,i as c,n as p}from"./CHQDKVVQ.js";import"./U67P6YAZ.js";export default $arcgis.t(([{kb:F,mb:v}])=>{var E=C`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,g=class extends u{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let s=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(s)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.filterBySelection=!1,this.arcgisChartsConfigNoSeriesUpdate=p(),this.arcgisChartsConfigWebChartChange=p()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,filterBySelection:5,chartData:0}}static{this.styles=E}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let s=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!n(e.get("layer"),this.layer)&&(s=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(s=!0),e.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(s=!0),s&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,s){s?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){let{slices:s,groupedSlices:i,groupOfSlices:t}=e?.get(0)??{},o=[];this.filterBySelection?o=this.model.slices?.map(l=>s?.find(a=>a.sliceId===l.sliceId)??i?.find(a=>a.sliceId===l.sliceId)??l)??[]:o=(s??[]).concat(i??[]),o.forEach((l,a)=>{let f=this.model.slices?.find(S=>S.sliceId===o[a].sliceId);f&&(o[a]={...o[a],...f});let r=o[a].fillSymbol;r!==void 0&&!n(r?.outline?.color,r?.color)&&(r.outline={...r.outline??{},type:y.SLS,color:r.color})});let m=(i??[]).map(l=>l.sliceId);i!==void 0&&!n(m,this.model.groupedSliceIds)&&(this.model.groupedSliceIds=d(m)),n(o,this.model.slices)||(this.model.slices=d(o)),t!==void 0&&!n(t,this.model.sliceGrouping)&&(this.model.sliceGrouping=d(t))}async updateFetchLayerFieldsInfo(e){let s=e??this.model.config,i=this.layer;if(!i){let t=b(s)?s.iLayer:void 0;t&&(i=await F(t))}i&&(await i.load(),this.layerFieldsInfo=v(i,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}render(){let e;switch(this.page){case h.Data:e=c`<arcgis-charts-config-pie-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-pie-chart-data>`;break;case h.Slices:e=c`<arcgis-charts-config-pie-chart-slices .model=${this.model} .chartData=${this.chartData} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-pie-chart-slices>`;break;case h.Format:e=c`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case h.General:e=c`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};I("arcgis-charts-config-pie-chart",g);return g},a)
|
package/dist/cdn/45JPWIBI.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import o from"./G6OHBBUT.js";import n from"./PTFRQF65.js";import m from"./O4M33ZPK.js";import k from"./XMQCH4QI.js";import"./THTYR6IL.js";import j from"./OVM5QF7Q.js";import i from"./X6WA2KXK.js";import"./Y7HBWU3M.js";import g from"./47HHRDX4.js";import e from"./URYNG6OA.js";import d from"./YVVQVAJZ.js";import"./MHG42BA5.js";import a from"./6SRISPQN.js";import"./EZV7JSQJ.js";import"./Z7EBST4A.js";import{E as p,O as v,X as l,ga as h,na as _}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as c,b as f,s as b}from"./547RDEMV.js";import"./CHQDKVVQ.js";import"./U67P6YAZ.js";export default $arcgis.t(([{ob:S},{b:I,q:C},,{c:i},,L,{b:w,d:V,f:D},{b:B,d:E,f:W},{d:T,e:A},F])=>{var M=t=>t.axes[0].needle?.visible??!0,P=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.visible=t},$=t=>t.axes[0].needle?.symbol,G=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.symbol=t},j=t=>t.axes[0].needle?.startWidth,q=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.startWidth=t},O=t=>t.axes[0].needle?.endWidth,N=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.endWidth=t},J=t=>t.axes[0].needle?.innerRadius,K=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.innerRadius=t},z=t=>t.axes[0].needle?.displayPin??!1,H=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.displayPin=t},Q=t=>t.axes[0].innerLabel?.visible??!0,U=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),e.axes[0].innerLabel.visible=t},X=t=>t.axes[0].innerLabel?.content,Y=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),t!==void 0&&(e.axes[0].innerLabel.content=t)},Z=t=>t.axes[0].progressBands?.visible??!0,ee=(t,e)=>{e.axes[0].progressBands===void 0&&(e.axes[0].progressBands={type:c.FixedProgressBands}),e.axes[0].progressBands.visible=t},te=t=>t.axes[0].progressBands,ne=(t,e)=>{t===void 0?delete e.axes[0].progressBands:e.axes[0].progressBands=t},se=t=>t.axes[0].ticks?.visible??!0,ie=(t,e)=>{e.axes[0].ticks===void 0&&(e.axes[0].ticks={type:c.GaugeAxisTick}),e.axes[0].ticks.visible=t},oe=t=>t.axes[0].labelsIncrement,re=(t,e)=>{e.axes[0].labelsIncrement=t},ae=t=>t.axes[0].onlyShowFirstAndLastLabels??!1,ge=(t,e)=>{e.axes[0].onlyShowFirstAndLastLabels=t},le=t=>t.series[0]?.valueConversion,de=(t,e)=>{e.series[0]!==void 0&&(e.series[0].valueConversion=t)},k=t=>t.series[0]?.featureIndex,R=t=>{let{featureIndex:e,config:n,layerInfo:a,commonStrings:r}=t,g=x(n),d=u(n);e===null?delete n.series[0].featureIndex:n.series[0]!==void 0&&(n.series[0].featureIndex=e),y({config:n,layerInfo:a,field:g,aggregationType:d,commonStrings:r})},ce=t=>t.subType??b.StatisticGauge,fe=t=>{let{config:e,field:n,aggregationType:a}=t;if(a!==f.NoAggregation){let r=k(e),g=m(r)?{}:{outStatistics:[{statisticType:a,onStatisticField:n,outStatisticFieldName:`${a}_${n}`}]};e.series[0].query=g}},pe=t=>{let{config:e,layerInfo:n,commonStrings:a,field:r,aggregationType:g}=t;e.title&&(e.title.content.text=I({config:e,layerInfo:n,commonStrings:a,numericFields:[r],aggregationType:g}))},y=t=>{let{config:e,field:n,aggregationType:a}=t;e.series[0]===void 0&&(e.series=[h({})]);let r=m(e.series[0]?.featureIndex),g=r?n:`${a}_${n}`;r&&n.startsWith(`${a}_`)&&(g=n.replace(`${a}_`,"")),e.series[0].x=g,fe({config:e,field:n,aggregationType:a}),pe(t)},u=t=>t.series[0]?.query?.outStatistics?.[0]?.statisticType??f.Count,he=t=>{let{config:e,layerInfo:n,commonStrings:a,aggregationType:r}=t,g=x(e);y({config:e,layerInfo:n,commonStrings:a,field:g,aggregationType:r})},m=t=>typeof t=="number"&&t>=0,x=t=>m(t.series[0]?.featureIndex)?t.series[0]?.x:t.series[0]?.query?.outStatistics?.[0]?.onStatisticField??"",ye=t=>{let{field:e,config:n,layerInfo:a,commonStrings:r}=t,g=u(n);y({config:n,layerInfo:a,commonStrings:r,field:e,aggregationType:g})},ue=t=>t.innerRadius??50,me=(t,e)=>{e.innerRadius=t},xe=t=>t.startAngle??-90,be=(t,e)=>{e.startAngle=t},ve=t=>t.endAngle??270,_e=(t,e)=>{e.endAngle=t};function Se(t){return v(t)}var Ie=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,o=(t,e,n,a)=>{for(var r=Ce(e,n),g=t.length-1,d;g>=0;g--)(d=t[g])&&(r=d(e,n,r)||r);return r&&Ie(e,n,r),r},s=class extends L{constructor(){super(...arguments),this._chartType=c.GaugeSeries}generateChartTitle(){return Se(this.commonStrings)}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get field(){return x(this._config)}set field(e){ye({field:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get aggregationType(){return u(this._config)}set aggregationType(e){he({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get innerRadius(){return ue(this._config)}set innerRadius(e){me(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get startAngle(){return xe(this._config)}set startAngle(e){be(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get endAngle(){return ve(this._config)}set endAngle(e){_e(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get valueConversion(){return le(this._config)}set valueConversion(e){de(e,this._config)}get featureIndex(){return k(this._config)}set featureIndex(e){R({featureIndex:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}removeFeatureIndex(){R({featureIndex:null,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get gaugeSubType(){return ce(this._config)}get needleVisibility(){return M(this._config)}set needleVisibility(e){P(e,this._config)}get needleSymbol(){return $(this._config)}set needleSymbol(e){G(e,this._config)}get needleStartWidth(){return j(this._config)}set needleStartWidth(e){q(e,this._config)}get needleEndWidth(){return O(this._config)}set needleEndWidth(e){N(e,this._config)}get needleInnerRadius(){return J(this._config)}set needleInnerRadius(e){K(e,this._config)}get needleDisplayPin(){return z(this._config)}set needleDisplayPin(e){H(e,this._config)}get innerLabelVisible(){return Q(this._config)}set innerLabelVisible(e){U(e,this._config)}get innerLabelContent(){return X(this._config)}set innerLabelContent(e){Y(e,this._config)}get progressBandsVisibility(){return Z(this._config)}set progressBandsVisibility(e){ee(e,this._config)}get progressBands(){return te(this._config)}set progressBands(e){ne(e,this._config)}get axisTickVisibility(){return se(this._config)}set axisTickVisibility(e){ie(e,this._config)}get labelsIncrement(){return oe(this._config)}set labelsIncrement(e){re(e,this._config)}get onlyShowFirstAndLastLabels(){return ae(this._config)}set onlyShowFirstAndLastLabels(e){ge(e,this._config)}generateDefaultConfig(){let e=_(this.commonStrings);return e.series=[h({objectIDField:S(this.layerInfo.layer).idField})],e}};o([i],s.prototype,"field");o([i],s.prototype,"aggregationType");o([i],s.prototype,"innerRadius");o([i],s.prototype,"startAngle");o([i],s.prototype,"endAngle");o([i],s.prototype,"valueConversion");o([i],s.prototype,"featureIndex");o([i],s.prototype,"removeFeatureIndex");o([i],s.prototype,"needleVisibility");o([i],s.prototype,"needleSymbol");o([i],s.prototype,"needleStartWidth");o([i],s.prototype,"needleEndWidth");o([i],s.prototype,"needleInnerRadius");o([i],s.prototype,"needleDisplayPin");o([i],s.prototype,"innerLabelVisible");o([i],s.prototype,"innerLabelContent");o([i],s.prototype,"progressBandsVisibility");o([i],s.prototype,"progressBands");o([i],s.prototype,"axisTickVisibility");o([i],s.prototype,"labelsIncrement");o([i],s.prototype,"onlyShowFirstAndLastLabels");var Le=[w,T,V,A,B,E,W,D,F];C(s,Le);return s},a,d,e,g,i,j,k,m,n,o)
|
package/dist/cdn/45PJ5TQL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as E}from"./VOTZAPI3.js";import{a as h}from"./JNNB2DIA.js";import{b as T,c as B}from"./IHO3OLL3.js";import e from"./EUOPRFMU.js";import{k as a}from"./AK7X7SGI.js";import{a as D}from"./MRTKZZTF.js";import d from"./YVVQVAJZ.js";import"./MHG42BA5.js";import b from"./6SRISPQN.js";import"./EZV7JSQJ.js";import{n as F}from"./Z7EBST4A.js";import"./PAIRUVLU.js";import{a as g}from"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.js";import{b as r}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import{A as v,B as c,C as y,E as P,G as L,g as $,i as n,n as u,y as f,z as m}from"./CHQDKVVQ.js";import"./U67P6YAZ.js";export default $arcgis.t(([{substitute:O},{Pb:I,pb:x,tb:b},,{a:C,k:p,o:S,r:w}])=>{var o={jsAppFlyout:"js-app-flyout",name:"bar-chart-data-popover",numericFieldPickList:"bar-chart-data-numeric-fields-pick-list",header:"header",fab:"fab",pickListItemLabel:"pick-list-item-label",sortMean:"sort-mean",sortMedian:"sort-median",sortOrderPickList:"sort-order-pick-list",panel:"panel"},z=$`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`,k=class extends v{constructor(){super(...arguments),this._messages=D(),this.picklist=f(),this.placement="leading",this.popoverElement=f(),this.offsetDistance=-200,this.pickListHasChanged=!1,this.open=!1,this.layerFieldsInfo=[],this.isCustomSortDisabled=!1,this.arcgisChartsConfigBoxPlotDataPopoverChange=u(),this.arcgisChartsConfigPopoverClose=u()}static{this.properties={messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,isCustomSortDisabled:5,selectedContent:1}}static{this.styles=z}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"))}updated(){setTimeout(()=>{typeof this.picklist.value?.setFocus=="function"&&this.picklist.value?.setFocus()},C.PopoverTimer),T(this.popoverElement.value,this.open)}selectedContentChange(e,t){this.pickListHasChanged=B(e,t)}closePopover(){if(this.contentKind===a.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigBoxPlotDataPopoverChange,contentKind:this.contentKind};S(e)}this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigBoxPlotDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}buildPickListItem(e){return h(e.name,n`<calcite-list-item .label=${F(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${p(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case a.numericFields:{for(let s=0;s<t;s+=1){let l=this.layerFieldsInfo[s];x(l)&&i.push(this.buildPickListItem(l))}break}case a.category:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${p("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let l=0;l<t;l+=1){let d=this.layerFieldsInfo[l];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}case a.splitByField:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${p("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let l=0;l<t;l+=1){let d=this.layerFieldsInfo[l];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}}return i}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}buildSortOrder(){let e=Object.keys(r),t;return E(e,i=>i,i=>{let s="";switch(i){case r.xAxisAsc:{t="a-z-down";break}case r.xAxisDesc:{t="a-z-up";break}case r.meanAsc:t="sort-descending",s=o.sortMean;break;case r.meanDesc:{t="sort-ascending",s=o.sortMean;break}case r.medianAsc:{t="sort-descending",s=o.sortMedian;break}case r.medianDesc:{t="sort-ascending",s=o.sortMedian;break}case r.customSort:{t="arrow-up-down";break}}return n`<calcite-list-item .disabled=${this.isCustomSortDisabled&&i===r.customSort} .label=${this._messages[i]} .selected=${this.selectedContent===i} .value=${r[i]} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}><calcite-icon class=${`sort-icon-color ${s}`} slot=content-start .icon=${t}></calcite-icon></calcite-list-item>`})}onNumericFieldSelectionDone(){this.closePopover()}createTooltip(e){if(e.target?.label===this._messages.customSort&&this.isCustomSortDisabled){let t=e.target,i=I(t),s=new Intl.NumberFormat(i).format(C.customSortLimit),l=O(this._messages.customSortLimit??"",{totalLimit:s});this.tooltip=P(n`<calcite-tooltip style=${y({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${l}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}}destroyTooltip(){w(this.tooltip)}renderCategory(){let e=this.buildPickListItems(a.category);return n`<calcite-list label class=${c(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(a.numericFields);return n`<calcite-list label class=${c(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`}renderSplitByField(){let e=this.buildPickListItems(a.splitByField);return n`<calcite-list label class=${c(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return n`<calcite-list label class=${c(o.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case a.category:e=this.renderCategory();break;case a.numericFields:e=this.renderNumericFields();break;case a.splitByField:e=this.renderSplitByField();break;case a.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===a.numericFields&&(e=n`<div slot=footer><calcite-fab class=${c(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),n`<div class=${c(o.jsAppFlyout)}><calcite-popover class=${c(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel class=${c(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};L("arcgis-charts-config-box-plot-popover",k);return k},"intl",b,d,e)
|
package/dist/cdn/47HHRDX4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./URYNG6OA.js";import{a as ce,b as de,g as le}from"./MHG42BA5.js";import a from"./6SRISPQN.js";import{e as Q}from"./EZV7JSQJ.js";import{e as p,r as D,z as O}from"./Z7EBST4A.js";import{L as H,a as V,ha as $,o as W,p as z,ya as Y}from"./PAIRUVLU.js";import{g as n,k as h}from"./SP2IPHWF.js";import{f as j,g as A}from"./NZR4L5AA.js";import{a as S}from"./XJFVSX2E.js";import{a as u,b as x,d as N,h as v,k as B,p as w,q as M,v as y}from"./547RDEMV.js";import{H as R}from"./CHQDKVVQ.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,{$b:ae,Cb:se,Db:ne,J:Z,L:q,M:J,N:X,Q:ee,R:te,T:F,V:re,a:K,b:L,kb:C,mb:ie,ob:oe,q:I,r:U,xb:T,zb:E},{a:ue,e:pe,f:ye,h:me}])=>{var _=(r=>(r.NONE="none",r.ROTATE="rotate",r.STAGGER="stagger",r.WRAP="wrap",r))(_||{});function Ne(r){let{configToUpdate:e,chartContainer:i,layer:t}=r,o=n(e);if(t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:s}=A(i??document.documentElement);try{o.firstDayOfWeek=K.local().setLocale(s.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return o}function Ve(r){let e=n(r);if(I(e)){let i=e.series[0],t=e.chartRenderer?.classBreakInfos;if(t?.length&&i?.classBreaksRules){i.classBreaksRules.colorRampInfo=i.classBreaksRules.colorRampInfo??{};let{name:o,flipped:s}=i.classBreaksRules.colorRampInfo,a=pe(t,me.esriColorRamps);if(!o&&a?.name&&(i.classBreaksRules.colorRampInfo.name=a.name),s===void 0&&a){let d=ue({numberOfClassBreaks:t.length,selectedColorRamp:a});d.length===t.length&&(i.classBreaksRules.colorRampInfo.flipped=ye(d,t))}}}return e}function We(r){let e=n(r);return h(r.axes)||(e.axes=r.axes?.map(i=>{let t=i;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})),e}function ze(r){let e=n(r);return h(r.series)||(e.series=r.series.map((i,t)=>{let o=i;i.id===void 0&&(o.id=`Series ${Date.now()}-${t}`);let s=S(r.series,t);return(s===u.BarSeries||s===u.LineSeries||s===u.RadarSeries)&&o.query?.outStatistics?.[0]?.statisticType==="median"&&(o.query.outStatistics[0].statisticType=x.ContinuousPercentile),s===u.BarSeries&&o.multipleBarType!==void 0&&(o.stackedType=o.multipleBarType,delete o.multipleBarType),s===u.PieSeries&&o.sliceGrouping!==void 0&&(o.sliceGrouping.sliceId=W.defaultGroupOfSlicesId,o.sliceGrouping.groupName!==void 0&&(o.sliceGrouping={...o.sliceGrouping,label:o.sliceGrouping.groupName},delete o.sliceGrouping.groupName),o.sliceGrouping.groupSliceSymbol!==void 0&&(o.sliceGrouping={...o.sliceGrouping,fillSymbol:o.sliceGrouping.groupSliceSymbol},delete o.sliceGrouping.groupSliceSymbol)),o})),e}function fe(r,e){let i=[];return r.forEach(t=>{if(!D(t)){let o=O(t,!1);if(o.fieldToSort!==void 0){let s=T({queryObject:e,fieldToMatch:o.fieldToSort});s!==void 0&&i.push(o.orderBy===void 0?s:`${s} ${o.orderBy}`)}}}),i}async function He(r){let{configToUpdate:e,layer:i,abortSignal:t}=r,o={...e},s=i;if(!s){let a=le(e)?e.iLayer:e.dataSource?.layer;a&&(s=await C(a,t))}if(s){let a=F(o.series),d=S(o.series),b=o.series&&o.series.length>0&&o.series[0].x.trim()===""||d===u.GaugeSeries&&!ae(e)||a===p.PieFromFields||a===p.BarAndLineFromFields||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMultiFields||a===p.BoxPlotMultiFieldsAndSplitBy,je=d===u.ScatterSeries||d===u.HeatSeries||a===p.BarAndLineNoAggregation||a===p.BarAndLineSplitByNoAggregation||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMonoFieldAndCategory||a===p.BoxPlotMonoFieldAndCategoryAndSplitBy||a===p.PieNoAggregation;if(o.series=e.series.map(l=>{let c={...l};if(b||(c.x=T({queryObject:s,fieldToMatch:l.x})),"y"in c&&je){let m=c.y;if(Array.isArray(m)){let f=E({fieldsList:m,queryObject:s});f!==void 0&&"y"in c&&(c.y=f)}else"y"in c&&typeof m=="string"&&(c.y=T({queryObject:s,fieldToMatch:m}))}if(l.query!==void 0){let{where:m,groupByFieldsForStatistics:f,outStatistics:g}=l.query;if(f=E({fieldsList:f,queryObject:s}),g!==void 0&&(g=g.map(P=>{let k={...P};return k.onStatisticField=T({queryObject:s,fieldToMatch:P.onStatisticField}),k})),m!==void 0&&a===p.BarAndLineSplitBy){let P=ee(l.query?.where),k=te({where:l.query?.where,normalize:!1,escape:!1});m=`${T({queryObject:s,fieldToMatch:P})}=${k}`}c.query!==void 0&&(m!==void 0&&(c.query.where=m),f!==void 0&&(c.query.groupByFieldsForStatistics=f),g!==void 0&&(c.query.outStatistics=g))}return c}),o.series[0]?.query!==void 0){let l=o.series[0].query,{orderByFields:c}=l;c!==void 0&&c.length>0&&(c=fe(c,s),c.length>0&&l.orderByFields!==void 0&&(o.series[0].query.orderByFields=c))}if(o.orderOptions?.orderByFields!==void 0){let{orderByFields:l}=o.orderOptions;l!==void 0&&l.length>0&&(l=fe(l,s),l.length>0&&(o.orderOptions.orderByFields=l))}if(d===u.GaugeSeries&&e.axes?.[0]!==void 0){let{minimumFromField:l,maximumFromField:c}=e.axes[0];if(l!==void 0){let m=typeof l=="string"?l:l.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=l;typeof e.axes[0].minimumFromField=="string"?g=f:typeof l=="object"&&(g={...l,onStatisticField:f}),e.axes[0].minimumFromField=g}if(c!==void 0){let m=typeof c=="string"?c:c.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=c;typeof e.axes[0].maximumFromField=="string"?g=f:typeof c=="object"&&(g={...c,onStatisticField:f}),e.axes[0].maximumFromField=g}}}return o}function $e(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.BoxPlotSeries){let i=e.series[0];i&&(i.showOutliers!==void 0&&(r.showOutliers===void 0&&(e.showOutliers=i.showOutliers),delete i.showOutliers),i.standardizeValues!==void 0&&(r.standardizeValues===void 0&&(e.standardizeValues=i.standardizeValues),delete i.standardizeValues),i.showMean!==void 0&&(r.showMean===void 0&&(e.showMean=i.showMean),delete i.showMean))}return e}function Ye(r){let e={orderType:y.Category,orderBy:v.Ascending},i=r.query?.orderByFields?.[0];if(i!==void 0){let{outStatisticFieldName:t,statisticType:o}=r.query?.outStatistics?.[0]??{},s=O(i);t!==void 0&&s.fieldToSort===t&&o!==void 0&&(o===x.Average||o==="mean"?e.orderType=y.Mean:o===x.ContinuousPercentile&&(e.orderType=y.Median)),e.orderBy=s.orderBy??v.Ascending}return e}function Qe(r){let e=!1,i=Array.from(new Set(r.series.map(t=>t.type)));return i.length===2&&i.includes(u.BoxPlotSeries)&&i.includes(u.LineSeries)&&(e=r.series.find(t=>t.type===u.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function Ke(r){let e=n(r);if(!h(e.series)&&S(r.series)===u.BoxPlotSeries){if(e.orderOptions?.data===void 0){let i=Ye(r.series[0]);i.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:i.orderType,orderBy:i.orderBy})}if(e.series=r.series.map(i=>{let t=i;return h(t.x?.trim())&&(t.x=z),delete t.query?.orderByFields,t}),Qe(e)){e.showMean=!0;let i=e.series.find(t=>t.type===u.BoxPlotSeries);e.series.forEach(t=>{t.type===u.LineSeries&&(delete t.query?.groupByFieldsForStatistics,delete t.query?.outStatistics,delete t.query?.orderByFields,i&&(t.y=i.y))})}e.series=r.series.map(i=>{let t=i;return delete t.query?.outStatistics,t})}return e}function Ze(r){let e=n(r);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=void 0),e}function Je(r){let e=n(r);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function Xe(r){let e=n(r),i=new Set,t=e.id??"";return i.add(t),e.series.forEach(o=>{let s=o.id;i.has(s)&&(s=`${s}_${Date.now()}`,o.id=s),i.add(s)}),e}async function et(r){let{configToUpdate:e,layer:i,chartContainer:t,abortSignal:o}=r,s=n(e);if(s=We(s),s=ze(s),s=await He({configToUpdate:s,layer:i,abortSignal:o}),U(s)){let a=$e(s);s=Ke(a)}return s=Ze(s),s=Xe(s),I(s)&&!Q(i)&&(s=Ne({configToUpdate:s,chartContainer:t,layer:i})),s}function tt(r){let e=n(r);return e?.orderOptions?.orderByFields!==void 0&&F(r.series)===p.PieFromFields&&(e.orderOptions.orderByFields=r?.orderOptions?.orderByFields?.map(i=>{let t=n(i);return i!==void 0&&i.includes("arcgis_charts_pie_category_from_fields_name")&&(t=i.replace("arcgis_charts_pie_category_from_fields_name",L)),t})),e}function rt(r){let e=n(r);if(!h(r.series)&&e.axes?.[0]!==void 0&&S(r.series)===u.GaugeSeries&&r.axes?.[0]!==void 0){let i=r.axes[0];i.ticks!==void 0&&Object.hasOwn(i.ticks,"spacing")&&delete i.ticks.spacing,e.axes[0]=i}return e}function it(r){let e=n(r),{extent:i}=e.series[0]?.query??{};return i!==void 0&&(e.dataFilters={...e.dataFilters,geometry:i},e.series.forEach(t=>{"query"in t&&"extent"in t.query&&delete t.query.extent})),e}function Ee(r){let e=n(r);return h(r.series)||(ce(r)&&r.rotated===void 0&&(e.rotated=r.series[0].rotated??$()),e.series.forEach(i=>{i.rotated!==void 0&&delete i.rotated})),e}function ot(r){let e=n(r),i=r.dataSource;return"dataSource"in e&&!h(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}function st(r){let e=n(r);if("dataSource"in r){let i=r.dataSource;if(i.filter!==void 0&&i.filter.trim()!==""){let t=ne([i.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:t},delete e.dataSource.filter}}return e}function nt(r){return r!=="originalValue"}function _e(r){let e;switch(r){case"mean":e=y.Mean;break;case"median":e=y.Median;break;case"category":e=y.Category;break}return e}function at(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.PieSeries){let i=e.series[0];if(i){if(i.sortLabelsBy==="originalValue")e.sortLabelsBy=i.sortLabelsBy;else if(i.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let t=G(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t)}i.sortLabelsBy&&delete i.sortLabelsBy}}return e}function ct(r){let e=n(r);return h(r.series)||(de(r)&&r.stackedType===void 0&&(e.stackedType=r.series[0].stackedType??Y()),e.series.forEach(i=>{"stackedType"in i&&delete i.stackedType})),e}function dt(r){let e=n(r),i=r.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof i=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:i==="DESC"?v.Descending:v.Ascending}),e}function lt(r){let e=n(r);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===N.Match),e.series.forEach(i=>{i.colorType!==void 0&&delete i.colorType}),e}function ut(r){let e=n(r);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let i=r.sortDataBy,t=_e(i?.sortType);t&&t!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:t,orderBy:i?.sortOrder??v.Ascending})}delete e.sortDataBy}return e}function pt(r){let e=n(r);return e.axes?.forEach(i=>{i!==void 0&&i.scrollbarVisible!==void 0&&i.scrollbar?.visible===void 0&&(i.scrollbar={...i.scrollbar,visible:i.scrollbarVisible},delete i.scrollbarVisible)}),e}function yt(r){let e=n(r),i=e.series[0]?.query?.orderByFields;if(i!==void 0&&i.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let t=!0;if(i.length===1){let{fieldToSort:o,orderBy:s}=O(i[0]),a;o===r.series[0].x||o===L?a=y.Category:"y"in r.series[0]&&o===r.series[0].y&&(a=y.YValue),a&&a!==y.MultiAxes&&(t=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:a,orderBy:s?.toUpperCase()==="DESC"?v.Descending:v.Ascending}))}t&&(e.orderOptions.orderByFields=i)}return e.series.forEach(t=>{delete t.query?.orderByFields}),e}function G(r){let e,i=r.orderOptions?.orderByFields?.[0];if(r.series?.length>0){let t=S(r.series),o=F(r.series);if(t!==u.PieSeries&&o!==p.BarAndLineFromFields&&(i=i??r.series[0].x),i&&!D(i)){let{fieldToSort:s,orderBy:a}=O(i),d;s===r.series[0].x||s===L?d=y.Category:"y"in r.series[0]&&s===r.series[0].y&&(d=y.YValue),d&&d!==y.MultiAxes&&(e={orderType:d,orderBy:a?.toUpperCase()==="DESC"?v.Descending:v.Ascending})}}return e}function mt(r){let e=n(r),i=r,t=r,o=r,s=r,a=r;if(e){if(e.orderOptions?.series===void 0&&i.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:nt(t.sortLabelsBy??i.sortOptions.sortSeriesBy.sortType),orderBy:i.sortOptions.sortSeriesBy.sortOrder??v.Ascending}),t.sortLabelsBy==="originalValue"||s.orderOptions?.data?.preferDataLabel===!1||a.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(S(e.series)===u.BoxPlotSeries){if(t.sortLabelsBy||o.sortOptions?.sortDataBy!==void 0){let d=_e(o.sortOptions?.sortDataBy?.sortType);d&&d!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:d,orderBy:o.sortOptions?.sortDataBy?.sortOrder??v.Ascending})}}else{let d=G(e);d!==void 0&&(e.orderOptions??={},e.orderOptions.data=d)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function ft(r){let e=n(r);if(e){let i=F(e.series);if((i===p.BarAndLineFromFields||i===p.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let t=G(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t,delete e.orderOptions.orderByFields)}}return e}function gt(r){let e=n(r);return e.horizontalAxisLabelsBehavior===_.NONE&&(e.horizontalAxisLabelsBehavior=w.Hide),e.verticalAxisLabelsBehavior===_.NONE&&(e.verticalAxisLabelsBehavior=w.Hide),e}function vt(r){let e=n(r),i=e.series[0];if(i&&!i.temporalBinning&&re(e.series[0])&&("timeIntervalSize"in i||"timeIntervalUnits"in i||"timeAggregationType"in i||"trimIncompleteTimeInterval"in i||"nullPolicy"in i)){if(i.temporalBinning={},i.timeIntervalSize!==void 0&&(i.temporalBinning.size=i.timeIntervalSize,delete i.timeIntervalSize),i.timeIntervalUnits){let t;switch(i.timeIntervalUnits){case"esriTimeUnitsSeconds":t=B.Second;break;case"esriTimeUnitsMinutes":t=B.Minute;break;case"esriTimeUnitsHours":t=B.Hour;break;case"esriTimeUnitsDays":t=B.Day;break;case"esriTimeUnitsWeeks":t=B.Week;break;case"esriTimeUnitsMonths":t=B.Month;break;case"esriTimeUnitsYears":t=B.Year;break}t!==void 0&&(i.temporalBinning.unit=t),delete i.timeIntervalUnits}i.timeAggregationType&&(i.temporalBinning.timeAggregationType=i.timeAggregationType,delete i.timeAggregationType),i.trimIncompleteTimeInterval!==void 0&&(i.temporalBinning.trimIncompleteTimeInterval=i.trimIncompleteTimeInterval,delete i.trimIncompleteTimeInterval),i.nullPolicy&&(i.temporalBinning.nullPolicy=i.nullPolicy,delete i.nullPolicy)}return e}function ht(r){let e=n(r);return e.series.forEach(i=>{i.query?.outStatistics?.forEach(t=>{t.statisticType==="percentile_cont"?t.statisticType=x.ContinuousPercentile:t.statisticType==="percentile_disc"&&(t.statisticType=x.DiscretePercentile)})}),e}function St(r){let e=n(r);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Bt(r){let e=n(r),i=e.series[0];return i?.temporalBinning&&delete i.temporalBinning?.type,e}function Tt(r){let e=n(r),i=e.series[0],t=r;return t.series[0]?.xTemporalBinning&&(i.xTemporalBinning={...t.series[0]?.xTemporalBinning,type:u.CalendarDateParts}),t.series[0]?.yTemporalBinning&&(i.yTemporalBinning={...t.series[0]?.yTemporalBinning,type:u.CalendarDateParts}),e}function xt(r){let e=n(r);return e=tt(e),e}function ge(r){let e=n(r);return e=rt(e),e}function ve(r){let e=n(r);return e=it(e),e}function he(r){let e=n(r);return e=Ee(e),e}function Se(r){let e=n(r);return e=ot(e),e}function Be(r){let e=n(r);return e=st(e),e}function Te(r){let e=n(r);return e=at(e),e}function xe(r){let e=n(r);return e=dt(e),e}function be(r){let e=n(r);return e=lt(e),e}function Oe(r){return pt(r)}function Fe(r){let e=n(r);return U(e)&&(e=ut(e)),e}function Ce(r){return ct(r)}function Pe(r){return mt(r)}function ke(r){return Je(r)}function Ae(r){return ft(r)}function Le(r){return gt(r)}function we(r){return vt(r)}function Me(r){return ht(r)}function De(r){let e=n(r);return e=Ee(e),St(e)}function Ie(r){let e=n(r);return e=Bt(e),e}function Ue(r){let e=n(r);return e=Tt(e),e}function qe(r){let e=n(r);return e=Ve(e),e}function bt(r){let{versionsToConvert:e,configToUpdate:i}=r,t=n(i);return e.length>0&&t!==void 0&&(t=yt(t),e.includes(q)||e.includes(J)?(t=xt(t),t=ge(t),t=ve(t),t=he(t),t=Se(t),t=Be(t),t=Te(t),t=xe(t),t=be(t),t=Oe(t),t=Fe(t),t=Ce(t),t=Pe(t),t=ke(t),t=Ae(t),t=Le(t),t=we(t),t=Me(t),t=De(t),t=Ie(t),t=Ue(t),t=qe(t)):e.forEach(o=>{if(t!==void 0)switch(o){case"1.0.1":t=ge(t);break;case"3.4.0":t=ve(t);break;case"4.0.0":t=he(t);break;case"4.0.1":t=Se(t);break;case"6.4.0":t=Be(t);break;case"7.5.1":t=Te(t);break;case"8.0.0":t=xe(t);break;case"9.2.0":t=be(t);break;case"9.7.0":t=Oe(t);break;case"10.0.0":t=Fe(t);break;case"11.0.0":t=Ce(t);break;case"14.0.1":t=Pe(t);break;case"16.0.0":t=ke(t);break;case"16.1.0":t=Ae(t);break;case"18.1.3":t=Le(t);break;case"20.1.0":t=we(t);break;case"21.0.0":t=Me(t);break;case"23.2.0":t=De(t);break;case"24.7.0":t=Ie(t);break;case"24.8.0":t=Ue(t);break;case"25.0.0":t=qe(t);break}}),t.version=V),t}async function Ge(r,e,i,t){let o=r;if(r){let s=Z(e);await s?.load({signal:t}),o=await et({configToUpdate:r,layer:s,chartContainer:i,abortSignal:t});let a=r.version??q,{versionStatus:d,versions:b}=X(a);(d===M.Older||d===M.Unrecognized)&&(o=bt({versionsToConvert:b,configToUpdate:o}))}return o}var Re=class extends EventTarget{constructor(...e){super(),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.pendingUpdates=0,this.dataStore={},this.asyncUpdatesPromise=new Promise(i=>{this.resolveSetup=i}),this.emitConfigUpdate=i=>{this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:i}}))},this.guardSetterFromAsyncOverwrite=async i=>{i(),this.asyncConfigUpdateInProgress&&(await this.asyncUpdatesPromise,i())}}get chartType(){return this._chartType}isSameChartAs(e){let i=e?.layer;return i!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===i.id}async update(){await this.asyncUpdatesPromise}async loadConfigFromLayer(e){let{layer:i,iLayer:t,config:o,commonStrings:s}=e;this.commonStrings=s??await j(A(document.documentElement).t9nLocale,R("./assets/common/t9n"),"messages.");let a=i;if(!a&&t?a=await C(t):!a&&o?.iLayer&&(a=await C(o.iLayer)),a){await se(a);let d=ie(a,!0),b=oe(a).idField;this.layerInfo={layer:a,layerFieldsInfo:d,objectIdField:b}}this._config=o?await Ge(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=H().title),t&&(this._config.iLayer=t)}startAsyncUpdate(){this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!0,this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e})),this.pendingUpdates+=1}finishAsyncUpdate(){this.pendingUpdates-=1,this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!1,this.resolveSetup?.())}};function pr(r,e,i){let t=i.set,o=i.value;return t&&(i.set=function(s){this.guardSetterFromAsyncOverwrite(()=>{t.call(this,s),this.emitConfigUpdate(e)})}),o&&(i.value=function(...s){this.guardSetterFromAsyncOverwrite(()=>{o.apply(this,s),this.emitConfigUpdate(e)})}),i}return{a:Ge,b:Re,c:pr}},"layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","core/promiseUtils","request","geometry/Point","applications/Components/imageryUtils","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","core/sql","geometry/Extent",a,b)
|