@arcgis/charts-components 4.34.0-next.158 → 4.34.0-next.159
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/{Y34FKLIK.js → 2D3V3L6M.js} +2 -2
- package/dist/cdn/{WQUMOIUM.js → 2EXR7F24.js} +2 -2
- package/dist/cdn/{KMQNEFLI.js → 2QFT34MA.js} +2 -2
- package/dist/cdn/{PIC7TPEG.js → 2QSPDOZJ.js} +2 -2
- package/dist/cdn/{XSAMSVZO.js → 2YDZZKQO.js} +2 -2
- package/dist/cdn/{SIZSUPP5.js → 356THV4C.js} +2 -2
- package/dist/cdn/{6Y5BYBYQ.js → 3B25G2NB.js} +2 -2
- package/dist/cdn/{7M7NU5CV.js → 3D2SHU6O.js} +2 -2
- package/dist/cdn/{C3L455RV.js → 3EOZQLLU.js} +2 -2
- package/dist/cdn/{SGN5BIAN.js → 3FJXV4JV.js} +2 -2
- package/dist/cdn/{MXQFUWTN.js → 3JAKNXDH.js} +18 -18
- package/dist/cdn/{GBHS3PUR.js → 3JQ7Z5B7.js} +2 -2
- package/dist/cdn/{PX3Q3C7N.js → 3PPVQT2T.js} +2 -2
- package/dist/cdn/{U7PSEJHB.js → 3RKLHDJZ.js} +2 -2
- package/dist/cdn/{FS53MFQF.js → 3SB6DML5.js} +2 -2
- package/dist/cdn/{3FWP46TG.js → 3UP5IG2T.js} +2 -2
- package/dist/cdn/{RQNA4736.js → 3V2R6EZK.js} +2 -2
- package/dist/cdn/{KO6MLJP4.js → 45MWA3UP.js} +2 -2
- package/dist/cdn/{NXIOJBZ7.js → 4CKR3NH7.js} +2 -2
- package/dist/cdn/{IE77SPRT.js → 4KZ7VC3Q.js} +2 -2
- package/dist/cdn/{MA76U6BW.js → 4ZM7XKDN.js} +2 -2
- package/dist/cdn/{YGLNMXRC.js → 57I6EWU2.js} +2 -2
- package/dist/cdn/{GMQCGM63.js → 5GY7WFCN.js} +2 -2
- package/dist/cdn/{DLLACGRT.js → 5OAETCF6.js} +2 -2
- package/dist/cdn/{4B7MQD2G.js → 5OND4NQY.js} +2 -2
- package/dist/cdn/5PIWA3BP.js +4 -0
- package/dist/cdn/{NILTQEM7.js → 5VDLCC7Z.js} +2 -2
- package/dist/cdn/5XVL7AIA.js +4 -0
- package/dist/cdn/{OGXKRIVA.js → 5ZQTL4VR.js} +2 -2
- package/dist/cdn/{YJI2KNXM.js → 623NVQYV.js} +2 -2
- package/dist/cdn/{IJPDAJVP.js → 62O4YCG7.js} +2 -2
- package/dist/cdn/{PLEWATRV.js → 66VOXKLE.js} +2 -2
- package/dist/cdn/{XCRNLNZF.js → 6BUJZDQN.js} +2 -2
- package/dist/cdn/{2U5F25YV.js → 6FND2ACJ.js} +2 -2
- package/dist/cdn/{GX3MQNNO.js → 6GRATQK4.js} +2 -2
- package/dist/cdn/{HAP45GJY.js → 6HVUDY2G.js} +2 -2
- package/dist/cdn/{YC6IUYJK.js → 6KUYN5Z3.js} +2 -2
- package/dist/cdn/{44BNW3VZ.js → 7673LHE3.js} +2 -2
- package/dist/cdn/{P5YBDZ7B.js → 7HOH4P2Q.js} +2 -2
- package/dist/cdn/{DFEDJS4S.js → 7IBYRMKK.js} +2 -2
- package/dist/cdn/{H4QZWURT.js → 7LURIZNH.js} +2 -2
- package/dist/cdn/{6ESVHA4X.js → 7MLDA2UH.js} +2 -2
- package/dist/cdn/{HVXHSUGW.js → 7XT2FDZ2.js} +2 -2
- package/dist/cdn/{MR4PPWG2.js → AFIK4X6C.js} +2 -2
- package/dist/cdn/{BX4BDKCE.js → AGPEZHAP.js} +2 -2
- package/dist/cdn/{UJF7DBL4.js → AI7IIVI4.js} +2 -2
- package/dist/cdn/{BIOWIXCI.js → ANDCTY22.js} +2 -2
- package/dist/cdn/{EFEBAL47.js → ANUADGCU.js} +1 -1
- package/dist/cdn/{7UO25RB6.js → AORNJXSL.js} +2 -2
- package/dist/cdn/{XGACLOZR.js → AU3WYF4Y.js} +2 -2
- package/dist/cdn/{FZ2KEZ2N.js → AWE7LJ6P.js} +2 -2
- package/dist/cdn/{SQB6PI4W.js → AYHKLKR3.js} +2 -2
- package/dist/cdn/{CVI5JSQY.js → AZ2DCAY3.js} +2 -2
- package/dist/cdn/{5OGSEOB6.js → B2WED4W7.js} +2 -2
- package/dist/cdn/{GDTLU6DX.js → BAOLMK3U.js} +2 -2
- package/dist/cdn/{Q7JI4AD5.js → BES2DCKY.js} +2 -2
- package/dist/cdn/{3FTU52MC.js → BGRUTPS6.js} +2 -2
- package/dist/cdn/{5FXA7JPH.js → BNL7SF7P.js} +2 -2
- package/dist/cdn/{CRK3L2PK.js → BNWOG3TS.js} +2 -2
- package/dist/cdn/{3EWWVZS4.js → BQ4JP3YU.js} +2 -2
- package/dist/cdn/{KS6E4UWZ.js → C3JXXA4J.js} +2 -2
- package/dist/cdn/{AMFX3RS7.js → C7H36HHI.js} +2 -2
- package/dist/cdn/{AEW3ZE7R.js → CIPWOI3V.js} +2 -2
- package/dist/cdn/{6WUFPUHO.js → CWQHXOBK.js} +2 -2
- package/dist/cdn/{RB5JJ2OC.js → DEEKFKVB.js} +2 -2
- package/dist/cdn/{JQYRS5R5.js → DFQAQ4R6.js} +1 -1
- package/dist/cdn/{THI2AAFW.js → DRDUNOKD.js} +2 -2
- package/dist/cdn/{BSU4VR57.js → DWP6LQBS.js} +2 -2
- package/dist/cdn/{UNW3VHA4.js → EFCZPR3D.js} +1 -1
- package/dist/cdn/{A5MHUVWZ.js → EGZO6OPF.js} +2 -2
- package/dist/cdn/{4ERNI53Y.js → ERFDJARP.js} +2 -2
- package/dist/cdn/{SY7DHEJ4.js → ERRVG6EX.js} +2 -2
- package/dist/cdn/{3KGK3UTD.js → ESO3JA6N.js} +2 -2
- package/dist/cdn/{7A2KHEVT.js → EW3DJZ5E.js} +2 -2
- package/dist/cdn/{VWTBZWX7.js → FDUSXU4K.js} +2 -2
- package/dist/cdn/{CXUWCZT5.js → FHQW2NQZ.js} +2 -2
- package/dist/cdn/{YYJNVNJT.js → FOFLG5VG.js} +2 -2
- package/dist/cdn/{T33YDMG6.js → FTZEPDYB.js} +2 -2
- package/dist/cdn/{GAYLU2JA.js → FYSAFFXD.js} +2 -2
- package/dist/cdn/{TTGHIOSP.js → G5U6CZLS.js} +2 -2
- package/dist/cdn/{FKMFYC2R.js → GDYHWCBL.js} +2 -2
- package/dist/cdn/{QF33ETYU.js → GEDKTZTQ.js} +2 -2
- package/dist/cdn/{BCOGK42U.js → GONTDHBD.js} +2 -2
- package/dist/cdn/{NB3LNEDZ.js → GRYE3FBI.js} +2 -2
- package/dist/cdn/{WDNIYOS5.js → GU6TGOYS.js} +2 -2
- package/dist/cdn/{LETH7DHL.js → GWTVPGNV.js} +2 -2
- package/dist/cdn/{HTN47TCR.js → H6OTKDK3.js} +2 -2
- package/dist/cdn/{EFTIHZSN.js → HF7ZAGEM.js} +2 -2
- package/dist/cdn/{3L6Q6KL6.js → HNKSMAHA.js} +1 -1
- package/dist/cdn/{GAA6XVJN.js → I2OQB7W4.js} +2 -2
- package/dist/cdn/{ANUYXMLR.js → ITCG6WR4.js} +2 -2
- package/dist/cdn/{T6BQMSEK.js → ITQYXEKE.js} +1 -1
- package/dist/cdn/{2KIA5QUH.js → JG64JWYI.js} +2 -2
- package/dist/cdn/{GITEE4E4.js → JWI7JIGN.js} +2 -2
- package/dist/cdn/{IXEXC7ZG.js → JY75NP75.js} +1 -1
- package/dist/cdn/{DUJJLWP4.js → K53FHV6E.js} +2 -2
- package/dist/cdn/{X6OFJ26T.js → KIRB5KJA.js} +2 -2
- package/dist/cdn/{56RS6YJZ.js → KLDIK6ZB.js} +1 -1
- package/dist/cdn/{DCULJHKH.js → KLLWAXU6.js} +2 -2
- package/dist/cdn/{VFRRXZTZ.js → KRSERDTB.js} +2 -2
- package/dist/cdn/{HNUZXZKS.js → KZSXI6P7.js} +2 -2
- package/dist/cdn/{R4WF5VUP.js → L4E6B5LU.js} +2 -2
- package/dist/cdn/{ILAQAMCS.js → LQ62XAT7.js} +2 -2
- package/dist/cdn/{7QDZ3EQS.js → LTZJVZSF.js} +2 -2
- package/dist/cdn/{LEO7DHNI.js → LXZ4EAKW.js} +2 -2
- package/dist/cdn/{UNDHPPMR.js → M7PBGEV3.js} +2 -2
- package/dist/cdn/{GGZ7K2EK.js → MF5SZ73F.js} +1 -1
- package/dist/cdn/{D6GU4VCG.js → MR52RKJH.js} +1 -1
- package/dist/cdn/{NIHOR6RV.js → MR7SM3QA.js} +2 -2
- package/dist/cdn/{RUEXZMDC.js → MS73ZUNL.js} +2 -2
- package/dist/cdn/{K5K4AZL7.js → MVVEBM6T.js} +2 -2
- package/dist/cdn/{ZS37MCKX.js → MY45HOMW.js} +2 -2
- package/dist/cdn/{MUMJNJPU.js → MZCHU744.js} +2 -2
- package/dist/cdn/{HATQKT3R.js → N3QREAD2.js} +2 -2
- package/dist/cdn/{DCBY7PKD.js → N7MODF4Y.js} +2 -2
- package/dist/cdn/{L75VSDF5.js → NB32L24K.js} +2 -2
- package/dist/cdn/{IH54XWEZ.js → NCE47T3A.js} +2 -2
- package/dist/cdn/{VT7QBGEW.js → O6KL3S42.js} +2 -2
- package/dist/cdn/{RDZNNTZL.js → OFK4KQQH.js} +2 -2
- package/dist/cdn/{HNR5H52W.js → OHAX3I5X.js} +2 -2
- package/dist/cdn/OIIVTYPG.js +6 -0
- package/dist/cdn/{IOQEQM7P.js → OO6SDRMR.js} +2 -2
- package/dist/cdn/{ZPMOWXCF.js → OQNKPXVY.js} +2 -2
- package/dist/cdn/{2Z4MNCDY.js → OX7PYCKM.js} +2 -2
- package/dist/cdn/{AU2DQCPD.js → OYWKXFOM.js} +2 -2
- package/dist/cdn/{BVKUX2TO.js → P4ILFZ22.js} +2 -2
- package/dist/cdn/{4DYPOWRC.js → PFLSLYB7.js} +2 -2
- package/dist/cdn/{ZBOG22K2.js → PGV4T3BS.js} +2 -2
- package/dist/cdn/{YLFINMD3.js → PIXC57CQ.js} +2 -2
- package/dist/cdn/{P44LSZEH.js → PJYLT6DT.js} +2 -2
- package/dist/cdn/{YCHAMIB7.js → PQBZHV4S.js} +2 -2
- package/dist/cdn/{C5TC7VTL.js → PUSFUMJN.js} +2 -2
- package/dist/cdn/QD55357L.js +4 -0
- package/dist/cdn/{YUWEPTWC.js → QJBQYXKL.js} +2 -2
- package/dist/cdn/{EKC3Q6CC.js → QKNJABFT.js} +2 -2
- package/dist/cdn/{CRCYEODV.js → QPAYCI35.js} +2 -2
- package/dist/cdn/{3FMQYHQ3.js → QQRAA2PK.js} +2 -2
- package/dist/cdn/{ICYNQUET.js → R2UY5FBL.js} +2 -2
- package/dist/cdn/{URSAOFCC.js → RAWENHB4.js} +2 -2
- package/dist/cdn/{JNNQR7CY.js → RE6DRV5W.js} +2 -2
- package/dist/cdn/{LUIY4767.js → RUHHLRKK.js} +2 -2
- package/dist/cdn/{3UNE6TTF.js → RX6H2W7A.js} +2 -2
- package/dist/cdn/{C4AYS3WW.js → S4NRH7PF.js} +2 -2
- package/dist/cdn/{GYRSRL7L.js → S6EAOZ2S.js} +2 -2
- package/dist/cdn/{VMHQUXLK.js → S76ATLII.js} +2 -2
- package/dist/cdn/{ZOUEDTTQ.js → SD7TNXB5.js} +2 -2
- package/dist/cdn/{2G3IHOLY.js → SOX2ELBY.js} +2 -2
- package/dist/cdn/{ZUFNTXXG.js → SS3BZLXI.js} +2 -2
- package/dist/cdn/{HQ7AXULT.js → SYKEFP3T.js} +2 -2
- package/dist/cdn/{7XCO3DZP.js → T2JQMNJJ.js} +2 -2
- package/dist/cdn/{YO6JB5OH.js → T2QYIP7P.js} +2 -2
- package/dist/cdn/{JHHQTZBS.js → T6SOQIJD.js} +2 -2
- package/dist/cdn/{2OSJAWWS.js → TBZWKUBV.js} +2 -2
- package/dist/cdn/{HHQXFTAR.js → TKFU4VPO.js} +2 -2
- package/dist/cdn/{IKKX2DDZ.js → TMY3QHAH.js} +2 -2
- package/dist/cdn/{JYWM5OLE.js → TN5WAN2H.js} +2 -2
- package/dist/cdn/{6UWUO2EN.js → UDTTWW3B.js} +2 -2
- package/dist/cdn/{5NOQLTHL.js → UDXK7TVS.js} +4 -4
- package/dist/cdn/{ENS6MNHU.js → UI6WZYYU.js} +2 -2
- package/dist/cdn/{U74H4YIB.js → V4F7Q5DN.js} +2 -2
- package/dist/cdn/{5MQN4T3B.js → V5C64RIB.js} +2 -2
- package/dist/cdn/{SBMCE4V4.js → VA3RBCTF.js} +2 -2
- package/dist/cdn/{PPLIQXLW.js → VBTMTJOM.js} +2 -2
- package/dist/cdn/{VZNNNW2L.js → VFIP5WMA.js} +2 -2
- package/dist/cdn/{XU4Q2EIF.js → VKE7U2XW.js} +2 -2
- package/dist/cdn/{X7GRVW5U.js → VN3U6YSG.js} +2 -2
- package/dist/cdn/{IHCU42YD.js → VRMUB72M.js} +2 -2
- package/dist/cdn/{VMVF7WO3.js → VSUTELWY.js} +2 -2
- package/dist/cdn/{UEFXC6OE.js → W4NEW2DG.js} +2 -2
- package/dist/cdn/{6H5BQWEW.js → WHM6EBNZ.js} +2 -2
- package/dist/cdn/{2PKLZTV7.js → WWE3GZAL.js} +2 -2
- package/dist/cdn/{DHMWE5WC.js → XHAFQY5U.js} +2 -2
- package/dist/cdn/{XUYVEECI.js → XKVDJWUB.js} +2 -2
- package/dist/cdn/{SDEN5OCA.js → Y44VFHBM.js} +2 -2
- package/dist/cdn/{4EDGBNDW.js → Y4PQRMQK.js} +2 -2
- package/dist/cdn/{FHLO27CQ.js → YHEUTP7J.js} +2 -2
- package/dist/cdn/{IB7ISHAM.js → YT5SO6MM.js} +2 -2
- package/dist/cdn/{UTH6FRZQ.js → YWH5NP4W.js} +2 -2
- package/dist/cdn/{KLETAPJ5.js → ZG7N3N76.js} +2 -2
- package/dist/cdn/{B3RWDWR6.js → ZI5YHBXQ.js} +2 -2
- package/dist/cdn/{XC6EYY2E.js → ZNTYQGY2.js} +1 -1
- package/dist/cdn/ZSORK6H6.js +4 -0
- 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 +463 -466
- 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 +9 -9
- 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 +1760 -1761
- 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 +10 -10
- 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/heat-chart-model/heat-chart-model.d.ts +3 -8
- package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +3 -3
- 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/5IH6SONS.js +0 -4
- package/dist/cdn/HKPREX4S.js +0 -4
- package/dist/cdn/PGOAOFJW.js +0 -4
- package/dist/cdn/S4LLFCWX.js +0 -4
- package/dist/cdn/ZN6KDILD.js +0 -6
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { W as S, d as Ii, u as W, m as re, b as _, g as me, t as be, 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 Ce, 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 xe, 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 Fe, 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/4.34/esri/copyright.txt for details.
|
|
31
|
-
v4.34.0-next.
|
|
32
|
-
async function
|
|
31
|
+
v4.34.0-next.159 */
|
|
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 = Ce(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:
|
|
@@ -440,7 +440,7 @@ function Ka(i, e) {
|
|
|
440
440
|
}
|
|
441
441
|
return t;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Ve(i) {
|
|
444
444
|
let e = new Date(i).valueOf();
|
|
445
445
|
return Number.isNaN(e) || (e = new Intl.DateTimeFormat("en-US", b.dateFormatUTC).format(i).replace(",", "")), e;
|
|
446
446
|
}
|
|
@@ -458,18 +458,18 @@ function st(i) {
|
|
|
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 = Ce(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
|
}
|
|
@@ -894,7 +891,7 @@ function gn(i) {
|
|
|
894
891
|
a = i.series[0].x;
|
|
895
892
|
else {
|
|
896
893
|
a === be.Mean ? a = V.Average : a === be.Median && (a = V.Median);
|
|
897
|
-
const r = e ===
|
|
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({
|
|
@@ -925,7 +922,7 @@ 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
928
|
if (o = i.orderOptions?.data?.orderType ?? be.Category, c = i.orderOptions?.data?.orderBy, o === be.Category ? o = n ? ne : t : o = n ? he : [a].flat()[0], o !== void 0 && o !== "") {
|
|
@@ -976,7 +973,7 @@ function xt(i) {
|
|
|
976
973
|
function Uo(i) {
|
|
977
974
|
const { oldConfig: e, newConfig: t, dataUpdateNeeded: a } = i, n = E(t.series);
|
|
978
975
|
let r = !1, s = !1;
|
|
979
|
-
if (n !==
|
|
976
|
+
if (n !== h.BoxPlotMonoField && n !== h.BoxPlotMonoFieldAndSplitBy && t.orderOptions?.data !== void 0) {
|
|
980
977
|
const o = xt(e), c = xt(t);
|
|
981
978
|
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;
|
|
982
979
|
}
|
|
@@ -995,7 +992,7 @@ function _o(i, e) {
|
|
|
995
992
|
}), t;
|
|
996
993
|
}
|
|
997
994
|
function Yo(i, e) {
|
|
998
|
-
const t =
|
|
995
|
+
const t = Ce(i);
|
|
999
996
|
if (t && t.series.length > 1) {
|
|
1000
997
|
const { preferLabel: a, orderBy: n } = t.orderOptions?.series ?? {};
|
|
1001
998
|
if (n !== void 0) {
|
|
@@ -1061,7 +1058,7 @@ async function Ko(i) {
|
|
|
1061
1058
|
seriesCount: n,
|
|
1062
1059
|
queryObject: r,
|
|
1063
1060
|
filterBySelection: s,
|
|
1064
|
-
formatLocale: o =
|
|
1061
|
+
formatLocale: o = Ba(document.documentElement),
|
|
1065
1062
|
isTemporalLineChart: c,
|
|
1066
1063
|
errorStrings: l
|
|
1067
1064
|
} = i;
|
|
@@ -1180,7 +1177,7 @@ async function Ko(i) {
|
|
|
1180
1177
|
u = l.errors.histogramEmptyField;
|
|
1181
1178
|
break;
|
|
1182
1179
|
case $.EmptyDataSet:
|
|
1183
|
-
y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage :
|
|
1180
|
+
y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage : _i(r) ? u = l.errors.noDataFBEMessage : u = l.errors.noDataMessage;
|
|
1184
1181
|
break;
|
|
1185
1182
|
case $.NegativeValueInXAxisLogScale:
|
|
1186
1183
|
u = l.errors.logarithmicXAxisNotPossible;
|
|
@@ -1204,7 +1201,7 @@ async function Ko(i) {
|
|
|
1204
1201
|
params: d
|
|
1205
1202
|
};
|
|
1206
1203
|
}
|
|
1207
|
-
function
|
|
1204
|
+
function Ie(i, e) {
|
|
1208
1205
|
return `${e}_${i}`;
|
|
1209
1206
|
}
|
|
1210
1207
|
function Ct(i) {
|
|
@@ -1233,8 +1230,8 @@ function At(i) {
|
|
|
1233
1230
|
splitByValue: n
|
|
1234
1231
|
}), y = e[g];
|
|
1235
1232
|
if (y != null) {
|
|
1236
|
-
let
|
|
1237
|
-
if (Number.isFinite(
|
|
1233
|
+
let p = Number(y);
|
|
1234
|
+
if (Number.isFinite(p)) {
|
|
1238
1235
|
c = {
|
|
1239
1236
|
...c,
|
|
1240
1237
|
key: m,
|
|
@@ -1242,7 +1239,7 @@ function At(i) {
|
|
|
1242
1239
|
standardizeValues: !0
|
|
1243
1240
|
};
|
|
1244
1241
|
let x = U(c);
|
|
1245
|
-
if (o[x] = Ct({ mean: d, stdDev: f, value:
|
|
1242
|
+
if (o[x] = Ct({ mean: d, stdDev: f, value: p }), m === V.Min || m === V.Max) {
|
|
1246
1243
|
c = {
|
|
1247
1244
|
...c,
|
|
1248
1245
|
key: m,
|
|
@@ -1254,10 +1251,10 @@ function At(i) {
|
|
|
1254
1251
|
splitByValue: n
|
|
1255
1252
|
};
|
|
1256
1253
|
const F = U(c);
|
|
1257
|
-
|
|
1254
|
+
p = Number(e[F]), Number.isFinite(p) && (o[x] = Ct({
|
|
1258
1255
|
mean: d,
|
|
1259
1256
|
stdDev: f,
|
|
1260
|
-
value:
|
|
1257
|
+
value: p
|
|
1261
1258
|
}));
|
|
1262
1259
|
}
|
|
1263
1260
|
}
|
|
@@ -1271,7 +1268,7 @@ function Fn(i) {
|
|
|
1271
1268
|
Object.keys(n).forEach((l) => {
|
|
1272
1269
|
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({
|
|
1273
1270
|
dataItem: c,
|
|
1274
|
-
chartSubType:
|
|
1271
|
+
chartSubType: h.BoxPlotMultiFields
|
|
1275
1272
|
}));
|
|
1276
1273
|
}), r.set(o, c);
|
|
1277
1274
|
}), Array.from(r.values());
|
|
@@ -1299,10 +1296,10 @@ function xn(i) {
|
|
|
1299
1296
|
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]);
|
|
1300
1297
|
}), n && (d = At({
|
|
1301
1298
|
dataItem: d,
|
|
1302
|
-
chartSubType:
|
|
1299
|
+
chartSubType: h.BoxPlotMultiFieldsAndSplitBy,
|
|
1303
1300
|
splitByValue: l,
|
|
1304
|
-
meanPerField: r?.[
|
|
1305
|
-
stdDevPerField: r?.[
|
|
1301
|
+
meanPerField: r?.[Ie(u, P.Average)],
|
|
1302
|
+
stdDevPerField: r?.[Ie(u, P.StandardDeviation)]
|
|
1306
1303
|
})), s.set(u, {
|
|
1307
1304
|
...s.get(u) ?? {},
|
|
1308
1305
|
...d
|
|
@@ -1316,10 +1313,10 @@ function Cn(i) {
|
|
|
1316
1313
|
t.forEach((o) => {
|
|
1317
1314
|
At({
|
|
1318
1315
|
dataItem: s,
|
|
1319
|
-
chartSubType:
|
|
1316
|
+
chartSubType: h.BoxPlotMultiFieldsAndCategory,
|
|
1320
1317
|
y: o,
|
|
1321
|
-
meanPerField: n?.[
|
|
1322
|
-
stdDevPerField: n?.[
|
|
1318
|
+
meanPerField: n?.[Ie(o, P.Average)],
|
|
1319
|
+
stdDevPerField: n?.[Ie(o, P.StandardDeviation)]
|
|
1323
1320
|
});
|
|
1324
1321
|
});
|
|
1325
1322
|
}), r;
|
|
@@ -1345,7 +1342,7 @@ function Bn(i) {
|
|
|
1345
1342
|
}
|
|
1346
1343
|
function vn(i, e) {
|
|
1347
1344
|
const { series: t } = i, a = t[0], { y: n } = a, r = E(i.series), s = {
|
|
1348
|
-
y: r ===
|
|
1345
|
+
y: r === h.BoxPlotMultiFieldsAndCategory ? n : void 0,
|
|
1349
1346
|
chartSubType: r
|
|
1350
1347
|
}, o = i.series.map((c) => {
|
|
1351
1348
|
let l = ge({
|
|
@@ -1400,37 +1397,37 @@ function Wt(i) {
|
|
|
1400
1397
|
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 ");
|
|
1401
1398
|
}
|
|
1402
1399
|
function gi(i) {
|
|
1403
|
-
const { data: e, yField: t, x: a, chartSubType: n, splitByField: r } = i, s = n ===
|
|
1400
|
+
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();
|
|
1404
1401
|
let d = [], f = [], m = 1;
|
|
1405
1402
|
return e.forEach((g, y) => {
|
|
1406
|
-
const { outlierMinThreshold:
|
|
1407
|
-
if (typeof
|
|
1403
|
+
const { outlierMinThreshold: p, outlierMaxThreshold: x } = Nn(g, o);
|
|
1404
|
+
if (typeof p == "number" && typeof x == "number") {
|
|
1408
1405
|
const F = {
|
|
1409
1406
|
yField: t,
|
|
1410
|
-
outlierMinThreshold:
|
|
1407
|
+
outlierMinThreshold: p,
|
|
1411
1408
|
outlierMaxThreshold: x
|
|
1412
1409
|
};
|
|
1413
|
-
(n ===
|
|
1410
|
+
(n === h.BoxPlotMonoFieldAndCategory || n === h.BoxPlotMultiFieldsAndCategory || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in g && (F.xField = a, F.xValue = ze({
|
|
1414
1411
|
value: g[a],
|
|
1415
1412
|
dataContext: g,
|
|
1416
1413
|
keepNullValues: !0,
|
|
1417
1414
|
specificField: b.typeOrDomainIdValue
|
|
1418
|
-
})), (n ===
|
|
1415
|
+
})), (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 = []);
|
|
1419
1416
|
}
|
|
1420
1417
|
m += 1;
|
|
1421
1418
|
}), { outliersFilterBatches: c, dataWithoutOutliersFilterBatches: l };
|
|
1422
1419
|
}
|
|
1423
1420
|
function Tn(i) {
|
|
1424
1421
|
const { data: e, outlierDataItem: t, chartSubType: a, x: n, y: r, meanAndStdDevPerField: s, splitByField: o } = i;
|
|
1425
|
-
let c = s?.[
|
|
1422
|
+
let c = s?.[Ie(r, P.Average)], l = s?.[Ie(r, P.StandardDeviation)];
|
|
1426
1423
|
if (c === void 0 && l === void 0)
|
|
1427
1424
|
switch (a) {
|
|
1428
|
-
case
|
|
1425
|
+
case h.BoxPlotMultiFields: {
|
|
1429
1426
|
const u = je(r), d = e[0];
|
|
1430
1427
|
c = Number(d[u[V.Average]]), l = Number(d[u[V.StandardDeviation]]);
|
|
1431
1428
|
break;
|
|
1432
1429
|
}
|
|
1433
|
-
case
|
|
1430
|
+
case h.BoxPlotMultiFieldsAndCategory: {
|
|
1434
1431
|
const u = e.find((d) => d[n] === t[n]);
|
|
1435
1432
|
if (u !== void 0) {
|
|
1436
1433
|
const d = je(r);
|
|
@@ -1438,7 +1435,7 @@ function Tn(i) {
|
|
|
1438
1435
|
}
|
|
1439
1436
|
break;
|
|
1440
1437
|
}
|
|
1441
|
-
case
|
|
1438
|
+
case h.BoxPlotMultiFieldsAndSplitBy: {
|
|
1442
1439
|
const u = e.find((d) => d[o] === t[o]);
|
|
1443
1440
|
if (u !== void 0) {
|
|
1444
1441
|
const d = je(r);
|
|
@@ -1451,8 +1448,8 @@ function Tn(i) {
|
|
|
1451
1448
|
}
|
|
1452
1449
|
async function An(i) {
|
|
1453
1450
|
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 = [];
|
|
1454
|
-
for (let
|
|
1455
|
-
const x = f[
|
|
1451
|
+
for (let p = 0; p < f.length; p += 1) {
|
|
1452
|
+
const x = f[p], { outliersFilterBatches: F } = gi({
|
|
1456
1453
|
data: t,
|
|
1457
1454
|
yField: x,
|
|
1458
1455
|
x: l,
|
|
@@ -1486,8 +1483,8 @@ async function An(i) {
|
|
|
1486
1483
|
}
|
|
1487
1484
|
}
|
|
1488
1485
|
const g = await Promise.all(m), y = /* @__PURE__ */ new Map();
|
|
1489
|
-
for (let
|
|
1490
|
-
const x = g[
|
|
1486
|
+
for (let p = 0; p < g.length; p += 1) {
|
|
1487
|
+
const x = g[p], F = f[p];
|
|
1491
1488
|
x.forEach((C) => {
|
|
1492
1489
|
const B = { ...C.attributes };
|
|
1493
1490
|
if (B[F] !== void 0) {
|
|
@@ -1497,15 +1494,15 @@ async function An(i) {
|
|
|
1497
1494
|
chartSubType: o
|
|
1498
1495
|
};
|
|
1499
1496
|
switch (o) {
|
|
1500
|
-
case
|
|
1501
|
-
case
|
|
1502
|
-
case
|
|
1497
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
1498
|
+
case h.BoxPlotMultiFieldsAndSplitBy:
|
|
1499
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
1503
1500
|
N = {
|
|
1504
1501
|
...N,
|
|
1505
1502
|
splitByValue: B[u]
|
|
1506
1503
|
};
|
|
1507
1504
|
break;
|
|
1508
|
-
case
|
|
1505
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
1509
1506
|
N = {
|
|
1510
1507
|
...N,
|
|
1511
1508
|
y: F
|
|
@@ -1518,7 +1515,7 @@ async function An(i) {
|
|
|
1518
1515
|
if (B[Y.uniqueIdsName] = [
|
|
1519
1516
|
...L?.[Y.uniqueIdsName] ?? [],
|
|
1520
1517
|
B[d.objectIdField]
|
|
1521
|
-
], delete B[d.objectIdField],
|
|
1518
|
+
], delete B[d.objectIdField], Yi(o)) {
|
|
1522
1519
|
const D = U({
|
|
1523
1520
|
...N,
|
|
1524
1521
|
standardizeValues: !0
|
|
@@ -1546,7 +1543,7 @@ async function An(i) {
|
|
|
1546
1543
|
async function Pn(i) {
|
|
1547
1544
|
const { data: e, queryObject: t, uniqueQuery: a, elementCount: n, chartConfig: r, chartLimits: s, abortKey: o } = i;
|
|
1548
1545
|
let c = [];
|
|
1549
|
-
const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = E(l), m =
|
|
1546
|
+
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 = [];
|
|
1550
1547
|
for (let F = 0; F < d.length; F += 1) {
|
|
1551
1548
|
const C = d[F], { dataWithoutOutliersFilterBatches: B } = gi({
|
|
1552
1549
|
data: e,
|
|
@@ -1565,7 +1562,7 @@ async function Pn(i) {
|
|
|
1565
1562
|
).map((w) => ({
|
|
1566
1563
|
...w,
|
|
1567
1564
|
outStatisticFieldName: `${w.outStatisticFieldName}${b.boxPlot.boxPlotOutliersSuffix}`
|
|
1568
|
-
}))),
|
|
1565
|
+
}))), p.push(
|
|
1569
1566
|
ut({
|
|
1570
1567
|
queryObject: t,
|
|
1571
1568
|
uniqueQuery: T,
|
|
@@ -1579,10 +1576,10 @@ async function Pn(i) {
|
|
|
1579
1576
|
);
|
|
1580
1577
|
}
|
|
1581
1578
|
}
|
|
1582
|
-
const x = await Promise.all(
|
|
1579
|
+
const x = await Promise.all(p);
|
|
1583
1580
|
for (let F = 0; F < x.length; F += 1)
|
|
1584
1581
|
c.push(...x[F]);
|
|
1585
|
-
return f !==
|
|
1582
|
+
return f !== h.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = Lt({
|
|
1586
1583
|
data: c,
|
|
1587
1584
|
x: y !== void 0 && y !== "" ? y : g
|
|
1588
1585
|
})), c;
|
|
@@ -1591,7 +1588,7 @@ async function Ln(i) {
|
|
|
1591
1588
|
const { queryObject: e, uniqueQuery: t, chartConfig: a, abortKey: n } = i;
|
|
1592
1589
|
let r;
|
|
1593
1590
|
const { series: s, showMean: o } = a, c = E(s);
|
|
1594
|
-
if (c ===
|
|
1591
|
+
if (c === h.BoxPlotMultiFieldsAndCategory || c === h.BoxPlotMultiFieldsAndSplitBy) {
|
|
1595
1592
|
const l = Nt({ showMean: o, seriesConfig: s }), u = {
|
|
1596
1593
|
...t
|
|
1597
1594
|
};
|
|
@@ -1634,22 +1631,22 @@ function Mn(i) {
|
|
|
1634
1631
|
});
|
|
1635
1632
|
}
|
|
1636
1633
|
function yi(i) {
|
|
1637
|
-
const { chartConfig: e, data: t, calculateZScore: a = !1, meanAndStdDevPerField: n } = i, { series: r, showMean: s } = e, o =
|
|
1634
|
+
const { chartConfig: e, data: t, calculateZScore: a = !1, meanAndStdDevPerField: n } = i, { series: r, showMean: s } = e, o = we(e), c = E(e.series), { x: l } = o, u = Nt({ showMean: s, seriesConfig: r });
|
|
1638
1635
|
let d = t;
|
|
1639
1636
|
if ((o.type === S.LineSeries || o.type === S.BoxPlotSeries) && t?.[0] !== void 0) {
|
|
1640
1637
|
const f = K(o.query?.where);
|
|
1641
1638
|
switch (c) {
|
|
1642
|
-
case
|
|
1639
|
+
case h.BoxPlotMonoField:
|
|
1643
1640
|
d[0][b.boxPlot.boxPlotCategory] = u[0];
|
|
1644
1641
|
break;
|
|
1645
|
-
case
|
|
1642
|
+
case h.BoxPlotMultiFields:
|
|
1646
1643
|
d = Fn({
|
|
1647
1644
|
data: t,
|
|
1648
1645
|
yList: u,
|
|
1649
1646
|
calculateZScore: a
|
|
1650
1647
|
});
|
|
1651
1648
|
break;
|
|
1652
|
-
case
|
|
1649
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
1653
1650
|
d = bn({
|
|
1654
1651
|
data: t,
|
|
1655
1652
|
splitByField: f,
|
|
@@ -1657,7 +1654,7 @@ function yi(i) {
|
|
|
1657
1654
|
// there's only one `y` value for that query type
|
|
1658
1655
|
});
|
|
1659
1656
|
break;
|
|
1660
|
-
case
|
|
1657
|
+
case h.BoxPlotMultiFieldsAndSplitBy:
|
|
1661
1658
|
d = xn({
|
|
1662
1659
|
splitByField: f,
|
|
1663
1660
|
data: t,
|
|
@@ -1666,7 +1663,7 @@ function yi(i) {
|
|
|
1666
1663
|
calculateZScore: a
|
|
1667
1664
|
});
|
|
1668
1665
|
break;
|
|
1669
|
-
case
|
|
1666
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
1670
1667
|
d = Cn({
|
|
1671
1668
|
data: t,
|
|
1672
1669
|
yList: u,
|
|
@@ -1674,14 +1671,14 @@ function yi(i) {
|
|
|
1674
1671
|
calculateZScore: a
|
|
1675
1672
|
});
|
|
1676
1673
|
break;
|
|
1677
|
-
case
|
|
1674
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
1678
1675
|
d = Bn({
|
|
1679
1676
|
splitByField: f,
|
|
1680
1677
|
x: l,
|
|
1681
1678
|
data: t
|
|
1682
1679
|
});
|
|
1683
1680
|
break;
|
|
1684
|
-
case
|
|
1681
|
+
case h.BoxPlotMonoFieldAndCategory:
|
|
1685
1682
|
}
|
|
1686
1683
|
}
|
|
1687
1684
|
return vn(e, d), d;
|
|
@@ -1772,7 +1769,7 @@ function Vn(i) {
|
|
|
1772
1769
|
splitByField: c
|
|
1773
1770
|
} = i, l = Y.outStatistics;
|
|
1774
1771
|
if (e.outStatistics?.[0] !== void 0) {
|
|
1775
|
-
r !==
|
|
1772
|
+
r !== h.PieFromFields && r !== h.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = a ? l.outStatisticFieldName : [t].flat()[0]);
|
|
1776
1773
|
const { outStatistics: u } = e;
|
|
1777
1774
|
for (let d = 0; d < u.length; d += 1) {
|
|
1778
1775
|
const f = e.outStatistics[d];
|
|
@@ -1844,8 +1841,8 @@ function $n(i, e) {
|
|
|
1844
1841
|
function Rn(i) {
|
|
1845
1842
|
const { uniqueQuery: e, x: t, splitByField: a, unit: n, chartSubType: r, objectIdField: s } = i;
|
|
1846
1843
|
if (n !== void 0) {
|
|
1847
|
-
const o =
|
|
1848
|
-
e.orderByFields = o, e.groupByFieldsForStatistics = o, r ===
|
|
1844
|
+
const o = Ki(t, n);
|
|
1845
|
+
e.orderByFields = o, e.groupByFieldsForStatistics = o, r === h.BarAndLineSplitBy && !ee(a) ? e.groupByFieldsForStatistics.push(a) : r === h.BarAndLineNoAggregation && (e.groupByFieldsForStatistics.push(s), e.outStatistics = [
|
|
1849
1846
|
{
|
|
1850
1847
|
onStatisticField: s,
|
|
1851
1848
|
outStatisticFieldName: `COUNT_${s}`,
|
|
@@ -1860,7 +1857,7 @@ function pi(i) {
|
|
|
1860
1857
|
const n = fi(e, t?.chartLimits);
|
|
1861
1858
|
if (n !== void 0) {
|
|
1862
1859
|
const r = E(e.series);
|
|
1863
|
-
if (r ===
|
|
1860
|
+
if (r === h.PieFromFields || r === h.BarAndLineFromFields) {
|
|
1864
1861
|
if (a.outStatistics?.[0] !== void 0) {
|
|
1865
1862
|
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));
|
|
1866
1863
|
c.splice(n), a.outStatistics = [...c, ...o];
|
|
@@ -1871,47 +1868,47 @@ function pi(i) {
|
|
|
1871
1868
|
}
|
|
1872
1869
|
}
|
|
1873
1870
|
async function ct(i) {
|
|
1874
|
-
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 =
|
|
1871
|
+
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({
|
|
1875
1872
|
xAxisValueFormatType: pe(e),
|
|
1876
1873
|
setTimeBinningInfoWhenNotProvided: o,
|
|
1877
1874
|
seriesConfig: d
|
|
1878
1875
|
});
|
|
1879
|
-
let
|
|
1876
|
+
let p = /* @__PURE__ */ new Map(), x = !1, F = !1, C = !1, B = !1, N = !1, v = {};
|
|
1880
1877
|
if (f !== void 0) {
|
|
1881
|
-
v =
|
|
1878
|
+
v = Ce(f);
|
|
1882
1879
|
const O = K(f.where);
|
|
1883
1880
|
let H = "";
|
|
1884
1881
|
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) {
|
|
1885
|
-
case
|
|
1886
|
-
|
|
1882
|
+
case h.BarAndLineSplitBy: {
|
|
1883
|
+
p = On(l), B = !0, x = !0, F = !0;
|
|
1887
1884
|
break;
|
|
1888
1885
|
}
|
|
1889
|
-
case
|
|
1886
|
+
case h.BarAndLineMultiFields:
|
|
1890
1887
|
$n(v, l), F = !0;
|
|
1891
1888
|
break;
|
|
1892
|
-
case
|
|
1893
|
-
case
|
|
1889
|
+
case h.PieFromFields:
|
|
1890
|
+
case h.BarAndLineFromFields:
|
|
1894
1891
|
H = "", C = !0, F = !0;
|
|
1895
1892
|
break;
|
|
1896
|
-
case
|
|
1897
|
-
case
|
|
1893
|
+
case h.BarAndLineMonoField:
|
|
1894
|
+
case h.PieFromCategory:
|
|
1898
1895
|
F = !0;
|
|
1899
1896
|
break;
|
|
1900
|
-
case
|
|
1901
|
-
case
|
|
1897
|
+
case h.BoxPlotMonoField:
|
|
1898
|
+
case h.BoxPlotMultiFields:
|
|
1902
1899
|
C = !0, N = !0;
|
|
1903
1900
|
break;
|
|
1904
|
-
case
|
|
1905
|
-
case
|
|
1906
|
-
case
|
|
1907
|
-
case
|
|
1908
|
-
case
|
|
1901
|
+
case h.BoxPlotMonoFieldAndCategory:
|
|
1902
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
1903
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
1904
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
1905
|
+
case h.BoxPlotMultiFieldsAndSplitBy: {
|
|
1909
1906
|
N = !0, B = !0, C = !0;
|
|
1910
1907
|
break;
|
|
1911
1908
|
}
|
|
1912
|
-
case
|
|
1913
|
-
case
|
|
1914
|
-
case
|
|
1909
|
+
case h.PieNoAggregation:
|
|
1910
|
+
case h.BarAndLineNoAggregation:
|
|
1911
|
+
case h.BarAndLineSplitByNoAggregation:
|
|
1915
1912
|
}
|
|
1916
1913
|
if (F && Vn({
|
|
1917
1914
|
uniqueQuery: v,
|
|
@@ -1927,7 +1924,7 @@ async function ct(i) {
|
|
|
1927
1924
|
return !ee(I[0]);
|
|
1928
1925
|
})), y && oe(l[0])) {
|
|
1929
1926
|
const X = z(n), { objectIdField: I } = X;
|
|
1930
|
-
(await
|
|
1927
|
+
(await Te(n)).find((te) => te.name === m)?.type !== Ye.DateOnly && Rn({
|
|
1931
1928
|
uniqueQuery: v,
|
|
1932
1929
|
x: m,
|
|
1933
1930
|
splitByField: K(f.where),
|
|
@@ -1940,7 +1937,7 @@ async function ct(i) {
|
|
|
1940
1937
|
}
|
|
1941
1938
|
pi({ chartConfig: e, options: a, uniqueQuery: v });
|
|
1942
1939
|
const { gdbVersion: T, geometry: w, distance: L, units: D, timeExtent: R, where: M, objectIds: q, spatialRelationship: A } = t;
|
|
1943
|
-
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:
|
|
1940
|
+
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 };
|
|
1944
1941
|
}
|
|
1945
1942
|
async function kn(i) {
|
|
1946
1943
|
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({
|
|
@@ -2105,8 +2102,8 @@ async function zn(i) {
|
|
|
2105
2102
|
queryObject: e,
|
|
2106
2103
|
queryConfig: d,
|
|
2107
2104
|
abortKey: n
|
|
2108
|
-
}), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN,
|
|
2109
|
-
return { countExcludingNulls: g, countIncludingNulls: m, min: y, max:
|
|
2105
|
+
}), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN, p = f.get(u) ?? Number.NaN;
|
|
2106
|
+
return { countExcludingNulls: g, countIncludingNulls: m, min: y, max: p };
|
|
2110
2107
|
}
|
|
2111
2108
|
async function Gn(i) {
|
|
2112
2109
|
const { queryConfig: e, chartConfig: t, queryObject: a, abortKey: n } = i, r = t.series[0], { x: s, dataTransformationType: o } = r;
|
|
@@ -2152,7 +2149,7 @@ function Yn(i) {
|
|
|
2152
2149
|
field: c,
|
|
2153
2150
|
minValue: r,
|
|
2154
2151
|
maxValue: s,
|
|
2155
|
-
numBins: l ??
|
|
2152
|
+
numBins: l ?? Zi,
|
|
2156
2153
|
classificationMethod: "equal-interval",
|
|
2157
2154
|
// 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)
|
|
2158
2155
|
sqlWhere: Tt(o.where) ? void 0 : o.where,
|
|
@@ -2179,25 +2176,25 @@ async function Jn(i) {
|
|
|
2179
2176
|
} = i, c = e.series[0], { dataTransformationType: l } = c;
|
|
2180
2177
|
let u = { valid: !0 };
|
|
2181
2178
|
if (a !== void 0) {
|
|
2182
|
-
const d = z(a), m =
|
|
2179
|
+
const d = z(a), m = Ji(t?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = _n({
|
|
2183
2180
|
seriesConfig: c,
|
|
2184
2181
|
layer: d,
|
|
2185
2182
|
view: g,
|
|
2186
2183
|
useFeaturesInView: m,
|
|
2187
2184
|
queryConfig: t
|
|
2188
2185
|
});
|
|
2189
|
-
let
|
|
2190
|
-
if (g !== void 0 && (
|
|
2186
|
+
let p;
|
|
2187
|
+
if (g !== void 0 && (p = new $t({
|
|
2191
2188
|
geometry: g.extent
|
|
2192
|
-
}), g.extent !== void 0 &&
|
|
2189
|
+
}), g.extent !== void 0 && Xi(d))) {
|
|
2193
2190
|
const { distance: L, units: D } = t;
|
|
2194
|
-
L !== void 0 && (
|
|
2191
|
+
L !== void 0 && (p.distance = L), D !== void 0 && (p.units = D);
|
|
2195
2192
|
}
|
|
2196
2193
|
if (t.timeExtent) {
|
|
2197
2194
|
const L = { start: t.timeExtent[0], end: t.timeExtent[1] };
|
|
2198
|
-
|
|
2195
|
+
p === void 0 ? p = new $t({ timeExtent: L }) : p.timeExtent = L;
|
|
2199
2196
|
}
|
|
2200
|
-
y.filter =
|
|
2197
|
+
y.filter = p;
|
|
2201
2198
|
let x;
|
|
2202
2199
|
y.outStatisticTypes = { exclude: ["median"] };
|
|
2203
2200
|
try {
|
|
@@ -2228,10 +2225,10 @@ async function Jn(i) {
|
|
|
2228
2225
|
valueExpression: y.valueExpression,
|
|
2229
2226
|
queryConfig: t
|
|
2230
2227
|
});
|
|
2231
|
-
L.filter =
|
|
2228
|
+
L.filter = p;
|
|
2232
2229
|
let D;
|
|
2233
2230
|
try {
|
|
2234
|
-
D = await
|
|
2231
|
+
D = await va(L);
|
|
2235
2232
|
} catch (M) {
|
|
2236
2233
|
throw new pt(Vt.QueryFeaturesError, o.errors.queryError, M);
|
|
2237
2234
|
}
|
|
@@ -2285,7 +2282,7 @@ async function Xn(i) {
|
|
|
2285
2282
|
})) }
|
|
2286
2283
|
};
|
|
2287
2284
|
}
|
|
2288
|
-
const
|
|
2285
|
+
const Me = {
|
|
2289
2286
|
groupByCaseBegin: "CASE",
|
|
2290
2287
|
groupByOutKeyword: "OUT",
|
|
2291
2288
|
groupByCaseEnd: "ELSE 'OUT' END"
|
|
@@ -2323,7 +2320,7 @@ async function tr(i) {
|
|
|
2323
2320
|
dataContextCountDistinctX: d,
|
|
2324
2321
|
dataContextCountDistinctY: f
|
|
2325
2322
|
} = b.scatterplotAggregationFields;
|
|
2326
|
-
let m, g, y,
|
|
2323
|
+
let m, g, y, p, x;
|
|
2327
2324
|
const F = e.get(o), C = e.get(c), B = e.get(l), N = e.get(u);
|
|
2328
2325
|
if (F != null && B !== void 0 && B !== null && C !== void 0 && C !== null && N !== void 0 && N !== null && !Number.isNaN(F + C + B + N)) {
|
|
2329
2326
|
const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), w = Math.floor(Math.sqrt(v)), L = await er({
|
|
@@ -2332,12 +2329,12 @@ async function tr(i) {
|
|
|
2332
2329
|
queryConfig: r,
|
|
2333
2330
|
abortKey: s
|
|
2334
2331
|
});
|
|
2335
|
-
y = Math.min(L.get(f) ?? Number.NaN, w),
|
|
2332
|
+
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);
|
|
2336
2333
|
}
|
|
2337
2334
|
}
|
|
2338
2335
|
function ir(i) {
|
|
2339
2336
|
const { groupByFieldsForStatistics: e, x: t, y: a, xValue: n, yValue: r, xStep: s, yStep: o, endOfRow: c, endOfColumn: l } = i;
|
|
2340
|
-
let u = e === "" ?
|
|
2337
|
+
let u = e === "" ? Me.groupByCaseBegin : e;
|
|
2341
2338
|
return u = de(Zn, {
|
|
2342
2339
|
groupByFieldsForStatistics: u,
|
|
2343
2340
|
x: t,
|
|
@@ -2374,12 +2371,12 @@ async function nr(i) {
|
|
|
2374
2371
|
dataContextYMinField: m,
|
|
2375
2372
|
dataContextYMaxField: g,
|
|
2376
2373
|
queryNumberOfFeatures: y,
|
|
2377
|
-
queryNumberOfAggregatedFeatures:
|
|
2374
|
+
queryNumberOfAggregatedFeatures: p
|
|
2378
2375
|
} = b.scatterplotAggregationFields;
|
|
2379
2376
|
let x;
|
|
2380
2377
|
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;
|
|
2381
2378
|
if (F != null && N !== void 0 && N !== null && C !== void 0 && C !== null && v !== void 0 && v !== null && !Number.isNaN(F + C + N + v)) {
|
|
2382
|
-
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
|
|
2379
|
+
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);
|
|
2383
2380
|
if (O?.forEach((I) => {
|
|
2384
2381
|
We(I) && A.set(I.name, {
|
|
2385
2382
|
onStatisticField: I.name,
|
|
@@ -2400,7 +2397,7 @@ async function nr(i) {
|
|
|
2400
2397
|
});
|
|
2401
2398
|
}), A.set(w, {
|
|
2402
2399
|
onStatisticField: w,
|
|
2403
|
-
outStatisticFieldName:
|
|
2400
|
+
outStatisticFieldName: p,
|
|
2404
2401
|
statisticType: P.Count
|
|
2405
2402
|
}).set(l, {
|
|
2406
2403
|
onStatisticField: l,
|
|
@@ -2416,7 +2413,7 @@ async function nr(i) {
|
|
|
2416
2413
|
...n,
|
|
2417
2414
|
outStatistics: [...A.values()]
|
|
2418
2415
|
};
|
|
2419
|
-
x = await
|
|
2416
|
+
x = await ea({
|
|
2420
2417
|
queryObject: a,
|
|
2421
2418
|
queryConfig: I,
|
|
2422
2419
|
xStep: L,
|
|
@@ -2429,25 +2426,25 @@ async function nr(i) {
|
|
|
2429
2426
|
});
|
|
2430
2427
|
} else if (M !== void 0 && q !== void 0) {
|
|
2431
2428
|
let I = 0;
|
|
2432
|
-
const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ue } = Ue(),
|
|
2433
|
-
let dt = !0,
|
|
2429
|
+
const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ue } = Ue(), De = await ta(T) ? ue : Z, Dt = [];
|
|
2430
|
+
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;
|
|
2434
2431
|
for (; ft <= q && dt; ) {
|
|
2435
|
-
for (
|
|
2436
|
-
if (
|
|
2437
|
-
groupByFieldsForStatistics:
|
|
2432
|
+
for (Ae = N, Je = 1; Je <= M && dt; ) {
|
|
2433
|
+
if (qe = ir({
|
|
2434
|
+
groupByFieldsForStatistics: qe,
|
|
2438
2435
|
x: l,
|
|
2439
2436
|
y: u,
|
|
2440
|
-
xValue:
|
|
2441
|
-
yValue:
|
|
2437
|
+
xValue: Oe,
|
|
2438
|
+
yValue: Ae,
|
|
2442
2439
|
xStep: L,
|
|
2443
2440
|
yStep: D,
|
|
2444
2441
|
endOfRow: Je === M,
|
|
2445
2442
|
endOfColumn: ft === q
|
|
2446
|
-
}),
|
|
2447
|
-
|
|
2443
|
+
}), 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) {
|
|
2444
|
+
qe = `${qe} ${Me.groupByCaseEnd}`;
|
|
2448
2445
|
const Vi = {
|
|
2449
2446
|
...n,
|
|
2450
|
-
groupByFieldsForStatistics: [
|
|
2447
|
+
groupByFieldsForStatistics: [qe],
|
|
2451
2448
|
outStatistics: [...A.values()]
|
|
2452
2449
|
};
|
|
2453
2450
|
Dt.push(
|
|
@@ -2461,11 +2458,11 @@ async function nr(i) {
|
|
|
2461
2458
|
yMax: tt,
|
|
2462
2459
|
abortKey: o
|
|
2463
2460
|
})
|
|
2464
|
-
), Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER,
|
|
2461
|
+
), 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);
|
|
2465
2462
|
}
|
|
2466
|
-
|
|
2463
|
+
Ae += D, Je += 1;
|
|
2467
2464
|
}
|
|
2468
|
-
|
|
2465
|
+
Oe += L, ft += 1;
|
|
2469
2466
|
}
|
|
2470
2467
|
x = (await Promise.all(Dt)).flat();
|
|
2471
2468
|
}
|
|
@@ -2486,11 +2483,11 @@ const rr = {
|
|
|
2486
2483
|
async function sr(i) {
|
|
2487
2484
|
const { queryObject: e } = i;
|
|
2488
2485
|
let t = !1;
|
|
2489
|
-
const a =
|
|
2486
|
+
const a = ia(e), n = z(e), r = ei(n);
|
|
2490
2487
|
if (a && r.url !== void 0 && r.url !== null) {
|
|
2491
2488
|
const s = `${r.url}/${r.layerId}?f=json`;
|
|
2492
2489
|
try {
|
|
2493
|
-
const o = (await
|
|
2490
|
+
const o = (await Fa(s)).data, c = o?.advancedQueryCapabilities?.supportsQueryAnalytic === !0, l = o?.sqlParserVersion === void 0 || r.version != null && r.version >= 10.91;
|
|
2494
2491
|
t = c && l;
|
|
2495
2492
|
} catch {
|
|
2496
2493
|
}
|
|
@@ -2522,9 +2519,9 @@ async function cr(i) {
|
|
|
2522
2519
|
typeValue: m,
|
|
2523
2520
|
fieldValue: g,
|
|
2524
2521
|
slopePropertyList: y,
|
|
2525
|
-
interceptPropertyList:
|
|
2522
|
+
interceptPropertyList: p,
|
|
2526
2523
|
r2PropertyList: x
|
|
2527
|
-
} = rr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await
|
|
2524
|
+
} = rr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await aa({
|
|
2528
2525
|
queryObject: t,
|
|
2529
2526
|
queryConfig: n,
|
|
2530
2527
|
outputFormat: d,
|
|
@@ -2533,18 +2530,18 @@ async function cr(i) {
|
|
|
2533
2530
|
});
|
|
2534
2531
|
if (C !== void 0) {
|
|
2535
2532
|
let B = Number.NaN, N = Number.NaN;
|
|
2536
|
-
const { expr: v } = mt(C, y), { expr: T } = mt(C,
|
|
2533
|
+
const { expr: v } = mt(C, y), { expr: T } = mt(C, p), { expr: w } = mt(C, x);
|
|
2537
2534
|
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]);
|
|
2538
2535
|
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;
|
|
2539
2536
|
let Z = q - I, ue = Number.NaN;
|
|
2540
2537
|
for (; !(ue >= O && ue <= H) && Z <= A; )
|
|
2541
2538
|
Z += I, ue = B * Z + N;
|
|
2542
|
-
let te = A + I,
|
|
2543
|
-
for (; !(
|
|
2544
|
-
te -= I,
|
|
2539
|
+
let te = A + I, De = Number.NaN;
|
|
2540
|
+
for (; !(De >= O && De <= H) && te >= q; )
|
|
2541
|
+
te -= I, De = B * te + N;
|
|
2545
2542
|
l = [
|
|
2546
2543
|
{ [s]: Z, [o]: ue },
|
|
2547
|
-
{ [s]: te, [o]:
|
|
2544
|
+
{ [s]: te, [o]: De }
|
|
2548
2545
|
];
|
|
2549
2546
|
}
|
|
2550
2547
|
return { r2: c, trendLinePoints: l };
|
|
@@ -2554,8 +2551,8 @@ function bi(i) {
|
|
|
2554
2551
|
let { r2: s, trendLinePoints: o } = b.scatterplotSeries;
|
|
2555
2552
|
const c = lr({ data: e, x: n, y: r });
|
|
2556
2553
|
if (c !== void 0) {
|
|
2557
|
-
const l =
|
|
2558
|
-
s =
|
|
2554
|
+
const l = Na(c), u = Ta(l);
|
|
2555
|
+
s = Aa(c, u), o = or({ x: n, y: r, trendlineXToY: u, data: e });
|
|
2559
2556
|
}
|
|
2560
2557
|
return { r2: s, trendLinePoints: o };
|
|
2561
2558
|
}
|
|
@@ -2611,10 +2608,10 @@ async function dr(i) {
|
|
|
2611
2608
|
onStatisticField: o
|
|
2612
2609
|
}
|
|
2613
2610
|
);
|
|
2614
|
-
const
|
|
2615
|
-
return
|
|
2611
|
+
const p = { ...t };
|
|
2612
|
+
return p.outStatistics = y, c = await _e({
|
|
2616
2613
|
queryObject: a,
|
|
2617
|
-
queryConfig:
|
|
2614
|
+
queryConfig: p,
|
|
2618
2615
|
abortKey: n
|
|
2619
2616
|
}), s === o && (c.set(d, c.get(l) ?? Number.NaN), c.set(f, c.get(u) ?? Number.NaN)), c;
|
|
2620
2617
|
}
|
|
@@ -2623,34 +2620,34 @@ function at(i) {
|
|
|
2623
2620
|
return e === t || e === a ? e : Math.random() * (a - t) + t;
|
|
2624
2621
|
}
|
|
2625
2622
|
function fr(i) {
|
|
2626
|
-
const { useQueryAttributeBins: e, graphic: t, x: a, y: n, yStep: r } = i, { groupByOutKeyword: s } =
|
|
2623
|
+
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;
|
|
2627
2624
|
let d = [];
|
|
2628
2625
|
if (e && "stackedAttributes" in t && t.stackedAttributes) {
|
|
2629
|
-
const f =
|
|
2626
|
+
const f = sa(a, n), m = t.attributes[f.lowerBoundaryAlias], g = t.attributes[f.upperBoundaryAlias];
|
|
2630
2627
|
t.stackedAttributes.forEach((y) => {
|
|
2631
|
-
let
|
|
2632
|
-
typeof
|
|
2628
|
+
let p = y[f.stackAlias], x;
|
|
2629
|
+
typeof p == "number" && typeof r == "number" && (p *= r), typeof p == "number" && typeof r == "number" && (x = p + r);
|
|
2633
2630
|
const F = y[a], C = y[n];
|
|
2634
|
-
typeof
|
|
2631
|
+
typeof p == "number" && typeof x == "number" && typeof F == "number" && typeof C == "number" && d.push({
|
|
2635
2632
|
...y,
|
|
2636
2633
|
[a]: at({ value: F, valueMin: m, valueMax: g }),
|
|
2637
|
-
[n]: at({ value: C, valueMin:
|
|
2634
|
+
[n]: at({ value: C, valueMin: p, valueMax: x }),
|
|
2638
2635
|
[o]: Math.min(m, g),
|
|
2639
2636
|
[c]: Math.max(m, g),
|
|
2640
|
-
[l]:
|
|
2637
|
+
[l]: p,
|
|
2641
2638
|
[u]: x
|
|
2642
2639
|
});
|
|
2643
2640
|
});
|
|
2644
2641
|
} else {
|
|
2645
2642
|
const { expr: f, isInItem: m } = lt(t.attributes);
|
|
2646
2643
|
if (m && f && t.attributes[f] !== s) {
|
|
2647
|
-
let [g, y,
|
|
2648
|
-
g = Math.min(g, y), y = Math.max(g, y),
|
|
2644
|
+
let [g, y, p, x] = t.attributes[f].split("|");
|
|
2645
|
+
g = Math.min(g, y), y = Math.max(g, y), p = Math.min(p, x), x = Math.max(p, x);
|
|
2649
2646
|
const F = {
|
|
2650
2647
|
...t.attributes,
|
|
2651
2648
|
[o]: g,
|
|
2652
2649
|
[c]: y,
|
|
2653
|
-
[l]:
|
|
2650
|
+
[l]: p,
|
|
2654
2651
|
[u]: x
|
|
2655
2652
|
};
|
|
2656
2653
|
F[a] = at({
|
|
@@ -2659,7 +2656,7 @@ function fr(i) {
|
|
|
2659
2656
|
valueMax: y
|
|
2660
2657
|
}), F[n] = at({
|
|
2661
2658
|
value: F[n],
|
|
2662
|
-
valueMin:
|
|
2659
|
+
valueMin: p,
|
|
2663
2660
|
valueMax: x
|
|
2664
2661
|
}), d = [F];
|
|
2665
2662
|
}
|
|
@@ -2680,20 +2677,20 @@ async function mr(i) {
|
|
|
2680
2677
|
});
|
|
2681
2678
|
return m = m?.filter((g) => {
|
|
2682
2679
|
const { expr: y } = lt(g);
|
|
2683
|
-
return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !==
|
|
2680
|
+
return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !== Me.groupByOutKeyword);
|
|
2684
2681
|
}), m ?? [];
|
|
2685
2682
|
}
|
|
2686
2683
|
async function gr(i) {
|
|
2687
2684
|
const { queryObject: e, queryConfig: t, chartConfig: a, featureCount: n, abortKey: r } = i, s = a.series[0], { x: o, y: c } = s, l = z(e);
|
|
2688
2685
|
let u = [];
|
|
2689
|
-
const f = ((await
|
|
2690
|
-
(
|
|
2686
|
+
const f = ((await Te(e))?.filter((p) => We(p) && p.name !== o && p.name !== c) ?? []).map(
|
|
2687
|
+
(p) => p.name
|
|
2691
2688
|
) ?? [], m = s?.additionalTooltipFields ?? [], g = Array.from(
|
|
2692
2689
|
/* @__PURE__ */ new Set([o, c, l.objectIdField, ...f, ...m])
|
|
2693
2690
|
);
|
|
2694
2691
|
if (!ei(l).isTable) {
|
|
2695
|
-
const { rendererField:
|
|
2696
|
-
ee(
|
|
2692
|
+
const { rendererField: p, rendererNormalizationField: x } = ra(l?.renderer ?? void 0);
|
|
2693
|
+
ee(p) || g.push(p), ee(x) || g.push(x);
|
|
2697
2694
|
}
|
|
2698
2695
|
const y = {
|
|
2699
2696
|
...t,
|
|
@@ -2746,7 +2743,7 @@ async function xi(i) {
|
|
|
2746
2743
|
queryConfig: t,
|
|
2747
2744
|
queryObject: a,
|
|
2748
2745
|
abortKey: o
|
|
2749
|
-
}), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g =
|
|
2746
|
+
}), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = na(a);
|
|
2750
2747
|
m && await tr({
|
|
2751
2748
|
statsMap: c,
|
|
2752
2749
|
chartConfig: e,
|
|
@@ -2761,7 +2758,7 @@ async function xi(i) {
|
|
|
2761
2758
|
numberOfFeatures: f,
|
|
2762
2759
|
isAggregationMode: m,
|
|
2763
2760
|
useQueryAttributeBins: g
|
|
2764
|
-
}),
|
|
2761
|
+
}), p = await mr({
|
|
2765
2762
|
queryObject: a,
|
|
2766
2763
|
chartConfig: e,
|
|
2767
2764
|
rawData: y,
|
|
@@ -2770,27 +2767,27 @@ async function xi(i) {
|
|
|
2770
2767
|
useQueryAttributeBins: g
|
|
2771
2768
|
});
|
|
2772
2769
|
n !== !1 && Ge({
|
|
2773
|
-
arrayToSort:
|
|
2770
|
+
arrayToSort: p,
|
|
2774
2771
|
sortingField: e.series[0].x,
|
|
2775
2772
|
orderBy: me.Ascending
|
|
2776
2773
|
});
|
|
2777
2774
|
const { r2: x, trendLinePoints: F } = r !== !1 ? await ur({
|
|
2778
|
-
data:
|
|
2775
|
+
data: p,
|
|
2779
2776
|
statsMap: c,
|
|
2780
2777
|
queryConfig: t,
|
|
2781
2778
|
options: s,
|
|
2782
2779
|
queryObject: a,
|
|
2783
2780
|
chartConfig: e
|
|
2784
2781
|
}) : b.scatterplotSeries;
|
|
2785
|
-
return { dataItems:
|
|
2782
|
+
return { dataItems: p, r2: x, trendLinePoints: F, aggregated: m };
|
|
2786
2783
|
}
|
|
2787
2784
|
function pr(i) {
|
|
2788
|
-
const { itemsA: e, itemsB: t, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = i;
|
|
2789
|
-
let
|
|
2790
|
-
if (
|
|
2791
|
-
|
|
2785
|
+
const { itemsA: e, itemsB: t, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = i, o = Ce(e), c = Ce(t);
|
|
2786
|
+
let l = !1;
|
|
2787
|
+
if (o === void 0 && c !== void 0 || o !== void 0 && c === void 0)
|
|
2788
|
+
l = !0;
|
|
2792
2789
|
else if (!a) {
|
|
2793
|
-
const
|
|
2790
|
+
const u = [
|
|
2794
2791
|
b.originalCategoryValue,
|
|
2795
2792
|
b.originalDateValue,
|
|
2796
2793
|
b.xAxisField,
|
|
@@ -2806,18 +2803,18 @@ function pr(i) {
|
|
|
2806
2803
|
b.technicalFieldSplitByField,
|
|
2807
2804
|
Y.uniqueIdsName,
|
|
2808
2805
|
k.valueField,
|
|
2809
|
-
...
|
|
2810
|
-
],
|
|
2811
|
-
const
|
|
2812
|
-
typeof
|
|
2813
|
-
const
|
|
2814
|
-
return Object.keys(
|
|
2815
|
-
!
|
|
2816
|
-
}),
|
|
2817
|
-
},
|
|
2818
|
-
|
|
2806
|
+
...oa
|
|
2807
|
+
], d = (y, p) => {
|
|
2808
|
+
const x = p[b.typeOrDomainFieldName];
|
|
2809
|
+
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]);
|
|
2810
|
+
const F = {};
|
|
2811
|
+
return Object.keys(p).forEach((C) => {
|
|
2812
|
+
!u.includes(C) && !C.includes(b.rendererSymbolField) && (F[C] = p[C]);
|
|
2813
|
+
}), y.push(F), y;
|
|
2814
|
+
}, f = (y, p) => JSON.stringify(y).localeCompare(JSON.stringify(p)), m = o?.reduce(d, [])?.sort(f), g = c?.reduce(d, [])?.sort(f);
|
|
2815
|
+
l = m?.length !== g?.length || !Le(m, g);
|
|
2819
2816
|
}
|
|
2820
|
-
return
|
|
2817
|
+
return l;
|
|
2821
2818
|
}
|
|
2822
2819
|
function hr(i) {
|
|
2823
2820
|
const { chartConfig: e, currentSelectionDataItems: t, options: a } = i, { selectionData: n } = a ?? {};
|
|
@@ -2827,11 +2824,11 @@ function hr(i) {
|
|
|
2827
2824
|
if (c !== void 0 && pr({
|
|
2828
2825
|
itemsA: c,
|
|
2829
2826
|
itemsB: t,
|
|
2830
|
-
isPieFromFields: E(e.series) ===
|
|
2827
|
+
isPieFromFields: E(e.series) === h.PieFromFields,
|
|
2831
2828
|
x: e.series[0].x,
|
|
2832
2829
|
y: "y" in e.series[0] ? e.series[0].y.toString() : void 0,
|
|
2833
2830
|
outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
|
|
2834
|
-
}) ? r = c : r = t ?? [], s.length > 1 && o !==
|
|
2831
|
+
}) ? r = c : r = t ?? [], s.length > 1 && o !== h.BarAndLineNoAggregation && o !== h.BarAndLineSplitByNoAggregation) {
|
|
2835
2832
|
const l = K(s[0].query?.where);
|
|
2836
2833
|
r = Lt({ data: r, x: s[0].x, splitByField: l });
|
|
2837
2834
|
}
|
|
@@ -2842,7 +2839,7 @@ function hr(i) {
|
|
|
2842
2839
|
}
|
|
2843
2840
|
return r ?? [];
|
|
2844
2841
|
}
|
|
2845
|
-
function
|
|
2842
|
+
function Be(i, e) {
|
|
2846
2843
|
let t = "";
|
|
2847
2844
|
if (i.trim() !== "" && e !== void 0)
|
|
2848
2845
|
if (e === null)
|
|
@@ -2865,8 +2862,8 @@ function Sr(i) {
|
|
|
2865
2862
|
}
|
|
2866
2863
|
} else
|
|
2867
2864
|
r = Q([
|
|
2868
|
-
Fe({ where:
|
|
2869
|
-
a !== void 0 ? Fe({ where:
|
|
2865
|
+
Fe({ where: Be(t, e[t]) }),
|
|
2866
|
+
a !== void 0 ? Fe({ where: Be(a, e[a]) }) : ""
|
|
2870
2867
|
]);
|
|
2871
2868
|
return r;
|
|
2872
2869
|
}
|
|
@@ -2875,7 +2872,7 @@ function Ci(i, e) {
|
|
|
2875
2872
|
const a = e[b.originalServerBinningRange] ?? e[b.dateBinningRange];
|
|
2876
2873
|
if (vt(a) && a.length === 2) {
|
|
2877
2874
|
let [n, r] = a;
|
|
2878
|
-
typeof n == "number" && typeof r == "number" && Number.isFinite(n) && Number.isFinite(r) && (n =
|
|
2875
|
+
typeof n == "number" && typeof r == "number" && Number.isFinite(n) && Number.isFinite(r) && (n = Ve(n), r = Ve(r));
|
|
2879
2876
|
const s = e[b.lastTemporalBin] === !0 ? "<=" : "<";
|
|
2880
2877
|
t = `${i}>='${n}' AND ${i}${s}'${r}'`;
|
|
2881
2878
|
}
|
|
@@ -2899,16 +2896,16 @@ function vi(i) {
|
|
|
2899
2896
|
keepNullValues: !0,
|
|
2900
2897
|
specificField: b.typeOrDomainIdValue
|
|
2901
2898
|
});
|
|
2902
|
-
r === Ye.Double ? o = Bi(d, e) : (
|
|
2903
|
-
where:
|
|
2899
|
+
r === Ye.Double ? o = Bi(d, e) : (Pe(s.axes?.[0].valueFormat) && (d = Ve(d)), o = Fe({
|
|
2900
|
+
where: Be(e, d),
|
|
2904
2901
|
normalize: !1,
|
|
2905
2902
|
escape: !0
|
|
2906
2903
|
}));
|
|
2907
2904
|
}
|
|
2908
2905
|
const c = Fe({ where: a ?? "", normalize: !1, escape: !0 });
|
|
2909
2906
|
let l = "";
|
|
2910
|
-
if (
|
|
2911
|
-
const d = E(s.series) ===
|
|
2907
|
+
if (Qa(s) === !0) {
|
|
2908
|
+
const d = E(s.series) === h.BoxPlotMultiFieldsAndCategory ? t : void 0, f = U({
|
|
2912
2909
|
key: V.Min,
|
|
2913
2910
|
showOutliers: !0,
|
|
2914
2911
|
splitBy: a,
|
|
@@ -2920,8 +2917,8 @@ function vi(i) {
|
|
|
2920
2917
|
y: d
|
|
2921
2918
|
}), g = e === b.boxPlot.boxPlotCategory ? n[e] : t;
|
|
2922
2919
|
if (!ee(g)) {
|
|
2923
|
-
const y = n[f],
|
|
2924
|
-
Number.isFinite(y) && Number.isFinite(
|
|
2920
|
+
const y = n[f], p = n[m];
|
|
2921
|
+
Number.isFinite(y) && Number.isFinite(p) && (l = `${g?.toString()}>=${y?.toString()} AND ${g?.toString()}<=${p?.toString()}`);
|
|
2925
2922
|
}
|
|
2926
2923
|
}
|
|
2927
2924
|
return Q([o, c, l]);
|
|
@@ -2931,15 +2928,15 @@ function Fr(i) {
|
|
|
2931
2928
|
let s = "";
|
|
2932
2929
|
if (b.dateBinningRange in a)
|
|
2933
2930
|
s = Ci(e, a);
|
|
2934
|
-
else if (E(r.series) !==
|
|
2931
|
+
else if (E(r.series) !== h.BarAndLineFromFields) {
|
|
2935
2932
|
let l = ze({
|
|
2936
2933
|
value: a[e],
|
|
2937
2934
|
dataContext: a,
|
|
2938
2935
|
keepNullValues: !0,
|
|
2939
2936
|
specificField: b.typeOrDomainIdValue
|
|
2940
2937
|
});
|
|
2941
|
-
n === Ye.Double ? s = Bi(l, e) : (
|
|
2942
|
-
where:
|
|
2938
|
+
n === Ye.Double ? s = Bi(l, e) : (Pe(r.axes?.[0].valueFormat) && (l = Ve(l)), s = Fe({
|
|
2939
|
+
where: Be(e, l),
|
|
2943
2940
|
normalize: !1,
|
|
2944
2941
|
escape: !0
|
|
2945
2942
|
}));
|
|
@@ -2950,8 +2947,8 @@ function Fr(i) {
|
|
|
2950
2947
|
function br(i) {
|
|
2951
2948
|
const { xAxisField: e, dataContext: t, chartConfig: a } = i;
|
|
2952
2949
|
let n = b.typeOrDomainIdValue in t ? t[b.typeOrDomainIdValue] : t[b.originalCategoryValue];
|
|
2953
|
-
return n === void 0 && (n = t[e]), E(a.series) ===
|
|
2954
|
-
where:
|
|
2950
|
+
return n === void 0 && (n = t[e]), E(a.series) === h.PieFromFields ? "" : Fe({
|
|
2951
|
+
where: Be(e, n),
|
|
2955
2952
|
normalize: !1,
|
|
2956
2953
|
escape: !0
|
|
2957
2954
|
});
|
|
@@ -2985,7 +2982,7 @@ function xr(i) {
|
|
|
2985
2982
|
let u, d;
|
|
2986
2983
|
const f = a[k.xField], m = a[k.yField], g = n.axes?.[0]?.valueFormat?.type, y = n.axes?.[1]?.valueFormat?.type;
|
|
2987
2984
|
g === S.CategoryAxisFormat ? u = Fe({
|
|
2988
|
-
where:
|
|
2985
|
+
where: Be(c.x, f),
|
|
2989
2986
|
normalize: !1,
|
|
2990
2987
|
escape: !0
|
|
2991
2988
|
}) : u = Qt({
|
|
@@ -2997,7 +2994,7 @@ function xr(i) {
|
|
|
2997
2994
|
dataTimeZone: s,
|
|
2998
2995
|
runsOnClientQueryEngine: o
|
|
2999
2996
|
}), y === S.CategoryAxisFormat ? d = Fe({
|
|
3000
|
-
where:
|
|
2997
|
+
where: Be(c.y, m),
|
|
3001
2998
|
normalize: !1,
|
|
3002
2999
|
escape: !0
|
|
3003
3000
|
}) : d = Qt({
|
|
@@ -3014,7 +3011,7 @@ function Cr(i) {
|
|
|
3014
3011
|
let n = "";
|
|
3015
3012
|
const r = a.series[0], { minValue: s, maxValue: o } = t;
|
|
3016
3013
|
if (Number.isFinite(s) && Number.isFinite(o) && r.type === S.HistogramSeries) {
|
|
3017
|
-
const c =
|
|
3014
|
+
const c = Ja(e, r.dataTransformationType), l = t.isLastBin ? "<=" : "<";
|
|
3018
3015
|
n = Q([
|
|
3019
3016
|
`${c}>=${s?.toString()}`,
|
|
3020
3017
|
`${c}${l}${o?.toString()}`
|
|
@@ -3053,7 +3050,7 @@ function Xo(i) {
|
|
|
3053
3050
|
async function Br(i) {
|
|
3054
3051
|
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();
|
|
3055
3052
|
for (let g = 0; g < e; g += 1) {
|
|
3056
|
-
const y = g * f,
|
|
3053
|
+
const y = g * f, p = (g + 1) * f - 1, x = t.slice(y === 0 ? 0 : y - 1, p), F = { ...n };
|
|
3057
3054
|
switch (F.objectIds = x, u) {
|
|
3058
3055
|
case S.HeatSeries:
|
|
3059
3056
|
d.push(
|
|
@@ -3073,7 +3070,7 @@ async function Br(i) {
|
|
|
3073
3070
|
case S.LineSeries:
|
|
3074
3071
|
case S.RadarSeries:
|
|
3075
3072
|
case S.ComboLineAndBarSeries:
|
|
3076
|
-
if (
|
|
3073
|
+
if (Ne({
|
|
3077
3074
|
xAxisValueFormatType: pe(a),
|
|
3078
3075
|
setTimeBinningInfoWhenNotProvided: c,
|
|
3079
3076
|
seriesConfig: l[0]
|
|
@@ -3167,11 +3164,11 @@ function vr(i) {
|
|
|
3167
3164
|
[f]: m[f]
|
|
3168
3165
|
}))
|
|
3169
3166
|
);
|
|
3170
|
-
} else l.valid && (r ===
|
|
3167
|
+
} else l.valid && (r === h.PieFromFields ? s = st({
|
|
3171
3168
|
dataToConvert: u[0],
|
|
3172
3169
|
x: ne,
|
|
3173
3170
|
y: he
|
|
3174
|
-
}) : r ===
|
|
3171
|
+
}) : r === h.BarAndLineFromFields ? s = st({
|
|
3175
3172
|
dataToConvert: u[0],
|
|
3176
3173
|
x: a[0].x,
|
|
3177
3174
|
y: a[0].y
|
|
@@ -3191,12 +3188,12 @@ async function Nr(i) {
|
|
|
3191
3188
|
options: o,
|
|
3192
3189
|
errorStrings: c
|
|
3193
3190
|
} = i, { series: l } = e, { selectionData: u, viewExtentUpdated: d, returnSelectionOIDs: f, chartLimits: m } = o ?? {}, { selectionItems: g, selectionOIDs: y } = u ?? {};
|
|
3194
|
-
let
|
|
3191
|
+
let p;
|
|
3195
3192
|
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]);
|
|
3196
|
-
if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !
|
|
3193
|
+
if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !Le(y, n))) {
|
|
3197
3194
|
const B = _t(a);
|
|
3198
|
-
if (B !== void 0 && !
|
|
3199
|
-
|
|
3195
|
+
if (B !== void 0 && !Ka({ dataContext: B[0], chartConfig: e, chartLimits: m }))
|
|
3196
|
+
p = B.filter((N) => {
|
|
3200
3197
|
const v = N[Y.uniqueIdsName];
|
|
3201
3198
|
return typeof v == "number" ? y?.includes(v) : !1;
|
|
3202
3199
|
});
|
|
@@ -3210,20 +3207,20 @@ async function Nr(i) {
|
|
|
3210
3207
|
errorStrings: c,
|
|
3211
3208
|
chartConfig: e
|
|
3212
3209
|
});
|
|
3213
|
-
|
|
3210
|
+
p = vr({
|
|
3214
3211
|
dataFetchingResults: T,
|
|
3215
3212
|
numberOfQueries: v,
|
|
3216
3213
|
series: l
|
|
3217
3214
|
});
|
|
3218
3215
|
}
|
|
3219
3216
|
}
|
|
3220
|
-
return
|
|
3217
|
+
return p;
|
|
3221
3218
|
}
|
|
3222
3219
|
function* Tr(i) {
|
|
3223
3220
|
const { filterList: e, queryObject: t, queryConfig: a } = i;
|
|
3224
3221
|
for (let n = 0; n < e.length; n += 1) {
|
|
3225
3222
|
const r = { ...a };
|
|
3226
|
-
r.where = Q([r.where, e[n]]), yield
|
|
3223
|
+
r.where = Q([r.where, e[n]]), yield la({
|
|
3227
3224
|
queryObject: t,
|
|
3228
3225
|
queryConfig: r,
|
|
3229
3226
|
uniqueFeature: !0
|
|
@@ -3253,9 +3250,9 @@ async function Ar(i) {
|
|
|
3253
3250
|
const { queryObject: e, queryConfig: t, chartConfig: a, currentSelectionDataItems: n, options: r, errorStrings: s, abortKey: o } = i, c = E(a.series);
|
|
3254
3251
|
let l = { valid: !0, data: { dataItems: [] } };
|
|
3255
3252
|
if (n !== void 0 && n.length > 0) {
|
|
3256
|
-
const u =
|
|
3253
|
+
const u = we(a), { x: d } = u, f = "y" in u ? u.y : "";
|
|
3257
3254
|
let m;
|
|
3258
|
-
e !== void 0 && (m = (await
|
|
3255
|
+
e !== void 0 && (m = (await Te(e)).find((B) => B.name === d)?.type);
|
|
3259
3256
|
const g = [], y = n.reduce(
|
|
3260
3257
|
(C, B) => {
|
|
3261
3258
|
const N = [];
|
|
@@ -3263,14 +3260,14 @@ async function Ar(i) {
|
|
|
3263
3260
|
g.push(B[Y.uniqueIdsName]);
|
|
3264
3261
|
else {
|
|
3265
3262
|
switch (c) {
|
|
3266
|
-
case
|
|
3267
|
-
case
|
|
3268
|
-
case
|
|
3263
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
3264
|
+
case h.BoxPlotMultiFieldsAndSplitBy:
|
|
3265
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
3269
3266
|
const w = K(u.query?.where ?? ""), L = `_${V.Average}`;
|
|
3270
3267
|
Object.keys(B).forEach((D) => {
|
|
3271
3268
|
if (D.includes(L)) {
|
|
3272
3269
|
const R = D.replace(L, "");
|
|
3273
|
-
R.trim() !== "" && N.push(
|
|
3270
|
+
R.trim() !== "" && N.push(Be(w, R));
|
|
3274
3271
|
}
|
|
3275
3272
|
});
|
|
3276
3273
|
break;
|
|
@@ -3278,7 +3275,7 @@ async function Ar(i) {
|
|
|
3278
3275
|
}
|
|
3279
3276
|
const v = [f].flat();
|
|
3280
3277
|
let T = v.length === 1 ? v[0] : "";
|
|
3281
|
-
if (c ===
|
|
3278
|
+
if (c === h.BoxPlotMultiFieldsAndCategory) {
|
|
3282
3279
|
const w = `_${V.FirstQuartile}`, L = Object.keys(B).find((D) => D.includes(w));
|
|
3283
3280
|
L !== void 0 && (T = L.replace(w, ""));
|
|
3284
3281
|
}
|
|
@@ -3297,9 +3294,9 @@ async function Ar(i) {
|
|
|
3297
3294
|
return C;
|
|
3298
3295
|
},
|
|
3299
3296
|
[]
|
|
3300
|
-
),
|
|
3301
|
-
if (
|
|
3302
|
-
const { objectIdField: C } =
|
|
3297
|
+
), p = z(e);
|
|
3298
|
+
if (p !== void 0 && g.length > 0) {
|
|
3299
|
+
const { objectIdField: C } = p;
|
|
3303
3300
|
y.push(`${C} IN (${g.join(",")})`);
|
|
3304
3301
|
}
|
|
3305
3302
|
const x = y.join(" OR "), F = { ...t };
|
|
@@ -3343,10 +3340,10 @@ async function Pr(i) {
|
|
|
3343
3340
|
m.data = { dataItems: g };
|
|
3344
3341
|
break;
|
|
3345
3342
|
case S.PieSeries:
|
|
3346
|
-
if (E(a.series) ===
|
|
3347
|
-
const { x:
|
|
3343
|
+
if (E(a.series) === h.PieFromFields) {
|
|
3344
|
+
const { x: p, y: x } = a.series[0], F = Ce(g);
|
|
3348
3345
|
F.forEach((C) => {
|
|
3349
|
-
|
|
3346
|
+
p in C && (C[ne] = C[p], delete C[p]), x in C && (C[he] = C[x], delete C[x]);
|
|
3350
3347
|
}), m.data = { dataItems: F };
|
|
3351
3348
|
} else
|
|
3352
3349
|
m.data = { dataItems: g };
|
|
@@ -3359,23 +3356,23 @@ async function Pr(i) {
|
|
|
3359
3356
|
case S.ComboLineAndBarSeries:
|
|
3360
3357
|
case S.RadarSeries:
|
|
3361
3358
|
case S.LineSeries:
|
|
3362
|
-
if (g.length === 0 || !
|
|
3359
|
+
if (g.length === 0 || !Ne({
|
|
3363
3360
|
xAxisValueFormatType: f,
|
|
3364
3361
|
setTimeBinningInfoWhenNotProvided: o?.setTimeBinningInfoWhenNotProvided,
|
|
3365
3362
|
seriesConfig: u[0]
|
|
3366
3363
|
}))
|
|
3367
3364
|
m.data = { dataItems: g }, m.count = g.length * u.length, y = !0;
|
|
3368
3365
|
else {
|
|
3369
|
-
const
|
|
3366
|
+
const p = { ...t };
|
|
3370
3367
|
if (n !== void 0 && n.length > 0) {
|
|
3371
3368
|
const F = n.map(
|
|
3372
3369
|
(B) => Ci(u[0].x, B)
|
|
3373
3370
|
), C = Q(F, "OR");
|
|
3374
|
-
|
|
3371
|
+
p.where = Q([p.where, C]);
|
|
3375
3372
|
}
|
|
3376
3373
|
m = await wt({
|
|
3377
3374
|
queryObject: e,
|
|
3378
|
-
queryConfig:
|
|
3375
|
+
queryConfig: p,
|
|
3379
3376
|
chartConfig: a,
|
|
3380
3377
|
options: o
|
|
3381
3378
|
});
|
|
@@ -3392,9 +3389,9 @@ async function Pr(i) {
|
|
|
3392
3389
|
bins: []
|
|
3393
3390
|
}, m.count = 0;
|
|
3394
3391
|
else {
|
|
3395
|
-
const { x:
|
|
3392
|
+
const { x: p } = u[0], x = g.map((B, N) => {
|
|
3396
3393
|
const { minValue: v, maxValue: T } = B, w = N === g.length - 1 ? "<=" : "<";
|
|
3397
|
-
return `${
|
|
3394
|
+
return `${p} >= ${v} AND ${p} ${w} ${T}`;
|
|
3398
3395
|
}), F = Q(x, "OR"), C = { ...t };
|
|
3399
3396
|
C.where = Q([C.where, F]), m = await Fi({
|
|
3400
3397
|
queryObject: e,
|
|
@@ -3409,14 +3406,14 @@ async function Pr(i) {
|
|
|
3409
3406
|
}
|
|
3410
3407
|
case S.ScatterSeries: {
|
|
3411
3408
|
if (g.length === 0) {
|
|
3412
|
-
const { r2:
|
|
3413
|
-
m.data = { dataItems: [], r2:
|
|
3409
|
+
const { r2: p, trendLinePoints: x } = b.scatterplotSeries;
|
|
3410
|
+
m.data = { dataItems: [], r2: p, trendLinePoints: x, count: 0 }, m.count = 0;
|
|
3414
3411
|
} else {
|
|
3415
|
-
const { r2:
|
|
3412
|
+
const { r2: p, trendLinePoints: x } = bi({
|
|
3416
3413
|
data: g,
|
|
3417
3414
|
chartConfig: a
|
|
3418
3415
|
});
|
|
3419
|
-
m.data = { dataItems: g, r2:
|
|
3416
|
+
m.data = { dataItems: g, r2: p, trendLinePoints: x }, m.count = g.length;
|
|
3420
3417
|
}
|
|
3421
3418
|
break;
|
|
3422
3419
|
}
|
|
@@ -3480,7 +3477,7 @@ async function Lr(i) {
|
|
|
3480
3477
|
abortKey: o,
|
|
3481
3478
|
fieldList: c
|
|
3482
3479
|
};
|
|
3483
|
-
|
|
3480
|
+
Ne({
|
|
3484
3481
|
xAxisValueFormatType: pe(t),
|
|
3485
3482
|
setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
|
|
3486
3483
|
seriesConfig: l[0]
|
|
@@ -3539,7 +3536,7 @@ async function el(i) {
|
|
|
3539
3536
|
runtimeDataFilters: c?.runtimeDataFilters,
|
|
3540
3537
|
ignoreViewExtent: c?.ignoreViewExtent
|
|
3541
3538
|
});
|
|
3542
|
-
return
|
|
3539
|
+
return ca(a), d = await Lr({
|
|
3543
3540
|
chartConfig: t,
|
|
3544
3541
|
queryObject: e,
|
|
3545
3542
|
queryConfig: f,
|
|
@@ -3567,7 +3564,7 @@ async function wr(i) {
|
|
|
3567
3564
|
const { seriesData: e, chartConfig: t, queryConfig: a, queryObject: n, categoryOrDateCount: r, behaviorAfterLimit: s, abortKey: o } = i, { series: c } = t;
|
|
3568
3565
|
let l = e;
|
|
3569
3566
|
const u = E(c), d = pe(t);
|
|
3570
|
-
if (s !== $e.RenderUpToTheLimit && n !== void 0 && r !== void 0 && r > e.length && u !==
|
|
3567
|
+
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) {
|
|
3571
3568
|
const { x: f } = c[0], m = {
|
|
3572
3569
|
...a,
|
|
3573
3570
|
returnDistinctValues: !0,
|
|
@@ -3579,7 +3576,7 @@ async function wr(i) {
|
|
|
3579
3576
|
queryConfig: m,
|
|
3580
3577
|
featureCount: r,
|
|
3581
3578
|
abortKey: o
|
|
3582
|
-
})).map((
|
|
3579
|
+
})).map((p) => p.attributes[f]).filter((p) => p != null);
|
|
3583
3580
|
y.length > e.length && (l = Mr(y, e, f));
|
|
3584
3581
|
}
|
|
3585
3582
|
return l;
|
|
@@ -3600,19 +3597,19 @@ function Dr(i, e) {
|
|
|
3600
3597
|
return t;
|
|
3601
3598
|
}
|
|
3602
3599
|
const Ni = [
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3600
|
+
h.BarAndLineMonoField,
|
|
3601
|
+
h.BarAndLineMultiFields,
|
|
3602
|
+
h.PieNoAggregation,
|
|
3603
|
+
h.PieFromCategory,
|
|
3604
|
+
h.BoxPlotMonoFieldAndCategory,
|
|
3605
|
+
h.BoxPlotMultiFieldsAndCategory,
|
|
3606
|
+
h.BoxPlotMonoFieldAndCategoryAndSplitBy
|
|
3610
3607
|
], Or = 8e3;
|
|
3611
3608
|
function Ti(i, e) {
|
|
3612
3609
|
let t = i;
|
|
3613
3610
|
return e === j.Week ? t /= 7 : e === j.Month ? t /= 30 : e === j.Year && (t /= 365), t = Math.ceil(t), t;
|
|
3614
3611
|
}
|
|
3615
|
-
function
|
|
3612
|
+
function ve(i) {
|
|
3616
3613
|
const { date: e, unit: t, nextOrPrevious: a, size: n } = i;
|
|
3617
3614
|
if (n !== void 0 && Number.isFinite(n)) {
|
|
3618
3615
|
const r = a === "next" ? n : -n;
|
|
@@ -3637,7 +3634,7 @@ function Be(i) {
|
|
|
3637
3634
|
function qr(i) {
|
|
3638
3635
|
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];
|
|
3639
3636
|
let l = e;
|
|
3640
|
-
const u =
|
|
3637
|
+
const u = ve({
|
|
3641
3638
|
date: c,
|
|
3642
3639
|
unit: r,
|
|
3643
3640
|
size: o,
|
|
@@ -3649,7 +3646,7 @@ function qr(i) {
|
|
|
3649
3646
|
const f = l + 1 >= t.length;
|
|
3650
3647
|
let m = l;
|
|
3651
3648
|
f && t[m] !== void 0 && (m += 1);
|
|
3652
|
-
const g = f ?
|
|
3649
|
+
const g = f ? ve({
|
|
3653
3650
|
date: c,
|
|
3654
3651
|
unit: r,
|
|
3655
3652
|
size: o,
|
|
@@ -3667,7 +3664,7 @@ function qr(i) {
|
|
|
3667
3664
|
function Er(i) {
|
|
3668
3665
|
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];
|
|
3669
3666
|
let l = e;
|
|
3670
|
-
const u =
|
|
3667
|
+
const u = ve({
|
|
3671
3668
|
date: c,
|
|
3672
3669
|
unit: r,
|
|
3673
3670
|
size: o,
|
|
@@ -3679,7 +3676,7 @@ function Er(i) {
|
|
|
3679
3676
|
const f = l - 1 <= 0;
|
|
3680
3677
|
let m = e;
|
|
3681
3678
|
return f && t[m] !== void 0 && (m -= 1), f && (l = 0), {
|
|
3682
|
-
binStartDate: f ?
|
|
3679
|
+
binStartDate: f ? ve({
|
|
3683
3680
|
date: c,
|
|
3684
3681
|
unit: r,
|
|
3685
3682
|
size: o,
|
|
@@ -3723,14 +3720,14 @@ function Ir(i) {
|
|
|
3723
3720
|
let d, f;
|
|
3724
3721
|
if (oe(l) && (f = l.temporalBinning?.nullPolicy, d = l.temporalBinning?.timeAggregationType), c > 1 || o === j.Week || o === j.Month || o === j.Year) {
|
|
3725
3722
|
const { query: m } = t[0], g = se(t), { statisticType: y } = m?.outStatistics?.[0] ?? zt;
|
|
3726
|
-
let
|
|
3723
|
+
let p = !1, x = d === G.End ? e.length - 1 : 0;
|
|
3727
3724
|
const F = {
|
|
3728
3725
|
binFirstOrLastIndex: x,
|
|
3729
3726
|
data: e,
|
|
3730
3727
|
x: u,
|
|
3731
3728
|
timeIntervalInfo: a
|
|
3732
3729
|
};
|
|
3733
|
-
for (; !
|
|
3730
|
+
for (; !p; ) {
|
|
3734
3731
|
let C = {};
|
|
3735
3732
|
const { binStartDate: B, binEndDate: N, last: v, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === G.End ? (
|
|
3736
3733
|
// When grouping from the end we'll start from the last date and move backward to create the bins
|
|
@@ -3739,12 +3736,12 @@ function Ir(i) {
|
|
|
3739
3736
|
// When grouping from the start we'll start from the first date and move forward to create the bins
|
|
3740
3737
|
qr(F)
|
|
3741
3738
|
);
|
|
3742
|
-
if (
|
|
3739
|
+
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) {
|
|
3743
3740
|
const D = e.slice(w, L).filter((q) => !(b.dateBinModel in q));
|
|
3744
3741
|
g.forEach((q) => {
|
|
3745
3742
|
C[q] = Vr({ binsToRegroup: D, statisticType: y, y: q, nullPolicy: f });
|
|
3746
3743
|
});
|
|
3747
|
-
const R = D.map((q) => q[xe]).filter((q) => q !== void 0), M =
|
|
3744
|
+
const R = D.map((q) => q[xe]).filter((q) => q !== void 0), M = Ha(R);
|
|
3748
3745
|
M !== void 0 && (C[xe] = M), C[u] = B, C[b.xAxisField] = B, C[b.dateBinningRange] = [B, N], delete C[b.dateBinModel], s.push(C);
|
|
3749
3746
|
} else v && d !== G.End && s.length > 0 && (s[s.length - 1][b.dateBinningRange][1] = s[s.length - 1][b.dateBinningRange][1] + 1);
|
|
3750
3747
|
x = T, F.binFirstOrLastIndex = T;
|
|
@@ -3752,15 +3749,15 @@ function Ir(i) {
|
|
|
3752
3749
|
d === G.End && (s = s.reverse());
|
|
3753
3750
|
} else c === 1 ? s = e.map((m, g) => {
|
|
3754
3751
|
const y = m[u];
|
|
3755
|
-
let
|
|
3756
|
-
return
|
|
3752
|
+
let p = e[g + 1]?.[u];
|
|
3753
|
+
return p = typeof p == "number" ? p - 1 : ve({
|
|
3757
3754
|
date: y,
|
|
3758
3755
|
unit: o,
|
|
3759
3756
|
size: c,
|
|
3760
3757
|
nextOrPrevious: "next"
|
|
3761
3758
|
}), {
|
|
3762
3759
|
...m,
|
|
3763
|
-
[b.dateBinningRange]: [y,
|
|
3760
|
+
[b.dateBinningRange]: [y, p]
|
|
3764
3761
|
};
|
|
3765
3762
|
}) : s = e;
|
|
3766
3763
|
return s;
|
|
@@ -3820,31 +3817,31 @@ function $r(i) {
|
|
|
3820
3817
|
c === j.Week && (g *= 7);
|
|
3821
3818
|
const y = Pi(r);
|
|
3822
3819
|
if (u === G.End) {
|
|
3823
|
-
let
|
|
3820
|
+
let p = n[0][l];
|
|
3824
3821
|
for (let x = 0; x < g; x += 1)
|
|
3825
|
-
|
|
3826
|
-
date:
|
|
3822
|
+
p = ve({
|
|
3823
|
+
date: p,
|
|
3827
3824
|
unit: c,
|
|
3828
3825
|
size: 1,
|
|
3829
3826
|
nextOrPrevious: "previous"
|
|
3830
3827
|
}), n.push({
|
|
3831
3828
|
...y,
|
|
3832
|
-
[l]:
|
|
3833
|
-
[b.xAxisField]:
|
|
3829
|
+
[l]: p,
|
|
3830
|
+
[b.xAxisField]: p
|
|
3834
3831
|
});
|
|
3835
3832
|
g > 0 && (d = n[n.length - 1][l]);
|
|
3836
3833
|
} else {
|
|
3837
|
-
let
|
|
3834
|
+
let p = n[n.length - 1][l];
|
|
3838
3835
|
for (let x = 0; x < g; x += 1)
|
|
3839
|
-
|
|
3840
|
-
date:
|
|
3836
|
+
p = ve({
|
|
3837
|
+
date: p,
|
|
3841
3838
|
unit: c,
|
|
3842
3839
|
size: 1,
|
|
3843
3840
|
nextOrPrevious: "next"
|
|
3844
3841
|
}), n.push({
|
|
3845
3842
|
...y,
|
|
3846
|
-
[l]:
|
|
3847
|
-
[b.xAxisField]:
|
|
3843
|
+
[l]: p,
|
|
3844
|
+
[b.xAxisField]: p
|
|
3848
3845
|
});
|
|
3849
3846
|
f = n[n.length - 1][l];
|
|
3850
3847
|
}
|
|
@@ -3901,13 +3898,13 @@ function jr(i) {
|
|
|
3901
3898
|
unit: c
|
|
3902
3899
|
})) {
|
|
3903
3900
|
const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = Pi(a);
|
|
3904
|
-
let y = f === G.End ? t : e,
|
|
3905
|
-
for (;
|
|
3906
|
-
y !== n[
|
|
3901
|
+
let y = f === G.End ? t : e, p = f === G.End ? n.length - 1 : 0;
|
|
3902
|
+
for (; p < n.length && (f === G.End && y > e || f !== G.End && y < t); )
|
|
3903
|
+
y !== n[p][d] ? l.push({
|
|
3907
3904
|
...m,
|
|
3908
3905
|
[d]: y,
|
|
3909
3906
|
[b.xAxisField]: y
|
|
3910
|
-
}) :
|
|
3907
|
+
}) : p = f === G.End ? p - 1 : p + 1, y = ve({
|
|
3911
3908
|
date: y,
|
|
3912
3909
|
unit: c === j.Month || c === j.Year ? j.Day : c,
|
|
3913
3910
|
size: 1,
|
|
@@ -3935,8 +3932,8 @@ function Wr(i) {
|
|
|
3935
3932
|
}
|
|
3936
3933
|
function Qr(i) {
|
|
3937
3934
|
const { groupByFieldsForStatistics: e, dateField: t, queryStartDate: a, queryEndDate: n, y: r, binIndex: s, lastBin: o } = i;
|
|
3938
|
-
let c = e === "" ?
|
|
3939
|
-
return c = de(
|
|
3935
|
+
let c = e === "" ? Me.groupByCaseBegin : e;
|
|
3936
|
+
return c = de(da, {
|
|
3940
3937
|
groupByFieldsForStatistics: c,
|
|
3941
3938
|
dateField: t,
|
|
3942
3939
|
startDate: `${a}`,
|
|
@@ -3958,9 +3955,9 @@ function* Hr(i) {
|
|
|
3958
3955
|
statisticParameters: { value: 0.5 }
|
|
3959
3956
|
}
|
|
3960
3957
|
];
|
|
3961
|
-
let f =
|
|
3958
|
+
let f = Me.groupByCaseBegin;
|
|
3962
3959
|
for (let g = 0; g < n.length; g += 1) {
|
|
3963
|
-
const y = n[g], [
|
|
3960
|
+
const y = n[g], [p, x] = y[b.dateBinningRange], F = Ve(p), C = Ve(x);
|
|
3964
3961
|
f = Qr({
|
|
3965
3962
|
groupByFieldsForStatistics: f,
|
|
3966
3963
|
queryStartDate: F,
|
|
@@ -3971,7 +3968,7 @@ function* Hr(i) {
|
|
|
3971
3968
|
lastBin: g === n.length - 1
|
|
3972
3969
|
});
|
|
3973
3970
|
}
|
|
3974
|
-
f = `${f} ${
|
|
3971
|
+
f = `${f} ${Me.groupByCaseEnd}`;
|
|
3975
3972
|
const m = {
|
|
3976
3973
|
...a,
|
|
3977
3974
|
groupByFieldsForStatistics: [f],
|
|
@@ -4011,9 +4008,9 @@ async function zr(i) {
|
|
|
4011
4008
|
return r;
|
|
4012
4009
|
}
|
|
4013
4010
|
async function Gr(i) {
|
|
4014
|
-
const { chartConfig: e, queryResults: t, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = i, l =
|
|
4011
|
+
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;
|
|
4015
4012
|
return t.forEach((x, F) => {
|
|
4016
|
-
if (!(y && (F === 0 &&
|
|
4013
|
+
if (!(y && (F === 0 && p === G.End || F === t.length - 1 && p === G.Start))) {
|
|
4017
4014
|
const { attributes: B, stackedAttributes: N } = x;
|
|
4018
4015
|
let v = B[l.lowerBoundaryAlias], T = B[l.upperBoundaryAlias];
|
|
4019
4016
|
const w = v, L = T, D = (M, q) => {
|
|
@@ -4123,8 +4120,8 @@ function Yr(i) {
|
|
|
4123
4120
|
({ unit: a } = u);
|
|
4124
4121
|
const m = c / d, g = f.findIndex(
|
|
4125
4122
|
(x) => x >= m
|
|
4126
|
-
), y = f[g],
|
|
4127
|
-
n = y - m < m -
|
|
4123
|
+
), y = f[g], p = g === 0 ? f[0] : f[g - 1];
|
|
4124
|
+
n = y - m < m - p ? y : p;
|
|
4128
4125
|
}
|
|
4129
4126
|
return { size: n, unit: a };
|
|
4130
4127
|
}
|
|
@@ -4158,7 +4155,7 @@ function Li(i) {
|
|
|
4158
4155
|
e.aggregateGeometries && "Extent" in e.aggregateGeometries ? n = e.aggregateGeometries.Extent : { extent: n } = e.aggregateGeometries ?? e.geometry ?? {};
|
|
4159
4156
|
const r = n?.toJSON();
|
|
4160
4157
|
let s = xe;
|
|
4161
|
-
return r !== void 0 && t !== void 0 && a !== void 0 && a ===
|
|
4158
|
+
return r !== void 0 && t !== void 0 && a !== void 0 && a === h.BarAndLineSplitBy && (s = e.attributes[t] !== void 0 ? `${xe}_${e.attributes[t]}` : xe), { featureExtent: r, featureExtentKey: s };
|
|
4162
4159
|
}
|
|
4163
4160
|
function Xr(i) {
|
|
4164
4161
|
const { input: e, x: t, splitByField: a } = i;
|
|
@@ -4251,33 +4248,33 @@ function rs(i, e) {
|
|
|
4251
4248
|
function ss(i, e) {
|
|
4252
4249
|
let t = 1;
|
|
4253
4250
|
switch (i) {
|
|
4254
|
-
case
|
|
4255
|
-
case
|
|
4251
|
+
case h.BarAndLineFromFields:
|
|
4252
|
+
case h.PieFromFields:
|
|
4256
4253
|
t = e.series[0].query?.outStatistics?.length ?? 1;
|
|
4257
4254
|
break;
|
|
4258
|
-
case
|
|
4259
|
-
case
|
|
4255
|
+
case h.BoxPlotMultiFields:
|
|
4256
|
+
case h.BoxPlotMultiFieldsAndSplitBy:
|
|
4260
4257
|
t = e.series[0].y.length;
|
|
4261
4258
|
break;
|
|
4262
|
-
case
|
|
4263
|
-
case
|
|
4264
|
-
case
|
|
4265
|
-
case
|
|
4266
|
-
case
|
|
4267
|
-
case
|
|
4268
|
-
case
|
|
4269
|
-
case
|
|
4270
|
-
case
|
|
4271
|
-
case
|
|
4272
|
-
case
|
|
4273
|
-
case
|
|
4274
|
-
case
|
|
4259
|
+
case h.BarAndLineNoAggregation:
|
|
4260
|
+
case h.BoxPlotMonoField:
|
|
4261
|
+
case h.BoxPlotMonoFieldAndCategory:
|
|
4262
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
4263
|
+
case h.BoxPlotMonoFieldAndSplitBy:
|
|
4264
|
+
case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
4265
|
+
case h.PieFromCategory:
|
|
4266
|
+
case h.BarAndLineSplitByNoAggregation:
|
|
4267
|
+
case h.PieNoAggregation:
|
|
4268
|
+
case h.BarAndLineSplitBy:
|
|
4269
|
+
case h.BarAndLineMonoField:
|
|
4270
|
+
case h.BarAndLineMultiFields:
|
|
4271
|
+
case h.NonSpecific:
|
|
4275
4272
|
}
|
|
4276
4273
|
return t;
|
|
4277
4274
|
}
|
|
4278
4275
|
function os(i) {
|
|
4279
4276
|
const { attributes: e, showMean: t, chartSubType: a } = i;
|
|
4280
|
-
t && (a ===
|
|
4277
|
+
t && (a === h.BoxPlotMonoFieldAndSplitBy || a === h.BoxPlotMultiFieldsAndSplitBy || a === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
|
|
4281
4278
|
}
|
|
4282
4279
|
function ls(i) {
|
|
4283
4280
|
const { queryResponse: e, chartConfig: t, maxCategoryCount: a } = i, n = E(t.series);
|
|
@@ -4287,7 +4284,7 @@ function cs(i) {
|
|
|
4287
4284
|
const { attributes: e, uniqueCategoryList: t, maxCategoryCount: a, x: n, chartSubType: r } = i;
|
|
4288
4285
|
let s = !1;
|
|
4289
4286
|
if (n && a && Number.isFinite(a) && !Ni.includes(r))
|
|
4290
|
-
if ((r ===
|
|
4287
|
+
if ((r === h.BarAndLineFromFields || r === h.PieFromFields) && Object.keys(e).length > a)
|
|
4291
4288
|
Object.keys(e).filter((o) => o !== P.EnvelopeAggregate).forEach((o, c) => {
|
|
4292
4289
|
c >= a && delete e[o];
|
|
4293
4290
|
});
|
|
@@ -4311,33 +4308,33 @@ function Mi(i) {
|
|
|
4311
4308
|
showMean: u,
|
|
4312
4309
|
chartLimits: d,
|
|
4313
4310
|
fieldList: f
|
|
4314
|
-
} = i, { series: m } = t, g = E(m), y = W(m), { x:
|
|
4311
|
+
} = 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 = [];
|
|
4315
4312
|
let w = 0;
|
|
4316
4313
|
const L = /* @__PURE__ */ new Set(), { maxCategoryCount: D } = Re(d), R = ls({ queryResponse: e, chartConfig: t, maxCategoryCount: D });
|
|
4317
4314
|
for (let M = 0; R[M] && M < R.length && !(l !== void 0 && w >= l); M += 1) {
|
|
4318
4315
|
w += ss(g, t);
|
|
4319
4316
|
const q = R[M];
|
|
4320
4317
|
let A = { ...q.attributes };
|
|
4321
|
-
if (cs({ attributes: A, uniqueCategoryList: L, maxCategoryCount: D, x:
|
|
4318
|
+
if (cs({ attributes: A, uniqueCategoryList: L, maxCategoryCount: D, x: p, chartSubType: g }))
|
|
4322
4319
|
continue;
|
|
4323
|
-
is(A, m), g ===
|
|
4320
|
+
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(
|
|
4324
4321
|
A,
|
|
4325
4322
|
typeof x == "string" ? x : x[0]
|
|
4326
4323
|
), os({ attributes: A, showMean: u, chartSubType: g });
|
|
4327
|
-
let O = A[
|
|
4328
|
-
O === null && m[0]?.query?.fetchNullValues === !0 && g !==
|
|
4324
|
+
let O = A[p];
|
|
4325
|
+
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));
|
|
4329
4326
|
const { outStatisticFieldName: H } = Y.outStatistics ?? {}, { featureExtent: X, featureExtentKey: I } = Li({ feature: q, splitByField: n, chartSubType: g });
|
|
4330
|
-
if (X && (A[I] = X), g ===
|
|
4327
|
+
if (X && (A[I] = X), g === h.BarAndLineSplitBy && H !== void 0) {
|
|
4331
4328
|
const ue = A[n], te = a?.get(ue);
|
|
4332
4329
|
te !== void 0 && (ue === n && (A[b.technicalFieldSplitByField] = A[te]), A[te] = A[H]), delete A[H];
|
|
4333
|
-
} else (g ===
|
|
4334
|
-
const Z =
|
|
4330
|
+
} 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]);
|
|
4331
|
+
const Z = ha({
|
|
4335
4332
|
subtypeInfo: c,
|
|
4336
4333
|
fieldList: f,
|
|
4337
|
-
fieldName:
|
|
4334
|
+
fieldName: p,
|
|
4338
4335
|
fieldValueToMatch: O
|
|
4339
4336
|
});
|
|
4340
|
-
Z !== void 0 && Z !== O && g !==
|
|
4337
|
+
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);
|
|
4341
4338
|
}
|
|
4342
4339
|
return T;
|
|
4343
4340
|
}
|
|
@@ -4355,12 +4352,12 @@ async function ut(i) {
|
|
|
4355
4352
|
usePopupTemplateFieldsInfo: u
|
|
4356
4353
|
} = i, { series: d } = a, f = E(d);
|
|
4357
4354
|
let m = [];
|
|
4358
|
-
const g = f ===
|
|
4355
|
+
const g = f === h.BarAndLineSplitBy || f === h.BarAndLineSplitByNoAggregation ? K(d[0].query?.where) : "", y = await ye({
|
|
4359
4356
|
queryObject: e,
|
|
4360
4357
|
queryConfig: t,
|
|
4361
4358
|
featureCount: s,
|
|
4362
4359
|
abortKey: r
|
|
4363
|
-
}),
|
|
4360
|
+
}), p = await Te(e, u), F = z(e).objectIdField, C = pa(p), { x: B } = d[0], N = C.includes(B), v = ni(e);
|
|
4364
4361
|
return m = Mi({
|
|
4365
4362
|
queryResponse: y,
|
|
4366
4363
|
chartConfig: a,
|
|
@@ -4370,11 +4367,11 @@ async function ut(i) {
|
|
|
4370
4367
|
isDateField: N,
|
|
4371
4368
|
isTimeBinningSeries: o,
|
|
4372
4369
|
subtypeInfo: v,
|
|
4373
|
-
fieldList:
|
|
4370
|
+
fieldList: p,
|
|
4374
4371
|
resultLimit: t.num,
|
|
4375
4372
|
showMean: c,
|
|
4376
4373
|
chartLimits: l
|
|
4377
|
-
}), f !==
|
|
4374
|
+
}), f !== h.BarAndLineSplitByNoAggregation && f !== h.BarAndLineFromFields && (g !== "" && (m = Lt({ data: m, x: B, splitByField: g })), m = Zr(
|
|
4378
4375
|
m,
|
|
4379
4376
|
d
|
|
4380
4377
|
)), m;
|
|
@@ -4382,10 +4379,10 @@ async function ut(i) {
|
|
|
4382
4379
|
async function wi(i) {
|
|
4383
4380
|
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;
|
|
4384
4381
|
let d, f;
|
|
4385
|
-
if (c ===
|
|
4382
|
+
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(
|
|
4386
4383
|
(m) => m.statisticType !== P.EnvelopeAggregate
|
|
4387
|
-
).length ?? 0, d = f) : d = await
|
|
4388
|
-
const m = c ===
|
|
4384
|
+
).length ?? 0, d = f) : d = await ya({ queryObject: t, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
|
|
4385
|
+
const m = c === h.BoxPlotMonoField || c === h.BoxPlotMonoFieldAndCategory || c === h.BoxPlotMonoFieldAndSplitBy;
|
|
4389
4386
|
f = Ft(c) && !m ? d * u : d;
|
|
4390
4387
|
}
|
|
4391
4388
|
return r === $e.RenderUpToTheLimit && f !== void 0 && n !== void 0 && n < f && (f = n, d = Math.ceil(f / u)), { categoryOrDateCount: d, elementCount: f };
|
|
@@ -4403,9 +4400,9 @@ function Ke(i) {
|
|
|
4403
4400
|
else if (l !== void 0 && e !== void 0 && e.length > 1) {
|
|
4404
4401
|
const { orderBy: u } = l;
|
|
4405
4402
|
let { sortingField: d } = l;
|
|
4406
|
-
const f = t.orderOptions?.data?.orderType === be.Category, m = l.preferLabel !== !1, g = s ===
|
|
4403
|
+
const f = t.orderOptions?.data?.orderType === be.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));
|
|
4407
4404
|
if (f && (!m || o === S.LineSeries && c === S.NumberAxisFormat) && (x ? d = b.typeOrDomainIdValue : y && (d = b.originalCategoryValue)), Array.isArray(u))
|
|
4408
|
-
|
|
4405
|
+
Ga({
|
|
4409
4406
|
arrayToSort: e,
|
|
4410
4407
|
orderBy: u,
|
|
4411
4408
|
sortingField: d,
|
|
@@ -4420,7 +4417,7 @@ function Ke(i) {
|
|
|
4420
4417
|
orderBy: u,
|
|
4421
4418
|
sortingField: d,
|
|
4422
4419
|
forceAscendingOrder: F,
|
|
4423
|
-
isNonAggregated:
|
|
4420
|
+
isNonAggregated: p,
|
|
4424
4421
|
sortByCategory: f,
|
|
4425
4422
|
preferLabel: m,
|
|
4426
4423
|
isPieOrByFieldsChart: y
|
|
@@ -4432,9 +4429,9 @@ function Ke(i) {
|
|
|
4432
4429
|
async function Bt(i) {
|
|
4433
4430
|
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 };
|
|
4434
4431
|
let g, y = !1;
|
|
4435
|
-
const
|
|
4432
|
+
const p = e.series, x = p[0], F = E(e.series);
|
|
4436
4433
|
if (x !== void 0 && r !== void 0) {
|
|
4437
|
-
const C = W(
|
|
4434
|
+
const C = W(p), { uniqueQuery: B, mapToStatField: N } = await ct({
|
|
4438
4435
|
chartConfig: e,
|
|
4439
4436
|
queryObject: r,
|
|
4440
4437
|
queryConfig: t,
|
|
@@ -4451,7 +4448,7 @@ async function Bt(i) {
|
|
|
4451
4448
|
const w = !Number.isFinite(T);
|
|
4452
4449
|
let L = w || Se({
|
|
4453
4450
|
count: T ?? 0,
|
|
4454
|
-
seriesCount:
|
|
4451
|
+
seriesCount: p.length,
|
|
4455
4452
|
chartType: C,
|
|
4456
4453
|
chartLimits: l
|
|
4457
4454
|
});
|
|
@@ -4475,22 +4472,22 @@ async function Bt(i) {
|
|
|
4475
4472
|
elementCount: T,
|
|
4476
4473
|
chartLimits: l,
|
|
4477
4474
|
abortKey: s
|
|
4478
|
-
}), l?.maxBoxPlotOutlierLimit !== void 0 && (L = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !L)), w && (v = g.length, T = Ft(F) ? v *
|
|
4475
|
+
}), 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({
|
|
4479
4476
|
count: T,
|
|
4480
|
-
seriesCount:
|
|
4477
|
+
seriesCount: p.length,
|
|
4481
4478
|
chartType: C,
|
|
4482
4479
|
chartLimits: l
|
|
4483
4480
|
})), L)) {
|
|
4484
4481
|
if (C === S.PieSeries) {
|
|
4485
|
-
F ===
|
|
4482
|
+
F === h.PieFromFields && (g = st({
|
|
4486
4483
|
dataToConvert: g[0],
|
|
4487
4484
|
x: ne,
|
|
4488
4485
|
y: he,
|
|
4489
4486
|
fieldList: o
|
|
4490
4487
|
}));
|
|
4491
4488
|
let D = "";
|
|
4492
|
-
F ===
|
|
4493
|
-
} else if ((C === S.RadarSeries || C === S.BarSeries || C === S.LineSeries || C === S.ComboLineAndBarSeries) && (F ===
|
|
4489
|
+
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);
|
|
4490
|
+
} 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({
|
|
4494
4491
|
dataToConvert: g[0],
|
|
4495
4492
|
x: x.x,
|
|
4496
4493
|
y: x.y,
|
|
@@ -4503,9 +4500,9 @@ async function Bt(i) {
|
|
|
4503
4500
|
categoryOrDateCount: v,
|
|
4504
4501
|
behaviorAfterLimit: f,
|
|
4505
4502
|
abortKey: s
|
|
4506
|
-
}), T = Ft(F) ? g.length *
|
|
4503
|
+
}), T = Ft(F) ? g.length * p.length : g.length, L = Se({
|
|
4507
4504
|
count: T,
|
|
4508
|
-
seriesCount:
|
|
4505
|
+
seriesCount: p.length,
|
|
4509
4506
|
chartType: C,
|
|
4510
4507
|
chartLimits: l
|
|
4511
4508
|
}), L)) {
|
|
@@ -4540,9 +4537,9 @@ async function Di(i) {
|
|
|
4540
4537
|
let l;
|
|
4541
4538
|
const u = e.series[0], { nullPolicy: d } = "nullPolicy" in e ? e : {};
|
|
4542
4539
|
if (u.type === S.HeatSeries) {
|
|
4543
|
-
const { x: f, y: m, query: g, yTemporalBinning: y } = u,
|
|
4540
|
+
const { x: f, y: m, query: g, yTemporalBinning: y } = u, p = g?.outStatistics?.[0]?.outStatisticFieldName ?? "";
|
|
4544
4541
|
if (mi(e)) {
|
|
4545
|
-
const x = await
|
|
4542
|
+
const x = await ma({
|
|
4546
4543
|
chartConfig: e,
|
|
4547
4544
|
queryObject: a,
|
|
4548
4545
|
queryConfig: t,
|
|
@@ -4558,7 +4555,7 @@ async function Di(i) {
|
|
|
4558
4555
|
}))
|
|
4559
4556
|
ot({ dataInfo: c, chartType: S.HeatSeries });
|
|
4560
4557
|
else if (typeof x?.[0] == "object") {
|
|
4561
|
-
const F = await
|
|
4558
|
+
const F = await Te(a, s?.usePopupTemplateFieldsInfo), C = ni(a);
|
|
4562
4559
|
l = Mi({
|
|
4563
4560
|
queryResponse: x,
|
|
4564
4561
|
chartConfig: e,
|
|
@@ -4591,7 +4588,7 @@ async function Di(i) {
|
|
|
4591
4588
|
}
|
|
4592
4589
|
}
|
|
4593
4590
|
} else {
|
|
4594
|
-
const x = await
|
|
4591
|
+
const x = await ga({
|
|
4595
4592
|
chartConfig: e,
|
|
4596
4593
|
queryObject: a,
|
|
4597
4594
|
queryConfig: t,
|
|
@@ -4605,7 +4602,7 @@ async function Di(i) {
|
|
|
4605
4602
|
w.push(D), N.push({
|
|
4606
4603
|
[k.xField]: `${v.lowerBoundary}`,
|
|
4607
4604
|
[k.yField]: D,
|
|
4608
|
-
[k.valueField]: L[
|
|
4605
|
+
[k.valueField]: L[p]
|
|
4609
4606
|
});
|
|
4610
4607
|
}), n && F && w.length !== F?.length && F.filter((D) => !w.includes(D.toString())).forEach((D) => {
|
|
4611
4608
|
N.push({
|
|
@@ -4655,9 +4652,9 @@ async function wt(i) {
|
|
|
4655
4652
|
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 };
|
|
4656
4653
|
let y;
|
|
4657
4654
|
if (oe(d)) {
|
|
4658
|
-
const { temporalBinning:
|
|
4659
|
-
if (a &&
|
|
4660
|
-
const { unit: x, size: F } =
|
|
4655
|
+
const { temporalBinning: p } = d;
|
|
4656
|
+
if (a && p) {
|
|
4657
|
+
const { unit: x, size: F } = p;
|
|
4661
4658
|
let C = 1, B = { unit: x, size: F }, N = !1;
|
|
4662
4659
|
const v = Kr({
|
|
4663
4660
|
series: d,
|
|
@@ -4665,11 +4662,11 @@ async function wt(i) {
|
|
|
4665
4662
|
setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided
|
|
4666
4663
|
});
|
|
4667
4664
|
let T = r?.timeBinningStats;
|
|
4668
|
-
!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
|
|
4665
|
+
!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 && [
|
|
4669
4666
|
j.Hour,
|
|
4670
4667
|
j.Minute,
|
|
4671
4668
|
j.Second
|
|
4672
|
-
].includes(B.unit) && (B.unit = j.Day, B.size = 1),
|
|
4669
|
+
].includes(B.unit) && (B.unit = j.Day, B.size = 1), p.size = B.size, p.unit = B.unit);
|
|
4673
4670
|
const { uniqueQuery: w, mapToStatField: L } = await ct({
|
|
4674
4671
|
chartConfig: e,
|
|
4675
4672
|
queryConfig: t,
|
|
@@ -4690,7 +4687,7 @@ async function wt(i) {
|
|
|
4690
4687
|
dateField: f,
|
|
4691
4688
|
splitByField: m,
|
|
4692
4689
|
queryConfig: w,
|
|
4693
|
-
temporalBinning:
|
|
4690
|
+
temporalBinning: p
|
|
4694
4691
|
}), M = "y" in d && typeof d.y == "string" ? d.y : void 0;
|
|
4695
4692
|
if (y = await Gr({
|
|
4696
4693
|
chartConfig: e,
|
|
@@ -4699,7 +4696,7 @@ async function wt(i) {
|
|
|
4699
4696
|
splitByField: m,
|
|
4700
4697
|
x: f,
|
|
4701
4698
|
y: M,
|
|
4702
|
-
nullPolicy:
|
|
4699
|
+
nullPolicy: p.nullPolicy,
|
|
4703
4700
|
queryObject: a
|
|
4704
4701
|
}), !Se({
|
|
4705
4702
|
count: y.length,
|
|
@@ -4733,7 +4730,7 @@ async function wt(i) {
|
|
|
4733
4730
|
isTimeBinningSeries: !0,
|
|
4734
4731
|
usePopupTemplateFieldsInfo: c,
|
|
4735
4732
|
abortKey: n
|
|
4736
|
-
}), g.binnedServerData = { data:
|
|
4733
|
+
}), g.binnedServerData = { data: Ce(y), timeBinningStats: T }, y = await Ur({
|
|
4737
4734
|
queryObject: a,
|
|
4738
4735
|
queryConfig: t,
|
|
4739
4736
|
queryResults: y,
|
|
@@ -4743,7 +4740,7 @@ async function wt(i) {
|
|
|
4743
4740
|
timeIntervalInfo: B
|
|
4744
4741
|
});
|
|
4745
4742
|
}
|
|
4746
|
-
|
|
4743
|
+
fa(a) && y && y?.length === Or && (N = !0), l === $e.RenderUpToTheLimit && y && (y = ds({ chartConfig: e, options: s, data: y }));
|
|
4747
4744
|
}
|
|
4748
4745
|
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;
|
|
4749
4746
|
}
|
|
@@ -4753,7 +4750,7 @@ async function wt(i) {
|
|
|
4753
4750
|
async function fs(i) {
|
|
4754
4751
|
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 };
|
|
4755
4752
|
if (a !== void 0) {
|
|
4756
|
-
const d = e.series, f =
|
|
4753
|
+
const d = e.series, f = Ne({
|
|
4757
4754
|
seriesConfig: d[0],
|
|
4758
4755
|
xAxisValueFormatType: pe(e),
|
|
4759
4756
|
setTimeBinningInfoWhenNotProvided: o
|
|
@@ -4799,7 +4796,7 @@ function tl(i, e) {
|
|
|
4799
4796
|
const t = i.filter(
|
|
4800
4797
|
(a) => !Oi(a)
|
|
4801
4798
|
);
|
|
4802
|
-
return !
|
|
4799
|
+
return !Le(t, e);
|
|
4803
4800
|
}
|
|
4804
4801
|
function gs(i, e) {
|
|
4805
4802
|
let t = i.reduce((a, n) => {
|
|
@@ -4864,7 +4861,7 @@ function nl(i) {
|
|
|
4864
4861
|
function Fs(i) {
|
|
4865
4862
|
return i ? i.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
|
|
4866
4863
|
}
|
|
4867
|
-
const
|
|
4864
|
+
const Ee = {
|
|
4868
4865
|
ChartRenderer: 1,
|
|
4869
4866
|
LayerRenderer: 2
|
|
4870
4867
|
};
|
|
@@ -4874,24 +4871,24 @@ function rl(i) {
|
|
|
4874
4871
|
if (e.chartRenderer)
|
|
4875
4872
|
a = !0;
|
|
4876
4873
|
else {
|
|
4877
|
-
const { series: n } = e, r = W(n), s = E(n), o =
|
|
4874
|
+
const { series: n } = e, r = W(n), s = E(n), o = we(e), c = Ne({
|
|
4878
4875
|
seriesConfig: o
|
|
4879
4876
|
}), u = z(t)?.renderer;
|
|
4880
4877
|
switch (u?.type) {
|
|
4881
4878
|
case ie.Simple:
|
|
4882
|
-
a = r === S.HistogramSeries || r === S.ScatterSeries || s ===
|
|
4879
|
+
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;
|
|
4883
4880
|
break;
|
|
4884
4881
|
case ie.UniqueValue:
|
|
4885
4882
|
{
|
|
4886
4883
|
const f = u?.field, m = K(o.query?.where), { x: g } = o;
|
|
4887
|
-
a = (s ===
|
|
4884
|
+
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;
|
|
4888
4885
|
}
|
|
4889
4886
|
break;
|
|
4890
4887
|
case ie.PieChart:
|
|
4891
|
-
a = s ===
|
|
4888
|
+
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;
|
|
4892
4889
|
break;
|
|
4893
4890
|
case ie.ClassBreaks:
|
|
4894
|
-
a = r === S.ScatterSeries || s ===
|
|
4891
|
+
a = r === S.ScatterSeries || s === h.BarAndLineNoAggregation || s === h.PieNoAggregation;
|
|
4895
4892
|
break;
|
|
4896
4893
|
case ie.Dictionary:
|
|
4897
4894
|
case ie.DotDensity:
|
|
@@ -4926,7 +4923,7 @@ function qi(i) {
|
|
|
4926
4923
|
delete t[e];
|
|
4927
4924
|
else {
|
|
4928
4925
|
const s = { ...a };
|
|
4929
|
-
s.color !== void 0 && n ===
|
|
4926
|
+
s.color !== void 0 && n === Ee.LayerRenderer && (s.color[3] = ri * 255), n === Ee.LayerRenderer && (delete s.style, delete s.outline, delete s.label), t[e] = s, r = !0;
|
|
4930
4927
|
}
|
|
4931
4928
|
return r;
|
|
4932
4929
|
}
|
|
@@ -4940,32 +4937,32 @@ function Bs(i) {
|
|
|
4940
4937
|
const { color: m, label: g } = d;
|
|
4941
4938
|
let y;
|
|
4942
4939
|
Array.isArray(m) && m?.length === 4 ? y = m : m && "toRgba" in m && (y = m.toRgba());
|
|
4943
|
-
let
|
|
4940
|
+
let p = !1, x = !0;
|
|
4944
4941
|
switch (c) {
|
|
4945
4942
|
case S.BarSeries:
|
|
4946
4943
|
case S.LineSeries:
|
|
4947
4944
|
case S.ComboLineAndBarSeries:
|
|
4948
4945
|
case S.RadarSeries:
|
|
4949
|
-
if (a !==
|
|
4946
|
+
if (a !== h.BarAndLineFromFields) {
|
|
4950
4947
|
const F = t.find((C) => C.query?.outStatistics?.[0]?.onStatisticField === f);
|
|
4951
4948
|
F !== void 0 && "y" in F ? f = [F.y].flat()[0] : f = "";
|
|
4952
4949
|
}
|
|
4953
|
-
|
|
4950
|
+
p = a !== h.BarAndLineFromFields || f === n[b.originalCategoryValue];
|
|
4954
4951
|
break;
|
|
4955
4952
|
case S.PieSeries:
|
|
4956
|
-
|
|
4953
|
+
p = a === h.PieFromFields && f === n[b.originalCategoryValue];
|
|
4957
4954
|
break;
|
|
4958
4955
|
case S.BoxPlotSeries:
|
|
4959
|
-
a ===
|
|
4956
|
+
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;
|
|
4960
4957
|
break;
|
|
4961
4958
|
}
|
|
4962
|
-
|
|
4959
|
+
p && y && (s = {
|
|
4963
4960
|
type: rt.SMS,
|
|
4964
4961
|
color: y,
|
|
4965
4962
|
label: x && g ? g : void 0
|
|
4966
4963
|
}, l != null && (s.outline = l), qi({
|
|
4967
4964
|
dataItem: n,
|
|
4968
|
-
symbolField: a ===
|
|
4965
|
+
symbolField: a === h.BarAndLineFromFields || a === h.PieFromFields ? b.rendererSymbolField : `${b.rendererSymbolField}_${f}`,
|
|
4969
4966
|
rendererSymbol: s,
|
|
4970
4967
|
rendererOrigin: r
|
|
4971
4968
|
}) && (o = !0));
|
|
@@ -4980,18 +4977,18 @@ function vs(i) {
|
|
|
4980
4977
|
const s = ge({
|
|
4981
4978
|
where: e.query?.where
|
|
4982
4979
|
});
|
|
4983
|
-
s === null ? r = b.nullValue : t ===
|
|
4980
|
+
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}`;
|
|
4984
4981
|
}
|
|
4985
4982
|
} else if (a === ie.PieChart)
|
|
4986
4983
|
switch (t) {
|
|
4987
|
-
case
|
|
4984
|
+
case h.BoxPlotMultiFields:
|
|
4988
4985
|
r = Array.isArray(e.y) ? e.y.flat() : e.y;
|
|
4989
4986
|
break;
|
|
4990
|
-
case
|
|
4991
|
-
case
|
|
4992
|
-
case
|
|
4993
|
-
case
|
|
4994
|
-
case
|
|
4987
|
+
case h.BarAndLineMonoField:
|
|
4988
|
+
case h.BarAndLineMultiFields:
|
|
4989
|
+
case h.BoxPlotMonoField:
|
|
4990
|
+
case h.BoxPlotMonoFieldAndCategory:
|
|
4991
|
+
case h.BoxPlotMultiFieldsAndCategory:
|
|
4995
4992
|
r = e.y;
|
|
4996
4993
|
break;
|
|
4997
4994
|
}
|
|
@@ -5011,9 +5008,9 @@ function Ns(i) {
|
|
|
5011
5008
|
// 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
|
|
5012
5009
|
// eslint-disable-next-line @typescript-eslint/no-misused-spread
|
|
5013
5010
|
...z(t),
|
|
5014
|
-
renderer:
|
|
5011
|
+
renderer: xa.fromJSON(e)
|
|
5015
5012
|
} : z(t);
|
|
5016
|
-
return new
|
|
5013
|
+
return new Ca({
|
|
5017
5014
|
layer: a
|
|
5018
5015
|
});
|
|
5019
5016
|
}
|
|
@@ -5044,7 +5041,7 @@ async function Ts(i) {
|
|
|
5044
5041
|
const { x: m } = e[0], g = /* @__PURE__ */ new Map();
|
|
5045
5042
|
o && o.trim() !== "" ? e.forEach((y) => {
|
|
5046
5043
|
if (y.type === S.BarSeries || y.type === S.LineSeries || y.type === S.BoxPlotSeries || y.type === S.RadarSeries) {
|
|
5047
|
-
const
|
|
5044
|
+
const p = Ei({
|
|
5048
5045
|
seriesConfig: y,
|
|
5049
5046
|
chartSubType: s,
|
|
5050
5047
|
rendererType: n,
|
|
@@ -5055,18 +5052,18 @@ async function Ts(i) {
|
|
|
5055
5052
|
keepSurroundingQuotes: !1,
|
|
5056
5053
|
escape: !1
|
|
5057
5054
|
});
|
|
5058
|
-
g.set(
|
|
5055
|
+
g.set(p, {
|
|
5059
5056
|
...t,
|
|
5060
5057
|
[o]: x
|
|
5061
5058
|
});
|
|
5062
5059
|
}
|
|
5063
5060
|
}) : g.set(b.rendererSymbolField, {
|
|
5064
5061
|
...t,
|
|
5065
|
-
[m]:
|
|
5062
|
+
[m]: za(t)
|
|
5066
5063
|
});
|
|
5067
5064
|
try {
|
|
5068
|
-
const y = Array.from(g.entries()),
|
|
5069
|
-
|
|
5065
|
+
const y = Array.from(g.entries()), p = c.clone();
|
|
5066
|
+
p.layer = c.layer;
|
|
5070
5067
|
const x = a?.uniqueValueInfos;
|
|
5071
5068
|
for (let F = 0; F < y.length; F += 1) {
|
|
5072
5069
|
const [C, B] = y[F];
|
|
@@ -5077,12 +5074,12 @@ async function Ts(i) {
|
|
|
5077
5074
|
attributes: B
|
|
5078
5075
|
}), l && l.length > 0 && Object.keys(B).forEach((v) => {
|
|
5079
5076
|
l.includes(v) || delete B[v];
|
|
5080
|
-
}),
|
|
5077
|
+
}), p.attributes = B, u?.has(JSON.stringify(B)))
|
|
5081
5078
|
d = u.get(JSON.stringify(B));
|
|
5082
5079
|
else {
|
|
5083
|
-
if (d = (await gt.getDisplayedSymbol(
|
|
5084
|
-
d.color === void 0 && (d.color = (await gt.getDisplayedColor(
|
|
5085
|
-
const v = await gt.getLegendLabel(
|
|
5080
|
+
if (d = (await gt.getDisplayedSymbol(p))?.toJSON(), d != null) {
|
|
5081
|
+
d.color === void 0 && (d.color = (await gt.getDisplayedColor(p))?.toJSON());
|
|
5082
|
+
const v = await gt.getLegendLabel(p);
|
|
5086
5083
|
v != null && v !== "" && (d.label = v, d.uniqueValue = x?.find((T) => T.label === v)?.value ?? void 0);
|
|
5087
5084
|
}
|
|
5088
5085
|
u?.set(JSON.stringify(B), d);
|
|
@@ -5121,13 +5118,13 @@ async function sl(i) {
|
|
|
5121
5118
|
const { data: e, queryObject: t, chartConfig: a, allowColorMatch: n } = i;
|
|
5122
5119
|
let r = !1, s = [];
|
|
5123
5120
|
if (n) {
|
|
5124
|
-
const { series: o, chartRenderer: c } = a, l = As(c), u = l ?
|
|
5121
|
+
const { series: o, chartRenderer: c } = a, l = As(c), u = l ? Ee.ChartRenderer : Ee.LayerRenderer, d = t ? z(t) : void 0, f = l ?? d?.renderer;
|
|
5125
5122
|
let m;
|
|
5126
|
-
d && u ===
|
|
5123
|
+
d && u === Ee.LayerRenderer ? s = await Zt(d) : u === Ee.ChartRenderer && (s = Ms(f));
|
|
5127
5124
|
const g = bs(l, d?.renderer), y = Ns({
|
|
5128
5125
|
chartRenderer: c,
|
|
5129
5126
|
queryObject: t
|
|
5130
|
-
}),
|
|
5127
|
+
}), p = E(o), x = we(a), F = K(x.query?.where);
|
|
5131
5128
|
m = /* @__PURE__ */ new Map();
|
|
5132
5129
|
for (let C = 0; C < e.length; C += 1) {
|
|
5133
5130
|
const B = e[C], N = await Ts({
|
|
@@ -5136,7 +5133,7 @@ async function sl(i) {
|
|
|
5136
5133
|
renderer: f,
|
|
5137
5134
|
rendererType: g,
|
|
5138
5135
|
rendererOrigin: u,
|
|
5139
|
-
chartSubType:
|
|
5136
|
+
chartSubType: p,
|
|
5140
5137
|
splitByField: F,
|
|
5141
5138
|
graphicTemplate: y,
|
|
5142
5139
|
mapAttributesToSymbol: m,
|
|
@@ -5183,7 +5180,7 @@ function Ls(i) {
|
|
|
5183
5180
|
function ll(i, e) {
|
|
5184
5181
|
let t = !1;
|
|
5185
5182
|
if (i && e && e.length > 0 && Gt(i)) {
|
|
5186
|
-
const n =
|
|
5183
|
+
const n = Wa(i), r = we(i);
|
|
5187
5184
|
n ? t = Ls(i).some((o) => e.includes(o)) : t = e.includes(r.x);
|
|
5188
5185
|
}
|
|
5189
5186
|
return t;
|
|
@@ -5217,18 +5214,18 @@ function dl(i) {
|
|
|
5217
5214
|
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;
|
|
5218
5215
|
}
|
|
5219
5216
|
function fl(i, e) {
|
|
5220
|
-
return e != null ||
|
|
5217
|
+
return e != null || La(i);
|
|
5221
5218
|
}
|
|
5222
5219
|
async function ws(i) {
|
|
5223
5220
|
const { queryObject: e, chartConfig: t, options: a, splitByField: n } = i;
|
|
5224
5221
|
let r = [];
|
|
5225
|
-
const s = t.series[0], o = await
|
|
5222
|
+
const s = t.series[0], o = await Pa(t, e), c = ii({
|
|
5226
5223
|
queryObject: e,
|
|
5227
5224
|
chartConfig: o,
|
|
5228
5225
|
runtimeDataFilters: a?.runtimeDataFilters,
|
|
5229
5226
|
ignoreViewExtent: a?.ignoreViewExtent
|
|
5230
5227
|
});
|
|
5231
|
-
if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Y.outStatistics.outStatisticFieldName), oe(s) &&
|
|
5228
|
+
if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Y.outStatistics.outStatisticFieldName), oe(s) && Ne({
|
|
5232
5229
|
xAxisValueFormatType: pe(o),
|
|
5233
5230
|
setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided,
|
|
5234
5231
|
seriesConfig: s
|
|
@@ -5321,8 +5318,8 @@ async function ml(i, e, t) {
|
|
|
5321
5318
|
const r = e.series.length === 0;
|
|
5322
5319
|
e.series.length === 0 && n !== void 0 && e.series.push(n);
|
|
5323
5320
|
const s = E(e.series);
|
|
5324
|
-
if (s ===
|
|
5325
|
-
const o = await
|
|
5321
|
+
if (s === h.BoxPlotMonoFieldAndSplitBy || s === h.BoxPlotMultiFieldsAndSplitBy || s === h.BoxPlotMonoFieldAndCategoryAndSplitBy || s === h.BarAndLineSplitBy || s === h.BarAndLineSplitByNoAggregation) {
|
|
5322
|
+
const o = await Sa({
|
|
5326
5323
|
chartConfig: e,
|
|
5327
5324
|
layer: i.layer,
|
|
5328
5325
|
view: i.view
|
|
@@ -5369,7 +5366,7 @@ export {
|
|
|
5369
5366
|
Lt as F,
|
|
5370
5367
|
yo as G,
|
|
5371
5368
|
ys as H,
|
|
5372
|
-
|
|
5369
|
+
Ma as I,
|
|
5373
5370
|
fo as J,
|
|
5374
5371
|
Oo as K,
|
|
5375
5372
|
ko as L,
|
|
@@ -5378,12 +5375,12 @@ export {
|
|
|
5378
5375
|
lo as O,
|
|
5379
5376
|
uo as P,
|
|
5380
5377
|
fe as Q,
|
|
5381
|
-
|
|
5378
|
+
Ee as R,
|
|
5382
5379
|
Lo as S,
|
|
5383
5380
|
jo as T,
|
|
5384
5381
|
hn as U,
|
|
5385
5382
|
al as V,
|
|
5386
|
-
|
|
5383
|
+
Ka as W,
|
|
5387
5384
|
pe as X,
|
|
5388
5385
|
Ko as Y,
|
|
5389
5386
|
qo as Z,
|
|
@@ -5408,7 +5405,7 @@ export {
|
|
|
5408
5405
|
_o as ag,
|
|
5409
5406
|
Fo as ah,
|
|
5410
5407
|
Ft as ai,
|
|
5411
|
-
|
|
5408
|
+
Ra as aj,
|
|
5412
5409
|
ci as ak,
|
|
5413
5410
|
To as al,
|
|
5414
5411
|
tl as am,
|
|
@@ -5430,11 +5427,11 @@ export {
|
|
|
5430
5427
|
vo as e,
|
|
5431
5428
|
He as f,
|
|
5432
5429
|
ze as g,
|
|
5433
|
-
|
|
5430
|
+
za as h,
|
|
5434
5431
|
Oi as i,
|
|
5435
5432
|
ps as j,
|
|
5436
5433
|
ll as k,
|
|
5437
|
-
|
|
5434
|
+
Pe as l,
|
|
5438
5435
|
ol as m,
|
|
5439
5436
|
Ao as n,
|
|
5440
5437
|
J as o,
|
|
@@ -5448,5 +5445,5 @@ export {
|
|
|
5448
5445
|
rl as w,
|
|
5449
5446
|
Ts as x,
|
|
5450
5447
|
wo as y,
|
|
5451
|
-
|
|
5448
|
+
Qa as z
|
|
5452
5449
|
};
|