@arcgis/charts-components 4.34.0-next.154 → 4.34.0-next.156
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/{RN6ULMN5.js → 2AO2ST5E.js} +2 -2
- package/dist/cdn/{AASALZ3L.js → 33M6IHK2.js} +2 -2
- package/dist/cdn/{46NIEEHK.js → 34SLIB7G.js} +2 -2
- package/dist/cdn/{EB5JJGZT.js → 36KD3ABJ.js} +2 -2
- package/dist/cdn/{ZAMJAQRY.js → 3B6YCJVQ.js} +2 -2
- package/dist/cdn/{LVSHBUMN.js → 3M7OPECI.js} +31 -31
- package/dist/cdn/{NJREI7U4.js → 44BHMVIB.js} +2 -2
- package/dist/cdn/{WUEW24UY.js → 4RE2TDAH.js} +2 -2
- package/dist/cdn/{VNCTOYDP.js → 4WIHJDYK.js} +2 -2
- package/dist/cdn/{NBA6DZIU.js → 5ERTV3GS.js} +1 -1
- package/dist/cdn/{7LTEOTCW.js → 5F6WH2RF.js} +2 -2
- package/dist/cdn/{YYWKG2OC.js → 5FSUX4VY.js} +2 -2
- package/dist/cdn/{ODDVQFJL.js → 5HI6WCZA.js} +2 -2
- package/dist/cdn/{KTZWJVVA.js → 5MRZHZOT.js} +2 -2
- package/dist/cdn/{C62MJWWY.js → 5NIE5YYM.js} +2 -2
- package/dist/cdn/{ZC2GKXNK.js → 5O5KT4D5.js} +2 -2
- package/dist/cdn/{AVJJWAM4.js → 5RSP6APY.js} +2 -2
- package/dist/cdn/{PPNXLI2H.js → 5SFVTXYX.js} +2 -2
- package/dist/cdn/{LOJNCA7S.js → 5SG23XMV.js} +2 -2
- package/dist/cdn/{2CLAM4AO.js → 5VEZIPQT.js} +2 -2
- package/dist/cdn/{IGHYNNVE.js → 5VTRSIQK.js} +2 -2
- package/dist/cdn/{S67THLA6.js → 667YRWD3.js} +2 -2
- package/dist/cdn/{WXNA44Q4.js → 66G4YLNA.js} +2 -2
- package/dist/cdn/{S3AWAYN6.js → 66KXKECC.js} +2 -2
- package/dist/cdn/{CDZ7I5HY.js → 6G7IOFKW.js} +2 -2
- package/dist/cdn/{W6WZ56C6.js → 6GNCRJB3.js} +2 -2
- package/dist/cdn/{BQE3BFIS.js → 6S5CWD56.js} +2 -2
- package/dist/cdn/{DVLSZ4VQ.js → 72CTWUMN.js} +2 -2
- package/dist/cdn/{B7OR7FS3.js → AIDQPR2G.js} +2 -2
- package/dist/cdn/{THCMCUAO.js → AK6J52SE.js} +2 -2
- package/dist/cdn/{YOUEBCO5.js → ANMT4IVM.js} +2 -2
- package/dist/cdn/{PC2PJGNR.js → APNLM6UM.js} +2 -2
- package/dist/cdn/{5G2UC3KX.js → BFPMQCXM.js} +2 -2
- package/dist/cdn/{UAITIHD3.js → BIBXKDBH.js} +2 -2
- package/dist/cdn/{XQYPOGA2.js → BWOV5OU7.js} +2 -2
- package/dist/cdn/{5XXKD5WO.js → C2MUHFYE.js} +2 -2
- package/dist/cdn/{MOQ473RT.js → C4HPJ6DN.js} +2 -2
- package/dist/cdn/{Z5K5SQHO.js → C76NZVDF.js} +2 -2
- package/dist/cdn/{ZYU4SDKR.js → C7XK36EJ.js} +1 -1
- package/dist/cdn/{OMX6PRHS.js → CU2O6R5R.js} +2 -2
- package/dist/cdn/{TFTIA2CZ.js → CXXODPM5.js} +2 -2
- package/dist/cdn/{LLBW6QTC.js → CY3IZGN2.js} +2 -2
- package/dist/cdn/{XNJFH4P2.js → D7JJ67RM.js} +2 -2
- package/dist/cdn/{IB35GFFS.js → DJMR6MGP.js} +2 -2
- package/dist/cdn/{ERWQVNSY.js → DKYLK6CC.js} +2 -2
- package/dist/cdn/{QTGYYN4S.js → DKZWZUQZ.js} +2 -2
- package/dist/cdn/{VUNL7LOO.js → DVBTORLN.js} +9 -9
- package/dist/cdn/{BNHAMND3.js → DZQF5BXY.js} +2 -2
- package/dist/cdn/{NCN5RBZ4.js → EA3G5ZTG.js} +2 -2
- package/dist/cdn/{F4U2P737.js → EK4FTB4M.js} +1 -1
- package/dist/cdn/{37Y3PFT5.js → ELS2NGMA.js} +2 -2
- package/dist/cdn/{WN4BTDIV.js → ELWHIPS3.js} +2 -2
- package/dist/cdn/{53T7DQBU.js → EO7FPYMC.js} +2 -2
- package/dist/cdn/{OZXX3HAQ.js → EQNKX46S.js} +2 -2
- package/dist/cdn/{4NPRK4VA.js → ERVGJMNC.js} +2 -2
- package/dist/cdn/{24637DRI.js → EYX3XH25.js} +2 -2
- package/dist/cdn/{GDRBSJWU.js → FE4S64CT.js} +2 -2
- package/dist/cdn/{B7XU5W3T.js → FFQZ6226.js} +1 -1
- package/dist/cdn/{HCITJ35B.js → FN547VEG.js} +2 -2
- package/dist/cdn/{N46G2X56.js → FPKDBHV3.js} +1 -1
- package/dist/cdn/{PRWQGAPP.js → G25FALDO.js} +2 -2
- package/dist/cdn/{VTKBVEGF.js → H2A57XAI.js} +2 -2
- package/dist/cdn/{HE6LNS4R.js → H5QOPGVU.js} +2 -2
- package/dist/cdn/HG4XKW6M.js +4 -0
- package/dist/cdn/{MF3RVKJT.js → I2OOQFGL.js} +2 -2
- package/dist/cdn/{UA35EQ3D.js → I3DV2RQU.js} +2 -2
- package/dist/cdn/{IQW2HHH4.js → IBD7CXXW.js} +2 -2
- package/dist/cdn/{ZHNFN2FC.js → IGT3IP7L.js} +2 -2
- package/dist/cdn/{XCH6IUOA.js → IPIR5FE6.js} +2 -2
- package/dist/cdn/{RX5VLVXY.js → IYZBTAHT.js} +2 -2
- package/dist/cdn/{VMXD3QXE.js → J2FKMYHA.js} +2 -2
- package/dist/cdn/J4THM2WO.js +4 -0
- package/dist/cdn/{JF6NKXRT.js → JEDWYHWU.js} +2 -2
- package/dist/cdn/{RLOJPHAA.js → JGPSBR6M.js} +2 -2
- package/dist/cdn/{EH3RDK4E.js → JINEORBA.js} +2 -2
- package/dist/cdn/{BNCUT5TF.js → JPEUSBD4.js} +2 -2
- package/dist/cdn/{REMABXBK.js → K2OGBQ7K.js} +2 -2
- package/dist/cdn/{F5MQFPHQ.js → K3RSJHFL.js} +2 -2
- package/dist/cdn/{GULFXQDC.js → KH4V47V2.js} +2 -2
- package/dist/cdn/{BAISYW4B.js → KP4ZEVOE.js} +2 -2
- package/dist/cdn/{BJVZWSBD.js → KZCLSQSG.js} +2 -2
- package/dist/cdn/{QMH7RR5F.js → KZG4DABI.js} +2 -2
- package/dist/cdn/{MR2DZIXB.js → KZPS5W3W.js} +2 -2
- package/dist/cdn/{665JBHE5.js → LEYPKSFB.js} +2 -2
- package/dist/cdn/{YUSWMKZK.js → LGZS4RXF.js} +2 -2
- package/dist/cdn/{FABAAEZM.js → LTIE4RMK.js} +2 -2
- package/dist/cdn/{2NTWDDLR.js → M3W744NU.js} +2 -2
- package/dist/cdn/{ODPVYOQU.js → M4IUBUD2.js} +2 -2
- package/dist/cdn/{GTURT57F.js → MCKCFUN4.js} +2 -2
- package/dist/cdn/{VRP3MVKW.js → MDGFHN52.js} +2 -2
- package/dist/cdn/{MAGI2UQ4.js → MDNTYKQA.js} +2 -2
- package/dist/cdn/{ZTOVJBYA.js → MIQOO4VR.js} +2 -2
- package/dist/cdn/{FLLOQM2U.js → MLSOK3LI.js} +2 -2
- package/dist/cdn/{MTCRBWZ2.js → MMKYJJTC.js} +2 -2
- package/dist/cdn/{U75N5KWR.js → N2A3W7SL.js} +2 -2
- package/dist/cdn/{SNF7SMTR.js → N2DLRNIG.js} +2 -2
- package/dist/cdn/{JEEVGECM.js → NE6QYW2D.js} +2 -2
- package/dist/cdn/{Y2XWKHJG.js → NGKEOIAC.js} +2 -2
- package/dist/cdn/{6GGPGGBP.js → NKAV6KPR.js} +2 -2
- package/dist/cdn/{QCW2QOI3.js → NMN2BGX4.js} +2 -2
- package/dist/cdn/{6VGSYADW.js → NP3XO6DX.js} +2 -2
- package/dist/cdn/{JQKPTBI7.js → NP6LFH5G.js} +2 -2
- package/dist/cdn/{V6WXFNCK.js → NPRFUZCE.js} +2 -2
- package/dist/cdn/{LTZXJJVL.js → NRZLKNGC.js} +2 -2
- package/dist/cdn/{CZSLYH6Y.js → O5KAVSX5.js} +2 -2
- package/dist/cdn/{7URRSPSK.js → OA35LEBR.js} +2 -2
- package/dist/cdn/{AYYB5SK6.js → OA4BPXTZ.js} +2 -2
- package/dist/cdn/{IW2ISZGK.js → OBWRX2R3.js} +2 -2
- package/dist/cdn/{J5MZAXWK.js → OGF5Y643.js} +1 -1
- package/dist/cdn/{4PJJ4FMT.js → OIH4Q7NP.js} +2 -2
- package/dist/cdn/{Q6OHX2VC.js → OL3XOTIU.js} +2 -2
- package/dist/cdn/{K3LIB3UB.js → ONFB2PIF.js} +2 -2
- package/dist/cdn/{BTYW66AK.js → OWRTINB2.js} +2 -2
- package/dist/cdn/{WLQFTVZI.js → OZMC7KCA.js} +2 -2
- package/dist/cdn/{T4UPE22X.js → PBGSD43A.js} +1 -1
- package/dist/cdn/{H6QPYYR2.js → PF5EG5NB.js} +2 -2
- package/dist/cdn/{5Q6HTH6V.js → PJSJ6GVY.js} +2 -2
- package/dist/cdn/{UIQYIUMT.js → PPBSQBXP.js} +2 -2
- package/dist/cdn/{CJVH3KOY.js → PYQRE52A.js} +2 -2
- package/dist/cdn/{DMLACSIY.js → PZZ5HHA6.js} +2 -2
- package/dist/cdn/{GK667FVB.js → Q4LN7JI6.js} +2 -2
- package/dist/cdn/{ZEQYQ32K.js → QIL3ECMJ.js} +2 -2
- package/dist/cdn/{FKF7H3DL.js → QQ4ZKDMP.js} +2 -2
- package/dist/cdn/{PFLPE5XX.js → QQXC7PVM.js} +2 -2
- package/dist/cdn/{ZBRLCGJZ.js → QTYHTLVS.js} +2 -2
- package/dist/cdn/{YQEACRMH.js → RHMQIUMP.js} +2 -2
- package/dist/cdn/{SL52CQOK.js → RJUHH375.js} +2 -2
- package/dist/cdn/{IY6ZN53W.js → RKUIGQWD.js} +2 -2
- package/dist/cdn/{YJO3JVT5.js → RTH5K6PK.js} +2 -2
- package/dist/cdn/{BXJGT3YO.js → RU3Q3SVC.js} +2 -2
- package/dist/cdn/{B2PEANBE.js → RU53GWEG.js} +2 -2
- package/dist/cdn/{NDVTQRZ3.js → RUBJEEM7.js} +2 -2
- package/dist/cdn/{XHCXCE3P.js → SESZHMYD.js} +2 -2
- package/dist/cdn/{SQALKXUC.js → SFLP4UOI.js} +2 -2
- package/dist/cdn/{M43J76GV.js → SKR6Y73M.js} +2 -2
- package/dist/cdn/{FQCOBO6E.js → SM3VVKUS.js} +2 -2
- package/dist/cdn/{AOWNIAAY.js → STRPK6TA.js} +2 -2
- package/dist/cdn/{23OUU6PQ.js → SUER4QPH.js} +2 -2
- package/dist/cdn/{PJVRONO4.js → T4KWTNWN.js} +2 -2
- package/dist/cdn/{YMCJVHZZ.js → TBMQ7EQ2.js} +2 -2
- package/dist/cdn/{J3DRDO56.js → TGQK7UD7.js} +2 -2
- package/dist/cdn/{5LFO7HHH.js → TH7RVGU4.js} +2 -2
- package/dist/cdn/{B63E6GHP.js → TV34C4Q5.js} +2 -2
- package/dist/cdn/{63ZVU2MW.js → U2K7CHXO.js} +2 -2
- package/dist/cdn/{GV627CHY.js → U4KZ66QY.js} +2 -2
- package/dist/cdn/{SQ4UQDXC.js → UDB4Q7Q4.js} +2 -2
- package/dist/cdn/{BB76W3YO.js → UFWASAPZ.js} +2 -2
- package/dist/cdn/{NSJXNX4B.js → UFWV7HDP.js} +2 -2
- package/dist/cdn/{SQRDVU6F.js → UHYKLIV4.js} +2 -2
- package/dist/cdn/{FP5TQ3WY.js → UK44KLOF.js} +2 -2
- package/dist/cdn/{JWCOL57L.js → UKHCFSNO.js} +2 -2
- package/dist/cdn/{FWUNPLXC.js → URSUHB45.js} +2 -2
- package/dist/cdn/{RVCKVJ2F.js → USUIHQRL.js} +2 -2
- package/dist/cdn/{Z6PRWE6X.js → UT74VE25.js} +2 -2
- package/dist/cdn/{MNRNOEGG.js → V6OFIWZA.js} +2 -2
- package/dist/cdn/{54SDTWLF.js → V7FHWYAT.js} +2 -2
- package/dist/cdn/{3HMWRP3Q.js → V7JHTTBE.js} +1 -1
- package/dist/cdn/{4RCOVMLS.js → VCZCZJOZ.js} +2 -2
- package/dist/cdn/{26SK6X4V.js → VD3T4HTS.js} +2 -2
- package/dist/cdn/{UD6C2NBP.js → VFDBKM5C.js} +2 -2
- package/dist/cdn/{P2XVIPK6.js → VHJ47IXK.js} +2 -2
- package/dist/cdn/{YB42XB2E.js → VMP4GSNO.js} +2 -2
- package/dist/cdn/{ND5IFIY5.js → VRM6344W.js} +2 -2
- package/dist/cdn/{IOVJZXNL.js → VXVGDJVL.js} +2 -2
- package/dist/cdn/{V5H6HL3F.js → WASCNDU2.js} +2 -2
- package/dist/cdn/{TE4NERKS.js → WJ77HTGM.js} +2 -2
- package/dist/cdn/{GUSB64L3.js → XEETF7DV.js} +2 -2
- package/dist/cdn/{TFBYOLII.js → XFTPW27U.js} +2 -2
- package/dist/cdn/{VZ3XRP7S.js → XGOZB3C3.js} +2 -2
- package/dist/cdn/{XD7FMRQ2.js → XHN4LC6H.js} +1 -1
- package/dist/cdn/{2EQWFXD2.js → XKPRE36D.js} +2 -2
- package/dist/cdn/{7VZ3AUNE.js → XTO4UYRY.js} +2 -2
- package/dist/cdn/{OO36IIND.js → YEQ3KFCI.js} +2 -2
- package/dist/cdn/{KEB5E3I4.js → YFOVXMRQ.js} +1 -1
- package/dist/cdn/{OV2DS4JP.js → YI4X3RNF.js} +2 -2
- package/dist/cdn/{VL7OAKJ6.js → YJ7X6LRE.js} +2 -2
- package/dist/cdn/{3MIQXV7Y.js → YKKTNBNH.js} +2 -2
- package/dist/cdn/{V65MZO2U.js → YMVIHDKK.js} +2 -2
- package/dist/cdn/{5EQLRJFZ.js → YUQ2CFCV.js} +2 -2
- package/dist/cdn/{PLD2ZTP6.js → ZX5DENOR.js} +2 -2
- package/dist/cdn/{SBS52QRJ.js → ZX7K5TUP.js} +2 -2
- package/dist/cdn/{ENMOOBFO.js → ZXE6AKYS.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chart-rendering/common/config-utils/index.d.ts +11 -16
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +1 -0
- package/dist/chart-rendering/common/series/pie-chart/index.d.ts +1 -1
- package/dist/chart-rendering/stable/utils/memory-storage/interfaces.d.ts +1 -0
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/baseline-stacking.js +1 -1
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/bg_BG2.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/config-update.js +917 -911
- package/dist/chunks/data.js +1 -1
- package/dist/chunks/default.js +1 -1
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +116 -50
- package/dist/chunks/histogram-data.js +1 -1
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/index.js +3 -3
- package/dist/chunks/index2.js +1 -1
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/index5.js +1 -1
- package/dist/chunks/interfaces.js +13 -8
- package/dist/chunks/interfaces2.js +1 -1
- package/dist/chunks/interfaces3.js +1 -1
- package/dist/chunks/interfaces4.js +1 -1
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-with-baseline-stacking.js +1 -1
- package/dist/chunks/model-with-data-labels.js +1 -1
- package/dist/chunks/model-with-multi-axes.js +1 -1
- package/dist/chunks/model-with-rotation.js +1 -1
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +1 -1
- 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 +1 -1
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/series-types.js +1 -1
- package/dist/chunks/series.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-chart/customElement.js +188 -184
- 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 +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- 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 +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/json-schema/index.d.ts +4 -0
- package/dist/loader.js +1 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +50 -1
- package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +18 -1
- package/dist/model.js +1 -1
- package/dist/spec/data-source.d.ts +5 -0
- package/dist/spec/web-chart.d.ts +1 -1
- package/dist/utils/chart-config/converter/index.d.ts +3 -3
- package/package.json +3 -3
- package/dist/cdn/HAKFEWYH.js +0 -4
- package/dist/cdn/R4DIM5IL.js +0 -4
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { W as S,
|
|
1
|
+
import { W as S, d as Ii, u as W, m as ne, b as _, g as me, t as be, e as ke, a as A, i as E, n as U, S as zt, o as $i } from "./series-types.js";
|
|
2
2
|
import "@arcgis/toolkit/intl";
|
|
3
|
-
import { cloneDeep as Ie, isArray as vt, isEmpty as
|
|
4
|
-
import { extent as
|
|
5
|
-
import { b5 as pt, cz as p, p as V, c8 as Ut, c4 as z, a5 as Gt, B as _t, d as ae, a as he, T as Y, cl as lt, b3 as $e, H as re, r as se, q as ve, bc as We, aU as Re, a1 as nt, S as xe, cf as ht, cj as ee, l as ge, cq as
|
|
3
|
+
import { cloneDeep as Ie, isArray as vt, isEmpty as Ri, isEqual as Pe, sortBy as Ot } from "lodash-es";
|
|
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 { b5 as pt, cz as p, p as V, c8 as Ut, c4 as z, a5 as Gt, B as _t, d as ae, a as he, T as Y, cl as lt, b3 as $e, H as re, r as se, q as ve, bc as We, aU as Re, a1 as nt, S as xe, cf as ht, cj as ee, l as ge, cq as Ui, c9 as qt, cb as Yt, N as $, k as K, F as G, a3 as j, cu as Kt, D as k, bU as Gi, I as Nt, bz as ye, bH as H, E as _i, i as Le, z as je, cc as Et, aV as Ge, m as Tt, b9 as Ne, c0 as Qe, a2 as Jt, A as Xt, ce as Se, by as _e, bL as Yi, b_ as Ki, b6 as Vt, R as Ji, bj as Zt, bw as Xi, bk as Zi, bY as ea, bZ as ei, bs as ta, ck as mt, c2 as ia, b7 as aa, bt as na, U as ra, n as Fe, bN as ti, bA as sa, bn as ii, bB as oa, bC as la, Q as ca, P as It, bD as ai, bV as ua, bv as da, bh as ni, bu as fa, bx as ma, bf as ga, bi as ya, X as ri, b8 as pa } 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 ha from "@arcgis/core/request.js";
|
|
13
13
|
import "./runtime.js";
|
|
14
14
|
import "@arcgis/toolkit/dom";
|
|
15
|
-
import { b as
|
|
15
|
+
import { b as Sa, 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 Fa from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
18
18
|
import * as gt from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
19
|
-
import
|
|
19
|
+
import ba from "@arcgis/core/Graphic.js";
|
|
20
20
|
import { u as yt } from "./index2.js";
|
|
21
21
|
import { substitute as ue } from "@arcgis/core/intl.js";
|
|
22
|
-
import { d as
|
|
22
|
+
import { d as xa } from "./index3.js";
|
|
23
23
|
import $t from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
24
|
-
import
|
|
24
|
+
import Ca from "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
25
25
|
import Rt from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
26
|
-
import { linearRegression as
|
|
27
|
-
import { D as de, c as
|
|
28
|
-
import { h as
|
|
26
|
+
import { linearRegression as Ba, linearRegressionLine as va, rSquared as Na } from "simple-statistics";
|
|
27
|
+
import { D as de, c as Ta } from "./index.js";
|
|
28
|
+
import { h as Aa } 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.156 */
|
|
32
|
+
async function Pa(t, e) {
|
|
33
33
|
const i = e.errors[t];
|
|
34
34
|
throw new pt(e.modalHeaders.error, i ?? e.errors.simpleError);
|
|
35
35
|
}
|
|
36
36
|
function pe(t) {
|
|
37
37
|
return t.axes?.[0]?.valueFormat?.type;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function lo(t) {
|
|
40
40
|
return t.intlOptions;
|
|
41
41
|
}
|
|
42
42
|
function J(t) {
|
|
43
43
|
return t?.type === S.NumberAxisFormat;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function co(t) {
|
|
46
46
|
return J(t) && t.intlOptions?.style === "percent";
|
|
47
47
|
}
|
|
48
48
|
function fe(t) {
|
|
@@ -51,73 +51,73 @@ function fe(t) {
|
|
|
51
51
|
function Ae(t) {
|
|
52
52
|
return t?.type === S.DateAxisFormat;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function uo(t) {
|
|
55
55
|
const { oldConfig: e, newConfig: i, rotationChanged: a } = t;
|
|
56
56
|
return a ? [!0, !0] : [
|
|
57
57
|
e.horizontalAxisLabelsBehavior !== i.horizontalAxisLabelsBehavior,
|
|
58
58
|
e.verticalAxisLabelsBehavior !== i.verticalAxisLabelsBehavior
|
|
59
59
|
];
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ma(t) {
|
|
62
62
|
return J(t?.[1]?.valueFormat) && (t?.[2]?.valueFormat === void 0 || J(t[2].valueFormat));
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function La(t) {
|
|
65
65
|
return J(t?.[1]?.valueFormat) && (t?.[2]?.valueFormat === void 0 || J(t[2].valueFormat));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function wa(t) {
|
|
68
68
|
return (fe(t?.[0]?.valueFormat) || Ae(t?.[0]?.valueFormat)) && J(t?.[1]?.valueFormat) && (t?.[2]?.valueFormat === void 0 || J(t[2].valueFormat));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Da(t) {
|
|
71
71
|
return fe(t?.[0]?.valueFormat) && fe(t?.[1]?.valueFormat) || Ae(t?.[0]?.valueFormat) && fe(t?.[1]?.valueFormat) || Ae(t?.[0]?.valueFormat) && Ae(t?.[1]?.valueFormat);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Oa(t) {
|
|
74
74
|
return (fe(t?.[0]?.valueFormat) || Ae(t?.[0]?.valueFormat)) && J(t?.[1]?.valueFormat);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function qa(t) {
|
|
77
77
|
return J(t?.[0]?.valueFormat) && J(t?.[1]?.valueFormat);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ea(t) {
|
|
80
80
|
return J(t?.[0]?.valueFormat) && J(t?.[1]?.valueFormat);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Va(t) {
|
|
83
83
|
return J(t?.[0]?.valueFormat);
|
|
84
84
|
}
|
|
85
|
-
async function
|
|
85
|
+
async function fo(t) {
|
|
86
86
|
const { chartType: e, axesConfig: i, errorStrings: a } = t;
|
|
87
87
|
let n, r;
|
|
88
88
|
switch (e) {
|
|
89
89
|
case S.GaugeSeries:
|
|
90
|
-
n =
|
|
90
|
+
n = Va, r = "invalidValueFormatForGauge";
|
|
91
91
|
break;
|
|
92
92
|
case S.ScatterSeries:
|
|
93
|
-
n =
|
|
93
|
+
n = qa, r = "invalidValueFormatForScatterplot";
|
|
94
94
|
break;
|
|
95
95
|
case S.HistogramSeries:
|
|
96
|
-
n =
|
|
96
|
+
n = Ea, r = "invalidValueFormatForHistogram";
|
|
97
97
|
break;
|
|
98
98
|
case S.LineSeries:
|
|
99
|
-
n =
|
|
99
|
+
n = Ma, r = "invalidValueFormatForLineChart";
|
|
100
100
|
break;
|
|
101
101
|
case S.BarSeries:
|
|
102
|
-
n =
|
|
102
|
+
n = La, r = "invalidValueFormatForBarChart";
|
|
103
103
|
break;
|
|
104
104
|
case S.ComboLineAndBarSeries:
|
|
105
|
-
n =
|
|
105
|
+
n = Oa, r = "invalidValueFormatForComboBarLineChart";
|
|
106
106
|
break;
|
|
107
107
|
case S.BoxPlotSeries:
|
|
108
|
-
n =
|
|
108
|
+
n = wa, r = "invalidValueFormatForBoxPlot";
|
|
109
109
|
break;
|
|
110
110
|
case S.HeatSeries:
|
|
111
|
-
n =
|
|
111
|
+
n = Da, r = "invalidValueFormatForHeatChart";
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
|
-
n !== void 0 && r !== void 0 && (n(i) || await
|
|
114
|
+
n !== void 0 && r !== void 0 && (n(i) || await Pa(r, a));
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Ia(t) {
|
|
117
117
|
const { isXAxis: e, chartType: i, valueFormat: a, isAxisForHistogramOverlaySeries: n } = t;
|
|
118
118
|
return e && (fe(a) || i === S.HistogramSeries && !n || i === S.BarSeries && J(a));
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function mo(t) {
|
|
121
121
|
const { chartConfig: e, isSecondValueAxis: i, seriesIds: a } = t;
|
|
122
122
|
let n = a;
|
|
123
123
|
return e.axes?.length === 3 && (n = e.series.map((r) => {
|
|
@@ -125,53 +125,7 @@ function uo(t) {
|
|
|
125
125
|
return (a === void 0 || a.includes(r.id)) && (i === !0 && "assignToSecondValueAxis" in r && r.assignToSecondValueAxis === !0 || i !== !0 && (!("assignToSecondValueAxis" in r) || r.assignToSecondValueAxis !== !0)) && ({ id: s } = r), s;
|
|
126
126
|
}).filter((r) => r !== "")), n;
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
return t[0].dataTransformationType !== e[0].dataTransformationType;
|
|
130
|
-
}
|
|
131
|
-
function Ia(t, e) {
|
|
132
|
-
return t[0].binCount !== e[0].binCount;
|
|
133
|
-
}
|
|
134
|
-
function fo(t, e) {
|
|
135
|
-
let i = !0;
|
|
136
|
-
const a = W(t?.series), n = W(e?.series);
|
|
137
|
-
return a !== n && (i = a === S.ComboLineAndBarSeries && (n === S.BarSeries || n === S.LineSeries) || n === S.ComboLineAndBarSeries && (a === S.BarSeries || a === S.LineSeries) || a === S.BarSeries && n === S.LineSeries || a === S.LineSeries && n === S.BarSeries), i;
|
|
138
|
-
}
|
|
139
|
-
function St(t, e) {
|
|
140
|
-
return t !== void 0 && e !== void 0 && e > 0;
|
|
141
|
-
}
|
|
142
|
-
function mo(t) {
|
|
143
|
-
const { chartConfig: e, queryObject: i, chartData: a } = t;
|
|
144
|
-
let n = [];
|
|
145
|
-
const r = V(e.series), s = Ut(e), o = z(i), c = e.chartRenderer ?? o?.renderer?.toJSON();
|
|
146
|
-
return n = e.series.map((l, u) => {
|
|
147
|
-
const d = W([l]);
|
|
148
|
-
let f;
|
|
149
|
-
return (d === S.BarSeries || d === S.LineSeries || d === S.RadarSeries) && (l.type === S.BarSeries ? f = l.fillSymbol?.color : (l.type === S.RadarSeries || l.type === S.LineSeries) && (f = l.lineSymbol?.color), s ? f = As({
|
|
150
|
-
dataItem: a[0],
|
|
151
|
-
seriesConfig: l,
|
|
152
|
-
chartSubType: r,
|
|
153
|
-
colorMatch: s,
|
|
154
|
-
rendererType: c?.type
|
|
155
|
-
})?.color : f === void 0 && (f = Gt({ colorIndex: u }))), f;
|
|
156
|
-
}).filter((l) => l !== void 0), n;
|
|
157
|
-
}
|
|
158
|
-
function Ft(t) {
|
|
159
|
-
return t !== p.PieNoAggregation && t !== p.BarAndLineNoAggregation && t !== p.BarAndLineSplitByNoAggregation;
|
|
160
|
-
}
|
|
161
|
-
function $a(t) {
|
|
162
|
-
const e = V(t.series);
|
|
163
|
-
return e === p.BarAndLineFromFields || e === p.PieFromFields || e === p.BoxPlotMonoField || e === p.BoxPlotMultiFields || e === p.BoxPlotMonoFieldAndSplitBy || e === p.BoxPlotMultiFieldsAndSplitBy;
|
|
164
|
-
}
|
|
165
|
-
function He(t) {
|
|
166
|
-
return t && "showMean" in t && typeof t.showMean == "boolean" ? t.showMean : !1;
|
|
167
|
-
}
|
|
168
|
-
function Ra(t) {
|
|
169
|
-
return t && "showOutliers" in t && typeof t.showOutliers == "boolean" ? t.showOutliers : void 0;
|
|
170
|
-
}
|
|
171
|
-
function go() {
|
|
172
|
-
return `{name} {${b.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
|
|
173
|
-
}
|
|
174
|
-
const ka = {
|
|
128
|
+
const si = {
|
|
175
129
|
...b,
|
|
176
130
|
chartPadding: 5,
|
|
177
131
|
footerContainer: { ...b.footerContainer, paddingTop: 0, paddingBottom: 0 },
|
|
@@ -227,7 +181,7 @@ const ka = {
|
|
|
227
181
|
// blue
|
|
228
182
|
},
|
|
229
183
|
legend: {
|
|
230
|
-
position:
|
|
184
|
+
position: Ii.Bottom,
|
|
231
185
|
chartPadding: 40,
|
|
232
186
|
legendPadding: 20,
|
|
233
187
|
size: 20
|
|
@@ -235,7 +189,7 @@ const ka = {
|
|
|
235
189
|
emptyCells: {
|
|
236
190
|
symbol: {
|
|
237
191
|
type: rt.SFS,
|
|
238
|
-
style:
|
|
192
|
+
style: Sa.Solid,
|
|
239
193
|
color: b.grayColor
|
|
240
194
|
},
|
|
241
195
|
text: "null"
|
|
@@ -246,7 +200,53 @@ const ka = {
|
|
|
246
200
|
},
|
|
247
201
|
heatChartFirstDayOfWeek: 7
|
|
248
202
|
};
|
|
203
|
+
function $a(t, e) {
|
|
204
|
+
return t[0].dataTransformationType !== e[0].dataTransformationType;
|
|
205
|
+
}
|
|
206
|
+
function Ra(t, e) {
|
|
207
|
+
return t[0].binCount !== e[0].binCount;
|
|
208
|
+
}
|
|
209
|
+
function go(t, e) {
|
|
210
|
+
let i = !0;
|
|
211
|
+
const a = W(t?.series), n = W(e?.series);
|
|
212
|
+
return a !== n && (i = a === S.ComboLineAndBarSeries && (n === S.BarSeries || n === S.LineSeries) || n === S.ComboLineAndBarSeries && (a === S.BarSeries || a === S.LineSeries) || a === S.BarSeries && n === S.LineSeries || a === S.LineSeries && n === S.BarSeries), i;
|
|
213
|
+
}
|
|
214
|
+
function St(t, e) {
|
|
215
|
+
return t !== void 0 && e !== void 0 && e > 0;
|
|
216
|
+
}
|
|
217
|
+
function yo(t) {
|
|
218
|
+
const { chartConfig: e, queryObject: i, chartData: a } = t;
|
|
219
|
+
let n = [];
|
|
220
|
+
const r = V(e.series), s = Ut(e), o = z(i), c = e.chartRenderer ?? o?.renderer?.toJSON();
|
|
221
|
+
return n = e.series.map((l, u) => {
|
|
222
|
+
const d = W([l]);
|
|
223
|
+
let f;
|
|
224
|
+
return (d === S.BarSeries || d === S.LineSeries || d === S.RadarSeries) && (l.type === S.BarSeries ? f = l.fillSymbol?.color : (l.type === S.RadarSeries || l.type === S.LineSeries) && (f = l.lineSymbol?.color), s ? f = Ms({
|
|
225
|
+
dataItem: a[0],
|
|
226
|
+
seriesConfig: l,
|
|
227
|
+
chartSubType: r,
|
|
228
|
+
colorMatch: s,
|
|
229
|
+
rendererType: c?.type
|
|
230
|
+
})?.color : f === void 0 && (f = Gt({ colorIndex: u }))), f;
|
|
231
|
+
}).filter((l) => l !== void 0), n;
|
|
232
|
+
}
|
|
233
|
+
function Ft(t) {
|
|
234
|
+
return t !== p.PieNoAggregation && t !== p.BarAndLineNoAggregation && t !== p.BarAndLineSplitByNoAggregation;
|
|
235
|
+
}
|
|
236
|
+
function ka(t) {
|
|
237
|
+
const e = V(t.series);
|
|
238
|
+
return e === p.BarAndLineFromFields || e === p.PieFromFields || e === p.BoxPlotMonoField || e === p.BoxPlotMultiFields || e === p.BoxPlotMonoFieldAndSplitBy || e === p.BoxPlotMultiFieldsAndSplitBy;
|
|
239
|
+
}
|
|
240
|
+
function He(t) {
|
|
241
|
+
return t && "showMean" in t && typeof t.showMean == "boolean" ? t.showMean : !1;
|
|
242
|
+
}
|
|
249
243
|
function ja(t) {
|
|
244
|
+
return t && "showOutliers" in t && typeof t.showOutliers == "boolean" ? t.showOutliers : void 0;
|
|
245
|
+
}
|
|
246
|
+
function po() {
|
|
247
|
+
return `{name} {${b.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
|
|
248
|
+
}
|
|
249
|
+
function Wa(t) {
|
|
250
250
|
let e;
|
|
251
251
|
return t?.[0] !== void 0 && (e = t.reduce(
|
|
252
252
|
(i, a) => ({
|
|
@@ -272,12 +272,12 @@ function ze(t) {
|
|
|
272
272
|
let c = e;
|
|
273
273
|
const { originalCategoryValue: l, originalDateValue: u, typeOrDomainIdValue: d } = b;
|
|
274
274
|
if (i !== void 0) {
|
|
275
|
-
const f = s ?
|
|
276
|
-
a !== void 0 && i[a] !== void 0 ? c = i[a] : f !== void 0 ? c = f : n === !1 && i[d] !== void 0 ? c = i[d] : i[u] !== void 0 ? c = i[u] : i[l] !== void 0 ? c = i[l] : i[ae] !== void 0 && (c = i[ae]), !r && c === null && (c = "null", o?.series?.[0].type === S.BarSeries && (c = o.series?.[0]?.nullCategory?.text ??
|
|
275
|
+
const f = s ? Cs(i) : void 0;
|
|
276
|
+
a !== void 0 && i[a] !== void 0 ? c = i[a] : f !== void 0 ? c = f : n === !1 && i[d] !== void 0 ? c = i[d] : i[u] !== void 0 ? c = i[u] : i[l] !== void 0 ? c = i[l] : i[ae] !== void 0 && (c = i[ae]), !r && c === null && (c = "null", o?.series?.[0].type === S.BarSeries && (c = o.series?.[0]?.nullCategory?.text ?? si.nullCategory?.text ?? c));
|
|
277
277
|
}
|
|
278
278
|
return c;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Qa(t) {
|
|
281
281
|
return t?.[b.typeOrDomainIdValue] !== void 0 ? t?.[b.typeOrDomainIdValue] : t?.[b.originalCategoryValue];
|
|
282
282
|
}
|
|
283
283
|
function Ue(t) {
|
|
@@ -309,7 +309,7 @@ function Ue(t) {
|
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Ha(t) {
|
|
313
313
|
const { arrayToSort: e, orderBy: i, sortingField: a, fieldList: n, isByFieldsChart: r, preferLabel: s } = t;
|
|
314
314
|
e !== void 0 && e.length > 1 && !ee(a) && i !== void 0 && i.length > 0 && e.sort((o, c) => {
|
|
315
315
|
let l = o[a];
|
|
@@ -322,7 +322,7 @@ function Qa(t) {
|
|
|
322
322
|
return f === -1 && (f = i.length), u - f;
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function oi(t, e) {
|
|
326
326
|
const i = t;
|
|
327
327
|
if (e?.[0] !== void 0 && V(e) === p.PieFromFields) {
|
|
328
328
|
const { x: a, y: n } = e[0];
|
|
@@ -330,7 +330,7 @@ function si(t, e) {
|
|
|
330
330
|
}
|
|
331
331
|
return i;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function li(t, e) {
|
|
334
334
|
const i = W(e);
|
|
335
335
|
let a = t;
|
|
336
336
|
const n = e?.[0];
|
|
@@ -357,7 +357,7 @@ function bt(t) {
|
|
|
357
357
|
const a = lt(e);
|
|
358
358
|
return a.isInItem && delete e[a.expr ?? ""], e;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function za(t, e) {
|
|
361
361
|
let i = t;
|
|
362
362
|
const a = W(e);
|
|
363
363
|
let n = _t(i);
|
|
@@ -370,8 +370,8 @@ function Ha(t, e) {
|
|
|
370
370
|
case S.PieSeries:
|
|
371
371
|
{
|
|
372
372
|
n = n.map(bt), i = { dataItems: n };
|
|
373
|
-
const { timeIntervalInfo: r } = t ?? {};
|
|
374
|
-
|
|
373
|
+
const { timeIntervalInfo: r, serverLimitReached: s } = t ?? {};
|
|
374
|
+
Ri(r) || (i.timeIntervalInfo = r), s !== void 0 && (i.serverLimitReached = s);
|
|
375
375
|
}
|
|
376
376
|
break;
|
|
377
377
|
case S.ScatterSeries:
|
|
@@ -383,12 +383,12 @@ function Ha(t, e) {
|
|
|
383
383
|
}
|
|
384
384
|
return i;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function ci(t) {
|
|
387
387
|
const { data: e, seriesConfig: i } = t;
|
|
388
388
|
let a = Ie(e);
|
|
389
|
-
return a !== void 0 && (a =
|
|
389
|
+
return a !== void 0 && (a = li(a, i), a = za(a, i), a = oi(a, i)), a;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function ui(t) {
|
|
392
392
|
const { statsMap: e, dataContext: i, chartLimits: a } = t;
|
|
393
393
|
let n = !1;
|
|
394
394
|
if (e !== void 0) {
|
|
@@ -397,7 +397,7 @@ function ci(t) {
|
|
|
397
397
|
} else i !== void 0 && (n = b.scatterplotAggregationFields.dataContextXMinField in i);
|
|
398
398
|
return n;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Ua(t) {
|
|
401
401
|
let e = !0;
|
|
402
402
|
const i = W(t.series);
|
|
403
403
|
if (i === S.BarSeries || i === S.LineSeries || i === S.ComboLineAndBarSeries) {
|
|
@@ -406,10 +406,10 @@ function za(t) {
|
|
|
406
406
|
}
|
|
407
407
|
return e;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Ga(t) {
|
|
410
410
|
return V(t.series) !== p.PieNoAggregation;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function _a(t) {
|
|
413
413
|
const { dataContext: e, chartConfig: i, chartLimits: a } = t;
|
|
414
414
|
let n = !0;
|
|
415
415
|
if (i !== void 0)
|
|
@@ -417,18 +417,18 @@ function Ga(t) {
|
|
|
417
417
|
case S.BarSeries:
|
|
418
418
|
case S.LineSeries:
|
|
419
419
|
case S.ComboLineAndBarSeries:
|
|
420
|
-
n =
|
|
420
|
+
n = Ua(i);
|
|
421
421
|
break;
|
|
422
422
|
case S.ScatterSeries:
|
|
423
|
-
n =
|
|
423
|
+
n = ui({ dataContext: e, chartLimits: a });
|
|
424
424
|
break;
|
|
425
425
|
case S.PieSeries:
|
|
426
|
-
n =
|
|
426
|
+
n = Ga(i);
|
|
427
427
|
break;
|
|
428
428
|
}
|
|
429
429
|
return n;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Ya(t, e) {
|
|
432
432
|
let i = t;
|
|
433
433
|
switch (e) {
|
|
434
434
|
case _.Log:
|
|
@@ -458,13 +458,13 @@ function st(t) {
|
|
|
458
458
|
}
|
|
459
459
|
}), r;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Ka(t, e) {
|
|
462
462
|
return JSON.stringify(t.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Ja(t, e) {
|
|
465
465
|
return JSON.stringify(t.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(t.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (t.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || t.outTimeZone !== e.outTimeZone || (t.nullPolicy ?? ne.Null) !== (e.nullPolicy ?? ne.Null);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Xa(t) {
|
|
468
468
|
const { oldConfig: e, newConfig: i, fieldList: a } = t, n = e.series[0], r = i.series[0];
|
|
469
469
|
let s = !1;
|
|
470
470
|
if (n.type === S.ScatterSeries && r.type === S.ScatterSeries && a && a.length > 0) {
|
|
@@ -476,16 +476,16 @@ function Ja(t) {
|
|
|
476
476
|
}
|
|
477
477
|
return s;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function ho(t, e) {
|
|
480
480
|
return (t.colorMatch ?? !1) !== (e.colorMatch ?? !1);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function So(t, e) {
|
|
483
483
|
return (t.legend?.visible ?? !1) !== (e.legend?.visible ?? !1) || JSON.stringify(t.legend?.body) !== JSON.stringify(e.legend?.body);
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Fo(t, e) {
|
|
486
486
|
return JSON.stringify(t.series[0]?.gradientRules) !== JSON.stringify(e.series[0]?.gradientRules);
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function bo(t) {
|
|
489
489
|
const { oldConfig: e, newConfig: i } = t;
|
|
490
490
|
let a = !1;
|
|
491
491
|
const n = e.series[0], r = i.series[0], s = W(e.series), o = W(i.series);
|
|
@@ -504,7 +504,7 @@ function So(t) {
|
|
|
504
504
|
function kt(t, e) {
|
|
505
505
|
return e.length !== t.length;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Za(t) {
|
|
508
508
|
const { oldSeries: e, newConfig: i, oldTimeIntervalInfo: a, setTimeBinningInfoWhenNotProvided: n } = t, r = i.series?.[0];
|
|
509
509
|
let s = !1, o = !1, c = !1;
|
|
510
510
|
if (se(r) && ve({
|
|
@@ -517,7 +517,7 @@ function Xa(t) {
|
|
|
517
517
|
}
|
|
518
518
|
return { timeBinningChanged: s, timeIntervalUnitChanged: o, newTimeBinningWillBeCalculated: c };
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function en(t) {
|
|
521
521
|
const { oldConfig: e, newConfig: i, behaviorAfterLimit: a } = t, n = e.series, r = i.series;
|
|
522
522
|
let s = !1, o = !1;
|
|
523
523
|
(a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !Pe(e.orderOptions?.orderByFields, i.orderOptions?.orderByFields));
|
|
@@ -530,7 +530,7 @@ function Za(t) {
|
|
|
530
530
|
);
|
|
531
531
|
return s = !Pe(c, l), s || o;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function tn(t, e) {
|
|
534
534
|
let i = !1;
|
|
535
535
|
if (e[0].x !== t[0].x)
|
|
536
536
|
i = !0;
|
|
@@ -543,38 +543,38 @@ function en(t, e) {
|
|
|
543
543
|
}
|
|
544
544
|
return i;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function an(t, e) {
|
|
547
547
|
return (t ?? !1) !== (e?.filterBySelection ?? !1);
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function di(t) {
|
|
550
550
|
const { currentSelectionOIDs: e, options: i } = t;
|
|
551
551
|
let a = !1;
|
|
552
552
|
return i?.filterBySelection === !0 && (a = e?.length !== i?.selectionData?.selectionOIDs?.length || !Pe(e, i?.selectionData?.selectionOIDs)), a;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function nn(t, e) {
|
|
555
555
|
return JSON.stringify(t.dataFilters) !== JSON.stringify(e.dataFilters);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function rn(t, e) {
|
|
558
558
|
return se(t.series[0]) && se(e.series[0]) && (t.series[0].binTemporalData ?? b.binTemporalData) !== (e.series[0].binTemporalData ?? b.binTemporalData);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function xo(t, e) {
|
|
561
561
|
return t?.length !== e?.length || t?.some((i, a) => {
|
|
562
562
|
const n = ge({ where: i?.query?.where }), r = ge({ where: e?.[a]?.query?.where });
|
|
563
563
|
return n !== r;
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Co(t, e) {
|
|
567
567
|
const i = re(t), a = re(e);
|
|
568
568
|
return JSON.stringify(i) !== JSON.stringify(a);
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function sn(t, e) {
|
|
571
571
|
return He(t) !== He(e);
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function on(t, e) {
|
|
574
574
|
const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = V(e.series), r = n === p.BarAndLineNoAggregation || n === p.BarAndLineSplitByNoAggregation, s = i === S.DateAxisFormat && a === S.NumberAxisFormat, o = i === S.NumberAxisFormat && a === S.DateAxisFormat;
|
|
575
575
|
return i !== a && (r || s || o);
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Bo(t) {
|
|
578
578
|
const {
|
|
579
579
|
forceDataUpdate: e,
|
|
580
580
|
oldConfig: i,
|
|
@@ -610,19 +610,19 @@ function xo(t) {
|
|
|
610
610
|
tooltipFieldsChanged: !1
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
|
-
switch (y.common.queryChanged =
|
|
613
|
+
switch (y.common.queryChanged = en({
|
|
614
614
|
oldConfig: i,
|
|
615
615
|
newConfig: a,
|
|
616
616
|
behaviorAfterLimit: n?.chartLimits?.behaviorAfterLimit
|
|
617
|
-
}), y.common.configFiltersChanged =
|
|
617
|
+
}), y.common.configFiltersChanged = nn(i, a), y.common.xOrYChanged = tn(u, l), y.common.filterBySelectionChanged = an(r, n), y.common.dataForFilterBySelectionChanged = di({
|
|
618
618
|
currentSelectionOIDs: o,
|
|
619
619
|
options: n
|
|
620
|
-
}), y.common.binTemporalDataChanged =
|
|
620
|
+
}), y.common.binTemporalDataChanged = rn(i, a), y.common.valueFormatChangeRequiresNewData = on(
|
|
621
621
|
i,
|
|
622
622
|
a
|
|
623
623
|
), y.common = {
|
|
624
624
|
...y.common,
|
|
625
|
-
...
|
|
625
|
+
...Za({
|
|
626
626
|
oldSeries: u,
|
|
627
627
|
newConfig: a,
|
|
628
628
|
oldTimeIntervalInfo: s,
|
|
@@ -630,7 +630,7 @@ function xo(t) {
|
|
|
630
630
|
})
|
|
631
631
|
}, m = Object.values(y.common).some((h) => h), d) {
|
|
632
632
|
case S.HistogramSeries:
|
|
633
|
-
y.histogram.dataPropsChanged =
|
|
633
|
+
y.histogram.dataPropsChanged = Ra(u, l) || $a(u, l);
|
|
634
634
|
break;
|
|
635
635
|
case S.LineSeries:
|
|
636
636
|
case S.BarSeries:
|
|
@@ -638,16 +638,16 @@ function xo(t) {
|
|
|
638
638
|
y.common.numberOfSeriesChanged = kt(u, l);
|
|
639
639
|
break;
|
|
640
640
|
case S.BoxPlotSeries:
|
|
641
|
-
y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged =
|
|
641
|
+
y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged = sn(i, a);
|
|
642
642
|
break;
|
|
643
643
|
case S.GaugeSeries:
|
|
644
|
-
y.gauge.valueConversionChanged =
|
|
644
|
+
y.gauge.valueConversionChanged = Ka(i, a);
|
|
645
645
|
break;
|
|
646
646
|
case S.HeatSeries:
|
|
647
|
-
y.heatChart.binningChanged =
|
|
647
|
+
y.heatChart.binningChanged = Ja(i, a);
|
|
648
648
|
break;
|
|
649
649
|
case S.ScatterSeries:
|
|
650
|
-
y.scatterPlot.tooltipFieldsChanged =
|
|
650
|
+
y.scatterPlot.tooltipFieldsChanged = Xa({
|
|
651
651
|
oldConfig: i,
|
|
652
652
|
newConfig: a,
|
|
653
653
|
fieldList: c
|
|
@@ -656,16 +656,16 @@ function xo(t) {
|
|
|
656
656
|
}
|
|
657
657
|
return (y.gauge.valueConversionChanged || y.histogram.dataPropsChanged || y.common.numberOfSeriesChanged || y.common.binTemporalDataChanged || y.boxPlot.showMeanChanged || y.heatChart.binningChanged || y.scatterPlot.tooltipFieldsChanged) && (g = !0), f = e === !0 || m || g, { dataUpdateNeeded: f, updateNeededDetails: y };
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function vo(t) {
|
|
660
660
|
return t.common.timeIntervalUnitChanged || t.common.newTimeBinningWillBeCalculated || t.common.dataForFilterBySelectionChanged || t.common.filterBySelectionChanged || t.common.configFiltersChanged || t.common.numberOfSeriesChanged || t.common.queryChanged || t.common.xOrYChanged;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function ln(t, e) {
|
|
663
663
|
let i = !0;
|
|
664
664
|
if (t !== void 0 && t.length > 1 && !ee(e)) {
|
|
665
665
|
let a = 0, n = 0, r = 0;
|
|
666
666
|
t.forEach((s) => {
|
|
667
667
|
const o = s[e];
|
|
668
|
-
!
|
|
668
|
+
!Ui(o) || o === 0 ? r += 1 : o > 0 ? a += 1 : n += 1;
|
|
669
669
|
}), i = r === t.length || a >= 0 && n === 0 || a === 0 && n >= 0;
|
|
670
670
|
}
|
|
671
671
|
return i;
|
|
@@ -676,7 +676,7 @@ function it(t) {
|
|
|
676
676
|
const r = [];
|
|
677
677
|
return typeof e == "number" && Number.isFinite(e) && r.push(e), typeof i == "number" && Number.isFinite(i) && r.push(i * a), r.length > 0 && (n = Math.min(...r)), n;
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function fi(t, e) {
|
|
680
680
|
let i;
|
|
681
681
|
const {
|
|
682
682
|
maxBarChartSeriesCount: a,
|
|
@@ -740,7 +740,7 @@ function jt(t, e) {
|
|
|
740
740
|
}
|
|
741
741
|
return i;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function cn(t) {
|
|
744
744
|
let e = !1;
|
|
745
745
|
if (t !== void 0) {
|
|
746
746
|
const i = t.replace(" ", ""), a = /^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u, n = /^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;
|
|
@@ -748,9 +748,9 @@ function ln(t) {
|
|
|
748
748
|
}
|
|
749
749
|
return e;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function No(t) {
|
|
752
752
|
let e;
|
|
753
|
-
if (
|
|
753
|
+
if (cn(t)) {
|
|
754
754
|
const i = /%(\d{1,3}(.\d+)?)$/u, a = /(\d{1,3}(.\d+)?)%$/u, n = t.replace(" ", ""), r = i.exec(n)?.[1] ?? a.exec(n)?.[1];
|
|
755
755
|
r !== void 0 && (e = Number(r));
|
|
756
756
|
}
|
|
@@ -777,45 +777,45 @@ function le(t) {
|
|
|
777
777
|
bubbles: !0
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function To(t) {
|
|
781
781
|
const { data: e, seriesConfig: i, htmlContainer: a } = t;
|
|
782
782
|
if (a && e) {
|
|
783
|
-
const n =
|
|
783
|
+
const n = ci({ data: e, seriesConfig: i });
|
|
784
784
|
a.dispatchEvent(
|
|
785
785
|
new window.CustomEvent(oe.DataProcessComplete, le(n))
|
|
786
786
|
);
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function Ao(t) {
|
|
790
790
|
const { data: e, chartConfig: i, htmlContainer: a } = t;
|
|
791
791
|
if (a && e) {
|
|
792
|
-
const n =
|
|
792
|
+
const n = ys(e, i);
|
|
793
793
|
a.dispatchEvent(new window.CustomEvent(oe.DataFetchComplete, le(n)));
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Po(t, e) {
|
|
797
797
|
e && e.dispatchEvent(
|
|
798
798
|
new window.CustomEvent(oe.LegendItemVisibilityChange, le(t))
|
|
799
799
|
);
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function Mo(t, e) {
|
|
802
802
|
e && e.dispatchEvent(new window.CustomEvent(oe.UpdateComplete, le(t)));
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function Lo(t) {
|
|
805
805
|
t && t.dispatchEvent(new window.CustomEvent(oe.RenderingComplete, le()));
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function wo(t) {
|
|
808
808
|
const { data: e, seriesConfig: i, htmlContainer: a } = t;
|
|
809
809
|
if (a) {
|
|
810
810
|
const n = e;
|
|
811
811
|
let r = Ie(e.selectionItems);
|
|
812
|
-
r && (r =
|
|
812
|
+
r && (r = li(r, i), r = r.map(bt), r = oi(r, i), n.selectionItems = r), a.dispatchEvent(new window.CustomEvent(oe.SelectionComplete, le(n)));
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function Do(t) {
|
|
816
816
|
t && t.dispatchEvent(new window.CustomEvent(oe.TooManySelectedElements, le()));
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function Oo(t) {
|
|
819
819
|
const { data: e, htmlContainer: i, chartId: a, colorMatchApplied: n } = t;
|
|
820
820
|
i && i.dispatchEvent(
|
|
821
821
|
new window.CustomEvent(
|
|
@@ -828,64 +828,64 @@ function wo(t) {
|
|
|
828
828
|
)
|
|
829
829
|
);
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function qo(t, e) {
|
|
832
832
|
e && e.dispatchEvent(new window.CustomEvent(oe.AxesMinMaxChange, le(t)));
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Eo(t, e) {
|
|
835
835
|
e && e.dispatchEvent(new window.CustomEvent(oe.BadDataWarningRaise, le(t)));
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function un(t) {
|
|
838
838
|
const { data: e, htmlContainer: i } = t;
|
|
839
839
|
i && e && i.dispatchEvent(new window.CustomEvent(oe.SeriesOrder, le(e)));
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Vo(t, e) {
|
|
842
842
|
let i, a, n, r;
|
|
843
843
|
return se(t.series[0]) && (i = t.series[0].temporalBinning?.unit, n = t.series[0].temporalBinning?.size), se(e.series[0]) && (a = e.series[0].temporalBinning?.unit, r = e.series[0].temporalBinning?.size), St(i, n) && !St(a, r);
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function Io(t, e) {
|
|
846
846
|
return t.axes?.length === 3 && e.axes?.length === 2 || t.axes?.length === 2 && e.axes?.length === 3;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function $o(t, e) {
|
|
849
849
|
return JSON.stringify(t.series.map((i) => i.assignToSecondValueAxis ?? !1)) !== JSON.stringify(e.series.map((i) => i.assignToSecondValueAxis ?? !1));
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function Ro(t, e) {
|
|
852
852
|
const i = t.axes?.map((n) => n?.guides?.map((r) => r?.above === !0)), a = e.axes?.map((n) => n?.guides?.map((r) => r?.above === !0));
|
|
853
853
|
return JSON.stringify(i) !== JSON.stringify(a);
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function ko(t, e) {
|
|
856
856
|
return qt(t) !== qt(e);
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function jo(t) {
|
|
859
859
|
return W(t.series) !== S.BoxPlotSeries ? b.xAxisField : t.series[0].x;
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function Wo(t) {
|
|
862
862
|
const e = Yt(t);
|
|
863
863
|
return e === ke.Stacked || e === ke.Stacked100;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Qo(t, e) {
|
|
866
866
|
return (t.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility);
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function Ho(t, e) {
|
|
869
869
|
return (t.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility) !== (e.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility);
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function zo(t, e) {
|
|
872
872
|
return JSON.stringify(t.chartRenderer) !== JSON.stringify(e.chartRenderer);
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function Uo(t, e) {
|
|
875
875
|
const i = t.axes?.[0].valueFormat.type === S.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === S.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
876
876
|
return i !== a;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function dn(t, e) {
|
|
879
879
|
return t.series.map((i) => i.name).join() !== e.series.map((i) => i.name).join();
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function fn(t, e) {
|
|
882
882
|
const i = t.orderOptions?.series, a = e.orderOptions?.series, n = (i?.orderBy ?? me.Ascending) !== (a?.orderBy ?? me.Ascending), r = (i?.preferLabel ?? !0) !== (a?.preferLabel ?? !0);
|
|
883
883
|
return n || r;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
886
|
-
return
|
|
885
|
+
function Go(t, e) {
|
|
886
|
+
return fn(t, e) || dn(t, e);
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function mn(t) {
|
|
889
889
|
const e = V(t.series);
|
|
890
890
|
let i;
|
|
891
891
|
if (t.orderOptions?.data !== void 0) {
|
|
@@ -893,7 +893,7 @@ function fn(t) {
|
|
|
893
893
|
if (a === be.Category)
|
|
894
894
|
a = t.series[0].x;
|
|
895
895
|
else {
|
|
896
|
-
a === be.Mean ? a =
|
|
896
|
+
a === be.Mean ? a = $.Average : a === be.Median && (a = $.Median);
|
|
897
897
|
const r = e === p.BoxPlotMultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = K(t.series[0].query?.where), o = ge({
|
|
898
898
|
where: t.series[0].query?.where
|
|
899
899
|
});
|
|
@@ -907,14 +907,15 @@ function fn(t) {
|
|
|
907
907
|
}
|
|
908
908
|
i = {
|
|
909
909
|
sortingField: a,
|
|
910
|
-
orderBy: n ?? me.Ascending
|
|
910
|
+
orderBy: n ?? me.Ascending,
|
|
911
|
+
preferLabel: t.orderOptions.data.preferLabel ?? !0
|
|
911
912
|
};
|
|
912
913
|
}
|
|
913
914
|
return i;
|
|
914
915
|
}
|
|
915
|
-
function
|
|
916
|
+
function gn(t) {
|
|
916
917
|
let e;
|
|
917
|
-
if (!
|
|
918
|
+
if (!mi(t) && t.series?.length > 0 && t.orderOptions?.data?.orderType === be.Category) {
|
|
918
919
|
let a;
|
|
919
920
|
fe(t.axes?.[0]?.valueFormat) ? a = j.xField : fe(t.axes?.[1]?.valueFormat) && (a = j.yField), a && (e = {
|
|
920
921
|
sortingField: a,
|
|
@@ -923,51 +924,56 @@ function mn(t) {
|
|
|
923
924
|
}
|
|
924
925
|
return e;
|
|
925
926
|
}
|
|
926
|
-
function
|
|
927
|
-
const e = t.series[0], { x: i, y: a } = e, n = V(t.series) === p.PieFromFields;
|
|
928
|
-
let
|
|
929
|
-
if (t.orderOptions?.data !== void 0
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
927
|
+
function yn(t) {
|
|
928
|
+
const e = t.series[0], { x: i, y: a } = e, n = V(t.series) === p.PieFromFields, r = V(t.series) === p.BarAndLineFromFields;
|
|
929
|
+
let s, o = "", c;
|
|
930
|
+
if (t.orderOptions?.data !== void 0) {
|
|
931
|
+
if (o = t.orderOptions?.data?.orderType ?? be.Category, c = t.orderOptions?.data?.orderBy, o === be.Category ? o = n ? ae : i : o = n ? he : [a].flat()[0], o !== void 0 && o !== "") {
|
|
932
|
+
const l = Yt(t);
|
|
933
|
+
if (W(t.series) !== S.PieSeries && o !== i && t.series?.length > 1)
|
|
934
|
+
switch (l) {
|
|
935
|
+
case ke.Stacked:
|
|
936
|
+
o = b.technicalSortingFieldBySum;
|
|
937
|
+
break;
|
|
938
|
+
case ke.Stacked100:
|
|
939
|
+
o = b.technicalSortingFieldByPercent;
|
|
940
|
+
break;
|
|
941
|
+
case ke.Side:
|
|
942
|
+
typeof a == "string" && (o = a);
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
s = {
|
|
946
|
+
sortingField: o,
|
|
947
|
+
orderBy: c ?? me.Ascending,
|
|
948
|
+
preferLabel: t.orderOptions.data.preferLabel ?? !0
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
} else (r || n) && t.series[0].query?.outStatistics && (c = t.series[0].query.outStatistics.map((l) => l.onStatisticField), c?.length > 1 && (s = {
|
|
952
|
+
sortingField: si.originalCategoryValue,
|
|
953
|
+
orderBy: c,
|
|
954
|
+
preferLabel: !1
|
|
955
|
+
}));
|
|
956
|
+
return s;
|
|
949
957
|
}
|
|
950
958
|
function xt(t) {
|
|
951
959
|
let e;
|
|
952
960
|
const i = W(t.series);
|
|
953
961
|
if (i === S.HeatSeries)
|
|
954
|
-
e =
|
|
955
|
-
else if (t
|
|
962
|
+
e = gn(t);
|
|
963
|
+
else if (t.series?.length > 0)
|
|
956
964
|
switch (i) {
|
|
957
965
|
case S.BoxPlotSeries:
|
|
958
|
-
e =
|
|
966
|
+
e = mn(t);
|
|
959
967
|
break;
|
|
960
968
|
case S.LineSeries:
|
|
961
969
|
case S.BarSeries:
|
|
962
970
|
case S.PieSeries:
|
|
963
|
-
e =
|
|
971
|
+
e = yn(t);
|
|
964
972
|
break;
|
|
965
973
|
}
|
|
966
|
-
e && t.orderOptions?.data?.preferLabel !== void 0 && (e.preferLabel = t.orderOptions.data.preferLabel);
|
|
967
|
-
}
|
|
968
974
|
return e;
|
|
969
975
|
}
|
|
970
|
-
function
|
|
976
|
+
function _o(t) {
|
|
971
977
|
const { oldConfig: e, newConfig: i, dataUpdateNeeded: a } = t, n = V(i.series);
|
|
972
978
|
let r = !1, s = !1;
|
|
973
979
|
if (n !== p.BoxPlotMonoField && n !== p.BoxPlotMonoFieldAndSplitBy && i.orderOptions?.data !== void 0) {
|
|
@@ -976,7 +982,7 @@ function Uo(t) {
|
|
|
976
982
|
}
|
|
977
983
|
return r;
|
|
978
984
|
}
|
|
979
|
-
function
|
|
985
|
+
function Yo(t, e) {
|
|
980
986
|
const i = [], a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
981
987
|
return t.forEach((r, s) => n.set(r.id, s)), e.forEach((r, s) => {
|
|
982
988
|
let o = n.get(r.id);
|
|
@@ -988,7 +994,7 @@ function Go(t, e) {
|
|
|
988
994
|
}
|
|
989
995
|
}), i;
|
|
990
996
|
}
|
|
991
|
-
function
|
|
997
|
+
function Ko(t, e) {
|
|
992
998
|
const i = Ie(t);
|
|
993
999
|
if (i && i.series.length > 1) {
|
|
994
1000
|
const { preferLabel: a, orderBy: n } = i.orderOptions?.series ?? {};
|
|
@@ -1007,16 +1013,16 @@ function _o(t, e) {
|
|
|
1007
1013
|
});
|
|
1008
1014
|
}
|
|
1009
1015
|
}
|
|
1010
|
-
return
|
|
1016
|
+
return un({
|
|
1011
1017
|
data: i?.series.map((a) => a.id),
|
|
1012
1018
|
htmlContainer: e
|
|
1013
1019
|
}), i;
|
|
1014
1020
|
}
|
|
1015
|
-
function
|
|
1021
|
+
function pn(t) {
|
|
1016
1022
|
const e = { ...t };
|
|
1017
1023
|
return t.showMean === !0 && (e.series = [e.series[0]], e.series[0].query?.where !== void 0 && delete e.series[0].query.where), e;
|
|
1018
1024
|
}
|
|
1019
|
-
function
|
|
1025
|
+
function mi(t) {
|
|
1020
1026
|
let e = !1;
|
|
1021
1027
|
return t && (e = t.series[0].type === S.HeatSeries && fe(t.axes?.[0]?.valueFormat) && fe(t.axes?.[1]?.valueFormat)), e;
|
|
1022
1028
|
}
|
|
@@ -1025,29 +1031,29 @@ function ot(t) {
|
|
|
1025
1031
|
switch (e.valid = !1, i) {
|
|
1026
1032
|
case S.BarSeries:
|
|
1027
1033
|
case S.ComboLineAndBarSeries:
|
|
1028
|
-
e.invalidType =
|
|
1034
|
+
e.invalidType = k.BarElementExceedsLimit;
|
|
1029
1035
|
break;
|
|
1030
1036
|
case S.LineSeries:
|
|
1031
|
-
e.invalidType =
|
|
1037
|
+
e.invalidType = k.LineChartExceedsLimit;
|
|
1032
1038
|
break;
|
|
1033
1039
|
case S.PieSeries:
|
|
1034
|
-
e.invalidType =
|
|
1040
|
+
e.invalidType = k.PieChartExceedsLimit;
|
|
1035
1041
|
break;
|
|
1036
1042
|
case S.GaugeSeries:
|
|
1037
|
-
e.invalidType =
|
|
1043
|
+
e.invalidType = k.GaugeExceedsLimit;
|
|
1038
1044
|
break;
|
|
1039
1045
|
case S.BoxPlotSeries:
|
|
1040
|
-
a?.outlierLimit === !0 ? e.invalidType =
|
|
1046
|
+
a?.outlierLimit === !0 ? e.invalidType = k.BoxPlotOutliersExceedsLimit : e.invalidType = k.BoxPlotExceedsLimit;
|
|
1041
1047
|
break;
|
|
1042
1048
|
case S.HeatSeries:
|
|
1043
|
-
e.invalidType =
|
|
1049
|
+
e.invalidType = k.HeatChartExceedsLimit;
|
|
1044
1050
|
break;
|
|
1045
1051
|
}
|
|
1046
1052
|
}
|
|
1047
|
-
function
|
|
1053
|
+
function hn(t, e) {
|
|
1048
1054
|
t.valid = !1, t.invalidType = e;
|
|
1049
1055
|
}
|
|
1050
|
-
async function
|
|
1056
|
+
async function Jo(t) {
|
|
1051
1057
|
const {
|
|
1052
1058
|
invalidType: e,
|
|
1053
1059
|
chartLimits: i,
|
|
@@ -1055,7 +1061,7 @@ async function Yo(t) {
|
|
|
1055
1061
|
seriesCount: n,
|
|
1056
1062
|
queryObject: r,
|
|
1057
1063
|
filterBySelection: s,
|
|
1058
|
-
formatLocale: o =
|
|
1064
|
+
formatLocale: o = xa(document.documentElement),
|
|
1059
1065
|
isTemporalLineChart: c,
|
|
1060
1066
|
errorStrings: l
|
|
1061
1067
|
} = t;
|
|
@@ -1063,7 +1069,7 @@ async function Yo(t) {
|
|
|
1063
1069
|
const f = new Intl.NumberFormat(o), m = Re(i), { maxCategoryCount: g } = m;
|
|
1064
1070
|
let y = l.modalHeaders.invalidChart;
|
|
1065
1071
|
switch (e) {
|
|
1066
|
-
case
|
|
1072
|
+
case k.BarElementExceedsLimit: {
|
|
1067
1073
|
y = l.modalHeaders.tooManyFeatures;
|
|
1068
1074
|
let x = Number.NaN, F = Number.NaN, C = "";
|
|
1069
1075
|
n !== void 0 && (n <= m.maxBarChartSeriesCount ? n === 1 ? (C = l.errors.uniqueSeriesBarCountCannotExceedLimit, x = m.maxBarUniqueSeriesCountTotal) : n === 2 ? (C = l.errors.twoSeriesBarCountCannotExceedLimit, x = m.maxBarTwoSeriesCountTotal, F = m.maxBarTwoSeriesCountPerSeries) : n > 2 && (C = l.errors.threePlusSeriesBarCountCannotExceedLimit, x = m.maxBarThreePlusSeriesCountTotal, F = m.maxBarThreePlusSeriesCountPerSeries) : (C = l.errors.barSeriesCountCannotExceedLimit, F = m.maxBarChartSeriesCount));
|
|
@@ -1079,7 +1085,7 @@ async function Yo(t) {
|
|
|
1079
1085
|
};
|
|
1080
1086
|
break;
|
|
1081
1087
|
}
|
|
1082
|
-
case
|
|
1088
|
+
case k.LineChartExceedsLimit:
|
|
1083
1089
|
{
|
|
1084
1090
|
y = l.modalHeaders.tooManyFeatures;
|
|
1085
1091
|
let x = Number.NaN, F = Number.NaN, C = "";
|
|
@@ -1096,7 +1102,7 @@ async function Yo(t) {
|
|
|
1096
1102
|
};
|
|
1097
1103
|
}
|
|
1098
1104
|
break;
|
|
1099
|
-
case
|
|
1105
|
+
case k.BoxPlotExceedsLimit:
|
|
1100
1106
|
{
|
|
1101
1107
|
y = l.modalHeaders.tooManyFeatures;
|
|
1102
1108
|
let x = Number.NaN, F = Number.NaN, C = "";
|
|
@@ -1113,7 +1119,7 @@ async function Yo(t) {
|
|
|
1113
1119
|
};
|
|
1114
1120
|
}
|
|
1115
1121
|
break;
|
|
1116
|
-
case
|
|
1122
|
+
case k.BoxPlotOutliersExceedsLimit:
|
|
1117
1123
|
{
|
|
1118
1124
|
y = l.modalHeaders.tooManyFeatures;
|
|
1119
1125
|
const x = l.errors.boxSeriesOutlierCannotExceedLimit, F = m.maxBoxPlotOutlierLimit, C = f.format(F);
|
|
@@ -1122,7 +1128,7 @@ async function Yo(t) {
|
|
|
1122
1128
|
}), d = { actualCount: a ?? Number.NaN, totalLimit: F };
|
|
1123
1129
|
}
|
|
1124
1130
|
break;
|
|
1125
|
-
case
|
|
1131
|
+
case k.HeatChartExceedsLimit:
|
|
1126
1132
|
{
|
|
1127
1133
|
y = l.modalHeaders.tooManyFeatures;
|
|
1128
1134
|
const x = l.errors.heatChartCannotExceedLimit, F = m.maxHeatChartCellLimit, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
|
|
@@ -1135,7 +1141,7 @@ async function Yo(t) {
|
|
|
1135
1141
|
};
|
|
1136
1142
|
}
|
|
1137
1143
|
break;
|
|
1138
|
-
case
|
|
1144
|
+
case k.PieChartExceedsLimit:
|
|
1139
1145
|
{
|
|
1140
1146
|
y = l.modalHeaders.tooManyFeatures;
|
|
1141
1147
|
const x = l.errors.pieChartSlicesCannotExceedLimit, F = m.maxPieChartSliceCountTotal, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
|
|
@@ -1148,7 +1154,7 @@ async function Yo(t) {
|
|
|
1148
1154
|
};
|
|
1149
1155
|
}
|
|
1150
1156
|
break;
|
|
1151
|
-
case
|
|
1157
|
+
case k.GaugeExceedsLimit:
|
|
1152
1158
|
{
|
|
1153
1159
|
y = l.modalHeaders.tooManyFeatures;
|
|
1154
1160
|
const x = l.errors.gaugeCannotExceedLimit, F = m.maxGaugeByFeaturesLimit, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
|
|
@@ -1161,30 +1167,30 @@ async function Yo(t) {
|
|
|
1161
1167
|
};
|
|
1162
1168
|
}
|
|
1163
1169
|
break;
|
|
1164
|
-
case
|
|
1170
|
+
case k.PieChartMixOfNegativePositiveSlices:
|
|
1165
1171
|
y = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, u = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
|
|
1166
1172
|
break;
|
|
1167
|
-
case
|
|
1173
|
+
case k.NegativeValueInSqrtCalculation:
|
|
1168
1174
|
y = l.modalHeaders.invalidData, u = l.errors.negativeValueInDataForSqrtTransformation;
|
|
1169
1175
|
break;
|
|
1170
|
-
case
|
|
1176
|
+
case k.NegativeValueInLogCalculation:
|
|
1171
1177
|
y = l.modalHeaders.invalidData, u = l.errors.negativeValueInDataForLogTransformation;
|
|
1172
1178
|
break;
|
|
1173
|
-
case
|
|
1179
|
+
case k.HistogramEmptyField:
|
|
1174
1180
|
u = l.errors.histogramEmptyField;
|
|
1175
1181
|
break;
|
|
1176
|
-
case
|
|
1177
|
-
y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage :
|
|
1182
|
+
case k.EmptyDataSet:
|
|
1183
|
+
y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage : Gi(r) ? u = l.errors.noDataFBEMessage : u = l.errors.noDataMessage;
|
|
1178
1184
|
break;
|
|
1179
|
-
case
|
|
1185
|
+
case k.NegativeValueInXAxisLogScale:
|
|
1180
1186
|
u = l.errors.logarithmicXAxisNotPossible;
|
|
1181
1187
|
break;
|
|
1182
|
-
case
|
|
1188
|
+
case k.NegativeValueInYAxisLogScale:
|
|
1183
1189
|
u = l.errors.logarithmicYAxisNotPossible;
|
|
1184
1190
|
break;
|
|
1185
|
-
case
|
|
1191
|
+
case k.BadData:
|
|
1186
1192
|
}
|
|
1187
|
-
if (u === l.errors.defaultInvalidChart && (e ===
|
|
1193
|
+
if (u === l.errors.defaultInvalidChart && (e === k.BarElementExceedsLimit || e === k.LineChartExceedsLimit || e === k.HeatChartExceedsLimit || e === k.PieChartExceedsLimit || e === k.GaugeExceedsLimit || e === k.BoxPlotExceedsLimit) && typeof a == "number" && typeof n == "number" && a / n > g) {
|
|
1188
1194
|
const x = a / n;
|
|
1189
1195
|
u = ue(l.errors.categoryCountCannotExceedLimit, {
|
|
1190
1196
|
categoryCount: f.format(x),
|
|
@@ -1192,7 +1198,7 @@ async function Yo(t) {
|
|
|
1192
1198
|
});
|
|
1193
1199
|
}
|
|
1194
1200
|
return {
|
|
1195
|
-
keyword: e ??
|
|
1201
|
+
keyword: e ?? k.BadData,
|
|
1196
1202
|
header: y,
|
|
1197
1203
|
message: u,
|
|
1198
1204
|
params: d
|
|
@@ -1214,12 +1220,12 @@ function At(t) {
|
|
|
1214
1220
|
};
|
|
1215
1221
|
const l = G({
|
|
1216
1222
|
...c,
|
|
1217
|
-
key:
|
|
1223
|
+
key: $.Average
|
|
1218
1224
|
}), u = G({
|
|
1219
1225
|
...c,
|
|
1220
|
-
key:
|
|
1226
|
+
key: $.StandardDeviation
|
|
1221
1227
|
}), d = r ?? Number(e[l]), f = s ?? Number(e[u]);
|
|
1222
|
-
return Number.isFinite(d) && Number.isFinite(f) && Object.values(
|
|
1228
|
+
return Number.isFinite(d) && Number.isFinite(f) && Object.values($).forEach((m) => {
|
|
1223
1229
|
const g = G({
|
|
1224
1230
|
key: m,
|
|
1225
1231
|
y: a,
|
|
@@ -1236,7 +1242,7 @@ function At(t) {
|
|
|
1236
1242
|
standardizeValues: !0
|
|
1237
1243
|
};
|
|
1238
1244
|
let x = G(c);
|
|
1239
|
-
if (o[x] = Ct({ mean: d, stdDev: f, value: h }), m ===
|
|
1245
|
+
if (o[x] = Ct({ mean: d, stdDev: f, value: h }), m === $.Min || m === $.Max) {
|
|
1240
1246
|
c = {
|
|
1241
1247
|
...c,
|
|
1242
1248
|
key: m,
|
|
@@ -1258,7 +1264,7 @@ function At(t) {
|
|
|
1258
1264
|
}
|
|
1259
1265
|
}), o;
|
|
1260
1266
|
}
|
|
1261
|
-
function
|
|
1267
|
+
function Sn(t) {
|
|
1262
1268
|
const { data: e, yList: i, calculateZScore: a = !1 } = t, n = e[0], r = /* @__PURE__ */ new Map();
|
|
1263
1269
|
return i.forEach((o) => {
|
|
1264
1270
|
let c = {};
|
|
@@ -1270,7 +1276,7 @@ function hn(t) {
|
|
|
1270
1276
|
}), r.set(o, c);
|
|
1271
1277
|
}), Array.from(r.values());
|
|
1272
1278
|
}
|
|
1273
|
-
function
|
|
1279
|
+
function Fn(t) {
|
|
1274
1280
|
const { data: e, splitByField: i, y: a } = t, n = {
|
|
1275
1281
|
[b.boxPlot.boxPlotCategory]: a
|
|
1276
1282
|
};
|
|
@@ -1281,7 +1287,7 @@ function Sn(t) {
|
|
|
1281
1287
|
});
|
|
1282
1288
|
}), [n];
|
|
1283
1289
|
}
|
|
1284
|
-
function
|
|
1290
|
+
function bn(t) {
|
|
1285
1291
|
const { splitByField: e, data: i, yList: a, calculateZScore: n = !1, meanAndStdDevPerField: r } = t, s = /* @__PURE__ */ new Map();
|
|
1286
1292
|
return i.forEach((c) => {
|
|
1287
1293
|
const l = c[e];
|
|
@@ -1295,8 +1301,8 @@ function Fn(t) {
|
|
|
1295
1301
|
dataItem: d,
|
|
1296
1302
|
chartSubType: p.BoxPlotMultiFieldsAndSplitBy,
|
|
1297
1303
|
splitByValue: l,
|
|
1298
|
-
meanPerField: r?.[Ve(u,
|
|
1299
|
-
stdDevPerField: r?.[Ve(u,
|
|
1304
|
+
meanPerField: r?.[Ve(u, A.Average)],
|
|
1305
|
+
stdDevPerField: r?.[Ve(u, A.StandardDeviation)]
|
|
1300
1306
|
})), s.set(u, {
|
|
1301
1307
|
...s.get(u) ?? {},
|
|
1302
1308
|
...d
|
|
@@ -1304,7 +1310,7 @@ function Fn(t) {
|
|
|
1304
1310
|
});
|
|
1305
1311
|
}), Array.from(s.values());
|
|
1306
1312
|
}
|
|
1307
|
-
function
|
|
1313
|
+
function xn(t) {
|
|
1308
1314
|
const { data: e, yList: i, calculateZScore: a = !1, meanAndStdDevPerField: n } = t, r = e;
|
|
1309
1315
|
return a && r.forEach((s) => {
|
|
1310
1316
|
i.forEach((o) => {
|
|
@@ -1312,13 +1318,13 @@ function bn(t) {
|
|
|
1312
1318
|
dataItem: s,
|
|
1313
1319
|
chartSubType: p.BoxPlotMultiFieldsAndCategory,
|
|
1314
1320
|
y: o,
|
|
1315
|
-
meanPerField: n?.[Ve(o,
|
|
1316
|
-
stdDevPerField: n?.[Ve(o,
|
|
1321
|
+
meanPerField: n?.[Ve(o, A.Average)],
|
|
1322
|
+
stdDevPerField: n?.[Ve(o, A.StandardDeviation)]
|
|
1317
1323
|
});
|
|
1318
1324
|
});
|
|
1319
1325
|
}), r;
|
|
1320
1326
|
}
|
|
1321
|
-
function
|
|
1327
|
+
function Cn(t) {
|
|
1322
1328
|
const { splitByField: e, x: i, data: a } = t, n = /* @__PURE__ */ new Map();
|
|
1323
1329
|
return a.forEach((s) => {
|
|
1324
1330
|
const o = s[i], c = { [i]: o }, l = s[e];
|
|
@@ -1337,7 +1343,7 @@ function xn(t) {
|
|
|
1337
1343
|
});
|
|
1338
1344
|
}), Array.from(n.values());
|
|
1339
1345
|
}
|
|
1340
|
-
function
|
|
1346
|
+
function Bn(t, e) {
|
|
1341
1347
|
const { series: i } = t, a = i[0], { y: n } = a, r = V(t.series), s = {
|
|
1342
1348
|
y: r === p.BoxPlotMultiFieldsAndCategory ? n : void 0,
|
|
1343
1349
|
chartSubType: r
|
|
@@ -1354,28 +1360,28 @@ function Cn(t, e) {
|
|
|
1354
1360
|
s.splitByValue = l;
|
|
1355
1361
|
const u = G({
|
|
1356
1362
|
...s,
|
|
1357
|
-
key:
|
|
1363
|
+
key: $.Min,
|
|
1358
1364
|
showOutliers: !0
|
|
1359
1365
|
}), d = G({
|
|
1360
1366
|
...s,
|
|
1361
|
-
key:
|
|
1367
|
+
key: $.Min,
|
|
1362
1368
|
showOutliers: !1
|
|
1363
1369
|
}), f = G({
|
|
1364
1370
|
...s,
|
|
1365
|
-
key:
|
|
1371
|
+
key: $.Max,
|
|
1366
1372
|
showOutliers: !0
|
|
1367
1373
|
}), m = G({
|
|
1368
1374
|
...s,
|
|
1369
|
-
key:
|
|
1375
|
+
key: $.Max,
|
|
1370
1376
|
showOutliers: !1
|
|
1371
1377
|
});
|
|
1372
1378
|
c[f] === void 0 && c[m] !== void 0 && (c[f] = c[m]), c[u] === void 0 && c[d] !== void 0 && (c[u] = c[d]);
|
|
1373
1379
|
});
|
|
1374
1380
|
});
|
|
1375
1381
|
}
|
|
1376
|
-
function
|
|
1382
|
+
function vn(t, e) {
|
|
1377
1383
|
let i, a;
|
|
1378
|
-
const n = t[e[
|
|
1384
|
+
const n = t[e[$.IQR]], r = t[e[$.FirstQuartile]], s = t[e[$.ThirdQuartile]];
|
|
1379
1385
|
return Number.isFinite(n) && Number.isFinite(r) && Number.isFinite(s) && (i = r - n * 1.5, a = s + n * 1.5), { outlierMinThreshold: i, outlierMaxThreshold: a };
|
|
1380
1386
|
}
|
|
1381
1387
|
function Wt(t) {
|
|
@@ -1393,11 +1399,11 @@ function Wt(t) {
|
|
|
1393
1399
|
let d;
|
|
1394
1400
|
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 ");
|
|
1395
1401
|
}
|
|
1396
|
-
function
|
|
1402
|
+
function gi(t) {
|
|
1397
1403
|
const { data: e, yField: i, x: a, chartSubType: n, splitByField: r } = t, s = n === p.BoxPlotMonoField || n === p.BoxPlotMonoFieldAndCategory || n === p.BoxPlotMonoFieldAndSplitBy || n === p.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = je(s), c = [], l = [], { maxOperandsPerWhereClause: u } = Ge();
|
|
1398
1404
|
let d = [], f = [], m = 1;
|
|
1399
1405
|
return e.forEach((g, y) => {
|
|
1400
|
-
const { outlierMinThreshold: h, outlierMaxThreshold: x } =
|
|
1406
|
+
const { outlierMinThreshold: h, outlierMaxThreshold: x } = vn(g, o);
|
|
1401
1407
|
if (typeof h == "number" && typeof x == "number") {
|
|
1402
1408
|
const F = {
|
|
1403
1409
|
yField: i,
|
|
@@ -1414,21 +1420,21 @@ function mi(t) {
|
|
|
1414
1420
|
m += 1;
|
|
1415
1421
|
}), { outliersFilterBatches: c, dataWithoutOutliersFilterBatches: l };
|
|
1416
1422
|
}
|
|
1417
|
-
function
|
|
1423
|
+
function Nn(t) {
|
|
1418
1424
|
const { data: e, outlierDataItem: i, chartSubType: a, x: n, y: r, meanAndStdDevPerField: s, splitByField: o } = t;
|
|
1419
|
-
let c = s?.[Ve(r,
|
|
1425
|
+
let c = s?.[Ve(r, A.Average)], l = s?.[Ve(r, A.StandardDeviation)];
|
|
1420
1426
|
if (c === void 0 && l === void 0)
|
|
1421
1427
|
switch (a) {
|
|
1422
1428
|
case p.BoxPlotMultiFields: {
|
|
1423
1429
|
const u = je(r), d = e[0];
|
|
1424
|
-
c = Number(d[u[
|
|
1430
|
+
c = Number(d[u[$.Average]]), l = Number(d[u[$.StandardDeviation]]);
|
|
1425
1431
|
break;
|
|
1426
1432
|
}
|
|
1427
1433
|
case p.BoxPlotMultiFieldsAndCategory: {
|
|
1428
1434
|
const u = e.find((d) => d[n] === i[n]);
|
|
1429
1435
|
if (u !== void 0) {
|
|
1430
1436
|
const d = je(r);
|
|
1431
|
-
c = Number(u[d[
|
|
1437
|
+
c = Number(u[d[$.Average]]), l = Number(u[d[$.StandardDeviation]]);
|
|
1432
1438
|
}
|
|
1433
1439
|
break;
|
|
1434
1440
|
}
|
|
@@ -1436,17 +1442,17 @@ function vn(t) {
|
|
|
1436
1442
|
const u = e.find((d) => d[o] === i[o]);
|
|
1437
1443
|
if (u !== void 0) {
|
|
1438
1444
|
const d = je(r);
|
|
1439
|
-
c = Number(u[d[
|
|
1445
|
+
c = Number(u[d[$.Average]]), l = Number(u[d[$.StandardDeviation]]);
|
|
1440
1446
|
}
|
|
1441
1447
|
break;
|
|
1442
1448
|
}
|
|
1443
1449
|
}
|
|
1444
1450
|
return { mean: c, stdDev: l };
|
|
1445
1451
|
}
|
|
1446
|
-
async function
|
|
1452
|
+
async function Tn(t) {
|
|
1447
1453
|
const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: n, meanAndStdDevPerField: r, abortKey: s } = t, o = V(e), c = e[0], { x: l } = c, u = K(c.query?.where), d = z(n), f = re(e), m = [];
|
|
1448
1454
|
for (let h = 0; h < f.length; h += 1) {
|
|
1449
|
-
const x = f[h], { outliersFilterBatches: F } =
|
|
1455
|
+
const x = f[h], { outliersFilterBatches: F } = gi({
|
|
1450
1456
|
data: i,
|
|
1451
1457
|
yField: x,
|
|
1452
1458
|
x: l,
|
|
@@ -1487,7 +1493,7 @@ async function Nn(t) {
|
|
|
1487
1493
|
if (B[F] !== void 0) {
|
|
1488
1494
|
l === b.boxPlot.boxPlotCategory && (B[b.boxPlot.boxPlotCategory] = F);
|
|
1489
1495
|
let N = {
|
|
1490
|
-
key:
|
|
1496
|
+
key: $.Outlier,
|
|
1491
1497
|
chartSubType: o
|
|
1492
1498
|
};
|
|
1493
1499
|
switch (o) {
|
|
@@ -1506,17 +1512,17 @@ async function Nn(t) {
|
|
|
1506
1512
|
};
|
|
1507
1513
|
break;
|
|
1508
1514
|
}
|
|
1509
|
-
const v = G(N),
|
|
1510
|
-
B[v] =
|
|
1511
|
-
const
|
|
1515
|
+
const v = G(N), T = B[F];
|
|
1516
|
+
B[v] = T;
|
|
1517
|
+
const O = `${B[l]}-${B[u]}-${T}`, M = y.get(O);
|
|
1512
1518
|
if (B[Y.uniqueIdsName] = [
|
|
1513
1519
|
...M?.[Y.uniqueIdsName] ?? [],
|
|
1514
1520
|
B[d.objectIdField]
|
|
1515
|
-
], delete B[d.objectIdField],
|
|
1521
|
+
], delete B[d.objectIdField], _i(o)) {
|
|
1516
1522
|
const w = G({
|
|
1517
1523
|
...N,
|
|
1518
1524
|
standardizeValues: !0
|
|
1519
|
-
}), { mean:
|
|
1525
|
+
}), { mean: I, stdDev: L } = Nn({
|
|
1520
1526
|
data: i,
|
|
1521
1527
|
outlierDataItem: B,
|
|
1522
1528
|
chartSubType: o,
|
|
@@ -1525,24 +1531,24 @@ async function Nn(t) {
|
|
|
1525
1531
|
splitByField: u,
|
|
1526
1532
|
meanAndStdDevPerField: r
|
|
1527
1533
|
});
|
|
1528
|
-
|
|
1529
|
-
value:
|
|
1530
|
-
mean:
|
|
1534
|
+
I !== void 0 && L !== void 0 && (B[w] = Ct({
|
|
1535
|
+
value: T,
|
|
1536
|
+
mean: I,
|
|
1531
1537
|
stdDev: L
|
|
1532
1538
|
}));
|
|
1533
1539
|
}
|
|
1534
|
-
delete B[F], B[b.boxPlot.boxPlotOutlierId] = !0, y.set(
|
|
1540
|
+
delete B[F], B[b.boxPlot.boxPlotOutlierId] = !0, y.set(O, B);
|
|
1535
1541
|
}
|
|
1536
1542
|
});
|
|
1537
1543
|
}
|
|
1538
1544
|
return Array.from(y.values());
|
|
1539
1545
|
}
|
|
1540
|
-
async function
|
|
1546
|
+
async function An(t) {
|
|
1541
1547
|
const { data: e, queryObject: i, uniqueQuery: a, elementCount: n, chartConfig: r, chartLimits: s, abortKey: o } = t;
|
|
1542
1548
|
let c = [];
|
|
1543
1549
|
const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = V(l), m = Le(r), { x: g } = m, y = K(m.query?.where), h = [];
|
|
1544
1550
|
for (let F = 0; F < d.length; F += 1) {
|
|
1545
|
-
const C = d[F], { dataWithoutOutliersFilterBatches: B } =
|
|
1551
|
+
const C = d[F], { dataWithoutOutliersFilterBatches: B } = gi({
|
|
1546
1552
|
data: e,
|
|
1547
1553
|
yField: C,
|
|
1548
1554
|
x: g,
|
|
@@ -1550,19 +1556,19 @@ async function Tn(t) {
|
|
|
1550
1556
|
splitByField: y
|
|
1551
1557
|
});
|
|
1552
1558
|
for (let N = 0; N < B.length; N += 1) {
|
|
1553
|
-
const v = B[N],
|
|
1559
|
+
const v = B[N], T = {
|
|
1554
1560
|
...a,
|
|
1555
1561
|
where: H([a.where, v])
|
|
1556
1562
|
};
|
|
1557
|
-
|
|
1558
|
-
(
|
|
1559
|
-
).map((
|
|
1560
|
-
...
|
|
1561
|
-
outStatisticFieldName: `${
|
|
1563
|
+
T.outStatistics !== void 0 && (T.outStatistics = T.outStatistics?.filter(
|
|
1564
|
+
(O) => (O.statisticType === A.Minimum || O.statisticType === A.Maximum) && O.onStatisticField === C
|
|
1565
|
+
).map((O) => ({
|
|
1566
|
+
...O,
|
|
1567
|
+
outStatisticFieldName: `${O.outStatisticFieldName}${b.boxPlot.boxPlotOutliersSuffix}`
|
|
1562
1568
|
}))), h.push(
|
|
1563
1569
|
ut({
|
|
1564
1570
|
queryObject: i,
|
|
1565
|
-
uniqueQuery:
|
|
1571
|
+
uniqueQuery: T,
|
|
1566
1572
|
chartConfig: r,
|
|
1567
1573
|
elementCount: n,
|
|
1568
1574
|
isTimeBinningSeries: !1,
|
|
@@ -1581,7 +1587,7 @@ async function Tn(t) {
|
|
|
1581
1587
|
x: y !== void 0 && y !== "" ? y : g
|
|
1582
1588
|
})), c;
|
|
1583
1589
|
}
|
|
1584
|
-
async function
|
|
1590
|
+
async function Pn(t) {
|
|
1585
1591
|
const { queryObject: e, uniqueQuery: i, chartConfig: a, abortKey: n } = t;
|
|
1586
1592
|
let r;
|
|
1587
1593
|
const { series: s, showMean: o } = a, c = V(s);
|
|
@@ -1595,14 +1601,14 @@ async function An(t) {
|
|
|
1595
1601
|
const g = l[m];
|
|
1596
1602
|
d.push(
|
|
1597
1603
|
{
|
|
1598
|
-
statisticType:
|
|
1604
|
+
statisticType: A.Average,
|
|
1599
1605
|
onStatisticField: g,
|
|
1600
|
-
outStatisticFieldName: `${
|
|
1606
|
+
outStatisticFieldName: `${A.Average}_${g}`
|
|
1601
1607
|
},
|
|
1602
1608
|
{
|
|
1603
|
-
statisticType:
|
|
1609
|
+
statisticType: A.StandardDeviation,
|
|
1604
1610
|
onStatisticField: g,
|
|
1605
|
-
outStatisticFieldName: `${
|
|
1611
|
+
outStatisticFieldName: `${A.StandardDeviation}_${g}`
|
|
1606
1612
|
}
|
|
1607
1613
|
);
|
|
1608
1614
|
}
|
|
@@ -1617,7 +1623,7 @@ async function An(t) {
|
|
|
1617
1623
|
}
|
|
1618
1624
|
return r;
|
|
1619
1625
|
}
|
|
1620
|
-
function
|
|
1626
|
+
function Mn(t) {
|
|
1621
1627
|
const { data: e, additionalData: i, chartConfig: a } = t, n = a.series[0], { x: r } = n, s = K(n.query?.where);
|
|
1622
1628
|
return e.map((o) => {
|
|
1623
1629
|
let c = o;
|
|
@@ -1627,7 +1633,7 @@ function Pn(t) {
|
|
|
1627
1633
|
return l !== void 0 && (c = { ...o, ...l }), c;
|
|
1628
1634
|
});
|
|
1629
1635
|
}
|
|
1630
|
-
function
|
|
1636
|
+
function yi(t) {
|
|
1631
1637
|
const { chartConfig: e, data: i, calculateZScore: a = !1, meanAndStdDevPerField: n } = t, { series: r, showMean: s } = e, o = Le(e), c = V(e.series), { x: l } = o, u = Nt({ showMean: s, seriesConfig: r });
|
|
1632
1638
|
let d = i;
|
|
1633
1639
|
if ((o.type === S.LineSeries || o.type === S.BoxPlotSeries) && i?.[0] !== void 0) {
|
|
@@ -1637,14 +1643,14 @@ function gi(t) {
|
|
|
1637
1643
|
d[0][b.boxPlot.boxPlotCategory] = u[0];
|
|
1638
1644
|
break;
|
|
1639
1645
|
case p.BoxPlotMultiFields:
|
|
1640
|
-
d =
|
|
1646
|
+
d = Sn({
|
|
1641
1647
|
data: i,
|
|
1642
1648
|
yList: u,
|
|
1643
1649
|
calculateZScore: a
|
|
1644
1650
|
});
|
|
1645
1651
|
break;
|
|
1646
1652
|
case p.BoxPlotMonoFieldAndSplitBy:
|
|
1647
|
-
d =
|
|
1653
|
+
d = Fn({
|
|
1648
1654
|
data: i,
|
|
1649
1655
|
splitByField: f,
|
|
1650
1656
|
y: u[0]
|
|
@@ -1652,7 +1658,7 @@ function gi(t) {
|
|
|
1652
1658
|
});
|
|
1653
1659
|
break;
|
|
1654
1660
|
case p.BoxPlotMultiFieldsAndSplitBy:
|
|
1655
|
-
d =
|
|
1661
|
+
d = bn({
|
|
1656
1662
|
splitByField: f,
|
|
1657
1663
|
data: i,
|
|
1658
1664
|
yList: u,
|
|
@@ -1661,7 +1667,7 @@ function gi(t) {
|
|
|
1661
1667
|
});
|
|
1662
1668
|
break;
|
|
1663
1669
|
case p.BoxPlotMultiFieldsAndCategory:
|
|
1664
|
-
d =
|
|
1670
|
+
d = xn({
|
|
1665
1671
|
data: i,
|
|
1666
1672
|
yList: u,
|
|
1667
1673
|
meanAndStdDevPerField: n,
|
|
@@ -1669,7 +1675,7 @@ function gi(t) {
|
|
|
1669
1675
|
});
|
|
1670
1676
|
break;
|
|
1671
1677
|
case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
1672
|
-
d =
|
|
1678
|
+
d = Cn({
|
|
1673
1679
|
splitByField: f,
|
|
1674
1680
|
x: l,
|
|
1675
1681
|
data: i
|
|
@@ -1678,27 +1684,27 @@ function gi(t) {
|
|
|
1678
1684
|
case p.BoxPlotMonoFieldAndCategory:
|
|
1679
1685
|
}
|
|
1680
1686
|
}
|
|
1681
|
-
return
|
|
1687
|
+
return Bn(e, d), d;
|
|
1682
1688
|
}
|
|
1683
|
-
async function
|
|
1689
|
+
async function Ln(t) {
|
|
1684
1690
|
const { data: e, queryObject: i, uniqueQuery: a, fetchFullBoxPlotData: n, chartConfig: r, elementCount: s, chartLimits: o, abortKey: c } = t;
|
|
1685
1691
|
let l = e, u = [];
|
|
1686
1692
|
if (l !== void 0) {
|
|
1687
|
-
const { series: d } = r, f = await
|
|
1693
|
+
const { series: d } = r, f = await Pn({
|
|
1688
1694
|
queryObject: i,
|
|
1689
1695
|
uniqueQuery: a,
|
|
1690
1696
|
chartConfig: r,
|
|
1691
1697
|
abortKey: c
|
|
1692
1698
|
});
|
|
1693
1699
|
if (n !== !1) {
|
|
1694
|
-
u = await
|
|
1700
|
+
u = await Tn({
|
|
1695
1701
|
queryObject: i,
|
|
1696
1702
|
uniqueQuery: a,
|
|
1697
1703
|
seriesConfig: d,
|
|
1698
1704
|
data: l,
|
|
1699
1705
|
abortKey: c
|
|
1700
1706
|
});
|
|
1701
|
-
const m = await
|
|
1707
|
+
const m = await An({
|
|
1702
1708
|
queryObject: i,
|
|
1703
1709
|
uniqueQuery: a,
|
|
1704
1710
|
elementCount: s,
|
|
@@ -1707,13 +1713,13 @@ async function Mn(t) {
|
|
|
1707
1713
|
chartLimits: o,
|
|
1708
1714
|
abortKey: c
|
|
1709
1715
|
});
|
|
1710
|
-
l =
|
|
1716
|
+
l = Mn({
|
|
1711
1717
|
data: l,
|
|
1712
1718
|
additionalData: m,
|
|
1713
1719
|
chartConfig: r
|
|
1714
1720
|
});
|
|
1715
1721
|
}
|
|
1716
|
-
l =
|
|
1722
|
+
l = yi({
|
|
1717
1723
|
chartConfig: r,
|
|
1718
1724
|
data: l,
|
|
1719
1725
|
meanAndStdDevPerField: f,
|
|
@@ -1722,12 +1728,12 @@ async function Mn(t) {
|
|
|
1722
1728
|
}
|
|
1723
1729
|
return { dataItems: l, outliers: u };
|
|
1724
1730
|
}
|
|
1725
|
-
function
|
|
1731
|
+
function wn() {
|
|
1726
1732
|
const t = de.now().offset / 60;
|
|
1727
1733
|
return t !== 0 ? `${t > 0 ? "+" : "-"}INTERVAL '${Math.abs(t) - 1}:59:59' HOUR TO SECOND` : "";
|
|
1728
1734
|
}
|
|
1729
|
-
function
|
|
1730
|
-
const i =
|
|
1735
|
+
function Dn(t, e) {
|
|
1736
|
+
const i = wn(), a = `EXTRACT(YEAR FROM ${t} ${i})`, n = `EXTRACT(MONTH FROM ${t} ${i})`, r = `EXTRACT(DAY FROM ${t} ${i})`, s = `EXTRACT(HOUR FROM ${t} ${i})`, o = `EXTRACT(MINUTE FROM ${t} ${i})`, c = `EXTRACT(SECOND FROM ${t} ${i})`;
|
|
1731
1737
|
let l = [];
|
|
1732
1738
|
switch (e) {
|
|
1733
1739
|
case E.Second:
|
|
@@ -1748,19 +1754,19 @@ function wn(t, e) {
|
|
|
1748
1754
|
}
|
|
1749
1755
|
return l;
|
|
1750
1756
|
}
|
|
1751
|
-
function
|
|
1757
|
+
function On(t) {
|
|
1752
1758
|
const { whereValue: e, outStatistics: i, y: a } = t;
|
|
1753
1759
|
let n = Y.outStatistics.outStatisticFieldName ?? "";
|
|
1754
1760
|
return i?.outStatisticFieldName !== void 0 ? n = i.outStatisticFieldName : i?.onStatisticField !== void 0 && i.statisticType !== void 0 ? n = `${i.statisticType}_${i.onStatisticField}_${e}` : a !== void 0 && (n = [a].flat()[0]), n;
|
|
1755
1761
|
}
|
|
1756
|
-
function
|
|
1762
|
+
function qn(t) {
|
|
1757
1763
|
const e = /* @__PURE__ */ new Map();
|
|
1758
1764
|
for (let i = 0; i < t.length; i += 1) {
|
|
1759
1765
|
const a = t[i], n = a.query?.where;
|
|
1760
1766
|
if (n !== void 0 && "y" in a) {
|
|
1761
1767
|
const r = ge({ where: n, normalize: !0, escape: !1 });
|
|
1762
1768
|
if (r !== "") {
|
|
1763
|
-
const s =
|
|
1769
|
+
const s = On({
|
|
1764
1770
|
whereValue: r,
|
|
1765
1771
|
outStatistics: a.query?.outStatistics?.[0],
|
|
1766
1772
|
y: a.y
|
|
@@ -1771,16 +1777,16 @@ function On(t) {
|
|
|
1771
1777
|
}
|
|
1772
1778
|
return e;
|
|
1773
1779
|
}
|
|
1774
|
-
function
|
|
1780
|
+
function En(t) {
|
|
1775
1781
|
const { uniqueQuery: e, splitByField: i, x: a } = t, n = [...e.groupByFieldsForStatistics ?? [], a, i].filter(
|
|
1776
1782
|
(r) => r !== void 0 && r.trim() !== "" && r !== Jt
|
|
1777
1783
|
);
|
|
1778
1784
|
e.groupByFieldsForStatistics = Array.from(new Set(n));
|
|
1779
1785
|
}
|
|
1780
|
-
function En(t) {
|
|
1781
|
-
return t.statisticType === T.ContinuousPercentile || t.statisticType === T.DiscretePercentile;
|
|
1782
|
-
}
|
|
1783
1786
|
function Vn(t) {
|
|
1787
|
+
return t.statisticType === A.ContinuousPercentile || t.statisticType === A.DiscretePercentile;
|
|
1788
|
+
}
|
|
1789
|
+
function In(t) {
|
|
1784
1790
|
const {
|
|
1785
1791
|
uniqueQuery: e,
|
|
1786
1792
|
y: i,
|
|
@@ -1796,7 +1802,7 @@ function Vn(t) {
|
|
|
1796
1802
|
const { outStatistics: u } = e;
|
|
1797
1803
|
for (let d = 0; d < u.length; d += 1) {
|
|
1798
1804
|
const f = e.outStatistics[d];
|
|
1799
|
-
f !== void 0 &&
|
|
1805
|
+
f !== void 0 && Vn(f) && (s && !Qe(n) ? (u[d].statisticType = A.Count, delete u[d].statisticParameters) : u[d] = {
|
|
1800
1806
|
...u[d],
|
|
1801
1807
|
statisticParameters: u[d].statisticParameters ?? {
|
|
1802
1808
|
value: b.defaultStatParameterValue
|
|
@@ -1813,33 +1819,33 @@ function Vn(t) {
|
|
|
1813
1819
|
}
|
|
1814
1820
|
];
|
|
1815
1821
|
}
|
|
1816
|
-
o === !0 && (!s || ee(c)) && e.outStatistics?.push({ statisticType:
|
|
1822
|
+
o === !0 && (!s || ee(c)) && e.outStatistics?.push({ statisticType: A.EnvelopeAggregate, onStatisticField: "1" });
|
|
1817
1823
|
}
|
|
1818
|
-
function
|
|
1824
|
+
function $n(t) {
|
|
1819
1825
|
const { chartConfig: e, fetchFullBoxPlotData: i } = t, { series: a } = e, n = He(e);
|
|
1820
1826
|
let r = [
|
|
1821
|
-
{ statisticType:
|
|
1827
|
+
{ statisticType: A.Average, suffix: $.Average }
|
|
1822
1828
|
];
|
|
1823
1829
|
i === !0 && (r = [
|
|
1824
1830
|
...r,
|
|
1825
|
-
{ statisticType:
|
|
1831
|
+
{ statisticType: A.Minimum, suffix: $.Min },
|
|
1826
1832
|
{
|
|
1827
|
-
statisticType:
|
|
1833
|
+
statisticType: A.ContinuousPercentile,
|
|
1828
1834
|
statisticParameters: { value: 0.25 },
|
|
1829
|
-
suffix:
|
|
1835
|
+
suffix: $.FirstQuartile
|
|
1830
1836
|
},
|
|
1831
1837
|
{
|
|
1832
|
-
statisticType:
|
|
1838
|
+
statisticType: A.ContinuousPercentile,
|
|
1833
1839
|
statisticParameters: { value: 0.5 },
|
|
1834
|
-
suffix:
|
|
1840
|
+
suffix: $.Median
|
|
1835
1841
|
},
|
|
1836
1842
|
{
|
|
1837
|
-
statisticType:
|
|
1843
|
+
statisticType: A.ContinuousPercentile,
|
|
1838
1844
|
statisticParameters: { value: 0.75 },
|
|
1839
|
-
suffix:
|
|
1845
|
+
suffix: $.ThirdQuartile
|
|
1840
1846
|
},
|
|
1841
|
-
{ statisticType:
|
|
1842
|
-
{ statisticType:
|
|
1847
|
+
{ statisticType: A.Maximum, suffix: $.Max },
|
|
1848
|
+
{ statisticType: A.StandardDeviation, suffix: $.StandardDeviation }
|
|
1843
1849
|
]);
|
|
1844
1850
|
const s = /* @__PURE__ */ new Set();
|
|
1845
1851
|
return n && "y" in a[0] ? [a[0].y].flat().forEach((c) => s.add(c)) : a.forEach((c) => {
|
|
@@ -1851,38 +1857,38 @@ function In(t) {
|
|
|
1851
1857
|
statisticType: l.statisticType,
|
|
1852
1858
|
outStatisticFieldName: `${c}_${l.suffix}`
|
|
1853
1859
|
};
|
|
1854
|
-
return l.statisticType ===
|
|
1860
|
+
return l.statisticType === A.ContinuousPercentile && (u.statisticParameters = l.statisticParameters), u;
|
|
1855
1861
|
})
|
|
1856
1862
|
);
|
|
1857
1863
|
}
|
|
1858
|
-
function
|
|
1864
|
+
function Rn(t, e) {
|
|
1859
1865
|
for (let i = 1; i < e.length; i += 1) {
|
|
1860
1866
|
const a = { ...e[i].query?.outStatistics?.[0] };
|
|
1861
1867
|
a !== void 0 && t.outStatistics !== void 0 && t.outStatistics.push(a);
|
|
1862
1868
|
}
|
|
1863
1869
|
}
|
|
1864
|
-
function
|
|
1870
|
+
function kn(t) {
|
|
1865
1871
|
const { uniqueQuery: e, x: i, splitByField: a, unit: n, chartSubType: r, objectIdField: s } = t;
|
|
1866
1872
|
if (n !== void 0) {
|
|
1867
|
-
const o =
|
|
1873
|
+
const o = Dn(i, n);
|
|
1868
1874
|
e.orderByFields = o, e.groupByFieldsForStatistics = o, r === p.BarAndLineSplitBy && !ee(a) ? e.groupByFieldsForStatistics.push(a) : r === p.BarAndLineNoAggregation && (e.groupByFieldsForStatistics.push(s), e.outStatistics = [
|
|
1869
1875
|
{
|
|
1870
1876
|
onStatisticField: s,
|
|
1871
1877
|
outStatisticFieldName: `COUNT_${s}`,
|
|
1872
|
-
statisticType:
|
|
1878
|
+
statisticType: A.Count
|
|
1873
1879
|
}
|
|
1874
1880
|
]);
|
|
1875
1881
|
}
|
|
1876
1882
|
}
|
|
1877
|
-
function
|
|
1883
|
+
function pi(t) {
|
|
1878
1884
|
const { chartConfig: e, options: i, uniqueQuery: a } = t;
|
|
1879
1885
|
if (i?.chartLimits?.behaviorAfterLimit === $e.RenderUpToTheLimit) {
|
|
1880
|
-
const n =
|
|
1886
|
+
const n = fi(e, i?.chartLimits);
|
|
1881
1887
|
if (n !== void 0) {
|
|
1882
1888
|
const r = V(e.series);
|
|
1883
1889
|
if (r === p.PieFromFields || r === p.BarAndLineFromFields) {
|
|
1884
1890
|
if (a.outStatistics?.[0] !== void 0) {
|
|
1885
|
-
const s = (l, u) => l.statisticType ===
|
|
1891
|
+
const s = (l, u) => l.statisticType === A.EnvelopeAggregate === u, o = a.outStatistics.filter((l) => s(l, !0)), c = a.outStatistics.filter((l) => s(l, !1));
|
|
1886
1892
|
c.splice(n), a.outStatistics = [...c, ...o];
|
|
1887
1893
|
}
|
|
1888
1894
|
} else
|
|
@@ -1903,11 +1909,11 @@ async function ct(t) {
|
|
|
1903
1909
|
let Q = "";
|
|
1904
1910
|
switch (i.fetchNullValues !== !0 && (m !== b.boxPlot.boxPlotCategory && (Q = `${m} IS NOT NULL`), q.trim() !== "" && q !== m && !Tt(f.where) && (Q = H([Q, `${q} IS NOT NULL`]))), u) {
|
|
1905
1911
|
case p.BarAndLineSplitBy: {
|
|
1906
|
-
h =
|
|
1912
|
+
h = qn(l), B = !0, x = !0, F = !0;
|
|
1907
1913
|
break;
|
|
1908
1914
|
}
|
|
1909
1915
|
case p.BarAndLineMultiFields:
|
|
1910
|
-
|
|
1916
|
+
Rn(v, l), F = !0;
|
|
1911
1917
|
break;
|
|
1912
1918
|
case p.PieFromFields:
|
|
1913
1919
|
case p.BarAndLineFromFields:
|
|
@@ -1933,7 +1939,7 @@ async function ct(t) {
|
|
|
1933
1939
|
case p.BarAndLineNoAggregation:
|
|
1934
1940
|
case p.BarAndLineSplitByNoAggregation:
|
|
1935
1941
|
}
|
|
1936
|
-
if (F &&
|
|
1942
|
+
if (F && In({
|
|
1937
1943
|
uniqueQuery: v,
|
|
1938
1944
|
y: g,
|
|
1939
1945
|
useGenericOutStatFieldName: x,
|
|
@@ -1942,27 +1948,27 @@ async function ct(t) {
|
|
|
1942
1948
|
isTimeBinningSeries: y,
|
|
1943
1949
|
returnFeaturesExtent: c,
|
|
1944
1950
|
splitByField: q
|
|
1945
|
-
}), B &&
|
|
1946
|
-
const
|
|
1947
|
-
return !ee(
|
|
1951
|
+
}), B && En({ uniqueQuery: v, splitByField: q, x: m }), N && (v.outStatistics = $n({ chartConfig: e, fetchFullBoxPlotData: s })), C ? delete v.orderByFields : i.orderByFields !== void 0 && (v.orderByFields = i.orderByFields.filter((X) => {
|
|
1952
|
+
const R = X.split(" ");
|
|
1953
|
+
return !ee(R[0]);
|
|
1948
1954
|
})), y && se(l[0])) {
|
|
1949
|
-
const X = z(n), { objectIdField:
|
|
1950
|
-
(await Ne(n)).find((te) => te.name === m)?.type !== Ye.DateOnly &&
|
|
1955
|
+
const X = z(n), { objectIdField: R } = X;
|
|
1956
|
+
(await Ne(n)).find((te) => te.name === m)?.type !== Ye.DateOnly && kn({
|
|
1951
1957
|
uniqueQuery: v,
|
|
1952
1958
|
x: m,
|
|
1953
1959
|
splitByField: K(f.where),
|
|
1954
1960
|
unit: r?.unit ?? l[0].temporalBinning?.unit,
|
|
1955
1961
|
chartSubType: u,
|
|
1956
|
-
objectIdField:
|
|
1962
|
+
objectIdField: R
|
|
1957
1963
|
});
|
|
1958
1964
|
}
|
|
1959
1965
|
v.where = Q;
|
|
1960
1966
|
}
|
|
1961
|
-
|
|
1962
|
-
const { gdbVersion:
|
|
1963
|
-
return
|
|
1967
|
+
pi({ chartConfig: e, options: a, uniqueQuery: v });
|
|
1968
|
+
const { gdbVersion: T, geometry: O, distance: M, units: w, timeExtent: I, where: L, objectIds: D, spatialRelationship: P } = i;
|
|
1969
|
+
return T !== void 0 && (v.gdbVersion = T), O !== void 0 && (v.geometry = O), M !== void 0 && (v.distance = M), w !== void 0 && (v.units = w), I !== void 0 && (v.timeExtent = I), D !== void 0 && (v.objectIds = D), P !== void 0 && (v.spatialRelationship = P), L !== void 0 && (v.where = H([v.where, L])), { uniqueQuery: v, mapToStatField: h };
|
|
1964
1970
|
}
|
|
1965
|
-
async function
|
|
1971
|
+
async function jn(t) {
|
|
1966
1972
|
const { queryObject: e, queryConfig: i, chartConfig: a, abortKey: n } = t, r = a.series[0], { x: s, valueConversion: o } = r, c = Xt(a), l = await ye({
|
|
1967
1973
|
queryObject: e,
|
|
1968
1974
|
queryConfig: i,
|
|
@@ -1983,12 +1989,12 @@ async function kn(t) {
|
|
|
1983
1989
|
}
|
|
1984
1990
|
return u;
|
|
1985
1991
|
}
|
|
1986
|
-
async function
|
|
1992
|
+
async function Wn(t) {
|
|
1987
1993
|
const { queryObject: e, chartConfig: i, queryConfig: a, options: n, abortKey: r } = t, { chartLimits: s } = n ?? {}, o = { valid: !0 };
|
|
1988
1994
|
if (e !== void 0) {
|
|
1989
1995
|
const { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = s ?? {}, u = Xt(i);
|
|
1990
1996
|
let d = !0, f;
|
|
1991
|
-
if (u && (f = (await
|
|
1997
|
+
if (u && (f = (await wi({
|
|
1992
1998
|
chartConfig: i,
|
|
1993
1999
|
queryObject: e,
|
|
1994
2000
|
queryConfig: a,
|
|
@@ -2005,10 +2011,10 @@ async function jn(t) {
|
|
|
2005
2011
|
Number.isFinite(m) && (n.chartLimits = {
|
|
2006
2012
|
...s,
|
|
2007
2013
|
maxGaugeByFeaturesLimit: m
|
|
2008
|
-
}),
|
|
2014
|
+
}), pi({ chartConfig: i, options: n, uniqueQuery: a });
|
|
2009
2015
|
}
|
|
2010
2016
|
if (Number.isNaN(d) || d) {
|
|
2011
|
-
const m = await
|
|
2017
|
+
const m = await jn({
|
|
2012
2018
|
queryObject: e,
|
|
2013
2019
|
chartConfig: i,
|
|
2014
2020
|
queryConfig: a,
|
|
@@ -2023,18 +2029,18 @@ async function jn(t) {
|
|
|
2023
2029
|
}
|
|
2024
2030
|
return o;
|
|
2025
2031
|
}
|
|
2026
|
-
async function
|
|
2032
|
+
async function Xo(t) {
|
|
2027
2033
|
const { queryObject: e, chartConfig: i, queryConfig: a } = t, { minimumFromField: n, maximumFromField: r } = i.axes[0], s = [];
|
|
2028
2034
|
let o = "", c = "";
|
|
2029
|
-
n !== void 0 && (typeof n == "string" ? (o = `${
|
|
2030
|
-
statisticType:
|
|
2035
|
+
n !== void 0 && (typeof n == "string" ? (o = `${A.Minimum}_${n}`, s.push({
|
|
2036
|
+
statisticType: A.Minimum,
|
|
2031
2037
|
onStatisticField: n,
|
|
2032
2038
|
outStatisticFieldName: o
|
|
2033
2039
|
})) : (o = `${n.statisticType}_${n.onStatisticField}`, s.push({
|
|
2034
2040
|
...n,
|
|
2035
2041
|
outStatisticFieldName: o
|
|
2036
|
-
}))), r !== void 0 && (typeof r == "string" ? (c = `${
|
|
2037
|
-
statisticType:
|
|
2042
|
+
}))), r !== void 0 && (typeof r == "string" ? (c = `${A.Maximum}_${r}`, s.push({
|
|
2043
|
+
statisticType: A.Maximum,
|
|
2038
2044
|
onStatisticField: r,
|
|
2039
2045
|
outStatisticFieldName: c
|
|
2040
2046
|
})) : (c = `${r.statisticType}_${r.onStatisticField}`, s.push({
|
|
@@ -2055,14 +2061,14 @@ async function Ko(t) {
|
|
|
2055
2061
|
}), d = u.get(o), f = u.get(c);
|
|
2056
2062
|
return { minimumFromData: d, maximumFromData: f };
|
|
2057
2063
|
}
|
|
2058
|
-
function
|
|
2064
|
+
function Qn(t = _.None, e) {
|
|
2059
2065
|
return t === _.None || t === _.Log && e > 0 || t === _.Sqrt && e >= 0;
|
|
2060
2066
|
}
|
|
2061
|
-
function
|
|
2067
|
+
function hi(t, e) {
|
|
2062
2068
|
const i = { valid: !1 };
|
|
2063
|
-
return e === !0 ? i.invalidType =
|
|
2069
|
+
return e === !0 ? i.invalidType = k.HistogramEmptyField : t === _.Log ? i.invalidType = k.NegativeValueInLogCalculation : t === _.Sqrt && (i.invalidType = k.NegativeValueInSqrtCalculation), i;
|
|
2064
2070
|
}
|
|
2065
|
-
function
|
|
2071
|
+
function Hn(t, e) {
|
|
2066
2072
|
let i = t;
|
|
2067
2073
|
switch (e) {
|
|
2068
2074
|
case _.Log:
|
|
@@ -2074,7 +2080,7 @@ function Qn(t, e) {
|
|
|
2074
2080
|
}
|
|
2075
2081
|
return i;
|
|
2076
2082
|
}
|
|
2077
|
-
function
|
|
2083
|
+
function zn(t) {
|
|
2078
2084
|
let e = t;
|
|
2079
2085
|
const i = t.toString().split(".");
|
|
2080
2086
|
if (i[1] !== void 0) {
|
|
@@ -2083,7 +2089,7 @@ function Hn(t) {
|
|
|
2083
2089
|
}
|
|
2084
2090
|
return e;
|
|
2085
2091
|
}
|
|
2086
|
-
function
|
|
2092
|
+
function Si(t) {
|
|
2087
2093
|
let e = "field";
|
|
2088
2094
|
switch (t) {
|
|
2089
2095
|
case _.Log:
|
|
@@ -2096,27 +2102,27 @@ function hi(t) {
|
|
|
2096
2102
|
}
|
|
2097
2103
|
return e;
|
|
2098
2104
|
}
|
|
2099
|
-
async function
|
|
2100
|
-
const { queryObject: e, fieldName: i, queryConfig: a, abortKey: n } = t, r = z(e), { objectIdField: s } = r, o = `${
|
|
2105
|
+
async function Un(t) {
|
|
2106
|
+
const { queryObject: e, fieldName: i, queryConfig: a, abortKey: n } = t, r = z(e), { objectIdField: s } = r, o = `${A.Count}_${s}`, c = `${A.Count}_${i}`, l = `${A.Minimum}_${i}`, u = `${A.Maximum}_${i}`, d = {
|
|
2101
2107
|
...a,
|
|
2102
2108
|
outStatistics: [
|
|
2103
2109
|
{
|
|
2104
|
-
statisticType:
|
|
2110
|
+
statisticType: A.Count,
|
|
2105
2111
|
onStatisticField: s,
|
|
2106
2112
|
outStatisticFieldName: o
|
|
2107
2113
|
},
|
|
2108
2114
|
{
|
|
2109
|
-
statisticType:
|
|
2115
|
+
statisticType: A.Count,
|
|
2110
2116
|
onStatisticField: i,
|
|
2111
2117
|
outStatisticFieldName: c
|
|
2112
2118
|
},
|
|
2113
2119
|
{
|
|
2114
|
-
statisticType:
|
|
2120
|
+
statisticType: A.Minimum,
|
|
2115
2121
|
onStatisticField: i,
|
|
2116
2122
|
outStatisticFieldName: l
|
|
2117
2123
|
},
|
|
2118
2124
|
{
|
|
2119
|
-
statisticType:
|
|
2125
|
+
statisticType: A.Maximum,
|
|
2120
2126
|
onStatisticField: i,
|
|
2121
2127
|
outStatisticFieldName: u
|
|
2122
2128
|
}
|
|
@@ -2128,15 +2134,15 @@ async function zn(t) {
|
|
|
2128
2134
|
}), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN, h = f.get(u) ?? Number.NaN;
|
|
2129
2135
|
return { countExcludingNulls: g, countIncludingNulls: m, min: y, max: h };
|
|
2130
2136
|
}
|
|
2131
|
-
async function
|
|
2137
|
+
async function Gn(t) {
|
|
2132
2138
|
const { queryConfig: e, chartConfig: i, queryObject: a, abortKey: n } = t, r = i.series[0], { x: s, dataTransformationType: o } = r;
|
|
2133
2139
|
let c = [];
|
|
2134
|
-
const { countIncludingNulls: l, countExcludingNulls: u, min: d, max: f } = await
|
|
2140
|
+
const { countIncludingNulls: l, countExcludingNulls: u, min: d, max: f } = await Un({
|
|
2135
2141
|
queryObject: a,
|
|
2136
2142
|
queryConfig: e,
|
|
2137
2143
|
fieldName: s,
|
|
2138
2144
|
abortKey: n
|
|
2139
|
-
}), m =
|
|
2145
|
+
}), m = Qn(o, d), g = u < 2 || d === f, y = { ...e };
|
|
2140
2146
|
return y.where = H([y.where, `${s} is not null`]), {
|
|
2141
2147
|
rawData: c,
|
|
2142
2148
|
dataCompatibleWithTransformation: m,
|
|
@@ -2145,11 +2151,11 @@ async function Un(t) {
|
|
|
2145
2151
|
countIncludingNulls: l
|
|
2146
2152
|
};
|
|
2147
2153
|
}
|
|
2148
|
-
function
|
|
2154
|
+
function _n(t) {
|
|
2149
2155
|
const e = { ...t };
|
|
2150
2156
|
return e.avg = e.avg ?? Number.NaN, e.count = e.count ?? Number.NaN, e.max = e.max ?? Number.NaN, e.min = e.min ?? Number.NaN, e.stddev = e.stddev ?? Number.NaN, e.sum = e.sum ?? Number.NaN, e.variance = e.variance ?? Number.NaN, e.median = e.median ?? Number.NaN, e;
|
|
2151
2157
|
}
|
|
2152
|
-
function
|
|
2158
|
+
function Yn(t) {
|
|
2153
2159
|
const { seriesConfig: e, layer: i, useFeaturesInView: a, view: n, queryConfig: r } = t, { x: s, dataTransformationType: o } = e;
|
|
2154
2160
|
let c = {
|
|
2155
2161
|
layer: i,
|
|
@@ -2161,10 +2167,10 @@ function _n(t) {
|
|
|
2161
2167
|
};
|
|
2162
2168
|
return o !== _.None && (c = {
|
|
2163
2169
|
...c,
|
|
2164
|
-
normalizationType:
|
|
2170
|
+
normalizationType: Si(o)
|
|
2165
2171
|
}), c;
|
|
2166
2172
|
}
|
|
2167
|
-
function
|
|
2173
|
+
function Kn(t) {
|
|
2168
2174
|
const { seriesConfig: e, layer: i, useFeaturesInView: a, view: n, minValue: r, maxValue: s, queryConfig: o } = t, { x: c, binCount: l, dataTransformationType: u } = e;
|
|
2169
2175
|
let d = {
|
|
2170
2176
|
layer: i,
|
|
@@ -2172,7 +2178,7 @@ function Yn(t) {
|
|
|
2172
2178
|
field: c,
|
|
2173
2179
|
minValue: r,
|
|
2174
2180
|
maxValue: s,
|
|
2175
|
-
numBins: l ??
|
|
2181
|
+
numBins: l ?? Ji,
|
|
2176
2182
|
classificationMethod: "equal-interval",
|
|
2177
2183
|
// 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)
|
|
2178
2184
|
sqlWhere: Tt(o.where) ? void 0 : o.where,
|
|
@@ -2180,14 +2186,14 @@ function Yn(t) {
|
|
|
2180
2186
|
};
|
|
2181
2187
|
return u !== _.None && (d = {
|
|
2182
2188
|
...d,
|
|
2183
|
-
normalizationType:
|
|
2189
|
+
normalizationType: Si(u)
|
|
2184
2190
|
}), d;
|
|
2185
2191
|
}
|
|
2186
|
-
function
|
|
2192
|
+
function Jn(t, e) {
|
|
2187
2193
|
let i = Number.NaN;
|
|
2188
2194
|
return t !== void 0 && e !== void 0 && (i = t - e), i;
|
|
2189
2195
|
}
|
|
2190
|
-
async function
|
|
2196
|
+
async function Xn(t) {
|
|
2191
2197
|
const {
|
|
2192
2198
|
chartConfig: e,
|
|
2193
2199
|
queryConfig: i,
|
|
@@ -2199,7 +2205,7 @@ async function Jn(t) {
|
|
|
2199
2205
|
} = t, c = e.series[0], { dataTransformationType: l } = c;
|
|
2200
2206
|
let u = { valid: !0 };
|
|
2201
2207
|
if (a !== void 0) {
|
|
2202
|
-
const d = z(a), m =
|
|
2208
|
+
const d = z(a), m = Yi(i?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = Yn({
|
|
2203
2209
|
seriesConfig: c,
|
|
2204
2210
|
layer: d,
|
|
2205
2211
|
view: g,
|
|
@@ -2209,7 +2215,7 @@ async function Jn(t) {
|
|
|
2209
2215
|
let h;
|
|
2210
2216
|
if (g !== void 0 && (h = new $t({
|
|
2211
2217
|
geometry: g.extent
|
|
2212
|
-
}), g.extent !== void 0 &&
|
|
2218
|
+
}), g.extent !== void 0 && Ki(d))) {
|
|
2213
2219
|
const { distance: M, units: w } = i;
|
|
2214
2220
|
M !== void 0 && (h.distance = M), w !== void 0 && (h.units = w);
|
|
2215
2221
|
}
|
|
@@ -2231,19 +2237,19 @@ async function Jn(t) {
|
|
|
2231
2237
|
M?.median && (x.median = M.median);
|
|
2232
2238
|
} catch {
|
|
2233
2239
|
}
|
|
2234
|
-
x =
|
|
2235
|
-
const { avg: F, count: C, stddev: B, min: N, max: v, sum:
|
|
2240
|
+
x = _n(x);
|
|
2241
|
+
const { avg: F, count: C, stddev: B, min: N, max: v, sum: T, median: O } = x;
|
|
2236
2242
|
if (C === 0)
|
|
2237
2243
|
u = {
|
|
2238
|
-
...
|
|
2244
|
+
...hi(l)
|
|
2239
2245
|
};
|
|
2240
2246
|
else {
|
|
2241
|
-
const M =
|
|
2247
|
+
const M = Kn({
|
|
2242
2248
|
seriesConfig: c,
|
|
2243
2249
|
layer: d,
|
|
2244
2250
|
view: g,
|
|
2245
2251
|
useFeaturesInView: m,
|
|
2246
|
-
minValue:
|
|
2252
|
+
minValue: zn(N),
|
|
2247
2253
|
maxValue: v,
|
|
2248
2254
|
valueExpression: y.valueExpression,
|
|
2249
2255
|
queryConfig: i
|
|
@@ -2251,35 +2257,35 @@ async function Jn(t) {
|
|
|
2251
2257
|
M.filter = h;
|
|
2252
2258
|
let w;
|
|
2253
2259
|
try {
|
|
2254
|
-
w = await
|
|
2260
|
+
w = await Ca(M);
|
|
2255
2261
|
} catch (L) {
|
|
2256
2262
|
throw new pt(Vt.QueryFeaturesError, o.errors.queryError, L);
|
|
2257
2263
|
}
|
|
2258
|
-
const
|
|
2264
|
+
const I = Jn(r, n);
|
|
2259
2265
|
u.data = {
|
|
2260
2266
|
mean: F,
|
|
2261
2267
|
stddev: B,
|
|
2262
2268
|
min: N,
|
|
2263
2269
|
max: v,
|
|
2264
|
-
median: Number(
|
|
2270
|
+
median: Number(O),
|
|
2265
2271
|
bins: w?.bins,
|
|
2266
2272
|
count: n,
|
|
2267
|
-
nulls:
|
|
2268
|
-
sum:
|
|
2273
|
+
nulls: I,
|
|
2274
|
+
sum: T ?? void 0
|
|
2269
2275
|
}, u.data.bins.length > 0 && (u.data.bins[u.data.bins.length - 1].isLastBin = !0);
|
|
2270
2276
|
}
|
|
2271
2277
|
}
|
|
2272
2278
|
return u;
|
|
2273
2279
|
}
|
|
2274
|
-
async function
|
|
2275
|
-
const { chartConfig: e, queryConfig: i, queryObject: a, options: n, abortKey: r, errorStrings: s } = t, { series: o } = e, c = o[0], { rawData: l, dataCompatibleWithTransformation: u, dataCountIncompatible: d, countIncludingNulls: f, countExcludingNulls: m } = await
|
|
2280
|
+
async function Fi(t) {
|
|
2281
|
+
const { chartConfig: e, queryConfig: i, queryObject: a, options: n, abortKey: r, errorStrings: s } = t, { series: o } = e, c = o[0], { rawData: l, dataCompatibleWithTransformation: u, dataCountIncompatible: d, countIncludingNulls: f, countExcludingNulls: m } = await Gn({
|
|
2276
2282
|
queryObject: a,
|
|
2277
2283
|
chartConfig: e,
|
|
2278
2284
|
queryConfig: i,
|
|
2279
2285
|
abortKey: r
|
|
2280
2286
|
});
|
|
2281
2287
|
let g = { valid: !0 };
|
|
2282
|
-
return !u || d ? g =
|
|
2288
|
+
return !u || d ? g = hi(c.dataTransformationType, d) : g = await Xn({
|
|
2283
2289
|
chartConfig: e,
|
|
2284
2290
|
queryObject: a,
|
|
2285
2291
|
queryConfig: i,
|
|
@@ -2289,7 +2295,7 @@ async function Si(t) {
|
|
|
2289
2295
|
errorStrings: s
|
|
2290
2296
|
}), g;
|
|
2291
2297
|
}
|
|
2292
|
-
async function
|
|
2298
|
+
async function Zn(t) {
|
|
2293
2299
|
const { queryObject: e, queryConfig: i, chartConfig: a, x: n } = t, { series: r } = a, { dataTransformationType: s } = r[0], o = {
|
|
2294
2300
|
...i,
|
|
2295
2301
|
orderByFields: [n],
|
|
@@ -2301,7 +2307,7 @@ async function Xn(t) {
|
|
|
2301
2307
|
queryObject: e,
|
|
2302
2308
|
queryConfig: o
|
|
2303
2309
|
})).map((u) => ({
|
|
2304
|
-
[n]:
|
|
2310
|
+
[n]: Hn(u.attributes[n], s)
|
|
2305
2311
|
})) }
|
|
2306
2312
|
};
|
|
2307
2313
|
}
|
|
@@ -2309,18 +2315,18 @@ const Me = {
|
|
|
2309
2315
|
groupByCaseBegin: "CASE",
|
|
2310
2316
|
groupByOutKeyword: "OUT",
|
|
2311
2317
|
groupByCaseEnd: "ELSE 'OUT' END"
|
|
2312
|
-
},
|
|
2313
|
-
async function
|
|
2318
|
+
}, er = "{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";
|
|
2319
|
+
async function tr(t) {
|
|
2314
2320
|
const { chartConfig: e, queryObject: i, queryConfig: a, abortKey: n } = t, r = e.series[0], { x: s, y: o } = r, { dataContextCountDistinctX: c, dataContextCountDistinctY: l } = b.scatterplotAggregationFields, u = {
|
|
2315
2321
|
...a,
|
|
2316
2322
|
outStatistics: [
|
|
2317
2323
|
{
|
|
2318
|
-
statisticType:
|
|
2324
|
+
statisticType: A.Count,
|
|
2319
2325
|
outStatisticFieldName: c,
|
|
2320
2326
|
onStatisticField: s
|
|
2321
2327
|
},
|
|
2322
2328
|
{
|
|
2323
|
-
statisticType:
|
|
2329
|
+
statisticType: A.Count,
|
|
2324
2330
|
outStatisticFieldName: l,
|
|
2325
2331
|
onStatisticField: o
|
|
2326
2332
|
}
|
|
@@ -2334,7 +2340,7 @@ async function er(t) {
|
|
|
2334
2340
|
abortKey: n
|
|
2335
2341
|
});
|
|
2336
2342
|
}
|
|
2337
|
-
async function
|
|
2343
|
+
async function ir(t) {
|
|
2338
2344
|
const { statsMap: e, chartConfig: i, queryObject: a, options: n, queryConfig: r, abortKey: s } = t, {
|
|
2339
2345
|
dataContextXMinField: o,
|
|
2340
2346
|
dataContextXMaxField: c,
|
|
@@ -2346,19 +2352,19 @@ async function tr(t) {
|
|
|
2346
2352
|
let m, g, y, h, x;
|
|
2347
2353
|
const F = e.get(o), C = e.get(c), B = e.get(l), N = e.get(u);
|
|
2348
2354
|
if (F != null && B !== void 0 && B !== null && C !== void 0 && C !== null && N !== void 0 && N !== null && !Number.isNaN(F + C + B + N)) {
|
|
2349
|
-
const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits),
|
|
2355
|
+
const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), O = Math.floor(Math.sqrt(v)), M = await tr({
|
|
2350
2356
|
queryObject: a,
|
|
2351
2357
|
chartConfig: i,
|
|
2352
2358
|
queryConfig: r,
|
|
2353
2359
|
abortKey: s
|
|
2354
2360
|
});
|
|
2355
|
-
y = Math.min(M.get(f) ?? Number.NaN,
|
|
2361
|
+
y = Math.min(M.get(f) ?? Number.NaN, O), h = Math.min(M.get(d) ?? Number.NaN, O), x = h * y, m = C === F ? 0 : (C - F) / (h - 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, h), e.set(b.scatterplotAggregationFields.realGridSize, x);
|
|
2356
2362
|
}
|
|
2357
2363
|
}
|
|
2358
|
-
function
|
|
2364
|
+
function ar(t) {
|
|
2359
2365
|
const { groupByFieldsForStatistics: e, x: i, y: a, xValue: n, yValue: r, xStep: s, yStep: o, endOfRow: c, endOfColumn: l } = t;
|
|
2360
2366
|
let u = e === "" ? Me.groupByCaseBegin : e;
|
|
2361
|
-
return u = ue(
|
|
2367
|
+
return u = ue(er, {
|
|
2362
2368
|
groupByFieldsForStatistics: u,
|
|
2363
2369
|
x: i,
|
|
2364
2370
|
y: a,
|
|
@@ -2376,7 +2382,7 @@ function ir(t) {
|
|
|
2376
2382
|
// we use = to catch the last value of the line, < otherwise
|
|
2377
2383
|
}), u;
|
|
2378
2384
|
}
|
|
2379
|
-
async function
|
|
2385
|
+
async function nr(t) {
|
|
2380
2386
|
const { chartConfig: e, queryConfig: i, queryObject: a, xMin: n, xMax: r, yMin: s, yMax: o, abortKey: c } = t, l = e.series[0], { x: u, y: d } = l, f = { ...i };
|
|
2381
2387
|
return f.where = H([f.where, `${u}>=${n}`, `${u}<=${r}`]), u !== d && (f.where = H([f.where, `${d}>=${s}`, `${d}<=${o}`])), await ye({
|
|
2382
2388
|
queryObject: a,
|
|
@@ -2387,7 +2393,7 @@ async function ar(t) {
|
|
|
2387
2393
|
abortKey: c
|
|
2388
2394
|
});
|
|
2389
2395
|
}
|
|
2390
|
-
async function
|
|
2396
|
+
async function rr(t) {
|
|
2391
2397
|
const { statsMap: e, chartConfig: i, queryObject: a, queryConfig: n, useQueryAttributeBins: r, errorStrings: s, abortKey: o } = t, c = i.series[0], { x: l, y: u } = c, {
|
|
2392
2398
|
dataContextXMinField: d,
|
|
2393
2399
|
dataContextXMaxField: f,
|
|
@@ -2399,46 +2405,46 @@ async function nr(t) {
|
|
|
2399
2405
|
let x;
|
|
2400
2406
|
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;
|
|
2401
2407
|
if (F != null && N !== void 0 && N !== null && C !== void 0 && C !== null && v !== void 0 && v !== null && !Number.isNaN(F + C + N + v)) {
|
|
2402
|
-
const
|
|
2403
|
-
if (q?.forEach((
|
|
2404
|
-
We(
|
|
2405
|
-
onStatisticField:
|
|
2406
|
-
outStatisticFieldName:
|
|
2407
|
-
statisticType:
|
|
2408
|
+
const T = z(a), { objectIdField: O } = T, M = e?.get(b.scatterplotAggregationFields.xStep), w = e?.get(b.scatterplotAggregationFields.yStep), I = e?.get(b.scatterplotAggregationFields.realGridSize), L = e?.get(b.scatterplotAggregationFields.rowCount), D = e?.get(b.scatterplotAggregationFields.columnCount), P = /* @__PURE__ */ new Map(), q = await Ne(a);
|
|
2409
|
+
if (q?.forEach((R) => {
|
|
2410
|
+
We(R) && P.set(R.name, {
|
|
2411
|
+
onStatisticField: R.name,
|
|
2412
|
+
outStatisticFieldName: R.name,
|
|
2413
|
+
statisticType: A.Maximum
|
|
2408
2414
|
});
|
|
2409
|
-
}), (q.filter((
|
|
2410
|
-
We(
|
|
2411
|
-
onStatisticField:
|
|
2412
|
-
outStatisticFieldName:
|
|
2413
|
-
statisticType:
|
|
2415
|
+
}), (q.filter((R) => c?.additionalTooltipFields?.includes(R.name)) ?? [])?.forEach((R) => {
|
|
2416
|
+
We(R) || P.set(R.name, {
|
|
2417
|
+
onStatisticField: R.name,
|
|
2418
|
+
outStatisticFieldName: R.name,
|
|
2419
|
+
statisticType: A.Maximum
|
|
2414
2420
|
});
|
|
2415
|
-
}), (await Zt(
|
|
2416
|
-
|
|
2417
|
-
onStatisticField:
|
|
2418
|
-
outStatisticFieldName:
|
|
2419
|
-
statisticType:
|
|
2421
|
+
}), (await Zt(T)).forEach((R) => {
|
|
2422
|
+
P.set(R, {
|
|
2423
|
+
onStatisticField: R,
|
|
2424
|
+
outStatisticFieldName: R,
|
|
2425
|
+
statisticType: A.Maximum
|
|
2420
2426
|
});
|
|
2421
|
-
}),
|
|
2422
|
-
onStatisticField:
|
|
2427
|
+
}), P.set(O, {
|
|
2428
|
+
onStatisticField: O,
|
|
2423
2429
|
outStatisticFieldName: h,
|
|
2424
|
-
statisticType:
|
|
2430
|
+
statisticType: A.Count
|
|
2425
2431
|
}).set(l, {
|
|
2426
2432
|
onStatisticField: l,
|
|
2427
2433
|
outStatisticFieldName: l,
|
|
2428
|
-
statisticType:
|
|
2434
|
+
statisticType: A.Maximum
|
|
2429
2435
|
}).set(u, {
|
|
2430
2436
|
onStatisticField: u,
|
|
2431
2437
|
outStatisticFieldName: u,
|
|
2432
|
-
statisticType:
|
|
2438
|
+
statisticType: A.Maximum
|
|
2433
2439
|
}), M !== void 0 && w !== void 0) {
|
|
2434
2440
|
if (r) {
|
|
2435
|
-
const
|
|
2441
|
+
const R = {
|
|
2436
2442
|
...n,
|
|
2437
|
-
outStatistics: [...
|
|
2443
|
+
outStatistics: [...P.values()]
|
|
2438
2444
|
};
|
|
2439
|
-
x = await
|
|
2445
|
+
x = await Xi({
|
|
2440
2446
|
queryObject: a,
|
|
2441
|
-
queryConfig:
|
|
2447
|
+
queryConfig: R,
|
|
2442
2448
|
xStep: M,
|
|
2443
2449
|
xMin: F,
|
|
2444
2450
|
xMax: C,
|
|
@@ -2447,13 +2453,13 @@ async function nr(t) {
|
|
|
2447
2453
|
yStep: w,
|
|
2448
2454
|
errorStrings: s
|
|
2449
2455
|
});
|
|
2450
|
-
} else if (L !== void 0 &&
|
|
2451
|
-
let
|
|
2452
|
-
const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ce } = Ge(), we = await
|
|
2456
|
+
} else if (L !== void 0 && D !== void 0) {
|
|
2457
|
+
let R = 0;
|
|
2458
|
+
const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ce } = Ge(), we = await Zi(T) ? ce : Z, Dt = [];
|
|
2453
2459
|
let dt = !0, De = F, Te = N, Oe = "", Je = 1, ft = 1, Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER;
|
|
2454
|
-
for (; ft <=
|
|
2460
|
+
for (; ft <= D && dt; ) {
|
|
2455
2461
|
for (Te = N, Je = 1; Je <= L && dt; ) {
|
|
2456
|
-
if (Oe =
|
|
2462
|
+
if (Oe = ar({
|
|
2457
2463
|
groupByFieldsForStatistics: Oe,
|
|
2458
2464
|
x: l,
|
|
2459
2465
|
y: u,
|
|
@@ -2462,18 +2468,18 @@ async function nr(t) {
|
|
|
2462
2468
|
xStep: M,
|
|
2463
2469
|
yStep: w,
|
|
2464
2470
|
endOfRow: Je === L,
|
|
2465
|
-
endOfColumn: ft ===
|
|
2466
|
-
}), De < Xe && (Xe = De), De + M > Ze && (Ze = De + M), Te < et && (et = Te), Te + M > tt && (tt = Te + w),
|
|
2471
|
+
endOfColumn: ft === D
|
|
2472
|
+
}), De < Xe && (Xe = De), De + M > Ze && (Ze = De + M), Te < et && (et = Te), Te + M > tt && (tt = Te + w), R += 1, R % we === 0 || R === I || R === B) {
|
|
2467
2473
|
Oe = `${Oe} ${Me.groupByCaseEnd}`;
|
|
2468
|
-
const
|
|
2474
|
+
const Vi = {
|
|
2469
2475
|
...n,
|
|
2470
2476
|
groupByFieldsForStatistics: [Oe],
|
|
2471
|
-
outStatistics: [...
|
|
2477
|
+
outStatistics: [...P.values()]
|
|
2472
2478
|
};
|
|
2473
2479
|
Dt.push(
|
|
2474
|
-
|
|
2480
|
+
nr({
|
|
2475
2481
|
chartConfig: i,
|
|
2476
|
-
queryConfig:
|
|
2482
|
+
queryConfig: Vi,
|
|
2477
2483
|
queryObject: a,
|
|
2478
2484
|
xMin: Xe,
|
|
2479
2485
|
xMax: Ze,
|
|
@@ -2481,7 +2487,7 @@ async function nr(t) {
|
|
|
2481
2487
|
yMax: tt,
|
|
2482
2488
|
abortKey: o
|
|
2483
2489
|
})
|
|
2484
|
-
), Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER, Oe = "",
|
|
2490
|
+
), Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER, Oe = "", R === I && (dt = !1);
|
|
2485
2491
|
}
|
|
2486
2492
|
Te += w, Je += 1;
|
|
2487
2493
|
}
|
|
@@ -2493,7 +2499,7 @@ async function nr(t) {
|
|
|
2493
2499
|
}
|
|
2494
2500
|
return x;
|
|
2495
2501
|
}
|
|
2496
|
-
const
|
|
2502
|
+
const sr = {
|
|
2497
2503
|
dataFormat: "json",
|
|
2498
2504
|
outputFormat: "json",
|
|
2499
2505
|
typeKey: "analyticType",
|
|
@@ -2503,33 +2509,33 @@ const rr = {
|
|
|
2503
2509
|
interceptPropertyList: ["Intercept", "INTERCEPT", "intercept"],
|
|
2504
2510
|
r2PropertyList: ["R2", "r2"]
|
|
2505
2511
|
};
|
|
2506
|
-
async function
|
|
2512
|
+
async function or(t) {
|
|
2507
2513
|
const { queryObject: e } = t;
|
|
2508
2514
|
let i = !1;
|
|
2509
|
-
const a =
|
|
2515
|
+
const a = ea(e), n = z(e), r = ei(n);
|
|
2510
2516
|
if (a && r.url !== void 0 && r.url !== null) {
|
|
2511
2517
|
const s = `${r.url}/${r.layerId}?f=json`;
|
|
2512
2518
|
try {
|
|
2513
|
-
const o = (await
|
|
2519
|
+
const o = (await ha(s)).data, c = o?.advancedQueryCapabilities?.supportsQueryAnalytic === !0, l = o?.sqlParserVersion === void 0 || r.version != null && r.version >= 10.91;
|
|
2514
2520
|
i = c && l;
|
|
2515
2521
|
} catch {
|
|
2516
2522
|
}
|
|
2517
2523
|
}
|
|
2518
2524
|
return i;
|
|
2519
2525
|
}
|
|
2520
|
-
function
|
|
2521
|
-
const { x: e, y: i, trendlineXToY: a, data: n } = t, [r, s] = n ?
|
|
2526
|
+
function lr(t) {
|
|
2527
|
+
const { x: e, y: i, trendlineXToY: a, data: n } = t, [r, s] = n ? ki(n, (c) => c[e]) : [Number.NaN, Number.NaN];
|
|
2522
2528
|
return [
|
|
2523
2529
|
{ [e]: r ?? Number.NaN, [i]: a(r ?? Number.NaN) },
|
|
2524
2530
|
{ [e]: s ?? Number.NaN, [i]: a(s ?? Number.NaN) }
|
|
2525
2531
|
];
|
|
2526
2532
|
}
|
|
2527
|
-
function
|
|
2533
|
+
function cr(t) {
|
|
2528
2534
|
const { data: e, x: i, y: a } = t;
|
|
2529
2535
|
let n = [];
|
|
2530
2536
|
return e !== void 0 && (n = e.filter((r) => Number.isFinite(r[i]) && Number.isFinite(r[a])).map((r) => [r[i], r[a]])), n;
|
|
2531
2537
|
}
|
|
2532
|
-
async function
|
|
2538
|
+
async function ur(t) {
|
|
2533
2539
|
const { statsMap: e, queryObject: i, chartConfig: a, queryConfig: n } = t, r = a.series[0], { x: s, y: o } = r;
|
|
2534
2540
|
let c = Number.NaN, l = [
|
|
2535
2541
|
{ [s]: Number.NaN, [o]: Number.NaN },
|
|
@@ -2544,7 +2550,7 @@ async function cr(t) {
|
|
|
2544
2550
|
slopePropertyList: y,
|
|
2545
2551
|
interceptPropertyList: h,
|
|
2546
2552
|
r2PropertyList: x
|
|
2547
|
-
} =
|
|
2553
|
+
} = sr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await ta({
|
|
2548
2554
|
queryObject: i,
|
|
2549
2555
|
queryConfig: n,
|
|
2550
2556
|
outputFormat: d,
|
|
@@ -2553,15 +2559,15 @@ async function cr(t) {
|
|
|
2553
2559
|
});
|
|
2554
2560
|
if (C !== void 0) {
|
|
2555
2561
|
let B = Number.NaN, N = Number.NaN;
|
|
2556
|
-
const { expr: v } = mt(C, y), { expr:
|
|
2557
|
-
v !== void 0 && Number.isFinite(C[v]) && (B = C[v]),
|
|
2558
|
-
const { dataContextXMinField: M, dataContextXMaxField: w, dataContextYMinField:
|
|
2559
|
-
let Z =
|
|
2560
|
-
for (; !(ce >= q && ce <= Q) && Z <=
|
|
2561
|
-
Z +=
|
|
2562
|
-
let te =
|
|
2563
|
-
for (; !(we >= q && we <= Q) && te >=
|
|
2564
|
-
te -=
|
|
2562
|
+
const { expr: v } = mt(C, y), { expr: T } = mt(C, h), { expr: O } = mt(C, x);
|
|
2563
|
+
v !== void 0 && Number.isFinite(C[v]) && (B = C[v]), T !== void 0 && Number.isFinite(C[T]) && (N = C[T]), O !== void 0 && Number.isFinite(C[O]) && (c = C[O]);
|
|
2564
|
+
const { dataContextXMinField: M, dataContextXMaxField: w, dataContextYMinField: I, dataContextYMaxField: L } = b.scatterplotAggregationFields, D = e.get(M) ?? Number.NaN, P = e.get(w) ?? Number.NaN, q = e.get(I) ?? Number.NaN, Q = e.get(L) ?? Number.NaN, R = (P - D) / 100;
|
|
2565
|
+
let Z = D - R, ce = Number.NaN;
|
|
2566
|
+
for (; !(ce >= q && ce <= Q) && Z <= P; )
|
|
2567
|
+
Z += R, ce = B * Z + N;
|
|
2568
|
+
let te = P + R, we = Number.NaN;
|
|
2569
|
+
for (; !(we >= q && we <= Q) && te >= D; )
|
|
2570
|
+
te -= R, we = B * te + N;
|
|
2565
2571
|
l = [
|
|
2566
2572
|
{ [s]: Z, [o]: ce },
|
|
2567
2573
|
{ [s]: te, [o]: we }
|
|
@@ -2569,31 +2575,31 @@ async function cr(t) {
|
|
|
2569
2575
|
}
|
|
2570
2576
|
return { r2: c, trendLinePoints: l };
|
|
2571
2577
|
}
|
|
2572
|
-
function
|
|
2578
|
+
function bi(t) {
|
|
2573
2579
|
const { data: e, chartConfig: i } = t, a = i.series[0], { x: n, y: r } = a;
|
|
2574
2580
|
let { r2: s, trendLinePoints: o } = b.scatterplotSeries;
|
|
2575
|
-
const c =
|
|
2581
|
+
const c = cr({ data: e, x: n, y: r });
|
|
2576
2582
|
if (c !== void 0) {
|
|
2577
|
-
const l =
|
|
2578
|
-
s =
|
|
2583
|
+
const l = Ba(c), u = va(l);
|
|
2584
|
+
s = Na(c, u), o = lr({ x: n, y: r, trendlineXToY: u, data: e });
|
|
2579
2585
|
}
|
|
2580
2586
|
return { r2: s, trendLinePoints: o };
|
|
2581
2587
|
}
|
|
2582
|
-
async function
|
|
2583
|
-
const e = await
|
|
2588
|
+
async function dr(t) {
|
|
2589
|
+
const e = await or(t), { chartConfig: i } = t, a = i.series[0], { x: n, y: r } = a, { r2: s } = b.scatterplotSeries, o = [
|
|
2584
2590
|
{ [n]: Number.NaN, [r]: Number.NaN },
|
|
2585
2591
|
{ [n]: Number.NaN, [r]: Number.NaN }
|
|
2586
2592
|
];
|
|
2587
2593
|
let c = { r2: s, trendLinePoints: o }, l = !1;
|
|
2588
2594
|
if (e)
|
|
2589
2595
|
try {
|
|
2590
|
-
c = await
|
|
2596
|
+
c = await ur(t);
|
|
2591
2597
|
} catch {
|
|
2592
2598
|
l = !0;
|
|
2593
2599
|
}
|
|
2594
|
-
return (!e || l) && (c =
|
|
2600
|
+
return (!e || l) && (c = bi(t)), c;
|
|
2595
2601
|
}
|
|
2596
|
-
async function
|
|
2602
|
+
async function fr(t) {
|
|
2597
2603
|
const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n } = t, r = e.series[0], { x: s, y: o } = r;
|
|
2598
2604
|
let c = /* @__PURE__ */ new Map();
|
|
2599
2605
|
const {
|
|
@@ -2604,29 +2610,29 @@ async function dr(t) {
|
|
|
2604
2610
|
queryNumberOfFeatures: m
|
|
2605
2611
|
} = b.scatterplotAggregationFields, { objectIdField: g } = z(a), y = [
|
|
2606
2612
|
{
|
|
2607
|
-
statisticType:
|
|
2613
|
+
statisticType: A.Count,
|
|
2608
2614
|
onStatisticField: g,
|
|
2609
2615
|
outStatisticFieldName: m
|
|
2610
2616
|
},
|
|
2611
2617
|
{
|
|
2612
|
-
statisticType:
|
|
2618
|
+
statisticType: A.Minimum,
|
|
2613
2619
|
outStatisticFieldName: l,
|
|
2614
2620
|
onStatisticField: s
|
|
2615
2621
|
},
|
|
2616
2622
|
{
|
|
2617
|
-
statisticType:
|
|
2623
|
+
statisticType: A.Maximum,
|
|
2618
2624
|
outStatisticFieldName: u,
|
|
2619
2625
|
onStatisticField: s
|
|
2620
2626
|
}
|
|
2621
2627
|
];
|
|
2622
2628
|
s !== o && y.push(
|
|
2623
2629
|
{
|
|
2624
|
-
statisticType:
|
|
2630
|
+
statisticType: A.Minimum,
|
|
2625
2631
|
outStatisticFieldName: d,
|
|
2626
2632
|
onStatisticField: o
|
|
2627
2633
|
},
|
|
2628
2634
|
{
|
|
2629
|
-
statisticType:
|
|
2635
|
+
statisticType: A.Maximum,
|
|
2630
2636
|
outStatisticFieldName: f,
|
|
2631
2637
|
onStatisticField: o
|
|
2632
2638
|
}
|
|
@@ -2642,11 +2648,11 @@ function at(t) {
|
|
|
2642
2648
|
const { value: e, valueMin: i, valueMax: a } = t;
|
|
2643
2649
|
return e === i || e === a ? e : Math.random() * (a - i) + i;
|
|
2644
2650
|
}
|
|
2645
|
-
function
|
|
2651
|
+
function mr(t) {
|
|
2646
2652
|
const { useQueryAttributeBins: e, graphic: i, x: a, y: n, yStep: r } = t, { groupByOutKeyword: s } = Me, { dataContextXMinField: o, dataContextXMaxField: c, dataContextYMinField: l, dataContextYMaxField: u } = b.scatterplotAggregationFields;
|
|
2647
2653
|
let d = [];
|
|
2648
2654
|
if (e && "stackedAttributes" in i && i.stackedAttributes) {
|
|
2649
|
-
const f =
|
|
2655
|
+
const f = na(a, n), m = i.attributes[f.lowerBoundaryAlias], g = i.attributes[f.upperBoundaryAlias];
|
|
2650
2656
|
i.stackedAttributes.forEach((y) => {
|
|
2651
2657
|
let h = y[f.stackAlias], x;
|
|
2652
2658
|
typeof h == "number" && typeof r == "number" && (h *= r), typeof h == "number" && typeof r == "number" && (x = h + r);
|
|
@@ -2686,11 +2692,11 @@ function fr(t) {
|
|
|
2686
2692
|
}
|
|
2687
2693
|
return d;
|
|
2688
2694
|
}
|
|
2689
|
-
async function
|
|
2695
|
+
async function gr(t) {
|
|
2690
2696
|
const { queryObject: e, chartConfig: i, rawData: a, isAggregationMode: n, yStep: r, useQueryAttributeBins: s } = t, o = i.series[0], { x: c, y: l } = o, d = z(e).objectIdField;
|
|
2691
2697
|
let m = (Array.isArray(a) ? a : a?.features)?.flatMap((g) => {
|
|
2692
2698
|
let y = [{ ...g.attributes }];
|
|
2693
|
-
return Lt(y[0], [c, l]), n ? y =
|
|
2699
|
+
return Lt(y[0], [c, l]), n ? y = mr({
|
|
2694
2700
|
useQueryAttributeBins: s,
|
|
2695
2701
|
graphic: g,
|
|
2696
2702
|
x: c,
|
|
@@ -2703,7 +2709,7 @@ async function mr(t) {
|
|
|
2703
2709
|
return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !== Me.groupByOutKeyword);
|
|
2704
2710
|
}), m ?? [];
|
|
2705
2711
|
}
|
|
2706
|
-
async function
|
|
2712
|
+
async function yr(t) {
|
|
2707
2713
|
const { queryObject: e, queryConfig: i, chartConfig: a, featureCount: n, abortKey: r } = t, s = a.series[0], { x: o, y: c } = s, l = z(e);
|
|
2708
2714
|
let u = [];
|
|
2709
2715
|
const f = ((await Ne(e))?.filter((h) => We(h) && h.name !== o && h.name !== c) ?? []).map(
|
|
@@ -2712,7 +2718,7 @@ async function gr(t) {
|
|
|
2712
2718
|
/* @__PURE__ */ new Set([o, c, l.objectIdField, ...f, ...m])
|
|
2713
2719
|
);
|
|
2714
2720
|
if (!ei(l).isTable) {
|
|
2715
|
-
const { rendererField: h, rendererNormalizationField: x } =
|
|
2721
|
+
const { rendererField: h, rendererNormalizationField: x } = aa(l?.renderer ?? void 0);
|
|
2716
2722
|
ee(h) || g.push(h), ee(x) || g.push(x);
|
|
2717
2723
|
}
|
|
2718
2724
|
const y = {
|
|
@@ -2727,7 +2733,7 @@ async function gr(t) {
|
|
|
2727
2733
|
abortKey: r
|
|
2728
2734
|
}), u;
|
|
2729
2735
|
}
|
|
2730
|
-
async function
|
|
2736
|
+
async function pr(t) {
|
|
2731
2737
|
let e;
|
|
2732
2738
|
const {
|
|
2733
2739
|
chartConfig: i,
|
|
@@ -2742,7 +2748,7 @@ async function yr(t) {
|
|
|
2742
2748
|
} = t, d = i.series[0], { x: f, y: m } = d;
|
|
2743
2749
|
if (!Number.isNaN(s) && s > 0) {
|
|
2744
2750
|
const g = { ...a };
|
|
2745
|
-
g.where = H([g.where, `${f} IS NOT NULL`, `${m} IS NOT NULL`]), o ? e = await
|
|
2751
|
+
g.where = H([g.where, `${f} IS NOT NULL`, `${m} IS NOT NULL`]), o ? e = await rr({
|
|
2746
2752
|
chartConfig: i,
|
|
2747
2753
|
queryObject: n,
|
|
2748
2754
|
queryConfig: g,
|
|
@@ -2750,7 +2756,7 @@ async function yr(t) {
|
|
|
2750
2756
|
useQueryAttributeBins: c,
|
|
2751
2757
|
errorStrings: l,
|
|
2752
2758
|
abortKey: u
|
|
2753
|
-
}) : e = await
|
|
2759
|
+
}) : e = await yr({
|
|
2754
2760
|
queryObject: n,
|
|
2755
2761
|
chartConfig: i,
|
|
2756
2762
|
queryConfig: g,
|
|
@@ -2760,14 +2766,14 @@ async function yr(t) {
|
|
|
2760
2766
|
}
|
|
2761
2767
|
return e;
|
|
2762
2768
|
}
|
|
2763
|
-
async function
|
|
2764
|
-
const { chartConfig: e, queryConfig: i, queryObject: a, sortData: n, calculateTrendLine: r, options: s, abortKey: o } = t, c = await
|
|
2769
|
+
async function xi(t) {
|
|
2770
|
+
const { chartConfig: e, queryConfig: i, queryObject: a, sortData: n, calculateTrendLine: r, options: s, abortKey: o } = t, c = await fr({
|
|
2765
2771
|
chartConfig: e,
|
|
2766
2772
|
queryConfig: i,
|
|
2767
2773
|
queryObject: a,
|
|
2768
2774
|
abortKey: o
|
|
2769
|
-
}), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g =
|
|
2770
|
-
m && await
|
|
2775
|
+
}), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = ia(a);
|
|
2776
|
+
m && await ir({
|
|
2771
2777
|
statsMap: c,
|
|
2772
2778
|
chartConfig: e,
|
|
2773
2779
|
queryObject: a,
|
|
@@ -2775,13 +2781,13 @@ async function bi(t) {
|
|
|
2775
2781
|
queryConfig: i,
|
|
2776
2782
|
abortKey: o
|
|
2777
2783
|
});
|
|
2778
|
-
const y = await
|
|
2784
|
+
const y = await pr({
|
|
2779
2785
|
...t,
|
|
2780
2786
|
statsMap: c,
|
|
2781
2787
|
numberOfFeatures: f,
|
|
2782
2788
|
isAggregationMode: m,
|
|
2783
2789
|
useQueryAttributeBins: g
|
|
2784
|
-
}), h = await
|
|
2790
|
+
}), h = await gr({
|
|
2785
2791
|
queryObject: a,
|
|
2786
2792
|
chartConfig: e,
|
|
2787
2793
|
rawData: y,
|
|
@@ -2794,7 +2800,7 @@ async function bi(t) {
|
|
|
2794
2800
|
sortingField: e.series[0].x,
|
|
2795
2801
|
orderBy: me.Ascending
|
|
2796
2802
|
});
|
|
2797
|
-
const { r2: x, trendLinePoints: F } = r !== !1 ? await
|
|
2803
|
+
const { r2: x, trendLinePoints: F } = r !== !1 ? await dr({
|
|
2798
2804
|
data: h,
|
|
2799
2805
|
statsMap: c,
|
|
2800
2806
|
queryConfig: i,
|
|
@@ -2804,7 +2810,7 @@ async function bi(t) {
|
|
|
2804
2810
|
}) : b.scatterplotSeries;
|
|
2805
2811
|
return { dataItems: h, r2: x, trendLinePoints: F, aggregated: m };
|
|
2806
2812
|
}
|
|
2807
|
-
function
|
|
2813
|
+
function hr(t) {
|
|
2808
2814
|
const { itemsA: e, itemsB: i, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = t;
|
|
2809
2815
|
let o = !1;
|
|
2810
2816
|
if (e === void 0 && i !== void 0 || e !== void 0 && i === void 0)
|
|
@@ -2826,7 +2832,7 @@ function pr(t) {
|
|
|
2826
2832
|
b.technicalFieldSplitByField,
|
|
2827
2833
|
Y.uniqueIdsName,
|
|
2828
2834
|
j.valueField,
|
|
2829
|
-
...
|
|
2835
|
+
...ra
|
|
2830
2836
|
], l = (m, g) => {
|
|
2831
2837
|
const y = g[b.typeOrDomainFieldName];
|
|
2832
2838
|
typeof y == "string" && g[y] !== void 0 && (g[y] = g[b.typeOrDomainIdValue]), n && g[j.xField] !== void 0 && (g[n] = g[j.xField], delete g[j.xField]), r && g[j.yField] !== void 0 && (g[r] = g[j.yField], delete g[j.yField]), s && g[j.valueField] !== void 0 && (g[s] = g[j.valueField], delete g[j.valueField]);
|
|
@@ -2839,12 +2845,12 @@ function pr(t) {
|
|
|
2839
2845
|
}
|
|
2840
2846
|
return o;
|
|
2841
2847
|
}
|
|
2842
|
-
function
|
|
2848
|
+
function Sr(t) {
|
|
2843
2849
|
const { chartConfig: e, currentSelectionDataItems: i, options: a } = t, { selectionData: n } = a ?? {};
|
|
2844
2850
|
let r = [];
|
|
2845
2851
|
if (e !== void 0) {
|
|
2846
2852
|
const s = e.series, o = V(s), { selectionItems: c } = n ?? {};
|
|
2847
|
-
if (c !== void 0 &&
|
|
2853
|
+
if (c !== void 0 && hr({
|
|
2848
2854
|
itemsA: c,
|
|
2849
2855
|
itemsB: i,
|
|
2850
2856
|
isPieFromFields: V(e.series) === p.PieFromFields,
|
|
@@ -2873,11 +2879,11 @@ function Ce(t, e) {
|
|
|
2873
2879
|
}
|
|
2874
2880
|
return i;
|
|
2875
2881
|
}
|
|
2876
|
-
function
|
|
2882
|
+
function Fr(t) {
|
|
2877
2883
|
const { dataContext: e, xAxisField: i, yAxisField: a, options: n } = t;
|
|
2878
2884
|
let r = "";
|
|
2879
2885
|
const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: c, dataContextYMaxField: l } = b.scatterplotAggregationFields;
|
|
2880
|
-
if (
|
|
2886
|
+
if (ui({ dataContext: e, chartLimits: n?.chartLimits })) {
|
|
2881
2887
|
const { [s]: u, [o]: d } = e, f = i !== a ? e[c] : u, m = i !== a ? e[l] : d;
|
|
2882
2888
|
if (!Number.isNaN(u) && !Number.isNaN(d) && !Number.isNaN(f) && !Number.isNaN(m)) {
|
|
2883
2889
|
const g = [];
|
|
@@ -2890,7 +2896,7 @@ function Sr(t) {
|
|
|
2890
2896
|
]);
|
|
2891
2897
|
return r;
|
|
2892
2898
|
}
|
|
2893
|
-
function
|
|
2899
|
+
function Ci(t, e) {
|
|
2894
2900
|
let i = "";
|
|
2895
2901
|
const a = e[b.originalServerBinningRange] ?? e[b.dateBinningRange];
|
|
2896
2902
|
if (vt(a) && a.length === 2) {
|
|
@@ -2901,7 +2907,7 @@ function xi(t, e) {
|
|
|
2901
2907
|
}
|
|
2902
2908
|
return i;
|
|
2903
2909
|
}
|
|
2904
|
-
function
|
|
2910
|
+
function Bi(t, e) {
|
|
2905
2911
|
let i = "";
|
|
2906
2912
|
if (Number.isFinite(t)) {
|
|
2907
2913
|
const a = 1 / 10 ** b.queryMaxFloatPrecision;
|
|
@@ -2909,7 +2915,7 @@ function Ci(t, e) {
|
|
|
2909
2915
|
}
|
|
2910
2916
|
return i;
|
|
2911
2917
|
}
|
|
2912
|
-
function
|
|
2918
|
+
function vi(t) {
|
|
2913
2919
|
const { xAxisField: e, yAxisField: i, splitBy: a, dataContext: n, xAxisFieldType: r, chartConfig: s } = t;
|
|
2914
2920
|
let o = "";
|
|
2915
2921
|
if (e !== void 0 && e !== b.boxPlot.boxPlotCategory) {
|
|
@@ -2919,7 +2925,7 @@ function Bi(t) {
|
|
|
2919
2925
|
keepNullValues: !0,
|
|
2920
2926
|
specificField: b.typeOrDomainIdValue
|
|
2921
2927
|
});
|
|
2922
|
-
r === Ye.Double ? o =
|
|
2928
|
+
r === Ye.Double ? o = Bi(d, e) : (Ae(s.axes?.[0].valueFormat) && (d = Ee(d)), o = Fe({
|
|
2923
2929
|
where: Ce(e, d),
|
|
2924
2930
|
normalize: !1,
|
|
2925
2931
|
escape: !0
|
|
@@ -2927,14 +2933,14 @@ function Bi(t) {
|
|
|
2927
2933
|
}
|
|
2928
2934
|
const c = Fe({ where: a ?? "", normalize: !1, escape: !0 });
|
|
2929
2935
|
let l = "";
|
|
2930
|
-
if (
|
|
2936
|
+
if (ja(s) === !0) {
|
|
2931
2937
|
const d = V(s.series) === p.BoxPlotMultiFieldsAndCategory ? i : void 0, f = G({
|
|
2932
|
-
key:
|
|
2938
|
+
key: $.Min,
|
|
2933
2939
|
showOutliers: !0,
|
|
2934
2940
|
splitBy: a,
|
|
2935
2941
|
y: d
|
|
2936
2942
|
}), m = G({
|
|
2937
|
-
key:
|
|
2943
|
+
key: $.Max,
|
|
2938
2944
|
showOutliers: !0,
|
|
2939
2945
|
splitBy: a,
|
|
2940
2946
|
y: d
|
|
@@ -2946,11 +2952,11 @@ function Bi(t) {
|
|
|
2946
2952
|
}
|
|
2947
2953
|
return H([o, c, l]);
|
|
2948
2954
|
}
|
|
2949
|
-
function
|
|
2955
|
+
function br(t) {
|
|
2950
2956
|
const { xAxisField: e, splitBy: i, dataContext: a, xAxisFieldType: n, chartConfig: r } = t;
|
|
2951
2957
|
let s = "";
|
|
2952
2958
|
if (b.dateBinningRange in a)
|
|
2953
|
-
s =
|
|
2959
|
+
s = Ci(e, a);
|
|
2954
2960
|
else if (V(r.series) !== p.BarAndLineFromFields) {
|
|
2955
2961
|
let l = ze({
|
|
2956
2962
|
value: a[e],
|
|
@@ -2958,7 +2964,7 @@ function Fr(t) {
|
|
|
2958
2964
|
keepNullValues: !0,
|
|
2959
2965
|
specificField: b.typeOrDomainIdValue
|
|
2960
2966
|
});
|
|
2961
|
-
n === Ye.Double ? s =
|
|
2967
|
+
n === Ye.Double ? s = Bi(l, e) : (Ae(r.axes?.[0].valueFormat) && (l = Ee(l)), s = Fe({
|
|
2962
2968
|
where: Ce(e, l),
|
|
2963
2969
|
normalize: !1,
|
|
2964
2970
|
escape: !0
|
|
@@ -2967,7 +2973,7 @@ function Fr(t) {
|
|
|
2967
2973
|
const o = Fe({ where: i ?? "", normalize: !1, escape: !0 });
|
|
2968
2974
|
return H([s, o]);
|
|
2969
2975
|
}
|
|
2970
|
-
function
|
|
2976
|
+
function xr(t) {
|
|
2971
2977
|
const { xAxisField: e, dataContext: i, chartConfig: a } = t;
|
|
2972
2978
|
let n = b.typeOrDomainIdValue in i ? i[b.typeOrDomainIdValue] : i[b.originalCategoryValue];
|
|
2973
2979
|
return n === void 0 && (n = i[e]), V(a.series) === p.PieFromFields ? "" : Fe({
|
|
@@ -2986,7 +2992,7 @@ function Qt(t) {
|
|
|
2986
2992
|
});
|
|
2987
2993
|
return s && (r = `${s}=${a}`), r;
|
|
2988
2994
|
}
|
|
2989
|
-
function
|
|
2995
|
+
function Cr(t) {
|
|
2990
2996
|
const { xAxisFieldType: e, yAxisFieldType: i, dataContext: a, chartConfig: n } = t, r = n.series[0];
|
|
2991
2997
|
let s = "";
|
|
2992
2998
|
if (r.type === S.HeatSeries) {
|
|
@@ -3014,12 +3020,12 @@ function xr(t) {
|
|
|
3014
3020
|
}
|
|
3015
3021
|
return s;
|
|
3016
3022
|
}
|
|
3017
|
-
function
|
|
3023
|
+
function Br(t) {
|
|
3018
3024
|
const { xAxisField: e, dataContext: i, chartConfig: a } = t;
|
|
3019
3025
|
let n = "";
|
|
3020
3026
|
const r = a.series[0], { minValue: s, maxValue: o } = i;
|
|
3021
3027
|
if (Number.isFinite(s) && Number.isFinite(o) && r.type === S.HistogramSeries) {
|
|
3022
|
-
const c =
|
|
3028
|
+
const c = Ya(e, r.dataTransformationType), l = i.isLastBin ? "<=" : "<";
|
|
3023
3029
|
n = H([
|
|
3024
3030
|
`${c}>=${s?.toString()}`,
|
|
3025
3031
|
`${c}${l}${o?.toString()}`
|
|
@@ -3027,42 +3033,42 @@ function Cr(t) {
|
|
|
3027
3033
|
}
|
|
3028
3034
|
return n;
|
|
3029
3035
|
}
|
|
3030
|
-
function
|
|
3036
|
+
function Zo(t) {
|
|
3031
3037
|
const { chartConfig: e } = t, i = W(e.series);
|
|
3032
3038
|
let a = "";
|
|
3033
3039
|
switch (i) {
|
|
3034
3040
|
case S.ScatterSeries:
|
|
3035
|
-
a =
|
|
3041
|
+
a = Fr(t);
|
|
3036
3042
|
break;
|
|
3037
3043
|
case S.HeatSeries:
|
|
3038
|
-
a =
|
|
3044
|
+
a = Cr(t);
|
|
3039
3045
|
break;
|
|
3040
3046
|
case S.RadarSeries:
|
|
3041
3047
|
case S.BarSeries:
|
|
3042
3048
|
case S.LineSeries:
|
|
3043
3049
|
case S.ComboLineAndBarSeries:
|
|
3044
|
-
a =
|
|
3050
|
+
a = br(t);
|
|
3045
3051
|
break;
|
|
3046
3052
|
case S.BoxPlotSeries:
|
|
3047
|
-
a =
|
|
3053
|
+
a = vi(t);
|
|
3048
3054
|
break;
|
|
3049
3055
|
case S.HistogramSeries:
|
|
3050
|
-
a =
|
|
3056
|
+
a = Br(t);
|
|
3051
3057
|
break;
|
|
3052
3058
|
case S.PieSeries:
|
|
3053
|
-
a =
|
|
3059
|
+
a = xr(t);
|
|
3054
3060
|
break;
|
|
3055
3061
|
}
|
|
3056
3062
|
return a;
|
|
3057
3063
|
}
|
|
3058
|
-
async function
|
|
3064
|
+
async function vr(t) {
|
|
3059
3065
|
const { numberOfQueries: e, selectionOIDs: i, chartConfig: a, queryConfig: n, options: r, errorStrings: s, queryObject: o } = t, { setTimeBinningInfoWhenNotProvided: c } = r ?? {}, { series: l } = a, u = W(l), d = [], { maxOIDsPerSelectionQuery: f } = Ge();
|
|
3060
3066
|
for (let g = 0; g < e; g += 1) {
|
|
3061
3067
|
const y = g * f, h = (g + 1) * f - 1, x = i.slice(y === 0 ? 0 : y - 1, h), F = { ...n };
|
|
3062
3068
|
switch (F.objectIds = x, u) {
|
|
3063
3069
|
case S.HeatSeries:
|
|
3064
3070
|
d.push(
|
|
3065
|
-
|
|
3071
|
+
Di({
|
|
3066
3072
|
completeHeatChartDataset: !1,
|
|
3067
3073
|
// we do not want the empty bins to be added for the selection
|
|
3068
3074
|
chartConfig: a,
|
|
@@ -3094,7 +3100,7 @@ async function Br(t) {
|
|
|
3094
3100
|
);
|
|
3095
3101
|
} else
|
|
3096
3102
|
d.push(
|
|
3097
|
-
|
|
3103
|
+
ms({
|
|
3098
3104
|
queryObject: o,
|
|
3099
3105
|
chartConfig: a,
|
|
3100
3106
|
options: r,
|
|
@@ -3104,7 +3110,7 @@ async function Br(t) {
|
|
|
3104
3110
|
break;
|
|
3105
3111
|
case S.BoxPlotSeries:
|
|
3106
3112
|
d.push(
|
|
3107
|
-
|
|
3113
|
+
gs({
|
|
3108
3114
|
queryObject: o,
|
|
3109
3115
|
chartConfig: a,
|
|
3110
3116
|
options: r,
|
|
@@ -3115,7 +3121,7 @@ async function Br(t) {
|
|
|
3115
3121
|
break;
|
|
3116
3122
|
case S.ScatterSeries:
|
|
3117
3123
|
d.push(
|
|
3118
|
-
|
|
3124
|
+
xi({
|
|
3119
3125
|
queryObject: o,
|
|
3120
3126
|
chartConfig: a,
|
|
3121
3127
|
queryConfig: F,
|
|
@@ -3130,7 +3136,7 @@ async function Br(t) {
|
|
|
3130
3136
|
break;
|
|
3131
3137
|
case S.HistogramSeries:
|
|
3132
3138
|
d.push(
|
|
3133
|
-
|
|
3139
|
+
Zn({
|
|
3134
3140
|
queryObject: o,
|
|
3135
3141
|
queryConfig: F,
|
|
3136
3142
|
chartConfig: a,
|
|
@@ -3142,7 +3148,7 @@ async function Br(t) {
|
|
|
3142
3148
|
}
|
|
3143
3149
|
return await Promise.all(d);
|
|
3144
3150
|
}
|
|
3145
|
-
function
|
|
3151
|
+
function Nr(t) {
|
|
3146
3152
|
const { dataFetchingResults: e, numberOfQueries: i, series: a } = t, n = W(a), r = V(a);
|
|
3147
3153
|
let s = [];
|
|
3148
3154
|
const o = /* @__PURE__ */ new Map();
|
|
@@ -3185,7 +3191,7 @@ function vr(t) {
|
|
|
3185
3191
|
}
|
|
3186
3192
|
return o.size > 0 && (s = Array.from(o.values())), s;
|
|
3187
3193
|
}
|
|
3188
|
-
async function
|
|
3194
|
+
async function Tr(t) {
|
|
3189
3195
|
const {
|
|
3190
3196
|
chartConfig: e,
|
|
3191
3197
|
queryConfig: i,
|
|
@@ -3200,13 +3206,13 @@ async function Nr(t) {
|
|
|
3200
3206
|
const x = W(l), F = x !== S.HistogramSeries && x !== S.HeatSeries && g !== void 0 && g.length > 0 && !(l[0].x in g[0]) && !(ae in g[0]) && !(b.boxPlot.boxPlotCategory in g[0]);
|
|
3201
3207
|
if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !Pe(y, n))) {
|
|
3202
3208
|
const B = _t(a);
|
|
3203
|
-
if (B !== void 0 && !
|
|
3209
|
+
if (B !== void 0 && !_a({ dataContext: B[0], chartConfig: e, chartLimits: m }))
|
|
3204
3210
|
h = B.filter((N) => {
|
|
3205
3211
|
const v = N[Y.uniqueIdsName];
|
|
3206
3212
|
return typeof v == "number" ? y?.includes(v) : !1;
|
|
3207
3213
|
});
|
|
3208
3214
|
else if (y?.[0] !== void 0 && i !== void 0) {
|
|
3209
|
-
const { maxOIDsPerSelectionQuery: N } = Ge(), v = Math.ceil(y.length / N),
|
|
3215
|
+
const { maxOIDsPerSelectionQuery: N } = Ge(), v = Math.ceil(y.length / N), T = await vr({
|
|
3210
3216
|
numberOfQueries: v,
|
|
3211
3217
|
selectionOIDs: y,
|
|
3212
3218
|
queryConfig: i,
|
|
@@ -3215,8 +3221,8 @@ async function Nr(t) {
|
|
|
3215
3221
|
errorStrings: c,
|
|
3216
3222
|
chartConfig: e
|
|
3217
3223
|
});
|
|
3218
|
-
h =
|
|
3219
|
-
dataFetchingResults:
|
|
3224
|
+
h = Nr({
|
|
3225
|
+
dataFetchingResults: T,
|
|
3220
3226
|
numberOfQueries: v,
|
|
3221
3227
|
series: l
|
|
3222
3228
|
});
|
|
@@ -3224,18 +3230,18 @@ async function Nr(t) {
|
|
|
3224
3230
|
}
|
|
3225
3231
|
return h;
|
|
3226
3232
|
}
|
|
3227
|
-
function*
|
|
3233
|
+
function* Ar(t) {
|
|
3228
3234
|
const { filterList: e, queryObject: i, queryConfig: a } = t;
|
|
3229
3235
|
for (let n = 0; n < e.length; n += 1) {
|
|
3230
3236
|
const r = { ...a };
|
|
3231
|
-
r.where = H([r.where, e[n]]), yield
|
|
3237
|
+
r.where = H([r.where, e[n]]), yield sa({
|
|
3232
3238
|
queryObject: i,
|
|
3233
3239
|
queryConfig: r,
|
|
3234
3240
|
uniqueFeature: !0
|
|
3235
3241
|
});
|
|
3236
3242
|
}
|
|
3237
3243
|
}
|
|
3238
|
-
async function
|
|
3244
|
+
async function el(t) {
|
|
3239
3245
|
const { whereList: e, queryObject: i, queryFilter: a, queryConfig: n } = t;
|
|
3240
3246
|
let r = [];
|
|
3241
3247
|
if (e.length > 0) {
|
|
@@ -3245,7 +3251,7 @@ async function Xo(t) {
|
|
|
3245
3251
|
let g = H(m, "OR");
|
|
3246
3252
|
g = H([a, g]), o.push(g);
|
|
3247
3253
|
}
|
|
3248
|
-
const l =
|
|
3254
|
+
const l = Ar({
|
|
3249
3255
|
filterList: o,
|
|
3250
3256
|
queryObject: i,
|
|
3251
3257
|
queryConfig: n
|
|
@@ -3254,7 +3260,7 @@ async function Xo(t) {
|
|
|
3254
3260
|
}
|
|
3255
3261
|
return r;
|
|
3256
3262
|
}
|
|
3257
|
-
async function
|
|
3263
|
+
async function Pr(t) {
|
|
3258
3264
|
const { queryObject: e, queryConfig: i, chartConfig: a, currentSelectionDataItems: n, options: r, errorStrings: s, abortKey: o } = t, c = V(a.series);
|
|
3259
3265
|
let l = { valid: !0, data: { dataItems: [] } };
|
|
3260
3266
|
if (n !== void 0 && n.length > 0) {
|
|
@@ -3274,28 +3280,28 @@ async function Ar(t) {
|
|
|
3274
3280
|
N = u.query?.where ?? "";
|
|
3275
3281
|
const M = K(N);
|
|
3276
3282
|
let w = "";
|
|
3277
|
-
const
|
|
3283
|
+
const I = `_${$.Average}`;
|
|
3278
3284
|
Object.keys(B).forEach((L) => {
|
|
3279
|
-
L.includes(
|
|
3285
|
+
L.includes(I) && (w = L.replace(I, ""));
|
|
3280
3286
|
}), w.trim() !== "" && (N = Ce(M, w));
|
|
3281
3287
|
break;
|
|
3282
3288
|
}
|
|
3283
3289
|
}
|
|
3284
3290
|
const v = [f].flat();
|
|
3285
|
-
let
|
|
3291
|
+
let T = v.length === 1 ? v[0] : "";
|
|
3286
3292
|
if (c === p.BoxPlotMultiFieldsAndCategory) {
|
|
3287
|
-
const M = `_${
|
|
3288
|
-
w !== void 0 && (
|
|
3293
|
+
const M = `_${$.FirstQuartile}`, w = Object.keys(B).find((I) => I.includes(M));
|
|
3294
|
+
w !== void 0 && (T = w.replace(M, ""));
|
|
3289
3295
|
}
|
|
3290
|
-
const
|
|
3296
|
+
const O = vi({
|
|
3291
3297
|
chartConfig: a,
|
|
3292
3298
|
xAxisField: d,
|
|
3293
|
-
yAxisField:
|
|
3299
|
+
yAxisField: T,
|
|
3294
3300
|
splitBy: N,
|
|
3295
3301
|
dataContext: B,
|
|
3296
3302
|
xAxisFieldType: m
|
|
3297
3303
|
});
|
|
3298
|
-
C.push(
|
|
3304
|
+
C.push(O);
|
|
3299
3305
|
}
|
|
3300
3306
|
return C;
|
|
3301
3307
|
},
|
|
@@ -3317,7 +3323,7 @@ async function Ar(t) {
|
|
|
3317
3323
|
}
|
|
3318
3324
|
return l;
|
|
3319
3325
|
}
|
|
3320
|
-
async function
|
|
3326
|
+
async function Mr(t) {
|
|
3321
3327
|
const {
|
|
3322
3328
|
queryObject: e,
|
|
3323
3329
|
queryConfig: i,
|
|
@@ -3330,7 +3336,7 @@ async function Pr(t) {
|
|
|
3330
3336
|
abortKey: l
|
|
3331
3337
|
} = t, { series: u } = a, d = W(u), f = pe(a);
|
|
3332
3338
|
let m = { valid: !0 }, g;
|
|
3333
|
-
|
|
3339
|
+
di({ currentSelectionOIDs: r, options: o }) ? g = await Tr({
|
|
3334
3340
|
chartConfig: a,
|
|
3335
3341
|
queryConfig: i,
|
|
3336
3342
|
chartData: s,
|
|
@@ -3339,7 +3345,7 @@ async function Pr(t) {
|
|
|
3339
3345
|
queryObject: e,
|
|
3340
3346
|
options: o,
|
|
3341
3347
|
errorStrings: c
|
|
3342
|
-
}) ?? [] : g =
|
|
3348
|
+
}) ?? [] : g = Sr({ chartConfig: a, currentSelectionDataItems: n, options: o });
|
|
3343
3349
|
let y = !1;
|
|
3344
3350
|
switch (d) {
|
|
3345
3351
|
case S.HeatSeries:
|
|
@@ -3356,7 +3362,7 @@ async function Pr(t) {
|
|
|
3356
3362
|
m.count = g.length, y = !0;
|
|
3357
3363
|
break;
|
|
3358
3364
|
case S.BoxPlotSeries:
|
|
3359
|
-
m = await
|
|
3365
|
+
m = await Pr(t);
|
|
3360
3366
|
break;
|
|
3361
3367
|
case S.BarSeries:
|
|
3362
3368
|
case S.ComboLineAndBarSeries:
|
|
@@ -3372,7 +3378,7 @@ async function Pr(t) {
|
|
|
3372
3378
|
const h = { ...i };
|
|
3373
3379
|
if (n !== void 0 && n.length > 0) {
|
|
3374
3380
|
const F = n.map(
|
|
3375
|
-
(B) =>
|
|
3381
|
+
(B) => Ci(u[0].x, B)
|
|
3376
3382
|
), C = H(F, "OR");
|
|
3377
3383
|
h.where = H([h.where, C]);
|
|
3378
3384
|
}
|
|
@@ -3396,10 +3402,10 @@ async function Pr(t) {
|
|
|
3396
3402
|
}, m.count = 0;
|
|
3397
3403
|
else {
|
|
3398
3404
|
const { x: h } = u[0], x = g.map((B, N) => {
|
|
3399
|
-
const { minValue: v, maxValue:
|
|
3400
|
-
return `${h} >= ${v} AND ${h} ${
|
|
3405
|
+
const { minValue: v, maxValue: T } = B, O = N === g.length - 1 ? "<=" : "<";
|
|
3406
|
+
return `${h} >= ${v} AND ${h} ${O} ${T}`;
|
|
3401
3407
|
}), F = H(x, "OR"), C = { ...i };
|
|
3402
|
-
C.where = H([C.where, F]), m = await
|
|
3408
|
+
C.where = H([C.where, F]), m = await Fi({
|
|
3403
3409
|
queryObject: e,
|
|
3404
3410
|
chartConfig: a,
|
|
3405
3411
|
queryConfig: C,
|
|
@@ -3415,7 +3421,7 @@ async function Pr(t) {
|
|
|
3415
3421
|
const { r2: h, trendLinePoints: x } = b.scatterplotSeries;
|
|
3416
3422
|
m.data = { dataItems: [], r2: h, trendLinePoints: x, count: 0 }, m.count = 0;
|
|
3417
3423
|
} else {
|
|
3418
|
-
const { r2: h, trendLinePoints: x } =
|
|
3424
|
+
const { r2: h, trendLinePoints: x } = bi({
|
|
3419
3425
|
data: g,
|
|
3420
3426
|
chartConfig: a
|
|
3421
3427
|
});
|
|
@@ -3445,7 +3451,7 @@ async function Pt(t) {
|
|
|
3445
3451
|
else {
|
|
3446
3452
|
const u = { dataItems: [] };
|
|
3447
3453
|
u.meanLines = l.data.dataItems;
|
|
3448
|
-
const d =
|
|
3454
|
+
const d = pn(i), f = (await Bt({
|
|
3449
3455
|
queryObject: e,
|
|
3450
3456
|
queryConfig: a,
|
|
3451
3457
|
fetchFullBoxPlotData: !0,
|
|
@@ -3457,15 +3463,15 @@ async function Pt(t) {
|
|
|
3457
3463
|
}
|
|
3458
3464
|
return o;
|
|
3459
3465
|
}
|
|
3460
|
-
async function
|
|
3466
|
+
async function Lr(t) {
|
|
3461
3467
|
const { queryObject: e, chartConfig: i, queryConfig: a, binnedServerData: n, options: r, errorStrings: s, abortKey: o, fieldList: c } = t, { series: l } = i, { filterBySelection: u } = r ?? {}, d = W(l);
|
|
3462
3468
|
let f = { valid: !0 };
|
|
3463
3469
|
if (u === !0)
|
|
3464
|
-
f = await
|
|
3470
|
+
f = await Mr(t);
|
|
3465
3471
|
else
|
|
3466
3472
|
switch (d) {
|
|
3467
3473
|
case S.HeatSeries:
|
|
3468
|
-
f = await
|
|
3474
|
+
f = await Di(t);
|
|
3469
3475
|
break;
|
|
3470
3476
|
case S.BoxPlotSeries:
|
|
3471
3477
|
f = await Pt(t);
|
|
@@ -3491,7 +3497,7 @@ async function Mr(t) {
|
|
|
3491
3497
|
break;
|
|
3492
3498
|
}
|
|
3493
3499
|
case S.ScatterSeries:
|
|
3494
|
-
f.data = await
|
|
3500
|
+
f.data = await xi({
|
|
3495
3501
|
queryObject: e,
|
|
3496
3502
|
queryConfig: a,
|
|
3497
3503
|
options: r,
|
|
@@ -3501,7 +3507,7 @@ async function Mr(t) {
|
|
|
3501
3507
|
});
|
|
3502
3508
|
break;
|
|
3503
3509
|
case S.HistogramSeries:
|
|
3504
|
-
f = await
|
|
3510
|
+
f = await Fi({
|
|
3505
3511
|
queryObject: e,
|
|
3506
3512
|
queryConfig: a,
|
|
3507
3513
|
chartConfig: i,
|
|
@@ -3511,7 +3517,7 @@ async function Mr(t) {
|
|
|
3511
3517
|
});
|
|
3512
3518
|
break;
|
|
3513
3519
|
case S.GaugeSeries:
|
|
3514
|
-
f = await
|
|
3520
|
+
f = await Wn({
|
|
3515
3521
|
queryObject: e,
|
|
3516
3522
|
chartConfig: i,
|
|
3517
3523
|
queryConfig: a,
|
|
@@ -3522,7 +3528,7 @@ async function Mr(t) {
|
|
|
3522
3528
|
}
|
|
3523
3529
|
return f;
|
|
3524
3530
|
}
|
|
3525
|
-
async function
|
|
3531
|
+
async function tl(t) {
|
|
3526
3532
|
const {
|
|
3527
3533
|
queryObject: e,
|
|
3528
3534
|
chartConfig: i,
|
|
@@ -3542,7 +3548,7 @@ async function Zo(t) {
|
|
|
3542
3548
|
runtimeDataFilters: c?.runtimeDataFilters,
|
|
3543
3549
|
ignoreViewExtent: c?.ignoreViewExtent
|
|
3544
3550
|
});
|
|
3545
|
-
return
|
|
3551
|
+
return oa(a), d = await Lr({
|
|
3546
3552
|
chartConfig: i,
|
|
3547
3553
|
queryObject: e,
|
|
3548
3554
|
queryConfig: f,
|
|
@@ -3556,7 +3562,7 @@ async function Zo(t) {
|
|
|
3556
3562
|
fieldList: u
|
|
3557
3563
|
}), d.queryConfig = f, d;
|
|
3558
3564
|
}
|
|
3559
|
-
function
|
|
3565
|
+
function wr(t, e, i) {
|
|
3560
3566
|
const a = /* @__PURE__ */ new Map();
|
|
3561
3567
|
for (let r = 0; r < t.length; r += 1)
|
|
3562
3568
|
a.set(t[r], { [i]: t[r] });
|
|
@@ -3566,7 +3572,7 @@ function Lr(t, e, i) {
|
|
|
3566
3572
|
}
|
|
3567
3573
|
return [...a.values()];
|
|
3568
3574
|
}
|
|
3569
|
-
async function
|
|
3575
|
+
async function Dr(t) {
|
|
3570
3576
|
const { seriesData: e, chartConfig: i, queryConfig: a, queryObject: n, categoryOrDateCount: r, behaviorAfterLimit: s, abortKey: o } = t, { series: c } = i;
|
|
3571
3577
|
let l = e;
|
|
3572
3578
|
const u = V(c), d = pe(i);
|
|
@@ -3583,13 +3589,13 @@ async function wr(t) {
|
|
|
3583
3589
|
featureCount: r,
|
|
3584
3590
|
abortKey: o
|
|
3585
3591
|
})).map((h) => h.attributes[f]).filter((h) => h != null);
|
|
3586
|
-
y.length > e.length && (l =
|
|
3592
|
+
y.length > e.length && (l = wr(y, e, f));
|
|
3587
3593
|
}
|
|
3588
3594
|
return l;
|
|
3589
3595
|
}
|
|
3590
|
-
function
|
|
3596
|
+
function Or(t, e) {
|
|
3591
3597
|
const i = t, { series: a } = e;
|
|
3592
|
-
if (pe(e) === S.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType ===
|
|
3598
|
+
if (pe(e) === S.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === A.Count) {
|
|
3593
3599
|
const n = a.reduce(
|
|
3594
3600
|
(r, s) => {
|
|
3595
3601
|
const o = s.query?.outStatistics?.[0].outStatisticFieldName ?? [s.y].flat()[0];
|
|
@@ -3602,7 +3608,7 @@ function Dr(t, e) {
|
|
|
3602
3608
|
}
|
|
3603
3609
|
return i;
|
|
3604
3610
|
}
|
|
3605
|
-
const
|
|
3611
|
+
const Ni = [
|
|
3606
3612
|
p.BarAndLineMonoField,
|
|
3607
3613
|
p.BarAndLineMultiFields,
|
|
3608
3614
|
p.PieNoAggregation,
|
|
@@ -3610,8 +3616,8 @@ const vi = [
|
|
|
3610
3616
|
p.BoxPlotMonoFieldAndCategory,
|
|
3611
3617
|
p.BoxPlotMultiFieldsAndCategory,
|
|
3612
3618
|
p.BoxPlotMonoFieldAndCategoryAndSplitBy
|
|
3613
|
-
];
|
|
3614
|
-
function
|
|
3619
|
+
], qr = 8e3;
|
|
3620
|
+
function Ti(t, e) {
|
|
3615
3621
|
let i = t;
|
|
3616
3622
|
return e === E.Week ? i /= 7 : e === E.Month ? i /= 30 : e === E.Year && (i /= 365), i = Math.ceil(i), i;
|
|
3617
3623
|
}
|
|
@@ -3637,7 +3643,7 @@ function Be(t) {
|
|
|
3637
3643
|
}
|
|
3638
3644
|
return e;
|
|
3639
3645
|
}
|
|
3640
|
-
function
|
|
3646
|
+
function Er(t) {
|
|
3641
3647
|
const { binFirstOrLastIndex: e, data: i, x: a, timeIntervalInfo: n } = t, { unit: r, size: s } = n, o = r === E.Week ? (s ?? 1) * 7 : s, c = i[e][a];
|
|
3642
3648
|
let l = e;
|
|
3643
3649
|
const u = Be({
|
|
@@ -3667,7 +3673,7 @@ function Or(t) {
|
|
|
3667
3673
|
sliceEndIndex: m
|
|
3668
3674
|
};
|
|
3669
3675
|
}
|
|
3670
|
-
function
|
|
3676
|
+
function Vr(t) {
|
|
3671
3677
|
const { binFirstOrLastIndex: e, data: i, x: a, timeIntervalInfo: n } = t, { unit: r, size: s } = n, o = r === E.Week ? (s ?? 1) * 7 : s, c = i[e][a];
|
|
3672
3678
|
let l = e;
|
|
3673
3679
|
const u = Be({
|
|
@@ -3695,31 +3701,31 @@ function qr(t) {
|
|
|
3695
3701
|
last: f
|
|
3696
3702
|
};
|
|
3697
3703
|
}
|
|
3698
|
-
function
|
|
3704
|
+
function Ir(t) {
|
|
3699
3705
|
const { binsToRegroup: e, statisticType: i, y: a, nullPolicy: n } = t;
|
|
3700
3706
|
let r;
|
|
3701
3707
|
n !== ne.Interpolate && (r = n === ne.Zero ? 0 : null);
|
|
3702
3708
|
const s = e.filter((o) => Number.isFinite(o[a]));
|
|
3703
3709
|
if (s.length > 0)
|
|
3704
3710
|
switch (i) {
|
|
3705
|
-
case
|
|
3706
|
-
case
|
|
3711
|
+
case A.Count:
|
|
3712
|
+
case A.Sum:
|
|
3713
|
+
r = Hi(s, (o) => o[a]);
|
|
3714
|
+
break;
|
|
3715
|
+
case A.Minimum:
|
|
3707
3716
|
r = Qi(s, (o) => o[a]);
|
|
3708
3717
|
break;
|
|
3709
|
-
case
|
|
3718
|
+
case A.Maximum:
|
|
3710
3719
|
r = Wi(s, (o) => o[a]);
|
|
3711
3720
|
break;
|
|
3712
|
-
case
|
|
3721
|
+
case A.Average:
|
|
3713
3722
|
r = ji(s, (o) => o[a]);
|
|
3714
3723
|
break;
|
|
3715
|
-
case
|
|
3716
|
-
r = ki(s, (o) => o[a]);
|
|
3717
|
-
break;
|
|
3718
|
-
case T.ContinuousPercentile:
|
|
3724
|
+
case A.ContinuousPercentile:
|
|
3719
3725
|
}
|
|
3720
3726
|
return r;
|
|
3721
3727
|
}
|
|
3722
|
-
function
|
|
3728
|
+
function $r(t) {
|
|
3723
3729
|
const { data: e, seriesConfig: i, timeIntervalInfo: a, dateMinTimestamp: n, dateMaxTimestamp: r } = t;
|
|
3724
3730
|
let s = [];
|
|
3725
3731
|
const { unit: o } = a, c = a.size ?? 1, l = i[0], { x: u } = l;
|
|
@@ -3735,22 +3741,22 @@ function Vr(t) {
|
|
|
3735
3741
|
};
|
|
3736
3742
|
for (; !h; ) {
|
|
3737
3743
|
let C = {};
|
|
3738
|
-
const { binStartDate: B, binEndDate: N, last: v, nextBinFirstOrLastIndex:
|
|
3744
|
+
const { binStartDate: B, binEndDate: N, last: v, nextBinFirstOrLastIndex: T, sliceStartIndex: O, sliceEndIndex: M } = d === U.End ? (
|
|
3739
3745
|
// When grouping from the end we'll start from the last date and move backward to create the bins
|
|
3740
|
-
|
|
3746
|
+
Vr(F)
|
|
3741
3747
|
) : (
|
|
3742
3748
|
// When grouping from the start we'll start from the first date and move forward to create the bins
|
|
3743
|
-
|
|
3749
|
+
Er(F)
|
|
3744
3750
|
);
|
|
3745
3751
|
if (h = v, C = d === U.End ? C = e[M - 1] : C = e[x], N > r && B < r || B < n && N > n || B >= n && N <= r) {
|
|
3746
|
-
const w = e.slice(
|
|
3747
|
-
g.forEach((
|
|
3748
|
-
C[
|
|
3752
|
+
const w = e.slice(O, M).filter((D) => !(b.dateBinModel in D));
|
|
3753
|
+
g.forEach((D) => {
|
|
3754
|
+
C[D] = Ir({ binsToRegroup: w, statisticType: y, y: D, nullPolicy: f });
|
|
3749
3755
|
});
|
|
3750
|
-
const
|
|
3756
|
+
const I = w.map((D) => D[xe]).filter((D) => D !== void 0), L = Wa(I);
|
|
3751
3757
|
L !== void 0 && (C[xe] = L), C[u] = B, C[b.xAxisField] = B, C[b.dateBinningRange] = [B, N], delete C[b.dateBinModel], s.push(C);
|
|
3752
3758
|
} else v && d !== U.End && s.length > 0 && (s[s.length - 1][b.dateBinningRange][1] = s[s.length - 1][b.dateBinningRange][1] + 1);
|
|
3753
|
-
x =
|
|
3759
|
+
x = T, F.binFirstOrLastIndex = T;
|
|
3754
3760
|
}
|
|
3755
3761
|
d === U.End && (s = s.reverse());
|
|
3756
3762
|
} else c === 1 ? s = e.map((m, g) => {
|
|
@@ -3768,7 +3774,7 @@ function Vr(t) {
|
|
|
3768
3774
|
}) : s = e;
|
|
3769
3775
|
return s;
|
|
3770
3776
|
}
|
|
3771
|
-
function
|
|
3777
|
+
function Ai(t) {
|
|
3772
3778
|
const { dateMinTimestamp: e, dateMaxTimestamp: i, timeIntervalInfo: a } = t, { size: n, unit: r } = a;
|
|
3773
3779
|
let s = 0, o = 0;
|
|
3774
3780
|
if (n !== void 0 && Number.isFinite(n) && Number.isFinite(e) && Number.isFinite(i)) {
|
|
@@ -3797,7 +3803,7 @@ function Ti(t) {
|
|
|
3797
3803
|
}
|
|
3798
3804
|
return { numberOfFinalBinsWithinDataRange: s, numberOfSingleBinsWithinDataRange: o };
|
|
3799
3805
|
}
|
|
3800
|
-
function
|
|
3806
|
+
function Pi(t) {
|
|
3801
3807
|
const e = t[0].temporalBinning?.nullPolicy;
|
|
3802
3808
|
return t.reduce(
|
|
3803
3809
|
(a, n) => {
|
|
@@ -3808,7 +3814,7 @@ function Ai(t) {
|
|
|
3808
3814
|
{}
|
|
3809
3815
|
);
|
|
3810
3816
|
}
|
|
3811
|
-
function
|
|
3817
|
+
function Rr(t) {
|
|
3812
3818
|
const {
|
|
3813
3819
|
dateMaxTimestamp: e,
|
|
3814
3820
|
numberOfFinalBinsWithinDataRange: i,
|
|
@@ -3821,7 +3827,7 @@ function Ir(t) {
|
|
|
3821
3827
|
if (o !== void 0 && Number.isFinite(o) && a / i !== o) {
|
|
3822
3828
|
let g = Math.ceil(a / i) * i - a;
|
|
3823
3829
|
c === E.Week && (g *= 7);
|
|
3824
|
-
const y =
|
|
3830
|
+
const y = Pi(r);
|
|
3825
3831
|
if (u === U.End) {
|
|
3826
3832
|
let h = n[0][l];
|
|
3827
3833
|
for (let x = 0; x < g; x += 1)
|
|
@@ -3854,26 +3860,26 @@ function Ir(t) {
|
|
|
3854
3860
|
}
|
|
3855
3861
|
return { newDateMin: d, newDateMax: f };
|
|
3856
3862
|
}
|
|
3857
|
-
function
|
|
3863
|
+
function kr(t) {
|
|
3858
3864
|
const { numberOfSingleBinsWithinDataRange: e, dataLength: i, unit: a } = t;
|
|
3859
|
-
return
|
|
3865
|
+
return Ti(i, a) >= e;
|
|
3860
3866
|
}
|
|
3861
|
-
async function
|
|
3867
|
+
async function jr(t) {
|
|
3862
3868
|
const { queryObject: e, queryConfig: i, x: a } = t, n = `MIN_${a}`, r = `MAX_${a}`, s = `COUNT_${a}`, o = {
|
|
3863
3869
|
...i,
|
|
3864
3870
|
outStatistics: [
|
|
3865
3871
|
{
|
|
3866
|
-
statisticType:
|
|
3872
|
+
statisticType: A.Minimum,
|
|
3867
3873
|
onStatisticField: a,
|
|
3868
3874
|
outStatisticFieldName: n
|
|
3869
3875
|
},
|
|
3870
3876
|
{
|
|
3871
|
-
statisticType:
|
|
3877
|
+
statisticType: A.Maximum,
|
|
3872
3878
|
onStatisticField: a,
|
|
3873
3879
|
outStatisticFieldName: r
|
|
3874
3880
|
},
|
|
3875
3881
|
{
|
|
3876
|
-
statisticType:
|
|
3882
|
+
statisticType: A.Count,
|
|
3877
3883
|
onStatisticField: a,
|
|
3878
3884
|
outStatisticFieldName: s
|
|
3879
3885
|
}
|
|
@@ -3888,7 +3894,7 @@ async function Rr(t) {
|
|
|
3888
3894
|
const d = c.get(s);
|
|
3889
3895
|
return typeof l == "string" && (l = new Date(l).valueOf()), typeof u == "string" && (u = new Date(u).valueOf()), { dateRange: { dateMinTimestamp: l, dateMaxTimestamp: u }, numberOfFeatures: d };
|
|
3890
3896
|
}
|
|
3891
|
-
function
|
|
3897
|
+
function Wr(t) {
|
|
3892
3898
|
const {
|
|
3893
3899
|
newDateMin: e,
|
|
3894
3900
|
newDateMax: i,
|
|
@@ -3898,12 +3904,12 @@ function kr(t) {
|
|
|
3898
3904
|
initialNumberOfBins: s,
|
|
3899
3905
|
timeIntervalInfo: o
|
|
3900
3906
|
} = t, { unit: c } = o, l = n;
|
|
3901
|
-
if (
|
|
3907
|
+
if (!kr({
|
|
3902
3908
|
numberOfSingleBinsWithinDataRange: r,
|
|
3903
3909
|
dataLength: s,
|
|
3904
3910
|
unit: c
|
|
3905
3911
|
})) {
|
|
3906
|
-
const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m =
|
|
3912
|
+
const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = Pi(a);
|
|
3907
3913
|
let y = f === U.End ? i : e, h = f === U.End ? n.length - 1 : 0;
|
|
3908
3914
|
for (; h < n.length && (f === U.End && y > e || f !== U.End && y < i); )
|
|
3909
3915
|
y !== n[h][d] ? l.push({
|
|
@@ -3919,7 +3925,7 @@ function kr(t) {
|
|
|
3919
3925
|
}
|
|
3920
3926
|
return l;
|
|
3921
3927
|
}
|
|
3922
|
-
function
|
|
3928
|
+
function Qr(t) {
|
|
3923
3929
|
const { data: e, seriesConfig: i, dateMinTimestamp: a, dateMaxTimestamp: n } = t, r = e;
|
|
3924
3930
|
if (i[0].temporalBinning?.trimIncompleteTimeInterval !== !1) {
|
|
3925
3931
|
const { timeAggregationType: s } = i[0].temporalBinning ?? {}, o = e[0]?.[b.dateBinningRange]?.[0], c = e[e.length - 1]?.[b.dateBinningRange]?.[1];
|
|
@@ -3936,10 +3942,10 @@ function jr(t) {
|
|
|
3936
3942
|
}
|
|
3937
3943
|
return r;
|
|
3938
3944
|
}
|
|
3939
|
-
function
|
|
3945
|
+
function Hr(t) {
|
|
3940
3946
|
const { groupByFieldsForStatistics: e, dateField: i, queryStartDate: a, queryEndDate: n, y: r, binIndex: s, lastBin: o } = t;
|
|
3941
3947
|
let c = e === "" ? Me.groupByCaseBegin : e;
|
|
3942
|
-
return c = ue(
|
|
3948
|
+
return c = ue(ca, {
|
|
3943
3949
|
groupByFieldsForStatistics: c,
|
|
3944
3950
|
dateField: i,
|
|
3945
3951
|
startDate: `${a}`,
|
|
@@ -3950,21 +3956,21 @@ function Wr(t) {
|
|
|
3950
3956
|
// we use <= to catch the last bin's value, < otherwise
|
|
3951
3957
|
}), c;
|
|
3952
3958
|
}
|
|
3953
|
-
function*
|
|
3959
|
+
function* zr(t) {
|
|
3954
3960
|
const { queryObject: e, seriesConfig: i, queryConfig: a, completeData: n } = t;
|
|
3955
3961
|
for (let r = 0; r < i.length; r += 1) {
|
|
3956
3962
|
const s = i[r], { query: o, x: c, y: l } = s, d = [
|
|
3957
3963
|
{
|
|
3958
3964
|
onStatisticField: o?.outStatistics?.[0]?.onStatisticField ?? "",
|
|
3959
|
-
outStatisticFieldName:
|
|
3960
|
-
statisticType:
|
|
3965
|
+
outStatisticFieldName: A.ContinuousPercentile,
|
|
3966
|
+
statisticType: A.ContinuousPercentile,
|
|
3961
3967
|
statisticParameters: { value: 0.5 }
|
|
3962
3968
|
}
|
|
3963
3969
|
];
|
|
3964
3970
|
let f = Me.groupByCaseBegin;
|
|
3965
3971
|
for (let g = 0; g < n.length; g += 1) {
|
|
3966
3972
|
const y = n[g], [h, x] = y[b.dateBinningRange], F = Ee(h), C = Ee(x);
|
|
3967
|
-
f =
|
|
3973
|
+
f = Hr({
|
|
3968
3974
|
groupByFieldsForStatistics: f,
|
|
3969
3975
|
queryStartDate: F,
|
|
3970
3976
|
queryEndDate: C,
|
|
@@ -3988,10 +3994,10 @@ function* Qr(t) {
|
|
|
3988
3994
|
});
|
|
3989
3995
|
}
|
|
3990
3996
|
}
|
|
3991
|
-
async function
|
|
3997
|
+
async function Ur(t) {
|
|
3992
3998
|
const { queryObject: e, data: i, seriesConfig: a, queryConfig: n } = t, r = i, { statisticType: s } = a[0].query?.outStatistics?.[0] ?? zt;
|
|
3993
|
-
if (s ===
|
|
3994
|
-
const o =
|
|
3999
|
+
if (s === A.ContinuousPercentile && r.length > 0) {
|
|
4000
|
+
const o = zr({
|
|
3995
4001
|
queryObject: e,
|
|
3996
4002
|
completeData: r,
|
|
3997
4003
|
seriesConfig: a,
|
|
@@ -4004,7 +4010,7 @@ async function Hr(t) {
|
|
|
4004
4010
|
if (f !== void 0) {
|
|
4005
4011
|
const [m, g] = f.split("|");
|
|
4006
4012
|
if (g !== void 0) {
|
|
4007
|
-
const y = d.attributes[
|
|
4013
|
+
const y = d.attributes[A.ContinuousPercentile];
|
|
4008
4014
|
r[g][`${m}`] = y;
|
|
4009
4015
|
}
|
|
4010
4016
|
}
|
|
@@ -4013,53 +4019,53 @@ async function Hr(t) {
|
|
|
4013
4019
|
}
|
|
4014
4020
|
return r;
|
|
4015
4021
|
}
|
|
4016
|
-
async function
|
|
4017
|
-
const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = t, l =
|
|
4022
|
+
async function Gr(t) {
|
|
4023
|
+
const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = t, l = la(r), d = (await Ne(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, h = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
|
|
4018
4024
|
return i.forEach((x, F) => {
|
|
4019
4025
|
if (!(y && (F === 0 && h === U.End || F === i.length - 1 && h === U.Start))) {
|
|
4020
4026
|
const { attributes: B, stackedAttributes: N } = x;
|
|
4021
|
-
let v = B[l.lowerBoundaryAlias],
|
|
4022
|
-
const
|
|
4023
|
-
const { boundary:
|
|
4024
|
-
let Q =
|
|
4025
|
-
return q === Ye.DateOnly && (typeof
|
|
4027
|
+
let v = B[l.lowerBoundaryAlias], T = B[l.upperBoundaryAlias];
|
|
4028
|
+
const O = v, M = T, w = (L) => {
|
|
4029
|
+
const { boundary: D, separator: P, xFieldType: q } = L;
|
|
4030
|
+
let Q = D;
|
|
4031
|
+
return q === Ye.DateOnly && (typeof D == "string" && D.length === 10 || typeof D == "number") ? (Q = new Date(D), Q = new Date(Q.valueOf() + Q.getTimezoneOffset() * 6e4).valueOf()) : typeof D == "string" && D.lastIndexOf(P) === D.length - 6 && (Q = new Date(D.slice(0, D.lastIndexOf(P))).valueOf()), Q;
|
|
4026
4032
|
};
|
|
4027
4033
|
["+", "-"].forEach((L) => {
|
|
4028
|
-
v = w({ boundary: v, separator: L, xFieldType: d }),
|
|
4034
|
+
v = w({ boundary: v, separator: L, xFieldType: d }), T = w({ boundary: T, separator: L, xFieldType: d });
|
|
4029
4035
|
});
|
|
4030
|
-
const
|
|
4031
|
-
if (
|
|
4036
|
+
const I = (L, D) => {
|
|
4037
|
+
if (D)
|
|
4032
4038
|
switch (!0) {
|
|
4033
|
-
case (o === ne.Zero && (L[
|
|
4034
|
-
L[
|
|
4039
|
+
case (o === ne.Zero && (L[D] === void 0 || L[D] === null)):
|
|
4040
|
+
L[D] = 0;
|
|
4035
4041
|
break;
|
|
4036
|
-
case (o === ne.Null && L[
|
|
4037
|
-
L[
|
|
4042
|
+
case (o === ne.Null && L[D] === 0 && g === A.Count):
|
|
4043
|
+
L[D] = null;
|
|
4038
4044
|
break;
|
|
4039
|
-
case (o === ne.Interpolate && (L[
|
|
4040
|
-
delete L[
|
|
4045
|
+
case (o === ne.Interpolate && (L[D] === 0 || L[D] === void 0 || L[D] === null)):
|
|
4046
|
+
delete L[D];
|
|
4041
4047
|
break;
|
|
4042
4048
|
}
|
|
4043
4049
|
};
|
|
4044
|
-
if (typeof v == "number" && typeof
|
|
4050
|
+
if (typeof v == "number" && typeof T == "number") {
|
|
4045
4051
|
const L = { ...B };
|
|
4046
|
-
L[b.originalServerBinningRange] = [
|
|
4052
|
+
L[b.originalServerBinningRange] = [O, M], L[r] = v, L[b.xAxisField] = v, L[b.dateBinningRange] = [v, T], delete L[l.lowerBoundaryAlias], delete L[l.upperBoundaryAlias], N && n && !ee(n) && a ? N.forEach((q) => {
|
|
4047
4053
|
const Q = q[n];
|
|
4048
4054
|
if (Q === null || typeof Q == "string" || typeof Q == "number") {
|
|
4049
4055
|
const X = a?.get(Q);
|
|
4050
|
-
X !== void 0 && (L[X] = q[Y.outStatistics?.outStatisticFieldName ?? ""],
|
|
4056
|
+
X !== void 0 && (L[X] = q[Y.outStatistics?.outStatisticFieldName ?? ""], I(L, X));
|
|
4051
4057
|
}
|
|
4052
|
-
}) :
|
|
4053
|
-
const { featureExtent:
|
|
4058
|
+
}) : I(L, s);
|
|
4059
|
+
const { featureExtent: D, featureExtentKey: P } = Mi({
|
|
4054
4060
|
feature: x,
|
|
4055
4061
|
splitByField: n
|
|
4056
4062
|
});
|
|
4057
|
-
|
|
4063
|
+
D && (L[P] = D), f.push(L);
|
|
4058
4064
|
}
|
|
4059
4065
|
}
|
|
4060
4066
|
}), f;
|
|
4061
4067
|
}
|
|
4062
|
-
async function
|
|
4068
|
+
async function _r(t) {
|
|
4063
4069
|
const { queryObject: e, queryResults: i, x: a, queryConfig: n, seriesConfig: r, dateRange: s, timeIntervalInfo: o } = t;
|
|
4064
4070
|
let c = i;
|
|
4065
4071
|
const { dateMinTimestamp: l, dateMaxTimestamp: u } = s;
|
|
@@ -4069,11 +4075,11 @@ async function Ur(t) {
|
|
|
4069
4075
|
arrayToSort: c,
|
|
4070
4076
|
sortingField: a
|
|
4071
4077
|
}), d > 1) {
|
|
4072
|
-
const { numberOfFinalBinsWithinDataRange: f, numberOfSingleBinsWithinDataRange: m } =
|
|
4078
|
+
const { numberOfFinalBinsWithinDataRange: f, numberOfSingleBinsWithinDataRange: m } = Ai({
|
|
4073
4079
|
dateMinTimestamp: l,
|
|
4074
4080
|
dateMaxTimestamp: u,
|
|
4075
4081
|
timeIntervalInfo: o
|
|
4076
|
-
}), { newDateMin: g, newDateMax: y } =
|
|
4082
|
+
}), { newDateMin: g, newDateMax: y } = Rr({
|
|
4077
4083
|
dateMaxTimestamp: u,
|
|
4078
4084
|
data: c,
|
|
4079
4085
|
numberOfFinalBinsWithinDataRange: f,
|
|
@@ -4081,7 +4087,7 @@ async function Ur(t) {
|
|
|
4081
4087
|
seriesConfig: r,
|
|
4082
4088
|
timeIntervalInfo: o
|
|
4083
4089
|
});
|
|
4084
|
-
c =
|
|
4090
|
+
c = Wr({
|
|
4085
4091
|
newDateMin: g,
|
|
4086
4092
|
newDateMax: y,
|
|
4087
4093
|
seriesConfig: r,
|
|
@@ -4092,31 +4098,31 @@ async function Ur(t) {
|
|
|
4092
4098
|
}), Ue({
|
|
4093
4099
|
arrayToSort: c,
|
|
4094
4100
|
sortingField: a
|
|
4095
|
-
}), c =
|
|
4101
|
+
}), c = $r({
|
|
4096
4102
|
data: c,
|
|
4097
4103
|
seriesConfig: r,
|
|
4098
4104
|
dateMinTimestamp: l,
|
|
4099
4105
|
dateMaxTimestamp: u,
|
|
4100
4106
|
timeIntervalInfo: o
|
|
4101
|
-
}), c =
|
|
4107
|
+
}), c = Qr({
|
|
4102
4108
|
data: c,
|
|
4103
4109
|
seriesConfig: r,
|
|
4104
4110
|
dateMinTimestamp: l,
|
|
4105
4111
|
dateMaxTimestamp: u
|
|
4106
|
-
}), c = await
|
|
4112
|
+
}), c = await Ur({ queryObject: e, data: c, seriesConfig: r, queryConfig: n });
|
|
4107
4113
|
}
|
|
4108
4114
|
}
|
|
4109
4115
|
return c;
|
|
4110
4116
|
}
|
|
4111
|
-
function
|
|
4117
|
+
function Yr(t) {
|
|
4112
4118
|
return Math.floor(Math.min(Math.max(8, Math.sqrt(t ?? 8)), 128) + 0.5);
|
|
4113
4119
|
}
|
|
4114
|
-
function
|
|
4120
|
+
function Kr(t) {
|
|
4115
4121
|
const { dateRange: e, numberOfFeatures: i } = t;
|
|
4116
4122
|
let a, n, { dateMinTimestamp: r, dateMaxTimestamp: s } = e;
|
|
4117
4123
|
if (r && s) {
|
|
4118
4124
|
typeof r == "string" && (r = new Date(r).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
|
|
4119
|
-
const o =
|
|
4125
|
+
const o = Yr(i), c = (s - r) / o, l = It.findIndex((x) => x.threshold > c), u = It[l], { unitMs: d, preferredIntervalSize: f } = u;
|
|
4120
4126
|
({ unit: a } = u);
|
|
4121
4127
|
const m = c / d, g = f.findIndex(
|
|
4122
4128
|
(x) => x >= m
|
|
@@ -4125,7 +4131,7 @@ function _r(t) {
|
|
|
4125
4131
|
}
|
|
4126
4132
|
return { size: n, unit: a };
|
|
4127
4133
|
}
|
|
4128
|
-
function
|
|
4134
|
+
function Jr(t) {
|
|
4129
4135
|
const { series: e, isTimeBinningSeries: i, setTimeBinningInfoWhenNotProvided: a } = t;
|
|
4130
4136
|
let n = !1;
|
|
4131
4137
|
if (se(e) && i) {
|
|
@@ -4134,7 +4140,7 @@ function Yr(t) {
|
|
|
4134
4140
|
}
|
|
4135
4141
|
return n;
|
|
4136
4142
|
}
|
|
4137
|
-
function
|
|
4143
|
+
function Xr(t) {
|
|
4138
4144
|
const e = [];
|
|
4139
4145
|
for (let i = 1; i <= 6; i += 1) {
|
|
4140
4146
|
const a = t[`EXPR_${i}`] ?? t[`Expr${i}`] ?? t[`expr${i}`] ?? t[`EXPR${i}`];
|
|
@@ -4149,7 +4155,7 @@ function Kr(t) {
|
|
|
4149
4155
|
Number(e[5] ?? 0)
|
|
4150
4156
|
).valueOf();
|
|
4151
4157
|
}
|
|
4152
|
-
function
|
|
4158
|
+
function Mi(t) {
|
|
4153
4159
|
const { feature: e, splitByField: i, chartSubType: a } = t;
|
|
4154
4160
|
let n;
|
|
4155
4161
|
e.aggregateGeometries && "Extent" in e.aggregateGeometries ? n = e.aggregateGeometries.Extent : { extent: n } = e.aggregateGeometries ?? e.geometry ?? {};
|
|
@@ -4157,21 +4163,21 @@ function Pi(t) {
|
|
|
4157
4163
|
let s = xe;
|
|
4158
4164
|
return r !== void 0 && i !== void 0 && a !== void 0 && a === p.BarAndLineSplitBy && (s = e.attributes[i] !== void 0 ? `${xe}_${e.attributes[i]}` : xe), { featureExtent: r, featureExtentKey: s };
|
|
4159
4165
|
}
|
|
4160
|
-
function
|
|
4166
|
+
function Zr(t) {
|
|
4161
4167
|
const { input: e, x: i, splitByField: a } = t;
|
|
4162
4168
|
return e.reduce((r, s) => (a !== void 0 && a !== i && !(b.technicalFieldSplitByField in s) && delete s[a], Object.assign(r, s)), {});
|
|
4163
4169
|
}
|
|
4164
4170
|
function Mt(t) {
|
|
4165
4171
|
const { data: e, x: i, splitByField: a } = t;
|
|
4166
4172
|
let n = e;
|
|
4167
|
-
return e !== void 0 && e.length > 0 && (n = [...
|
|
4173
|
+
return e !== void 0 && e.length > 0 && (n = [...zi(
|
|
4168
4174
|
e,
|
|
4169
|
-
(s) =>
|
|
4175
|
+
(s) => Zr({ input: s, x: i, splitByField: a }),
|
|
4170
4176
|
(s) => s[i]
|
|
4171
4177
|
// the field used to regroup the stats (ex: 'Year' category)
|
|
4172
4178
|
).values()]), n;
|
|
4173
4179
|
}
|
|
4174
|
-
function
|
|
4180
|
+
function es(t, e) {
|
|
4175
4181
|
const i = t, a = W(e);
|
|
4176
4182
|
if (a !== S.PieSeries && a !== S.BoxPlotSeries) {
|
|
4177
4183
|
const n = re(e), r = e[0].y;
|
|
@@ -4191,14 +4197,14 @@ function Xr(t, e) {
|
|
|
4191
4197
|
}
|
|
4192
4198
|
return i;
|
|
4193
4199
|
}
|
|
4194
|
-
function
|
|
4200
|
+
function ts(t, e) {
|
|
4195
4201
|
const i = e, a = re(t), n = a.length === 1;
|
|
4196
4202
|
return a.forEach((r) => {
|
|
4197
|
-
const s = je(n ? void 0 : r), o = i[s[
|
|
4198
|
-
Number.isFinite(o) && Number.isFinite(c) && c >= o && (i[s[
|
|
4203
|
+
const s = je(n ? void 0 : r), o = i[s[$.FirstQuartile]], c = i[s[$.ThirdQuartile]];
|
|
4204
|
+
Number.isFinite(o) && Number.isFinite(c) && c >= o && (i[s[$.IQR]] = c - o);
|
|
4199
4205
|
}), i;
|
|
4200
4206
|
}
|
|
4201
|
-
function
|
|
4207
|
+
function is(t, e) {
|
|
4202
4208
|
const i = e.series[0], a = t;
|
|
4203
4209
|
if (i.type === S.HeatSeries) {
|
|
4204
4210
|
const { x: n, y: r } = i;
|
|
@@ -4213,7 +4219,7 @@ function Lt(t, e) {
|
|
|
4213
4219
|
i && (t[i] === void 0 && (t[i] = t[i.toUpperCase()] !== void 0 ? t[i.toUpperCase()] : t[i.toLowerCase()]), t[i] !== void 0 ? (i !== i.toUpperCase() && delete t[i.toUpperCase()], i !== i.toLowerCase() && delete t[i.toLowerCase()]) : delete t[i]);
|
|
4214
4220
|
});
|
|
4215
4221
|
}
|
|
4216
|
-
function
|
|
4222
|
+
function as(t, e) {
|
|
4217
4223
|
const i = Array.from(
|
|
4218
4224
|
new Set(
|
|
4219
4225
|
e.flatMap((a) => a.query?.outStatistics?.map((n) => n.outStatisticFieldName))
|
|
@@ -4221,7 +4227,7 @@ function ts(t, e) {
|
|
|
4221
4227
|
);
|
|
4222
4228
|
i.push(Y.outStatistics.outStatisticFieldName), Lt(t, i);
|
|
4223
4229
|
}
|
|
4224
|
-
function
|
|
4230
|
+
function ns(t, e) {
|
|
4225
4231
|
let i = { ...t };
|
|
4226
4232
|
return t !== void 0 && e[0] !== void 0 && (i = Object.keys(t).reduce((a, n) => {
|
|
4227
4233
|
const r = e.find(
|
|
@@ -4230,14 +4236,14 @@ function is(t, e) {
|
|
|
4230
4236
|
return r !== void 0 && t[n] !== void 0 && r !== n ? a[r] = t[n] : a[n] = t[n], a;
|
|
4231
4237
|
}, {})), i;
|
|
4232
4238
|
}
|
|
4233
|
-
function
|
|
4239
|
+
function rs(t) {
|
|
4234
4240
|
const { dataItem: e, splitByField: i, y: a } = t;
|
|
4235
4241
|
if (e !== void 0 && !ee(i) && !ee(a)) {
|
|
4236
4242
|
const n = e[i], r = `${a}_${n?.toString()}`;
|
|
4237
4243
|
e[r] = e[a], delete e[a];
|
|
4238
4244
|
}
|
|
4239
4245
|
}
|
|
4240
|
-
function
|
|
4246
|
+
function ss(t, e) {
|
|
4241
4247
|
Object.keys(t).forEach((a) => {
|
|
4242
4248
|
if (a.startsWith(`${e}_`)) {
|
|
4243
4249
|
const n = a.slice(e.length + 1);
|
|
@@ -4245,7 +4251,7 @@ function ns(t, e) {
|
|
|
4245
4251
|
}
|
|
4246
4252
|
});
|
|
4247
4253
|
}
|
|
4248
|
-
function
|
|
4254
|
+
function os(t, e) {
|
|
4249
4255
|
let i = 1;
|
|
4250
4256
|
switch (t) {
|
|
4251
4257
|
case p.BarAndLineFromFields:
|
|
@@ -4272,20 +4278,20 @@ function rs(t, e) {
|
|
|
4272
4278
|
}
|
|
4273
4279
|
return i;
|
|
4274
4280
|
}
|
|
4275
|
-
function
|
|
4281
|
+
function ls(t) {
|
|
4276
4282
|
const { attributes: e, showMean: i, chartSubType: a } = t;
|
|
4277
4283
|
i && (a === p.BoxPlotMonoFieldAndSplitBy || a === p.BoxPlotMultiFieldsAndSplitBy || a === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
|
|
4278
4284
|
}
|
|
4279
|
-
function
|
|
4285
|
+
function cs(t) {
|
|
4280
4286
|
const { queryResponse: e, chartConfig: i, maxCategoryCount: a } = t, n = V(i.series);
|
|
4281
|
-
return a && Number.isFinite(a) && a < e.length &&
|
|
4287
|
+
return a && Number.isFinite(a) && a < e.length && Ni.includes(n) ? e.slice(0, a) : e;
|
|
4282
4288
|
}
|
|
4283
|
-
function
|
|
4289
|
+
function us(t) {
|
|
4284
4290
|
const { attributes: e, uniqueCategoryList: i, maxCategoryCount: a, x: n, chartSubType: r } = t;
|
|
4285
4291
|
let s = !1;
|
|
4286
|
-
if (n && a && Number.isFinite(a) && !
|
|
4292
|
+
if (n && a && Number.isFinite(a) && !Ni.includes(r))
|
|
4287
4293
|
if ((r === p.BarAndLineFromFields || r === p.PieFromFields) && Object.keys(e).length > a)
|
|
4288
|
-
Object.keys(e).filter((o) => o !==
|
|
4294
|
+
Object.keys(e).filter((o) => o !== A.EnvelopeAggregate).forEach((o, c) => {
|
|
4289
4295
|
c >= a && delete e[o];
|
|
4290
4296
|
});
|
|
4291
4297
|
else {
|
|
@@ -4294,7 +4300,7 @@ function ls(t) {
|
|
|
4294
4300
|
}
|
|
4295
4301
|
return s;
|
|
4296
4302
|
}
|
|
4297
|
-
function
|
|
4303
|
+
function Li(t) {
|
|
4298
4304
|
const {
|
|
4299
4305
|
queryResponse: e,
|
|
4300
4306
|
chartConfig: i,
|
|
@@ -4308,35 +4314,35 @@ function Mi(t) {
|
|
|
4308
4314
|
showMean: u,
|
|
4309
4315
|
chartLimits: d,
|
|
4310
4316
|
fieldList: f
|
|
4311
|
-
} = t, { series: m } = i, g = V(m), y = W(m), { x: h } = 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,
|
|
4312
|
-
let
|
|
4313
|
-
const M = /* @__PURE__ */ new Set(), { maxCategoryCount: w } = Re(d),
|
|
4314
|
-
for (let L = 0;
|
|
4315
|
-
|
|
4316
|
-
const
|
|
4317
|
-
let
|
|
4318
|
-
if (
|
|
4317
|
+
} = t, { series: m } = i, g = V(m), y = W(m), { x: h } = 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 = [];
|
|
4318
|
+
let O = 0;
|
|
4319
|
+
const M = /* @__PURE__ */ new Set(), { maxCategoryCount: w } = Re(d), I = cs({ queryResponse: e, chartConfig: i, maxCategoryCount: w });
|
|
4320
|
+
for (let L = 0; I[L] && L < I.length && !(l !== void 0 && O >= l); L += 1) {
|
|
4321
|
+
O += os(g, i);
|
|
4322
|
+
const D = I[L];
|
|
4323
|
+
let P = { ...D.attributes };
|
|
4324
|
+
if (us({ attributes: P, uniqueCategoryList: M, maxCategoryCount: w, x: h, chartSubType: g }))
|
|
4319
4325
|
continue;
|
|
4320
|
-
|
|
4321
|
-
|
|
4326
|
+
as(P, m), g === p.PieFromFields || g === p.BarAndLineFromFields ? P = ns(P, F) : typeof x == "string" && g === p.BarAndLineSplitByNoAggregation ? rs({ dataItem: P, splitByField: n, y: x }) : x && (g === p.BoxPlotMonoField || g === p.BoxPlotMonoFieldAndCategory || g === p.BoxPlotMonoFieldAndSplitBy || g === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && ss(
|
|
4327
|
+
P,
|
|
4322
4328
|
typeof x == "string" ? x : x[0]
|
|
4323
|
-
),
|
|
4324
|
-
let q =
|
|
4325
|
-
q === null && m[0]?.query?.fetchNullValues === !0 && g !== p.PieFromFields && (
|
|
4326
|
-
const { outStatisticFieldName: Q } = Y.outStatistics ?? {}, { featureExtent: X, featureExtentKey:
|
|
4327
|
-
if (X && (
|
|
4328
|
-
const ce =
|
|
4329
|
-
te !== void 0 && (ce === n && (
|
|
4330
|
-
} else (g === p.PieNoAggregation || g === p.BarAndLineNoAggregation || g === p.BarAndLineSplitByNoAggregation) && (s ?
|
|
4331
|
-
const Z =
|
|
4329
|
+
), ls({ attributes: P, showMean: u, chartSubType: g });
|
|
4330
|
+
let q = P[h];
|
|
4331
|
+
q === null && m[0]?.query?.fetchNullValues === !0 && g !== p.PieFromFields && (P[C] = null, q = b.nullValue), s && typeof q == "string" ? q = new Date(q).valueOf() : o && (q = Xr(P));
|
|
4332
|
+
const { outStatisticFieldName: Q } = Y.outStatistics ?? {}, { featureExtent: X, featureExtentKey: R } = Mi({ feature: D, splitByField: n, chartSubType: g });
|
|
4333
|
+
if (X && (P[R] = X), g === p.BarAndLineSplitBy && Q !== void 0) {
|
|
4334
|
+
const ce = P[n], te = a?.get(ce);
|
|
4335
|
+
te !== void 0 && (ce === n && (P[b.technicalFieldSplitByField] = P[te]), P[te] = P[Q]), delete P[Q];
|
|
4336
|
+
} else (g === p.PieNoAggregation || g === p.BarAndLineNoAggregation || g === p.BarAndLineSplitByNoAggregation) && (s ? P[B] = q : q !== b.nullValue && (P[C] = q), Ia({ isXAxis: !0, chartType: y, valueFormat: i.axes?.[0]?.valueFormat }) && (P[b.xAxisField] = `${q}-${L}`), P[Y.uniqueIdsName] = P[r]);
|
|
4337
|
+
const Z = ya({
|
|
4332
4338
|
subtypeInfo: c,
|
|
4333
4339
|
fieldList: f,
|
|
4334
4340
|
fieldName: h,
|
|
4335
4341
|
fieldValueToMatch: q
|
|
4336
4342
|
});
|
|
4337
|
-
Z !== void 0 && Z !== q && g !== p.PieFromFields && (
|
|
4343
|
+
Z !== void 0 && Z !== q && g !== p.PieFromFields && (P[C] = Z, P[N] = h, P[v] = q), y === S.BoxPlotSeries && (P = ts(m, P)), y === S.PieSeries && typeof q == "number" && (P[C] === void 0 && (P[C] = P[h]), q = `${q}`), q !== void 0 && (P[C] === void 0 && (P[C] = P[h]), P[h] = Z ?? q, P[h] === null && (P[h] = b.nullValue), P[b.xAxisField] === void 0 && (P[b.xAxisField] = P[v] ?? P[h])), P = is(P, i), T.push(P);
|
|
4338
4344
|
}
|
|
4339
|
-
return
|
|
4345
|
+
return T;
|
|
4340
4346
|
}
|
|
4341
4347
|
async function ut(t) {
|
|
4342
4348
|
const {
|
|
@@ -4357,8 +4363,8 @@ async function ut(t) {
|
|
|
4357
4363
|
queryConfig: i,
|
|
4358
4364
|
featureCount: s,
|
|
4359
4365
|
abortKey: r
|
|
4360
|
-
}), h = await Ne(e, u), F = z(e).objectIdField, C =
|
|
4361
|
-
return m =
|
|
4366
|
+
}), h = await Ne(e, u), F = z(e).objectIdField, C = ga(h), { x: B } = d[0], N = C.includes(B), v = ni(e);
|
|
4367
|
+
return m = Li({
|
|
4362
4368
|
queryResponse: y,
|
|
4363
4369
|
chartConfig: a,
|
|
4364
4370
|
mapToStatField: n,
|
|
@@ -4371,17 +4377,17 @@ async function ut(t) {
|
|
|
4371
4377
|
resultLimit: i.num,
|
|
4372
4378
|
showMean: c,
|
|
4373
4379
|
chartLimits: l
|
|
4374
|
-
}), f !== p.BarAndLineSplitByNoAggregation && f !== p.BarAndLineFromFields && (g !== "" && (m = Mt({ data: m, x: B, splitByField: g })), m =
|
|
4380
|
+
}), f !== p.BarAndLineSplitByNoAggregation && f !== p.BarAndLineFromFields && (g !== "" && (m = Mt({ data: m, x: B, splitByField: g })), m = es(
|
|
4375
4381
|
m,
|
|
4376
4382
|
d
|
|
4377
4383
|
)), m;
|
|
4378
4384
|
}
|
|
4379
|
-
async function
|
|
4385
|
+
async function wi(t) {
|
|
4380
4386
|
const { chartConfig: e, queryObject: i, queryConfig: a, numberMaxOfFeaturesToFetch: n, behaviorAfterLimit: r, isGaugeByFeature: s } = t, { series: o } = e, c = V(o), { x: l } = o[0], u = o.length;
|
|
4381
4387
|
let d, f;
|
|
4382
4388
|
if (c === p.BoxPlotMonoField || c === p.BoxPlotMonoFieldAndSplitBy ? (f = u, d = f) : c === p.BoxPlotMultiFields || c === p.BoxPlotMultiFieldsAndSplitBy ? (f = e.series[0].y.length, d = f) : c === p.PieFromFields || c === p.BarAndLineFromFields ? (f = o[0].query?.outStatistics?.filter(
|
|
4383
|
-
(m) => m.statisticType !==
|
|
4384
|
-
).length ?? 0, d = f) : d = await
|
|
4389
|
+
(m) => m.statisticType !== A.EnvelopeAggregate
|
|
4390
|
+
).length ?? 0, d = f) : d = await ma({ queryObject: i, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
|
|
4385
4391
|
const m = c === p.BoxPlotMonoField || c === p.BoxPlotMonoFieldAndCategory || c === p.BoxPlotMonoFieldAndSplitBy;
|
|
4386
4392
|
f = Ft(c) && !m ? d * u : d;
|
|
4387
4393
|
}
|
|
@@ -4402,7 +4408,7 @@ function Ke(t) {
|
|
|
4402
4408
|
let { sortingField: d } = l;
|
|
4403
4409
|
const f = i.orderOptions?.data?.orderType === be.Category, m = l.preferLabel !== !1, g = s === p.BarAndLineFromFields || s === p.PieFromFields || s === p.BoxPlotMultiFields || s === p.BoxPlotMultiFieldsAndSplitBy, y = g || o === S.PieSeries, h = s === p.PieNoAggregation || s === p.BarAndLineNoAggregation || s === p.BarAndLineSplitByNoAggregation, x = g ? !1 : e?.length > 0 && e.some((F) => Object.hasOwn(F, b.typeOrDomainIdValue));
|
|
4404
4410
|
if (f && (!m || o === S.LineSeries && c === S.NumberAxisFormat) && (x ? d = b.typeOrDomainIdValue : y && (d = b.originalCategoryValue)), Array.isArray(u))
|
|
4405
|
-
|
|
4411
|
+
Ha({
|
|
4406
4412
|
arrayToSort: e,
|
|
4407
4413
|
orderBy: u,
|
|
4408
4414
|
sortingField: d,
|
|
@@ -4438,16 +4444,16 @@ async function Bt(t) {
|
|
|
4438
4444
|
fetchFullBoxPlotData: a,
|
|
4439
4445
|
options: n
|
|
4440
4446
|
});
|
|
4441
|
-
let { categoryOrDateCount: v, elementCount:
|
|
4447
|
+
let { categoryOrDateCount: v, elementCount: T } = await wi({
|
|
4442
4448
|
chartConfig: e,
|
|
4443
4449
|
queryObject: r,
|
|
4444
4450
|
queryConfig: i,
|
|
4445
4451
|
behaviorAfterLimit: f,
|
|
4446
4452
|
numberMaxOfFeaturesToFetch: B.num
|
|
4447
4453
|
});
|
|
4448
|
-
const
|
|
4449
|
-
let M =
|
|
4450
|
-
count:
|
|
4454
|
+
const O = !Number.isFinite(T);
|
|
4455
|
+
let M = O || Se({
|
|
4456
|
+
count: T ?? 0,
|
|
4451
4457
|
seriesCount: h.length,
|
|
4452
4458
|
chartType: C,
|
|
4453
4459
|
chartLimits: l
|
|
@@ -4457,23 +4463,23 @@ async function Bt(t) {
|
|
|
4457
4463
|
uniqueQuery: B,
|
|
4458
4464
|
chartConfig: e,
|
|
4459
4465
|
mapToStatField: N,
|
|
4460
|
-
elementCount:
|
|
4466
|
+
elementCount: T,
|
|
4461
4467
|
isTimeBinningSeries: !1,
|
|
4462
4468
|
showMean: c,
|
|
4463
4469
|
chartLimits: l,
|
|
4464
4470
|
usePopupTemplateFieldsInfo: u,
|
|
4465
4471
|
abortKey: s
|
|
4466
|
-
}), C === S.BoxPlotSeries && (m.data = await
|
|
4472
|
+
}), C === S.BoxPlotSeries && (m.data = await Ln({
|
|
4467
4473
|
data: g,
|
|
4468
4474
|
queryObject: r,
|
|
4469
4475
|
fetchFullBoxPlotData: a,
|
|
4470
4476
|
uniqueQuery: B,
|
|
4471
4477
|
chartConfig: e,
|
|
4472
|
-
elementCount:
|
|
4478
|
+
elementCount: T,
|
|
4473
4479
|
chartLimits: l,
|
|
4474
4480
|
abortKey: s
|
|
4475
|
-
}), l?.maxBoxPlotOutlierLimit !== void 0 && (M = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !M)),
|
|
4476
|
-
count:
|
|
4481
|
+
}), l?.maxBoxPlotOutlierLimit !== void 0 && (M = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !M)), O && (v = g.length, T = Ft(F) ? v * h.length : v, M = Se({
|
|
4482
|
+
count: T,
|
|
4477
4483
|
seriesCount: h.length,
|
|
4478
4484
|
chartType: C,
|
|
4479
4485
|
chartLimits: l
|
|
@@ -4486,13 +4492,13 @@ async function Bt(t) {
|
|
|
4486
4492
|
fieldList: o
|
|
4487
4493
|
}));
|
|
4488
4494
|
let w = "";
|
|
4489
|
-
F === p.PieFromFields ? w = he : "y" in x && typeof x.y == "string" && (w = x.y),
|
|
4495
|
+
F === p.PieFromFields ? w = he : "y" in x && typeof x.y == "string" && (w = x.y), ln(g, w) ? m.data = { dataItems: g } : hn(m, k.PieChartMixOfNegativePositiveSlices);
|
|
4490
4496
|
} else if ((C === S.RadarSeries || C === S.BarSeries || C === S.LineSeries || C === S.ComboLineAndBarSeries) && (F === p.BarAndLineFromFields && "y" in x && typeof x.y == "string" ? g = st({
|
|
4491
4497
|
dataToConvert: g[0],
|
|
4492
4498
|
x: x.x,
|
|
4493
4499
|
y: x.y,
|
|
4494
4500
|
fieldList: o
|
|
4495
|
-
}) : g = await
|
|
4501
|
+
}) : g = await Dr({
|
|
4496
4502
|
queryObject: r,
|
|
4497
4503
|
seriesData: g,
|
|
4498
4504
|
chartConfig: e,
|
|
@@ -4500,31 +4506,31 @@ async function Bt(t) {
|
|
|
4500
4506
|
categoryOrDateCount: v,
|
|
4501
4507
|
behaviorAfterLimit: f,
|
|
4502
4508
|
abortKey: s
|
|
4503
|
-
}),
|
|
4504
|
-
count:
|
|
4509
|
+
}), T = Ft(F) ? g.length * h.length : g.length, M = Se({
|
|
4510
|
+
count: T,
|
|
4505
4511
|
seriesCount: h.length,
|
|
4506
4512
|
chartType: C,
|
|
4507
4513
|
chartLimits: l
|
|
4508
4514
|
}), M)) {
|
|
4509
|
-
d && (g =
|
|
4515
|
+
d && (g = Or(g, e)), Ke({ arrayToSort: g, chartConfig: e, fieldList: o });
|
|
4510
4516
|
let w = {};
|
|
4511
4517
|
if (se(x)) {
|
|
4512
|
-
const { size:
|
|
4513
|
-
|
|
4518
|
+
const { size: I, unit: L } = x.temporalBinning ?? {};
|
|
4519
|
+
I !== void 0 && L !== void 0 && (w = { size: I, unit: L });
|
|
4514
4520
|
}
|
|
4515
4521
|
m.data = { dataItems: g, timeIntervalInfo: w };
|
|
4516
4522
|
}
|
|
4517
4523
|
}
|
|
4518
|
-
M || ot({ dataInfo: m, chartType: C, subError: { outlierLimit: y } }), m.count =
|
|
4524
|
+
M || ot({ dataInfo: m, chartType: C, subError: { outlierLimit: y } }), m.count = T;
|
|
4519
4525
|
}
|
|
4520
4526
|
return m;
|
|
4521
4527
|
}
|
|
4522
|
-
function
|
|
4528
|
+
function ds(t) {
|
|
4523
4529
|
let e;
|
|
4524
4530
|
const { start: i, end: a } = ti({ field: "", unit: t });
|
|
4525
4531
|
return a && (e = Array.from({ length: a + (i === 0 ? 1 : 0) }, (n, r) => (r + (i ?? 1)).toString())), e;
|
|
4526
4532
|
}
|
|
4527
|
-
async function
|
|
4533
|
+
async function Di(t) {
|
|
4528
4534
|
const {
|
|
4529
4535
|
chartConfig: e,
|
|
4530
4536
|
queryConfig: i,
|
|
@@ -4538,8 +4544,8 @@ async function wi(t) {
|
|
|
4538
4544
|
const u = e.series[0], { nullPolicy: d } = "nullPolicy" in e ? e : {};
|
|
4539
4545
|
if (u.type === S.HeatSeries) {
|
|
4540
4546
|
const { x: f, y: m, query: g, yTemporalBinning: y } = u, h = g?.outStatistics?.[0]?.outStatisticFieldName ?? "";
|
|
4541
|
-
if (
|
|
4542
|
-
const x = await
|
|
4547
|
+
if (mi(e)) {
|
|
4548
|
+
const x = await da({
|
|
4543
4549
|
chartConfig: e,
|
|
4544
4550
|
queryObject: a,
|
|
4545
4551
|
queryConfig: i,
|
|
@@ -4556,7 +4562,7 @@ async function wi(t) {
|
|
|
4556
4562
|
ot({ dataInfo: c, chartType: S.HeatSeries });
|
|
4557
4563
|
else if (typeof x?.[0] == "object") {
|
|
4558
4564
|
const F = await Ne(a, s?.usePopupTemplateFieldsInfo), C = ni(a);
|
|
4559
|
-
l =
|
|
4565
|
+
l = Li({
|
|
4560
4566
|
queryResponse: x,
|
|
4561
4567
|
chartConfig: e,
|
|
4562
4568
|
splitByField: "",
|
|
@@ -4571,40 +4577,40 @@ async function wi(t) {
|
|
|
4571
4577
|
const B = await yt({ queryObject: a, queryConfig: i, category: f, abortKey: o }), N = await yt({ queryObject: a, queryConfig: i, category: m, abortKey: o });
|
|
4572
4578
|
if (l.length !== B?.length * N?.length) {
|
|
4573
4579
|
const v = B.flatMap(
|
|
4574
|
-
(
|
|
4575
|
-
[j.xField]:
|
|
4576
|
-
[j.yField]:
|
|
4580
|
+
(T) => N.map((O) => ({
|
|
4581
|
+
[j.xField]: T,
|
|
4582
|
+
[j.yField]: O,
|
|
4577
4583
|
[j.valueField]: d === ne.Zero ? 0 : null
|
|
4578
4584
|
}))
|
|
4579
4585
|
);
|
|
4580
4586
|
l = [
|
|
4581
4587
|
...l,
|
|
4582
4588
|
...v.filter(
|
|
4583
|
-
(
|
|
4584
|
-
(
|
|
4589
|
+
(T) => !l.some(
|
|
4590
|
+
(O) => `${O[j.xField]}${O[j.yField]}` == `${T[j.xField]}${T[j.yField]}`
|
|
4585
4591
|
)
|
|
4586
4592
|
)
|
|
4587
4593
|
];
|
|
4588
4594
|
}
|
|
4589
4595
|
}
|
|
4590
4596
|
} else {
|
|
4591
|
-
const x = await
|
|
4597
|
+
const x = await fa({
|
|
4592
4598
|
chartConfig: e,
|
|
4593
4599
|
queryObject: a,
|
|
4594
4600
|
queryConfig: i,
|
|
4595
4601
|
errorStrings: r
|
|
4596
|
-
}), F = y ?
|
|
4602
|
+
}), F = y ? ds(y.unit) : await yt({ queryObject: a, queryConfig: i, category: m, abortKey: o });
|
|
4597
4603
|
let C = 0;
|
|
4598
4604
|
l = x?.features.flatMap((B) => {
|
|
4599
|
-
const N = [], { attributes: v, stackedAttributes:
|
|
4600
|
-
return
|
|
4605
|
+
const N = [], { attributes: v, stackedAttributes: T } = B, O = [];
|
|
4606
|
+
return T?.forEach((M) => {
|
|
4601
4607
|
const w = `${M[m]}`;
|
|
4602
|
-
|
|
4608
|
+
O.push(w), N.push({
|
|
4603
4609
|
[j.xField]: `${v.lowerBoundary}`,
|
|
4604
4610
|
[j.yField]: w,
|
|
4605
4611
|
[j.valueField]: M[h]
|
|
4606
4612
|
});
|
|
4607
|
-
}), n && F &&
|
|
4613
|
+
}), n && F && O.length !== F?.length && F.filter((w) => !O.includes(w.toString())).forEach((w) => {
|
|
4608
4614
|
N.push({
|
|
4609
4615
|
[j.xField]: `${v.lowerBoundary}`,
|
|
4610
4616
|
[j.yField]: w,
|
|
@@ -4621,10 +4627,10 @@ async function wi(t) {
|
|
|
4621
4627
|
}
|
|
4622
4628
|
return l && (c.data = { dataItems: l }), c;
|
|
4623
4629
|
}
|
|
4624
|
-
function
|
|
4630
|
+
function fs(t) {
|
|
4625
4631
|
const { chartConfig: e, options: i, data: a } = t, n = e.series;
|
|
4626
4632
|
let r = a;
|
|
4627
|
-
const s =
|
|
4633
|
+
const s = fi(e, i?.chartLimits);
|
|
4628
4634
|
if (s !== void 0) {
|
|
4629
4635
|
const o = re(n);
|
|
4630
4636
|
if (o.length === 1)
|
|
@@ -4655,47 +4661,47 @@ async function wt(t) {
|
|
|
4655
4661
|
const { temporalBinning: h } = d;
|
|
4656
4662
|
if (a && h) {
|
|
4657
4663
|
const { unit: x, size: F } = h;
|
|
4658
|
-
let C = 1, B = { unit: x, size: F };
|
|
4659
|
-
const
|
|
4664
|
+
let C = 1, B = { unit: x, size: F }, N = !1;
|
|
4665
|
+
const v = Jr({
|
|
4660
4666
|
series: d,
|
|
4661
4667
|
isTimeBinningSeries: !0,
|
|
4662
4668
|
setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided
|
|
4663
4669
|
});
|
|
4664
|
-
let
|
|
4665
|
-
!
|
|
4670
|
+
let T = r?.timeBinningStats;
|
|
4671
|
+
!T && (!Qe(a) || v) && (T = await jr({ queryObject: a, queryConfig: i, x: f })), v && T && T.numberOfFeatures > 0 && T.dateRange.dateMaxTimestamp !== void 0 && T.dateRange.dateMinTimestamp !== void 0 && (B = Kr(T), (await Ne(a)).find((D) => D.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
|
|
4666
4672
|
E.Hour,
|
|
4667
4673
|
E.Minute,
|
|
4668
4674
|
E.Second
|
|
4669
4675
|
].includes(B.unit) && (B.unit = E.Day, B.size = 1), h.size = B.size, h.unit = B.unit);
|
|
4670
|
-
const { uniqueQuery:
|
|
4676
|
+
const { uniqueQuery: O, mapToStatField: M } = await ct({
|
|
4671
4677
|
chartConfig: e,
|
|
4672
4678
|
queryConfig: i,
|
|
4673
4679
|
queryObject: a,
|
|
4674
4680
|
timeIntervalInfo: B,
|
|
4675
4681
|
options: s
|
|
4676
4682
|
});
|
|
4677
|
-
let
|
|
4683
|
+
let w = Se({
|
|
4678
4684
|
count: C ?? 0,
|
|
4679
4685
|
seriesCount: u.length,
|
|
4680
4686
|
chartType: S.LineSeries,
|
|
4681
4687
|
chartLimits: o
|
|
4682
4688
|
});
|
|
4683
|
-
if (
|
|
4689
|
+
if (w) {
|
|
4684
4690
|
if (Qe(a)) {
|
|
4685
|
-
const
|
|
4691
|
+
const I = await ai({
|
|
4686
4692
|
queryObject: a,
|
|
4687
4693
|
dateField: f,
|
|
4688
4694
|
splitByField: m,
|
|
4689
|
-
queryConfig:
|
|
4695
|
+
queryConfig: O,
|
|
4690
4696
|
temporalBinning: h
|
|
4691
|
-
}),
|
|
4692
|
-
if (y = await
|
|
4697
|
+
}), L = "y" in d && typeof d.y == "string" ? d.y : void 0;
|
|
4698
|
+
if (y = await Gr({
|
|
4693
4699
|
chartConfig: e,
|
|
4694
|
-
queryResults:
|
|
4695
|
-
mapToStatField:
|
|
4700
|
+
queryResults: I,
|
|
4701
|
+
mapToStatField: M,
|
|
4696
4702
|
splitByField: m,
|
|
4697
4703
|
x: f,
|
|
4698
|
-
y:
|
|
4704
|
+
y: L,
|
|
4699
4705
|
nullPolicy: h.nullPolicy,
|
|
4700
4706
|
queryObject: a
|
|
4701
4707
|
}), !Se({
|
|
@@ -4704,50 +4710,50 @@ async function wt(t) {
|
|
|
4704
4710
|
chartType: S.LineSeries,
|
|
4705
4711
|
chartLimits: o
|
|
4706
4712
|
})) {
|
|
4707
|
-
const
|
|
4708
|
-
(
|
|
4713
|
+
const D = re(u), P = y.filter(
|
|
4714
|
+
(q) => D.some((Q) => Q in q && Number.isFinite(q[Q]))
|
|
4709
4715
|
).length;
|
|
4710
4716
|
Se({
|
|
4711
|
-
count:
|
|
4717
|
+
count: P,
|
|
4712
4718
|
seriesCount: u.length,
|
|
4713
4719
|
chartType: S.LineSeries,
|
|
4714
4720
|
chartLimits: o
|
|
4715
|
-
}) || (
|
|
4721
|
+
}) || (w = !1);
|
|
4716
4722
|
}
|
|
4717
|
-
} else if (
|
|
4718
|
-
const { numberOfFinalBinsWithinDataRange:
|
|
4719
|
-
dateMinTimestamp:
|
|
4720
|
-
dateMaxTimestamp:
|
|
4723
|
+
} else if (T?.dateRange.dateMinTimestamp && T.dateRange.dateMaxTimestamp) {
|
|
4724
|
+
const { numberOfFinalBinsWithinDataRange: I } = Ai({
|
|
4725
|
+
dateMinTimestamp: T.dateRange.dateMinTimestamp,
|
|
4726
|
+
dateMaxTimestamp: T.dateRange.dateMaxTimestamp,
|
|
4721
4727
|
timeIntervalInfo: B
|
|
4722
4728
|
});
|
|
4723
|
-
C =
|
|
4729
|
+
C = I * u.length, C = Ti(C, B.unit), y = r?.data ?? await ut({
|
|
4724
4730
|
queryObject: a,
|
|
4725
|
-
uniqueQuery:
|
|
4731
|
+
uniqueQuery: O,
|
|
4726
4732
|
chartConfig: e,
|
|
4727
|
-
mapToStatField:
|
|
4733
|
+
mapToStatField: M,
|
|
4728
4734
|
elementCount: C,
|
|
4729
4735
|
chartLimits: o,
|
|
4730
4736
|
isTimeBinningSeries: !0,
|
|
4731
4737
|
usePopupTemplateFieldsInfo: c,
|
|
4732
4738
|
abortKey: n
|
|
4733
|
-
}), g.binnedServerData = { data: Ie(y), timeBinningStats:
|
|
4739
|
+
}), g.binnedServerData = { data: Ie(y), timeBinningStats: T }, y = await _r({
|
|
4734
4740
|
queryObject: a,
|
|
4735
4741
|
queryConfig: i,
|
|
4736
4742
|
queryResults: y,
|
|
4737
4743
|
x: f,
|
|
4738
4744
|
seriesConfig: u,
|
|
4739
|
-
dateRange:
|
|
4745
|
+
dateRange: T.dateRange,
|
|
4740
4746
|
timeIntervalInfo: B
|
|
4741
4747
|
});
|
|
4742
4748
|
}
|
|
4743
|
-
l === $e.RenderUpToTheLimit && y && (y =
|
|
4749
|
+
ua(a) && y && y?.length === qr && (N = !0), l === $e.RenderUpToTheLimit && y && (y = fs({ chartConfig: e, options: s, data: y }));
|
|
4744
4750
|
}
|
|
4745
|
-
|
|
4751
|
+
w || (g.valid = !1, g.invalidType = k.LineChartExceedsLimit), y && y.length > 0 && (y[y.length - 1][b.lastTemporalBin] = !0), g.data = { dataItems: y, timeIntervalInfo: B, serverLimitReached: N }, g.count = C;
|
|
4746
4752
|
}
|
|
4747
4753
|
}
|
|
4748
4754
|
return g;
|
|
4749
4755
|
}
|
|
4750
|
-
async function
|
|
4756
|
+
async function ms(t) {
|
|
4751
4757
|
const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n, options: r } = t, s = He(e), { setTimeBinningInfoWhenNotProvided: o, chartLimits: c, usePopupTemplateFieldsInfo: l } = r ?? {}, u = { valid: !0 };
|
|
4752
4758
|
if (a !== void 0) {
|
|
4753
4759
|
const d = e.series, f = ve({
|
|
@@ -4774,11 +4780,11 @@ async function ds(t) {
|
|
|
4774
4780
|
usePopupTemplateFieldsInfo: l,
|
|
4775
4781
|
abortKey: n
|
|
4776
4782
|
});
|
|
4777
|
-
W(e.series) === S.BoxPlotSeries && (y =
|
|
4783
|
+
W(e.series) === S.BoxPlotSeries && (y = yi({ chartConfig: e, data: y, calculateZScore: !1 })), u.data = { dataItems: y };
|
|
4778
4784
|
}
|
|
4779
4785
|
return u;
|
|
4780
4786
|
}
|
|
4781
|
-
async function
|
|
4787
|
+
async function gs(t) {
|
|
4782
4788
|
const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n, options: r, errorStrings: s } = t, o = "showMean" in e ? e.showMean : !1, c = await Pt({
|
|
4783
4789
|
queryObject: a,
|
|
4784
4790
|
chartConfig: e,
|
|
@@ -4789,16 +4795,16 @@ async function fs(t) {
|
|
|
4789
4795
|
});
|
|
4790
4796
|
return o && c.data && "dataItems" in c.data && "meanLines" in c.data && c.data.meanLines && (c.data.dataItems = [...c.data.dataItems, ...c.data.meanLines]), c;
|
|
4791
4797
|
}
|
|
4792
|
-
function
|
|
4798
|
+
function Oi(t) {
|
|
4793
4799
|
return t?.[nt.defaultGroupOfSlicesId] === !0;
|
|
4794
4800
|
}
|
|
4795
|
-
function
|
|
4801
|
+
function il(t, e) {
|
|
4796
4802
|
const i = t.filter(
|
|
4797
|
-
(a) => !
|
|
4803
|
+
(a) => !Oi(a)
|
|
4798
4804
|
);
|
|
4799
4805
|
return !Pe(i, e);
|
|
4800
4806
|
}
|
|
4801
|
-
function
|
|
4807
|
+
function ys(t, e) {
|
|
4802
4808
|
let i = t.reduce((a, n) => {
|
|
4803
4809
|
if (n[nt.defaultGroupOfSlicesId] === !0) {
|
|
4804
4810
|
const r = n[b.pieChart.technicalFieldGroupedSlices];
|
|
@@ -4812,60 +4818,60 @@ function ms(t, e) {
|
|
|
4812
4818
|
return Ke({
|
|
4813
4819
|
arrayToSort: i,
|
|
4814
4820
|
chartConfig: e
|
|
4815
|
-
}), i =
|
|
4821
|
+
}), i = ci({
|
|
4816
4822
|
data: { dataItems: i },
|
|
4817
4823
|
seriesConfig: e.series
|
|
4818
4824
|
})?.dataItems ?? [], i;
|
|
4819
4825
|
}
|
|
4820
|
-
function
|
|
4826
|
+
function ps(t) {
|
|
4821
4827
|
const { stringToTruncate: e, characterLimit: i, ellipsis: a = b.chartEllipsis } = t;
|
|
4822
4828
|
let n = e;
|
|
4823
4829
|
return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (n = e.slice(0, i), n = `${n}${a}`), n;
|
|
4824
4830
|
}
|
|
4825
|
-
function
|
|
4831
|
+
function al(t, e = ":") {
|
|
4826
4832
|
return t ? `${e}` : `${e}`;
|
|
4827
4833
|
}
|
|
4828
|
-
function
|
|
4834
|
+
function nl(t) {
|
|
4829
4835
|
return (i) => {
|
|
4830
4836
|
let a = typeof i != "string" ? i?.toString() ?? "" : i;
|
|
4831
|
-
return !ee(a) && a !== b.htmlEmptyContent && (a =
|
|
4837
|
+
return !ee(a) && a !== b.htmlEmptyContent && (a = ps({
|
|
4832
4838
|
stringToTruncate: a,
|
|
4833
4839
|
characterLimit: t
|
|
4834
4840
|
})), a;
|
|
4835
4841
|
};
|
|
4836
4842
|
}
|
|
4837
|
-
function
|
|
4843
|
+
function hs(t) {
|
|
4838
4844
|
const e = /[[]/gu, i = /[\]]/gu, a = /[{]/gu, n = /[}]/gu, r = /[']/gu;
|
|
4839
4845
|
return t = t.replace(e, "[["), t = t.replace(i, "]]"), t = t.replace(a, "{{"), t = t.replace(n, "}}"), t = t.replace(r, "''"), t;
|
|
4840
4846
|
}
|
|
4841
|
-
function
|
|
4847
|
+
function Ss(t, e) {
|
|
4842
4848
|
let i = "";
|
|
4843
4849
|
return t !== void 0 && (i = `${e === "amChartsV5" ? "fontStyle" : "font-style"}:${t};`), i;
|
|
4844
4850
|
}
|
|
4845
|
-
function
|
|
4851
|
+
function Fs(t, e) {
|
|
4846
4852
|
let i = "";
|
|
4847
4853
|
return t === !0 && (i = `${e === "amChartsV5" ? "letterSpacing" : "letter-spacing"}:1px;`), i;
|
|
4848
4854
|
}
|
|
4849
|
-
function
|
|
4850
|
-
const { textSymbol: e, placeholderString: i, format: a, axisLabelsBehavior: n, defaults: r } = t, s =
|
|
4855
|
+
function rl(t) {
|
|
4856
|
+
const { textSymbol: e, placeholderString: i, format: a, axisLabelsBehavior: n, defaults: r } = t, s = Ss(e?.font?.style, a), o = Fs(e?.kerning, a);
|
|
4851
4857
|
let c = i ?? e?.text ?? "";
|
|
4852
4858
|
if (a === "html") {
|
|
4853
4859
|
let { wrap: l, maxWidth: u } = r ?? {};
|
|
4854
|
-
n ===
|
|
4860
|
+
n === $i.Wrap && (l = !0, u = u ?? b.xAxisLabelMaxWidth);
|
|
4855
4861
|
const d = l === !0 && Number.isFinite(u) ? `max-width: ${u}px; word-break: break-word;` : "";
|
|
4856
4862
|
c = `<p style="margin:0;${s}${o}${d}">${c}</p>`;
|
|
4857
4863
|
} else
|
|
4858
|
-
c =
|
|
4864
|
+
c = hs(c), (s !== "" || o !== "") && (c = `[${s}${o}]${c}[/]`);
|
|
4859
4865
|
return c;
|
|
4860
4866
|
}
|
|
4861
|
-
function
|
|
4867
|
+
function bs(t) {
|
|
4862
4868
|
return t ? t.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
|
|
4863
4869
|
}
|
|
4864
4870
|
const qe = {
|
|
4865
4871
|
ChartRenderer: 1,
|
|
4866
4872
|
LayerRenderer: 2
|
|
4867
4873
|
};
|
|
4868
|
-
function
|
|
4874
|
+
function sl(t) {
|
|
4869
4875
|
const { chartConfig: e, queryObject: i } = t;
|
|
4870
4876
|
let a = !1;
|
|
4871
4877
|
if (e.chartRenderer)
|
|
@@ -4898,10 +4904,10 @@ function nl(t) {
|
|
|
4898
4904
|
}
|
|
4899
4905
|
return a;
|
|
4900
4906
|
}
|
|
4901
|
-
function
|
|
4902
|
-
return
|
|
4907
|
+
function xs(t, e) {
|
|
4908
|
+
return bs(t?.type) ?? e?.type;
|
|
4903
4909
|
}
|
|
4904
|
-
function
|
|
4910
|
+
function Cs(t) {
|
|
4905
4911
|
const e = b.rendererSymbolField;
|
|
4906
4912
|
let i = e in t ? e : void 0;
|
|
4907
4913
|
if (!i) {
|
|
@@ -4913,13 +4919,13 @@ function bs(t) {
|
|
|
4913
4919
|
}
|
|
4914
4920
|
return t[i]?.label;
|
|
4915
4921
|
}
|
|
4916
|
-
function
|
|
4922
|
+
function Bs(t) {
|
|
4917
4923
|
return t?.type !== void 0 && (t.color !== void 0 || t.label !== void 0 || t.style !== void 0 || t.outline !== void 0);
|
|
4918
4924
|
}
|
|
4919
|
-
function
|
|
4925
|
+
function qi(t) {
|
|
4920
4926
|
const { symbolField: e, dataItem: i, rendererSymbol: a, rendererOrigin: n } = t;
|
|
4921
4927
|
let r = !1;
|
|
4922
|
-
if (!
|
|
4928
|
+
if (!Bs(a))
|
|
4923
4929
|
delete i[e];
|
|
4924
4930
|
else {
|
|
4925
4931
|
const s = { ...a };
|
|
@@ -4927,7 +4933,7 @@ function Oi(t) {
|
|
|
4927
4933
|
}
|
|
4928
4934
|
return r;
|
|
4929
4935
|
}
|
|
4930
|
-
function
|
|
4936
|
+
function vs(t) {
|
|
4931
4937
|
const { renderer: e, seriesConfig: i, chartSubType: a, dataItem: n, rendererOrigin: r } = t;
|
|
4932
4938
|
let s, o = !1;
|
|
4933
4939
|
const c = W(i), { outline: l, attributes: u } = e;
|
|
@@ -4960,7 +4966,7 @@ function Cs(t) {
|
|
|
4960
4966
|
type: rt.SMS,
|
|
4961
4967
|
color: y,
|
|
4962
4968
|
label: x && g ? g : void 0
|
|
4963
|
-
}, l != null && (s.outline = l),
|
|
4969
|
+
}, l != null && (s.outline = l), qi({
|
|
4964
4970
|
dataItem: n,
|
|
4965
4971
|
symbolField: a === p.BarAndLineFromFields || a === p.PieFromFields ? b.rendererSymbolField : `${b.rendererSymbolField}_${f}`,
|
|
4966
4972
|
rendererSymbol: s,
|
|
@@ -4969,7 +4975,7 @@ function Cs(t) {
|
|
|
4969
4975
|
}
|
|
4970
4976
|
), { rendererSymbol: s, colorMatchApplied: o };
|
|
4971
4977
|
}
|
|
4972
|
-
function
|
|
4978
|
+
function Ns(t) {
|
|
4973
4979
|
const { seriesConfig: e, chartSubType: i, rendererType: a } = t;
|
|
4974
4980
|
let r = b.rendererSymbolField;
|
|
4975
4981
|
if (a === ie.UniqueValue) {
|
|
@@ -4994,27 +5000,27 @@ function Bs(t) {
|
|
|
4994
5000
|
}
|
|
4995
5001
|
return r;
|
|
4996
5002
|
}
|
|
4997
|
-
function
|
|
5003
|
+
function Ei(t) {
|
|
4998
5004
|
const { seriesConfig: e, chartSubType: i, rendererType: a, dataItem: n } = t;
|
|
4999
|
-
let r =
|
|
5005
|
+
let r = Ns({
|
|
5000
5006
|
seriesConfig: e,
|
|
5001
5007
|
chartSubType: i,
|
|
5002
5008
|
rendererType: a
|
|
5003
5009
|
});
|
|
5004
5010
|
return r instanceof Array && e.type === S.BoxPlotSeries && a === ie.PieChart && n !== void 0 && (r = r.find((s) => s === n[Jt]) ?? r[0]), r = r !== b.rendererSymbolField ? `${b.rendererSymbolField}_${r.toString()}` : r, r;
|
|
5005
5011
|
}
|
|
5006
|
-
function
|
|
5012
|
+
function Ts(t) {
|
|
5007
5013
|
const { chartRenderer: e, queryObject: i } = t, a = e !== void 0 ? {
|
|
5008
5014
|
// 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
|
|
5009
5015
|
// eslint-disable-next-line @typescript-eslint/no-misused-spread
|
|
5010
5016
|
...z(i),
|
|
5011
|
-
renderer:
|
|
5017
|
+
renderer: Fa.fromJSON(e)
|
|
5012
5018
|
} : z(i);
|
|
5013
|
-
return new
|
|
5019
|
+
return new ba({
|
|
5014
5020
|
layer: a
|
|
5015
5021
|
});
|
|
5016
5022
|
}
|
|
5017
|
-
async function
|
|
5023
|
+
async function As(t) {
|
|
5018
5024
|
const {
|
|
5019
5025
|
seriesConfig: e,
|
|
5020
5026
|
dataItem: i,
|
|
@@ -5029,7 +5035,7 @@ async function Ns(t) {
|
|
|
5029
5035
|
} = t;
|
|
5030
5036
|
let d, f = !1;
|
|
5031
5037
|
if (n === ie.PieChart) {
|
|
5032
|
-
const m =
|
|
5038
|
+
const m = vs({
|
|
5033
5039
|
renderer: a,
|
|
5034
5040
|
seriesConfig: e,
|
|
5035
5041
|
chartSubType: s,
|
|
@@ -5037,11 +5043,11 @@ async function Ns(t) {
|
|
|
5037
5043
|
rendererOrigin: r
|
|
5038
5044
|
});
|
|
5039
5045
|
d = m.rendererSymbol, f = m.colorMatchApplied;
|
|
5040
|
-
} else if (!
|
|
5046
|
+
} else if (!Oi(i)) {
|
|
5041
5047
|
const { x: m } = e[0], g = /* @__PURE__ */ new Map();
|
|
5042
5048
|
o && o.trim() !== "" ? e.forEach((y) => {
|
|
5043
5049
|
if (y.type === S.BarSeries || y.type === S.LineSeries || y.type === S.BoxPlotSeries || y.type === S.RadarSeries) {
|
|
5044
|
-
const h =
|
|
5050
|
+
const h = Ei({
|
|
5045
5051
|
seriesConfig: y,
|
|
5046
5052
|
chartSubType: s,
|
|
5047
5053
|
rendererType: n,
|
|
@@ -5059,7 +5065,7 @@ async function Ns(t) {
|
|
|
5059
5065
|
}
|
|
5060
5066
|
}) : g.set(b.rendererSymbolField, {
|
|
5061
5067
|
...i,
|
|
5062
|
-
[m]:
|
|
5068
|
+
[m]: Qa(i)
|
|
5063
5069
|
});
|
|
5064
5070
|
try {
|
|
5065
5071
|
const y = Array.from(g.entries()), h = c.clone();
|
|
@@ -5080,7 +5086,7 @@ async function Ns(t) {
|
|
|
5080
5086
|
if (d = (await gt.getDisplayedSymbol(h))?.toJSON(), d != null) {
|
|
5081
5087
|
d.color === void 0 && (d.color = (await gt.getDisplayedColor(h))?.toJSON());
|
|
5082
5088
|
const v = await gt.getLegendLabel(h);
|
|
5083
|
-
v != null && v !== "" && (d.label = v, d.uniqueValue = x?.find((
|
|
5089
|
+
v != null && v !== "" && (d.label = v, d.uniqueValue = x?.find((T) => T.label === v)?.value ?? void 0);
|
|
5084
5090
|
}
|
|
5085
5091
|
u?.set(JSON.stringify(B), d);
|
|
5086
5092
|
}
|
|
@@ -5089,7 +5095,7 @@ async function Ns(t) {
|
|
|
5089
5095
|
x: m,
|
|
5090
5096
|
splitByField: o,
|
|
5091
5097
|
attributes: i
|
|
5092
|
-
}),
|
|
5098
|
+
}), qi({
|
|
5093
5099
|
dataItem: i,
|
|
5094
5100
|
symbolField: C,
|
|
5095
5101
|
rendererSymbol: d,
|
|
@@ -5101,7 +5107,7 @@ async function Ns(t) {
|
|
|
5101
5107
|
}
|
|
5102
5108
|
return { rendererSymbol: d, colorMatchApplied: f };
|
|
5103
5109
|
}
|
|
5104
|
-
function
|
|
5110
|
+
function Ps(t) {
|
|
5105
5111
|
const e = t;
|
|
5106
5112
|
return t?.type === "uniqueValue" && (t.uniqueValueInfos = t.uniqueValueInfos.map((i) => {
|
|
5107
5113
|
const a = i.value === null ? b.nullValue : i.value;
|
|
@@ -5114,20 +5120,20 @@ function Ht(t) {
|
|
|
5114
5120
|
i[r] === (n === "encode" ? null : b.nullValue) && (i[r] = n === "encode" ? b.nullValue : null);
|
|
5115
5121
|
});
|
|
5116
5122
|
}
|
|
5117
|
-
async function
|
|
5123
|
+
async function ol(t) {
|
|
5118
5124
|
const { data: e, queryObject: i, chartConfig: a, allowColorMatch: n } = t;
|
|
5119
5125
|
let r = !1, s = [];
|
|
5120
5126
|
if (n) {
|
|
5121
|
-
const { series: o, chartRenderer: c } = a, l =
|
|
5127
|
+
const { series: o, chartRenderer: c } = a, l = Ps(c), u = l ? qe.ChartRenderer : qe.LayerRenderer, d = i ? z(i) : void 0, f = l ?? d?.renderer;
|
|
5122
5128
|
let m;
|
|
5123
|
-
d && u === qe.LayerRenderer ? s = await Zt(d) : u === qe.ChartRenderer && (s =
|
|
5124
|
-
const g =
|
|
5129
|
+
d && u === qe.LayerRenderer ? s = await Zt(d) : u === qe.ChartRenderer && (s = ws(f));
|
|
5130
|
+
const g = xs(l, d?.renderer), y = Ts({
|
|
5125
5131
|
chartRenderer: c,
|
|
5126
5132
|
queryObject: i
|
|
5127
5133
|
}), h = V(o), x = Le(a), F = K(x.query?.where);
|
|
5128
5134
|
m = /* @__PURE__ */ new Map();
|
|
5129
5135
|
for (let C = 0; C < e.length; C += 1) {
|
|
5130
|
-
const B = e[C], N = await
|
|
5136
|
+
const B = e[C], N = await As({
|
|
5131
5137
|
seriesConfig: a.series,
|
|
5132
5138
|
dataItem: B,
|
|
5133
5139
|
renderer: f,
|
|
@@ -5144,11 +5150,11 @@ async function rl(t) {
|
|
|
5144
5150
|
}
|
|
5145
5151
|
return { dataItems: e, colorMatchApplied: r, rendererFieldNames: s };
|
|
5146
5152
|
}
|
|
5147
|
-
function
|
|
5153
|
+
function Ms(t) {
|
|
5148
5154
|
const { dataItem: e, seriesConfig: i, chartSubType: a, colorMatch: n, rendererType: r } = t;
|
|
5149
5155
|
let s;
|
|
5150
5156
|
if (n && e !== void 0) {
|
|
5151
|
-
const o =
|
|
5157
|
+
const o = Ei({
|
|
5152
5158
|
seriesConfig: i,
|
|
5153
5159
|
chartSubType: a,
|
|
5154
5160
|
rendererType: r,
|
|
@@ -5158,7 +5164,7 @@ function As(t) {
|
|
|
5158
5164
|
}
|
|
5159
5165
|
return s;
|
|
5160
5166
|
}
|
|
5161
|
-
function
|
|
5167
|
+
function ll(t) {
|
|
5162
5168
|
const { seriesSymbol: e, rendererSymbol: i, colorIndex: a, preferSeriesSymbolOverRendererSymbol: n } = t;
|
|
5163
5169
|
let r = i?.color ?? e.color;
|
|
5164
5170
|
n && (r = e.color ?? i?.color), r = r ?? Gt({ colorIndex: a, opacity: ri });
|
|
@@ -5173,19 +5179,19 @@ function sl(t) {
|
|
|
5173
5179
|
color: i?.outline?.color ?? s.outline?.color ?? i?.color
|
|
5174
5180
|
}), s;
|
|
5175
5181
|
}
|
|
5176
|
-
function
|
|
5182
|
+
function Ls(t) {
|
|
5177
5183
|
let e = [];
|
|
5178
5184
|
return t && (e = t.series.flatMap((i) => i.query?.outStatistics?.map((a) => a.onStatisticField)).filter((i) => i !== void 0), e.length === 0 && (e = re(t.series))), e;
|
|
5179
5185
|
}
|
|
5180
|
-
function
|
|
5186
|
+
function cl(t, e) {
|
|
5181
5187
|
let i = !1;
|
|
5182
5188
|
if (t && e && e.length > 0 && Ut(t)) {
|
|
5183
|
-
const n =
|
|
5184
|
-
n ? i =
|
|
5189
|
+
const n = ka(t), r = Le(t);
|
|
5190
|
+
n ? i = Ls(t).some((o) => e.includes(o)) : i = e.includes(r.x);
|
|
5185
5191
|
}
|
|
5186
5192
|
return i;
|
|
5187
5193
|
}
|
|
5188
|
-
function
|
|
5194
|
+
function ws(t) {
|
|
5189
5195
|
let e = [];
|
|
5190
5196
|
if (t && "type" in t && typeof t.type == "string")
|
|
5191
5197
|
switch (t.type) {
|
|
@@ -5201,25 +5207,25 @@ function Ms(t) {
|
|
|
5201
5207
|
}
|
|
5202
5208
|
return e;
|
|
5203
5209
|
}
|
|
5204
|
-
function
|
|
5210
|
+
function ul(t, e) {
|
|
5205
5211
|
let i;
|
|
5206
5212
|
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
|
|
5207
5213
|
}
|
|
5208
|
-
function
|
|
5214
|
+
function dl(t, e) {
|
|
5209
5215
|
let i;
|
|
5210
5216
|
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
|
|
5211
5217
|
}
|
|
5212
|
-
function
|
|
5218
|
+
function fl(t) {
|
|
5213
5219
|
let e;
|
|
5214
5220
|
return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
5215
5221
|
}
|
|
5216
|
-
function
|
|
5217
|
-
return e != null ||
|
|
5222
|
+
function ml(t, e) {
|
|
5223
|
+
return e != null || Aa(t);
|
|
5218
5224
|
}
|
|
5219
|
-
async function
|
|
5225
|
+
async function Ds(t) {
|
|
5220
5226
|
const { queryObject: e, chartConfig: i, options: a, splitByField: n } = t;
|
|
5221
5227
|
let r = [];
|
|
5222
|
-
const s = i.series[0], o = await
|
|
5228
|
+
const s = i.series[0], o = await Ta(i, e), c = ii({
|
|
5223
5229
|
queryObject: e,
|
|
5224
5230
|
chartConfig: o,
|
|
5225
5231
|
runtimeDataFilters: a?.runtimeDataFilters,
|
|
@@ -5265,7 +5271,7 @@ async function Ls(t) {
|
|
|
5265
5271
|
}
|
|
5266
5272
|
return r;
|
|
5267
5273
|
}
|
|
5268
|
-
function
|
|
5274
|
+
function Os(t, e) {
|
|
5269
5275
|
const i = /* @__PURE__ */ new Map();
|
|
5270
5276
|
return t.series.forEach((a) => {
|
|
5271
5277
|
let n = ge({
|
|
@@ -5285,7 +5291,7 @@ function ws(t, e) {
|
|
|
5285
5291
|
]);
|
|
5286
5292
|
}), i;
|
|
5287
5293
|
}
|
|
5288
|
-
function
|
|
5294
|
+
function qs(t) {
|
|
5289
5295
|
const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: a } = t, n = /* @__PURE__ */ new Map();
|
|
5290
5296
|
return Array.from(i.keys()).forEach((r) => {
|
|
5291
5297
|
const s = i.get(r) ?? [];
|
|
@@ -5295,7 +5301,7 @@ function Ds(t) {
|
|
|
5295
5301
|
}), n.set(r, o);
|
|
5296
5302
|
}), n;
|
|
5297
5303
|
}
|
|
5298
|
-
function
|
|
5304
|
+
function Es(t) {
|
|
5299
5305
|
const { chartConfig: e, missingValue: i, splitByField: a, seriesTemplate: n } = t, r = JSON.parse(
|
|
5300
5306
|
JSON.stringify({
|
|
5301
5307
|
...e.series[0],
|
|
@@ -5312,14 +5318,14 @@ function Os(t) {
|
|
|
5312
5318
|
}
|
|
5313
5319
|
return r;
|
|
5314
5320
|
}
|
|
5315
|
-
async function
|
|
5321
|
+
async function gl(t, e, i) {
|
|
5316
5322
|
const { updateSplitBySeries: a } = t, { seriesTemplate: n } = a ?? {};
|
|
5317
5323
|
if (a !== void 0 && e !== void 0 && (e.series.length > 0 || n !== void 0) && a.addMissingSeries) {
|
|
5318
5324
|
const r = e.series.length === 0;
|
|
5319
5325
|
e.series.length === 0 && n !== void 0 && e.series.push(n);
|
|
5320
5326
|
const s = V(e.series);
|
|
5321
5327
|
if (s === p.BoxPlotMonoFieldAndSplitBy || s === p.BoxPlotMultiFieldsAndSplitBy || s === p.BoxPlotMonoFieldAndCategoryAndSplitBy || s === p.BarAndLineSplitBy || s === p.BarAndLineSplitByNoAggregation) {
|
|
5322
|
-
const o = await
|
|
5328
|
+
const o = await pa({
|
|
5323
5329
|
chartConfig: e,
|
|
5324
5330
|
layer: t.layer,
|
|
5325
5331
|
view: t.view
|
|
@@ -5327,14 +5333,14 @@ async function fl(t, e, i) {
|
|
|
5327
5333
|
if (o !== void 0) {
|
|
5328
5334
|
const c = K(e.series[0]?.query?.where), l = z(o);
|
|
5329
5335
|
await l.load();
|
|
5330
|
-
const u = l.getField(c)?.toJSON(), d = We(u), f = await
|
|
5336
|
+
const u = l.getField(c)?.toJSON(), d = We(u), f = await Ds({
|
|
5331
5337
|
queryObject: o,
|
|
5332
5338
|
chartConfig: e,
|
|
5333
5339
|
splitByField: c,
|
|
5334
5340
|
options: i
|
|
5335
5341
|
});
|
|
5336
5342
|
if (f.length > 0) {
|
|
5337
|
-
const m =
|
|
5343
|
+
const m = Os(e, d), g = qs({
|
|
5338
5344
|
allValues: f,
|
|
5339
5345
|
configUniqueValuesPerSeriesType: m,
|
|
5340
5346
|
initialConfigWasEmpty: r
|
|
@@ -5342,7 +5348,7 @@ async function fl(t, e, i) {
|
|
|
5342
5348
|
Array.from(g.keys()).forEach((y) => {
|
|
5343
5349
|
(g.get(y) ?? []).forEach((x) => {
|
|
5344
5350
|
e.series.push(
|
|
5345
|
-
|
|
5351
|
+
Es({
|
|
5346
5352
|
chartConfig: e,
|
|
5347
5353
|
seriesTemplate: n,
|
|
5348
5354
|
missingValue: x,
|
|
@@ -5357,93 +5363,93 @@ async function fl(t, e, i) {
|
|
|
5357
5363
|
}
|
|
5358
5364
|
}
|
|
5359
5365
|
export {
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
+
tl as $,
|
|
5367
|
+
Zo as A,
|
|
5368
|
+
el as B,
|
|
5369
|
+
si as C,
|
|
5370
|
+
Tr as D,
|
|
5371
|
+
hr as E,
|
|
5366
5372
|
Mt as F,
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5373
|
+
po as G,
|
|
5374
|
+
ps as H,
|
|
5375
|
+
Pa as I,
|
|
5376
|
+
mo as J,
|
|
5377
|
+
qo as K,
|
|
5378
|
+
jo as L,
|
|
5379
|
+
Xo as M,
|
|
5374
5380
|
jt as N,
|
|
5375
|
-
|
|
5376
|
-
|
|
5381
|
+
co as O,
|
|
5382
|
+
fo as P,
|
|
5377
5383
|
fe as Q,
|
|
5378
5384
|
qe as R,
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5385
|
+
Lo as S,
|
|
5386
|
+
Wo as T,
|
|
5387
|
+
pn as U,
|
|
5388
|
+
nl as V,
|
|
5389
|
+
_a as W,
|
|
5384
5390
|
pe as X,
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5391
|
+
Jo as Y,
|
|
5392
|
+
Eo as Z,
|
|
5393
|
+
Ko as _,
|
|
5394
|
+
rl as a,
|
|
5395
|
+
ol as a0,
|
|
5396
|
+
To as a1,
|
|
5397
|
+
Mo as a2,
|
|
5398
|
+
go as a3,
|
|
5399
|
+
Go as a4,
|
|
5400
|
+
Bo as a5,
|
|
5401
|
+
Ro as a6,
|
|
5402
|
+
ko as a7,
|
|
5403
|
+
ho as a8,
|
|
5404
|
+
zo as a9,
|
|
5405
|
+
Uo as aa,
|
|
5406
|
+
Vo as ab,
|
|
5407
|
+
_o as ac,
|
|
5408
|
+
So as ad,
|
|
5409
|
+
Fo as ae,
|
|
5410
|
+
uo as af,
|
|
5411
|
+
Yo as ag,
|
|
5412
|
+
bo as ah,
|
|
5407
5413
|
Ft as ai,
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5414
|
+
Ia as aj,
|
|
5415
|
+
ci as ak,
|
|
5416
|
+
Ao as al,
|
|
5417
|
+
il as am,
|
|
5418
|
+
Io as an,
|
|
5419
|
+
$o as ao,
|
|
5420
|
+
Qo as ap,
|
|
5421
|
+
Ho as aq,
|
|
5422
|
+
vo as ar,
|
|
5423
|
+
Co as as,
|
|
5424
|
+
xo as at,
|
|
5425
|
+
yo as au,
|
|
5426
|
+
gl as av,
|
|
5427
|
+
ml as aw,
|
|
5428
|
+
ul as ax,
|
|
5429
|
+
dl as ay,
|
|
5430
|
+
ui as b,
|
|
5431
|
+
lo as c,
|
|
5432
|
+
al as d,
|
|
5433
|
+
No as e,
|
|
5428
5434
|
He as f,
|
|
5429
5435
|
ze as g,
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5436
|
+
Qa as h,
|
|
5437
|
+
Oi as i,
|
|
5438
|
+
hs as j,
|
|
5439
|
+
cl as k,
|
|
5434
5440
|
Ae as l,
|
|
5435
|
-
|
|
5436
|
-
|
|
5441
|
+
ll as m,
|
|
5442
|
+
Po as n,
|
|
5437
5443
|
J as o,
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5444
|
+
Ms as p,
|
|
5445
|
+
Oo as q,
|
|
5446
|
+
fl as r,
|
|
5441
5447
|
Ke as s,
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5448
|
+
wo as t,
|
|
5449
|
+
Ts as u,
|
|
5450
|
+
xs as v,
|
|
5451
|
+
sl as w,
|
|
5452
|
+
As as x,
|
|
5453
|
+
Do as y,
|
|
5454
|
+
ja as z
|
|
5449
5455
|
};
|