@arcgis/charts-components 4.34.0-next.137 → 4.34.0-next.139
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/{MS4XYPSC.js → 24727M32.js} +2 -2
- package/dist/cdn/{QYNI75XR.js → 24AOABIJ.js} +2 -2
- package/dist/cdn/{SB4GITO4.js → 275IWBUL.js} +2 -2
- package/dist/cdn/{PSZTKTH5.js → 2BBHT77V.js} +2 -2
- package/dist/cdn/{2TG2EZ7L.js → 2DFVXYZZ.js} +2 -2
- package/dist/cdn/{NI233ASE.js → 2HWLESX7.js} +1 -1
- package/dist/cdn/2TQVJANU.js +4 -0
- package/dist/cdn/{LCGCWNCV.js → 2Z5QZCFJ.js} +2 -2
- package/dist/cdn/{K5EUTDCW.js → 35M3UULX.js} +2 -2
- package/dist/cdn/{QYM3POIV.js → 3EZ5I5OP.js} +2 -2
- package/dist/cdn/3F4JEJEA.js +4 -0
- package/dist/cdn/{UOCK6NRQ.js → 3NNFVET2.js} +2 -2
- package/dist/cdn/{WBHCQ35R.js → 3R42OOYX.js} +2 -2
- package/dist/cdn/{U5O5DU3K.js → 3SIQACVN.js} +2 -2
- package/dist/cdn/{COL4BR4N.js → 3YWAYBOP.js} +2 -2
- package/dist/cdn/{UWTLLLGA.js → 4AV33IV4.js} +2 -2
- package/dist/cdn/{TY4AACIT.js → 4CMMHISB.js} +2 -2
- package/dist/cdn/{EUKYYHZX.js → 4EPKGG7E.js} +2 -2
- package/dist/cdn/{RPXGXESV.js → 4FUBFI63.js} +2 -2
- package/dist/cdn/{NLCHH3PA.js → 4KAYRNBJ.js} +2 -2
- package/dist/cdn/{ZVMXU72W.js → 4Q6VLLNL.js} +2 -2
- package/dist/cdn/{WKW2EY33.js → 4QIMBRET.js} +2 -2
- package/dist/cdn/{RTVALPS6.js → 4RW7YIQW.js} +2 -2
- package/dist/cdn/53EV3MZT.js +4 -0
- package/dist/cdn/{GVEJNJ6W.js → 55F4PKIU.js} +2 -2
- package/dist/cdn/{T7RKBO5R.js → 5HTKVNVU.js} +2 -2
- package/dist/cdn/{C5T6VUHW.js → 5LPFIGE5.js} +2 -2
- package/dist/cdn/{DBD7TXON.js → 62YLRCZ3.js} +2 -2
- package/dist/cdn/{4IFQQ22Q.js → 6HKTEN26.js} +2 -2
- package/dist/cdn/6KWDDRP3.js +4 -0
- package/dist/cdn/{NWVFHYJ4.js → 6MLVADSL.js} +2 -2
- package/dist/cdn/{J2GDDFON.js → 7JKH3A3L.js} +1 -1
- package/dist/cdn/{MPNJZTIJ.js → 7M6O44MJ.js} +2 -2
- package/dist/cdn/{HF7QUOV2.js → 7SP4VWKX.js} +2 -2
- package/dist/cdn/{SLDAVWPQ.js → 7VT3JILN.js} +2 -2
- package/dist/cdn/{OO43JSJR.js → 7YIGASYS.js} +2 -2
- package/dist/cdn/{TD53ETQ2.js → A43LOI3S.js} +2 -2
- package/dist/cdn/{CYA55SRQ.js → AASZ2NNB.js} +2 -2
- package/dist/cdn/{RQ6P2WIA.js → AGR66VGN.js} +1 -1
- package/dist/cdn/{RHDN6GIU.js → AIOJRVUP.js} +2 -2
- package/dist/cdn/{W67II2AQ.js → AIPWFENR.js} +2 -2
- package/dist/cdn/{PQVQD6CJ.js → AO7SKWWW.js} +2 -2
- package/dist/cdn/{3O2NKJMU.js → ARSERCLF.js} +2 -2
- package/dist/cdn/{5HKR2XQN.js → ATJ7PUAG.js} +2 -2
- package/dist/cdn/{YONNDJAA.js → AUOLPYT4.js} +2 -2
- package/dist/cdn/{HXA66IKK.js → AVMOQPLZ.js} +2 -2
- package/dist/cdn/{OIJHYUNL.js → B7AQO23Y.js} +2 -2
- package/dist/cdn/BKBDVEMA.js +4 -0
- package/dist/cdn/{E6WS2PNI.js → BNUYM65P.js} +2 -2
- package/dist/cdn/{TQCCKX5J.js → C5OMHPCP.js} +2 -2
- package/dist/cdn/{ZRGIW4IF.js → CKG455T3.js} +2 -2
- package/dist/cdn/{VSCLREOC.js → CL5PS2ZQ.js} +2 -2
- package/dist/cdn/{3EKBIFG2.js → CLHKW2R4.js} +2 -2
- package/dist/cdn/{R7FHXTD7.js → CO2FLJ3Y.js} +2 -2
- package/dist/cdn/{Z4IW4CZO.js → CQNULM3X.js} +2 -2
- package/dist/cdn/{6NHNZUMU.js → CVNAPOVD.js} +2 -2
- package/dist/cdn/{QSXKJ4UY.js → CYIPOL2X.js} +2 -2
- package/dist/cdn/CZJXXGG4.js +4 -0
- package/dist/cdn/{W3VDAH5Z.js → D3Y5X2RZ.js} +2 -2
- package/dist/cdn/{Z3ILN5GE.js → D5QIJWED.js} +2 -2
- package/dist/cdn/{OBOJISEC.js → DKVFP5PU.js} +2 -2
- package/dist/cdn/{56ZMW6ZT.js → DRXGR5N6.js} +2 -2
- package/dist/cdn/{5GFYJO4N.js → E33WMWB7.js} +2 -2
- package/dist/cdn/{6LYUL32L.js → EEUKLBDN.js} +2 -2
- package/dist/cdn/{6NGUSG6Z.js → ESFDWI2T.js} +2 -2
- package/dist/cdn/{BPBJ6HHB.js → ESOFQM6P.js} +2 -2
- package/dist/cdn/{2IUXXBNE.js → F55XH6IZ.js} +2 -2
- package/dist/cdn/{XLS2ZIO5.js → F7JABPNG.js} +2 -2
- package/dist/cdn/{I7JRXIX6.js → FC5NKDA3.js} +2 -2
- package/dist/cdn/{NWANFRQZ.js → FCORKVAA.js} +1 -1
- package/dist/cdn/{3UHMFXPL.js → FHCA75QA.js} +2 -2
- package/dist/cdn/{2GM3JRET.js → G45PGUQN.js} +2 -2
- package/dist/cdn/{OE57TPY4.js → GJ3JLCUX.js} +2 -2
- package/dist/cdn/{T2KMQVDW.js → GRZUDJ23.js} +2 -2
- package/dist/cdn/{7EPB7NUQ.js → GS6HMLEU.js} +2 -2
- package/dist/cdn/{YWFIAFI5.js → GSG2VUXI.js} +2 -2
- package/dist/cdn/{WO5AZSNE.js → GWQI56LV.js} +2 -2
- package/dist/cdn/{RYW5RMKR.js → H5D47BKX.js} +2 -2
- package/dist/cdn/{H4ABW5RH.js → HDLBXV7M.js} +2 -2
- package/dist/cdn/{WFJWDHVE.js → HFTUMX5C.js} +2 -2
- package/dist/cdn/HGYMKMCV.js +4 -0
- package/dist/cdn/{WX6MHA4C.js → HMY5IMMX.js} +2 -2
- package/dist/cdn/{NS7LIL7G.js → HMZXUUOL.js} +2 -2
- package/dist/cdn/HNKRKWC3.js +4 -0
- package/dist/cdn/{LTNPY5NM.js → HROD7HBX.js} +2 -2
- package/dist/cdn/{Z3GHWLXO.js → HSE5TX37.js} +2 -2
- package/dist/cdn/{EIEO534N.js → HTIIP76D.js} +2 -2
- package/dist/cdn/{TCOATTAO.js → HYQ6RQRD.js} +2 -2
- package/dist/cdn/{LPF7LCEV.js → I5XKWJQ3.js} +2 -2
- package/dist/cdn/{SSTWJRPL.js → IESXX2ZN.js} +2 -2
- package/dist/cdn/{4GEYKPPZ.js → IIEO3CUM.js} +2 -2
- package/dist/cdn/{ZKTHH2D2.js → IQNSNAPF.js} +2 -2
- package/dist/cdn/J6O2Q7JQ.js +4 -0
- package/dist/cdn/{64E35VZF.js → JI4SCCKL.js} +2 -2
- package/dist/cdn/{BDE437TR.js → JJBMFIJR.js} +2 -2
- package/dist/cdn/{AZUJU64Z.js → JNEUGJJP.js} +2 -2
- package/dist/cdn/{GWU5GX73.js → KKQ5YMWB.js} +2 -2
- package/dist/cdn/KOSZILX5.js +4 -0
- package/dist/cdn/{UUXEUOIF.js → KWN5Q4E5.js} +2 -2
- package/dist/cdn/{MSYZQUPK.js → KYFB56YJ.js} +2 -2
- package/dist/cdn/{57WE222S.js → KZ7R2GNT.js} +2 -2
- package/dist/cdn/{AV4VWOKJ.js → L2IRDB6T.js} +2 -2
- package/dist/cdn/{IUKN5SK3.js → L6SJIJ4U.js} +2 -2
- package/dist/cdn/{GEDBEOAB.js → LEYFIB5I.js} +2 -2
- package/dist/cdn/{WS7UNU26.js → LIN2JSC3.js} +2 -2
- package/dist/cdn/{QUOXLAGO.js → LO7TZSPN.js} +1 -1
- package/dist/cdn/{L3IDJWBE.js → LYHLT7KP.js} +2 -2
- package/dist/cdn/M46AKLTX.js +4 -0
- package/dist/cdn/{MWP5HKFH.js → MSP6ENWY.js} +2 -2
- package/dist/cdn/{NQWOGRFC.js → MV3JUDYG.js} +2 -2
- package/dist/cdn/MYXBBS5N.js +6 -0
- package/dist/cdn/{C4SSBI7M.js → N4ALCYUU.js} +2 -2
- package/dist/cdn/{HB26JJPI.js → N4FD6GFX.js} +2 -2
- package/dist/cdn/{CKFADYI3.js → NBK3IGYG.js} +2 -2
- package/dist/cdn/{KB5VDJXS.js → NDPTI4DK.js} +2 -2
- package/dist/cdn/{QSU6IIFW.js → NHGBQNGR.js} +2 -2
- package/dist/cdn/{ZUP7EB7A.js → NTA7RIMK.js} +1 -1
- package/dist/cdn/{GEWDU66X.js → NTOPMFTD.js} +1 -1
- package/dist/cdn/{OAPUV56D.js → NVNTOMN3.js} +2 -2
- package/dist/cdn/{OHM2J36S.js → NXQ4SDPQ.js} +2 -2
- package/dist/cdn/{LCLE2R6O.js → OKCKTHTO.js} +2 -2
- package/dist/cdn/{MIMRBYW2.js → OMLAJ4TO.js} +2 -2
- package/dist/cdn/{NWAAWZP2.js → OMSVBDXG.js} +2 -2
- package/dist/cdn/{FP4XIAZA.js → ORRKIZWH.js} +2 -2
- package/dist/cdn/{35XS4G7U.js → OZKXMCJA.js} +2 -2
- package/dist/cdn/{RUVABNP7.js → OZYGBOFG.js} +2 -2
- package/dist/cdn/{XEU72CT2.js → PAG6XWJA.js} +2 -2
- package/dist/cdn/{N46QLWTZ.js → PRJSC3RV.js} +2 -2
- package/dist/cdn/{ORC6TL5X.js → PTM7SNSE.js} +2 -2
- package/dist/cdn/QW5PY2X3.js +4 -0
- package/dist/cdn/{UMRBGDBL.js → QWI2A6ZL.js} +2 -2
- package/dist/cdn/{ZF4MRQ56.js → QX27BY34.js} +2 -2
- package/dist/cdn/{OUSZB3WZ.js → RD6AKW5W.js} +2 -2
- package/dist/cdn/{5O7OVSZS.js → RL3EEN44.js} +2 -2
- package/dist/cdn/{QR6Z5QK5.js → S4HKPNOQ.js} +2 -2
- package/dist/cdn/{A4NWMBYH.js → S52ZYYIM.js} +2 -2
- package/dist/cdn/{QVELZ5IY.js → S5ZFBXHP.js} +2 -2
- package/dist/cdn/{ZGKEHJ64.js → SGY3Y3T2.js} +2 -2
- package/dist/cdn/{UVMNH23P.js → SIC5Q5IQ.js} +2 -2
- package/dist/cdn/{RM2JGKYW.js → SKCZJNTG.js} +2 -2
- package/dist/cdn/{3IJG35MT.js → SPI4CDXV.js} +2 -2
- package/dist/cdn/{PIYYGBED.js → SRPLJB2L.js} +2 -2
- package/dist/cdn/{LUZ7IF6Q.js → SX77MTL5.js} +2 -2
- package/dist/cdn/T265JJO4.js +4 -0
- package/dist/cdn/{EX4JU7GR.js → T37XLGRC.js} +2 -2
- package/dist/cdn/{MN5BI7ZH.js → TD557D5H.js} +2 -2
- package/dist/cdn/TIAZ2E3Q.js +4 -0
- package/dist/cdn/{IZXEJUQ7.js → TVN64B5W.js} +2 -2
- package/dist/cdn/{PD4XSNEZ.js → TX33Y4PI.js} +2 -2
- package/dist/cdn/{7QI2TCHJ.js → U3LR4SEM.js} +2 -2
- package/dist/cdn/{RO5T5LR7.js → U64R6C4H.js} +2 -2
- package/dist/cdn/{Z6LDW5WG.js → UESGPZ3P.js} +2 -2
- package/dist/cdn/{3YVN7ZEL.js → UFZXQNXX.js} +2 -2
- package/dist/cdn/{2MV6WAUW.js → UHPYWYXH.js} +2 -2
- package/dist/cdn/{4HXNMDS6.js → UMVCJSEL.js} +2 -2
- package/dist/cdn/{PXQRFZG3.js → UPJNAB23.js} +2 -2
- package/dist/cdn/{2N7KPE3X.js → UPK33ANF.js} +2 -2
- package/dist/cdn/{3SZRGL74.js → VAJCC7MO.js} +2 -2
- package/dist/cdn/VGT6OV7C.js +4 -0
- package/dist/cdn/VMKHC6RQ.js +4 -0
- package/dist/cdn/{DN7HLW7R.js → W3KQRTPP.js} +2 -2
- package/dist/cdn/{23A35FGI.js → W6IWMH2N.js} +2 -2
- package/dist/cdn/{AD6UTPKO.js → WZNK5TL7.js} +2 -2
- package/dist/cdn/{IJG2RPEH.js → X244JP3P.js} +2 -2
- package/dist/cdn/{7NKXAXRK.js → XGMCJCID.js} +2 -2
- package/dist/cdn/{FF64YKHU.js → XJQ3SQ2F.js} +2 -2
- package/dist/cdn/{KWGVVBCK.js → XLFDFDKQ.js} +2 -2
- package/dist/cdn/{CTXK6J6A.js → XSODGSTK.js} +2 -2
- package/dist/cdn/{NL5HWOSB.js → XV7SKWTW.js} +10 -10
- package/dist/cdn/{GRCBC7FY.js → XYKFL3V6.js} +2 -2
- package/dist/cdn/{IJM7TMTX.js → Y23T3DSI.js} +2 -2
- package/dist/cdn/{5DAAXFKZ.js → Y2OO5FYQ.js} +2 -2
- package/dist/cdn/{7TD3DUVR.js → Y4VP5EK2.js} +2 -2
- package/dist/cdn/{JNJRBTCS.js → YBO24WWY.js} +2 -2
- package/dist/cdn/{UOBY6NVK.js → YSAMGVP7.js} +2 -2
- package/dist/cdn/{F67CMYND.js → Z2AMZVEI.js} +2 -2
- package/dist/cdn/{QGCTZUSE.js → Z5AQSMCG.js} +2 -2
- package/dist/cdn/{QCPXEY3Y.js → ZHPMZD6C.js} +2 -2
- package/dist/cdn/{QLWFJ26E.js → ZZILHPFL.js} +20 -20
- package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chart-rendering/common/color-match/renderer-color-match/index.d.ts +1 -0
- package/dist/chart-rendering/common/data/utils/misc/index.d.ts +2 -0
- package/dist/chart-rendering/common/defaults/interfaces.d.ts +8 -1
- package/dist/chart-rendering/common/interfaces.d.ts +1 -0
- package/dist/chart-rendering/next/chart-library-elements/line-fill-marker/interfaces.d.ts +1 -0
- package/dist/chart-rendering/stable/chart-library-elements/line-fill-marker/interfaces.d.ts +1 -0
- package/dist/chunks/action-bar-utils.js +12 -11
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +5 -5
- package/dist/chunks/bar-chart-series.js +3 -3
- package/dist/chunks/baseline-stacking.js +23 -23
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/bg_BG2.js +1 -1
- package/dist/chunks/box-plot-data.js +34 -34
- package/dist/chunks/box-plot-model.js +23 -23
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +122 -77
- package/dist/chunks/combo-bar-line-chart-model.js +10 -10
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/data.js +435 -400
- package/dist/chunks/default.js +4 -4
- package/dist/chunks/events.js +18 -0
- package/dist/chunks/gauge-model.js +14 -14
- package/dist/chunks/histogram-data.js +2 -2
- package/dist/chunks/histogram-model.js +2 -2
- package/dist/chunks/index.js +69 -6163
- package/dist/chunks/index2.js +16 -38
- package/dist/chunks/index3.js +6124 -35
- package/dist/chunks/interfaces.js +90 -16212
- package/dist/chunks/interfaces2.js +16120 -90
- package/dist/chunks/interfaces3.js +491 -0
- package/dist/chunks/interfaces4.js +18 -0
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-with-baseline-stacking.js +1 -1
- package/dist/chunks/model-with-data-labels.js +11 -11
- package/dist/chunks/model-with-multi-axes.js +50 -50
- package/dist/chunks/model-with-rotation.js +4 -4
- package/dist/chunks/pie-chart-data.js +29 -28
- package/dist/chunks/pie-chart-model.js +12 -12
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +2 -2
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +8 -8
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/scatterplot-model.js +5 -5
- package/dist/chunks/serial-chart-model.js +109 -84
- package/dist/chunks/series-types.js +16 -21
- package/dist/chunks/series.js +2 -2
- package/dist/chunks/sk_SK.js +1 -1
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/type-guards.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/web-component-utils.js +304 -770
- package/dist/components/arcgis-chart/customElement.js +3234 -3188
- package/dist/components/arcgis-charts-action-bar/customElement.js +43 -42
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +76 -71
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +68 -44
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.d.ts +7 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +17 -18
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-category-format/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +79 -75
- package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-format/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-general/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-guide/customElement.js +21 -22
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +18 -17
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-line-style/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-number-format/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +4 -3
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +10 -10
- 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 +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +16 -16
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +2 -2
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +90 -542
- package/dist/json-schema/index.d.ts +55 -25
- package/dist/loader.js +2 -2
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +11 -1
- package/dist/model/serial-chart-model/utils/serial-chart-series.d.ts +16 -1
- package/dist/model.js +1 -1
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/web-chart.d.ts +28 -1
- package/dist/utils/chart-config/converter/index.d.ts +3 -3
- package/package.json +3 -3
- package/dist/cdn/3XSLT5D7.js +0 -4
- package/dist/cdn/7K6HWWFH.js +0 -4
- package/dist/cdn/7L4GCMKU.js +0 -4
- package/dist/cdn/ADGH33XA.js +0 -4
- package/dist/cdn/EKKUUTLJ.js +0 -4
- package/dist/cdn/H4EKWUGZ.js +0 -4
- package/dist/cdn/H57THMT5.js +0 -6
- package/dist/cdn/KUH3QJNM.js +0 -4
- package/dist/cdn/P73CI4UI.js +0 -4
- package/dist/cdn/RP7TFTPB.js +0 -4
- package/dist/cdn/WB5LCPZU.js +0 -4
- package/dist/cdn/WXUZD5V2.js +0 -4
- package/dist/cdn/XWI545BD.js +0 -4
- package/dist/cdn/YRIZNPRL.js +0 -4
- package/dist/cdn/Z75YNMRA.js +0 -4
- package/dist/chunks/index4.js +0 -68
- package/dist/chunks/index5.js +0 -95
|
@@ -335,6 +335,46 @@ export namespace WebChartJSONSchemas {
|
|
|
335
335
|
enum: string[];
|
|
336
336
|
title: string;
|
|
337
337
|
};
|
|
338
|
+
WebChartNullCategory: {
|
|
339
|
+
type: string;
|
|
340
|
+
properties: {
|
|
341
|
+
text: {
|
|
342
|
+
type: string;
|
|
343
|
+
description: string;
|
|
344
|
+
};
|
|
345
|
+
symbol: {
|
|
346
|
+
$ref: string;
|
|
347
|
+
description: string;
|
|
348
|
+
default: string;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
title: string;
|
|
352
|
+
};
|
|
353
|
+
ISimpleFillSymbol: {
|
|
354
|
+
type: string;
|
|
355
|
+
properties: {
|
|
356
|
+
type: {
|
|
357
|
+
type: string;
|
|
358
|
+
const: string;
|
|
359
|
+
};
|
|
360
|
+
style: {
|
|
361
|
+
$ref: string;
|
|
362
|
+
};
|
|
363
|
+
color: {
|
|
364
|
+
$ref: string;
|
|
365
|
+
};
|
|
366
|
+
outline: {
|
|
367
|
+
$ref: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
required: string[];
|
|
371
|
+
title: string;
|
|
372
|
+
};
|
|
373
|
+
SimpleFillSymbolStyle: {
|
|
374
|
+
type: string;
|
|
375
|
+
enum: string[];
|
|
376
|
+
title: string;
|
|
377
|
+
};
|
|
338
378
|
WebChartPieChartLegend: {
|
|
339
379
|
type: string;
|
|
340
380
|
properties: {
|
|
@@ -675,31 +715,6 @@ export namespace WebChartJSONSchemas {
|
|
|
675
715
|
description: string;
|
|
676
716
|
title: string;
|
|
677
717
|
};
|
|
678
|
-
ISimpleFillSymbol: {
|
|
679
|
-
type: string;
|
|
680
|
-
properties: {
|
|
681
|
-
type: {
|
|
682
|
-
type: string;
|
|
683
|
-
const: string;
|
|
684
|
-
};
|
|
685
|
-
style: {
|
|
686
|
-
$ref: string;
|
|
687
|
-
};
|
|
688
|
-
color: {
|
|
689
|
-
$ref: string;
|
|
690
|
-
};
|
|
691
|
-
outline: {
|
|
692
|
-
$ref: string;
|
|
693
|
-
};
|
|
694
|
-
};
|
|
695
|
-
required: string[];
|
|
696
|
-
title: string;
|
|
697
|
-
};
|
|
698
|
-
SimpleFillSymbolStyle: {
|
|
699
|
-
type: string;
|
|
700
|
-
enum: string[];
|
|
701
|
-
title: string;
|
|
702
|
-
};
|
|
703
718
|
WebChartAxis: {
|
|
704
719
|
type: string;
|
|
705
720
|
properties: {
|
|
@@ -2020,6 +2035,10 @@ export namespace WebChartJSONSchemas {
|
|
|
2020
2035
|
description: string;
|
|
2021
2036
|
default: boolean;
|
|
2022
2037
|
};
|
|
2038
|
+
nullCategory: {
|
|
2039
|
+
$ref: string;
|
|
2040
|
+
description: string;
|
|
2041
|
+
};
|
|
2023
2042
|
};
|
|
2024
2043
|
required: string[];
|
|
2025
2044
|
description: string;
|
|
@@ -2817,6 +2836,10 @@ export namespace WebChartJSONSchemas {
|
|
|
2817
2836
|
description: string;
|
|
2818
2837
|
default: boolean;
|
|
2819
2838
|
};
|
|
2839
|
+
nullCategory: {
|
|
2840
|
+
$ref: string;
|
|
2841
|
+
description: string;
|
|
2842
|
+
};
|
|
2820
2843
|
};
|
|
2821
2844
|
required: string[];
|
|
2822
2845
|
description: string;
|
|
@@ -3172,6 +3195,10 @@ export namespace WebChartJSONSchemas {
|
|
|
3172
3195
|
description: string;
|
|
3173
3196
|
default: boolean;
|
|
3174
3197
|
};
|
|
3198
|
+
nullCategory: {
|
|
3199
|
+
$ref: string;
|
|
3200
|
+
description: string;
|
|
3201
|
+
};
|
|
3175
3202
|
};
|
|
3176
3203
|
required: string[];
|
|
3177
3204
|
description: string;
|
|
@@ -5797,6 +5824,9 @@ export namespace WebChartJSONSchemas {
|
|
|
5797
5824
|
supportsResize: {
|
|
5798
5825
|
type: string;
|
|
5799
5826
|
};
|
|
5827
|
+
supportsTypeWildcard: {
|
|
5828
|
+
type: string;
|
|
5829
|
+
};
|
|
5800
5830
|
};
|
|
5801
5831
|
required: string[];
|
|
5802
5832
|
title: string;
|
package/dist/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as t } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
5
|
-
v4.34.0-next.
|
|
5
|
+
v4.34.0-next.139 */
|
|
6
6
|
const o = t(e, {
|
|
7
7
|
"arcgis-chart": [() => import("./components/arcgis-chart/customElement.js"), "actionMode,allowUsingObjectIdStat,autoDisposeChart,autoInverseDataLabelTextColor,chartIndex,chartLimits:,chartWillRender:,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,ignoreSmoothRenderingLimit,ignoreViewExtent,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,model:,nullAsValid,placeholder,queueChartCreation,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showUIMessages,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,timeZone,tooltipFormatter:,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:;clearSelection,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection"],
|
|
8
8
|
"arcgis-charts-action-bar": [() => import("./components/arcgis-charts-action-bar/customElement.js"), "actionBarSelectionMode,chartElement:,chartType,clearSelectionState,clearSelectionTitle,clearSelectionToggle,disableCSVExportForChartTypes:,editChartState,editChartTitle,editChartToggle,expanded,exportActionState,exportAsCSVState,exportAsCSVTitle,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,forceDisableActions,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartState,rotateChartTitle,rotateChartToggle,selectionState,selectionTitle,selectionToggle,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomState,zoomTitle,zoomToggle"],
|
|
@@ -12,7 +12,7 @@ const o = t(e, {
|
|
|
12
12
|
"arcgis-charts-config-bar-chart-data": [() => import("./components/arcgis-charts-config-bar-chart-data/customElement.js"), "layerFieldsInfo:,messageOverrides:,model:,open"],
|
|
13
13
|
"arcgis-charts-config-bar-chart-popover": [() => import("./components/arcgis-charts-config-bar-chart-popover/customElement.js"), "contentKind,headingTitle,isCustomSortDisabled,isNoAggregationDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],
|
|
14
14
|
"arcgis-charts-config-bar-chart-series": [() => import("./components/arcgis-charts-config-bar-chart-series/customElement.js"), "activeColorMatch,messageOverrides:,model:,popoverPlacement"],
|
|
15
|
-
"arcgis-charts-config-bar-chart-series-popover": [() => import("./components/arcgis-charts-config-bar-chart-series-popover/customElement.js"), "messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],
|
|
15
|
+
"arcgis-charts-config-bar-chart-series-popover": [() => import("./components/arcgis-charts-config-bar-chart-series-popover/customElement.js"), "messageOverrides:,nullCategory:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],
|
|
16
16
|
"arcgis-charts-config-box-plot": [() => import("./components/arcgis-charts-config-box-plot/customElement.js"), "calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,seriesColor:,usePopupTemplateFieldsInfo"],
|
|
17
17
|
"arcgis-charts-config-box-plot-data": [() => import("./components/arcgis-charts-config-box-plot-data/customElement.js"), "layerFieldsInfo:,messageOverrides:,model:"],
|
|
18
18
|
"arcgis-charts-config-box-plot-popover": [() => import("./components/arcgis-charts-config-box-plot-popover/customElement.js"), "contentKind,headingTitle,isCustomSortDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SerialChartTypes } from '../../utils';
|
|
2
2
|
import { ChartModel } from '../chart-model/chart-model';
|
|
3
|
-
import { Color, WebChartStatisticType, WebChartStackedKinds } from '../../spec';
|
|
3
|
+
import { Color, WebChartStatisticType, WebChartStackedKinds, WebChartNullCategory } from '../../spec';
|
|
4
4
|
import { SerialChartConfig } from '../interfaces/chart-interfaces';
|
|
5
5
|
import { SerialChartDataSortingKinds } from '../interfaces/common';
|
|
6
6
|
import { ModelWithColorMatch, ModelWithDataLabels, ModelWithLegend, ModelWithTooltips, ModelWithRotation, ModelWithTemporalBinning, ModelWithXGuides, ModelWithYGuides, ModelWithMultiAxes } from '../mixins';
|
|
@@ -189,6 +189,16 @@ export declare abstract class SerialChartModel extends ChartModel {
|
|
|
189
189
|
* @param {number} toIndex The index to move the custom sort value to.
|
|
190
190
|
*/
|
|
191
191
|
moveCustomSortValuesInOrderByList(fromIndex: number, toIndex: number): void;
|
|
192
|
+
/**
|
|
193
|
+
* Gets the null category configuration of the bar chart.
|
|
194
|
+
* @returns {WebChartNullCategory | undefined}
|
|
195
|
+
*/
|
|
196
|
+
getNullCategory(): WebChartNullCategory | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Sets the null category configuration of the bar chart.
|
|
199
|
+
* @param {WebChartNullCategory} nullCategory [Optional] The null category configuration to set.
|
|
200
|
+
*/
|
|
201
|
+
setNullCategory(nullCategory?: WebChartNullCategory): void;
|
|
192
202
|
protected abstract generateDefaultConfig(): Promise<Omit<typeof this._config, "iLayer">>;
|
|
193
203
|
/**
|
|
194
204
|
* Resets the config to the default config
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color, WebChartStackedKinds } from '../../../spec';
|
|
1
|
+
import { Color, WebChartNullCategory, WebChartStackedKinds } from '../../../spec';
|
|
2
2
|
import { ChartConfig } from '../../../utils';
|
|
3
3
|
import { SerialChartConfig } from '../../interfaces/chart-interfaces';
|
|
4
4
|
import { LayerInfo } from '../../interfaces/common';
|
|
@@ -82,3 +82,18 @@ export declare const setStackedType: (props: {
|
|
|
82
82
|
config: SerialChartConfig;
|
|
83
83
|
layerInfo: LayerInfo | undefined;
|
|
84
84
|
}) => Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Gets the `nullCategory` for the chart series.
|
|
87
|
+
*
|
|
88
|
+
* @param {SerialChartConfig} config The chart configuration.
|
|
89
|
+
* @returns {WebChartNullCategory | undefined}
|
|
90
|
+
* The nullCategory containing text and color, or undefined if not found.
|
|
91
|
+
*/
|
|
92
|
+
export declare const getNullCategory: (config: SerialChartConfig) => WebChartNullCategory | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Sets the `nullCategory` for all bar and line chart series in the given chart config.
|
|
95
|
+
*
|
|
96
|
+
* @param {SerialChartConfig} config The chart configuration.
|
|
97
|
+
* @param {WebChartNullCategory} nullCategory The nullCategory object containing text and color.
|
|
98
|
+
*/
|
|
99
|
+
export declare const setNullCategory: (config: SerialChartConfig, nullCategory?: WebChartNullCategory) => void;
|
package/dist/model.js
CHANGED
|
@@ -4,7 +4,7 @@ import { s as r, t as s, u as n } from "./chunks/type-guards.js";
|
|
|
4
4
|
import { a as P, e as S, i as k, g as x, b as W, r as v, h as G, l as K, m as D, p as F, j as H, k as O, q as R, n as A, o as E, d as X, f as Y, c as $ } from "./chunks/type-guards.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.139 */
|
|
8
8
|
async function c(a) {
|
|
9
9
|
const o = "config" in a ? r(a.config) : a.chartType;
|
|
10
10
|
let t;
|
package/dist/spec/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './web-chart.js';
|
|
2
|
-
export * from './data-source.js';
|
|
2
|
+
export type * from './data-source.js';
|
|
3
3
|
export * from './chart-object-literals.js';
|
|
4
4
|
export * from './rest-js-object-literals.js';
|
|
5
5
|
export * from './config-defaults.js';
|
|
6
6
|
export * from './events.js';
|
|
7
|
-
export * from './rest-js-types.js';
|
|
7
|
+
export type * from './rest-js-types.js';
|
package/dist/spec/web-chart.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Color, IDrawingInfo, IEnvelope, IExtent, IFeatureLayer, IPoint, IPolygo
|
|
|
6
6
|
/**
|
|
7
7
|
* Version of the current specification.
|
|
8
8
|
*/
|
|
9
|
-
export declare const WebChartCurrentVersion = "24.
|
|
9
|
+
export declare const WebChartCurrentVersion = "24.3.0";
|
|
10
10
|
/**
|
|
11
11
|
* Stores information regarding a numeric conversion
|
|
12
12
|
*/
|
|
@@ -153,6 +153,23 @@ export interface WebChartLegend {
|
|
|
153
153
|
*/
|
|
154
154
|
roundMarkers?: boolean;
|
|
155
155
|
}
|
|
156
|
+
export interface WebChartNullCategory {
|
|
157
|
+
/**
|
|
158
|
+
* Specifies the text to use for the null category.
|
|
159
|
+
* If none is provided, the default `null` text will be used.
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
text?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Contains styling info on how the overlay should be rendered
|
|
165
|
+
* If not provided a default style is applied.
|
|
166
|
+
*
|
|
167
|
+
* @default [150, 150, 150, 255] - symbol.color
|
|
168
|
+
* @default [150, 150, 150, 255] - symbol.outline.color
|
|
169
|
+
* @default 1 - symbol.outline.width
|
|
170
|
+
*/
|
|
171
|
+
symbol?: ISimpleFillSymbol;
|
|
172
|
+
}
|
|
156
173
|
/**
|
|
157
174
|
* Specific legend for the Pie chart
|
|
158
175
|
*/
|
|
@@ -816,6 +833,11 @@ export interface WebChartBarChartSeries extends WebChartSeries, WebChartTemporal
|
|
|
816
833
|
* @default false
|
|
817
834
|
*/
|
|
818
835
|
hideOversizedSideBySideLabels?: boolean;
|
|
836
|
+
/**
|
|
837
|
+
* Specifies how to display the category with null value
|
|
838
|
+
* Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color.
|
|
839
|
+
*/
|
|
840
|
+
nullCategory?: WebChartNullCategory;
|
|
819
841
|
}
|
|
820
842
|
/**
|
|
821
843
|
* Histogram Interfaces
|
|
@@ -1245,6 +1267,11 @@ export interface WebChartLineChartSeries<SeriesType extends "lineSeries" | "rada
|
|
|
1245
1267
|
* @default true
|
|
1246
1268
|
*/
|
|
1247
1269
|
connectLines?: boolean;
|
|
1270
|
+
/**
|
|
1271
|
+
* Specifies how to display the category with null value
|
|
1272
|
+
* Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color.
|
|
1273
|
+
*/
|
|
1274
|
+
nullCategory?: WebChartNullCategory;
|
|
1248
1275
|
}
|
|
1249
1276
|
/**
|
|
1250
1277
|
* Box Plot Interfaces
|
|
@@ -388,12 +388,12 @@ declare function convertTo21x1x0(configToUpdate: WebChart): WebChart;
|
|
|
388
388
|
*/
|
|
389
389
|
declare function convertTo23x3x0(configToUpdate: WebChart): WebChart;
|
|
390
390
|
/**
|
|
391
|
-
* Conversion for v24.
|
|
391
|
+
* Conversion for v24.3.0:
|
|
392
392
|
* - Converts the temporal binning properties from the old pattern to the new pattern
|
|
393
393
|
* @param configToUpdate The chart's config to update
|
|
394
394
|
* @returns The updated chart config
|
|
395
395
|
*/
|
|
396
|
-
declare function
|
|
396
|
+
declare function convertTo24x3x0(configToUpdate: WebChart): WebChart;
|
|
397
397
|
/**
|
|
398
398
|
* Apply the needed function calls depending on the current chart version.
|
|
399
399
|
* Note: Additional switch cases and convertToxxx functions are to be added to this function accordingly.
|
|
@@ -476,7 +476,7 @@ export declare const chartConfigConverterPrivateFunctions: {
|
|
|
476
476
|
convertTo20x2x0: typeof convertTo20x2x0;
|
|
477
477
|
convertTo21x1x0: typeof convertTo21x1x0;
|
|
478
478
|
convertTo23x3x0: typeof convertTo23x3x0;
|
|
479
|
-
|
|
479
|
+
convertTo24x3x0: typeof convertTo24x3x0;
|
|
480
480
|
convertTemporalBinningProps2: typeof convertTemporalBinningProps2;
|
|
481
481
|
applyConversions: typeof applyConversions;
|
|
482
482
|
convertDataSourceToILayer: typeof convertDataSourceToILayer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/charts-components",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.139",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@amcharts/amcharts4": "^4.10.31",
|
|
30
30
|
"@amcharts/amcharts5": "^5.13.5",
|
|
31
|
-
"@arcgis/lumina": "4.34.0-next.
|
|
32
|
-
"@arcgis/toolkit": "4.34.0-next.
|
|
31
|
+
"@arcgis/lumina": "4.34.0-next.139",
|
|
32
|
+
"@arcgis/toolkit": "4.34.0-next.139",
|
|
33
33
|
"ajv": "6.12.6",
|
|
34
34
|
"d3-array": "^3.2.1",
|
|
35
35
|
"d3-shape": "^3.2.0",
|
package/dist/cdn/3XSLT5D7.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import{b as x}from"./MS4XYPSC.js";import b from"./H4EKWUGZ.js";import"./AD6UTPKO.js";import{a as v}from"./T7RKBO5R.js";import a from"./NL5HWOSB.js";import"./NWANFRQZ.js";import"./J2GDDFON.js";import"./QUOXLAGO.js";import"./FP4XIAZA.js";import{A as i,F as f,g as p,h as m,l as o,w as h,x as d,y as g}from"./NI233ASE.js";import"./ZUP7EB7A.js";export default $arcgis.t(([,,,,,,,{v:C},{h:u}])=>{var s={jsAppFlyout:"js-app-flyout",panelChildrenContainer:"panel-children-container"},b=p`.hide{display:none}.am5-modal{width:100%;height:100%;position:absolute;z-index:100000;top:0;left:0}.am5-modal-curtain{top:0;left:0;width:100%;height:100%;position:absolute;background:#fff!important;z-index:100}.am5-modal-wrapper{top:0;left:0;width:100%;height:100%;position:absolute;display:flex;align-items:center;justify-content:center;white-space:nowrap;background:#ffffff80;z-index:101}.am5-modal-content{display:inline-block;padding:1.2em;vertical-align:middle;text-align:start;white-space:normal;background:#fff;border-radius:4px;box-shadow:#00000073 0 0 36px;color:#000}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.arcgis-charts-modal{box-shadow:none!important}.arcgis-charts-modal-header{background-color:#0000000d;font-weight:700;padding:4px;align-content:center}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,a=class extends g{constructor(){super(...arguments),this._messages=v(),this.popoverElement=h(),this.arcgisChartsConfigPopoverClose=o(),this.arcgisChartsConfigSeriesPopoverColorChange=o(),this.arcgisChartsConfigSeriesPopoverNameChange=o()}static{this.properties={messageOverrides:0,referenceElement:2,selectedName:3,selectedColor:2,selectedSeriesIndex:11,placement:3,open:7}}static{this.styles=b}async reposition(){await this.popoverElement.value?.reposition()}updated(){x(this.popoverElement.value,this.open),this.hasUpdated||setTimeout(()=>{this.popoverElement.value?.reposition()},u.PopoverTimer)}seriesNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSeriesIndex:this.selectedSeriesIndex??-1})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[r,n,l]=t,c=C*255;this.selectedColor=[r,n,l,c],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[r,n,l,c]})}render(){let e=this.selectedColor;return m`<div class=${i({[s.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${d(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${i(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @colorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};f("arcgis-charts-config-bar-chart-series-popover",a);return a},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",a,b)
|
package/dist/cdn/7K6HWWFH.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import{a as I}from"./MWP5HKFH.js";import{a as k}from"./F67CMYND.js";import{a as g}from"./MS4XYPSC.js";import e from"./H4EKWUGZ.js";import"./AD6UTPKO.js";import{a as $}from"./T7RKBO5R.js";import b from"./NL5HWOSB.js";import"./NWANFRQZ.js";import"./J2GDDFON.js";import"./QUOXLAGO.js";import{b as h,f as a}from"./FP4XIAZA.js";import{A as l,B as c,D as d,F as u,g as S,h as o,l as n,y as f}from"./NI233ASE.js";import"./ZUP7EB7A.js";export default $arcgis.t(([,,,,,,,{Fa:b},{y:y}])=>{var N={stackedType:"stacked-type"},r={topSection:"top-section",sectionLabel:"section-label",list:"list",disabledInfo:"disabled-info",disabledStackingOption:"disabled-stacking-option"},E=S`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.disabled-info{margin:auto 1rem;pointer-events:auto}.disabled-info:active{margin:auto 1rem;pointer-events:none}.disabled-stacking-option{pointer-events:none;opacity:var(--calcite-opacity-disabled)}`,m=class extends f{constructor(){super(...arguments),this._messages=$(),this.open=!1,this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let t=e.detail?.name;this.model.setSeriesName(t,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:t}=e.detail;this.model.setColorMatch(!1),t!==void 0&&this.model.setSeriesColor(t,this.selectedSeriesIndex??-1)}},this.seriesPopoverClose=e=>{let{selectedSeriesIndex:t}=e.detail;this.selectedSeriesIndex===t&&(this.seriesPopover=g(this.seriesPopover),this.selectedSeriesIndex=void 0)},this.onModelConfigChange=()=>{this.requestUpdate()},this.seriesOrderResetCounter=0,this.activeColorMatch=!1,this.popoverPlacement="leading",this.arcgisChartsConfigDataChangeError=n(),this.arcgisChartsConfigPopoverOpenChange=n()}static{this.properties={seriesOrderResetCounter:16,selectedSeriesIndex:16,messageOverrides:0,model:0,activeColorMatch:5,popoverPlacement:1}}static{this.styles=E}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}removeSeriesPopover(){this.seriesPopover!==null&&this.seriesPopover!==void 0&&(this.seriesPopover.open=!1,this.seriesPopover=g(this.seriesPopover))}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&(this.seriesPopover=d(o`<arcgis-charts-config-bar-chart-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .placement=${this.popoverPlacement} .open=${this.open} .selectedSeriesIndex=${this.selectedSeriesIndex} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-bar-chart-series-popover>`),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover))}buildSeriesListItems(){let e=this.model.getSeriesLength()??0,t=Array.from({length:e},(i,s)=>s);return I(t,i=>this.model.getSeriesId(i),i=>{let s=this.model.getSeriesId(i),p=this.model.getSeriesColor(i),x=this.model.getSeriesName(i),P=this.model.getChartSubType()===b.BarAndLineFromFields?this._messages.series:s,v="#CCCCCC",C="minus-square";if((e>1||!this.activeColorMatch)&&p!==void 0){C="square-f";let[T,L,M,O]=[...p];v=`rgba(${T},${L},${M},${O/255})`}return o`<calcite-list-item .label=${x??s??""} .description=${P} .value=${s} .selected=${this.selectedSeriesIndex===i} @click=${this.openSeriesPopOver}><calcite-icon .icon=${C} style=${c({color:v})} slot=content-end></calcite-icon></calcite-list-item>`})}buildSeriesList(){return k(this.seriesOrderResetCounter,o`<calcite-list label class=${l(r.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}buildMultipleBarTypeList(){let e=this.shouldDisableStacking();return e&&this.model.getStackedType()!==a.Side&&this.model.setStackedType(a.Side),o`<calcite-list label id=${N.stackedType} class=${l(r.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleBarSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${a.Side} .selected=${this.model.getStackedType()===void 0||this.model.getStackedType()===a.Side}><calcite-icon scale=l icon=graph-bar-side-by-side slot=content-start></calcite-icon></calcite-list-item><calcite-list-item class=${l(e?r.disabledStackingOption:"")} .label=${this._messages.stacked} .value=${a.Stacked} .selected=${this.model.getStackedType()===a.Stacked}><calcite-icon scale=l icon=graph-bar-stacked slot=content-start></calcite-icon>${e&&o`<calcite-icon class=${l(r.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>`||""}</calcite-list-item><calcite-list-item class=${l(e?r.disabledStackingOption:"")} .label=${this._messages.stacked100} .value=${a.Stacked100} .selected=${this.model.getStackedType()===a.Stacked100}><calcite-icon scale=l icon=graph-bar-100-stacked slot=content-start></calcite-icon>${e&&o`<calcite-icon class=${l(r.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>`||""}</calcite-list-item></calcite-list>`}async resetSeriesOriginal(){this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1}async onMultipleBarSelect(e){if(!this.shouldDisableStacking()){let t=e.target;await this.model.setStackedType(t.value??t.parentElement.value??"")}}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:i}=e.detail;this.model.moveSeries(i,t),this.seriesOrderResetCounter+=1}}openSeriesPopOver(e){e.stopImmediatePropagation(),this.removeSeriesPopover();let t=e.target,i=t.localName==="calcite-list-item"?t:t.parentNode,s=this.model.getSeriesIndex(i.value);this.open=this.selectedSeriesIndex!==s,this.selectedSeriesIndex=this.selectedSeriesIndex!==s?s:void 0}createTooltip(e){let t=e.target,i=(this.model.getAggregationType()===h.NoAggregation?this._messages.noAggStackingDisabled:this._messages.singleStackingDisabled)??"";this.tooltip=d(o`<calcite-tooltip style=${c({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){y(this.tooltip)}shouldDisableStacking(){return(this.model.getSeriesLength()??0)<=1||this.model.getAggregationType()===h.NoAggregation}render(){return o`<div class=${`${r.sectionLabel} ${r.topSection}`}>${this._messages.displayMultiSeries}</div>${this.buildMultipleBarTypeList()}<div class=${l(r.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}`}};u("arcgis-charts-config-bar-chart-series",m);return m},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",b,e)
|
package/dist/cdn/7L4GCMKU.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import{b as B}from"./BPBJ6HHB.js";import{a as O}from"./MWP5HKFH.js";import{a as I}from"./F67CMYND.js";import{a as Y}from"./MS4XYPSC.js";import l from"./H57THMT5.js";import{c as g}from"./P73CI4UI.js";import{a as K}from"./GEWDU66X.js";import{a as $,b as q}from"./RQ6P2WIA.js";import j from"./H4EKWUGZ.js";import{d as n}from"./AD6UTPKO.js";import{a as X}from"./T7RKBO5R.js";import i from"./OO43JSJR.js";import e from"./RP7TFTPB.js";import d from"./U5O5DU3K.js";import b from"./WB5LCPZU.js";import"./XWI545BD.js";import a from"./NL5HWOSB.js";import{j as v}from"./NWANFRQZ.js";import"./J2GDDFON.js";import{a as Z}from"./TD53ETQ2.js";import{e as G,f as T,k as L,l as H,q as P}from"./AZUJU64Z.js";import"./QUOXLAGO.js";import{a as o,k as U}from"./FP4XIAZA.js";import{A as h,B as F,D as M,F as V,g as k,h as c,l as f,w as E,x as N,y as A}from"./NI233ASE.js";import"./ZUP7EB7A.js";export default $arcgis.t(([,,,,,,,{substitute:J},{Bb:_,Ra:x,cb:b,wc:S},,,,,{y:j},{a:R,e:y,f:z}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function Q(m,e){let a=new Set,t=e;return m?.forEach((s,i)=>{let r=s.getChartId();(a.has(r)||r===void 0||r==="")&&(s.setChartId(`Chart_${Date.now()}_${i}`),e===r&&(t=s.getChartId())),a.add(r)}),t}function ee(m,e,a){return m?.filter(t=>x(a,t.getConfig())&&t.getLayer()?.id===e)??[]}function te(m){let{modelList:e,layerList:a,activeLayerId:t,disableEditing:s}=m,i=new Map;return e?.forEach(r=>{let l=r.getLayer();l&&i.set(l.id,l)}),s||a.forEach(r=>i.set(r.id,r)),Array.from(i.values()).filter(r=>!t||r.id===t)}function ae(m,e){m.forEach(a=>{e.forEach(t=>{a?.id===t.getLayer()?.id&&W(a,t)})})}function W(m,e){let a=m;if(a){let t=[...a?.charts??[]],s=t?.findIndex(r=>r.id===e.getChartId()),i=!1;s!==void 0&&s>-1?(i=!v(t[s],e.getConfig()),t[s]=e.getConfig()):a&&!S(e.getConfig())&&(i=!0,t.push(e.getConfig())),i&&(a.charts=t)}}function se(m,e){let a=m;if(a){let t=[...a.charts??[]],s=t.findIndex(i=>i.id===e);s>-1&&(t.splice(s,1),a.charts=t)}}function ie(m,e){let a=m;if(a){let t=[...a.charts??[]];t=b({arrayA:t,arrayB:e.map(s=>s.getConfig()),getKey:s=>s.id??s.title?.content.text??""}),a.charts=t}}var re=k`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,w=class extends A{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=E(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries],this._messages=X(),this.chartDataProcessComplete=e=>{let a=e,{chartData:t,model:s}=a.detail,i=this.getModel(this.selectedChartId);if(s?.isSameChartAs(i))switch(i?.getChartType()){case o.HistogramSeries:this.chartData=t,s&&(s.dataStore.chartData=t);break;case o.PieSeries:{this.chartData=t,s&&(s.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:l,r2:C}=r,p=C;Number.isFinite(C)||(p=void 0),this.r2=p,s&&(s.dataStore.r2=p),this.calculatedDataMinMaxBounds=this.getDataExtent(l),s&&(s.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=t;(T(i)||G(i)&&i.getBinTemporalData())&&(l?.size!==void 0&&i.getTemporalBinningSize()!==l?.size&&i.setTemporalBinningSize(l?.size),l?.unit!==void 0&&i.getTemporalBinningUnit()!==l?.unit&&l?.unit!==U.Quarter&&i.setTemporalBinningUnit(l?.unit)),this.calculatedDataMinMaxBounds=this.getDataExtent(r),s&&(s.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}}},this.chartAxesMinMaxChange=e=>{let a=e,{bounds:t,model:s}=a.detail,i=this.getModel(this.selectedChartId),r=s?.isSameChartAs(i),l=i?.getChartType();if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,s&&(s.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let a=e,{data:t,model:s}=a.detail,i=this.getModel(this.selectedChartId);if(s?.isSameChartAs(i))switch(i?.getChartType()){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,s&&(s.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,s&&(s.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let a=e,{propName:t,value:s,model:i}=a.detail,r=this.modelList.find(l=>i?.isSameChartAs(l));if(r)switch(t){case"rotation":typeof s=="boolean"&&H(r)&&r.setRotatedState(s);break;case"legendPosition":typeof s=="string"&&P(r)&&r.setLegendPosition(s);break;case"legendVisibility":typeof s=="boolean"&&P(r)&&r.setLegendVisibility(s);break}},this.chartLegendItemVisibilityChange=async e=>{let a=e,{legendItemVisibility:t,model:s}=a.detail,i=this.modelList.find(r=>s?.isSameChartAs(r));i?.setSeriesVisibility(t),L(i)&&((i.getMinBound(1)===null||Number.isNaN(i.getMinBound(1)))&&i.setMinBound(null,1),(i.getMaxBound(1)===null||Number.isNaN(i.getMaxBound(1)))&&i.setMaxBound(null,1),T(i)&&((i.getMinBound(0)===null||Number.isNaN(i.getMinBound(0)))&&i.setMinBound(null,0),(i.getMaxBound(0)===null||Number.isNaN(i.getMaxBound(0)))&&i.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:a,layerId:t}=e.target;a!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:a,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let a=e.target;W(a?.getLayer(),a)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.panelNumber=0,this.arcgisChartsConfigChartViewChartClose=f(),this.arcgisChartsConfigModelListChange=f(),this.arcgisChartsConfigNewChart=f(),this.arcgisChartsConfigPanelNumberChange=f(),this.arcgisChartsConfigSelectedChartChange=f(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:3,activeLayerId:3,disableEditing:7,syncChartsToLayers:7,timeZone:3,headerTitle:3,open:7,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[2,{hasChanged:y}],seriesColor:[2,{hasChanged:z}],popoverPlacement:3,usePopupTemplateFieldsInfo:5,panelNumber:11,filterBySelection:5}}static{this.styles=re}async setFocus(){this.chartsListFlowItem.value?.setFocus()}connectedCallback(){super.connectedCallback(),this.addChartEventListeners()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}async willUpdate(e){e.has("layerList")&&(this.hasUpdated||this.layerList?.length>0)&&await this.layerListChange(),e.has("modelList")&&(this.hasUpdated||this.modelList?.length>0)&&await this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&await this.selectedChartIdChange(this.selectedChartId),e.has("panelNumber")&&(this.hasUpdated||this.panelNumber!==0)&&this.panelNumberChange(this.panelNumber)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover(),this.removeChartEventListeners()}modelListReorderChangeListener(e){let{modelList:a}=e.detail;if(this.modelList=b({arrayA:this.modelList,arrayB:a,getKey:t=>t.getChartId()??t.getTitleText()??""}),this.syncChartsToLayers){let t=a.find(s=>s.getLayer()?.id!==void 0)?.getLayer()?.id;if(t){let s=this.layerList.find(i=>i.id.toString()===t);s&&ie(s,a)}}}async layerListChange(){let e=[],a=this.layerList.map(s=>s.id.toString()),t=[...this.modelList.filter(s=>a.includes(s.getLayer()?.id??""))];for(let s of this.layerList??[]){if(s.type==="sublayer"){let r=await s.createFeatureLayer();if(!r)continue;s=r}let i=s;for(let r of i.charts??[]){let l=await Z({layer:s,config:r});l!==void 0&&e.push(l)}}Q(e),e.forEach(s=>{t.find(i=>i.isSameChartAs(s))===void 0&&t.push(s)}),this.modelList=t}async modelListChange(e,a){this.selectedChartId=Q(e,this.selectedChartId),a?.forEach(s=>{s.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(s=>{s.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.getChartType()!==void 0?await B(t.getChartType()):"",this.syncChartsToLayers&&this.allowChartSyncing&&ae(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}async selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=n.Data;let a=this.getModel(e);this.setEventBasedPropsFromModelData(a),this.currentChartTypeText=a?.getChartType()!==void 0?await B(a.getChartType()):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:a})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){document.addEventListener(g.DataProcessComplete,this.chartDataProcessComplete),document.addEventListener(g.AxesMinMaxChange,this.chartAxesMinMaxChange),document.addEventListener(g.SeriesColorChange,this.chartSeriesColorChange),document.addEventListener(g.NoRenderPropChange,this.chartNoRenderPropChange),document.addEventListener(g.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}removeChartEventListeners(){document.removeEventListener(g.DataProcessComplete,this.chartDataProcessComplete),document.removeEventListener(g.AxesMinMaxChange,this.chartAxesMinMaxChange),document.removeEventListener(g.SeriesColorChange,this.chartSeriesColorChange),document.removeEventListener(g.NoRenderPropChange,this.chartNoRenderPropChange),document.removeEventListener(g.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let a=this.getModel(this.selectedChartId)?.getConfig(),t=[];if(a!==void 0&&e!==void 0){let s=_({chartConfig:a,chartData:e}),{minY:i,maxY:r,minX:l,maxX:C}=s;t=[{isXAxis:!0,minimum:l,maximum:C},{isXAxis:!1,minimum:i,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(a=>{let{isXAxis:t,maximum:s,minimum:i}=a,r=this.getModel(this.selectedChartId);if(r!==void 0&&L(r)&&this.selectedChartId!==void 0){let l=new K(r,t),C=q({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:l.getLogarithmic()}),p=$.chartAxesBoundDataMap;p[this.selectedChartId]===void 0&&(p[this.selectedChartId]={});let u=p[this.selectedChartId]?.[C],D={defaultMinBound:u?.defaultMinBound===u?.currMinBound?i:u?.defaultMinBound,currMinBound:i,defaultMaxBound:u?.defaultMaxBound===u?.currMaxBound?s:u?.defaultMaxBound,currMaxBound:s};!v(u,D)&&this.selectedChartId!==void 0&&p?.[this.selectedChartId]!==void 0&&(p[this.selectedChartId][C]=D)}})}getPlacement(){let e;if(this.popoverPlacement!==void 0)e=this.popoverPlacement;else{let a=this.modelList?.filter(t=>x(R,t.getConfig())).length;e=Number(a)<=2?"bottom":"top"}return e}onBackFlow(){this.panelNumber-=1}onAddChartClick(e){let{referenceElement:a,layerId:t}=e.detail;this.setupSelectChartTypePopover(a,t)}setupSelectChartTypePopover(e,a){let t=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=M(c`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${a} .popoverPlacement=${t} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(a=>a.getChartId()===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=Y(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!S(e.getConfig()))}onViewChartDelete(e){let{chartId:a}=e.detail;if(a!==void 0){let t=this.modelList.find(i=>i.getChartId()===a),s=this.layerList.find(i=>i.id===t?.getLayer()?.id);this.modelList=[...this.modelList.filter(i=>i.getChartId()!==a)],s&&this.syncChartsToLayers&&this.allowChartSyncing&&se(s,a)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.open=!1,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let a=e.target,t="";switch(a.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=M(c`<calcite-tooltip style=${F({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${a} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){j(this.tooltip)}renderViewCharts(){let e=te({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return O(e,a=>a.id,a=>c`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${ee(this.modelList,a.id.toString(),this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${a} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.open!==!1?c`<calcite-flow>${I("charts-list",c`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${N(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.renderTabs()}</calcite-flow>`:null}renderTabs(){let e=this.getModel(this.selectedChartId);return I("chart-edit",c`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??n.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?J(this._messages.pageFlowTitle,{chartName:e?.getTitleText()??this.currentChartTypeText,layerName:e?.getLayer()?.title??""}):""}>${e?.getChartType()!==void 0?c`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===n.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=n.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.getChartType()===o.BarSeries?c`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.getChartType()===o.LineSeries?c`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.getChartType()===o.BoxPlotSeries?c`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.getChartType()===o.PieSeries?c`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===n.Slices} @click=${()=>{this.selectedPanel=n.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.getChartType()!==o.PieSeries?c`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===n.Axes} @click=${()=>{this.selectedPanel=n.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.getChartType()!==o.PieSeries?c`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===n.Guides} @click=${()=>{this.selectedPanel=n.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===n.Format} @click=${()=>{this.selectedPanel=n.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===n.General} @click=${()=>{this.selectedPanel=n.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),a=e?.getLayer(),t=null;if(e!==void 0&&!this.disableEditing)switch(e?.getChartType()){case"barSeries":t=c`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case"lineSeries":t=c`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case"pieSeries":t=c`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .chartData=${this.chartData} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case"histogramSeries":t=c`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case"scatterSeries":t=c`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case"boxPlotSeries":t=c`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break}return t}};V("arcgis-charts-config-create-flow",w);return w},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl",a,b,d,e,i,j,l)
|
package/dist/cdn/ADGH33XA.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import f from"./RP7TFTPB.js";import e from"./56ZMW6ZT.js";import d from"./I7JRXIX6.js";import c from"./LUZ7IF6Q.js";import b from"./WB5LCPZU.js";import"./XWI545BD.js";import a from"./NL5HWOSB.js";import"./NWANFRQZ.js";import"./J2GDDFON.js";import"./QUOXLAGO.js";import{a as i}from"./FP4XIAZA.js";import"./NI233ASE.js";import"./ZUP7EB7A.js";export default $arcgis.t(([,,,,,,,,{Oa:a,ta:s},{pa:o},,{a:x,d:I,e:A},{a:H,b:L,c:W,d:k},{A:F,a:r,b:n,c:h,d:m,e:g,f:f,g:l,h:c,i:d,j:p,k:y,l:S,m:u,n:v,o:C,p:_,q:w,r:D,s:M,t:b,u:O,v:U,w:N,x:T,y:B,z:E}])=>{var e=class extends x{constructor(){super(...arguments),this._chartType=i.HistogramSeries}async setup(t){await this.loadConfigFromLayer(t),typeof this.resolveSetup=="function"&&this.resolveSetup()}getNumericField(){return n(this._config)}async setNumericField(t){await h(t,this._config,this.layerInfo),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("setNumericField")}getBinCount(){return f(this._config)}setBinCount(t){l(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("setBinCount")}getBinSymbol(){return c(this._config)}setBinSymbol(t){d(t,this._config),this.emitConfigUpdate("setBinSymbol")}getDataTransformationType(){return m(this._config)}setDataTransformationType(t){g(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("setDataTransformationType")}getMeanSymbol(){return S(this._config)}setMeanSymbol(t){u(t,this._config),this.emitConfigUpdate("setMeanSymbol")}getMedianSymbol(){return v(this._config)}setMedianSymbol(t){C(t,this._config),this.emitConfigUpdate("setMedianSymbol")}getNormalDistSymbol(){return p(this._config)}setNormalDistSymbol(t){y(t,this._config),this.emitConfigUpdate("setNormalDistSymbol")}getStandardDevSymbol(){return _(this._config)}setStandardDevSymbol(t){w(t,this._config),this.emitConfigUpdate("setStandardDevSymbol")}getShowNormalDistOverlay(){return D(this._config)}setShowNormalDistOverlay(t){M(t,this._config),this.emitConfigUpdate("setShowNormalDistOverlay")}getShowMeanOverlay(){return b(this._config)}setShowMeanOverlay(t){O(t,this._config),this.emitConfigUpdate("setShowMeanOverlay")}getShowMedianOverlay(){return U(this._config)}setShowMedianOverlay(t){N(t,this._config),this.emitConfigUpdate("setShowMedianOverlay")}getShowStandardDevOverlay(){return T(this._config)}setShowStandardDevOverlay(t){B(t,this._config),this.emitConfigUpdate("setShowStandardDevOverlay")}getSeriesOverlay(){return E(this._config)}setSeriesOverlays(t){F(t,this._config),this.emitConfigUpdate("setSeriesOverlay")}async generateChartTitle(){return await r(this._config,this.layerInfo)}generateXAxisTitle(){let t=this.getNumericField();return a(this.layerInfo.layerFieldsInfo,t)}async generateDefaultConfig(){return await s()}};o(e,[A,L,W,H,k,I]);return e},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl",a,b,c,d,e,f)
|
package/dist/cdn/EKKUUTLJ.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import g from"./3YVN7ZEL.js";import e from"./56ZMW6ZT.js";import d from"./I7JRXIX6.js";import b from"./WB5LCPZU.js";import{i as c,k as f}from"./XWI545BD.js";import a from"./NL5HWOSB.js";import{a as _,f as r}from"./FP4XIAZA.js";export default $arcgis.t(([,,,,,,,{Fa:g,N:I,Oa:A,P:T,V:x,Z:F,ba:v,mb:l,wc:w},{$:O,Aa:q,Ca:y,Da:Z,Ea:$,Fa:ee,Z:m,_:B,b:U,ba:E,c:h,ca:b,da:M,e:d,ea:N,fa:V,ga:D,ha:L,ia:k,ja:z,ka:X,la:j,na:P,oa:G,pa:H,ra:J,sa:o,ta:K,ua:Q,va:R,wa:n,xa:p,ya:W,za:Y},{a:u,c:ie,d:te,e:se},{a:ae,b:ne,c:oe,d:re},ge])=>{var C=class extends u{getTemporalBinningSize(){return E(this._config)}setTemporalBinningSize(e){D(e,this._config),this.emitConfigUpdate("setTemporalBinningSize")}getTemporalBinningUnit(){return b(this._config)}setTemporalBinningUnit(e){k(e,this._config),this.emitConfigUpdate("setTemporalBinningUnit")}getTimeAggregationType(){return M(this._config)}setTimeAggregationType(e){z(e,this._config),this.emitConfigUpdate("setTimeAggregationType")}getTrimIncompleteTimeInterval(){return N(this._config)}setTrimIncompleteTimeInterval(e){X(e,this._config),this.emitConfigUpdate("setTrimIncompleteTimeInterval")}getNullPolicy(){return V(this._config)}setNullPolicy(e){L(e,this._config),this.emitConfigUpdate("setNullPolicy")}resetTimeInterval(){j(this._config),this.emitConfigUpdate("resetTimeInterval")}},fe=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,he=async(s,e,i)=>{s&&i.axes!==void 0&&!i.axes?.[2]&&(i.axes[2]=(await F(_.BarSeries))[1]),i.series&&i.series.forEach((t,a)=>{a===e?t.assignToSecondValueAxis=s:a!==e&&t?.assignToSecondValueAxis!==!0&&(t.assignToSecondValueAxis=!1)}),i.axes?.[2]&&!i.series.some(t=>t.assignToSecondValueAxis)&&i.axes.splice(2,1)},de=(s,e)=>e.series?.[s]?.name,me=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},pe=(s,e)=>{let i=e.series?.[s],t;return f(i)?t=i.fillSymbol?.color:c(i)&&(t=i.lineSymbol?.color),t},ye=(s,e,i)=>{let t=i.series?.[e];t&&(f(t)?t.fillSymbol={...v(e),...t.fillSymbol,color:s}:c(t)&&(t.lineSymbol={...x(e),...t.lineSymbol,color:s}))},ue=s=>s.series.map(e=>e.id),Ce=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(a=>i.id===a)-s.findIndex(a=>t.id===a))},Se=s=>s.stackedType??r.Side,_e=async s=>{let{newStackedType:e,config:i,layerInfo:t}=s;if(i.stackedType=e,t!==void 0){let a=await h({config:i,layerInfo:t,numericFields:n(i),aggregationType:o(i)});U(i,1,a)}i.axes?.[1]&&(e===r.Stacked100?i.axes[1].valueFormat=T():i.axes[1].valueFormat=I()),d({config:i,value:null,axisIndex:1,isMax:!1}),d({config:i,value:null,axisIndex:1,isMax:!0})},S=class extends u{static{this.supportsCustomSort=!0}getXAxisField(){return O(this._config)}async setXAxisField(e){let i=e.trim()==="";!i&&this.layerInfo&&await W(e,this._config,this.layerInfo);let t=n(this._config),a=l(this._config.series)===g.BarAndLineFromFields,le=t.includes(this.layerInfo?.objectIdField??"");if(i||a&&le){await this.resetConfig();let ce=t.length===1&&t[0]===this.layerInfo?.objectIdField;this.layerInfo&&t.length>0&&!ce&&await p(t,this._config,this.layerInfo)}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("setXAxisField")}getAggregationType(){return o(this._config)}async setAggregationType(e){this.layerInfo&&(await K(e,this._config,this.layerInfo),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("setAggregationType"))}getAssignToSecondValueAxis(e){return fe(e,this._config)}async setAssignToSecondValueAxis(e,i){await he(e,i,this._config),this.emitConfigUpdate("setAssignToSecondValueAxis")}getSplitByField(){return Q(this._config)}async setSplitByField(e){this.layerInfo?.layerFieldsInfo&&P(this.layerInfo?.layerFieldsInfo,e)&&(await R(e,this._config,this.layerInfo),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("setSplitByField"))}getNumericFields(){return n(this._config)}async setNumericFields(e){if(typeof e=="string"&&(e=[e]),G(this.layerInfo?.layerFieldsInfo??[],e)&&this.layerInfo){await p(e,this._config,this.layerInfo);let i=n(this._config);l(this._config.series)===g.BarAndLineFromFields&&i.some(t=>t===this.layerInfo?.objectIdField)&&await this.resetConfig(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("setNumericFields")}}getSortOrder(){return Y(this._config)}setSortOrder(e,i){B(e,this._config,i),this.emitConfigUpdate("setSortOrder")}async getCustomSortValues(){return await Z(this._config,this.layerInfo)}getOrderByList(){return m(this._config)}setOrderByList(e){!w(this._config)&&(y(e,this._config),this.emitConfigUpdate("setOrderByList"))}async updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&(await q({splitByField:this.getSplitByField(),numericFields:this.getNumericFields(),aggregationType:this.getAggregationType(),config:this._config,layerInfo:this.layerInfo}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("updateSeriesFromLayerFilter"))}getBinTemporalData(){return $(this._config)}setBinTemporalData(e){ee(e,this._config),this.emitConfigUpdate("enableTemporalBinning")}getSeriesName(e){return de(e,this._config)}setSeriesName(e,i){me(e,i,this._config),this.emitConfigUpdate("setSeriesName")}getSeriesColor(e){return pe(e,this._config)}setSeriesColor(e,i){ye(e,i,this._config),this.emitConfigUpdate("setSeriesColor")}getOrderOfSeries(){return ue(this._config)}setOrderOfSeries(e){Ce(e,this._config),this.emitConfigUpdate("setOrderOfSeries")}getStackedType(){return Se(this._config)}async setStackedType(e){await _e({newStackedType:e,config:this._config,layerInfo:this.layerInfo}),this.emitConfigUpdate("setStackedType")}moveSeries(e,i){let t=this.getOrderOfSeries(),[a]=t.splice(e,1);t.splice(i,0,a),this.setOrderOfSeries(t),this.emitConfigUpdate("moveSeries")}moveCustomSortValuesInOrderByList(e,i){let t=m(this._config),[a]=t.splice(e,1);t.splice(i,0,a),y(t,this._config),this.emitConfigUpdate("moveCustomSortValuesInOrderByList")}async resetConfig(){let e=this._config.id;this._config=await this.generateDefaultConfig(),this._config.id=e,this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("resetConfig")}async generateChartTitle(){return this.layerInfo!==void 0?await J(this._config,this.layerInfo):""}generateXAxisTitle(){let e=this.getXAxisField();return this.layerInfo!==void 0?A(this.layerInfo.layerFieldsInfo,e):""}async generateYAxisTitle(){return this.layerInfo!==void 0?await h({config:this._config,layerInfo:this.layerInfo,numericFields:n(this._config),aggregationType:o(this._config)}):""}};H(S,[se,ne,oe,ae,ge,re,ie,te,C]);return{a:me,b:ye,c:S}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",a,b,d,e,g)
|
package/dist/cdn/H4EKWUGZ.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import{e as s}from"./AD6UTPKO.js";import a from"./NL5HWOSB.js";import{r as c}from"./NWANFRQZ.js";import{a as b,b as g,d as l}from"./J2GDDFON.js";import{g as o}from"./QUOXLAGO.js";import{b as r}from"./FP4XIAZA.js";import{G as p}from"./NI233ASE.js";export default $arcgis.t(([,,,,,,,{Za:d,k:N,zc:L}])=>{async function h(e){let t=p(`assets/common/t9n/messages.${e}.json`),n=await fetch(t);if(!n.ok)throw new Error(`Failed to load t9n file: ${t}`);return await n.json()}function D(e){let{t9nLocale:t}=l(e??document.documentElement),n=f(e??document.documentElement),i=b(e??document.documentElement)==="rtl";return{locale:t,formatLocale:n,rtl:i}}function F(e){let t;return e==="unknown"?t="UTC":e!==void 0&&e!=="system"&&(t=e),t}function T(e,t){let n={year:"numeric",month:"2-digit",day:"2-digit",timeZone:t};return new Intl.DateTimeFormat("en-CA",n).format(e)}function x(e,t){let n={hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:t};return new Intl.DateTimeFormat("en-US",n).format(e)}function A(e,t){let[,n,,,,i]=1111.1.toLocaleString(t),a=e.replace(n,"").replace(i,".");return Number.parseFloat(a)}function y(e){let t=Array.from(g);return L.includes(e)&&t.includes(e)}function f(e){let{lang:t,t9nLocale:n}=l(e);return y(t)?t:n}var Z={DebounceTimer:400,SliderTimer:100,PopoverTimer:60,customSortLimit:100},q={style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3},z=[r.Count,r.Sum,r.Average,r.ContinuousPercentile,r.Minimum,r.Maximum,r.NoAggregation],V=[r.Count,r.Sum];function W(e){let t;switch(e){case o.Title:case o.XAxisTitle:case o.YAxisTitle:case o.LegendTitle:{t=s.Title;break}case o.Description:case o.LegendText:{t=s.Text;break}case o.AxisLabels:case o.GuideLabels:case o.DataLabels:{t=s.Label;break}case o.Background:case o.LeaderLines:case o.AxisLines:case o.GridLines:{t=s.Palette;break}}return t}function H(e,t,n){let i=!1,a=typeof e=="string"?Number.parseFloat(e):e,m=typeof t=="string"?Number.parseFloat(t):t,u=typeof n=="string"?Number.parseFloat(n):n;return Number.isNaN(a)||(i=(m===void 0||Number.isNaN(m)||a>=m)&&(u===void 0||Number.isNaN(u)||a<=u)),i}function J(e,t){let n;if(e!==null){let i=typeof e=="string"?Number.parseFloat(e):e;d(i)?n=i:d(t)&&(n=t)}return n===void 0?"":`${n}`}function Q(e){let{inputElement:t,status:n}=e;t.status=n}var _={IDLE:"idle",INVALID:"invalid"};function ee(e,t){let n="";if(e!==void 0&&!Number.isNaN(e)){let i=f(document.documentElement);n=Intl.NumberFormat(i,t).format(e)}return n}function te(e,t){let n=!1;if(t!==void 0){let i=typeof t=="string"?t.trim():t,a=e.trim();typeof t=="string"?n=i===a||i===N&&a==="":n=i.includes(a)}return n}function ne(e){let t;switch(e){case"trailing":t=-200;break;case"leading":t=20;break;default:t=0;break}return t}function ie(e){return e===void 0||Number.isNaN(e.r)||Number.isNaN(e.g)||Number.isNaN(e.b)?null:e}var oe=e=>{["e","E"].includes(e.key)&&e.preventDefault()},re=e=>{if(e.pickListElement!==void 0){let t=e.pickListElement.selectedItems;e.eventEmitter.emit({contentKind:e.contentKind,value:t.map(n=>n.value)})}};function ae(e){let t="solid";switch(e){case c.Dash:t="dashed";break;case c.Dot:t="dotted";break;case c.Solid:default:t="solid";break}return t}function se(e,t){let n=document.createElement("a");n.style.display="none",n.download=t,n.setAttribute("href",e),n.click(),n.remove(),URL.revokeObjectURL(e)}function ce(e){return e!=null&&(e.style.removeProperty("opacity"),e.remove()),null}return{a:h,b:D,c:F,d:T,e:x,f:A,g:f,h:Z,i:q,j:z,k:V,l:W,m:H,n:J,o:Q,p:_,q:ee,r:te,s:ne,t:ie,u:oe,v:re,w:ae,x:se,y:ce}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",a)
|
package/dist/cdn/H57THMT5.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import{a as de}from"./P73CI4UI.js";import g from"./H4EKWUGZ.js";import{c as $}from"./AD6UTPKO.js";import e from"./OO43JSJR.js";import d from"./RP7TFTPB.js";import c from"./U5O5DU3K.js";import b from"./WB5LCPZU.js";import a from"./NL5HWOSB.js";import{e as f,j as ee,k as _,p as G,r as te,s as ie,u as p,v as x,w as v}from"./NWANFRQZ.js";import{e as j}from"./QUOXLAGO.js";import{a as F,e as Y,f as K,h as U,j as J,w as Q}from"./FP4XIAZA.js";export default $arcgis.t(([,,,,,,,{A:w,Aa:oe,Ba:ne,Ca:R,Ea:A,Fa:g,Mb:le,kc:se,mb:O,pb:S,v:ae,wb:D,z:re},{$:ge,Ia:E,aa:q,sa:ue,ua:me,wa:pe},{A:ye,k:z,l:N,m:X},{b:be},{a:he,c:fe,d:xe},{b:ce}])=>{var Ue=[F.BarSeries,F.BoxPlotSeries,F.LineSeries,F.PieSeries,F.HistogramSeries,F.ScatterSeries],Je=1,Qe={PNG:"png"},B={aria:{defaultChartItemRole:"figure"},title:{marginBottom:8,wrap:!0},subtitle:{marginBottom:10,wrap:!0},rotated:!1,legendProperties:{legendLabels:{marginLeft:5,marginRight:5,truncate:!1,applyOnClones:!0,wrap:!0,maxWidth:200},valueLabels:{wrap:!0,maxWidth:200},legendTitle:{wrap:!0,maxWidth:220,marginLeft:10,marginRight:10,marginTop:10},legendMarkersSize:14,legendLabelReducedOpacity:.5,rectangleMarkerRadius:3,roundedMarkerRadius:12,legendPaddingRightWithScrollbarVisible:10,maxHeight:100,marginTop:2,marginBottom:2,marginLeft:0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,position:Y.Right},footer:{wrap:!0,horizontalCenter:p.Center,verticalCenter:x.Middle,align:p.Center},axisLabel:{rotation:0,align:p.Center,horizontalCenter:p.Center,verticalCenter:x.Top,dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:p.Left,verticalCenter:x.Bottom,dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:p.Center,verticalCenter:x.Middle,dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:p.Center,valign:x.Middle,rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:p.Center,valign:x.Middle,rotation:270,wrap:!0},titleLabel:{align:p.Center,wrap:!0},subtitleLabel:{align:p.Center,wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:p.Right,align:p.Right,verticalCenter:x.Middle,wrap:!0},horizontalLineGuideLabels:{horizontalCenter:p.Right,align:p.Right,verticalCenter:x.Top,wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:p.Center,verticalCenter:x.Top,valign:x.Top},verticalLineGuideLabels:{horizontalCenter:p.Right,verticalCenter:x.Bottom,valign:x.Top,wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:v.SLS,style:te.Dash,color:[0,0,0,102],width:1},horizontalLineVisible:!1,verticalLineVisible:!1},gauge:{innerRadius:80,radius:80,startAngle:-180,endAngle:180,innerLabelToInnerChartRatio:.5,axisLabelToInnerChartRatio:.13,innerLabelAutoMinFontSize:14,innerLabelAutoMaxFontSize:100,axisLabelAutoMinFontSize:14,axisLabelAutoMaxFontSize:40,gaugeMinGridDistance:1,axisMinimum:0,axisMaximum:100,numberOfLabelIntervals:5,numberOfTicksBetweenTwoLabels:4,maximumNumberOfLabelIntervals:24,paddingTop:10,paddingBottom:10,paddingRight:5,paddingLeft:5},gaugeTicksLength:7,gaugeInnerLabel:{horizontalCenter:p.Center,verticalCenter:x.Middle},gaugeNeedle:{startWidth:10,endWidth:1,innerRadius:25,displayPin:!1},gaugeFirstLabelId:"arcgis_charts_gauge_first_label",gaugeLastLabelId:"arcgis_charts_gauge_last_label",headerContainer:{layout:"vertical",width:"100%",paddingBottom:5},footerContainer:{layout:"vertical",width:"100%",paddingTop:5,paddingBottom:15},paddingMinSize:0,marginMinSize:0,chartPaddingMinSize:7,chartPaddingRightWhenLegendNotOnRight:15,chartAndLegendContainer:{paddingTop:0},chartContainer:{paddingBottom:0,paddingTop:15},chartContainerPaddingTopWhenRotated:5,dataLabelInitialize:{strokeWidth:0,applyOnClones:!0},dataLabel:{align:p.Center,horizontalCenter:p.Center,valign:x.Bottom,verticalCenter:x.Top,dy:-3},dataLabelRotated:{align:p.Right,horizontalCenter:p.Right,valign:x.Middle,verticalCenter:x.Middle,dx:2},dataLabelStackedRotated:{align:p.Center,horizontalCenter:p.Center,valign:x.Middle,verticalCenter:x.Middle},dataLabelStackedNonRotated:{align:p.Center,horizontalCenter:p.Center,valign:x.Middle,verticalCenter:x.Middle},dataLabelNegative:{paddingTop:5,paddingRight:5},rotatedChartPadding:{paddingTop:2,paddingRight:2},scatterplotSeries:{strokeOpacity:0,r2:Number.NaN,trendLinePoints:[{},{}]},histogramSeries:{normalDistribNumberOfPoints:100},lineMarker:{markerSize:7,markerStyle:ie.Circle},lineSeries:{strokeWidth:2,lineSmoothed:!1,lineSmoothedKind:J.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:K.Side,stackNegativeValuesToBaseline:!0,marker:{markerSize:4,markerStrokeWidth:2}},buffer:!1,elementLimitForSmoothRendering:1e3,defaultStatParameterValue:.5,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:oe,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:re.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:v.SFS,color:[210,210,210,255*ae]}},defaultPadding:0,alignDataLabels:!1,ticksOpacity:1,minimumSize:20,technicalFieldSliceId:"arcgis_charts_slice_id",technicalFieldSlicePercent:"arcgis_charts_slice_percent",technicalFieldGroupedSlices:"arcgis_charts_grouped_slices"},pieSliceCustomLabelName:"customLabel",yAxisLabelMaxWidth:100,xAxisLabelMaxWidth:75,axisLabelPadding:1.5,categoryAxisLabelPadding:3,seriesSort:U.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],lightTextColor:[255,255,255,255],darkTextColor:[0,0,0,255],xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderBackground:[255,255,255,230],loaderSpinnerColor:[0,122,194,255],loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",markerTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalDateValue:"arcgis_charts_original_date_value",typeOrDomainFieldName:"arcgis_charts_type_domain_field_name",typeOrDomainIdValue:"arcgis_charts_type_domain_id_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_axis_field",nullValue:"arcgis_charts_null",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:v.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:v.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:de.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_arcgis_charts_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",options:{hideEmptySeries:!0,replaceNoValueCategoryWithZero:!0,autoInverseDataLabelTextColor:!1}};function Se(c,e){return!ee(c,e)}function et(c,e){return Se(c,e)||c!==e}function Fe(c){return(new Intl.NumberFormat(c,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}var Ce=c=>{let{value:e,quoteAll:t=!1,locale:s="en"}=c,r=e==null?"":String(e);if(Number.isFinite(Number(r))){let i=Number(r);r=new Intl.NumberFormat(s,{minimumFractionDigits:0,maximumFractionDigits:2}).format(i).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(r))&&(r=`"${r.replace(/"/gu,'""')}"`),r};function tt(c,e={}){let{columns:t,delimiter:s,includeHeader:r=!0,quoteAll:i=!1,locale:o}=e,m=c.length===0,n="";if(!m){let u=t??Object.keys(c[0]),y=[],h=o??ce().formatLocale,b=s??Fe(h);if(n+=`sep=${b}\r
|
|
5
|
-
`,r){let a=u.map(d=>Ce({value:d,quoteAll:i,locale:h}));y.push(a.join(b))}c.forEach(a=>{let d=u.map(l=>Ce({value:a[l],quoteAll:i,locale:h}));y.push(d.join(b))}),n+=y.join(`\r
|
|
6
|
-
`)}return n}function it(c){let{rawData:e,config:t,layer:s,fieldList:r}=c,i=e;if(t!==void 0&&Array.isArray(e)&&e.length>0){let o=Q(t?.series);o===F.HistogramSeries?i=_e(t,e):o===F.BarSeries||o===F.LineSeries||o===F.ComboLineAndBarSeries?i=Pe({config:t,rows:e,layer:s,fieldList:r}):o===F.PieSeries?i=Be({config:t,rows:e,layer:s,fieldList:r}):o===F.BoxPlotSeries&&(i=Ae({config:t,rows:e,fieldList:r}))}return i}function _e(c,e){let t=be(c),s=`${f($.Min)} of ${t}`,r=`${f($.Max)} of ${t}`,i=`${f($.Count)} of ${t}`;return e.map(o=>{let{minValue:m,maxValue:n,count:u}=o,y=_(m),h=_(n),b=_(u),a={};return y&&(a[s]=m.toFixed(2)),h&&(a[r]=n.toFixed(2)),y&&h&&(a.Label=`${m.toFixed(2)} - ${n.toFixed(2)}`),b&&(a[i]=u),a})}function Le(c,e,t){let s=Object.keys(c),r=[];return t?r=t.map(i=>s.find(o=>o.toLowerCase().includes(i.toLowerCase()))||""):r=s.filter(i=>i.toLowerCase().includes(e.toLowerCase())),r.filter(i=>i.trim()!=="")}function Pe(c){let{config:e,rows:t,layer:s,fieldList:r}=c,i=ge(e),o=ue(e),m=f(o),n=pe(e),u=O(e.series),y=E(e),h=me(e),b=le(s)?.objectIdField??"FID",a=n.length===1&&n[0]===b,d;switch(u){case g.BarAndLineNoAggregation:d=t.map(l=>{let C=M({field:i,value:l[i],fieldList:r}),L={[i]:C};return Object.assign(L,...n.map(P=>({[P]:l[P]}))),L});break;case g.BarAndLineFromFields:d=G(n,t).map(([l,C])=>{let L=D(e.series)[0],P={};return C!==void 0&&l!==void 0&&(P.Field=C[i],P.Value=C[L]),P});break;case g.BarAndLineMonoField:case g.BarAndLineMultiFields:d=t.map(l=>{let C=M({field:i,value:l[i],fieldList:r}),L={[i]:C};return n.forEach((P,k)=>{let W=q({config:e,numericFields:n,aggregationType:o,layer:s,numericFieldIndex:k}),V=D(e.series)[k],H=V,Z=V;V.toLowerCase()===W.name.toLowerCase()&&(H=W.description,Z=W.name),L[H]=l[Z]}),L});break;case g.BarAndLineSplitBy:d=t.flatMap(l=>{let C=Le(l,n[0]),L=M({field:i,value:l[i],fieldList:r});return y.map((P,k)=>({[i]:L,[h]:P,[a?m:`${m} of ${n[0]}`]:l[C[k]]}))});break;case g.BarAndLineSplitByNoAggregation:d=t.map(l=>{let C=M({field:i,value:l[i],fieldList:r}),L=Le(l,n[0],y);return{[i]:C,[h]:l[h],[n[0]]:l[L[0]]}});break;default:d=t}return d}function Me(c,e=2){if(c.length===0)return[];let t=c.reduce((s,r)=>{for(let[i,o]of Object.entries(r))typeof o=="number"&&Number.isFinite(o)&&(s[i]=(s[i]??0)+o);return s},{});return c.map(s=>{let r={...s};for(let[i,o]of Object.entries(s))if(typeof o=="number"&&t[i]>0){let m=o/t[i]*100;r[`${i}${A}`]=`${m.toFixed(e)}%`}return r})}function Be(c){let{config:e,rows:t,layer:s,fieldList:r}=c,i=he(e),o=O(e.series),m=Me(t,2),n=fe(e),u=o!==g.PieFromFields?j.Category:j.Fields,y=xe(e,u),h=q({config:e,numericFields:n,aggregationType:y,mode:u,layer:s}),b=D(e.series)[0];return o===g.PieFromCategory?m=m.map(a=>{let d=M({field:i,value:a[i],fieldList:r}),l={[i]:d},C=b,L=b;return b.toLowerCase()===h.name.toLowerCase()&&(C=h.description,L=h.name),l[C]=a[L],l[f(A.trim())]=a[`${L}${A}`],l}):o===g.PieFromFields&&(m=G(n,m).map(([a,d])=>{let l={};return d!==void 0&&a!==void 0&&(l.Field=d[i],l.Value=d[b],l[f(A.trim())]=d[`${b}${A}`]),l})),m}function I(c){let{rawData:e,keyBase:t="",outRow:s}=c;for(let[r,i]of Object.entries(S)){let o=e[t+i];o!==void 0&&(s[r]=_(o)?o.toFixed(2):o);let m=e[t+i+ne];m!==void 0&&(s[`${r} Outlier`]=_(m)?m.toFixed(2):m);let n=e[t+i+R];n!==void 0&&(s[`${r} Z-Score`]=_(n)?n.toFixed(2):n)}}function T(c){let{rawData:e,outRow:t,config:s,boxPlotSubType:r,fieldList:i}=c,o=z(s),m=X(s),n=N(s),u=S.Outlier,y=w;switch(r){case g.BoxPlotMonoFieldAndCategory:{let a=M({field:o,value:e[o],fieldList:i});t[o]=a,t[f(S.Outlier)]=e[u];break}case g.BoxPlotMultiFieldsAndCategory:{t[f(o)]=e[o],u=`${m.find(a=>Object.keys(e).some(d=>d.toLowerCase().includes(a.toLowerCase())))??""}_${u}`,t[f(S.Outlier)]=e[u];break}case g.BoxPlotMonoFieldAndSplitBy:case g.BoxPlotMultiFieldsAndSplitBy:{let a=e[n];u=`${a}_${u}`,t.Field=e[y],t[f(n)]=a,t[f(S.Outlier)]=e[u];break}case g.BoxPlotMonoFieldAndCategoryAndSplitBy:{let a=e[n];u=`${a}_${u}`,t[f(o)]=e[o],t[f(n)]=a,t[f(S.Outlier)]=e[u];break}case g.BoxPlotMonoField:case g.BoxPlotMultiFields:default:{t.Field=e[y],t[f(S.Outlier)]=e[u];break}}let h=`${u}${R}`,b=e[h];b!==void 0&&(t[`${f(S.Outlier)} Z-Score`]=_(b)?b.toFixed(2):b)}function we(c){let{rawData:e,outRow:t,config:s,splitByValue:r}=c,i=O(s.series),o=e[`${r}_${S.Average}`],m=N(s),n=z(s),u="";switch(i){case g.BoxPlotMonoFieldAndSplitBy:{u=`${r}_${m}`,t.Field=e[w],t[f(m)]=e[u];break}case g.BoxPlotMultiFieldsAndSplitBy:{u=`${r}_${S.Average}`,t.Field=e[w],t[f(m)]=e[u];break}case g.BoxPlotMonoFieldAndCategoryAndSplitBy:{u=`${r}_${S.Average}`,t[n]=e[n],t[f(m)]=r;break}}t[f(S.Average)]=_(o)?o.toFixed(2):o;let y=`${o}${R}`,h=e[y];h!==void 0&&(t[`${f(S.Average)} Z-Score`]=_(h)?h.toFixed(2):h)}function Ae(c){let{config:e,rows:t,fieldList:s}=c,r=O(e.series),i=r,o=ye(e),m=Array.isArray(t)&&t.length>0&&t.every(a=>a[B.boxPlot.boxPlotMeanLineMarkerId]!==void 0);o&&!m&&(r===g.BoxPlotMonoFieldAndSplitBy?i=g.BoxPlotMonoField:r===g.BoxPlotMultiFieldsAndSplitBy?i=g.BoxPlotMultiFields:r===g.BoxPlotMonoFieldAndCategoryAndSplitBy&&(i=g.BoxPlotMonoFieldAndCategory));let n=z(e),u=X(e),y=E(e),h=N(e),b;switch(i){case g.BoxPlotMonoField:case g.BoxPlotMonoFieldAndCategory:{b=t.map(a=>{let d={};if(a[B.boxPlot.boxPlotOutlierId])T({rawData:a,outRow:d,config:e,boxPlotSubType:i});else{if(i===g.BoxPlotMonoFieldAndCategory){let l=M({field:n,value:a[n],fieldList:s});d[n]=l}else i===g.BoxPlotMonoField&&(d.Field=a[w]);I({rawData:a,outRow:d})}return d});break}case g.BoxPlotMultiFields:{b=t.flatMap(a=>{let d={};return a[B.boxPlot.boxPlotOutlierId]?T({rawData:a,outRow:d,config:e,boxPlotSubType:i}):(d.Field=a[w],I({rawData:a,outRow:d})),[d]});break}case g.BoxPlotMultiFieldsAndCategory:{b=t.flatMap(a=>u.map(d=>{let l={},C="";if(l.Field=d,a[B.boxPlot.boxPlotOutlierId])T({rawData:a,outRow:l,config:e,boxPlotSubType:i});else{if(i===g.BoxPlotMultiFieldsAndCategory){let L=M({field:n,value:a[n],fieldList:s});l[n]=L,C=`${d}_`}I({rawData:a,outRow:l,keyBase:C})}return l}));break}case g.BoxPlotMonoFieldAndSplitBy:case g.BoxPlotMultiFieldsAndSplitBy:case g.BoxPlotMonoFieldAndCategoryAndSplitBy:{b=t.flatMap(a=>{if(a[B.boxPlot.boxPlotOutlierId]){let d={};return T({rawData:a,outRow:d,config:e,boxPlotSubType:i}),[d]}else return a[B.boxPlot.boxPlotMeanLineMarkerId]?y?.map(d=>{let l={};return we({rawData:a,outRow:l,splitByValue:d,config:e}),l}):y.map(d=>{let l={};if(i===g.BoxPlotMonoFieldAndCategoryAndSplitBy){let C=M({field:n,value:a[n],fieldList:s});l[n]=C}return a[B.boxPlot.boxPlotOutlierId]?T({rawData:a,outRow:l,config:e,boxPlotSubType:i}):(l[h]=d,I({rawData:a,outRow:l,keyBase:`${d}_`})),l})});break}default:b=t}return b}var ve=c=>{let e=!1;return(typeof c=="string"||typeof c=="number")&&(e=!Number.isNaN(new Date(c).getTime())),e},M=c=>{let{field:e,value:t,fieldList:s}=c,r=!1;return s!==void 0&&s.length>0&&(r=se(s).some(i=>i===e)),ve(t)&&r?new Date(t).toISOString():t};return{a:Ue,b:Je,c:Qe,d:B,e:Se,f:et,g:tt,h:it}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",a,b,c,d,e,g)
|
package/dist/cdn/KUH3QJNM.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import{a as B,d as e,e as r,f as i}from"./P73CI4UI.js";import a from"./NL5HWOSB.js";import{a as l,w as S}from"./FP4XIAZA.js";export default $arcgis.t(([,,,,,,,{Fa:E,Qa:g,bb:m,mb:x,wc:p}])=>{var A=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],b=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],u=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],F=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],I=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],v=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],D=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],L=[e.EditChart,e.FilterByExtent,e.ExportAsImage,e.ExportAsCSV];function K(a){switch(a){case l.BarSeries:return A;case l.LineSeries:return b;case l.ComboLineAndBarSeries:return u;case l.PieSeries:return F;case l.HistogramSeries:return I;case l.ScatterSeries:return v;case l.BoxPlotSeries:return D;case l.GaugeSeries:return L;default:return[]}}var N=(a,t,o)=>{let n=a.target.assignedNodes().find(c=>"legendToggle"in c),s=S(o?.series);return n&&(n.chartType=s,T({actionBar:n,chartComponent:t,config:o})),n};function T(a){let{actionBar:t,chartComponent:o,config:n,isWarningDisplayed:s}=a,c=m(o.selectionData),C=n?.legend?n.legend.visible??!0:!1;if(t.chartType=S(n?.series),o.enableConfiguration){let h=t.hiddenActions??[];t.hiddenActions=h.filter(f=>f!==e.EditChart)}t.editChartState=o.enableConfiguration?i.Enabled:i.Disabled;let d=n&&g(n.series);t.legendState=d?i.Enabled:i.Disabled,t.legendToggle=d&&(o.legendVisibility??C)?r.Active:r.Inactive,t.rotateChartToggle=(o.rotation??n?.rotated)===!0?r.Active:r.Inactive;let y=x(n?.series??[])===E.PieFromFields;t.filterBySelectionState=!y&&(o.filterBySelection===!0||!c&&o.filterByExtent!==!0)?i.Enabled:i.Disabled,t.filterBySelectionToggle=o.filterBySelection===!0?r.Active:r.Inactive,t.filterByExtentState=o.filterByExtent===!0||o.filterBySelection!==!0?i.Enabled:i.Disabled,t.filterByExtentToggle=o.filterByExtent===!0?r.Active:r.Inactive,t.zoomState=o.filterBySelection?i.Disabled:i.Enabled,t.zoomToggle=o.actionMode===B.Zoom?r.Active:r.Inactive,t.selectionState=o.filterBySelection?i.Disabled:i.Enabled,t.selectionToggle=(o.actionMode??t.actionBarSelectionMode)===t.actionBarSelectionMode?r.Active:r.Inactive,t.clearSelectionState=c?i.Disabled:i.Enabled,t.fullExtentState=o.filterBySelection?i.Disabled:i.Enabled,t.switchSelectionState=o.filterBySelection?i.Disabled:i.Enabled,t.exportActionState=s||p(n)?i.Disabled:i.Enabled}return{a:K,b:N,c:T}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",a)
|
package/dist/cdn/P73CI4UI.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
var t={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},a={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},i={DataProcessComplete:"arcgisDataProcessComplete",DataFetchComplete:"arcgisDataFetchComplete",DataProcessError:"arcgisDataProcessError",LegendItemVisibilityChange:"arcgisLegendItemVisibilityChange",UpdateComplete:"arcgisUpdateComplete",SeriesColorChange:"arcgisSeriesColorChange",AxesMinMaxChange:"arcgisAxesMinMaxChange",DefaultActionSelect:"arcgisDefaultActionSelect",SelectionComplete:"arcgisSelectionComplete",ActionBarToggle:"arcgisActionBarToggle",NoRenderPropChange:"arcgisNoRenderPropChange",BadDataWarningRaise:"arcgisBadDataWarningRaise",SeriesOrder:"arcgisSeriesOrder",RuntimeError:"arcgisRuntimeError",ConfigChange:"arcgisConfigChange"},o={FilterBySelection:"filterBySelection",FilterByExtent:"filterByExtent",Legend:"legend",RotateChart:"rotateChart",Selection:"selection",ClearSelection:"clearSelection",SwitchSelection:"switchSelection",Zoom:"zoom",FullExtent:"fullExtent",EditChart:"editChart",ExportAsImage:"exportAsImage",ExportAsCSV:"exportAsCSV"},r={Active:"active",Inactive:"inactive"},n={Enabled:"enabled",Disabled:"disabled"},s={Ignore:"ignore",Throw:"throw"},e={Ignore:"ignore",Refresh:"refresh"},l=e,c=e,g=e,C=e,d={Enabled:"enabled",Disabled:"disabled"};export{t as a,a as b,i as c,o as d,r as e,n as f,s as g,l as h,c as i,g as j,C as k,d as l};
|
package/dist/cdn/RP7TFTPB.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import d from"./WB5LCPZU.js";import a from"./NL5HWOSB.js";import{c as u,d as p}from"./J2GDDFON.js";import{c}from"./FP4XIAZA.js";import{G as b}from"./NI233ASE.js";export default $arcgis.t(([{substitute:h},,,,,,,,{K:o,Oa:m,R:i,qa:l,sa:r,wc:f},{L:g,b:x,e:t,p:D}])=>{var v=s=>{t({config:s,value:null,axisIndex:0,isMax:!1}),t({config:s,value:null,axisIndex:0,isMax:!0}),t({config:s,value:null,axisIndex:1,isMax:!1}),t({config:s,value:null,axisIndex:1,isMax:!0})};async function I(s,e){let{layerFieldsInfo:a}=e,n=m(a,S(s)),y=await u(p(document.documentElement).t9nLocale,b("./assets/common/t9n"),"messages.");return h(y.titleLabels.distributionOfField,{valueField:n})}var S=s=>s.series[0]?.x??"",G=async(s,e,a)=>{let{layerFieldsInfo:n}=a,y=await I(e,a),T=D(e),w=g(0,e),F=m(n,S(e)),d=f(e);if(v(e),e?.series?.[0]&&(e.series[0].x=s),F===w||d){let M=m(n,s);x(e,0,M)}e.title&&(y===T||d)&&(e.title.content.text=await I(e,a))},H=s=>s.series[0]?.dataTransformationType??c.None,J=(s,e)=>{v(e),e?.series?.[0]&&(e.series[0].dataTransformationType=s)},K=s=>s.series[0]?.binCount??32,P=(s,e)=>{v(e),e?.series?.[0]&&(e.series[0].binCount=s)},R=s=>s.series[0]?.fillSymbol??r().fillSymbol,U=(s,e)=>{e?.series?.[0]&&(e.series[0].fillSymbol={...e.series[0].fillSymbol,...s})},C=s=>s.series[0]?.overlays?.comparisonDistribution?.symbol??r().overlays.comparisonDistribution?.symbol??o(),W=(s,e)=>{e.series[0].overlays??=l(),e.series[0].overlays.comparisonDistribution??=i(4),e.series[0].overlays.comparisonDistribution.symbol={...e.series[0].overlays.comparisonDistribution.symbol,...s}},L=s=>s.series[0]?.overlays?.mean?.symbol??r().overlays.mean?.symbol??o(),X=(s,e)=>{e.series[0].overlays??=l(),e.series[0].overlays.mean??=i(1),e.series[0].overlays.mean.symbol={...e.series[0].overlays.mean.symbol,...s}},O=s=>s.series[0]?.overlays?.median?.symbol??r().overlays.median?.symbol??o(),ss=(s,e)=>{e.series[0].overlays??=l(),e.series[0].overlays.median??=i(2),e.series[0].overlays.median.symbol={...e.series[0].overlays.median.symbol,...s}},k=s=>s.series[0]?.overlays?.standardDeviation?.symbol??r().overlays.standardDeviation?.symbol??o(),es=(s,e)=>{e.series[0].overlays??=l(),e.series[0].overlays.standardDeviation??=i(3),e.series[0].overlays.standardDeviation.symbol={...e.series[0].overlays.standardDeviation.symbol,...s}},as=s=>(s.series[0]?.overlays?.comparisonDistribution?.created??!1)&&(s.series[0]?.overlays?.comparisonDistribution?.visible??!1),is=(s,e)=>{let a=i(0);a.created=s,a.visible=s,a.symbol=C(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.comparisonDistribution=a)},rs=s=>(s.series[0]?.overlays?.mean?.created??!1)&&(s.series[0]?.overlays?.mean?.visible??!1),os=(s,e)=>{let a=i(1);a.created=s,a.visible=s,a.symbol=L(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.mean=a)},ls=s=>(s.series[0]?.overlays?.median?.created??!1)&&(s.series[0]?.overlays?.median?.visible??!1),ts=(s,e)=>{let a=i(2);a.created=s,a.visible=s,a.symbol=O(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.median=a)},ns=s=>(s.series[0]?.overlays?.standardDeviation?.created??!1)&&(s.series[0]?.overlays?.standardDeviation?.visible??!1),ms=(s,e)=>{let a=i(3);a.created=s,a.visible=s,a.symbol=k(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.standardDeviation=a)},ys=s=>s?.series?.[0]?.overlays,vs=(s,e)=>{e?.series?.[0]!==void 0&&(e.series[0].overlays=s)};return{a:I,b:S,c:G,d:H,e:J,f:K,g:P,h:R,i:U,j:C,k:W,l:L,m:X,n:O,o:ss,p:k,q:es,r:as,s:is,t:rs,u:os,v:ls,w:ts,x:ns,y:ms,z:ys,A:vs}},"intl","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",a,d)
|
package/dist/cdn/WB5LCPZU.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.137 */
|
|
4
|
-
import{i as A,j as h,k as C,l as Ue,m as Xe,o as Re}from"./XWI545BD.js";import a from"./NL5HWOSB.js";import{d as ye,e as z,f as W,i as Ae,q as ue,w as he}from"./NWANFRQZ.js";import{c as ie,d as te}from"./J2GDDFON.js";import{b as v,e as Ke}from"./QUOXLAGO.js";import{a as S,b as p,f as Se,h as N,k as H,n as ee,o as Te,v as w,w as K}from"./FP4XIAZA.js";import{G}from"./NI233ASE.js";export default $arcgis.t(([{substitute:E},,,,,,,,{$:Oe,$b:me,A:Ce,Fa:V,H:L,J:q,K:Le,Ka:ke,L:se,M:qe,Mb:oe,N:Ne,Oa:j,Sa:De,Wb:_e,Z:Me,aa:$e,ca:je,cb:Ee,j:Be,jb:ae,jc:xe,k:P,kb:Ve,kc:ze,l:we,lc:Pe,mb:U,mc:ne,nc:re,ob:M,p:T,wa:fe,wc:le}])=>{async function pe(i){let{queryObject:e,queryConfig:t,category:s,splitByField:a,chartLimits:o,abortKey:c}=i,n=a!==void 0,d=s!==Ce?[s]:[];n&&d.push(a);let l=oe(e),m={...t,groupByFieldsForStatistics:Array.from(new Set(d)),outStatistics:[{statisticType:p.Count,onStatisticField:l.objectIdField,outStatisticFieldName:`${p.Count}_OBJECTID`}],orderByFields:void 0,num:o?.maxBarThreePlusSeriesCountTotal},g=await _e({queryObject:e,featureCount:1,queryConfig:m,abortKey:c});return Array.from(new Set(g.map(f=>f.attributes[n?a:s]))).sort((f,r)=>typeof f=="string"&&typeof r=="string"?f.localeCompare(r):Number(f)-Number(r))}function Y(i,e,t){let s=i?.axes?.[e];s?.title!==void 0?s.title.content.text=t:s!==void 0&&(s.title=q({text:t,visible:!0,font:L(T.AxisTitle)}))}async function J(i){let{config:e,layerInfo:t,numericFields:s,aggregationType:a}=i,o="";if(e){let c=ke(e)===Se.Stacked100,n=await ie(te(document.documentElement).t9nLocale,G("./assets/common/t9n"),"messages.");if(c)o=n.utilsStrings.statistics.percent;else{let d=await fe(a);if(s.length===1){let l=j(t.layerFieldsInfo,s[0]);a===p.NoAggregation?o=l:a===p.Count&&s[0]===t.objectIdField?o=n.utilsStrings.statistics.count:o=E(n.axisLabels.aggregationOfFieldName,{aggregation:d,fieldName:l})}else s.length>1&&(a===p.NoAggregation?o=n.axisLabels.values:o=E(n.axisLabels.aggregationOfValues,{aggregation:d}))}}return o}var Ye=async(i,e)=>i.axes?.[e]??(await Me(i.type))[e],Ze=i=>{let{config:e,axis:t,axisIndex:s}=i;e.axes!==void 0&&(e.axes[s]=t)},Pi=i=>{let{config:e,axisIndex:t,isMax:s}=i,a=Number.NaN;return s?a=e.axes?.[t]?.maximum:a=e.axes?.[t]?.minimum,a??Number.NaN},b=i=>{let{config:e,value:t,axisIndex:s,isMax:a}=i,o=e?.axes?.[s];o!==void 0&&(a?o.maximum=t:o.minimum=t)},Ui=(i,e)=>{b({config:i,value:e,axisIndex:0,isMax:!1})},ii=i=>i.axes?.[0]?.valueFormat??se(),ti=async(i,e)=>{let t=await Ye(i,0);if(t!==void 0&&e!==void 0){let s={...t,valueFormat:e};Ze({config:i,axis:s,axisIndex:0})}},We=(i,e,t)=>{let s=i.axes?.[e];s!==void 0&&(s.integerOnlyValues=t)},si=i=>{let e=K(i.series);return e===S.BarSeries||e===S.ComboLineAndBarSeries||e===S.LineSeries},ai=i=>{let{axisIndex:e,config:t,isMultiAxis:s}=i,a=!1;return e===0||e===1&&s?a=!0:e===2&&(a=si(t)),a},Xi=i=>{let{axisIndex:e,func:t,config:s}=i;return ai({axisIndex:e,config:s,isMultiAxis:!0})?t(e):void 0},Ri=(i,e)=>{let t,s=e.axes?.[i]?.valueFormat;return(i===0||i>=1&&Re(s))&&(t=s),t},Ki=async i=>{let{config:e,valueFormat:t,axisIndex:s=0}=i,a=await Ye(e,s);if(a!==void 0&&t!==void 0){let o={...a,valueFormat:t};Ze({config:e,axis:o,axisIndex:s})}},Wi=(i,e)=>i.axes?.[e]?.isLogarithmic??!1,Yi=i=>{let{config:e,isLogarithmic:t,axisIndex:s}=i,a=e.axes?.[s];a&&(a.isLogarithmic=t,b({config:e,value:null,axisIndex:s,isMax:!0}),b({config:e,value:null,axisIndex:s,isMax:!1}))},Zi=i=>{let{config:e,scrollbar:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].scrollbar=t)},oi=i=>i.title?.content.text??"",Ji=(i,e)=>{e.title!==void 0?e.title.content.text=i:e.title===void 0&&i!==void 0&&(e.title=q({text:i,visible:!0,font:L(T.ChartTitle)}))},Qi=i=>i.subtitle?.content.text??"",Gi=(i,e)=>{e.subtitle!==void 0?e.subtitle.content.text=i:e.subtitle===void 0&&i!==void 0&&(e.subtitle=q({text:i,visible:!0,font:L(T.ChartSubtitle)}))},Hi=i=>i.footer?.content.text??"",et=(i,e)=>{e.footer!==void 0?e.footer.content.text=i:e.footer===void 0&&i!==void 0&&(e.footer=q({text:i,visible:!0,font:L(T.DescriptionText)}))},it=i=>i.title?i.title.visible??!0:!1,tt=(i,e)=>{e.title!==void 0?e.title.visible=i:e.title===void 0&&(e.title=q({text:"",visible:i,font:L(T.ChartTitle)}))},st=i=>i.subtitle?i.subtitle.visible??!0:!1,at=(i,e)=>{e.subtitle!==void 0?e.subtitle.visible=i:e.subtitle===void 0&&(e.subtitle=q({text:"",visible:i,font:L(T.ChartSubtitle)}))},ni=i=>i.footer?.visible??!1,ot=(i,e)=>{e.footer!==void 0?e.footer.visible=i:e.footer===void 0&&i!==ni(e)&&(e.footer=q({text:"",visible:!0,font:L(T.DescriptionText)}))},nt=i=>i.chartRenderer,rt=(i,e)=>{e.chartRenderer=i},lt=(i,e)=>i.axes?.[e]?.title?.content,ct=i=>{let{config:e,axisIndex:t,symbol:s}=i,a=e.axes?.[t];if(a!==void 0){let o=a.title?.content.text;(a.title===void 0||s===void 0)&&(a.title=q({text:"",visible:!0,font:L(T.AxisTitle),type:T.AxisTitle})),s!==void 0&&(a.title.content=s),a.title.content.text=o}},dt=i=>{for(let e of i.axes??[])if(e?.labels!==void 0)return e.labels.content},gt=(i,e)=>{for(let t of e.axes??[])if(t!==void 0){let s=t.labels?.content.text;i===void 0?t.labels=q({text:"",visible:!0,font:L(T.AxisLabels),type:T.AxisLabels}):t.labels.content=W(i),t.labels.content.text=s}},yt=i=>{for(let e of i.axes??[])if(e?.lineSymbol!==void 0)return e.lineSymbol},ut=(i,e)=>{for(let t of e.axes??[])t!==void 0&&(t.lineSymbol=W(i)??Le())},ft=i=>{for(let e of i.axes??[])if(e?.grid!==void 0)return e.grid},mt=(i,e,t)=>{let s=e.axes;t.forEach(a=>{s?.[a]!==void 0&&(s[a].grid=W(i))})},be=(i,e)=>e.axes?.[i]?.title?.content.text??"",xt=(i,e,t)=>{let s=t.axes?.[e];s?.title!==void 0?s.title.content.text=i:s!==void 0&&s?.title===void 0&&(s.title=q({text:i,visible:!0,font:L(T.AxisTitle)}))},pt=(i,e)=>e.axes?.[i]?.title?.visible??!1,bt=(i,e,t)=>{let s=t.axes?.[e];s?.title!==void 0?s.title.visible=i:s!==void 0&&s?.title===void 0&&(s.title=q({text:be(e,t),visible:i,font:L(T.AxisTitle)}))},Ft=(i,e)=>i.axes?.[e]?.displayZeroLine??!1,vt=(i,e,t)=>{i.axes?.[t]!==void 0&&(i.axes[t].displayZeroLine=e)},It=(i,e)=>i.axes?.[e]?.displayCursorTooltip??!1,St=i=>{let{config:e,displayCursorTooltip:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].displayCursorTooltip=t)},Tt=(i,e)=>i.axes?.[e]?.buffer??!1,At=i=>{let{config:e,buffer:t,axisIndex:s}=i,a=e.axes?.[s];a!==void 0&&(a.buffer=t)},ht=(i,e)=>i.axes?.[e]?.tickSpacing,Bt=i=>{let{config:e,tickSpacing:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].tickSpacing=t)},wt=(i,e)=>i.axes?.[e]?.integerOnlyValues??!1,Ct=i=>{let{config:e,integerOnlyValues:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].integerOnlyValues=t)},ri=i=>{let e=v.xAxisAsc,t=i.orderOptions?.data?.orderType??w.Category,s=i.orderOptions?.data?.orderBy??N.Ascending;return t===w.Category&&Array.isArray(s)?e=v.customSort:t===w.Category?s===N.Ascending?e=v.xAxisAsc:e=v.xAxisDesc:s===N.Ascending?e=v.yAxisAsc:e=v.yAxisDesc,e},li=i=>{let e=K(i.series),t=!1;return(e===S.BarSeries||e===S.LineSeries)&&(t=ri(i)===v.customSort),t},Lt=i=>{let e=[],t=i.orderOptions?.data?.orderType;return li(i)&&t===w.Category&&(e=i.orderOptions?.data?.orderBy),e},qt=(i,e,t)=>{let s=w.Category,a=N.Ascending,o=K(e.series);e.orderOptions??={},i===v.customSort&&t!==void 0?(a=[...t],e.orderOptions.data={orderType:s,orderBy:a}):(o===S.BarSeries||o===S.LineSeries)&&(s=i===v.xAxisAsc||i===v.xAxisDesc?w.Category:w.YValue,a=i===v.xAxisAsc||i===v.yAxisAsc?N.Ascending:N.Descending,e.orderOptions.data={orderType:s,orderBy:a})},_=i=>i?.series?.[0]?.x??"",Fe=i=>{let{config:e,numericFields:t,aggregationType:s,mode:a,layer:o,numericFieldIndex:c,seriesIndex:n,splitByField:d=""}=i,l=K(e.series),m=U(e.series),g=o?oe(o).objectIdField:"FID",f=_(e),r=t.length===1&&t[0]===g,y="y",u="y";switch(l){case S.PieSeries:{s!==p.NoAggregation?a===Ke.Category?(y=`${s}_${t[0]}_0`.toUpperCase(),u=r?z(p.Count):z(`${s} of ${t[0]}`)):y=Be:y=t[0];break}case S.BarSeries:case S.LineSeries:case S.ComboLineAndBarSeries:case S.RadarSeries:{if(d===""||t.length>1)f===P||f===void 0||f.trim()===""||m===V.BarAndLineFromFields?y=we:(y=`${s}_${t[c??0]}_${c??0}`.toUpperCase(),u=r?z(p.Count):z(`${s} of ${t[c??0]}`));else{let x=t[0];y=`${s}_${x}_${n??0}`.toUpperCase(),u=r?z(p.Count):z(`${s} of ${x}`)}break}}return{name:y,description:u}},ci=i=>{let e,t=i.series[0];return M(t)&&(e=t.temporalBinning?.size),e},di=i=>{let e,t=i.series[0];return M(t)&&(e=t.temporalBinning?.unit),e},gi=i=>{let e,t=i.series[0];return M(t)&&(e=t.temporalBinning?.timeAggregationType),e},yi=i=>{let e,t=i.series[0];return M(t)&&(e=t.temporalBinning?.trimIncompleteTimeInterval),e},ui=i=>{let e,t=i.series[0];return M(t)&&(e=t.temporalBinning?.nullPolicy),e},Je=(i,e)=>{e?.series?.forEach(t=>{M(t)&&(t.temporalBinning??={},t.temporalBinning.size=i)}),b({config:e,value:null,axisIndex:1,isMax:!1}),b({config:e,value:null,axisIndex:1,isMax:!0})},fi=(i,e)=>{e?.series?.forEach(t=>{M(t)&&(t.temporalBinning??={},t.temporalBinning.nullPolicy=i)}),b({config:e,value:null,axisIndex:1,isMax:!1}),b({config:e,value:null,axisIndex:1,isMax:!0})},Nt=(i,e)=>{e.series?.forEach(t=>{M(t)&&(t.temporalBinning??={},t.temporalBinning.unit=i)}),b({config:e,value:null,axisIndex:1,isMax:!1}),b({config:e,value:null,axisIndex:1,isMax:!0})},Mt=(i,e)=>{e.series?.forEach(t=>{M(t)&&(t.temporalBinning??={},t.temporalBinning.timeAggregationType=i)}),b({config:e,value:null,axisIndex:1,isMax:!1}),b({config:e,value:null,axisIndex:1,isMax:!0})},Ot=(i,e)=>{e.series?.forEach(t=>{M(t)&&(t.temporalBinning??={},t.temporalBinning.trimIncompleteTimeInterval=i)}),b({config:e,value:null,axisIndex:1,isMax:!1}),b({config:e,value:null,axisIndex:1,isMax:!0})},$t=i=>{Je(0,i)};async function mi(i){let{config:e,layer:t,xAxisField:s,splitByField:a,layerFieldsInfo:o,aggregationFields:c,fetchNullValues:n}=i,d=o.filter(x=>x.name===a)[0]?.type,l=n!==!0?`${a} IS NOT NULL`:"",m=s&&n!==!0?`${s} IS NOT NULL`:"",{where:g}=e?.dataFilters??{},f={where:me([g,l,m]),orderByFields:De(a)?[]:[`${a} ${N.Ascending}`],geometry:e?.dataFilters?.geometry},r=t,y="";c.length===0?y=r?.objectIdField??"":[y]=c;let u=await pe({queryObject:r,category:e?.series[0].x??"",splitByField:a,queryConfig:f});if(e){let x=e?.series.map(F=>ae({where:F.query?.where})?.toString()??"").filter(F=>F!==void 0&&F!=="");u=Ee({arrayA:u,arrayB:x,getKey:F=>F.toString()})}return{categoriesArray:u,splitByFieldType:d,numericalField:y}}function jt(i,e){let t=e==="";for(let s of i)if(e===s.name){t=!0;break}return t}function kt(i,e){let t=Pe(i),s=e.length===0,a=0;for(let o of e){for(let c of t)if(o===c&&(a+=1),a===e.length){s=!0;break}if(s)break}return s}function Dt(i,e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(s=>{Object.defineProperty(i.prototype,s,Object.getOwnPropertyDescriptor(t.prototype,s)||Object.create(null))})})}async function xi(i){let{layerInfo:e,config:t,category:s}=i,{layer:a}=e,{where:o}=t?.dataFilters??{},{fetchNullValues:c}=t?.series?.[0]?.query??{},n=c!==!0?`${s} IS NOT NULL`:"",d={where:me([o,n]),orderByFields:[],geometry:t?.dataFilters?.geometry},l=ne(a);return(await pe({queryObject:a,category:s,queryConfig:d})).map(m=>{let g=String(m);return re({fieldName:s,fieldValueToMatch:g,subtypeInfo:l,fieldList:e.layerFieldsInfo})??g})}async function Z(i){let{seriesIndex:e,config:t,layerInfo:s}=i,{objectIdField:a}=s??{},o,c=t.series[e??0],n=!1,d=!1;if(c===void 0){let r=t.series;n=r.slice(0,e).every(y=>A(y)),d=r.slice(0,e).every(y=>h(y))}else n=A(c),d=h(c);n?o=await Oe({seriesIndex:e,objectIDField:a}):d?o=await $e({seriesIndex:e,objectIDField:a}):o=await je({seriesIndex:e,objectIDField:a});let l=_(t),m=t.series[0]?.dataLabels?.visible??!1,g={...o,x:l,y:"",dataLabels:{...o.dataLabels,type:o.dataLabels?.type??S.Text,content:o.dataLabels?.content??{type:he.TS},visible:m}},f=k(t);if(g.query={groupByFieldsForStatistics:[l]},f!==p.NoAggregation&&a!==void 0){let r=`${f}_${a}_0`.toUpperCase();g.y=r,g.query.outStatistics=[{statisticType:f,onStatisticField:a,outStatisticFieldName:r}]}if(A(g)||h(g)||C(g)&&t.series[0]?.binTemporalData){let r;if(t?.series?.[0]!==void 0&&(r=U(t.series)),r!==V.BarAndLineNoAggregation&&r!==V.BarAndLineSplitByNoAggregation){let y=di(t);y===H.Quarter&&(y=H.Month),g.temporalBinning={size:ci(t),unit:y,timeAggregationType:gi(t),trimIncompleteTimeInterval:yi(t),nullPolicy:ui(t)}}}return W(g)}async function Q(i,e){let{layerFieldsInfo:t,objectIdField:s}=e,a=_(i),o=U(i.series),c=O(i),n=k(i),d=X(i),l=c.length===0||c.includes(s),m=await fe(n),g=l?"":c.map(I=>j(t??[],I)).join(", "),f=j(t??[],a),r=j(t??[],d),y=i.series.some(I=>C(I)),u=y?"category":"xAxisField",x=f,F="",$=await ie(te(document.documentElement).t9nLocale,G("./assets/common/t9n"),"messages.");if(o===V.BarAndLineFromFields)F=E($.titleLabels.aggrTypeOfAggrFields,{aggregationType:m,aggregationFields:g});else if(n===p.NoAggregation){let I=l?s:g;if(d===""){let R=y?"aggrTypeCategory":"aggrTypeXAxisField";F=E($.titleLabels[R],{aggregationType:I,[u]:x})}else{let R=y?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";F=E($.titleLabels[R],{aggregationType:I,[u]:x,splitByField:r})}}else if(n===p.Count)if(d===""){let I=y?"aggrTypeCategory":"aggrTypeXAxisField";F=E($.titleLabels[I],{aggregationType:m,[u]:x})}else{let I=y?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";F=E($.titleLabels[I],{aggregationType:m,[u]:x,splitByField:r})}else if(d!==""){let I=y?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";F=E($.titleLabels[I],{aggregationType:m,aggregationField:g,[u]:x,splitByField:r})}else if(c.length>0){let I=y?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";F=E($.titleLabels[I],{aggregationType:m,aggregationFields:g,[u]:x})}return F}var Qe=i=>ae({where:i.query?.where,normalize:!1,escape:!1})??"",k=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??p.NoAggregation,Et=async(i,e,t)=>{let s=O(e),a=X(e),o=await ce(e,t),c=await de(e,t);if(await Ie({splitByField:a,numericFields:s,aggregationType:i,config:e,layerInfo:t}),c){let n=await J({config:e,layerInfo:t,numericFields:O(e),aggregationType:k(e)});Y(e,1,n)}e.title&&o&&(e.title.content.text=await Q(e,t)),b({config:e,value:null,axisIndex:1,isMax:!1}),b({config:e,value:null,axisIndex:1,isMax:!0}),ve(e,t)},X=ye(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return Ve(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),Vt=async(i,e,t)=>{let s=O(e),a=k(e),o=await ce(e,t),c=await de(e,t);if(await Ie({splitByField:i,numericFields:s,aggregationType:a,config:e,layerInfo:t}),c){let n=await J({config:e,layerInfo:t,numericFields:O(e),aggregationType:k(e)});Y(e,1,n)}e.title&&o&&(e.title.content.text=await Q(e,t)),b({config:e,value:null,axisIndex:1,isMax:!1}),b({config:e,value:null,axisIndex:1,isMax:!0})},O=ye(i=>{let e=[];if(X(i)==="")e=i?.series.map(t=>{let s=t.query?.outStatistics?.map(a=>a.onStatisticField)??[];return s?.length>0?s:t.y}).flat()??[];else{let t=i?.series?.[0],s=t?.query?.outStatistics?.[0]?.onStatisticField??[t?.y].flat()[0];e=s!==void 0?[s]:[]}return[...new Set(e.filter(t=>t!==""))]},i=>i?.series),pi=async(i,e,t)=>{let{objectIdField:s}=t,a=k(e),o=await ce(e,t),c=await de(e,t);i.length===0?(i.push(s),a=p.Count):a===p.Count&&i.length>=1&&!i.includes(s)&&(a=p.Sum);let n=X(e);if(await Ie({splitByField:n,numericFields:i,aggregationType:a,config:e,layerInfo:t}),c){let d=await J({config:e,layerInfo:t,numericFields:O(e),aggregationType:k(e)});Y(e,1,d)}e.title&&o&&(e.title.content.text=await Q(e,t)),b({config:e,value:null,axisIndex:1,isMax:!1}),b({config:e,value:null,axisIndex:1,isMax:!0}),ve(e,t)},_t=async(i,e,t)=>{let{layerFieldsInfo:s}=t??{},a=e?.series?.length??0,o=_(e),c=await ce(e,t),n=await de(e,t),d=await Ii(e,t),l,m=e.series.some(r=>C(r)),g=Ue(e.series),f=Xe(e.series);if(s!==void 0){let r=ze(s);!r.includes(o)&&r.includes(i)?l=qe():r.includes(o)&&!r.includes(i)&&(m?l=se():l=Ne()),s.find(y=>y.name===i)?.type===ue.String&&(l=se()),l!==void 0&&await ti(e,l)}if(a===0&&(e.series=[await Z({config:e,layerInfo:t})]),e.series.forEach(r=>{r.x=i,r.query!==void 0&&(r.query.groupByFieldsForStatistics=[i])}),d){let r=j(s,i);Y(e,0,r)}if(t!==void 0){if(n){let y=await J({config:e,layerInfo:t,numericFields:O(e),aggregationType:k(e)});Y(e,1,y)}e.title&&c&&(e.title.content.text=await Q(e,t)),ve(e,t);let r=O(e);await pi(r,e,t)}if(b({config:e,value:null,axisIndex:1,isMax:!1}),b({config:e,value:null,axisIndex:1,isMax:!0}),g||f){b({config:e,value:null,axisIndex:0,isMax:!1}),b({config:e,value:null,axisIndex:0,isMax:!0}),Je(0,e);let r=l?.type===S.DateAxisFormat?ee.Null:ee.Interpolate;fi(r,e)}};function ve(i,e){let t=!1,s=k(i),a=O(i);s===p.Count?t=!0:s===p.NoAggregation&&(t=a.every(n=>{let d=e.layerFieldsInfo.find(l=>l.name===n);return d!==void 0?xe(d):!1})),We(i,1,t);let o=i.series.some(n=>A(n)),c=i.series.some(n=>h(n));if(o||c){let n=_(i),d=e.layerFieldsInfo.find(m=>m.name===n),l=d!==void 0&&xe(d);We(i,0,l)}}var bi=i=>{let e=v.xAxisAsc,t=i.orderOptions?.data?.orderType??w.Category,s=i.orderOptions?.data?.orderBy??N.Ascending;return t===w.Category&&Array.isArray(s)?e=v.customSort:t===w.Category?s===N.Ascending?e=v.xAxisAsc:e=v.xAxisDesc:s===N.Ascending?e=v.yAxisAsc:e=v.yAxisDesc,e};async function Fi(i){let{numericFields:e,aggregationType:t,config:s,layerInfo:a}=i,o=!1,c=await Z({config:s,layerInfo:a,seriesIndex:0}),n=await ie(te(document.documentElement).t9nLocale,G("./assets/common/t9n"),"messages."),d=Fe({config:s,numericFields:e,aggregationType:t,layer:a.layer}).name,l={...c,id:`series_${Date.now()}`,name:n.axisLabels.values,x:P,y:d},m=[];for(let f of e)m.push({onStatisticField:f,outStatisticFieldName:`${f}_0`.toUpperCase(),statisticType:t});l.query={outStatistics:m};let g=s.series[0];return g!==void 0&&(l.id=g.id,s.colorMatch||(C(g)&&C(l)?l.fillSymbol=g.fillSymbol:(A(l)&&A(g)||h(l)&&h(g))&&(l.lineSymbol=g.lineSymbol,l.markerSymbol=g.markerSymbol),o=!0),l.id=g.id,g.name!==c.name&&(l.name=g.name)),s.series.length===1&&!s.colorMatch&&(C(l)?l.fillSymbol=s.series[0].fillSymbol:(A(l)||h(l))&&(l.lineSymbol=s.series[0].lineSymbol,l.markerSymbol=s.series[0].markerSymbol),o=!0),s.colorMatch=!o,[l]}async function Ge(i){let{numericFields:e,aggregationType:t,config:s,layerInfo:a}=i,{layerFieldsInfo:o,objectIdField:c}=a,n=[],d=!1;for(let l=0;l<e.length;l+=1){let m=await Z({config:s,layerInfo:a,seriesIndex:l}),g=Fe({config:s,numericFields:e,aggregationType:t,layer:a.layer,numericFieldIndex:l}).name,f=e[l],r={...m,query:{...m.query}};f!==c&&(r={...r,id:f,name:j(o,f)});let y=f;r.query!==void 0&&(t!==p.NoAggregation?(y=g,r.query.outStatistics=[{...m.query?.outStatistics?.[0]??{},onStatisticField:f,outStatisticFieldName:g,statisticType:t}]):delete r.query.outStatistics),r.y=y;let u=s.series.find(x=>x.query?.outStatistics?.[0]?.onStatisticField===f&&x.query.where===void 0);if(u!==void 0&&typeof u.y=="string"&&u.y.trim()!==""){s.colorMatch||(C(r)&&C(u)?r.fillSymbol=u.fillSymbol:(A(r)&&A(u)||h(r)&&h(u))&&(r.lineSymbol=u.lineSymbol,r.markerSymbol=u.markerSymbol),d=!0);let x=await Z({config:s,layerInfo:a,seriesIndex:l});r.id=u.id,u.id!==x.id&&u.name!==x.name&&(r.id=u.id,r.name=u.name)}n.push(r)}return s.series.length===1&&n.length===1&&!s.colorMatch&&(C(s.series[0])&&C(n[0])?n[0].fillSymbol=s.series[0].fillSymbol:(A(s.series[0])&&A(n[0])||h(s.series[0])&&h(n[0]))&&(n[0].lineSymbol=s.series[0].lineSymbol,n[0].markerSymbol=s.series[0].markerSymbol),d=!0),s.colorMatch=!d,n}async function vi(i){let{splitByField:e,numericFields:t,aggregationType:s,config:a,layerInfo:o}=i,{layer:c,layerFieldsInfo:n}=o,{fetchNullValues:d}=a?.series?.[0]?.query??{},l=_(a),m=l!==P?l:void 0,{categoriesArray:g,splitByFieldType:f,numericalField:r}=await mi({config:a,layer:c,layerFieldsInfo:n,xAxisField:m,aggregationFields:t,splitByField:e,fetchNullValues:d}),y=[],u=!1;if(g.length===0){y=await Ge({numericFields:t,aggregationType:s,config:a,layerInfo:o});for(let x of y)x.query&&(x.query.where=`${e}=''`)}else for(let x=0;x<g.length;x+=1){let F=g[x],$=Fe({config:a,numericFields:t,aggregationType:s,layer:o.layer,seriesIndex:x,splitByField:e}).name,I=await Z({config:a,layerInfo:o,seriesIndex:x}),R={fieldName:e,fieldValueToMatch:F??"",subtypeInfo:ne(o.layer),fieldList:o.layerFieldsInfo},He=re(R),ge=`${F}`,B={...I,id:ge,name:He??ge,y:$,query:{...I.query,where:`${e}=${f===ue.String&&F!==null?`'${F}'`:F}`,outStatistics:s!==p.NoAggregation?[{...I.query?.outStatistics?.[0]??{},onStatisticField:r,outStatisticFieldName:$,statisticType:s}]:void 0}};s===p.NoAggregation&&(B.query!==void 0&&(delete B.query.outStatistics,delete B.query.groupByFieldsForStatistics),B.y=r);let D=a.series.find(ei=>String(Qe(ei)).trim().replace(/'/gu,"")===ge);D!==void 0&&(a.colorMatch||(C(B)&&C(D)?B.fillSymbol=D.fillSymbol:(A(B)&&A(D)||h(B)&&h(D))&&(B.lineSymbol=D.lineSymbol,B.markerSymbol=D.markerSymbol),u=!0),B.id=D.id,B.name=D.name),y.push(B)}return a.colorMatch=!u,y}var Ie=async i=>{let{splitByField:e,numericFields:t,aggregationType:s,config:a,layerInfo:o}=i,{x:c}=a.series[0],n=U(a.series);e===""||t.length>1?c===P||c===void 0||c.trim()===""||n===V.BarAndLineFromFields?a.series=await Fi({config:a,layerInfo:o,numericFields:t,aggregationType:s}):a.series=await Ge({config:a,layerInfo:o,numericFields:t,aggregationType:s}):a.series=await vi({config:a,layerInfo:o,splitByField:e,numericFields:t,aggregationType:s})},zt=i=>{let{config:e,seriesIndex:t,layerInfo:s,commonStrings:a}=i,o=e.series?.[t],c=X(e),n;if(U(e.series)===V.BarAndLineFromFields)n=a.axisLabels.values;else if(Ae(c)){let d=o.query?.outStatistics?.[0]?.onStatisticField;d!==void 0&&d!==s.objectIdField&&(n=j(s.layerFieldsInfo,d))}else{let d=String(Qe(o)).trim().replace(/'/gu,""),l={fieldName:X(e),fieldValueToMatch:d??"",subtypeInfo:ne(s.layer),fieldList:s.layerFieldsInfo};n=re(l)??d}return n??o.id},Pt=(i,e)=>{e.orderOptions??={};let t=e.orderOptions?.data?.orderType;bi(e)===v.customSort&&t===w.Category&&(e.orderOptions.data={orderType:w.Category,orderBy:[...i]})},Ut=async(i,e)=>{let t=_(i),s=ii(i)?.type,a=O(i),o=U(i.series),c=[];return s===S.CategoryAxisFormat&&(o===V.BarAndLineFromFields||t===P?c=a.map(n=>j(e?.layerFieldsInfo,n)):t.trim()!==""&&t!==P&&e!==void 0&&(c=await xi({layerInfo:e,config:i,category:t}))),c};async function ce(i,e){let t=await Q(i,e),s=oi(i),a=le(i);return t===s||a}async function de(i,e){let t=await J({config:i,layerInfo:e,numericFields:O(i),aggregationType:k(i)}),s=be(1,i),a=le(i);return t===s||a}async function Ii(i,e){let t=j(e.layerFieldsInfo,_(i)),s=be(0,i),a=le(i);return t===s||a}function Xt(i){return i?.series?.[0]?.binTemporalData??!1}function Rt(i,e){e?.series.forEach(t=>{t.binTemporalData=i,i?t.temporalBinning={unit:H.Day,size:0,timeAggregationType:Te.Start,trimIncompleteTimeInterval:!0,nullPolicy:ee.Null}:delete t.temporalBinning})}var Kt=(i,e)=>{e.series.forEach(t=>{t.query&&(t.query.fetchNullValues=i)})},Wt=i=>i.series.some(e=>e.query?.fetchNullValues),Yt=i=>i.series.map(e=>String(ae({where:e.query?.where}))).filter(e=>e!==void 0&&e.trim()!==""),Zt=i=>i.dataFilters,Jt=(i,e)=>{i!==void 0?e.dataFilters=i:delete e.dataFilters};return{a:pe,b:Y,c:J,d:Pi,e:b,f:Ui,g:ii,h:ti,i:We,j:Xi,k:Ri,l:Ki,m:Wi,n:Yi,o:Zi,p:oi,q:Ji,r:Qi,s:Gi,t:Hi,u:et,v:it,w:tt,x:st,y:at,z:ni,A:ot,B:nt,C:rt,D:lt,E:ct,F:dt,G:gt,H:yt,I:ut,J:ft,K:mt,L:be,M:xt,N:pt,O:bt,P:Ft,Q:vt,R:It,S:St,T:Tt,U:At,V:ht,W:Bt,X:wt,Y:Ct,Z:Lt,_:qt,$:_,aa:Fe,ba:ci,ca:di,da:gi,ea:yi,fa:ui,ga:Je,ha:fi,ia:Nt,ja:Mt,ka:Ot,la:$t,ma:mi,na:jt,oa:kt,pa:Dt,qa:xi,ra:Q,sa:k,ta:Et,ua:X,va:Vt,wa:O,xa:pi,ya:_t,za:bi,Aa:Ie,Ba:zt,Ca:Pt,Da:Ut,Ea:Xt,Fa:Rt,Ga:Kt,Ha:Wt,Ia:Yt,Ja:Zt,Ka:Jt}},"intl","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",a)
|