@arcgis/charts-components 5.0.0-next.13 → 5.0.0-next.14
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/{2WY5I7MT.js → 24MJI7S7.js} +2 -2
- package/dist/cdn/{4PIDVK66.js → 2C2HPKZ2.js} +2 -2
- package/dist/cdn/{QC6RA53Y.js → 2CHWKIPW.js} +2 -2
- package/dist/cdn/{7VPD6BTC.js → 2FJQJZ54.js} +2 -2
- package/dist/cdn/{PJH6WBIF.js → 2FRLIQU7.js} +2 -2
- package/dist/cdn/{XZGAMPZE.js → 2GWYD5AM.js} +2 -2
- package/dist/cdn/{ZMYBIPRW.js → 2IMNWE2K.js} +2 -2
- package/dist/cdn/{7RYUYLI3.js → 2JTKMQJV.js} +2 -2
- package/dist/cdn/{RKBXEX2I.js → 2KVOFVEH.js} +2 -2
- package/dist/cdn/{YVJ4R5D3.js → 2NCNXBCO.js} +1 -1
- package/dist/cdn/{MZD74T66.js → 2ST7WVDE.js} +2 -2
- package/dist/cdn/{H3YN4BEX.js → 33R74LOR.js} +2 -2
- package/dist/cdn/{Z7JZNXHI.js → 3VTJ57FO.js} +2 -2
- package/dist/cdn/{OKQ7WM2R.js → 3Y3MIM7I.js} +2 -2
- package/dist/cdn/{BVAJGX2B.js → 3ZEY3GUA.js} +2 -2
- package/dist/cdn/{7NIFGXTS.js → 44DDGZRD.js} +2 -2
- package/dist/cdn/{Q4DN7TK6.js → 46AWIEWE.js} +2 -2
- package/dist/cdn/{BY5HY7B3.js → 4CNWB55C.js} +1 -1
- package/dist/cdn/{4LWVC4DU.js → 4KRA4TOH.js} +2 -2
- package/dist/cdn/{JZQVT4V2.js → 4SIHXTT3.js} +2 -2
- package/dist/cdn/{5EI4WAME.js → 4SYLWQRB.js} +2 -2
- package/dist/cdn/{6UOH6XYF.js → 4YBO645G.js} +18 -18
- package/dist/cdn/{DY5GHRDF.js → 5D5MJ6JB.js} +2 -2
- package/dist/cdn/{IS2ZJXGX.js → 5RS2NW2T.js} +2 -2
- package/dist/cdn/{ATPRZA2E.js → 5ZU63RY7.js} +2 -2
- package/dist/cdn/{PEH65QC7.js → 64AKKTPO.js} +2 -2
- package/dist/cdn/{6LPANFJT.js → 64MMISFF.js} +2 -2
- package/dist/cdn/{EH5J64LO.js → 66GNVQXT.js} +2 -2
- package/dist/cdn/{4CS3FR2O.js → 6AKI7HMD.js} +2 -2
- package/dist/cdn/{3YGBJRGR.js → 6BR6PSFP.js} +2 -2
- package/dist/cdn/{AAKHKOUQ.js → 6CXCUFBB.js} +2 -2
- package/dist/cdn/{DEWKTZZP.js → 6MCARUMD.js} +2 -2
- package/dist/cdn/{C5F3ZQKM.js → 6RWN4DUY.js} +2 -2
- package/dist/cdn/{XLH3FKVE.js → 6YHSQHQG.js} +2 -2
- package/dist/cdn/{KZKGOGEM.js → 74LPYCC3.js} +2 -2
- package/dist/cdn/{6D4POUHT.js → 7CC7QUMQ.js} +2 -2
- package/dist/cdn/{YIVZNNY7.js → 7FIOIRY2.js} +2 -2
- package/dist/cdn/{AN3Z3DED.js → 7QZZNLYL.js} +2 -2
- package/dist/cdn/{GZVDZDHR.js → 7T7KGW47.js} +2 -2
- package/dist/cdn/{44RLTQMQ.js → 7ZMEVZG4.js} +2 -2
- package/dist/cdn/{2DZVA65I.js → A4BSXYBI.js} +2 -2
- package/dist/cdn/A6KT6GKZ.js +4 -0
- package/dist/cdn/AA25GRSO.js +4 -0
- package/dist/cdn/{5P7UJ6TT.js → ACDSZAZY.js} +2 -2
- package/dist/cdn/{VCFQ5BLB.js → ACW67Q5G.js} +2 -2
- package/dist/cdn/{HMSQ5QXL.js → AQ75LURI.js} +2 -2
- package/dist/cdn/{O23FJD3R.js → AT6TOOEH.js} +2 -2
- package/dist/cdn/{TF5SSMI5.js → AU2UZT7E.js} +2 -2
- package/dist/cdn/{RFBF27WR.js → AXWUIKID.js} +2 -2
- package/dist/cdn/{ULTLJ2O4.js → B5HCYGP5.js} +2 -2
- package/dist/cdn/{THOFTDTR.js → BBR5CXKK.js} +2 -2
- package/dist/cdn/{LYFUTZMU.js → BFICDIIE.js} +2 -2
- package/dist/cdn/{2YKNEYVJ.js → BFTFGVOJ.js} +2 -2
- package/dist/cdn/{4ZMMW6TF.js → BTJ4RVCU.js} +2 -2
- package/dist/cdn/{7DWESA4W.js → BYRJVGII.js} +2 -2
- package/dist/cdn/{WSALX4ON.js → C4SFDTPY.js} +2 -2
- package/dist/cdn/{D47UATDE.js → C4U6RP3E.js} +2 -2
- package/dist/cdn/{54ZLBQBJ.js → CAEGCVMC.js} +2 -2
- package/dist/cdn/{ILWDMLET.js → CMQ4THXL.js} +2 -2
- package/dist/cdn/{76KBTH62.js → COXCRQEI.js} +2 -2
- package/dist/cdn/{Q4HFSM5X.js → CSNUGWE2.js} +2 -2
- package/dist/cdn/{IJ75KTR2.js → D4QBJAFY.js} +2 -2
- package/dist/cdn/{J65EAWEH.js → DIG7JUOP.js} +2 -2
- package/dist/cdn/{VK6HZU5V.js → DJQ6IHYW.js} +2 -2
- package/dist/cdn/{CGBFYWHG.js → DQDX2DAA.js} +2 -2
- package/dist/cdn/{MCO2TTQL.js → DV56YPAG.js} +2 -2
- package/dist/cdn/{DYK7JCLK.js → E2RJD45X.js} +2 -2
- package/dist/cdn/{7PTJ4CQ2.js → EE4TDMK2.js} +2 -2
- package/dist/cdn/{KCVWQ2SH.js → ETQN6K3Z.js} +2 -2
- package/dist/cdn/{Z4NIAXRJ.js → EYEL3HCV.js} +2 -2
- package/dist/cdn/{7CWODO7C.js → EZAP5ONH.js} +2 -2
- package/dist/cdn/{6YKFHI43.js → EZMCFPNZ.js} +2 -2
- package/dist/cdn/{KA2Z5KD6.js → F3ATFPLN.js} +2 -2
- package/dist/cdn/{PDKJGDKZ.js → FGTMTH4H.js} +2 -2
- package/dist/cdn/{I4T6G5TR.js → G54ZE57N.js} +2 -2
- package/dist/cdn/{UGSXATIJ.js → G5AJPP7A.js} +2 -2
- package/dist/cdn/{7XMX5OUC.js → GFGSRBD2.js} +2 -2
- package/dist/cdn/{QBVWXU32.js → GQ7DC5FB.js} +2 -2
- package/dist/cdn/{2IQVM3N4.js → HCEXZWTP.js} +2 -2
- package/dist/cdn/{E5TUJCXM.js → HFKGICVX.js} +2 -2
- package/dist/cdn/{XQJTQYO3.js → HHGLENQO.js} +2 -2
- package/dist/cdn/{MMYQI55D.js → HPMB6DB3.js} +2 -2
- package/dist/cdn/{XCIEWMIP.js → HRZVDZMG.js} +2 -2
- package/dist/cdn/{VXK3XGG5.js → HYQR7ADL.js} +2 -2
- package/dist/cdn/{PUPFEXOY.js → I64IYKKH.js} +2 -2
- package/dist/cdn/{IOWSM6YZ.js → IVXRPDLC.js} +1 -1
- package/dist/cdn/{HROS2OSX.js → IWTJBTU7.js} +2 -2
- package/dist/cdn/{J5FNKHCP.js → J5VNG2M5.js} +2 -2
- package/dist/cdn/{VLCMD5G6.js → JAZ44YVW.js} +2 -2
- package/dist/cdn/JN2BSP6G.js +4 -0
- package/dist/cdn/JQMTH3YW.js +6 -0
- package/dist/cdn/{OZTDCWOR.js → K73XLXBR.js} +2 -2
- package/dist/cdn/{5S67JF46.js → KJMRGLV2.js} +2 -2
- package/dist/cdn/{JMNJEVGH.js → KJU6JG2H.js} +2 -2
- package/dist/cdn/{V6BSO4HF.js → KNPE6FRL.js} +2 -2
- package/dist/cdn/{2ROUX6TO.js → KQYRV5PM.js} +2 -2
- package/dist/cdn/{A2RVATQV.js → KRSHATLS.js} +2 -2
- package/dist/cdn/{ZO2YQVMD.js → KWBKU46N.js} +2 -2
- package/dist/cdn/{MVSS7SGU.js → KYD45MUA.js} +2 -2
- package/dist/cdn/{7USOFA4I.js → L2Q4ABYM.js} +2 -2
- package/dist/cdn/{N7AQDPB7.js → L7DWE4OH.js} +2 -2
- package/dist/cdn/{R4556EWJ.js → L7USUIEA.js} +1 -1
- package/dist/cdn/{ZRLBIR7S.js → LB3JZDFH.js} +2 -2
- package/dist/cdn/{OMVTQEIR.js → LC5JIM6W.js} +1 -1
- package/dist/cdn/{KNW7ZMCD.js → LLPOW5G6.js} +2 -2
- package/dist/cdn/{2KZRELLP.js → LMIAB7BL.js} +2 -2
- package/dist/cdn/{MDIIJDZN.js → LU6GJFV4.js} +2 -2
- package/dist/cdn/{EEEGEZOI.js → LU7U6APK.js} +2 -2
- package/dist/cdn/{VHOIHI3V.js → LXDRUVKW.js} +2 -2
- package/dist/cdn/{QSEN63RJ.js → LYKZOCUC.js} +2 -2
- package/dist/cdn/{YCQM2VBR.js → MF7VYHFR.js} +2 -2
- package/dist/cdn/{KVCJQCE6.js → MIIWU5CL.js} +2 -2
- package/dist/cdn/{IUQM7NTE.js → MKKAYDU5.js} +2 -2
- package/dist/cdn/{YKGO4QBT.js → MRJF4QPU.js} +2 -2
- package/dist/cdn/{YQDON6CP.js → MTKPDQ2Z.js} +1 -1
- package/dist/cdn/{UB23KURL.js → MYZE5ODQ.js} +2 -2
- package/dist/cdn/{CMJ6MWSF.js → NHX3SHEV.js} +2 -2
- package/dist/cdn/{X4ADIM5L.js → NJH4LV57.js} +2 -2
- package/dist/cdn/{B7B2F3VL.js → NNELYOBA.js} +2 -2
- package/dist/cdn/{FX6JGERW.js → NSUJDNWC.js} +2 -2
- package/dist/cdn/{JBGSJHAT.js → NUFCFRVZ.js} +1 -1
- package/dist/cdn/{MZARUXMD.js → NYRGZY4T.js} +2 -2
- package/dist/cdn/{UVHLCTSW.js → O3OLJTFG.js} +2 -2
- package/dist/cdn/{GXW3BGAY.js → O7QTG4AT.js} +2 -2
- package/dist/cdn/{XQ3WKZR4.js → OHNG7ZK4.js} +2 -2
- package/dist/cdn/{AZ2CKUL5.js → OPISWIIZ.js} +2 -2
- package/dist/cdn/{SCJHQJWS.js → OU4XZNDM.js} +2 -2
- package/dist/cdn/{PHWXS4LW.js → OV4O6VKY.js} +2 -2
- package/dist/cdn/{6H2Z22XB.js → P7C2WOMX.js} +2 -2
- package/dist/cdn/{O3LDD74B.js → P7N6PUEA.js} +2 -2
- package/dist/cdn/{LJE2DEA2.js → PAN7MYXB.js} +2 -2
- package/dist/cdn/{G2EJYYKN.js → PARXPXOS.js} +2 -2
- package/dist/cdn/{QLYDF2JV.js → PAYFUXL6.js} +2 -2
- package/dist/cdn/{ERLIW3HZ.js → PUM3HXB5.js} +2 -2
- package/dist/cdn/{7MECPUCX.js → PZCIXLID.js} +2 -2
- package/dist/cdn/{OQIATH7G.js → QEY3ZHQA.js} +2 -2
- package/dist/cdn/{OYHO4BOA.js → QRKAR46N.js} +2 -2
- package/dist/cdn/{MO73QHYP.js → QSMMEJYZ.js} +2 -2
- package/dist/cdn/{VXOBVGAM.js → QWORMXMF.js} +2 -2
- package/dist/cdn/{FBZQGW5A.js → QX2OSFHR.js} +2 -2
- package/dist/cdn/{QLSUV3MA.js → R4W3O2SA.js} +2 -2
- package/dist/cdn/{MUQATTSO.js → R5IDFIKD.js} +2 -2
- package/dist/cdn/{VPVWXLLC.js → RHFRHUH7.js} +2 -2
- package/dist/cdn/{IVT62N2K.js → RHME3KNC.js} +1 -1
- package/dist/cdn/{RMMOG7AZ.js → RJUNOQ67.js} +2 -2
- package/dist/cdn/{BI23P3P2.js → RLXBYZVW.js} +2 -2
- package/dist/cdn/{QEKWSEYR.js → RSNAAU43.js} +2 -2
- package/dist/cdn/{WDFVR55Y.js → S4A5BZYB.js} +2 -2
- package/dist/cdn/{BSIWCTLU.js → SNEWASL4.js} +2 -2
- package/dist/cdn/{UVTVCANZ.js → SQZB2247.js} +2 -2
- package/dist/cdn/{W345BUVZ.js → SVNADTSJ.js} +2 -2
- package/dist/cdn/{TMU3LLUA.js → TDTRBDTB.js} +2 -2
- package/dist/cdn/{QOMAKSSC.js → TUZHHMQL.js} +2 -2
- package/dist/cdn/{EXGXS6IC.js → U5AM3ZJR.js} +2 -2
- package/dist/cdn/{2KGRZS4B.js → U7V4J6ZH.js} +2 -2
- package/dist/cdn/{KXHUKCOP.js → UESEZ6XR.js} +2 -2
- package/dist/cdn/{5YKE32ZS.js → UH2YISXX.js} +2 -2
- package/dist/cdn/{DOPFX4SB.js → UONTDZXK.js} +2 -2
- package/dist/cdn/{LSJO3ECB.js → UYGH4OUP.js} +2 -2
- package/dist/cdn/{PR34OOND.js → V3FQRTAU.js} +1 -1
- package/dist/cdn/{FSBBCC67.js → VAMBXURM.js} +2 -2
- package/dist/cdn/{NIXAGKKC.js → VDWAYZPZ.js} +2 -2
- package/dist/cdn/{57635DD6.js → VGHPMI2M.js} +2 -2
- package/dist/cdn/{BZLAVNQJ.js → VKBJHYFR.js} +2 -2
- package/dist/cdn/{M4SEBR7O.js → VNZ4NKS6.js} +2 -2
- package/dist/cdn/{LBK2USAQ.js → VO2GXPU4.js} +4 -4
- package/dist/cdn/{FWDO34DM.js → W67EQ72D.js} +2 -2
- package/dist/cdn/{7HF3N6H5.js → WAWSQO47.js} +1 -1
- package/dist/cdn/{MPEI7RJI.js → WLLC33CT.js} +2 -2
- package/dist/cdn/{427SAJZF.js → XBCVZDAQ.js} +2 -2
- package/dist/cdn/{CXKIS5FH.js → XGYZPB43.js} +2 -2
- package/dist/cdn/{K3JAT7M5.js → XHEDLERR.js} +2 -2
- package/dist/cdn/{7YLL4R7C.js → XIIDWJEC.js} +2 -2
- package/dist/cdn/{BBIMUCPL.js → XSGQSK52.js} +2 -2
- package/dist/cdn/{WUGCEQ3O.js → XWCCAMPY.js} +2 -2
- package/dist/cdn/{23ZMWSAR.js → Y25ZSBK7.js} +2 -2
- package/dist/cdn/{EDNENDTJ.js → YPHC62Q2.js} +2 -2
- package/dist/cdn/{I7GRDKGE.js → YTKBCAXL.js} +2 -2
- package/dist/cdn/{TQWAXPE6.js → YTMKHXRW.js} +2 -2
- package/dist/cdn/{Y7QUHFB5.js → Z3GRO7DM.js} +2 -2
- package/dist/cdn/{7LU6ZBNR.js → ZJT3YMFR.js} +2 -2
- package/dist/cdn/{H7V6VO3C.js → ZJYPT2UY.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chart-rendering/common/data/utils/misc/index.d.ts +0 -8
- package/dist/chunks/action-bar-utils.js +9 -9
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +2 -2
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/baseline-stacking.js +2 -2
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/bg_BG2.js +1 -1
- package/dist/chunks/box-plot-data.js +6 -6
- package/dist/chunks/box-plot-model.js +15 -15
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +12 -12
- package/dist/chunks/combo-bar-line-chart-model.js +2 -2
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/config-update.js +454 -457
- package/dist/chunks/data.js +328 -328
- package/dist/chunks/default.js +1 -1
- package/dist/chunks/gauge-model.js +11 -11
- package/dist/chunks/heat-chart-model.js +8 -8
- package/dist/chunks/histogram-data.js +9 -9
- package/dist/chunks/histogram-model.js +2 -2
- package/dist/chunks/index.js +35 -35
- package/dist/chunks/index2.js +2 -2
- package/dist/chunks/index3.js +2 -2
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/index5.js +1 -1
- package/dist/chunks/interfaces.js +225 -221
- package/dist/chunks/interfaces2.js +1 -1
- package/dist/chunks/interfaces3.js +1 -1
- package/dist/chunks/interfaces4.js +2 -2
- package/dist/chunks/line-chart-model.js +6 -6
- package/dist/chunks/model-with-baseline-stacking.js +1 -1
- package/dist/chunks/model-with-data-labels.js +2 -2
- package/dist/chunks/model-with-multi-axes.js +2 -2
- package/dist/chunks/model-with-rotation.js +2 -2
- package/dist/chunks/pie-chart-data.js +33 -33
- package/dist/chunks/pie-chart-model.js +25 -25
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +6 -6
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/scatterplot-model.js +2 -2
- package/dist/chunks/serial-chart-model.js +21 -19
- package/dist/chunks/series-types.js +1 -1
- 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 +98 -98
- package/dist/components/arcgis-chart/customElement.d.ts +0 -2
- package/dist/components/arcgis-chart/customElement.js +1759 -1760
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/docs/api.json +5 -9
- package/dist/docs/docs.json +6 -10
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +2 -2
- package/dist/index.js +206 -205
- package/dist/loader.js +1 -1
- package/dist/model.js +1 -1
- package/dist/utils/chart-config/utils/index.d.ts +7 -0
- package/package.json +4 -4
- package/dist/cdn/EFUADL5X.js +0 -6
- package/dist/cdn/EKNBAJH5.js +0 -4
- package/dist/cdn/F3CH7OY3.js +0 -4
- package/dist/cdn/TMTC7FJZ.js +0 -4
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { W as S, d as Ii, u as W, m as re, b as _, g as me, t as
|
|
1
|
+
import { W as S, d as Ii, u as W, m as re, b as _, g as me, t as xe, e as ke, a as P, n as G, i as j, S as zt, o as $i } from "./series-types.js";
|
|
2
2
|
import "@arcgis/toolkit/intl";
|
|
3
|
-
import { cloneDeep as
|
|
3
|
+
import { cloneDeep as Fe, isArray as vt, isEmpty as Ri, isEqual as Le, sortBy as Ot } from "lodash-es";
|
|
4
4
|
import { extent as ki, mean as ji, max as Wi, min as Qi, sum as Hi, rollup as zi } from "d3-array";
|
|
5
|
-
import {
|
|
5
|
+
import { b6 as pt, cA as h, p as E, c9 as Gt, c5 as z, a6 as Ut, s as Gi, E as _t, d as ne, a as he, U as Y, cm as lt, b4 as $e, I as se, r as oe, q as Ne, bd as We, aV as Re, a2 as nt, T as Ce, cg as ht, ck as ee, l as ge, cr as Ui, ca as qt, cc as Yt, P as V, k as K, G as U, a4 as k, cv as Kt, D as $, bV as _i, J as Nt, bA as ye, bI as Q, F as Yi, i as we, A as je, cd as Et, aW as Ue, m as Tt, ba as Te, c1 as Qe, a3 as Jt, cD as Ki, B as Xt, cf as Se, bz as _e, bM as Ji, b$ as Xi, b7 as Vt, S as Zi, bk as Zt, bx as ea, bl as ta, bZ as ia, b_ as ei, bt as aa, cl as mt, c3 as na, b8 as ra, bu as sa, V as oa, n as be, bO as ti, bB as la, bo as ii, bC as ca, bD as ua, cC as ae, R as da, Q as It, bE as ai, bW as fa, bw as ma, bi as ni, bv as ga, by as ya, bg as pa, bj as ha, Y as ri, b9 as Sa } from "./interfaces.js";
|
|
6
6
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
7
7
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
8
8
|
import "@arcgis/core/rest/support/Query.js";
|
|
9
9
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
10
10
|
import "@arcgis/core/time/TimeExtent.js";
|
|
11
11
|
import "@arcgis/core/core/promiseUtils.js";
|
|
12
|
-
import
|
|
12
|
+
import Fa from "@arcgis/core/request.js";
|
|
13
13
|
import "./runtime.js";
|
|
14
14
|
import "@arcgis/toolkit/dom";
|
|
15
|
-
import { b as
|
|
15
|
+
import { b as ba, R as rt, a as Ye, j as ie } from "./rest-js-object-literals.js";
|
|
16
16
|
import { C as b } from "./interfaces4.js";
|
|
17
|
-
import * as
|
|
17
|
+
import * as xa from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
18
18
|
import * as gt from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
19
|
-
import
|
|
19
|
+
import Ca from "@arcgis/core/Graphic.js";
|
|
20
20
|
import { u as yt } from "./index2.js";
|
|
21
21
|
import { substitute as de } from "@arcgis/core/intl.js";
|
|
22
|
-
import { d as
|
|
22
|
+
import { d as Ba } from "./index3.js";
|
|
23
23
|
import $t from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
24
|
-
import
|
|
24
|
+
import va from "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
25
25
|
import Rt from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
26
|
-
import { linearRegression as
|
|
27
|
-
import { c as
|
|
28
|
-
import { h as
|
|
26
|
+
import { linearRegression as Na, linearRegressionLine as Ta, rSquared as Aa } from "simple-statistics";
|
|
27
|
+
import { c as Pa } from "./index.js";
|
|
28
|
+
import { h as La } from "./index4.js";
|
|
29
29
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
30
30
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
31
|
-
v5.0.0-next.
|
|
32
|
-
async function
|
|
31
|
+
v5.0.0-next.14 */
|
|
32
|
+
async function Ma(i, e) {
|
|
33
33
|
const t = e.errors[i];
|
|
34
34
|
throw new pt(e.modalHeaders.error, t ?? e.errors.simpleError);
|
|
35
35
|
}
|
|
@@ -48,7 +48,7 @@ function lo(i) {
|
|
|
48
48
|
function fe(i) {
|
|
49
49
|
return i?.type === S.CategoryAxisFormat;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Pe(i) {
|
|
52
52
|
return i?.type === S.DateAxisFormat;
|
|
53
53
|
}
|
|
54
54
|
function co(i) {
|
|
@@ -58,28 +58,28 @@ function co(i) {
|
|
|
58
58
|
e.verticalAxisLabelsBehavior !== t.verticalAxisLabelsBehavior
|
|
59
59
|
];
|
|
60
60
|
}
|
|
61
|
-
function Ma(i) {
|
|
62
|
-
return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
|
|
63
|
-
}
|
|
64
61
|
function wa(i) {
|
|
65
62
|
return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
|
|
66
63
|
}
|
|
67
64
|
function Da(i) {
|
|
68
|
-
return
|
|
65
|
+
return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
|
|
69
66
|
}
|
|
70
67
|
function Oa(i) {
|
|
71
|
-
return fe(i?.[0]?.valueFormat)
|
|
68
|
+
return (fe(i?.[0]?.valueFormat) || Pe(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
|
|
72
69
|
}
|
|
73
70
|
function qa(i) {
|
|
74
|
-
return
|
|
71
|
+
return fe(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Pe(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Pe(i?.[0]?.valueFormat) && Pe(i?.[1]?.valueFormat);
|
|
75
72
|
}
|
|
76
73
|
function Ea(i) {
|
|
77
|
-
return
|
|
74
|
+
return (fe(i?.[0]?.valueFormat) || Pe(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat);
|
|
78
75
|
}
|
|
79
76
|
function Va(i) {
|
|
80
77
|
return J(i?.[0]?.valueFormat) && J(i?.[1]?.valueFormat);
|
|
81
78
|
}
|
|
82
79
|
function Ia(i) {
|
|
80
|
+
return J(i?.[0]?.valueFormat) && J(i?.[1]?.valueFormat);
|
|
81
|
+
}
|
|
82
|
+
function $a(i) {
|
|
83
83
|
return J(i?.[0]?.valueFormat);
|
|
84
84
|
}
|
|
85
85
|
async function uo(i) {
|
|
@@ -87,33 +87,33 @@ async function uo(i) {
|
|
|
87
87
|
let n, r;
|
|
88
88
|
switch (e) {
|
|
89
89
|
case S.GaugeSeries:
|
|
90
|
-
n =
|
|
90
|
+
n = $a, r = "invalidValueFormatForGauge";
|
|
91
91
|
break;
|
|
92
92
|
case S.ScatterSeries:
|
|
93
|
-
n =
|
|
93
|
+
n = Va, r = "invalidValueFormatForScatterplot";
|
|
94
94
|
break;
|
|
95
95
|
case S.HistogramSeries:
|
|
96
|
-
n =
|
|
96
|
+
n = Ia, r = "invalidValueFormatForHistogram";
|
|
97
97
|
break;
|
|
98
98
|
case S.LineSeries:
|
|
99
|
-
n =
|
|
99
|
+
n = wa, r = "invalidValueFormatForLineChart";
|
|
100
100
|
break;
|
|
101
101
|
case S.BarSeries:
|
|
102
|
-
n =
|
|
102
|
+
n = Da, r = "invalidValueFormatForBarChart";
|
|
103
103
|
break;
|
|
104
104
|
case S.ComboLineAndBarSeries:
|
|
105
|
-
n =
|
|
105
|
+
n = Ea, r = "invalidValueFormatForComboBarLineChart";
|
|
106
106
|
break;
|
|
107
107
|
case S.BoxPlotSeries:
|
|
108
|
-
n =
|
|
108
|
+
n = Oa, r = "invalidValueFormatForBoxPlot";
|
|
109
109
|
break;
|
|
110
110
|
case S.HeatSeries:
|
|
111
|
-
n =
|
|
111
|
+
n = qa, r = "invalidValueFormatForHeatChart";
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
|
-
n !== void 0 && r !== void 0 && (n(t) || await
|
|
114
|
+
n !== void 0 && r !== void 0 && (n(t) || await Ma(r, a));
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Ra(i) {
|
|
117
117
|
const { isXAxis: e, chartType: t, valueFormat: a, isAxisForHistogramOverlaySeries: n } = i;
|
|
118
118
|
return e && (fe(a) || t === S.HistogramSeries && !n || t === S.BarSeries && J(a));
|
|
119
119
|
}
|
|
@@ -189,7 +189,7 @@ const si = {
|
|
|
189
189
|
emptyCells: {
|
|
190
190
|
symbol: {
|
|
191
191
|
type: rt.SFS,
|
|
192
|
-
style:
|
|
192
|
+
style: ba.Solid,
|
|
193
193
|
color: b.grayColor
|
|
194
194
|
},
|
|
195
195
|
text: "null"
|
|
@@ -200,10 +200,10 @@ const si = {
|
|
|
200
200
|
},
|
|
201
201
|
heatChartFirstDayOfWeek: 7
|
|
202
202
|
};
|
|
203
|
-
function
|
|
203
|
+
function ka(i, e) {
|
|
204
204
|
return i[0].dataTransformationType !== e[0].dataTransformationType;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ja(i, e) {
|
|
207
207
|
return i[0].binCount !== e[0].binCount;
|
|
208
208
|
}
|
|
209
209
|
function mo(i, e) {
|
|
@@ -231,22 +231,22 @@ function go(i) {
|
|
|
231
231
|
}).filter((l) => l !== void 0), n;
|
|
232
232
|
}
|
|
233
233
|
function Ft(i) {
|
|
234
|
-
return i !==
|
|
234
|
+
return i !== h.PieNoAggregation && i !== h.BarAndLineNoAggregation && i !== h.BarAndLineSplitByNoAggregation;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Wa(i) {
|
|
237
237
|
const e = E(i.series);
|
|
238
|
-
return e ===
|
|
238
|
+
return e === h.BarAndLineFromFields || e === h.PieFromFields || e === h.BoxPlotMonoField || e === h.BoxPlotMultiFields || e === h.BoxPlotMonoFieldAndSplitBy || e === h.BoxPlotMultiFieldsAndSplitBy;
|
|
239
239
|
}
|
|
240
240
|
function He(i) {
|
|
241
241
|
return i && "showMean" in i && typeof i.showMean == "boolean" ? i.showMean : !1;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Qa(i) {
|
|
244
244
|
return i && "showOutliers" in i && typeof i.showOutliers == "boolean" ? i.showOutliers : void 0;
|
|
245
245
|
}
|
|
246
246
|
function yo() {
|
|
247
247
|
return `{name} {${b.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Ha(i) {
|
|
250
250
|
let e;
|
|
251
251
|
return i?.[0] !== void 0 && (e = i.reduce(
|
|
252
252
|
(t, a) => ({
|
|
@@ -277,7 +277,7 @@ function ze(i) {
|
|
|
277
277
|
}
|
|
278
278
|
return c;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function za(i) {
|
|
281
281
|
return i?.[b.typeOrDomainIdValue] !== void 0 ? i?.[b.typeOrDomainIdValue] : i?.[b.originalCategoryValue];
|
|
282
282
|
}
|
|
283
283
|
function Ge(i) {
|
|
@@ -309,7 +309,7 @@ function Ge(i) {
|
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Ga(i) {
|
|
313
313
|
const { arrayToSort: e, orderBy: t, sortingField: a, fieldList: n, isByFieldsChart: r, preferLabel: s } = i;
|
|
314
314
|
e !== void 0 && e.length > 1 && !ee(a) && t !== void 0 && t.length > 0 && e.sort((o, c) => {
|
|
315
315
|
let l = o[a];
|
|
@@ -324,7 +324,7 @@ function za(i) {
|
|
|
324
324
|
}
|
|
325
325
|
function oi(i, e) {
|
|
326
326
|
const t = i;
|
|
327
|
-
if (e?.[0] !== void 0 && E(e) ===
|
|
327
|
+
if (e?.[0] !== void 0 && E(e) === h.PieFromFields) {
|
|
328
328
|
const { x: a, y: n } = e[0];
|
|
329
329
|
(vt(i) ? t : t.dataItems).forEach((o) => (ne in o && a !== ne && (o[a] = o[a] !== void 0 ? o[a] : o[ne], delete o[ne]), he in o && n !== he && (o[n] = o[n] !== void 0 ? o[n] : o[he], delete o[he]), o));
|
|
330
330
|
}
|
|
@@ -357,7 +357,7 @@ function bt(i) {
|
|
|
357
357
|
const a = lt(e);
|
|
358
358
|
return a.isInItem && delete e[a.expr ?? ""], e;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Ua(i, e) {
|
|
361
361
|
let t = i;
|
|
362
362
|
const a = W(e);
|
|
363
363
|
let n = _t(t);
|
|
@@ -385,8 +385,8 @@ function Ga(i, e) {
|
|
|
385
385
|
}
|
|
386
386
|
function ci(i) {
|
|
387
387
|
const { data: e, seriesConfig: t } = i;
|
|
388
|
-
let a =
|
|
389
|
-
return a !== void 0 && (a = li(a, t), a =
|
|
388
|
+
let a = Fe(e);
|
|
389
|
+
return a !== void 0 && (a = li(a, t), a = Ua(a, t), a = oi(a, t)), a;
|
|
390
390
|
}
|
|
391
391
|
function ui(i) {
|
|
392
392
|
const { statsMap: e, dataContext: t, chartLimits: a } = i;
|
|
@@ -397,19 +397,19 @@ function ui(i) {
|
|
|
397
397
|
} else t !== void 0 && (n = b.scatterplotAggregationFields.dataContextXMinField in t);
|
|
398
398
|
return n;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function _a(i) {
|
|
401
401
|
let e = !0;
|
|
402
402
|
const t = W(i.series);
|
|
403
403
|
if (t === S.BarSeries || t === S.LineSeries || t === S.ComboLineAndBarSeries) {
|
|
404
404
|
const a = E(i.series);
|
|
405
|
-
e = a !==
|
|
405
|
+
e = a !== h.BarAndLineNoAggregation && a !== h.BarAndLineSplitByNoAggregation;
|
|
406
406
|
}
|
|
407
407
|
return e;
|
|
408
408
|
}
|
|
409
|
-
function _a(i) {
|
|
410
|
-
return E(i.series) !== p.PieNoAggregation;
|
|
411
|
-
}
|
|
412
409
|
function Ya(i) {
|
|
410
|
+
return E(i.series) !== h.PieNoAggregation;
|
|
411
|
+
}
|
|
412
|
+
function Ka(i) {
|
|
413
413
|
const { dataContext: e, chartConfig: t, chartLimits: a } = i;
|
|
414
414
|
let n = !0;
|
|
415
415
|
if (t !== void 0)
|
|
@@ -417,18 +417,18 @@ function Ya(i) {
|
|
|
417
417
|
case S.BarSeries:
|
|
418
418
|
case S.LineSeries:
|
|
419
419
|
case S.ComboLineAndBarSeries:
|
|
420
|
-
n =
|
|
420
|
+
n = _a(t);
|
|
421
421
|
break;
|
|
422
422
|
case S.ScatterSeries:
|
|
423
423
|
n = ui({ dataContext: e, chartLimits: a });
|
|
424
424
|
break;
|
|
425
425
|
case S.PieSeries:
|
|
426
|
-
n =
|
|
426
|
+
n = Ya(t);
|
|
427
427
|
break;
|
|
428
428
|
}
|
|
429
429
|
return n;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Ja(i, e) {
|
|
432
432
|
let t = i;
|
|
433
433
|
switch (e) {
|
|
434
434
|
case _.Log:
|
|
@@ -445,31 +445,31 @@ function Ve(i) {
|
|
|
445
445
|
return Number.isNaN(e) || (e = new Intl.DateTimeFormat("en-US", b.dateFormatUTC).format(i).replace(",", "")), e;
|
|
446
446
|
}
|
|
447
447
|
function st(i) {
|
|
448
|
-
const { dataToConvert: e, x: t, y: a, fieldList: n } = i, r = [], s = e[
|
|
448
|
+
const { dataToConvert: e, x: t, y: a, fieldList: n } = i, r = [], s = e[Ce];
|
|
449
449
|
return Object.entries(e).forEach(([o]) => {
|
|
450
|
-
if (o !== "" && o !==
|
|
450
|
+
if (o !== "" && o !== Ce && o in e) {
|
|
451
451
|
const c = {
|
|
452
452
|
[t]: ht(n, o),
|
|
453
453
|
[a]: e[o],
|
|
454
454
|
[b.xAxisField]: o,
|
|
455
455
|
[b.originalCategoryValue]: o
|
|
456
456
|
};
|
|
457
|
-
s !== void 0 && (c[
|
|
457
|
+
s !== void 0 && (c[Ce] = s), e[`${b.rendererSymbolField}_${o}`] !== void 0 && (c[b.rendererSymbolField] = e[`${b.rendererSymbolField}_${o}`]), r.push(c);
|
|
458
458
|
}
|
|
459
459
|
}), r;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Xa(i, e) {
|
|
462
462
|
return JSON.stringify(i.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Za(i, e) {
|
|
465
465
|
return JSON.stringify(i.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(i.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (i.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || i.outTimeZone !== e.outTimeZone || (i.nullPolicy ?? re.Null) !== (e.nullPolicy ?? re.Null);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function en(i) {
|
|
468
468
|
const { oldConfig: e, newConfig: t, fieldList: a } = i, n = e.series[0], r = t.series[0];
|
|
469
469
|
let s = !1;
|
|
470
470
|
if (n.type === S.ScatterSeries && r.type === S.ScatterSeries && a && a.length > 0) {
|
|
471
471
|
const o = new Set(n.additionalTooltipFields || []), c = new Set(r.additionalTooltipFields || []);
|
|
472
|
-
if (!
|
|
472
|
+
if (!Le(o, c)) {
|
|
473
473
|
const l = Array.from(c).filter((u) => !o.has(u));
|
|
474
474
|
l.length > 0 && (s = a?.some((u) => l.includes(u.name) && !We(u)));
|
|
475
475
|
}
|
|
@@ -490,12 +490,12 @@ function Fo(i) {
|
|
|
490
490
|
let a = !1;
|
|
491
491
|
const n = e.series[0], r = t.series[0], s = W(e.series), o = W(t.series);
|
|
492
492
|
if (s === S.PieSeries && o === S.PieSeries) {
|
|
493
|
-
const { slices: c, sliceGrouping: l } = n, { slices: u, sliceGrouping: d } = r, f = c?.map((
|
|
494
|
-
sliceId:
|
|
495
|
-
label:
|
|
496
|
-
})), m = u?.map((
|
|
497
|
-
sliceId:
|
|
498
|
-
label:
|
|
493
|
+
const { slices: c, sliceGrouping: l } = n, { slices: u, sliceGrouping: d } = r, f = c?.map((p) => ({
|
|
494
|
+
sliceId: p.sliceId,
|
|
495
|
+
label: p.label
|
|
496
|
+
})), m = u?.map((p) => ({
|
|
497
|
+
sliceId: p.sliceId,
|
|
498
|
+
label: p.label
|
|
499
499
|
})), g = l?.label, y = d?.label;
|
|
500
500
|
a = JSON.stringify(f) !== JSON.stringify(m) || JSON.stringify(g) !== JSON.stringify(y);
|
|
501
501
|
}
|
|
@@ -504,10 +504,10 @@ function Fo(i) {
|
|
|
504
504
|
function kt(i, e) {
|
|
505
505
|
return e.length !== i.length;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function tn(i) {
|
|
508
508
|
const { oldSeries: e, newConfig: t, oldTimeIntervalInfo: a, setTimeBinningInfoWhenNotProvided: n } = i, r = t.series?.[0];
|
|
509
509
|
let s = !1, o = !1, c = !1;
|
|
510
|
-
if (oe(r) &&
|
|
510
|
+
if (oe(r) && Ne({
|
|
511
511
|
seriesConfig: r,
|
|
512
512
|
xAxisValueFormatType: pe(t),
|
|
513
513
|
setTimeBinningInfoWhenNotProvided: n
|
|
@@ -517,10 +517,10 @@ function en(i) {
|
|
|
517
517
|
}
|
|
518
518
|
return { timeBinningChanged: s, timeIntervalUnitChanged: o, newTimeBinningWillBeCalculated: c };
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function an(i) {
|
|
521
521
|
const { oldConfig: e, newConfig: t, behaviorAfterLimit: a } = i, n = e.series, r = t.series;
|
|
522
522
|
let s = !1, o = !1;
|
|
523
|
-
(a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || t.orderOptions?.data === void 0) && (o = !
|
|
523
|
+
(a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || t.orderOptions?.data === void 0) && (o = !Le(e.orderOptions?.orderByFields, t.orderOptions?.orderByFields));
|
|
524
524
|
const c = Ot(
|
|
525
525
|
n.map((u) => u.query),
|
|
526
526
|
["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"]
|
|
@@ -528,9 +528,9 @@ function tn(i) {
|
|
|
528
528
|
r.map((u) => u.query),
|
|
529
529
|
["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"]
|
|
530
530
|
);
|
|
531
|
-
return s = !
|
|
531
|
+
return s = !Le(c, l), s || o;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function nn(i, e) {
|
|
534
534
|
let t = !1;
|
|
535
535
|
if (e[0].x !== i[0].x)
|
|
536
536
|
t = !0;
|
|
@@ -543,16 +543,13 @@ function an(i, e) {
|
|
|
543
543
|
}
|
|
544
544
|
return t;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function rn(i, e) {
|
|
547
547
|
return (i ?? !1) !== (e?.filterBySelection ?? !1);
|
|
548
548
|
}
|
|
549
549
|
function di(i) {
|
|
550
550
|
const { currentSelectionOIDs: e, options: t } = i;
|
|
551
551
|
let a = !1;
|
|
552
|
-
return t?.filterBySelection === !0 && (a = e?.length !== t?.selectionData?.selectionOIDs?.length || !
|
|
553
|
-
}
|
|
554
|
-
function rn(i, e) {
|
|
555
|
-
return JSON.stringify(i.dataFilters) !== JSON.stringify(e.dataFilters);
|
|
552
|
+
return t?.filterBySelection === !0 && (a = e?.length !== t?.selectionData?.selectionOIDs?.length || !Le(e, t?.selectionData?.selectionOIDs)), a;
|
|
556
553
|
}
|
|
557
554
|
function sn(i, e) {
|
|
558
555
|
return oe(i.series[0]) && oe(e.series[0]) && (i.series[0].binTemporalData ?? b.binTemporalData) !== (e.series[0].binTemporalData ?? b.binTemporalData);
|
|
@@ -571,7 +568,7 @@ function on(i, e) {
|
|
|
571
568
|
return He(i) !== He(e);
|
|
572
569
|
}
|
|
573
570
|
function ln(i, e) {
|
|
574
|
-
const t = i.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = E(e.series), r = n ===
|
|
571
|
+
const t = i.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = E(e.series), r = n === h.BarAndLineNoAggregation || n === h.BarAndLineSplitByNoAggregation, s = t === S.DateAxisFormat && a === S.NumberAxisFormat, o = t === S.NumberAxisFormat && a === S.DateAxisFormat;
|
|
575
572
|
return t !== a && (r || s || o);
|
|
576
573
|
}
|
|
577
574
|
function Co(i) {
|
|
@@ -610,11 +607,11 @@ function Co(i) {
|
|
|
610
607
|
tooltipFieldsChanged: !1
|
|
611
608
|
}
|
|
612
609
|
};
|
|
613
|
-
switch (y.common.queryChanged =
|
|
610
|
+
switch (y.common.queryChanged = an({
|
|
614
611
|
oldConfig: t,
|
|
615
612
|
newConfig: a,
|
|
616
613
|
behaviorAfterLimit: n?.chartLimits?.behaviorAfterLimit
|
|
617
|
-
}), y.common.configFiltersChanged =
|
|
614
|
+
}), y.common.configFiltersChanged = Gi(t, a), y.common.xOrYChanged = nn(u, l), y.common.filterBySelectionChanged = rn(r, n), y.common.dataForFilterBySelectionChanged = di({
|
|
618
615
|
currentSelectionOIDs: o,
|
|
619
616
|
options: n
|
|
620
617
|
}), y.common.binTemporalDataChanged = sn(t, a), y.common.valueFormatChangeRequiresNewData = ln(
|
|
@@ -622,15 +619,15 @@ function Co(i) {
|
|
|
622
619
|
a
|
|
623
620
|
), y.common = {
|
|
624
621
|
...y.common,
|
|
625
|
-
...
|
|
622
|
+
...tn({
|
|
626
623
|
oldSeries: u,
|
|
627
624
|
newConfig: a,
|
|
628
625
|
oldTimeIntervalInfo: s,
|
|
629
626
|
setTimeBinningInfoWhenNotProvided: n?.setTimeBinningInfoWhenNotProvided
|
|
630
627
|
})
|
|
631
|
-
}, m = Object.values(y.common).some((
|
|
628
|
+
}, m = Object.values(y.common).some((p) => p), d) {
|
|
632
629
|
case S.HistogramSeries:
|
|
633
|
-
y.histogram.dataPropsChanged =
|
|
630
|
+
y.histogram.dataPropsChanged = ja(u, l) || ka(u, l);
|
|
634
631
|
break;
|
|
635
632
|
case S.LineSeries:
|
|
636
633
|
case S.BarSeries:
|
|
@@ -641,13 +638,13 @@ function Co(i) {
|
|
|
641
638
|
y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged = on(t, a);
|
|
642
639
|
break;
|
|
643
640
|
case S.GaugeSeries:
|
|
644
|
-
y.gauge.valueConversionChanged =
|
|
641
|
+
y.gauge.valueConversionChanged = Xa(t, a);
|
|
645
642
|
break;
|
|
646
643
|
case S.HeatSeries:
|
|
647
|
-
y.heatChart.binningChanged =
|
|
644
|
+
y.heatChart.binningChanged = Za(t, a);
|
|
648
645
|
break;
|
|
649
646
|
case S.ScatterSeries:
|
|
650
|
-
y.scatterPlot.tooltipFieldsChanged =
|
|
647
|
+
y.scatterPlot.tooltipFieldsChanged = en({
|
|
651
648
|
oldConfig: t,
|
|
652
649
|
newConfig: a,
|
|
653
650
|
fieldList: c
|
|
@@ -665,7 +662,7 @@ function cn(i, e) {
|
|
|
665
662
|
let a = 0, n = 0, r = 0;
|
|
666
663
|
i.forEach((s) => {
|
|
667
664
|
const o = s[e];
|
|
668
|
-
!
|
|
665
|
+
!Ui(o) || o === 0 ? r += 1 : o > 0 ? a += 1 : n += 1;
|
|
669
666
|
}), t = r === i.length || a >= 0 && n === 0 || a === 0 && n >= 0;
|
|
670
667
|
}
|
|
671
668
|
return t;
|
|
@@ -692,7 +689,7 @@ function fi(i, e) {
|
|
|
692
689
|
maxLineThreePlusSeriesCountPerSeries: m,
|
|
693
690
|
maxLineThreePlusSeriesCountTotal: g,
|
|
694
691
|
maxPieChartSliceCountTotal: y,
|
|
695
|
-
maxGaugeByFeaturesLimit:
|
|
692
|
+
maxGaugeByFeaturesLimit: p
|
|
696
693
|
} = Re(e), x = W(i.series), F = i.series.length === 0 ? 1 : i.series.length, C = E(i.series);
|
|
697
694
|
switch (x) {
|
|
698
695
|
case S.ComboLineAndBarSeries:
|
|
@@ -722,7 +719,7 @@ function fi(i, e) {
|
|
|
722
719
|
t = y;
|
|
723
720
|
break;
|
|
724
721
|
case S.GaugeSeries:
|
|
725
|
-
t =
|
|
722
|
+
t = p;
|
|
726
723
|
break;
|
|
727
724
|
case S.ScatterSeries:
|
|
728
725
|
// handled through the aggregation feature
|
|
@@ -730,7 +727,7 @@ function fi(i, e) {
|
|
|
730
727
|
// handled through the number of bins
|
|
731
728
|
case S.BoxPlotSeries:
|
|
732
729
|
}
|
|
733
|
-
return (C ===
|
|
730
|
+
return (C === h.BarAndLineNoAggregation || C === h.BarAndLineMultiFields) && t !== void 0 && (t = Math.ceil(t / F)), t;
|
|
734
731
|
}
|
|
735
732
|
function jt(i, e) {
|
|
736
733
|
let t = i;
|
|
@@ -808,7 +805,7 @@ function Mo(i) {
|
|
|
808
805
|
const { data: e, seriesConfig: t, htmlContainer: a } = i;
|
|
809
806
|
if (a) {
|
|
810
807
|
const n = e;
|
|
811
|
-
let r =
|
|
808
|
+
let r = Fe(e.selectionItems);
|
|
812
809
|
r && (r = li(r, t), r = r.map(bt), r = oi(r, t), n.selectionItems = r), a.dispatchEvent(new window.CustomEvent(le.SelectionComplete, ce(n)));
|
|
813
810
|
}
|
|
814
811
|
}
|
|
@@ -889,12 +886,12 @@ function gn(i) {
|
|
|
889
886
|
const e = E(i.series);
|
|
890
887
|
let t;
|
|
891
888
|
if (i.orderOptions?.data !== void 0) {
|
|
892
|
-
let a = i.orderOptions?.data?.orderType ??
|
|
893
|
-
if (a ===
|
|
889
|
+
let a = i.orderOptions?.data?.orderType ?? xe.Category, n = i.orderOptions?.data?.orderBy;
|
|
890
|
+
if (a === xe.Category)
|
|
894
891
|
a = i.series[0].x;
|
|
895
892
|
else {
|
|
896
|
-
a ===
|
|
897
|
-
const r = e ===
|
|
893
|
+
a === xe.Mean ? a = V.Average : a === xe.Median && (a = V.Median);
|
|
894
|
+
const r = e === h.BoxPlotMultiFieldsAndCategory && typeof i.series[0].y == "string" ? i.series[0].y : void 0, s = K(i.series[0].query?.where), o = ge({
|
|
898
895
|
where: i.series[0].query?.where
|
|
899
896
|
});
|
|
900
897
|
a = U({
|
|
@@ -915,7 +912,7 @@ function gn(i) {
|
|
|
915
912
|
}
|
|
916
913
|
function yn(i) {
|
|
917
914
|
let e;
|
|
918
|
-
if (!mi(i) && i.series?.length > 0 && i.orderOptions?.data?.orderType ===
|
|
915
|
+
if (!mi(i) && i.series?.length > 0 && i.orderOptions?.data?.orderType === xe.Category) {
|
|
919
916
|
let a;
|
|
920
917
|
fe(i.axes?.[0]?.valueFormat) ? a = k.xField : fe(i.axes?.[1]?.valueFormat) && (a = k.yField), a && (e = {
|
|
921
918
|
sortingField: a,
|
|
@@ -925,10 +922,10 @@ function yn(i) {
|
|
|
925
922
|
return e;
|
|
926
923
|
}
|
|
927
924
|
function pn(i) {
|
|
928
|
-
const e = i.series[0], { x: t, y: a } = e, n = E(i.series) ===
|
|
925
|
+
const e = i.series[0], { x: t, y: a } = e, n = E(i.series) === h.PieFromFields, r = E(i.series) === h.BarAndLineFromFields;
|
|
929
926
|
let s, o = "", c;
|
|
930
927
|
if (i.orderOptions?.data !== void 0) {
|
|
931
|
-
if (o = i.orderOptions?.data?.orderType ??
|
|
928
|
+
if (o = i.orderOptions?.data?.orderType ?? xe.Category, c = i.orderOptions?.data?.orderBy, o === xe.Category ? o = n ? ne : t : o = n ? he : [a].flat()[0], o !== void 0 && o !== "") {
|
|
932
929
|
const l = Yt(i);
|
|
933
930
|
if (W(i.series) !== S.PieSeries && o !== t && i.series?.length > 1)
|
|
934
931
|
switch (l) {
|
|
@@ -977,7 +974,7 @@ function xt(i) {
|
|
|
977
974
|
function Uo(i) {
|
|
978
975
|
const { oldConfig: e, newConfig: t, dataUpdateNeeded: a } = i, n = E(t.series);
|
|
979
976
|
let r = !1, s = !1;
|
|
980
|
-
if (n !==
|
|
977
|
+
if (n !== h.BoxPlotMonoField && n !== h.BoxPlotMonoFieldAndSplitBy && t.orderOptions?.data !== void 0) {
|
|
981
978
|
const o = xt(e), c = xt(t);
|
|
982
979
|
s = e.orderOptions?.data?.orderType !== t.orderOptions?.data?.orderType || o?.sortingField !== c?.sortingField || o?.orderBy !== c?.orderBy || (o?.preferLabel ?? !0) !== (c?.preferLabel ?? !0), r = s || a;
|
|
983
980
|
}
|
|
@@ -996,7 +993,7 @@ function _o(i, e) {
|
|
|
996
993
|
}), t;
|
|
997
994
|
}
|
|
998
995
|
function Yo(i, e) {
|
|
999
|
-
const t =
|
|
996
|
+
const t = Fe(i);
|
|
1000
997
|
if (t && t.series.length > 1) {
|
|
1001
998
|
const { preferLabel: a, orderBy: n } = t.orderOptions?.series ?? {};
|
|
1002
999
|
if (n !== void 0) {
|
|
@@ -1062,7 +1059,7 @@ async function Ko(i) {
|
|
|
1062
1059
|
seriesCount: n,
|
|
1063
1060
|
queryObject: r,
|
|
1064
1061
|
filterBySelection: s,
|
|
1065
|
-
formatLocale: o =
|
|
1062
|
+
formatLocale: o = Ba(document.documentElement),
|
|
1066
1063
|
isTemporalLineChart: c,
|
|
1067
1064
|
errorStrings: l
|
|
1068
1065
|
} = i;
|
|
@@ -1181,7 +1178,7 @@ async function Ko(i) {
|
|
|
1181
1178
|
u = l.errors.histogramEmptyField;
|
|
1182
1179
|
break;
|
|
1183
1180
|
case $.EmptyDataSet:
|
|
1184
|
-
y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage :
|
|
1181
|
+
y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage : _i(r) ? u = l.errors.noDataFBEMessage : u = l.errors.noDataMessage;
|
|
1185
1182
|
break;
|
|
1186
1183
|
case $.NegativeValueInXAxisLogScale:
|
|
1187
1184
|
u = l.errors.logarithmicXAxisNotPossible;
|
|
@@ -1234,8 +1231,8 @@ function At(i) {
|
|
|
1234
1231
|
splitByValue: n
|
|
1235
1232
|
}), y = e[g];
|
|
1236
1233
|
if (y != null) {
|
|
1237
|
-
let
|
|
1238
|
-
if (Number.isFinite(
|
|
1234
|
+
let p = Number(y);
|
|
1235
|
+
if (Number.isFinite(p)) {
|
|
1239
1236
|
c = {
|
|
1240
1237
|
...c,
|
|
1241
1238
|
key: m,
|
|
@@ -1243,7 +1240,7 @@ function At(i) {
|
|
|
1243
1240
|
standardizeValues: !0
|
|
1244
1241
|
};
|
|
1245
1242
|
let x = U(c);
|
|
1246
|
-
if (o[x] = Ct({ mean: d, stdDev: f, value:
|
|
1243
|
+
if (o[x] = Ct({ mean: d, stdDev: f, value: p }), m === V.Min || m === V.Max) {
|
|
1247
1244
|
c = {
|
|
1248
1245
|
...c,
|
|
1249
1246
|
key: m,
|
|
@@ -1255,10 +1252,10 @@ function At(i) {
|
|
|
1255
1252
|
splitByValue: n
|
|
1256
1253
|
};
|
|
1257
1254
|
const F = U(c);
|
|
1258
|
-
|
|
1255
|
+
p = Number(e[F]), Number.isFinite(p) && (o[x] = Ct({
|
|
1259
1256
|
mean: d,
|
|
1260
1257
|
stdDev: f,
|
|
1261
|
-
value:
|
|
1258
|
+
value: p
|
|
1262
1259
|
}));
|
|
1263
1260
|
}
|
|
1264
1261
|
}
|
|
@@ -1272,7 +1269,7 @@ function Fn(i) {
|
|
|
1272
1269
|
Object.keys(n).forEach((l) => {
|
|
1273
1270
|
l.startsWith(o) ? c[l.replace(`${o}_`, "")] = n[l] : l.includes(b.rendererSymbolField) && (c[l] = n[l]), c[b.boxPlot.boxPlotCategory] = o, a && (c = At({
|
|
1274
1271
|
dataItem: c,
|
|
1275
|
-
chartSubType:
|
|
1272
|
+
chartSubType: h.BoxPlotMultiFields
|
|
1276
1273
|
}));
|
|
1277
1274
|
}), r.set(o, c);
|
|
1278
1275
|
}), Array.from(r.values());
|
|
@@ -1300,7 +1297,7 @@ function xn(i) {
|
|
|
1300
1297
|
f.startsWith(`${u}_`) ? d[`${l}_${f.replace(`${u}_`, "")}`] = m : f.includes(b.rendererSymbolField) ? d[`${f}_${l}`] = m : f === b.boxPlot.boxPlotMeanLineMarkerId && (d[f] = c[f]);
|
|
1301
1298
|
}), n && (d = At({
|
|
1302
1299
|
dataItem: d,
|
|
1303
|
-
chartSubType:
|
|
1300
|
+
chartSubType: h.BoxPlotMultiFieldsAndSplitBy,
|
|
1304
1301
|
splitByValue: l,
|
|
1305
1302
|
meanPerField: r?.[Ie(u, P.Average)],
|
|
1306
1303
|
stdDevPerField: r?.[Ie(u, P.StandardDeviation)]
|
|
@@ -1317,7 +1314,7 @@ function Cn(i) {
|
|
|
1317
1314
|
t.forEach((o) => {
|
|
1318
1315
|
At({
|
|
1319
1316
|
dataItem: s,
|
|
1320
|
-
chartSubType:
|
|
1317
|
+
chartSubType: h.BoxPlotMultiFieldsAndCategory,
|
|
1321
1318
|
y: o,
|
|
1322
1319
|
meanPerField: n?.[Ie(o, P.Average)],
|
|
1323
1320
|
stdDevPerField: n?.[Ie(o, P.StandardDeviation)]
|
|
@@ -1346,7 +1343,7 @@ function Bn(i) {
|
|
|
1346
1343
|
}
|
|
1347
1344
|
function vn(i, e) {
|
|
1348
1345
|
const { series: t } = i, a = t[0], { y: n } = a, r = E(i.series), s = {
|
|
1349
|
-
y: r ===
|
|
1346
|
+
y: r === h.BoxPlotMultiFieldsAndCategory ? n : void 0,
|
|
1350
1347
|
chartSubType: r
|
|
1351
1348
|
}, o = i.series.map((c) => {
|
|
1352
1349
|
let l = ge({
|
|
@@ -1401,22 +1398,22 @@ function Wt(i) {
|
|
|
1401
1398
|
return c === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : c === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [l, u, d].filter((m) => m !== void 0).join(" AND ");
|
|
1402
1399
|
}
|
|
1403
1400
|
function gi(i) {
|
|
1404
|
-
const { data: e, yField: t, x: a, chartSubType: n, splitByField: r } = i, s = n ===
|
|
1401
|
+
const { data: e, yField: t, x: a, chartSubType: n, splitByField: r } = i, s = n === h.BoxPlotMonoField || n === h.BoxPlotMonoFieldAndCategory || n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : t, o = je(s), c = [], l = [], { maxOperandsPerWhereClause: u } = Ue();
|
|
1405
1402
|
let d = [], f = [], m = 1;
|
|
1406
1403
|
return e.forEach((g, y) => {
|
|
1407
|
-
const { outlierMinThreshold:
|
|
1408
|
-
if (typeof
|
|
1404
|
+
const { outlierMinThreshold: p, outlierMaxThreshold: x } = Nn(g, o);
|
|
1405
|
+
if (typeof p == "number" && typeof x == "number") {
|
|
1409
1406
|
const F = {
|
|
1410
1407
|
yField: t,
|
|
1411
|
-
outlierMinThreshold:
|
|
1408
|
+
outlierMinThreshold: p,
|
|
1412
1409
|
outlierMaxThreshold: x
|
|
1413
1410
|
};
|
|
1414
|
-
(n ===
|
|
1411
|
+
(n === h.BoxPlotMonoFieldAndCategory || n === h.BoxPlotMultiFieldsAndCategory || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in g && (F.xField = a, F.xValue = ze({
|
|
1415
1412
|
value: g[a],
|
|
1416
1413
|
dataContext: g,
|
|
1417
1414
|
keepNullValues: !0,
|
|
1418
1415
|
specificField: b.typeOrDomainIdValue
|
|
1419
|
-
})), (n ===
|
|
1416
|
+
})), (n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMultiFieldsAndSplitBy || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (F.splitByField = r, F.splitByValue = g[r]), d.push(Wt({ ...F, target: "outliers" })), f.push(Wt({ ...F, target: "alternativeData" })), (m % u === 0 || y === e.length - 1) && (c.push(Q(d, "OR")), l.push(Q(f, "OR")), d = [], f = []);
|
|
1420
1417
|
}
|
|
1421
1418
|
m += 1;
|
|
1422
1419
|
}), { outliersFilterBatches: c, dataWithoutOutliersFilterBatches: l };
|
|
@@ -1426,12 +1423,12 @@ function Tn(i) {
|
|
|
1426
1423
|
let c = s?.[Ie(r, P.Average)], l = s?.[Ie(r, P.StandardDeviation)];
|
|
1427
1424
|
if (c === void 0 && l === void 0)
|
|
1428
1425
|
switch (a) {
|
|
1429
|
-
case
|
|
1426
|
+
case h.BoxPlotMultiFields: {
|
|
1430
1427
|
const u = je(r), d = e[0];
|
|
1431
1428
|
c = Number(d[u[V.Average]]), l = Number(d[u[V.StandardDeviation]]);
|
|
1432
1429
|
break;
|
|
1433
1430
|
}
|
|
1434
|
-
case
|
|
1431
|
+
case h.BoxPlotMultiFieldsAndCategory: {
|
|
1435
1432
|
const u = e.find((d) => d[n] === t[n]);
|
|
1436
1433
|
if (u !== void 0) {
|
|
1437
1434
|
const d = je(r);
|
|
@@ -1439,7 +1436,7 @@ function Tn(i) {
|
|
|
1439
1436
|
}
|
|
1440
1437
|
break;
|
|
1441
1438
|
}
|
|
1442
|
-
case
|
|
1439
|
+
case h.BoxPlotMultiFieldsAndSplitBy: {
|
|
1443
1440
|
const u = e.find((d) => d[o] === t[o]);
|
|
1444
1441
|
if (u !== void 0) {
|
|
1445
1442
|
const d = je(r);
|
|
@@ -1452,8 +1449,8 @@ function Tn(i) {
|
|
|
1452
1449
|
}
|
|
1453
1450
|
async function An(i) {
|
|
1454
1451
|
const { seriesConfig: e, data: t, uniqueQuery: a, queryObject: n, meanAndStdDevPerField: r, abortKey: s } = i, o = E(e), c = e[0], { x: l } = c, u = K(c.query?.where), d = z(n), f = se(e), m = [];
|
|
1455
|
-
for (let
|
|
1456
|
-
const x = f[
|
|
1452
|
+
for (let p = 0; p < f.length; p += 1) {
|
|
1453
|
+
const x = f[p], { outliersFilterBatches: F } = gi({
|
|
1457
1454
|
data: t,
|
|
1458
1455
|
yField: x,
|
|
1459
1456
|
x: l,
|
|
@@ -1487,8 +1484,8 @@ async function An(i) {
|
|
|
1487
1484
|
}
|
|
1488
1485
|
}
|
|
1489
1486
|
const g = await Promise.all(m), y = /* @__PURE__ */ new Map();
|
|
1490
|
-
for (let
|
|
1491
|
-
const x = g[
|
|
1487
|
+
for (let p = 0; p < g.length; p += 1) {
|
|
1488
|
+
const x = g[p], F = f[p];
|
|
1492
1489
|
x.forEach((C) => {
|
|
1493
1490
|
const B = { ...C.attributes };
|
|
1494
1491
|
if (B[F] !== void 0) {
|
|
@@ -1498,15 +1495,15 @@ async function An(i) {
|
|
|
1498
1495
|
chartSubType: o
|
|
1499
1496
|
};
|
|
1500
1497
|
switch (o) {
|
|
1501
|
-
case
|
|
1502
|
-
case
|
|
1503
|
-
case
|
|
1498
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
1499
|
+
case h.BoxPlotMultiFieldsAndSplitBy:
|
|
1500
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
1504
1501
|
N = {
|
|
1505
1502
|
...N,
|
|
1506
1503
|
splitByValue: B[u]
|
|
1507
1504
|
};
|
|
1508
1505
|
break;
|
|
1509
|
-
case
|
|
1506
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
1510
1507
|
N = {
|
|
1511
1508
|
...N,
|
|
1512
1509
|
y: F
|
|
@@ -1519,7 +1516,7 @@ async function An(i) {
|
|
|
1519
1516
|
if (B[Y.uniqueIdsName] = [
|
|
1520
1517
|
...L?.[Y.uniqueIdsName] ?? [],
|
|
1521
1518
|
B[d.objectIdField]
|
|
1522
|
-
], delete B[d.objectIdField],
|
|
1519
|
+
], delete B[d.objectIdField], Yi(o)) {
|
|
1523
1520
|
const D = U({
|
|
1524
1521
|
...N,
|
|
1525
1522
|
standardizeValues: !0
|
|
@@ -1547,7 +1544,7 @@ async function An(i) {
|
|
|
1547
1544
|
async function Pn(i) {
|
|
1548
1545
|
const { data: e, queryObject: t, uniqueQuery: a, elementCount: n, chartConfig: r, chartLimits: s, abortKey: o } = i;
|
|
1549
1546
|
let c = [];
|
|
1550
|
-
const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = E(l), m = we(r), { x: g } = m, y = K(m.query?.where),
|
|
1547
|
+
const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = E(l), m = we(r), { x: g } = m, y = K(m.query?.where), p = [];
|
|
1551
1548
|
for (let F = 0; F < d.length; F += 1) {
|
|
1552
1549
|
const C = d[F], { dataWithoutOutliersFilterBatches: B } = gi({
|
|
1553
1550
|
data: e,
|
|
@@ -1566,7 +1563,7 @@ async function Pn(i) {
|
|
|
1566
1563
|
).map((w) => ({
|
|
1567
1564
|
...w,
|
|
1568
1565
|
outStatisticFieldName: `${w.outStatisticFieldName}${b.boxPlot.boxPlotOutliersSuffix}`
|
|
1569
|
-
}))),
|
|
1566
|
+
}))), p.push(
|
|
1570
1567
|
ut({
|
|
1571
1568
|
queryObject: t,
|
|
1572
1569
|
uniqueQuery: T,
|
|
@@ -1580,10 +1577,10 @@ async function Pn(i) {
|
|
|
1580
1577
|
);
|
|
1581
1578
|
}
|
|
1582
1579
|
}
|
|
1583
|
-
const x = await Promise.all(
|
|
1580
|
+
const x = await Promise.all(p);
|
|
1584
1581
|
for (let F = 0; F < x.length; F += 1)
|
|
1585
1582
|
c.push(...x[F]);
|
|
1586
|
-
return f !==
|
|
1583
|
+
return f !== h.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = Lt({
|
|
1587
1584
|
data: c,
|
|
1588
1585
|
x: y !== void 0 && y !== "" ? y : g
|
|
1589
1586
|
})), c;
|
|
@@ -1592,7 +1589,7 @@ async function Ln(i) {
|
|
|
1592
1589
|
const { queryObject: e, uniqueQuery: t, chartConfig: a, abortKey: n } = i;
|
|
1593
1590
|
let r;
|
|
1594
1591
|
const { series: s, showMean: o } = a, c = E(s);
|
|
1595
|
-
if (c ===
|
|
1592
|
+
if (c === h.BoxPlotMultiFieldsAndCategory || c === h.BoxPlotMultiFieldsAndSplitBy) {
|
|
1596
1593
|
const l = Nt({ showMean: o, seriesConfig: s }), u = {
|
|
1597
1594
|
...t
|
|
1598
1595
|
};
|
|
@@ -1640,17 +1637,17 @@ function yi(i) {
|
|
|
1640
1637
|
if ((o.type === S.LineSeries || o.type === S.BoxPlotSeries) && t?.[0] !== void 0) {
|
|
1641
1638
|
const f = K(o.query?.where);
|
|
1642
1639
|
switch (c) {
|
|
1643
|
-
case
|
|
1640
|
+
case h.BoxPlotMonoField:
|
|
1644
1641
|
d[0][b.boxPlot.boxPlotCategory] = u[0];
|
|
1645
1642
|
break;
|
|
1646
|
-
case
|
|
1643
|
+
case h.BoxPlotMultiFields:
|
|
1647
1644
|
d = Fn({
|
|
1648
1645
|
data: t,
|
|
1649
1646
|
yList: u,
|
|
1650
1647
|
calculateZScore: a
|
|
1651
1648
|
});
|
|
1652
1649
|
break;
|
|
1653
|
-
case
|
|
1650
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
1654
1651
|
d = bn({
|
|
1655
1652
|
data: t,
|
|
1656
1653
|
splitByField: f,
|
|
@@ -1658,7 +1655,7 @@ function yi(i) {
|
|
|
1658
1655
|
// there's only one `y` value for that query type
|
|
1659
1656
|
});
|
|
1660
1657
|
break;
|
|
1661
|
-
case
|
|
1658
|
+
case h.BoxPlotMultiFieldsAndSplitBy:
|
|
1662
1659
|
d = xn({
|
|
1663
1660
|
splitByField: f,
|
|
1664
1661
|
data: t,
|
|
@@ -1667,7 +1664,7 @@ function yi(i) {
|
|
|
1667
1664
|
calculateZScore: a
|
|
1668
1665
|
});
|
|
1669
1666
|
break;
|
|
1670
|
-
case
|
|
1667
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
1671
1668
|
d = Cn({
|
|
1672
1669
|
data: t,
|
|
1673
1670
|
yList: u,
|
|
@@ -1675,14 +1672,14 @@ function yi(i) {
|
|
|
1675
1672
|
calculateZScore: a
|
|
1676
1673
|
});
|
|
1677
1674
|
break;
|
|
1678
|
-
case
|
|
1675
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
1679
1676
|
d = Bn({
|
|
1680
1677
|
splitByField: f,
|
|
1681
1678
|
x: l,
|
|
1682
1679
|
data: t
|
|
1683
1680
|
});
|
|
1684
1681
|
break;
|
|
1685
|
-
case
|
|
1682
|
+
case h.BoxPlotMonoFieldAndCategory:
|
|
1686
1683
|
}
|
|
1687
1684
|
}
|
|
1688
1685
|
return vn(e, d), d;
|
|
@@ -1773,7 +1770,7 @@ function Vn(i) {
|
|
|
1773
1770
|
splitByField: c
|
|
1774
1771
|
} = i, l = Y.outStatistics;
|
|
1775
1772
|
if (e.outStatistics?.[0] !== void 0) {
|
|
1776
|
-
r !==
|
|
1773
|
+
r !== h.PieFromFields && r !== h.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = a ? l.outStatisticFieldName : [t].flat()[0]);
|
|
1777
1774
|
const { outStatistics: u } = e;
|
|
1778
1775
|
for (let d = 0; d < u.length; d += 1) {
|
|
1779
1776
|
const f = e.outStatistics[d];
|
|
@@ -1845,8 +1842,8 @@ function $n(i, e) {
|
|
|
1845
1842
|
function Rn(i) {
|
|
1846
1843
|
const { uniqueQuery: e, x: t, splitByField: a, unit: n, chartSubType: r, objectIdField: s } = i;
|
|
1847
1844
|
if (n !== void 0) {
|
|
1848
|
-
const o =
|
|
1849
|
-
e.orderByFields = o, e.groupByFieldsForStatistics = o, r ===
|
|
1845
|
+
const o = Ki(t, n);
|
|
1846
|
+
e.orderByFields = o, e.groupByFieldsForStatistics = o, r === h.BarAndLineSplitBy && !ee(a) ? e.groupByFieldsForStatistics.push(a) : r === h.BarAndLineNoAggregation && (e.groupByFieldsForStatistics.push(s), e.outStatistics = [
|
|
1850
1847
|
{
|
|
1851
1848
|
onStatisticField: s,
|
|
1852
1849
|
outStatisticFieldName: `COUNT_${s}`,
|
|
@@ -1861,7 +1858,7 @@ function pi(i) {
|
|
|
1861
1858
|
const n = fi(e, t?.chartLimits);
|
|
1862
1859
|
if (n !== void 0) {
|
|
1863
1860
|
const r = E(e.series);
|
|
1864
|
-
if (r ===
|
|
1861
|
+
if (r === h.PieFromFields || r === h.BarAndLineFromFields) {
|
|
1865
1862
|
if (a.outStatistics?.[0] !== void 0) {
|
|
1866
1863
|
const s = (l, u) => l.statisticType === P.EnvelopeAggregate === u, o = a.outStatistics.filter((l) => s(l, !0)), c = a.outStatistics.filter((l) => s(l, !1));
|
|
1867
1864
|
c.splice(n), a.outStatistics = [...c, ...o];
|
|
@@ -1872,47 +1869,47 @@ function pi(i) {
|
|
|
1872
1869
|
}
|
|
1873
1870
|
}
|
|
1874
1871
|
async function ct(i) {
|
|
1875
|
-
const { chartConfig: e, queryConfig: t, options: a, queryObject: n, timeIntervalInfo: r, fetchFullBoxPlotData: s } = i, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: c } = a ?? {}, l = e.series, u = E(l), d = we(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, y =
|
|
1872
|
+
const { chartConfig: e, queryConfig: t, options: a, queryObject: n, timeIntervalInfo: r, fetchFullBoxPlotData: s } = i, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: c } = a ?? {}, l = e.series, u = E(l), d = we(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, y = Ne({
|
|
1876
1873
|
xAxisValueFormatType: pe(e),
|
|
1877
1874
|
setTimeBinningInfoWhenNotProvided: o,
|
|
1878
1875
|
seriesConfig: d
|
|
1879
1876
|
});
|
|
1880
|
-
let
|
|
1877
|
+
let p = /* @__PURE__ */ new Map(), x = !1, F = !1, C = !1, B = !1, N = !1, v = {};
|
|
1881
1878
|
if (f !== void 0) {
|
|
1882
|
-
v =
|
|
1879
|
+
v = Fe(f);
|
|
1883
1880
|
const O = K(f.where);
|
|
1884
1881
|
let H = "";
|
|
1885
1882
|
switch (t.fetchNullValues !== !0 && (m !== b.boxPlot.boxPlotCategory && (H = `${m} IS NOT NULL`), O.trim() !== "" && O !== m && !Tt(f.where) && (H = Q([H, `${O} IS NOT NULL`]))), u) {
|
|
1886
|
-
case
|
|
1887
|
-
|
|
1883
|
+
case h.BarAndLineSplitBy: {
|
|
1884
|
+
p = On(l), B = !0, x = !0, F = !0;
|
|
1888
1885
|
break;
|
|
1889
1886
|
}
|
|
1890
|
-
case
|
|
1887
|
+
case h.BarAndLineMultiFields:
|
|
1891
1888
|
$n(v, l), F = !0;
|
|
1892
1889
|
break;
|
|
1893
|
-
case
|
|
1894
|
-
case
|
|
1890
|
+
case h.PieFromFields:
|
|
1891
|
+
case h.BarAndLineFromFields:
|
|
1895
1892
|
H = "", C = !0, F = !0;
|
|
1896
1893
|
break;
|
|
1897
|
-
case
|
|
1898
|
-
case
|
|
1894
|
+
case h.BarAndLineMonoField:
|
|
1895
|
+
case h.PieFromCategory:
|
|
1899
1896
|
F = !0;
|
|
1900
1897
|
break;
|
|
1901
|
-
case
|
|
1902
|
-
case
|
|
1898
|
+
case h.BoxPlotMonoField:
|
|
1899
|
+
case h.BoxPlotMultiFields:
|
|
1903
1900
|
C = !0, N = !0;
|
|
1904
1901
|
break;
|
|
1905
|
-
case
|
|
1906
|
-
case
|
|
1907
|
-
case
|
|
1908
|
-
case
|
|
1909
|
-
case
|
|
1902
|
+
case h.BoxPlotMonoFieldAndCategory:
|
|
1903
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
1904
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
1905
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
1906
|
+
case h.BoxPlotMultiFieldsAndSplitBy: {
|
|
1910
1907
|
N = !0, B = !0, C = !0;
|
|
1911
1908
|
break;
|
|
1912
1909
|
}
|
|
1913
|
-
case
|
|
1914
|
-
case
|
|
1915
|
-
case
|
|
1910
|
+
case h.PieNoAggregation:
|
|
1911
|
+
case h.BarAndLineNoAggregation:
|
|
1912
|
+
case h.BarAndLineSplitByNoAggregation:
|
|
1916
1913
|
}
|
|
1917
1914
|
if (F && Vn({
|
|
1918
1915
|
uniqueQuery: v,
|
|
@@ -1928,7 +1925,7 @@ async function ct(i) {
|
|
|
1928
1925
|
return !ee(I[0]);
|
|
1929
1926
|
})), y && oe(l[0])) {
|
|
1930
1927
|
const X = z(n), { objectIdField: I } = X;
|
|
1931
|
-
(await
|
|
1928
|
+
(await Te(n)).find((te) => te.name === m)?.type !== Ye.DateOnly && Rn({
|
|
1932
1929
|
uniqueQuery: v,
|
|
1933
1930
|
x: m,
|
|
1934
1931
|
splitByField: K(f.where),
|
|
@@ -1941,7 +1938,7 @@ async function ct(i) {
|
|
|
1941
1938
|
}
|
|
1942
1939
|
pi({ chartConfig: e, options: a, uniqueQuery: v });
|
|
1943
1940
|
const { gdbVersion: T, geometry: w, distance: L, units: D, timeExtent: R, where: M, objectIds: q, spatialRelationship: A } = t;
|
|
1944
|
-
return T !== void 0 && (v.gdbVersion = T), w !== void 0 && (v.geometry = w), L !== void 0 && (v.distance = L), D !== void 0 && (v.units = D), R !== void 0 && (v.timeExtent = R), q !== void 0 && (v.objectIds = q), A !== void 0 && (v.spatialRelationship = A), M !== void 0 && (v.where = Q([v.where, M])), { uniqueQuery: v, mapToStatField:
|
|
1941
|
+
return T !== void 0 && (v.gdbVersion = T), w !== void 0 && (v.geometry = w), L !== void 0 && (v.distance = L), D !== void 0 && (v.units = D), R !== void 0 && (v.timeExtent = R), q !== void 0 && (v.objectIds = q), A !== void 0 && (v.spatialRelationship = A), M !== void 0 && (v.where = Q([v.where, M])), { uniqueQuery: v, mapToStatField: p };
|
|
1945
1942
|
}
|
|
1946
1943
|
async function kn(i) {
|
|
1947
1944
|
const { queryObject: e, queryConfig: t, chartConfig: a, abortKey: n } = i, r = a.series[0], { x: s, valueConversion: o } = r, c = Xt(a), l = await ye({
|
|
@@ -2106,8 +2103,8 @@ async function zn(i) {
|
|
|
2106
2103
|
queryObject: e,
|
|
2107
2104
|
queryConfig: d,
|
|
2108
2105
|
abortKey: n
|
|
2109
|
-
}), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN,
|
|
2110
|
-
return { countExcludingNulls: g, countIncludingNulls: m, min: y, max:
|
|
2106
|
+
}), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN, p = f.get(u) ?? Number.NaN;
|
|
2107
|
+
return { countExcludingNulls: g, countIncludingNulls: m, min: y, max: p };
|
|
2111
2108
|
}
|
|
2112
2109
|
async function Gn(i) {
|
|
2113
2110
|
const { queryConfig: e, chartConfig: t, queryObject: a, abortKey: n } = i, r = t.series[0], { x: s, dataTransformationType: o } = r;
|
|
@@ -2153,7 +2150,7 @@ function Yn(i) {
|
|
|
2153
2150
|
field: c,
|
|
2154
2151
|
minValue: r,
|
|
2155
2152
|
maxValue: s,
|
|
2156
|
-
numBins: l ??
|
|
2153
|
+
numBins: l ?? Zi,
|
|
2157
2154
|
classificationMethod: "equal-interval",
|
|
2158
2155
|
// excluding the filters like 1=tionMethod: "equal-interval",1 from the sqlWhere. It's causing query failures (see https://devtopia.esri.com/WebGIS/arcgis-charts/issues/6677)
|
|
2159
2156
|
sqlWhere: Tt(o.where) ? void 0 : o.where,
|
|
@@ -2180,25 +2177,25 @@ async function Jn(i) {
|
|
|
2180
2177
|
} = i, c = e.series[0], { dataTransformationType: l } = c;
|
|
2181
2178
|
let u = { valid: !0 };
|
|
2182
2179
|
if (a !== void 0) {
|
|
2183
|
-
const d = z(a), m =
|
|
2180
|
+
const d = z(a), m = Ji(t?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = _n({
|
|
2184
2181
|
seriesConfig: c,
|
|
2185
2182
|
layer: d,
|
|
2186
2183
|
view: g,
|
|
2187
2184
|
useFeaturesInView: m,
|
|
2188
2185
|
queryConfig: t
|
|
2189
2186
|
});
|
|
2190
|
-
let
|
|
2191
|
-
if (g !== void 0 && (
|
|
2187
|
+
let p;
|
|
2188
|
+
if (g !== void 0 && (p = new $t({
|
|
2192
2189
|
geometry: g.extent
|
|
2193
|
-
}), g.extent !== void 0 &&
|
|
2190
|
+
}), g.extent !== void 0 && Xi(d))) {
|
|
2194
2191
|
const { distance: L, units: D } = t;
|
|
2195
|
-
L !== void 0 && (
|
|
2192
|
+
L !== void 0 && (p.distance = L), D !== void 0 && (p.units = D);
|
|
2196
2193
|
}
|
|
2197
2194
|
if (t.timeExtent) {
|
|
2198
2195
|
const L = { start: t.timeExtent[0], end: t.timeExtent[1] };
|
|
2199
|
-
|
|
2196
|
+
p === void 0 ? p = new $t({ timeExtent: L }) : p.timeExtent = L;
|
|
2200
2197
|
}
|
|
2201
|
-
y.filter =
|
|
2198
|
+
y.filter = p;
|
|
2202
2199
|
let x;
|
|
2203
2200
|
y.outStatisticTypes = { exclude: ["median"] };
|
|
2204
2201
|
try {
|
|
@@ -2229,10 +2226,10 @@ async function Jn(i) {
|
|
|
2229
2226
|
valueExpression: y.valueExpression,
|
|
2230
2227
|
queryConfig: t
|
|
2231
2228
|
});
|
|
2232
|
-
L.filter =
|
|
2229
|
+
L.filter = p;
|
|
2233
2230
|
let D;
|
|
2234
2231
|
try {
|
|
2235
|
-
D = await
|
|
2232
|
+
D = await va(L);
|
|
2236
2233
|
} catch (M) {
|
|
2237
2234
|
throw new pt(Vt.QueryFeaturesError, o.errors.queryError, M);
|
|
2238
2235
|
}
|
|
@@ -2286,7 +2283,7 @@ async function Xn(i) {
|
|
|
2286
2283
|
})) }
|
|
2287
2284
|
};
|
|
2288
2285
|
}
|
|
2289
|
-
const
|
|
2286
|
+
const Me = {
|
|
2290
2287
|
groupByCaseBegin: "CASE",
|
|
2291
2288
|
groupByOutKeyword: "OUT",
|
|
2292
2289
|
groupByCaseEnd: "ELSE 'OUT' END"
|
|
@@ -2324,7 +2321,7 @@ async function tr(i) {
|
|
|
2324
2321
|
dataContextCountDistinctX: d,
|
|
2325
2322
|
dataContextCountDistinctY: f
|
|
2326
2323
|
} = b.scatterplotAggregationFields;
|
|
2327
|
-
let m, g, y,
|
|
2324
|
+
let m, g, y, p, x;
|
|
2328
2325
|
const F = e.get(o), C = e.get(c), B = e.get(l), N = e.get(u);
|
|
2329
2326
|
if (F != null && B !== void 0 && B !== null && C !== void 0 && C !== null && N !== void 0 && N !== null && !Number.isNaN(F + C + B + N)) {
|
|
2330
2327
|
const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), w = Math.floor(Math.sqrt(v)), L = await er({
|
|
@@ -2333,12 +2330,12 @@ async function tr(i) {
|
|
|
2333
2330
|
queryConfig: r,
|
|
2334
2331
|
abortKey: s
|
|
2335
2332
|
});
|
|
2336
|
-
y = Math.min(L.get(f) ?? Number.NaN, w),
|
|
2333
|
+
y = Math.min(L.get(f) ?? Number.NaN, w), p = Math.min(L.get(d) ?? Number.NaN, w), x = p * y, m = C === F ? 0 : (C - F) / (p - 1), g = N === B ? 0 : (N - B) / (y - 1), e.set(b.scatterplotAggregationFields.xStep, m), e.set(b.scatterplotAggregationFields.yStep, g), e.set(b.scatterplotAggregationFields.rowCount, y), e.set(b.scatterplotAggregationFields.columnCount, p), e.set(b.scatterplotAggregationFields.realGridSize, x);
|
|
2337
2334
|
}
|
|
2338
2335
|
}
|
|
2339
2336
|
function ir(i) {
|
|
2340
2337
|
const { groupByFieldsForStatistics: e, x: t, y: a, xValue: n, yValue: r, xStep: s, yStep: o, endOfRow: c, endOfColumn: l } = i;
|
|
2341
|
-
let u = e === "" ?
|
|
2338
|
+
let u = e === "" ? Me.groupByCaseBegin : e;
|
|
2342
2339
|
return u = de(Zn, {
|
|
2343
2340
|
groupByFieldsForStatistics: u,
|
|
2344
2341
|
x: t,
|
|
@@ -2375,12 +2372,12 @@ async function nr(i) {
|
|
|
2375
2372
|
dataContextYMinField: m,
|
|
2376
2373
|
dataContextYMaxField: g,
|
|
2377
2374
|
queryNumberOfFeatures: y,
|
|
2378
|
-
queryNumberOfAggregatedFeatures:
|
|
2375
|
+
queryNumberOfAggregatedFeatures: p
|
|
2379
2376
|
} = b.scatterplotAggregationFields;
|
|
2380
2377
|
let x;
|
|
2381
2378
|
const F = e?.get(d) ?? Number.NaN, C = e?.get(f) ?? Number.NaN, B = e?.get(y) ?? Number.NaN, N = e?.get(m) ?? F, v = e?.get(g) ?? C;
|
|
2382
2379
|
if (F != null && N !== void 0 && N !== null && C !== void 0 && C !== null && v !== void 0 && v !== null && !Number.isNaN(F + C + N + v)) {
|
|
2383
|
-
const T = z(a), { objectIdField: w } = T, L = e?.get(b.scatterplotAggregationFields.xStep), D = e?.get(b.scatterplotAggregationFields.yStep), R = e?.get(b.scatterplotAggregationFields.realGridSize), M = e?.get(b.scatterplotAggregationFields.rowCount), q = e?.get(b.scatterplotAggregationFields.columnCount), A = /* @__PURE__ */ new Map(), O = await
|
|
2380
|
+
const T = z(a), { objectIdField: w } = T, L = e?.get(b.scatterplotAggregationFields.xStep), D = e?.get(b.scatterplotAggregationFields.yStep), R = e?.get(b.scatterplotAggregationFields.realGridSize), M = e?.get(b.scatterplotAggregationFields.rowCount), q = e?.get(b.scatterplotAggregationFields.columnCount), A = /* @__PURE__ */ new Map(), O = await Te(a);
|
|
2384
2381
|
if (O?.forEach((I) => {
|
|
2385
2382
|
We(I) && A.set(I.name, {
|
|
2386
2383
|
onStatisticField: I.name,
|
|
@@ -2401,7 +2398,7 @@ async function nr(i) {
|
|
|
2401
2398
|
});
|
|
2402
2399
|
}), A.set(w, {
|
|
2403
2400
|
onStatisticField: w,
|
|
2404
|
-
outStatisticFieldName:
|
|
2401
|
+
outStatisticFieldName: p,
|
|
2405
2402
|
statisticType: P.Count
|
|
2406
2403
|
}).set(l, {
|
|
2407
2404
|
onStatisticField: l,
|
|
@@ -2417,7 +2414,7 @@ async function nr(i) {
|
|
|
2417
2414
|
...n,
|
|
2418
2415
|
outStatistics: [...A.values()]
|
|
2419
2416
|
};
|
|
2420
|
-
x = await
|
|
2417
|
+
x = await ea({
|
|
2421
2418
|
queryObject: a,
|
|
2422
2419
|
queryConfig: I,
|
|
2423
2420
|
xStep: L,
|
|
@@ -2430,22 +2427,22 @@ async function nr(i) {
|
|
|
2430
2427
|
});
|
|
2431
2428
|
} else if (M !== void 0 && q !== void 0) {
|
|
2432
2429
|
let I = 0;
|
|
2433
|
-
const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ue } = Ue(), De = await
|
|
2434
|
-
let dt = !0, Oe = F,
|
|
2430
|
+
const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ue } = Ue(), De = await ta(T) ? ue : Z, Dt = [];
|
|
2431
|
+
let dt = !0, Oe = F, Ae = N, qe = "", Je = 1, ft = 1, Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER;
|
|
2435
2432
|
for (; ft <= q && dt; ) {
|
|
2436
|
-
for (
|
|
2433
|
+
for (Ae = N, Je = 1; Je <= M && dt; ) {
|
|
2437
2434
|
if (qe = ir({
|
|
2438
2435
|
groupByFieldsForStatistics: qe,
|
|
2439
2436
|
x: l,
|
|
2440
2437
|
y: u,
|
|
2441
2438
|
xValue: Oe,
|
|
2442
|
-
yValue:
|
|
2439
|
+
yValue: Ae,
|
|
2443
2440
|
xStep: L,
|
|
2444
2441
|
yStep: D,
|
|
2445
2442
|
endOfRow: Je === M,
|
|
2446
2443
|
endOfColumn: ft === q
|
|
2447
|
-
}), Oe < Xe && (Xe = Oe), Oe + L > Ze && (Ze = Oe + L),
|
|
2448
|
-
qe = `${qe} ${
|
|
2444
|
+
}), Oe < Xe && (Xe = Oe), Oe + L > Ze && (Ze = Oe + L), Ae < et && (et = Ae), Ae + L > tt && (tt = Ae + D), I += 1, I % De === 0 || I === R || I === B) {
|
|
2445
|
+
qe = `${qe} ${Me.groupByCaseEnd}`;
|
|
2449
2446
|
const Vi = {
|
|
2450
2447
|
...n,
|
|
2451
2448
|
groupByFieldsForStatistics: [qe],
|
|
@@ -2464,7 +2461,7 @@ async function nr(i) {
|
|
|
2464
2461
|
})
|
|
2465
2462
|
), Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER, qe = "", I === R && (dt = !1);
|
|
2466
2463
|
}
|
|
2467
|
-
|
|
2464
|
+
Ae += D, Je += 1;
|
|
2468
2465
|
}
|
|
2469
2466
|
Oe += L, ft += 1;
|
|
2470
2467
|
}
|
|
@@ -2487,11 +2484,11 @@ const rr = {
|
|
|
2487
2484
|
async function sr(i) {
|
|
2488
2485
|
const { queryObject: e } = i;
|
|
2489
2486
|
let t = !1;
|
|
2490
|
-
const a =
|
|
2487
|
+
const a = ia(e), n = z(e), r = ei(n);
|
|
2491
2488
|
if (a && r.url !== void 0 && r.url !== null) {
|
|
2492
2489
|
const s = `${r.url}/${r.layerId}?f=json`;
|
|
2493
2490
|
try {
|
|
2494
|
-
const o = (await
|
|
2491
|
+
const o = (await Fa(s)).data, c = o?.advancedQueryCapabilities?.supportsQueryAnalytic === !0, l = o?.sqlParserVersion === void 0 || r.version != null && r.version >= 10.91;
|
|
2495
2492
|
t = c && l;
|
|
2496
2493
|
} catch {
|
|
2497
2494
|
}
|
|
@@ -2523,9 +2520,9 @@ async function cr(i) {
|
|
|
2523
2520
|
typeValue: m,
|
|
2524
2521
|
fieldValue: g,
|
|
2525
2522
|
slopePropertyList: y,
|
|
2526
|
-
interceptPropertyList:
|
|
2523
|
+
interceptPropertyList: p,
|
|
2527
2524
|
r2PropertyList: x
|
|
2528
|
-
} = rr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await
|
|
2525
|
+
} = rr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await aa({
|
|
2529
2526
|
queryObject: t,
|
|
2530
2527
|
queryConfig: n,
|
|
2531
2528
|
outputFormat: d,
|
|
@@ -2534,7 +2531,7 @@ async function cr(i) {
|
|
|
2534
2531
|
});
|
|
2535
2532
|
if (C !== void 0) {
|
|
2536
2533
|
let B = Number.NaN, N = Number.NaN;
|
|
2537
|
-
const { expr: v } = mt(C, y), { expr: T } = mt(C,
|
|
2534
|
+
const { expr: v } = mt(C, y), { expr: T } = mt(C, p), { expr: w } = mt(C, x);
|
|
2538
2535
|
v !== void 0 && Number.isFinite(C[v]) && (B = C[v]), T !== void 0 && Number.isFinite(C[T]) && (N = C[T]), w !== void 0 && Number.isFinite(C[w]) && (c = C[w]);
|
|
2539
2536
|
const { dataContextXMinField: L, dataContextXMaxField: D, dataContextYMinField: R, dataContextYMaxField: M } = b.scatterplotAggregationFields, q = e.get(L) ?? Number.NaN, A = e.get(D) ?? Number.NaN, O = e.get(R) ?? Number.NaN, H = e.get(M) ?? Number.NaN, I = (A - q) / 100;
|
|
2540
2537
|
let Z = q - I, ue = Number.NaN;
|
|
@@ -2555,8 +2552,8 @@ function bi(i) {
|
|
|
2555
2552
|
let { r2: s, trendLinePoints: o } = b.scatterplotSeries;
|
|
2556
2553
|
const c = lr({ data: e, x: n, y: r });
|
|
2557
2554
|
if (c !== void 0) {
|
|
2558
|
-
const l =
|
|
2559
|
-
s =
|
|
2555
|
+
const l = Na(c), u = Ta(l);
|
|
2556
|
+
s = Aa(c, u), o = or({ x: n, y: r, trendlineXToY: u, data: e });
|
|
2560
2557
|
}
|
|
2561
2558
|
return { r2: s, trendLinePoints: o };
|
|
2562
2559
|
}
|
|
@@ -2612,10 +2609,10 @@ async function dr(i) {
|
|
|
2612
2609
|
onStatisticField: o
|
|
2613
2610
|
}
|
|
2614
2611
|
);
|
|
2615
|
-
const
|
|
2616
|
-
return
|
|
2612
|
+
const p = { ...t };
|
|
2613
|
+
return p.outStatistics = y, c = await _e({
|
|
2617
2614
|
queryObject: a,
|
|
2618
|
-
queryConfig:
|
|
2615
|
+
queryConfig: p,
|
|
2619
2616
|
abortKey: n
|
|
2620
2617
|
}), s === o && (c.set(d, c.get(l) ?? Number.NaN), c.set(f, c.get(u) ?? Number.NaN)), c;
|
|
2621
2618
|
}
|
|
@@ -2624,34 +2621,34 @@ function at(i) {
|
|
|
2624
2621
|
return e === t || e === a ? e : Math.random() * (a - t) + t;
|
|
2625
2622
|
}
|
|
2626
2623
|
function fr(i) {
|
|
2627
|
-
const { useQueryAttributeBins: e, graphic: t, x: a, y: n, yStep: r } = i, { groupByOutKeyword: s } =
|
|
2624
|
+
const { useQueryAttributeBins: e, graphic: t, x: a, y: n, yStep: r } = i, { groupByOutKeyword: s } = Me, { dataContextXMinField: o, dataContextXMaxField: c, dataContextYMinField: l, dataContextYMaxField: u } = b.scatterplotAggregationFields;
|
|
2628
2625
|
let d = [];
|
|
2629
2626
|
if (e && "stackedAttributes" in t && t.stackedAttributes) {
|
|
2630
|
-
const f =
|
|
2627
|
+
const f = sa(a, n), m = t.attributes[f.lowerBoundaryAlias], g = t.attributes[f.upperBoundaryAlias];
|
|
2631
2628
|
t.stackedAttributes.forEach((y) => {
|
|
2632
|
-
let
|
|
2633
|
-
typeof
|
|
2629
|
+
let p = y[f.stackAlias], x;
|
|
2630
|
+
typeof p == "number" && typeof r == "number" && (p *= r), typeof p == "number" && typeof r == "number" && (x = p + r);
|
|
2634
2631
|
const F = y[a], C = y[n];
|
|
2635
|
-
typeof
|
|
2632
|
+
typeof p == "number" && typeof x == "number" && typeof F == "number" && typeof C == "number" && d.push({
|
|
2636
2633
|
...y,
|
|
2637
2634
|
[a]: at({ value: F, valueMin: m, valueMax: g }),
|
|
2638
|
-
[n]: at({ value: C, valueMin:
|
|
2635
|
+
[n]: at({ value: C, valueMin: p, valueMax: x }),
|
|
2639
2636
|
[o]: Math.min(m, g),
|
|
2640
2637
|
[c]: Math.max(m, g),
|
|
2641
|
-
[l]:
|
|
2638
|
+
[l]: p,
|
|
2642
2639
|
[u]: x
|
|
2643
2640
|
});
|
|
2644
2641
|
});
|
|
2645
2642
|
} else {
|
|
2646
2643
|
const { expr: f, isInItem: m } = lt(t.attributes);
|
|
2647
2644
|
if (m && f && t.attributes[f] !== s) {
|
|
2648
|
-
let [g, y,
|
|
2649
|
-
g = Math.min(g, y), y = Math.max(g, y),
|
|
2645
|
+
let [g, y, p, x] = t.attributes[f].split("|");
|
|
2646
|
+
g = Math.min(g, y), y = Math.max(g, y), p = Math.min(p, x), x = Math.max(p, x);
|
|
2650
2647
|
const F = {
|
|
2651
2648
|
...t.attributes,
|
|
2652
2649
|
[o]: g,
|
|
2653
2650
|
[c]: y,
|
|
2654
|
-
[l]:
|
|
2651
|
+
[l]: p,
|
|
2655
2652
|
[u]: x
|
|
2656
2653
|
};
|
|
2657
2654
|
F[a] = at({
|
|
@@ -2660,7 +2657,7 @@ function fr(i) {
|
|
|
2660
2657
|
valueMax: y
|
|
2661
2658
|
}), F[n] = at({
|
|
2662
2659
|
value: F[n],
|
|
2663
|
-
valueMin:
|
|
2660
|
+
valueMin: p,
|
|
2664
2661
|
valueMax: x
|
|
2665
2662
|
}), d = [F];
|
|
2666
2663
|
}
|
|
@@ -2681,20 +2678,20 @@ async function mr(i) {
|
|
|
2681
2678
|
});
|
|
2682
2679
|
return m = m?.filter((g) => {
|
|
2683
2680
|
const { expr: y } = lt(g);
|
|
2684
|
-
return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !==
|
|
2681
|
+
return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !== Me.groupByOutKeyword);
|
|
2685
2682
|
}), m ?? [];
|
|
2686
2683
|
}
|
|
2687
2684
|
async function gr(i) {
|
|
2688
2685
|
const { queryObject: e, queryConfig: t, chartConfig: a, featureCount: n, abortKey: r } = i, s = a.series[0], { x: o, y: c } = s, l = z(e);
|
|
2689
2686
|
let u = [];
|
|
2690
|
-
const f = ((await
|
|
2691
|
-
(
|
|
2687
|
+
const f = ((await Te(e))?.filter((p) => We(p) && p.name !== o && p.name !== c) ?? []).map(
|
|
2688
|
+
(p) => p.name
|
|
2692
2689
|
) ?? [], m = s?.additionalTooltipFields ?? [], g = Array.from(
|
|
2693
2690
|
/* @__PURE__ */ new Set([o, c, l.objectIdField, ...f, ...m])
|
|
2694
2691
|
);
|
|
2695
2692
|
if (!ei(l).isTable) {
|
|
2696
|
-
const { rendererField:
|
|
2697
|
-
ee(
|
|
2693
|
+
const { rendererField: p, rendererNormalizationField: x } = ra(l?.renderer ?? void 0);
|
|
2694
|
+
ee(p) || g.push(p), ee(x) || g.push(x);
|
|
2698
2695
|
}
|
|
2699
2696
|
const y = {
|
|
2700
2697
|
...t,
|
|
@@ -2747,7 +2744,7 @@ async function xi(i) {
|
|
|
2747
2744
|
queryConfig: t,
|
|
2748
2745
|
queryObject: a,
|
|
2749
2746
|
abortKey: o
|
|
2750
|
-
}), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g =
|
|
2747
|
+
}), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = na(a);
|
|
2751
2748
|
m && await tr({
|
|
2752
2749
|
statsMap: c,
|
|
2753
2750
|
chartConfig: e,
|
|
@@ -2762,7 +2759,7 @@ async function xi(i) {
|
|
|
2762
2759
|
numberOfFeatures: f,
|
|
2763
2760
|
isAggregationMode: m,
|
|
2764
2761
|
useQueryAttributeBins: g
|
|
2765
|
-
}),
|
|
2762
|
+
}), p = await mr({
|
|
2766
2763
|
queryObject: a,
|
|
2767
2764
|
chartConfig: e,
|
|
2768
2765
|
rawData: y,
|
|
@@ -2771,27 +2768,27 @@ async function xi(i) {
|
|
|
2771
2768
|
useQueryAttributeBins: g
|
|
2772
2769
|
});
|
|
2773
2770
|
n !== !1 && Ge({
|
|
2774
|
-
arrayToSort:
|
|
2771
|
+
arrayToSort: p,
|
|
2775
2772
|
sortingField: e.series[0].x,
|
|
2776
2773
|
orderBy: me.Ascending
|
|
2777
2774
|
});
|
|
2778
2775
|
const { r2: x, trendLinePoints: F } = r !== !1 ? await ur({
|
|
2779
|
-
data:
|
|
2776
|
+
data: p,
|
|
2780
2777
|
statsMap: c,
|
|
2781
2778
|
queryConfig: t,
|
|
2782
2779
|
options: s,
|
|
2783
2780
|
queryObject: a,
|
|
2784
2781
|
chartConfig: e
|
|
2785
2782
|
}) : b.scatterplotSeries;
|
|
2786
|
-
return { dataItems:
|
|
2783
|
+
return { dataItems: p, r2: x, trendLinePoints: F, aggregated: m };
|
|
2787
2784
|
}
|
|
2788
2785
|
function pr(i) {
|
|
2789
|
-
const { itemsA: e, itemsB: t, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = i;
|
|
2790
|
-
let
|
|
2791
|
-
if (
|
|
2792
|
-
|
|
2786
|
+
const { itemsA: e, itemsB: t, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = i, o = Fe(e), c = Fe(t);
|
|
2787
|
+
let l = !1;
|
|
2788
|
+
if (o === void 0 && c !== void 0 || o !== void 0 && c === void 0)
|
|
2789
|
+
l = !0;
|
|
2793
2790
|
else if (!a) {
|
|
2794
|
-
const
|
|
2791
|
+
const u = [
|
|
2795
2792
|
b.originalCategoryValue,
|
|
2796
2793
|
b.originalDateValue,
|
|
2797
2794
|
b.xAxisField,
|
|
@@ -2807,18 +2804,18 @@ function pr(i) {
|
|
|
2807
2804
|
b.technicalFieldSplitByField,
|
|
2808
2805
|
Y.uniqueIdsName,
|
|
2809
2806
|
k.valueField,
|
|
2810
|
-
...
|
|
2811
|
-
],
|
|
2812
|
-
const
|
|
2813
|
-
typeof
|
|
2814
|
-
const
|
|
2815
|
-
return Object.keys(
|
|
2816
|
-
!
|
|
2817
|
-
}),
|
|
2818
|
-
},
|
|
2819
|
-
|
|
2807
|
+
...oa
|
|
2808
|
+
], d = (y, p) => {
|
|
2809
|
+
const x = p[b.typeOrDomainFieldName];
|
|
2810
|
+
typeof x == "string" && p[x] !== void 0 && (p[x] = p[b.typeOrDomainIdValue]), n && p[k.xField] !== void 0 && (p[n] = p[k.xField], delete p[k.xField]), r && p[k.yField] !== void 0 && (p[r] = p[k.yField], delete p[k.yField]), s && p[k.valueField] !== void 0 && (p[s] = p[k.valueField], delete p[k.valueField]);
|
|
2811
|
+
const F = {};
|
|
2812
|
+
return Object.keys(p).forEach((C) => {
|
|
2813
|
+
!u.includes(C) && !C.includes(b.rendererSymbolField) && (F[C] = p[C]);
|
|
2814
|
+
}), y.push(F), y;
|
|
2815
|
+
}, f = (y, p) => JSON.stringify(y).localeCompare(JSON.stringify(p)), m = o?.reduce(d, [])?.sort(f), g = c?.reduce(d, [])?.sort(f);
|
|
2816
|
+
l = m?.length !== g?.length || !Le(m, g);
|
|
2820
2817
|
}
|
|
2821
|
-
return
|
|
2818
|
+
return l;
|
|
2822
2819
|
}
|
|
2823
2820
|
function hr(i) {
|
|
2824
2821
|
const { chartConfig: e, currentSelectionDataItems: t, options: a } = i, { selectionData: n } = a ?? {};
|
|
@@ -2828,11 +2825,11 @@ function hr(i) {
|
|
|
2828
2825
|
if (c !== void 0 && pr({
|
|
2829
2826
|
itemsA: c,
|
|
2830
2827
|
itemsB: t,
|
|
2831
|
-
isPieFromFields: E(e.series) ===
|
|
2828
|
+
isPieFromFields: E(e.series) === h.PieFromFields,
|
|
2832
2829
|
x: e.series[0].x,
|
|
2833
2830
|
y: "y" in e.series[0] ? e.series[0].y.toString() : void 0,
|
|
2834
2831
|
outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
|
|
2835
|
-
}) ? r = c : r = t ?? [], s.length > 1 && o !==
|
|
2832
|
+
}) ? r = c : r = t ?? [], s.length > 1 && o !== h.BarAndLineNoAggregation && o !== h.BarAndLineSplitByNoAggregation) {
|
|
2836
2833
|
const l = K(s[0].query?.where);
|
|
2837
2834
|
r = Lt({ data: r, x: s[0].x, splitByField: l });
|
|
2838
2835
|
}
|
|
@@ -2843,7 +2840,7 @@ function hr(i) {
|
|
|
2843
2840
|
}
|
|
2844
2841
|
return r ?? [];
|
|
2845
2842
|
}
|
|
2846
|
-
function
|
|
2843
|
+
function Be(i, e) {
|
|
2847
2844
|
let t = "";
|
|
2848
2845
|
if (i.trim() !== "" && e !== void 0)
|
|
2849
2846
|
if (e === null)
|
|
@@ -2866,8 +2863,8 @@ function Sr(i) {
|
|
|
2866
2863
|
}
|
|
2867
2864
|
} else
|
|
2868
2865
|
r = Q([
|
|
2869
|
-
|
|
2870
|
-
a !== void 0 ?
|
|
2866
|
+
be({ where: Be(t, e[t]) }),
|
|
2867
|
+
a !== void 0 ? be({ where: Be(a, e[a]) }) : ""
|
|
2871
2868
|
]);
|
|
2872
2869
|
return r;
|
|
2873
2870
|
}
|
|
@@ -2900,16 +2897,16 @@ function vi(i) {
|
|
|
2900
2897
|
keepNullValues: !0,
|
|
2901
2898
|
specificField: b.typeOrDomainIdValue
|
|
2902
2899
|
});
|
|
2903
|
-
r === Ye.Double ? o = Bi(d, e) : (
|
|
2904
|
-
where:
|
|
2900
|
+
r === Ye.Double ? o = Bi(d, e) : (Pe(s.axes?.[0].valueFormat) && (d = Ve(d)), o = be({
|
|
2901
|
+
where: Be(e, d),
|
|
2905
2902
|
normalize: !1,
|
|
2906
2903
|
escape: !0
|
|
2907
2904
|
}));
|
|
2908
2905
|
}
|
|
2909
|
-
const c =
|
|
2906
|
+
const c = be({ where: a ?? "", normalize: !1, escape: !0 });
|
|
2910
2907
|
let l = "";
|
|
2911
|
-
if (
|
|
2912
|
-
const d = E(s.series) ===
|
|
2908
|
+
if (Qa(s) === !0) {
|
|
2909
|
+
const d = E(s.series) === h.BoxPlotMultiFieldsAndCategory ? t : void 0, f = U({
|
|
2913
2910
|
key: V.Min,
|
|
2914
2911
|
showOutliers: !0,
|
|
2915
2912
|
splitBy: a,
|
|
@@ -2921,8 +2918,8 @@ function vi(i) {
|
|
|
2921
2918
|
y: d
|
|
2922
2919
|
}), g = e === b.boxPlot.boxPlotCategory ? n[e] : t;
|
|
2923
2920
|
if (!ee(g)) {
|
|
2924
|
-
const y = n[f],
|
|
2925
|
-
Number.isFinite(y) && Number.isFinite(
|
|
2921
|
+
const y = n[f], p = n[m];
|
|
2922
|
+
Number.isFinite(y) && Number.isFinite(p) && (l = `${g?.toString()}>=${y?.toString()} AND ${g?.toString()}<=${p?.toString()}`);
|
|
2926
2923
|
}
|
|
2927
2924
|
}
|
|
2928
2925
|
return Q([o, c, l]);
|
|
@@ -2932,27 +2929,27 @@ function Fr(i) {
|
|
|
2932
2929
|
let s = "";
|
|
2933
2930
|
if (b.dateBinningRange in a)
|
|
2934
2931
|
s = Ci(e, a);
|
|
2935
|
-
else if (E(r.series) !==
|
|
2932
|
+
else if (E(r.series) !== h.BarAndLineFromFields) {
|
|
2936
2933
|
let l = ze({
|
|
2937
2934
|
value: a[e],
|
|
2938
2935
|
dataContext: a,
|
|
2939
2936
|
keepNullValues: !0,
|
|
2940
2937
|
specificField: b.typeOrDomainIdValue
|
|
2941
2938
|
});
|
|
2942
|
-
n === Ye.Double ? s = Bi(l, e) : (
|
|
2943
|
-
where:
|
|
2939
|
+
n === Ye.Double ? s = Bi(l, e) : (Pe(r.axes?.[0].valueFormat) && (l = Ve(l)), s = be({
|
|
2940
|
+
where: Be(e, l),
|
|
2944
2941
|
normalize: !1,
|
|
2945
2942
|
escape: !0
|
|
2946
2943
|
}));
|
|
2947
2944
|
}
|
|
2948
|
-
const o =
|
|
2945
|
+
const o = be({ where: t ?? "", normalize: !1, escape: !0 });
|
|
2949
2946
|
return Q([s, o]);
|
|
2950
2947
|
}
|
|
2951
2948
|
function br(i) {
|
|
2952
2949
|
const { xAxisField: e, dataContext: t, chartConfig: a } = i;
|
|
2953
2950
|
let n = b.typeOrDomainIdValue in t ? t[b.typeOrDomainIdValue] : t[b.originalCategoryValue];
|
|
2954
|
-
return n === void 0 && (n = t[e]), E(a.series) ===
|
|
2955
|
-
where:
|
|
2951
|
+
return n === void 0 && (n = t[e]), E(a.series) === h.PieFromFields ? "" : be({
|
|
2952
|
+
where: Be(e, n),
|
|
2956
2953
|
normalize: !1,
|
|
2957
2954
|
escape: !0
|
|
2958
2955
|
});
|
|
@@ -2985,8 +2982,8 @@ function xr(i) {
|
|
|
2985
2982
|
if (c.type === S.HeatSeries) {
|
|
2986
2983
|
let u, d;
|
|
2987
2984
|
const f = a[k.xField], m = a[k.yField], g = n.axes?.[0]?.valueFormat?.type, y = n.axes?.[1]?.valueFormat?.type;
|
|
2988
|
-
g === S.CategoryAxisFormat ? u =
|
|
2989
|
-
where:
|
|
2985
|
+
g === S.CategoryAxisFormat ? u = be({
|
|
2986
|
+
where: Be(c.x, f),
|
|
2990
2987
|
normalize: !1,
|
|
2991
2988
|
escape: !0
|
|
2992
2989
|
}) : u = Qt({
|
|
@@ -2997,8 +2994,8 @@ function xr(i) {
|
|
|
2997
2994
|
outTimeZone: r,
|
|
2998
2995
|
dataTimeZone: s,
|
|
2999
2996
|
runsOnClientQueryEngine: o
|
|
3000
|
-
}), y === S.CategoryAxisFormat ? d =
|
|
3001
|
-
where:
|
|
2997
|
+
}), y === S.CategoryAxisFormat ? d = be({
|
|
2998
|
+
where: Be(c.y, m),
|
|
3002
2999
|
normalize: !1,
|
|
3003
3000
|
escape: !0
|
|
3004
3001
|
}) : d = Qt({
|
|
@@ -3015,7 +3012,7 @@ function Cr(i) {
|
|
|
3015
3012
|
let n = "";
|
|
3016
3013
|
const r = a.series[0], { minValue: s, maxValue: o } = t;
|
|
3017
3014
|
if (Number.isFinite(s) && Number.isFinite(o) && r.type === S.HistogramSeries) {
|
|
3018
|
-
const c =
|
|
3015
|
+
const c = Ja(e, r.dataTransformationType), l = t.isLastBin ? "<=" : "<";
|
|
3019
3016
|
n = Q([
|
|
3020
3017
|
`${c}>=${s?.toString()}`,
|
|
3021
3018
|
`${c}${l}${o?.toString()}`
|
|
@@ -3054,7 +3051,7 @@ function Xo(i) {
|
|
|
3054
3051
|
async function Br(i) {
|
|
3055
3052
|
const { numberOfQueries: e, selectionOIDs: t, chartConfig: a, queryConfig: n, options: r, errorStrings: s, queryObject: o } = i, { setTimeBinningInfoWhenNotProvided: c } = r ?? {}, { series: l } = a, u = W(l), d = [], { maxOIDsPerSelectionQuery: f } = Ue();
|
|
3056
3053
|
for (let g = 0; g < e; g += 1) {
|
|
3057
|
-
const y = g * f,
|
|
3054
|
+
const y = g * f, p = (g + 1) * f - 1, x = t.slice(y === 0 ? 0 : y - 1, p), F = { ...n };
|
|
3058
3055
|
switch (F.objectIds = x, u) {
|
|
3059
3056
|
case S.HeatSeries:
|
|
3060
3057
|
d.push(
|
|
@@ -3074,7 +3071,7 @@ async function Br(i) {
|
|
|
3074
3071
|
case S.LineSeries:
|
|
3075
3072
|
case S.RadarSeries:
|
|
3076
3073
|
case S.ComboLineAndBarSeries:
|
|
3077
|
-
if (
|
|
3074
|
+
if (Ne({
|
|
3078
3075
|
xAxisValueFormatType: pe(a),
|
|
3079
3076
|
setTimeBinningInfoWhenNotProvided: c,
|
|
3080
3077
|
seriesConfig: l[0]
|
|
@@ -3168,11 +3165,11 @@ function vr(i) {
|
|
|
3168
3165
|
[f]: m[f]
|
|
3169
3166
|
}))
|
|
3170
3167
|
);
|
|
3171
|
-
} else l.valid && (r ===
|
|
3168
|
+
} else l.valid && (r === h.PieFromFields ? s = st({
|
|
3172
3169
|
dataToConvert: u[0],
|
|
3173
3170
|
x: ne,
|
|
3174
3171
|
y: he
|
|
3175
|
-
}) : r ===
|
|
3172
|
+
}) : r === h.BarAndLineFromFields ? s = st({
|
|
3176
3173
|
dataToConvert: u[0],
|
|
3177
3174
|
x: a[0].x,
|
|
3178
3175
|
y: a[0].y
|
|
@@ -3192,12 +3189,12 @@ async function Nr(i) {
|
|
|
3192
3189
|
options: o,
|
|
3193
3190
|
errorStrings: c
|
|
3194
3191
|
} = i, { series: l } = e, { selectionData: u, viewExtentUpdated: d, returnSelectionOIDs: f, chartLimits: m } = o ?? {}, { selectionItems: g, selectionOIDs: y } = u ?? {};
|
|
3195
|
-
let
|
|
3192
|
+
let p;
|
|
3196
3193
|
const x = W(l), F = x !== S.HistogramSeries && x !== S.HeatSeries && g !== void 0 && g.length > 0 && !(l[0].x in g[0]) && !(ne in g[0]) && !(b.boxPlot.boxPlotCategory in g[0]);
|
|
3197
|
-
if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !
|
|
3194
|
+
if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !Le(y, n))) {
|
|
3198
3195
|
const B = _t(a);
|
|
3199
|
-
if (B !== void 0 && !
|
|
3200
|
-
|
|
3196
|
+
if (B !== void 0 && !Ka({ dataContext: B[0], chartConfig: e, chartLimits: m }))
|
|
3197
|
+
p = B.filter((N) => {
|
|
3201
3198
|
const v = N[Y.uniqueIdsName];
|
|
3202
3199
|
return typeof v == "number" ? y?.includes(v) : !1;
|
|
3203
3200
|
});
|
|
@@ -3211,20 +3208,20 @@ async function Nr(i) {
|
|
|
3211
3208
|
errorStrings: c,
|
|
3212
3209
|
chartConfig: e
|
|
3213
3210
|
});
|
|
3214
|
-
|
|
3211
|
+
p = vr({
|
|
3215
3212
|
dataFetchingResults: T,
|
|
3216
3213
|
numberOfQueries: v,
|
|
3217
3214
|
series: l
|
|
3218
3215
|
});
|
|
3219
3216
|
}
|
|
3220
3217
|
}
|
|
3221
|
-
return
|
|
3218
|
+
return p;
|
|
3222
3219
|
}
|
|
3223
3220
|
function* Tr(i) {
|
|
3224
3221
|
const { filterList: e, queryObject: t, queryConfig: a } = i;
|
|
3225
3222
|
for (let n = 0; n < e.length; n += 1) {
|
|
3226
3223
|
const r = { ...a };
|
|
3227
|
-
r.where = Q([r.where, e[n]]), yield
|
|
3224
|
+
r.where = Q([r.where, e[n]]), yield la({
|
|
3228
3225
|
queryObject: t,
|
|
3229
3226
|
queryConfig: r,
|
|
3230
3227
|
uniqueFeature: !0
|
|
@@ -3256,7 +3253,7 @@ async function Ar(i) {
|
|
|
3256
3253
|
if (n !== void 0 && n.length > 0) {
|
|
3257
3254
|
const u = we(a), { x: d } = u, f = "y" in u ? u.y : "";
|
|
3258
3255
|
let m;
|
|
3259
|
-
e !== void 0 && (m = (await
|
|
3256
|
+
e !== void 0 && (m = (await Te(e)).find((B) => B.name === d)?.type);
|
|
3260
3257
|
const g = [], y = n.reduce(
|
|
3261
3258
|
(C, B) => {
|
|
3262
3259
|
const N = [];
|
|
@@ -3264,14 +3261,14 @@ async function Ar(i) {
|
|
|
3264
3261
|
g.push(B[Y.uniqueIdsName]);
|
|
3265
3262
|
else {
|
|
3266
3263
|
switch (c) {
|
|
3267
|
-
case
|
|
3268
|
-
case
|
|
3269
|
-
case
|
|
3264
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
3265
|
+
case h.BoxPlotMultiFieldsAndSplitBy:
|
|
3266
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
3270
3267
|
const w = K(u.query?.where ?? ""), L = `_${V.Average}`;
|
|
3271
3268
|
Object.keys(B).forEach((D) => {
|
|
3272
3269
|
if (D.includes(L)) {
|
|
3273
3270
|
const R = D.replace(L, "");
|
|
3274
|
-
R.trim() !== "" && N.push(
|
|
3271
|
+
R.trim() !== "" && N.push(Be(w, R));
|
|
3275
3272
|
}
|
|
3276
3273
|
});
|
|
3277
3274
|
break;
|
|
@@ -3279,7 +3276,7 @@ async function Ar(i) {
|
|
|
3279
3276
|
}
|
|
3280
3277
|
const v = [f].flat();
|
|
3281
3278
|
let T = v.length === 1 ? v[0] : "";
|
|
3282
|
-
if (c ===
|
|
3279
|
+
if (c === h.BoxPlotMultiFieldsAndCategory) {
|
|
3283
3280
|
const w = `_${V.FirstQuartile}`, L = Object.keys(B).find((D) => D.includes(w));
|
|
3284
3281
|
L !== void 0 && (T = L.replace(w, ""));
|
|
3285
3282
|
}
|
|
@@ -3298,9 +3295,9 @@ async function Ar(i) {
|
|
|
3298
3295
|
return C;
|
|
3299
3296
|
},
|
|
3300
3297
|
[]
|
|
3301
|
-
),
|
|
3302
|
-
if (
|
|
3303
|
-
const { objectIdField: C } =
|
|
3298
|
+
), p = z(e);
|
|
3299
|
+
if (p !== void 0 && g.length > 0) {
|
|
3300
|
+
const { objectIdField: C } = p;
|
|
3304
3301
|
y.push(`${C} IN (${g.join(",")})`);
|
|
3305
3302
|
}
|
|
3306
3303
|
const x = y.join(" OR "), F = { ...t };
|
|
@@ -3344,10 +3341,10 @@ async function Pr(i) {
|
|
|
3344
3341
|
m.data = { dataItems: g };
|
|
3345
3342
|
break;
|
|
3346
3343
|
case S.PieSeries:
|
|
3347
|
-
if (E(a.series) ===
|
|
3348
|
-
const { x:
|
|
3344
|
+
if (E(a.series) === h.PieFromFields) {
|
|
3345
|
+
const { x: p, y: x } = a.series[0], F = Fe(g);
|
|
3349
3346
|
F.forEach((C) => {
|
|
3350
|
-
|
|
3347
|
+
p in C && (C[ne] = C[p], delete C[p]), x in C && (C[he] = C[x], delete C[x]);
|
|
3351
3348
|
}), m.data = { dataItems: F };
|
|
3352
3349
|
} else
|
|
3353
3350
|
m.data = { dataItems: g };
|
|
@@ -3360,23 +3357,23 @@ async function Pr(i) {
|
|
|
3360
3357
|
case S.ComboLineAndBarSeries:
|
|
3361
3358
|
case S.RadarSeries:
|
|
3362
3359
|
case S.LineSeries:
|
|
3363
|
-
if (g.length === 0 || !
|
|
3360
|
+
if (g.length === 0 || !Ne({
|
|
3364
3361
|
xAxisValueFormatType: f,
|
|
3365
3362
|
setTimeBinningInfoWhenNotProvided: o?.setTimeBinningInfoWhenNotProvided,
|
|
3366
3363
|
seriesConfig: u[0]
|
|
3367
3364
|
}))
|
|
3368
3365
|
m.data = { dataItems: g }, m.count = g.length * u.length, y = !0;
|
|
3369
3366
|
else {
|
|
3370
|
-
const
|
|
3367
|
+
const p = { ...t };
|
|
3371
3368
|
if (n !== void 0 && n.length > 0) {
|
|
3372
3369
|
const F = n.map(
|
|
3373
3370
|
(B) => Ci(u[0].x, B)
|
|
3374
3371
|
), C = Q(F, "OR");
|
|
3375
|
-
|
|
3372
|
+
p.where = Q([p.where, C]);
|
|
3376
3373
|
}
|
|
3377
3374
|
m = await wt({
|
|
3378
3375
|
queryObject: e,
|
|
3379
|
-
queryConfig:
|
|
3376
|
+
queryConfig: p,
|
|
3380
3377
|
chartConfig: a,
|
|
3381
3378
|
options: o
|
|
3382
3379
|
});
|
|
@@ -3393,9 +3390,9 @@ async function Pr(i) {
|
|
|
3393
3390
|
bins: []
|
|
3394
3391
|
}, m.count = 0;
|
|
3395
3392
|
else {
|
|
3396
|
-
const { x:
|
|
3393
|
+
const { x: p } = u[0], x = g.map((B, N) => {
|
|
3397
3394
|
const { minValue: v, maxValue: T } = B, w = N === g.length - 1 ? "<=" : "<";
|
|
3398
|
-
return `${
|
|
3395
|
+
return `${p} >= ${v} AND ${p} ${w} ${T}`;
|
|
3399
3396
|
}), F = Q(x, "OR"), C = { ...t };
|
|
3400
3397
|
C.where = Q([C.where, F]), m = await Fi({
|
|
3401
3398
|
queryObject: e,
|
|
@@ -3410,14 +3407,14 @@ async function Pr(i) {
|
|
|
3410
3407
|
}
|
|
3411
3408
|
case S.ScatterSeries: {
|
|
3412
3409
|
if (g.length === 0) {
|
|
3413
|
-
const { r2:
|
|
3414
|
-
m.data = { dataItems: [], r2:
|
|
3410
|
+
const { r2: p, trendLinePoints: x } = b.scatterplotSeries;
|
|
3411
|
+
m.data = { dataItems: [], r2: p, trendLinePoints: x, count: 0 }, m.count = 0;
|
|
3415
3412
|
} else {
|
|
3416
|
-
const { r2:
|
|
3413
|
+
const { r2: p, trendLinePoints: x } = bi({
|
|
3417
3414
|
data: g,
|
|
3418
3415
|
chartConfig: a
|
|
3419
3416
|
});
|
|
3420
|
-
m.data = { dataItems: g, r2:
|
|
3417
|
+
m.data = { dataItems: g, r2: p, trendLinePoints: x }, m.count = g.length;
|
|
3421
3418
|
}
|
|
3422
3419
|
break;
|
|
3423
3420
|
}
|
|
@@ -3481,7 +3478,7 @@ async function Lr(i) {
|
|
|
3481
3478
|
abortKey: o,
|
|
3482
3479
|
fieldList: c
|
|
3483
3480
|
};
|
|
3484
|
-
|
|
3481
|
+
Ne({
|
|
3485
3482
|
xAxisValueFormatType: pe(t),
|
|
3486
3483
|
setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
|
|
3487
3484
|
seriesConfig: l[0]
|
|
@@ -3540,7 +3537,7 @@ async function el(i) {
|
|
|
3540
3537
|
runtimeDataFilters: c?.runtimeDataFilters,
|
|
3541
3538
|
ignoreViewExtent: c?.ignoreViewExtent
|
|
3542
3539
|
});
|
|
3543
|
-
return
|
|
3540
|
+
return ca(a), d = await Lr({
|
|
3544
3541
|
chartConfig: t,
|
|
3545
3542
|
queryObject: e,
|
|
3546
3543
|
queryConfig: f,
|
|
@@ -3568,7 +3565,7 @@ async function wr(i) {
|
|
|
3568
3565
|
const { seriesData: e, chartConfig: t, queryConfig: a, queryObject: n, categoryOrDateCount: r, behaviorAfterLimit: s, abortKey: o } = i, { series: c } = t;
|
|
3569
3566
|
let l = e;
|
|
3570
3567
|
const u = E(c), d = pe(t);
|
|
3571
|
-
if (s !== $e.RenderUpToTheLimit && n !== void 0 && r !== void 0 && r > e.length && u !==
|
|
3568
|
+
if (s !== $e.RenderUpToTheLimit && n !== void 0 && r !== void 0 && r > e.length && u !== h.BarAndLineFromFields && u !== h.BarAndLineNoAggregation && u !== h.PieNoAggregation && d === S.CategoryAxisFormat) {
|
|
3572
3569
|
const { x: f } = c[0], m = {
|
|
3573
3570
|
...a,
|
|
3574
3571
|
returnDistinctValues: !0,
|
|
@@ -3580,7 +3577,7 @@ async function wr(i) {
|
|
|
3580
3577
|
queryConfig: m,
|
|
3581
3578
|
featureCount: r,
|
|
3582
3579
|
abortKey: o
|
|
3583
|
-
})).map((
|
|
3580
|
+
})).map((p) => p.attributes[f]).filter((p) => p != null);
|
|
3584
3581
|
y.length > e.length && (l = Mr(y, e, f));
|
|
3585
3582
|
}
|
|
3586
3583
|
return l;
|
|
@@ -3601,19 +3598,19 @@ function Dr(i, e) {
|
|
|
3601
3598
|
return t;
|
|
3602
3599
|
}
|
|
3603
3600
|
const Ni = [
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3601
|
+
h.BarAndLineMonoField,
|
|
3602
|
+
h.BarAndLineMultiFields,
|
|
3603
|
+
h.PieNoAggregation,
|
|
3604
|
+
h.PieFromCategory,
|
|
3605
|
+
h.BoxPlotMonoFieldAndCategory,
|
|
3606
|
+
h.BoxPlotMultiFieldsAndCategory,
|
|
3607
|
+
h.BoxPlotMonoFieldAndCategoryAndSplitBy
|
|
3611
3608
|
], Or = 8e3;
|
|
3612
3609
|
function Ti(i, e) {
|
|
3613
3610
|
let t = i;
|
|
3614
3611
|
return e === j.Week ? t /= 7 : e === j.Month ? t /= 30 : e === j.Year && (t /= 365), t = Math.ceil(t), t;
|
|
3615
3612
|
}
|
|
3616
|
-
function
|
|
3613
|
+
function ve(i) {
|
|
3617
3614
|
const { date: e, unit: t, nextOrPrevious: a, size: n } = i;
|
|
3618
3615
|
if (n !== void 0 && Number.isFinite(n)) {
|
|
3619
3616
|
const r = a === "next" ? n : -n;
|
|
@@ -3638,7 +3635,7 @@ function Be(i) {
|
|
|
3638
3635
|
function qr(i) {
|
|
3639
3636
|
const { binFirstOrLastIndex: e, data: t, x: a, timeIntervalInfo: n } = i, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = t[e][a];
|
|
3640
3637
|
let l = e;
|
|
3641
|
-
const u =
|
|
3638
|
+
const u = ve({
|
|
3642
3639
|
date: c,
|
|
3643
3640
|
unit: r,
|
|
3644
3641
|
size: o,
|
|
@@ -3650,7 +3647,7 @@ function qr(i) {
|
|
|
3650
3647
|
const f = l + 1 >= t.length;
|
|
3651
3648
|
let m = l;
|
|
3652
3649
|
f && t[m] !== void 0 && (m += 1);
|
|
3653
|
-
const g = f ?
|
|
3650
|
+
const g = f ? ve({
|
|
3654
3651
|
date: c,
|
|
3655
3652
|
unit: r,
|
|
3656
3653
|
size: o,
|
|
@@ -3668,7 +3665,7 @@ function qr(i) {
|
|
|
3668
3665
|
function Er(i) {
|
|
3669
3666
|
const { binFirstOrLastIndex: e, data: t, x: a, timeIntervalInfo: n } = i, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = t[e][a];
|
|
3670
3667
|
let l = e;
|
|
3671
|
-
const u =
|
|
3668
|
+
const u = ve({
|
|
3672
3669
|
date: c,
|
|
3673
3670
|
unit: r,
|
|
3674
3671
|
size: o,
|
|
@@ -3680,7 +3677,7 @@ function Er(i) {
|
|
|
3680
3677
|
const f = l - 1 <= 0;
|
|
3681
3678
|
let m = e;
|
|
3682
3679
|
return f && t[m] !== void 0 && (m -= 1), f && (l = 0), {
|
|
3683
|
-
binStartDate: f ?
|
|
3680
|
+
binStartDate: f ? ve({
|
|
3684
3681
|
date: c,
|
|
3685
3682
|
unit: r,
|
|
3686
3683
|
size: o,
|
|
@@ -3724,14 +3721,14 @@ function Ir(i) {
|
|
|
3724
3721
|
let d, f;
|
|
3725
3722
|
if (oe(l) && (f = l.temporalBinning?.nullPolicy, d = l.temporalBinning?.timeAggregationType), c > 1 || o === j.Week || o === j.Month || o === j.Year) {
|
|
3726
3723
|
const { query: m } = t[0], g = se(t), { statisticType: y } = m?.outStatistics?.[0] ?? zt;
|
|
3727
|
-
let
|
|
3724
|
+
let p = !1, x = d === G.End ? e.length - 1 : 0;
|
|
3728
3725
|
const F = {
|
|
3729
3726
|
binFirstOrLastIndex: x,
|
|
3730
3727
|
data: e,
|
|
3731
3728
|
x: u,
|
|
3732
3729
|
timeIntervalInfo: a
|
|
3733
3730
|
};
|
|
3734
|
-
for (; !
|
|
3731
|
+
for (; !p; ) {
|
|
3735
3732
|
let C = {};
|
|
3736
3733
|
const { binStartDate: B, binEndDate: N, last: v, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === G.End ? (
|
|
3737
3734
|
// When grouping from the end we'll start from the last date and move backward to create the bins
|
|
@@ -3740,28 +3737,28 @@ function Ir(i) {
|
|
|
3740
3737
|
// When grouping from the start we'll start from the first date and move forward to create the bins
|
|
3741
3738
|
qr(F)
|
|
3742
3739
|
);
|
|
3743
|
-
if (
|
|
3740
|
+
if (p = v, C = d === G.End ? C = e[L - 1] : C = e[x], N > r && B < r || B < n && N > n || B >= n && N <= r) {
|
|
3744
3741
|
const D = e.slice(w, L).filter((q) => !(b.dateBinModel in q));
|
|
3745
3742
|
g.forEach((q) => {
|
|
3746
3743
|
C[q] = Vr({ binsToRegroup: D, statisticType: y, y: q, nullPolicy: f });
|
|
3747
3744
|
});
|
|
3748
|
-
const R = D.map((q) => q[
|
|
3749
|
-
M !== void 0 && (C[
|
|
3745
|
+
const R = D.map((q) => q[Ce]).filter((q) => q !== void 0), M = Ha(R);
|
|
3746
|
+
M !== void 0 && (C[Ce] = M), C[u] = B, C[b.xAxisField] = B, C[b.dateBinningRange] = [B, N], delete C[b.dateBinModel], s.push(C);
|
|
3750
3747
|
} else v && d !== G.End && s.length > 0 && (s[s.length - 1][b.dateBinningRange][1] = s[s.length - 1][b.dateBinningRange][1] + 1);
|
|
3751
3748
|
x = T, F.binFirstOrLastIndex = T;
|
|
3752
3749
|
}
|
|
3753
3750
|
d === G.End && (s = s.reverse());
|
|
3754
3751
|
} else c === 1 ? s = e.map((m, g) => {
|
|
3755
3752
|
const y = m[u];
|
|
3756
|
-
let
|
|
3757
|
-
return
|
|
3753
|
+
let p = e[g + 1]?.[u];
|
|
3754
|
+
return p = typeof p == "number" ? p - 1 : ve({
|
|
3758
3755
|
date: y,
|
|
3759
3756
|
unit: o,
|
|
3760
3757
|
size: c,
|
|
3761
3758
|
nextOrPrevious: "next"
|
|
3762
3759
|
}), {
|
|
3763
3760
|
...m,
|
|
3764
|
-
[b.dateBinningRange]: [y,
|
|
3761
|
+
[b.dateBinningRange]: [y, p]
|
|
3765
3762
|
};
|
|
3766
3763
|
}) : s = e;
|
|
3767
3764
|
return s;
|
|
@@ -3821,31 +3818,31 @@ function $r(i) {
|
|
|
3821
3818
|
c === j.Week && (g *= 7);
|
|
3822
3819
|
const y = Pi(r);
|
|
3823
3820
|
if (u === G.End) {
|
|
3824
|
-
let
|
|
3821
|
+
let p = n[0][l];
|
|
3825
3822
|
for (let x = 0; x < g; x += 1)
|
|
3826
|
-
|
|
3827
|
-
date:
|
|
3823
|
+
p = ve({
|
|
3824
|
+
date: p,
|
|
3828
3825
|
unit: c,
|
|
3829
3826
|
size: 1,
|
|
3830
3827
|
nextOrPrevious: "previous"
|
|
3831
3828
|
}), n.push({
|
|
3832
3829
|
...y,
|
|
3833
|
-
[l]:
|
|
3834
|
-
[b.xAxisField]:
|
|
3830
|
+
[l]: p,
|
|
3831
|
+
[b.xAxisField]: p
|
|
3835
3832
|
});
|
|
3836
3833
|
g > 0 && (d = n[n.length - 1][l]);
|
|
3837
3834
|
} else {
|
|
3838
|
-
let
|
|
3835
|
+
let p = n[n.length - 1][l];
|
|
3839
3836
|
for (let x = 0; x < g; x += 1)
|
|
3840
|
-
|
|
3841
|
-
date:
|
|
3837
|
+
p = ve({
|
|
3838
|
+
date: p,
|
|
3842
3839
|
unit: c,
|
|
3843
3840
|
size: 1,
|
|
3844
3841
|
nextOrPrevious: "next"
|
|
3845
3842
|
}), n.push({
|
|
3846
3843
|
...y,
|
|
3847
|
-
[l]:
|
|
3848
|
-
[b.xAxisField]:
|
|
3844
|
+
[l]: p,
|
|
3845
|
+
[b.xAxisField]: p
|
|
3849
3846
|
});
|
|
3850
3847
|
f = n[n.length - 1][l];
|
|
3851
3848
|
}
|
|
@@ -3902,13 +3899,13 @@ function jr(i) {
|
|
|
3902
3899
|
unit: c
|
|
3903
3900
|
})) {
|
|
3904
3901
|
const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = Pi(a);
|
|
3905
|
-
let y = f === G.End ? t : e,
|
|
3906
|
-
for (;
|
|
3907
|
-
y !== n[
|
|
3902
|
+
let y = f === G.End ? t : e, p = f === G.End ? n.length - 1 : 0;
|
|
3903
|
+
for (; p < n.length && (f === G.End && y > e || f !== G.End && y < t); )
|
|
3904
|
+
y !== n[p][d] ? l.push({
|
|
3908
3905
|
...m,
|
|
3909
3906
|
[d]: y,
|
|
3910
3907
|
[b.xAxisField]: y
|
|
3911
|
-
}) :
|
|
3908
|
+
}) : p = f === G.End ? p - 1 : p + 1, y = ve({
|
|
3912
3909
|
date: y,
|
|
3913
3910
|
unit: c === j.Month || c === j.Year ? j.Day : c,
|
|
3914
3911
|
size: 1,
|
|
@@ -3936,8 +3933,8 @@ function Wr(i) {
|
|
|
3936
3933
|
}
|
|
3937
3934
|
function Qr(i) {
|
|
3938
3935
|
const { groupByFieldsForStatistics: e, dateField: t, queryStartDate: a, queryEndDate: n, y: r, binIndex: s, lastBin: o } = i;
|
|
3939
|
-
let c = e === "" ?
|
|
3940
|
-
return c = de(
|
|
3936
|
+
let c = e === "" ? Me.groupByCaseBegin : e;
|
|
3937
|
+
return c = de(da, {
|
|
3941
3938
|
groupByFieldsForStatistics: c,
|
|
3942
3939
|
dateField: t,
|
|
3943
3940
|
startDate: `${a}`,
|
|
@@ -3959,9 +3956,9 @@ function* Hr(i) {
|
|
|
3959
3956
|
statisticParameters: { value: 0.5 }
|
|
3960
3957
|
}
|
|
3961
3958
|
];
|
|
3962
|
-
let f =
|
|
3959
|
+
let f = Me.groupByCaseBegin;
|
|
3963
3960
|
for (let g = 0; g < n.length; g += 1) {
|
|
3964
|
-
const y = n[g], [
|
|
3961
|
+
const y = n[g], [p, x] = y[b.dateBinningRange], F = Ve(p), C = Ve(x);
|
|
3965
3962
|
f = Qr({
|
|
3966
3963
|
groupByFieldsForStatistics: f,
|
|
3967
3964
|
queryStartDate: F,
|
|
@@ -3972,7 +3969,7 @@ function* Hr(i) {
|
|
|
3972
3969
|
lastBin: g === n.length - 1
|
|
3973
3970
|
});
|
|
3974
3971
|
}
|
|
3975
|
-
f = `${f} ${
|
|
3972
|
+
f = `${f} ${Me.groupByCaseEnd}`;
|
|
3976
3973
|
const m = {
|
|
3977
3974
|
...a,
|
|
3978
3975
|
groupByFieldsForStatistics: [f],
|
|
@@ -4012,9 +4009,9 @@ async function zr(i) {
|
|
|
4012
4009
|
return r;
|
|
4013
4010
|
}
|
|
4014
4011
|
async function Gr(i) {
|
|
4015
|
-
const { chartConfig: e, queryResults: t, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = i, l =
|
|
4012
|
+
const { chartConfig: e, queryResults: t, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = i, l = ua(r), d = (await Te(c)).find((x) => x.name === r)?.type, f = [], m = e.series[0], g = m.query?.outStatistics?.[0]?.statisticType, y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
|
|
4016
4013
|
return t.forEach((x, F) => {
|
|
4017
|
-
if (!(y && (F === 0 &&
|
|
4014
|
+
if (!(y && (F === 0 && p === G.End || F === t.length - 1 && p === G.Start))) {
|
|
4018
4015
|
const { attributes: B, stackedAttributes: N } = x;
|
|
4019
4016
|
let v = B[l.lowerBoundaryAlias], T = B[l.upperBoundaryAlias];
|
|
4020
4017
|
const w = v, L = T, D = (M, q) => {
|
|
@@ -4124,8 +4121,8 @@ function Yr(i) {
|
|
|
4124
4121
|
({ unit: a } = u);
|
|
4125
4122
|
const m = c / d, g = f.findIndex(
|
|
4126
4123
|
(x) => x >= m
|
|
4127
|
-
), y = f[g],
|
|
4128
|
-
n = y - m < m -
|
|
4124
|
+
), y = f[g], p = g === 0 ? f[0] : f[g - 1];
|
|
4125
|
+
n = y - m < m - p ? y : p;
|
|
4129
4126
|
}
|
|
4130
4127
|
return { size: n, unit: a };
|
|
4131
4128
|
}
|
|
@@ -4158,8 +4155,8 @@ function Li(i) {
|
|
|
4158
4155
|
let n;
|
|
4159
4156
|
e.aggregateGeometries && "Extent" in e.aggregateGeometries ? n = e.aggregateGeometries.Extent : { extent: n } = e.aggregateGeometries ?? e.geometry ?? {};
|
|
4160
4157
|
const r = n?.toJSON();
|
|
4161
|
-
let s =
|
|
4162
|
-
return r !== void 0 && t !== void 0 && a !== void 0 && a ===
|
|
4158
|
+
let s = Ce;
|
|
4159
|
+
return r !== void 0 && t !== void 0 && a !== void 0 && a === h.BarAndLineSplitBy && (s = e.attributes[t] !== void 0 ? `${Ce}_${e.attributes[t]}` : Ce), { featureExtent: r, featureExtentKey: s };
|
|
4163
4160
|
}
|
|
4164
4161
|
function Xr(i) {
|
|
4165
4162
|
const { input: e, x: t, splitByField: a } = i;
|
|
@@ -4252,33 +4249,33 @@ function rs(i, e) {
|
|
|
4252
4249
|
function ss(i, e) {
|
|
4253
4250
|
let t = 1;
|
|
4254
4251
|
switch (i) {
|
|
4255
|
-
case
|
|
4256
|
-
case
|
|
4252
|
+
case h.BarAndLineFromFields:
|
|
4253
|
+
case h.PieFromFields:
|
|
4257
4254
|
t = e.series[0].query?.outStatistics?.length ?? 1;
|
|
4258
4255
|
break;
|
|
4259
|
-
case
|
|
4260
|
-
case
|
|
4256
|
+
case h.BoxPlotMultiFields:
|
|
4257
|
+
case h.BoxPlotMultiFieldsAndSplitBy:
|
|
4261
4258
|
t = e.series[0].y.length;
|
|
4262
4259
|
break;
|
|
4263
|
-
case
|
|
4264
|
-
case
|
|
4265
|
-
case
|
|
4266
|
-
case
|
|
4267
|
-
case
|
|
4268
|
-
case
|
|
4269
|
-
case
|
|
4270
|
-
case
|
|
4271
|
-
case
|
|
4272
|
-
case
|
|
4273
|
-
case
|
|
4274
|
-
case
|
|
4275
|
-
case
|
|
4260
|
+
case h.BarAndLineNoAggregation:
|
|
4261
|
+
case h.BoxPlotMonoField:
|
|
4262
|
+
case h.BoxPlotMonoFieldAndCategory:
|
|
4263
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
4264
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
4265
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
4266
|
+
case h.PieFromCategory:
|
|
4267
|
+
case h.BarAndLineSplitByNoAggregation:
|
|
4268
|
+
case h.PieNoAggregation:
|
|
4269
|
+
case h.BarAndLineSplitBy:
|
|
4270
|
+
case h.BarAndLineMonoField:
|
|
4271
|
+
case h.BarAndLineMultiFields:
|
|
4272
|
+
case h.NonSpecific:
|
|
4276
4273
|
}
|
|
4277
4274
|
return t;
|
|
4278
4275
|
}
|
|
4279
4276
|
function os(i) {
|
|
4280
4277
|
const { attributes: e, showMean: t, chartSubType: a } = i;
|
|
4281
|
-
t && (a ===
|
|
4278
|
+
t && (a === h.BoxPlotMonoFieldAndSplitBy || a === h.BoxPlotMultiFieldsAndSplitBy || a === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
|
|
4282
4279
|
}
|
|
4283
4280
|
function ls(i) {
|
|
4284
4281
|
const { queryResponse: e, chartConfig: t, maxCategoryCount: a } = i, n = E(t.series);
|
|
@@ -4288,7 +4285,7 @@ function cs(i) {
|
|
|
4288
4285
|
const { attributes: e, uniqueCategoryList: t, maxCategoryCount: a, x: n, chartSubType: r } = i;
|
|
4289
4286
|
let s = !1;
|
|
4290
4287
|
if (n && a && Number.isFinite(a) && !Ni.includes(r))
|
|
4291
|
-
if ((r ===
|
|
4288
|
+
if ((r === h.BarAndLineFromFields || r === h.PieFromFields) && Object.keys(e).length > a)
|
|
4292
4289
|
Object.keys(e).filter((o) => o !== P.EnvelopeAggregate).forEach((o, c) => {
|
|
4293
4290
|
c >= a && delete e[o];
|
|
4294
4291
|
});
|
|
@@ -4312,33 +4309,33 @@ function Mi(i) {
|
|
|
4312
4309
|
showMean: u,
|
|
4313
4310
|
chartLimits: d,
|
|
4314
4311
|
fieldList: f
|
|
4315
|
-
} = i, { series: m } = t, g = E(m), y = W(m), { x:
|
|
4312
|
+
} = i, { series: m } = t, g = E(m), y = W(m), { x: p } = m[0], x = "y" in m[0] ? m[0].y : void 0, F = m[0].query?.outStatistics ?? [], { originalCategoryValue: C, originalDateValue: B, typeOrDomainFieldName: N, typeOrDomainIdValue: v } = b, T = [];
|
|
4316
4313
|
let w = 0;
|
|
4317
4314
|
const L = /* @__PURE__ */ new Set(), { maxCategoryCount: D } = Re(d), R = ls({ queryResponse: e, chartConfig: t, maxCategoryCount: D });
|
|
4318
4315
|
for (let M = 0; R[M] && M < R.length && !(l !== void 0 && w >= l); M += 1) {
|
|
4319
4316
|
w += ss(g, t);
|
|
4320
4317
|
const q = R[M];
|
|
4321
4318
|
let A = { ...q.attributes };
|
|
4322
|
-
if (cs({ attributes: A, uniqueCategoryList: L, maxCategoryCount: D, x:
|
|
4319
|
+
if (cs({ attributes: A, uniqueCategoryList: L, maxCategoryCount: D, x: p, chartSubType: g }))
|
|
4323
4320
|
continue;
|
|
4324
|
-
is(A, m), g ===
|
|
4321
|
+
is(A, m), g === h.PieFromFields || g === h.BarAndLineFromFields ? A = as(A, F) : typeof x == "string" && g === h.BarAndLineSplitByNoAggregation ? ns({ dataItem: A, splitByField: n, y: x }) : x && (g === h.BoxPlotMonoField || g === h.BoxPlotMonoFieldAndCategory || g === h.BoxPlotMonoFieldAndSplitBy || g === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && rs(
|
|
4325
4322
|
A,
|
|
4326
4323
|
typeof x == "string" ? x : x[0]
|
|
4327
4324
|
), os({ attributes: A, showMean: u, chartSubType: g });
|
|
4328
|
-
let O = A[
|
|
4329
|
-
O === null && m[0]?.query?.fetchNullValues === !0 && g !==
|
|
4325
|
+
let O = A[p];
|
|
4326
|
+
O === null && m[0]?.query?.fetchNullValues === !0 && g !== h.PieFromFields && (A[C] = null, O = b.nullValue), s && typeof O == "string" ? O = new Date(O).valueOf() : o && (O = Jr(A));
|
|
4330
4327
|
const { outStatisticFieldName: H } = Y.outStatistics ?? {}, { featureExtent: X, featureExtentKey: I } = Li({ feature: q, splitByField: n, chartSubType: g });
|
|
4331
|
-
if (X && (A[I] = X), g ===
|
|
4328
|
+
if (X && (A[I] = X), g === h.BarAndLineSplitBy && H !== void 0) {
|
|
4332
4329
|
const ue = A[n], te = a?.get(ue);
|
|
4333
4330
|
te !== void 0 && (ue === n && (A[b.technicalFieldSplitByField] = A[te]), A[te] = A[H]), delete A[H];
|
|
4334
|
-
} else (g ===
|
|
4335
|
-
const Z =
|
|
4331
|
+
} else (g === h.PieNoAggregation || g === h.BarAndLineNoAggregation || g === h.BarAndLineSplitByNoAggregation) && (s ? A[B] = O : O !== b.nullValue && (A[C] = O), Ra({ isXAxis: !0, chartType: y, valueFormat: t.axes?.[0]?.valueFormat }) && (A[b.xAxisField] = `${O}-${M}`), A[Y.uniqueIdsName] = A[r]);
|
|
4332
|
+
const Z = ha({
|
|
4336
4333
|
subtypeInfo: c,
|
|
4337
4334
|
fieldList: f,
|
|
4338
|
-
fieldName:
|
|
4335
|
+
fieldName: p,
|
|
4339
4336
|
fieldValueToMatch: O
|
|
4340
4337
|
});
|
|
4341
|
-
Z !== void 0 && Z !== O && g !==
|
|
4338
|
+
Z !== void 0 && Z !== O && g !== h.PieFromFields && (A[C] = Z, A[N] = p, A[v] = O), y === S.BoxPlotSeries && (A = es(m, A)), y === S.PieSeries && typeof O == "number" && (A[C] === void 0 && (A[C] = A[p]), O = `${O}`), O !== void 0 && (A[C] === void 0 && (A[C] = A[p]), A[p] = Z ?? O, A[p] === null && (A[p] = b.nullValue), A[b.xAxisField] === void 0 && (A[b.xAxisField] = A[v] ?? A[p])), A = ts(A, t), T.push(A);
|
|
4342
4339
|
}
|
|
4343
4340
|
return T;
|
|
4344
4341
|
}
|
|
@@ -4356,12 +4353,12 @@ async function ut(i) {
|
|
|
4356
4353
|
usePopupTemplateFieldsInfo: u
|
|
4357
4354
|
} = i, { series: d } = a, f = E(d);
|
|
4358
4355
|
let m = [];
|
|
4359
|
-
const g = f ===
|
|
4356
|
+
const g = f === h.BarAndLineSplitBy || f === h.BarAndLineSplitByNoAggregation ? K(d[0].query?.where) : "", y = await ye({
|
|
4360
4357
|
queryObject: e,
|
|
4361
4358
|
queryConfig: t,
|
|
4362
4359
|
featureCount: s,
|
|
4363
4360
|
abortKey: r
|
|
4364
|
-
}),
|
|
4361
|
+
}), p = await Te(e, u), F = z(e).objectIdField, C = pa(p), { x: B } = d[0], N = C.includes(B), v = ni(e);
|
|
4365
4362
|
return m = Mi({
|
|
4366
4363
|
queryResponse: y,
|
|
4367
4364
|
chartConfig: a,
|
|
@@ -4371,11 +4368,11 @@ async function ut(i) {
|
|
|
4371
4368
|
isDateField: N,
|
|
4372
4369
|
isTimeBinningSeries: o,
|
|
4373
4370
|
subtypeInfo: v,
|
|
4374
|
-
fieldList:
|
|
4371
|
+
fieldList: p,
|
|
4375
4372
|
resultLimit: t.num,
|
|
4376
4373
|
showMean: c,
|
|
4377
4374
|
chartLimits: l
|
|
4378
|
-
}), f !==
|
|
4375
|
+
}), f !== h.BarAndLineSplitByNoAggregation && f !== h.BarAndLineFromFields && (g !== "" && (m = Lt({ data: m, x: B, splitByField: g })), m = Zr(
|
|
4379
4376
|
m,
|
|
4380
4377
|
d
|
|
4381
4378
|
)), m;
|
|
@@ -4383,10 +4380,10 @@ async function ut(i) {
|
|
|
4383
4380
|
async function wi(i) {
|
|
4384
4381
|
const { chartConfig: e, queryObject: t, queryConfig: a, numberMaxOfFeaturesToFetch: n, behaviorAfterLimit: r, isGaugeByFeature: s } = i, { series: o } = e, c = E(o), { x: l } = o[0], u = o.length;
|
|
4385
4382
|
let d, f;
|
|
4386
|
-
if (c ===
|
|
4383
|
+
if (c === h.BoxPlotMonoField || c === h.BoxPlotMonoFieldAndSplitBy ? (f = u, d = f) : c === h.BoxPlotMultiFields || c === h.BoxPlotMultiFieldsAndSplitBy ? (f = e.series[0].y.length, d = f) : c === h.PieFromFields || c === h.BarAndLineFromFields ? (f = o[0].query?.outStatistics?.filter(
|
|
4387
4384
|
(m) => m.statisticType !== P.EnvelopeAggregate
|
|
4388
|
-
).length ?? 0, d = f) : d = await
|
|
4389
|
-
const m = c ===
|
|
4385
|
+
).length ?? 0, d = f) : d = await ya({ queryObject: t, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
|
|
4386
|
+
const m = c === h.BoxPlotMonoField || c === h.BoxPlotMonoFieldAndCategory || c === h.BoxPlotMonoFieldAndSplitBy;
|
|
4390
4387
|
f = Ft(c) && !m ? d * u : d;
|
|
4391
4388
|
}
|
|
4392
4389
|
return r === $e.RenderUpToTheLimit && f !== void 0 && n !== void 0 && n < f && (f = n, d = Math.ceil(f / u)), { categoryOrDateCount: d, elementCount: f };
|
|
@@ -4404,9 +4401,9 @@ function Ke(i) {
|
|
|
4404
4401
|
else if (l !== void 0 && e !== void 0 && e.length > 1) {
|
|
4405
4402
|
const { orderBy: u } = l;
|
|
4406
4403
|
let { sortingField: d } = l;
|
|
4407
|
-
const f = t.orderOptions?.data?.orderType ===
|
|
4404
|
+
const f = t.orderOptions?.data?.orderType === xe.Category, m = l.preferLabel !== !1, g = s === h.BarAndLineFromFields || s === h.PieFromFields || s === h.BoxPlotMultiFields || s === h.BoxPlotMultiFieldsAndSplitBy, y = g || o === S.PieSeries, p = s === h.PieNoAggregation || s === h.BarAndLineNoAggregation || s === h.BarAndLineSplitByNoAggregation, x = g ? !1 : e?.length > 0 && e.some((F) => Object.hasOwn(F, b.typeOrDomainIdValue));
|
|
4408
4405
|
if (f && (!m || (o === S.LineSeries || o === S.RadarSeries) && c === S.NumberAxisFormat) && (x ? d = b.typeOrDomainIdValue : y && (d = b.originalCategoryValue)), Array.isArray(u))
|
|
4409
|
-
|
|
4406
|
+
Ga({
|
|
4410
4407
|
arrayToSort: e,
|
|
4411
4408
|
orderBy: u,
|
|
4412
4409
|
sortingField: d,
|
|
@@ -4421,7 +4418,7 @@ function Ke(i) {
|
|
|
4421
4418
|
orderBy: u,
|
|
4422
4419
|
sortingField: d,
|
|
4423
4420
|
forceAscendingOrder: F,
|
|
4424
|
-
isNonAggregated:
|
|
4421
|
+
isNonAggregated: p,
|
|
4425
4422
|
sortByCategory: f,
|
|
4426
4423
|
preferLabel: m,
|
|
4427
4424
|
isPieOrByFieldsChart: y
|
|
@@ -4433,9 +4430,9 @@ function Ke(i) {
|
|
|
4433
4430
|
async function Bt(i) {
|
|
4434
4431
|
const { chartConfig: e, queryConfig: t, fetchFullBoxPlotData: a, options: n, queryObject: r, abortKey: s, fieldList: o } = i, c = "showMean" in e && typeof e.showMean == "boolean" ? e.showMean : !1, { chartLimits: l, usePopupTemplateFieldsInfo: u } = n ?? {}, d = n?.replaceNoValueCategoryWithZero ?? b.options.replaceNoValueCategoryWithZero, { behaviorAfterLimit: f } = l ?? {}, m = { valid: !0 };
|
|
4435
4432
|
let g, y = !1;
|
|
4436
|
-
const
|
|
4433
|
+
const p = e.series, x = p[0], F = E(e.series);
|
|
4437
4434
|
if (x !== void 0 && r !== void 0) {
|
|
4438
|
-
const C = W(
|
|
4435
|
+
const C = W(p), { uniqueQuery: B, mapToStatField: N } = await ct({
|
|
4439
4436
|
chartConfig: e,
|
|
4440
4437
|
queryObject: r,
|
|
4441
4438
|
queryConfig: t,
|
|
@@ -4452,7 +4449,7 @@ async function Bt(i) {
|
|
|
4452
4449
|
const w = !Number.isFinite(T);
|
|
4453
4450
|
let L = w || Se({
|
|
4454
4451
|
count: T ?? 0,
|
|
4455
|
-
seriesCount:
|
|
4452
|
+
seriesCount: p.length,
|
|
4456
4453
|
chartType: C,
|
|
4457
4454
|
chartLimits: l
|
|
4458
4455
|
});
|
|
@@ -4476,22 +4473,22 @@ async function Bt(i) {
|
|
|
4476
4473
|
elementCount: T,
|
|
4477
4474
|
chartLimits: l,
|
|
4478
4475
|
abortKey: s
|
|
4479
|
-
}), l?.maxBoxPlotOutlierLimit !== void 0 && (L = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !L)), w && (v = g.length, T = Ft(F) ? v *
|
|
4476
|
+
}), l?.maxBoxPlotOutlierLimit !== void 0 && (L = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !L)), w && (v = g.length, T = Ft(F) ? v * p.length : v, L = Se({
|
|
4480
4477
|
count: T,
|
|
4481
|
-
seriesCount:
|
|
4478
|
+
seriesCount: p.length,
|
|
4482
4479
|
chartType: C,
|
|
4483
4480
|
chartLimits: l
|
|
4484
4481
|
})), L)) {
|
|
4485
4482
|
if (C === S.PieSeries) {
|
|
4486
|
-
F ===
|
|
4483
|
+
F === h.PieFromFields && (g = st({
|
|
4487
4484
|
dataToConvert: g[0],
|
|
4488
4485
|
x: ne,
|
|
4489
4486
|
y: he,
|
|
4490
4487
|
fieldList: o
|
|
4491
4488
|
}));
|
|
4492
4489
|
let D = "";
|
|
4493
|
-
F ===
|
|
4494
|
-
} else if ((C === S.RadarSeries || C === S.BarSeries || C === S.LineSeries || C === S.ComboLineAndBarSeries) && (F ===
|
|
4490
|
+
F === h.PieFromFields ? D = he : "y" in x && typeof x.y == "string" && (D = x.y), cn(g, D) ? m.data = { dataItems: g } : Sn(m, $.PieChartMixOfNegativePositiveSlices);
|
|
4491
|
+
} else if ((C === S.RadarSeries || C === S.BarSeries || C === S.LineSeries || C === S.ComboLineAndBarSeries) && (F === h.BarAndLineFromFields && "y" in x && typeof x.y == "string" ? g = st({
|
|
4495
4492
|
dataToConvert: g[0],
|
|
4496
4493
|
x: x.x,
|
|
4497
4494
|
y: x.y,
|
|
@@ -4504,13 +4501,13 @@ async function Bt(i) {
|
|
|
4504
4501
|
categoryOrDateCount: v,
|
|
4505
4502
|
behaviorAfterLimit: f,
|
|
4506
4503
|
abortKey: s
|
|
4507
|
-
}), T = Ft(F) ? g.length *
|
|
4504
|
+
}), T = Ft(F) ? g.length * p.length : g.length, L = Se({
|
|
4508
4505
|
count: T,
|
|
4509
|
-
seriesCount:
|
|
4506
|
+
seriesCount: p.length,
|
|
4510
4507
|
chartType: C,
|
|
4511
4508
|
chartLimits: l
|
|
4512
4509
|
}), L)) {
|
|
4513
|
-
d && (g = Dr(g, e)), Ke({ arrayToSort: g, chartConfig: e, fieldList: o }), console.log("🚀CT: ~ fetchFinishedGenericChartData / data after:",
|
|
4510
|
+
d && (g = Dr(g, e)), Ke({ arrayToSort: g, chartConfig: e, fieldList: o }), console.log("🚀CT: ~ fetchFinishedGenericChartData / data after:", Fe(g));
|
|
4514
4511
|
let D = {};
|
|
4515
4512
|
if (oe(x)) {
|
|
4516
4513
|
const { size: R, unit: M } = x.temporalBinning ?? {};
|
|
@@ -4541,9 +4538,9 @@ async function Di(i) {
|
|
|
4541
4538
|
let l;
|
|
4542
4539
|
const u = e.series[0], { nullPolicy: d } = "nullPolicy" in e ? e : {};
|
|
4543
4540
|
if (u.type === S.HeatSeries) {
|
|
4544
|
-
const { x: f, y: m, query: g, yTemporalBinning: y } = u,
|
|
4541
|
+
const { x: f, y: m, query: g, yTemporalBinning: y } = u, p = g?.outStatistics?.[0]?.outStatisticFieldName ?? "";
|
|
4545
4542
|
if (mi(e)) {
|
|
4546
|
-
const x = await
|
|
4543
|
+
const x = await ma({
|
|
4547
4544
|
chartConfig: e,
|
|
4548
4545
|
queryObject: a,
|
|
4549
4546
|
queryConfig: t,
|
|
@@ -4559,7 +4556,7 @@ async function Di(i) {
|
|
|
4559
4556
|
}))
|
|
4560
4557
|
ot({ dataInfo: c, chartType: S.HeatSeries });
|
|
4561
4558
|
else if (typeof x?.[0] == "object") {
|
|
4562
|
-
const F = await
|
|
4559
|
+
const F = await Te(a, s?.usePopupTemplateFieldsInfo), C = ni(a);
|
|
4563
4560
|
l = Mi({
|
|
4564
4561
|
queryResponse: x,
|
|
4565
4562
|
chartConfig: e,
|
|
@@ -4592,7 +4589,7 @@ async function Di(i) {
|
|
|
4592
4589
|
}
|
|
4593
4590
|
}
|
|
4594
4591
|
} else {
|
|
4595
|
-
const x = await
|
|
4592
|
+
const x = await ga({
|
|
4596
4593
|
chartConfig: e,
|
|
4597
4594
|
queryObject: a,
|
|
4598
4595
|
queryConfig: t,
|
|
@@ -4606,7 +4603,7 @@ async function Di(i) {
|
|
|
4606
4603
|
w.push(D), N.push({
|
|
4607
4604
|
[k.xField]: `${v.lowerBoundary}`,
|
|
4608
4605
|
[k.yField]: D,
|
|
4609
|
-
[k.valueField]: L[
|
|
4606
|
+
[k.valueField]: L[p]
|
|
4610
4607
|
});
|
|
4611
4608
|
}), n && F && w.length !== F?.length && F.filter((D) => !w.includes(D.toString())).forEach((D) => {
|
|
4612
4609
|
N.push({
|
|
@@ -4656,9 +4653,9 @@ async function wt(i) {
|
|
|
4656
4653
|
const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, binnedServerData: r, options: s } = i, { chartLimits: o, usePopupTemplateFieldsInfo: c } = s ?? {}, { behaviorAfterLimit: l } = o ?? {}, u = e.series, d = u[0], { x: f } = d, m = K(d.query?.where), g = { valid: !0 };
|
|
4657
4654
|
let y;
|
|
4658
4655
|
if (oe(d)) {
|
|
4659
|
-
const { temporalBinning:
|
|
4660
|
-
if (a &&
|
|
4661
|
-
const { unit: x, size: F } =
|
|
4656
|
+
const { temporalBinning: p } = d;
|
|
4657
|
+
if (a && p) {
|
|
4658
|
+
const { unit: x, size: F } = p;
|
|
4662
4659
|
let C = 1, B = { unit: x, size: F }, N = !1;
|
|
4663
4660
|
const v = Kr({
|
|
4664
4661
|
series: d,
|
|
@@ -4666,11 +4663,11 @@ async function wt(i) {
|
|
|
4666
4663
|
setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided
|
|
4667
4664
|
});
|
|
4668
4665
|
let T = r?.timeBinningStats;
|
|
4669
|
-
!T && (!Qe(a) || v) && (T = await kr({ queryObject: a, queryConfig: t, x: f })), v && T && T.numberOfFeatures > 0 && T.dateRange.dateMaxTimestamp !== void 0 && T.dateRange.dateMinTimestamp !== void 0 && (B = Yr(T), (await
|
|
4666
|
+
!T && (!Qe(a) || v) && (T = await kr({ queryObject: a, queryConfig: t, x: f })), v && T && T.numberOfFeatures > 0 && T.dateRange.dateMaxTimestamp !== void 0 && T.dateRange.dateMinTimestamp !== void 0 && (B = Yr(T), (await Te(a)).find((q) => q.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
|
|
4670
4667
|
j.Hour,
|
|
4671
4668
|
j.Minute,
|
|
4672
4669
|
j.Second
|
|
4673
|
-
].includes(B.unit) && (B.unit = j.Day, B.size = 1),
|
|
4670
|
+
].includes(B.unit) && (B.unit = j.Day, B.size = 1), p.size = B.size, p.unit = B.unit);
|
|
4674
4671
|
const { uniqueQuery: w, mapToStatField: L } = await ct({
|
|
4675
4672
|
chartConfig: e,
|
|
4676
4673
|
queryConfig: t,
|
|
@@ -4691,7 +4688,7 @@ async function wt(i) {
|
|
|
4691
4688
|
dateField: f,
|
|
4692
4689
|
splitByField: m,
|
|
4693
4690
|
queryConfig: w,
|
|
4694
|
-
temporalBinning:
|
|
4691
|
+
temporalBinning: p
|
|
4695
4692
|
}), M = "y" in d && typeof d.y == "string" ? d.y : void 0;
|
|
4696
4693
|
if (y = await Gr({
|
|
4697
4694
|
chartConfig: e,
|
|
@@ -4700,7 +4697,7 @@ async function wt(i) {
|
|
|
4700
4697
|
splitByField: m,
|
|
4701
4698
|
x: f,
|
|
4702
4699
|
y: M,
|
|
4703
|
-
nullPolicy:
|
|
4700
|
+
nullPolicy: p.nullPolicy,
|
|
4704
4701
|
queryObject: a
|
|
4705
4702
|
}), !Se({
|
|
4706
4703
|
count: y.length,
|
|
@@ -4734,7 +4731,7 @@ async function wt(i) {
|
|
|
4734
4731
|
isTimeBinningSeries: !0,
|
|
4735
4732
|
usePopupTemplateFieldsInfo: c,
|
|
4736
4733
|
abortKey: n
|
|
4737
|
-
}), g.binnedServerData = { data:
|
|
4734
|
+
}), g.binnedServerData = { data: Fe(y), timeBinningStats: T }, y = await Ur({
|
|
4738
4735
|
queryObject: a,
|
|
4739
4736
|
queryConfig: t,
|
|
4740
4737
|
queryResults: y,
|
|
@@ -4744,7 +4741,7 @@ async function wt(i) {
|
|
|
4744
4741
|
timeIntervalInfo: B
|
|
4745
4742
|
});
|
|
4746
4743
|
}
|
|
4747
|
-
|
|
4744
|
+
fa(a) && y && y?.length === Or && (N = !0), l === $e.RenderUpToTheLimit && y && (y = ds({ chartConfig: e, options: s, data: y }));
|
|
4748
4745
|
}
|
|
4749
4746
|
D || (g.valid = !1, g.invalidType = $.LineChartExceedsLimit), y && y.length > 0 && (y[y.length - 1][b.lastTemporalBin] = !0), g.data = { dataItems: y, timeIntervalInfo: B, serverLimitReached: N }, g.count = C;
|
|
4750
4747
|
}
|
|
@@ -4754,7 +4751,7 @@ async function wt(i) {
|
|
|
4754
4751
|
async function fs(i) {
|
|
4755
4752
|
const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, options: r } = i, s = He(e), { setTimeBinningInfoWhenNotProvided: o, chartLimits: c, usePopupTemplateFieldsInfo: l } = r ?? {}, u = { valid: !0 };
|
|
4756
4753
|
if (a !== void 0) {
|
|
4757
|
-
const d = e.series, f =
|
|
4754
|
+
const d = e.series, f = Ne({
|
|
4758
4755
|
seriesConfig: d[0],
|
|
4759
4756
|
xAxisValueFormatType: pe(e),
|
|
4760
4757
|
setTimeBinningInfoWhenNotProvided: o
|
|
@@ -4800,7 +4797,7 @@ function tl(i, e) {
|
|
|
4800
4797
|
const t = i.filter(
|
|
4801
4798
|
(a) => !Oi(a)
|
|
4802
4799
|
);
|
|
4803
|
-
return !
|
|
4800
|
+
return !Le(t, e);
|
|
4804
4801
|
}
|
|
4805
4802
|
function gs(i, e) {
|
|
4806
4803
|
let t = i.reduce((a, n) => {
|
|
@@ -4875,24 +4872,24 @@ function rl(i) {
|
|
|
4875
4872
|
if (e.chartRenderer)
|
|
4876
4873
|
a = !0;
|
|
4877
4874
|
else {
|
|
4878
|
-
const { series: n } = e, r = W(n), s = E(n), o = we(e), c =
|
|
4875
|
+
const { series: n } = e, r = W(n), s = E(n), o = we(e), c = Ne({
|
|
4879
4876
|
seriesConfig: o
|
|
4880
4877
|
}), u = z(t)?.renderer;
|
|
4881
4878
|
switch (u?.type) {
|
|
4882
4879
|
case ie.Simple:
|
|
4883
|
-
a = r === S.HistogramSeries || r === S.ScatterSeries || s ===
|
|
4880
|
+
a = r === S.HistogramSeries || r === S.ScatterSeries || s === h.BarAndLineMonoField || s === h.BoxPlotMonoField || s === h.BoxPlotMultiFields || s === h.BoxPlotMonoFieldAndCategory || s === h.BarAndLineNoAggregation && n.length === 1 && !c;
|
|
4884
4881
|
break;
|
|
4885
4882
|
case ie.UniqueValue:
|
|
4886
4883
|
{
|
|
4887
4884
|
const f = u?.field, m = K(o.query?.where), { x: g } = o;
|
|
4888
|
-
a = (s ===
|
|
4885
|
+
a = (s === h.BoxPlotMonoFieldAndSplitBy || s === h.BoxPlotMultiFieldsAndSplitBy || s === h.BoxPlotMonoFieldAndCategoryAndSplitBy || s === h.BarAndLineSplitByNoAggregation || s === h.BarAndLineSplitBy) && f === m || (s === h.BoxPlotMonoFieldAndCategory || s === h.PieFromCategory || s === h.BarAndLineMonoField) && f === g || s === h.BarAndLineNoAggregation || s === h.PieNoAggregation || r === S.ScatterSeries;
|
|
4889
4886
|
}
|
|
4890
4887
|
break;
|
|
4891
4888
|
case ie.PieChart:
|
|
4892
|
-
a = s ===
|
|
4889
|
+
a = s === h.PieFromFields || s === h.BarAndLineFromFields || s === h.BarAndLineMultiFields || s === h.BarAndLineMonoField || s === h.BoxPlotMonoField || s === h.BoxPlotMultiFields || s === h.BoxPlotMonoFieldAndCategory || s === h.BoxPlotMultiFieldsAndCategory;
|
|
4893
4890
|
break;
|
|
4894
4891
|
case ie.ClassBreaks:
|
|
4895
|
-
a = r === S.ScatterSeries || s ===
|
|
4892
|
+
a = r === S.ScatterSeries || s === h.BarAndLineNoAggregation || s === h.PieNoAggregation;
|
|
4896
4893
|
break;
|
|
4897
4894
|
case ie.Dictionary:
|
|
4898
4895
|
case ie.DotDensity:
|
|
@@ -4941,32 +4938,32 @@ function Bs(i) {
|
|
|
4941
4938
|
const { color: m, label: g } = d;
|
|
4942
4939
|
let y;
|
|
4943
4940
|
Array.isArray(m) && m?.length === 4 ? y = m : m && "toRgba" in m && (y = m.toRgba());
|
|
4944
|
-
let
|
|
4941
|
+
let p = !1, x = !0;
|
|
4945
4942
|
switch (c) {
|
|
4946
4943
|
case S.BarSeries:
|
|
4947
4944
|
case S.LineSeries:
|
|
4948
4945
|
case S.ComboLineAndBarSeries:
|
|
4949
4946
|
case S.RadarSeries:
|
|
4950
|
-
if (a !==
|
|
4947
|
+
if (a !== h.BarAndLineFromFields) {
|
|
4951
4948
|
const F = t.find((C) => C.query?.outStatistics?.[0]?.onStatisticField === f);
|
|
4952
4949
|
F !== void 0 && "y" in F ? f = [F.y].flat()[0] : f = "";
|
|
4953
4950
|
}
|
|
4954
|
-
|
|
4951
|
+
p = a !== h.BarAndLineFromFields || f === n[b.originalCategoryValue];
|
|
4955
4952
|
break;
|
|
4956
4953
|
case S.PieSeries:
|
|
4957
|
-
|
|
4954
|
+
p = a === h.PieFromFields && f === n[b.originalCategoryValue];
|
|
4958
4955
|
break;
|
|
4959
4956
|
case S.BoxPlotSeries:
|
|
4960
|
-
a ===
|
|
4957
|
+
a === h.BoxPlotMonoField || a === h.BoxPlotMonoFieldAndCategory ? p = f === t[0].y : f && (a === h.BoxPlotMultiFields || a === h.BoxPlotMultiFieldsAndCategory) && (p = t.map((C) => C.y).flat().includes(f)), x = !1;
|
|
4961
4958
|
break;
|
|
4962
4959
|
}
|
|
4963
|
-
|
|
4960
|
+
p && y && (s = {
|
|
4964
4961
|
type: rt.SMS,
|
|
4965
4962
|
color: y,
|
|
4966
4963
|
label: x && g ? g : void 0
|
|
4967
4964
|
}, l != null && (s.outline = l), qi({
|
|
4968
4965
|
dataItem: n,
|
|
4969
|
-
symbolField: a ===
|
|
4966
|
+
symbolField: a === h.BarAndLineFromFields || a === h.PieFromFields ? b.rendererSymbolField : `${b.rendererSymbolField}_${f}`,
|
|
4970
4967
|
rendererSymbol: s,
|
|
4971
4968
|
rendererOrigin: r
|
|
4972
4969
|
}) && (o = !0));
|
|
@@ -4981,18 +4978,18 @@ function vs(i) {
|
|
|
4981
4978
|
const s = ge({
|
|
4982
4979
|
where: e.query?.where
|
|
4983
4980
|
});
|
|
4984
|
-
s === null ? r = b.nullValue : t ===
|
|
4981
|
+
s === null ? r = b.nullValue : t === h.BarAndLineSplitBy && typeof e.y == "string" ? r = e.y : t === h.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? r = `${e.y}_${s}` : r = `${s}`;
|
|
4985
4982
|
}
|
|
4986
4983
|
} else if (a === ie.PieChart)
|
|
4987
4984
|
switch (t) {
|
|
4988
|
-
case
|
|
4985
|
+
case h.BoxPlotMultiFields:
|
|
4989
4986
|
r = Array.isArray(e.y) ? e.y.flat() : e.y;
|
|
4990
4987
|
break;
|
|
4991
|
-
case
|
|
4992
|
-
case
|
|
4993
|
-
case
|
|
4994
|
-
case
|
|
4995
|
-
case
|
|
4988
|
+
case h.BarAndLineMonoField:
|
|
4989
|
+
case h.BarAndLineMultiFields:
|
|
4990
|
+
case h.BoxPlotMonoField:
|
|
4991
|
+
case h.BoxPlotMonoFieldAndCategory:
|
|
4992
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
4996
4993
|
r = e.y;
|
|
4997
4994
|
break;
|
|
4998
4995
|
}
|
|
@@ -5012,9 +5009,9 @@ function Ns(i) {
|
|
|
5012
5009
|
// TODO: find a better way to copy the layer. For now it's all right as the information we need are not lost with the spread operator
|
|
5013
5010
|
// eslint-disable-next-line @typescript-eslint/no-misused-spread
|
|
5014
5011
|
...z(t),
|
|
5015
|
-
renderer:
|
|
5012
|
+
renderer: xa.fromJSON(e)
|
|
5016
5013
|
} : z(t);
|
|
5017
|
-
return new
|
|
5014
|
+
return new Ca({
|
|
5018
5015
|
layer: a
|
|
5019
5016
|
});
|
|
5020
5017
|
}
|
|
@@ -5045,7 +5042,7 @@ async function Ts(i) {
|
|
|
5045
5042
|
const { x: m } = e[0], g = /* @__PURE__ */ new Map();
|
|
5046
5043
|
o && o.trim() !== "" ? e.forEach((y) => {
|
|
5047
5044
|
if (y.type === S.BarSeries || y.type === S.LineSeries || y.type === S.BoxPlotSeries || y.type === S.RadarSeries) {
|
|
5048
|
-
const
|
|
5045
|
+
const p = Ei({
|
|
5049
5046
|
seriesConfig: y,
|
|
5050
5047
|
chartSubType: s,
|
|
5051
5048
|
rendererType: n,
|
|
@@ -5056,18 +5053,18 @@ async function Ts(i) {
|
|
|
5056
5053
|
keepSurroundingQuotes: !1,
|
|
5057
5054
|
escape: !1
|
|
5058
5055
|
});
|
|
5059
|
-
g.set(
|
|
5056
|
+
g.set(p, {
|
|
5060
5057
|
...t,
|
|
5061
5058
|
[o]: x
|
|
5062
5059
|
});
|
|
5063
5060
|
}
|
|
5064
5061
|
}) : g.set(b.rendererSymbolField, {
|
|
5065
5062
|
...t,
|
|
5066
|
-
[m]:
|
|
5063
|
+
[m]: za(t)
|
|
5067
5064
|
});
|
|
5068
5065
|
try {
|
|
5069
|
-
const y = Array.from(g.entries()),
|
|
5070
|
-
|
|
5066
|
+
const y = Array.from(g.entries()), p = c.clone();
|
|
5067
|
+
p.layer = c.layer;
|
|
5071
5068
|
const x = a?.uniqueValueInfos;
|
|
5072
5069
|
for (let F = 0; F < y.length; F += 1) {
|
|
5073
5070
|
const [C, B] = y[F];
|
|
@@ -5078,12 +5075,12 @@ async function Ts(i) {
|
|
|
5078
5075
|
attributes: B
|
|
5079
5076
|
}), l && l.length > 0 && Object.keys(B).forEach((v) => {
|
|
5080
5077
|
l.includes(v) || delete B[v];
|
|
5081
|
-
}),
|
|
5078
|
+
}), p.attributes = B, u?.has(JSON.stringify(B)))
|
|
5082
5079
|
d = u.get(JSON.stringify(B));
|
|
5083
5080
|
else {
|
|
5084
|
-
if (d = (await gt.getDisplayedSymbol(
|
|
5085
|
-
d.color === void 0 && (d.color = (await gt.getDisplayedColor(
|
|
5086
|
-
const v = await gt.getLegendLabel(
|
|
5081
|
+
if (d = (await gt.getDisplayedSymbol(p))?.toJSON(), d != null) {
|
|
5082
|
+
d.color === void 0 && (d.color = (await gt.getDisplayedColor(p))?.toJSON());
|
|
5083
|
+
const v = await gt.getLegendLabel(p);
|
|
5087
5084
|
v != null && v !== "" && (d.label = v, d.uniqueValue = x?.find((T) => T.label === v)?.value ?? void 0);
|
|
5088
5085
|
}
|
|
5089
5086
|
u?.set(JSON.stringify(B), d);
|
|
@@ -5128,7 +5125,7 @@ async function sl(i) {
|
|
|
5128
5125
|
const g = bs(l, d?.renderer), y = Ns({
|
|
5129
5126
|
chartRenderer: c,
|
|
5130
5127
|
queryObject: t
|
|
5131
|
-
}),
|
|
5128
|
+
}), p = E(o), x = we(a), F = K(x.query?.where);
|
|
5132
5129
|
m = /* @__PURE__ */ new Map();
|
|
5133
5130
|
for (let C = 0; C < e.length; C += 1) {
|
|
5134
5131
|
const B = e[C], N = await Ts({
|
|
@@ -5137,7 +5134,7 @@ async function sl(i) {
|
|
|
5137
5134
|
renderer: f,
|
|
5138
5135
|
rendererType: g,
|
|
5139
5136
|
rendererOrigin: u,
|
|
5140
|
-
chartSubType:
|
|
5137
|
+
chartSubType: p,
|
|
5141
5138
|
splitByField: F,
|
|
5142
5139
|
graphicTemplate: y,
|
|
5143
5140
|
mapAttributesToSymbol: m,
|
|
@@ -5184,7 +5181,7 @@ function Ls(i) {
|
|
|
5184
5181
|
function ll(i, e) {
|
|
5185
5182
|
let t = !1;
|
|
5186
5183
|
if (i && e && e.length > 0 && Gt(i)) {
|
|
5187
|
-
const n =
|
|
5184
|
+
const n = Wa(i), r = we(i);
|
|
5188
5185
|
n ? t = Ls(i).some((o) => e.includes(o)) : t = e.includes(r.x);
|
|
5189
5186
|
}
|
|
5190
5187
|
return t;
|
|
@@ -5218,18 +5215,18 @@ function dl(i) {
|
|
|
5218
5215
|
return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
5219
5216
|
}
|
|
5220
5217
|
function fl(i, e) {
|
|
5221
|
-
return e != null ||
|
|
5218
|
+
return e != null || La(i);
|
|
5222
5219
|
}
|
|
5223
5220
|
async function ws(i) {
|
|
5224
5221
|
const { queryObject: e, chartConfig: t, options: a, splitByField: n } = i;
|
|
5225
5222
|
let r = [];
|
|
5226
|
-
const s = t.series[0], o = await
|
|
5223
|
+
const s = t.series[0], o = await Pa(t, e), c = ii({
|
|
5227
5224
|
queryObject: e,
|
|
5228
5225
|
chartConfig: o,
|
|
5229
5226
|
runtimeDataFilters: a?.runtimeDataFilters,
|
|
5230
5227
|
ignoreViewExtent: a?.ignoreViewExtent
|
|
5231
5228
|
});
|
|
5232
|
-
if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Y.outStatistics.outStatisticFieldName), oe(s) &&
|
|
5229
|
+
if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Y.outStatistics.outStatisticFieldName), oe(s) && Ne({
|
|
5233
5230
|
xAxisValueFormatType: pe(o),
|
|
5234
5231
|
setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided,
|
|
5235
5232
|
seriesConfig: s
|
|
@@ -5322,8 +5319,8 @@ async function ml(i, e, t) {
|
|
|
5322
5319
|
const r = e.series.length === 0;
|
|
5323
5320
|
e.series.length === 0 && n !== void 0 && e.series.push(n);
|
|
5324
5321
|
const s = E(e.series);
|
|
5325
|
-
if (s ===
|
|
5326
|
-
const o = await
|
|
5322
|
+
if (s === h.BoxPlotMonoFieldAndSplitBy || s === h.BoxPlotMultiFieldsAndSplitBy || s === h.BoxPlotMonoFieldAndCategoryAndSplitBy || s === h.BarAndLineSplitBy || s === h.BarAndLineSplitByNoAggregation) {
|
|
5323
|
+
const o = await Sa({
|
|
5327
5324
|
chartConfig: e,
|
|
5328
5325
|
layer: i.layer,
|
|
5329
5326
|
view: i.view
|
|
@@ -5370,7 +5367,7 @@ export {
|
|
|
5370
5367
|
Lt as F,
|
|
5371
5368
|
yo as G,
|
|
5372
5369
|
ys as H,
|
|
5373
|
-
|
|
5370
|
+
Ma as I,
|
|
5374
5371
|
fo as J,
|
|
5375
5372
|
Oo as K,
|
|
5376
5373
|
ko as L,
|
|
@@ -5384,7 +5381,7 @@ export {
|
|
|
5384
5381
|
jo as T,
|
|
5385
5382
|
hn as U,
|
|
5386
5383
|
al as V,
|
|
5387
|
-
|
|
5384
|
+
Ka as W,
|
|
5388
5385
|
pe as X,
|
|
5389
5386
|
Ko as Y,
|
|
5390
5387
|
qo as Z,
|
|
@@ -5409,7 +5406,7 @@ export {
|
|
|
5409
5406
|
_o as ag,
|
|
5410
5407
|
Fo as ah,
|
|
5411
5408
|
Ft as ai,
|
|
5412
|
-
|
|
5409
|
+
Ra as aj,
|
|
5413
5410
|
ci as ak,
|
|
5414
5411
|
To as al,
|
|
5415
5412
|
tl as am,
|
|
@@ -5431,11 +5428,11 @@ export {
|
|
|
5431
5428
|
vo as e,
|
|
5432
5429
|
He as f,
|
|
5433
5430
|
ze as g,
|
|
5434
|
-
|
|
5431
|
+
za as h,
|
|
5435
5432
|
Oi as i,
|
|
5436
5433
|
ps as j,
|
|
5437
5434
|
ll as k,
|
|
5438
|
-
|
|
5435
|
+
Pe as l,
|
|
5439
5436
|
ol as m,
|
|
5440
5437
|
Ao as n,
|
|
5441
5438
|
J as o,
|
|
@@ -5449,5 +5446,5 @@ export {
|
|
|
5449
5446
|
rl as w,
|
|
5450
5447
|
Ts as x,
|
|
5451
5448
|
wo as y,
|
|
5452
|
-
|
|
5449
|
+
Qa as z
|
|
5453
5450
|
};
|