@arcgis/charts-components 5.0.0-next.95 → 5.0.0-next.96
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/{PBES7KJV.js → 22QFEJPI.js} +2 -2
- package/dist/cdn/{NXQU6WDO.js → 27JNJZ7Q.js} +2 -2
- package/dist/cdn/{FBNPT3R2.js → 2MOGAMLI.js} +2 -2
- package/dist/cdn/{GRK5KEDN.js → 2XMRSBWP.js} +2 -2
- package/dist/cdn/{OCYY3ENP.js → 2XRKTN3Y.js} +2 -2
- package/dist/cdn/{6KXDY6VO.js → 2YQEVD3Q.js} +2 -2
- package/dist/cdn/{RMPPHAX6.js → 36GEL7CB.js} +2 -2
- package/dist/cdn/{TKIO4RS5.js → 37JCH3CS.js} +2 -2
- package/dist/cdn/{CYRU4PW4.js → 3FAS3A46.js} +1 -1
- package/dist/cdn/{MXYJ6FWV.js → 3LUYLYR5.js} +2 -2
- package/dist/cdn/44AN3TFK.js +4 -0
- package/dist/cdn/{QOCCPFDD.js → 4CVFBKNX.js} +2 -2
- package/dist/cdn/{QZPIIFHR.js → 4JB7TTOL.js} +2 -2
- package/dist/cdn/{6LY4SGMV.js → 5BA57IIE.js} +2 -2
- package/dist/cdn/{LRLMQDL4.js → 5KIA6XGC.js} +2 -2
- package/dist/cdn/{RCQABJRK.js → 5LKW6DJR.js} +2 -2
- package/dist/cdn/5NS6BDKU.js +4 -0
- package/dist/cdn/{5MVKC6KT.js → 5UZFT4EK.js} +2 -2
- package/dist/cdn/{FEMKQIPY.js → 5X2P75J3.js} +2 -2
- package/dist/cdn/{2AT5CXML.js → 6KZUDHTC.js} +2 -2
- package/dist/cdn/{DGN3EPEE.js → 6UCIOG2X.js} +2 -2
- package/dist/cdn/{LH73YVJS.js → 6WN7XL5Y.js} +2 -2
- package/dist/cdn/{DDUYPXO7.js → 6ZEVBUQ4.js} +2 -2
- package/dist/cdn/{5WOG5IXE.js → 723XDJUL.js} +2 -2
- package/dist/cdn/75HRBXSP.js +4 -0
- package/dist/cdn/{CCHR4SXS.js → 7JN3XFI2.js} +2 -2
- package/dist/cdn/{6E2BK7XD.js → 7LHWJDRF.js} +2 -2
- package/dist/cdn/{DRASWFNL.js → 7MUFVTWB.js} +2 -2
- package/dist/cdn/{6QGB6CNU.js → 7VV6GUP2.js} +2 -2
- package/dist/cdn/{ETSRCIJZ.js → 7WQKES6W.js} +2 -2
- package/dist/cdn/{TDT42C32.js → A7763SCU.js} +2 -2
- package/dist/cdn/{ICUHGE5P.js → AGWLVZCB.js} +2 -2
- package/dist/cdn/{CN4QI5DW.js → AJHLBSFG.js} +2 -2
- package/dist/cdn/AKRSATY4.js +4 -0
- package/dist/cdn/{FSXRX22X.js → AOYHWCE3.js} +2 -2
- package/dist/cdn/{ILNOIDRA.js → ARIWY2VN.js} +1 -1
- package/dist/cdn/{7KYP25C7.js → ARRF5I6E.js} +2 -2
- package/dist/cdn/{MKU65OMH.js → ARTUIY2V.js} +2 -2
- package/dist/cdn/{JSYR5WBK.js → AT4UYXDM.js} +2 -2
- package/dist/cdn/{2HVLZAVA.js → AUHJJXRP.js} +2 -2
- package/dist/cdn/{A2BUNFWH.js → AXP6EDF7.js} +2 -2
- package/dist/cdn/{FCLAIWLU.js → B5TQLCK5.js} +2 -2
- package/dist/cdn/{EO2ZIKVX.js → B5WSX2AG.js} +2 -2
- package/dist/cdn/{YIQ3P5CE.js → BBUOJAGA.js} +2 -2
- package/dist/cdn/{YGFUCXSL.js → BBXD7THE.js} +2 -2
- package/dist/cdn/{A7OA6AX3.js → BNDPMG3E.js} +2 -2
- package/dist/cdn/{S3ZXRBWL.js → BNEUBUMM.js} +2 -2
- package/dist/cdn/{2NB2ZD2M.js → BPL2SVYC.js} +2 -2
- package/dist/cdn/{KR4T4Y3S.js → C5T6NZXY.js} +19 -19
- package/dist/cdn/{BE5NVGCO.js → CGL3UB4G.js} +2 -2
- package/dist/cdn/{E4E2AHAC.js → CT7ROV26.js} +2 -2
- package/dist/cdn/DUSJV4SY.js +4 -0
- package/dist/cdn/{GD6IOMHI.js → EKDPKI7P.js} +2 -2
- package/dist/cdn/{ZCBGIPOA.js → EMZDOBXG.js} +2 -2
- package/dist/cdn/EZJM67KF.js +4 -0
- package/dist/cdn/{O2AVILXY.js → FBXSBUI3.js} +2 -2
- package/dist/cdn/{2XGQZS35.js → FF7AIMFV.js} +2 -2
- package/dist/cdn/FH3RKYES.js +6 -0
- package/dist/cdn/{7FIQFVGV.js → FHIK3K67.js} +2 -2
- package/dist/cdn/{ZXNOBLDR.js → FICTIWYH.js} +2 -2
- package/dist/cdn/{OGSIMNA2.js → FM2IU3YA.js} +2 -2
- package/dist/cdn/{NXMJALWN.js → FMOKFEAC.js} +2 -2
- package/dist/cdn/{WXO3KF4G.js → FVMLEMTG.js} +2 -2
- package/dist/cdn/{2AT2NTSM.js → FYAI6NE7.js} +2 -2
- package/dist/cdn/{2QUYHYCL.js → G7244N3Y.js} +2 -2
- package/dist/cdn/{YVTAXJO3.js → GBWCSWW5.js} +2 -2
- package/dist/cdn/{JAQKVJAV.js → GHNQKP66.js} +2 -2
- package/dist/cdn/{2AXQTRR6.js → GL4AQ53F.js} +2 -2
- package/dist/cdn/{S7HYI6E2.js → GLW26VHU.js} +1 -1
- package/dist/cdn/{3DEBO4ZF.js → GREP3I76.js} +2 -2
- package/dist/cdn/{JP4AZXGN.js → GXT46PZF.js} +2 -2
- package/dist/cdn/{VKBTTYO5.js → H3R6WRSB.js} +2 -2
- package/dist/cdn/{I5BRH2HS.js → HD7C7RAE.js} +2 -2
- package/dist/cdn/{4MP7AXON.js → HD7YHFNE.js} +2 -2
- package/dist/cdn/{BZAPLCLY.js → HK574X7Q.js} +2 -2
- package/dist/cdn/{52DPUNFV.js → HNFLPM3A.js} +2 -2
- package/dist/cdn/{NVFHALIZ.js → HZNEYEHU.js} +2 -2
- package/dist/cdn/{TFBLKM5T.js → I7XBYEBI.js} +2 -2
- package/dist/cdn/{QZOLXZW3.js → IF5P5LQA.js} +2 -2
- package/dist/cdn/{YUKL6ZVO.js → ITGRRIT7.js} +2 -2
- package/dist/cdn/{SSF67IIC.js → JDEB5B5S.js} +2 -2
- package/dist/cdn/{PM2KECI3.js → JHNMEXZH.js} +4 -4
- package/dist/cdn/{3DURBMIB.js → JHVVJBV5.js} +2 -2
- package/dist/cdn/{OOLHRTQV.js → JJGLPHGS.js} +2 -2
- package/dist/cdn/{CTVWIUU3.js → JKLGH7F5.js} +2 -2
- package/dist/cdn/{CLT4X3CT.js → JKYLINLZ.js} +2 -2
- package/dist/cdn/{JUVXEYMF.js → JQKOQDY6.js} +2 -2
- package/dist/cdn/{QT7LN6GU.js → JWNFWI7H.js} +2 -2
- package/dist/cdn/{EXWUUI7R.js → JYMB7C4F.js} +2 -2
- package/dist/cdn/{AVTGNMLC.js → KDOQCQ34.js} +2 -2
- package/dist/cdn/{ZWJX7UID.js → KJ3NLW3E.js} +2 -2
- package/dist/cdn/{P4BNXOUG.js → KOXGYIAZ.js} +2 -2
- package/dist/cdn/{RH6QZW4G.js → KRZYAN3V.js} +2 -2
- package/dist/cdn/KWRG5HEJ.js +4 -0
- package/dist/cdn/{GXPUYG7M.js → KY4T7IXE.js} +2 -2
- package/dist/cdn/{VPI5TQZ6.js → KYBF46OK.js} +2 -2
- package/dist/cdn/{ENVBX2VU.js → L35FLLM7.js} +2 -2
- package/dist/cdn/{LCDM6SDR.js → L5C3U6ZV.js} +2 -2
- package/dist/cdn/{BKDQECQL.js → LDXGIWXK.js} +1 -1
- package/dist/cdn/{GRA5RWJ6.js → LEPHI4I2.js} +2 -2
- package/dist/cdn/LEU2PVKB.js +4 -0
- package/dist/cdn/{Z4R32OLN.js → LJOBHYBD.js} +2 -2
- package/dist/cdn/{GLHMVT7Z.js → LKVK7PJR.js} +2 -2
- package/dist/cdn/{AYAL7O7F.js → LPL3GZEO.js} +1 -1
- package/dist/cdn/{AIXBBCJM.js → LRBSJQCC.js} +2 -2
- package/dist/cdn/{7JVE6TV7.js → LT7J4XJL.js} +2 -2
- package/dist/cdn/{ZVVB3QLU.js → LUHJVXHF.js} +2 -2
- package/dist/cdn/{J3UV2BUP.js → M3QAYWRW.js} +2 -2
- package/dist/cdn/{I66JKUUO.js → ME4TZRQC.js} +2 -2
- package/dist/cdn/{7PXOPL6H.js → MHAE2VEU.js} +2 -2
- package/dist/cdn/{GZ23QWUB.js → N3WQHYQI.js} +2 -2
- package/dist/cdn/{JNQRDAUL.js → N5VNEYPY.js} +2 -2
- package/dist/cdn/{2MVNJVDK.js → NLB2IMW7.js} +2 -2
- package/dist/cdn/{72E2P4JL.js → NLX3FYW6.js} +2 -2
- package/dist/cdn/{NBTFLAPJ.js → NZSDER7C.js} +2 -2
- package/dist/cdn/{6CGID26Y.js → OHOGQDLF.js} +2 -2
- package/dist/cdn/{2H7WFCBR.js → OL2PNOLU.js} +2 -2
- package/dist/cdn/{SRE6MFDD.js → ONBNR4F5.js} +2 -2
- package/dist/cdn/{EKKBBQRZ.js → OZHE3EKP.js} +2 -2
- package/dist/cdn/{PYEBXUDI.js → P4GE27KF.js} +2 -2
- package/dist/cdn/{HIU55FMQ.js → P6CREH7G.js} +2 -2
- package/dist/cdn/PDDB5NXV.js +4 -0
- package/dist/cdn/{YSBYYWIU.js → PHGPFRJE.js} +2 -2
- package/dist/cdn/{ROMT4IIU.js → PJ5CI37X.js} +2 -2
- package/dist/cdn/{LQDF5AYK.js → PORHLDKY.js} +2 -2
- package/dist/cdn/{NK74CVGA.js → PPA7TE7H.js} +2 -2
- package/dist/cdn/{75XMHL4N.js → PQSDY4PG.js} +2 -2
- package/dist/cdn/{KDARGE6Y.js → QC43CPPW.js} +2 -2
- package/dist/cdn/{XG7YGEV3.js → QOL23WU4.js} +2 -2
- package/dist/cdn/{AOOKZT7H.js → QPPXJHCQ.js} +1 -1
- package/dist/cdn/{4TM3YXGN.js → QQIUN5EO.js} +2 -2
- package/dist/cdn/{OQU2OZGX.js → QU627C33.js} +2 -2
- package/dist/cdn/{WGXHSQVD.js → R2AWUSZ4.js} +2 -2
- package/dist/cdn/{STVUOY7J.js → R5IJA7HR.js} +2 -2
- package/dist/cdn/{DQJ3K63P.js → RBWIALK7.js} +2 -2
- package/dist/cdn/{CPG7P6DA.js → RJ4FLOZJ.js} +2 -2
- package/dist/cdn/{22RUO5QM.js → SA7Z42NE.js} +2 -2
- package/dist/cdn/{DBVXN2ND.js → SMVZIH3T.js} +2 -2
- package/dist/cdn/{A3A45RF2.js → SQSEZ5NI.js} +2 -2
- package/dist/cdn/SWOY7XLR.js +4 -0
- package/dist/cdn/{BPM55KEB.js → TFMDZ6A3.js} +2 -2
- package/dist/cdn/{OFIYGR2T.js → TLVYYLOH.js} +2 -2
- package/dist/cdn/TPSKM3JN.js +4 -0
- package/dist/cdn/{SKCWLPKQ.js → TUEDLEDX.js} +2 -2
- package/dist/cdn/{AKMDQKGJ.js → U5WAKEXX.js} +2 -2
- package/dist/cdn/{A4A4O65V.js → UBU3NQNA.js} +2 -2
- package/dist/cdn/{MVGDITUS.js → UKOU7QIL.js} +2 -2
- package/dist/cdn/{L72HQEV6.js → USAWUPVB.js} +2 -2
- package/dist/cdn/UTMH7GGN.js +4 -0
- package/dist/cdn/{EHTW2FIB.js → V3WQMCAL.js} +1 -1
- package/dist/cdn/{QXDHQUSY.js → V4BJFJP3.js} +2 -2
- package/dist/cdn/{4VGD4QUP.js → VCF7UWAK.js} +2 -2
- package/dist/cdn/{R745W535.js → VPUEQKRY.js} +2 -2
- package/dist/cdn/{SE7W5ZXY.js → VX4OMPXZ.js} +2 -2
- package/dist/cdn/{KDAEP5SZ.js → W2D324T2.js} +1 -1
- package/dist/cdn/{TPNAZEBR.js → WFUZQHOT.js} +2 -2
- package/dist/cdn/{WFFAD5NY.js → WGBBT5K5.js} +2 -2
- package/dist/cdn/{4GGRXMIC.js → WOH5HOJO.js} +2 -2
- package/dist/cdn/{MKPV3A7B.js → WTPCP3HC.js} +2 -2
- package/dist/cdn/{YSMP7WQO.js → WXDQTREJ.js} +2 -2
- package/dist/cdn/XHXQ43AJ.js +4 -0
- package/dist/cdn/{R6C32HLN.js → XL53PBR5.js} +2 -2
- package/dist/cdn/{P4LMQA3G.js → Y4ZSXUF5.js} +2 -2
- package/dist/cdn/{44JOO6TE.js → Y5VCIBPN.js} +2 -2
- package/dist/cdn/{3FVT6NBN.js → YBUBCSRF.js} +2 -2
- package/dist/cdn/{TFMFWRPO.js → YHKJJ7SM.js} +2 -2
- package/dist/cdn/{HCTPDPYJ.js → YN7EPTD6.js} +2 -2
- package/dist/cdn/{3HXI5RF3.js → YNHURCA3.js} +2 -2
- package/dist/cdn/YS3OSJ5V.js +4 -0
- package/dist/cdn/{O2XHPHTT.js → YYRRSDUP.js} +2 -2
- package/dist/cdn/{ANDV62IN.js → ZCB4X3SU.js} +2 -2
- package/dist/cdn/{WPDCWS4C.js → ZHLTZRMH.js} +2 -2
- package/dist/cdn/{FMRSYH3K.js → ZO7JIBXS.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chart-rendering/common/data/scatter-plot/aggregation/index.d.ts +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/index.d.ts +1 -1
- package/dist/chart-rendering/common/tooltips/index.d.ts +1 -1
- package/dist/chunks/action-bar-utils.js +7 -7
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +43 -43
- package/dist/chunks/bar-chart-series.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 +20 -20
- package/dist/chunks/box-plot-model.js +6 -6
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +2 -2
- package/dist/chunks/combo-bar-line-chart-model.js +48 -48
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/data.js +56 -56
- package/dist/chunks/default.js +1 -1
- package/dist/chunks/gauge-model.js +62 -62
- package/dist/chunks/heat-chart-model.js +39 -39
- package/dist/chunks/histogram-data.js +2 -2
- package/dist/chunks/histogram-model.js +5 -5
- package/dist/chunks/index.js +3607 -3575
- package/dist/chunks/index2.js +11 -11
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/line-chart-model.js +29 -29
- package/dist/chunks/model-with-multi-axes.js +317 -317
- package/dist/chunks/pie-chart-data.js +86 -86
- package/dist/chunks/pie-chart-model.js +108 -108
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +33 -33
- 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 +11 -11
- package/dist/chunks/serial-chart-data.js +600 -600
- package/dist/chunks/serial-chart-model.js +35 -35
- package/dist/chunks/series-types.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 +198 -198
- package/dist/components/arcgis-chart/customElement.js +3245 -3239
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +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 +2 -2
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +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 +15 -15
- 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 +6 -6
- 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 +2 -2
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +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 +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
- 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 +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +276 -275
- package/dist/loader.js +1 -1
- package/dist/model/shared/data.d.ts +1 -1
- package/dist/model/shared/model-types.d.ts +1 -1
- package/dist/model/shared/utils.d.ts +1 -1
- package/dist/model.js +1 -1
- package/dist/utils/data/categorical-data/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +20 -6
- package/package.json +3 -3
- package/dist/cdn/2AH5GNWY.js +0 -4
- package/dist/cdn/4KUONF33.js +0 -4
- package/dist/cdn/AD243MGT.js +0 -4
- package/dist/cdn/E5QNENEM.js +0 -4
- package/dist/cdn/IYT4CQN3.js +0 -4
- package/dist/cdn/KMQRTATD.js +0 -4
- package/dist/cdn/LD5JNWSF.js +0 -6
- package/dist/cdn/N3ZEPV4D.js +0 -4
- package/dist/cdn/OYKJFTLR.js +0 -4
- package/dist/cdn/RIH3PD2M.js +0 -4
- package/dist/cdn/TNV3FCRP.js +0 -4
- package/dist/cdn/V4JE7OF6.js +0 -4
- package/dist/cdn/V6Z5C5JF.js +0 -4
- package/dist/cdn/WLKGBQGL.js +0 -4
- package/dist/cdn/XPN7YV7T.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@arcgis/toolkit/intl";
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import { g as
|
|
2
|
+
import { cloneDeep as $, memoize as ne, isEmpty as qe } from "lodash-es";
|
|
3
|
+
import { g as ce, e as Oe, a as v, u as de, W as P, d as we, t as h, m as z, n as De, i as H } from "./series-types.js";
|
|
4
4
|
import "d3-array";
|
|
5
|
-
import {
|
|
5
|
+
import { bO as Me, cf as ue, bP as ee, ah as ye, bQ as te, c$ as Pe, bJ as E, l as Y, dc as Ee, aK as _, cT as Re, br as ge, cX as N, aI as I, aG as V, bB as T, b0 as $e, aJ as ke, r as q, U as Xe, V as Ue, cG as je, p as G, de as M, k as We, cE as Ke, bK as Ye, bW as Ge, an as Qe, q as ze, dk as He, cA as _e, dl as ae, cb as Je, c7 as Ze, _ as k, dg as fe, m as et, b as j, bN as tt, b3 as it, b4 as st, b6 as at, bM as re, aL as rt, aM as lt } from "./index.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";
|
|
@@ -12,10 +12,10 @@ import "@arcgis/core/core/promiseUtils.js";
|
|
|
12
12
|
import "@arcgis/core/request.js";
|
|
13
13
|
import "./runtime.js";
|
|
14
14
|
import "@arcgis/toolkit/dom";
|
|
15
|
-
import { substitute as
|
|
16
|
-
import { a as
|
|
17
|
-
import { q as
|
|
18
|
-
import { S as
|
|
15
|
+
import { substitute as D } from "@arcgis/core/intl.js";
|
|
16
|
+
import { a as pe, R as ot } from "./rest-js-object-literals.js";
|
|
17
|
+
import { q as nt, h as me, l as L, n as ct, o as dt, j as B, k as C } from "./index3.js";
|
|
18
|
+
import { S as J } from "./common.js";
|
|
19
19
|
import "@arcgis/core/Graphic.js";
|
|
20
20
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
21
21
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -24,38 +24,38 @@ import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
|
24
24
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
25
25
|
import "simple-statistics";
|
|
26
26
|
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
27
|
-
import { b as
|
|
28
|
-
import { c as
|
|
27
|
+
import { b as X, d as xe, g as ie, e as le, f as ut } from "./data.js";
|
|
28
|
+
import { c as yt } from "./index2.js";
|
|
29
29
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
30
30
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
31
|
-
v5.0.0-next.
|
|
32
|
-
async function
|
|
33
|
-
const { config: e, layer: i, xAxisField: s, splitByField: a, layerFieldsInfo: r, aggregationFields:
|
|
34
|
-
where:
|
|
31
|
+
v5.0.0-next.96 */
|
|
32
|
+
async function gt(t) {
|
|
33
|
+
const { config: e, layer: i, xAxisField: s, splitByField: a, layerFieldsInfo: r, aggregationFields: l, fetchNullValues: o } = t, n = r.filter((p) => p.name === a)[0]?.type, g = o !== !0 ? `${a} IS NOT NULL` : "", d = s && o !== !0 ? `${s} IS NOT NULL` : "", { where: x } = e?.dataFilters ?? {}, m = {
|
|
34
|
+
where: ue([x, g, d]),
|
|
35
35
|
// excluding the null values from the list
|
|
36
|
-
orderByFields:
|
|
36
|
+
orderByFields: Pe(a) ? [] : [`${a} ${ce.Ascending}`],
|
|
37
37
|
// default sorting ascending for split-by field
|
|
38
38
|
geometry: e?.dataFilters?.geometry
|
|
39
|
-
},
|
|
40
|
-
let
|
|
41
|
-
|
|
42
|
-
let S = await
|
|
43
|
-
queryObject:
|
|
39
|
+
}, f = i;
|
|
40
|
+
let u = "";
|
|
41
|
+
l.length === 0 ? u = E(f).idField : [u] = l;
|
|
42
|
+
let S = await ye({
|
|
43
|
+
queryObject: f,
|
|
44
44
|
category: e?.series[0].x ?? "",
|
|
45
45
|
splitByField: a,
|
|
46
46
|
queryConfig: m
|
|
47
47
|
});
|
|
48
48
|
if (e) {
|
|
49
|
-
const p = e?.series.map((
|
|
50
|
-
S =
|
|
49
|
+
const p = e?.series.map((y) => Y({ where: y.query?.where })?.toString() ?? "").filter((y) => y !== void 0 && y !== "");
|
|
50
|
+
S = Ee({
|
|
51
51
|
arrayA: S,
|
|
52
52
|
arrayB: p,
|
|
53
|
-
getKey: (
|
|
53
|
+
getKey: (y) => y === null ? null : y?.toString()
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
return { categoriesArray: S, splitByFieldType:
|
|
56
|
+
return { categoriesArray: S, splitByFieldType: n, numericalField: u };
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function xi(t, e) {
|
|
59
59
|
let i = e === "";
|
|
60
60
|
for (const s of t)
|
|
61
61
|
if (e === s.name) {
|
|
@@ -64,12 +64,12 @@ function mi(t, e) {
|
|
|
64
64
|
}
|
|
65
65
|
return i;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const i =
|
|
67
|
+
function Si(t, e) {
|
|
68
|
+
const i = Me(t);
|
|
69
69
|
let s = e.length === 0, a = 0;
|
|
70
70
|
for (const r of e) {
|
|
71
|
-
for (const
|
|
72
|
-
if (r ===
|
|
71
|
+
for (const l of i)
|
|
72
|
+
if (r === l && (a += 1), a === e.length) {
|
|
73
73
|
s = !0;
|
|
74
74
|
break;
|
|
75
75
|
}
|
|
@@ -78,7 +78,7 @@ function xi(t, e) {
|
|
|
78
78
|
}
|
|
79
79
|
return s;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function bi(t, e) {
|
|
82
82
|
e.forEach((i) => {
|
|
83
83
|
Object.getOwnPropertyNames(i.prototype).forEach((s) => {
|
|
84
84
|
Object.defineProperty(
|
|
@@ -89,21 +89,21 @@ function Si(t, e) {
|
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
async function
|
|
93
|
-
const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: r } = i?.dataFilters ?? {}, { fetchNullValues:
|
|
94
|
-
where:
|
|
92
|
+
async function ft(t) {
|
|
93
|
+
const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: r } = i?.dataFilters ?? {}, { fetchNullValues: l } = i?.series?.[0]?.query ?? {}, o = l !== !0 ? `${s} IS NOT NULL` : "", c = {
|
|
94
|
+
where: ue([r, o]),
|
|
95
95
|
// excluding the null values from the list
|
|
96
96
|
orderByFields: [],
|
|
97
97
|
geometry: i?.dataFilters?.geometry
|
|
98
|
-
},
|
|
98
|
+
}, n = ee(a);
|
|
99
99
|
return (
|
|
100
100
|
// fetch unique category values asynchronously
|
|
101
|
-
(await
|
|
101
|
+
(await ye({ queryObject: a, category: s, queryConfig: c })).map((d) => {
|
|
102
102
|
const x = String(d);
|
|
103
|
-
return
|
|
103
|
+
return te({
|
|
104
104
|
fieldName: s,
|
|
105
105
|
fieldValueToMatch: x,
|
|
106
|
-
subtypeInfo:
|
|
106
|
+
subtypeInfo: n,
|
|
107
107
|
// use the retrieved subtype information
|
|
108
108
|
fieldList: e.layerFieldsInfo
|
|
109
109
|
// list of field information from the layer
|
|
@@ -111,342 +111,342 @@ async function gt(t) {
|
|
|
111
111
|
})
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function W(t, e, i) {
|
|
115
115
|
const s = t?.axes?.[e];
|
|
116
116
|
s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = I({
|
|
117
117
|
text: i,
|
|
118
118
|
visible: !0,
|
|
119
|
-
font:
|
|
119
|
+
font: V(T.AxisTitle)
|
|
120
120
|
}));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Se(t) {
|
|
123
123
|
const { config: e, layerInfo: i, commonStrings: s, numericFields: a, aggregationType: r } = t;
|
|
124
|
-
let
|
|
124
|
+
let l = "";
|
|
125
125
|
if (e)
|
|
126
|
-
if (
|
|
127
|
-
|
|
126
|
+
if (Re(e) === Oe.Stacked100)
|
|
127
|
+
l = s.utilsStrings.statistics.percent;
|
|
128
128
|
else {
|
|
129
|
-
const
|
|
129
|
+
const c = ge(r, s);
|
|
130
130
|
if (a.length === 1) {
|
|
131
|
-
const
|
|
132
|
-
r ===
|
|
133
|
-
aggregation:
|
|
134
|
-
fieldName:
|
|
131
|
+
const n = N(i.layerFieldsInfo, a[0]), g = E(i.layer).idField;
|
|
132
|
+
r === v.NoAggregation ? l = n : r === v.Count && g !== void 0 && a[0] === g ? l = s.utilsStrings.statistics.count : l = D(s.axisLabels.aggregationOfFieldName, {
|
|
133
|
+
aggregation: c,
|
|
134
|
+
fieldName: n
|
|
135
135
|
});
|
|
136
|
-
} else a.length > 1 && (r ===
|
|
137
|
-
aggregation:
|
|
136
|
+
} else a.length > 1 && (r === v.NoAggregation ? l = s.axisLabels.values : l = D(s.axisLabels.aggregationOfValues, {
|
|
137
|
+
aggregation: c
|
|
138
138
|
}));
|
|
139
139
|
}
|
|
140
|
-
return
|
|
140
|
+
return l;
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const be = (t, e, i) => t.axes?.[e] ?? $e(i, t.type)[e], Fe = (t) => {
|
|
143
143
|
const { config: e, axis: i, axisIndex: s } = t;
|
|
144
144
|
e.axes !== void 0 && (e.axes[s] = i);
|
|
145
|
-
},
|
|
145
|
+
}, Fi = (t) => {
|
|
146
146
|
const { config: e, axisIndex: i, isMax: s } = t;
|
|
147
147
|
let a = Number.NaN;
|
|
148
148
|
return s ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
|
|
149
|
-
},
|
|
149
|
+
}, F = (t) => {
|
|
150
150
|
const { config: e, value: i, axisIndex: s, isMax: a } = t, r = e?.axes?.[s];
|
|
151
151
|
r !== void 0 && (a ? r.maximum = i : r.minimum = i);
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
},
|
|
155
|
-
const s =
|
|
152
|
+
}, Ti = (t, e) => {
|
|
153
|
+
F({ config: t, value: e, axisIndex: 0, isMax: !1 });
|
|
154
|
+
}, Te = (t) => t.axes?.[0]?.valueFormat ?? _(), pt = (t, e, i) => {
|
|
155
|
+
const s = be(t, 0, e);
|
|
156
156
|
if (s !== void 0 && i !== void 0) {
|
|
157
157
|
const a = {
|
|
158
158
|
...s,
|
|
159
159
|
valueFormat: i
|
|
160
160
|
};
|
|
161
|
-
|
|
161
|
+
Fe({ config: t, axis: a, axisIndex: 0 });
|
|
162
162
|
}
|
|
163
163
|
}, oe = (t, e, i) => {
|
|
164
164
|
const s = t.axes?.[e];
|
|
165
165
|
s !== void 0 && (s.integerOnlyValues = i);
|
|
166
|
-
}, pt = (t) => {
|
|
167
|
-
const e = ce(t.series);
|
|
168
|
-
return e === M.BarSeries || e === M.ComboLineAndBarSeries || e === M.LineSeries;
|
|
169
166
|
}, mt = (t) => {
|
|
167
|
+
const e = de(t.series);
|
|
168
|
+
return e === P.BarSeries || e === P.ComboLineAndBarSeries || e === P.LineSeries;
|
|
169
|
+
}, xt = (t) => {
|
|
170
170
|
const { axisIndex: e, config: i, isMultiAxis: s } = t;
|
|
171
171
|
let a = !1;
|
|
172
|
-
return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a =
|
|
173
|
-
},
|
|
172
|
+
return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a = mt(i)), a;
|
|
173
|
+
}, hi = (t) => {
|
|
174
174
|
const { axisIndex: e, func: i, config: s } = t;
|
|
175
|
-
return
|
|
176
|
-
},
|
|
175
|
+
return xt({ axisIndex: e, config: s, isMultiAxis: !0 }) ? i(e) : void 0;
|
|
176
|
+
}, vi = (t, e) => {
|
|
177
177
|
let i;
|
|
178
178
|
const s = e.axes?.[t]?.valueFormat;
|
|
179
|
-
return (t === 0 || t >= 1 &&
|
|
180
|
-
},
|
|
181
|
-
const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t, r =
|
|
179
|
+
return (t === 0 || t >= 1 && nt(s)) && (i = s), i;
|
|
180
|
+
}, Ai = (t) => {
|
|
181
|
+
const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t, r = be(e, a, i);
|
|
182
182
|
if (r !== void 0 && s !== void 0) {
|
|
183
|
-
const
|
|
183
|
+
const l = {
|
|
184
184
|
...r,
|
|
185
185
|
valueFormat: s
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
Fe({
|
|
188
188
|
config: e,
|
|
189
|
-
axis:
|
|
189
|
+
axis: l,
|
|
190
190
|
axisIndex: a
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
},
|
|
193
|
+
}, Bi = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, Ci = (t) => {
|
|
194
194
|
const { config: e, isLogarithmic: i, axisIndex: s } = t, a = e.axes?.[s];
|
|
195
|
-
a && (a.isLogarithmic = i,
|
|
196
|
-
},
|
|
195
|
+
a && (a.isLogarithmic = i, F({ config: e, value: null, axisIndex: s, isMax: !0 }), F({ config: e, value: null, axisIndex: s, isMax: !1 }));
|
|
196
|
+
}, Li = (t) => {
|
|
197
197
|
const { config: e, scrollbar: i, axisIndex: s } = t;
|
|
198
198
|
e.axes?.[s] !== void 0 && (e.axes[s].scrollbar = i);
|
|
199
|
-
}, Ii = (t) => t.version,
|
|
199
|
+
}, Ii = (t) => t.version, St = (t) => t.title?.content.text ?? "", Vi = (t, e) => {
|
|
200
200
|
e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = I({
|
|
201
201
|
text: t,
|
|
202
202
|
visible: !0,
|
|
203
|
-
font:
|
|
203
|
+
font: V(T.ChartTitle)
|
|
204
204
|
}));
|
|
205
|
-
},
|
|
205
|
+
}, Ni = (t) => t.subtitle?.content.text ?? "", qi = (t, e) => {
|
|
206
206
|
e.subtitle !== void 0 ? e.subtitle.content.text = t : e.subtitle === void 0 && t !== void 0 && (e.subtitle = I({
|
|
207
207
|
text: t,
|
|
208
208
|
visible: !0,
|
|
209
|
-
font:
|
|
209
|
+
font: V(T.ChartSubtitle)
|
|
210
210
|
}));
|
|
211
|
-
},
|
|
211
|
+
}, Oi = (t) => t.footer?.content.text ?? "", wi = (t, e) => {
|
|
212
212
|
e.footer !== void 0 ? e.footer.content.text = t : e.footer === void 0 && t !== void 0 && (e.footer = I({
|
|
213
213
|
text: t,
|
|
214
214
|
visible: !0,
|
|
215
|
-
font:
|
|
215
|
+
font: V(T.DescriptionText)
|
|
216
216
|
}));
|
|
217
|
-
},
|
|
217
|
+
}, Di = (t) => t.title ? t.title.visible ?? !0 : !1, Mi = (t, e) => {
|
|
218
218
|
e.title !== void 0 ? e.title.visible = t : e.title === void 0 && (e.title = I({
|
|
219
219
|
text: "",
|
|
220
220
|
visible: t,
|
|
221
|
-
font:
|
|
221
|
+
font: V(T.ChartTitle)
|
|
222
222
|
}));
|
|
223
|
-
},
|
|
223
|
+
}, Pi = (t) => t.subtitle ? t.subtitle.visible ?? !0 : !1, Ei = (t, e) => {
|
|
224
224
|
e.subtitle !== void 0 ? e.subtitle.visible = t : e.subtitle === void 0 && (e.subtitle = I({
|
|
225
225
|
text: "",
|
|
226
226
|
visible: t,
|
|
227
|
-
font:
|
|
227
|
+
font: V(T.ChartSubtitle)
|
|
228
228
|
}));
|
|
229
|
-
},
|
|
230
|
-
e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !==
|
|
229
|
+
}, bt = (t) => t.footer?.visible ?? !1, Ri = (t, e) => {
|
|
230
|
+
e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !== bt(e) && (e.footer = I({
|
|
231
231
|
text: "",
|
|
232
232
|
visible: !0,
|
|
233
|
-
font:
|
|
233
|
+
font: V(T.DescriptionText)
|
|
234
234
|
}));
|
|
235
|
-
},
|
|
235
|
+
}, $i = (t) => t.chartRenderer, ki = (t, e) => {
|
|
236
236
|
e.chartRenderer = t;
|
|
237
|
-
},
|
|
237
|
+
}, Xi = (t, e) => t.axes?.[e]?.title?.content, Ui = (t) => {
|
|
238
238
|
const { config: e, axisIndex: i, symbol: s } = t, a = e.axes?.[i];
|
|
239
239
|
if (a !== void 0) {
|
|
240
240
|
const r = a.title?.content.text;
|
|
241
241
|
(a.title === void 0 || s === void 0) && (a.title = I({
|
|
242
242
|
text: "",
|
|
243
243
|
visible: !0,
|
|
244
|
-
font:
|
|
245
|
-
type:
|
|
244
|
+
font: V(T.AxisTitle),
|
|
245
|
+
type: T.AxisTitle
|
|
246
246
|
})), s !== void 0 && (a.title.content = s), a.title.content.text = r;
|
|
247
247
|
}
|
|
248
248
|
}, ji = (t) => {
|
|
249
249
|
for (const e of t.axes ?? [])
|
|
250
250
|
if (e?.labels !== void 0)
|
|
251
251
|
return e.labels.content;
|
|
252
|
-
},
|
|
252
|
+
}, Wi = (t, e) => {
|
|
253
253
|
for (const i of e.axes ?? [])
|
|
254
254
|
if (i !== void 0) {
|
|
255
255
|
const s = i.labels?.content.text;
|
|
256
256
|
t === void 0 ? i.labels = I({
|
|
257
257
|
text: "",
|
|
258
258
|
visible: !0,
|
|
259
|
-
font:
|
|
260
|
-
type:
|
|
261
|
-
}) : i.labels.content =
|
|
259
|
+
font: V(T.AxisLabels),
|
|
260
|
+
type: T.AxisLabels
|
|
261
|
+
}) : i.labels.content = $(t), i.labels.content.text = s;
|
|
262
262
|
}
|
|
263
|
-
},
|
|
263
|
+
}, Ki = (t) => {
|
|
264
264
|
for (const e of t.axes ?? [])
|
|
265
265
|
if (e?.lineSymbol !== void 0)
|
|
266
266
|
return e.lineSymbol;
|
|
267
267
|
}, Yi = (t, e) => {
|
|
268
268
|
for (const i of e.axes ?? [])
|
|
269
|
-
i !== void 0 && (i.lineSymbol =
|
|
270
|
-
},
|
|
269
|
+
i !== void 0 && (i.lineSymbol = $(t) ?? ke());
|
|
270
|
+
}, Gi = (t) => {
|
|
271
271
|
for (const e of t.axes ?? [])
|
|
272
272
|
if (e?.grid !== void 0)
|
|
273
273
|
return e.grid;
|
|
274
|
-
},
|
|
274
|
+
}, Qi = (t, e, i) => {
|
|
275
275
|
const s = e.axes;
|
|
276
276
|
i.forEach((a) => {
|
|
277
|
-
s?.[a] !== void 0 && (s[a].grid =
|
|
277
|
+
s?.[a] !== void 0 && (s[a].grid = $(t));
|
|
278
278
|
});
|
|
279
|
-
},
|
|
279
|
+
}, U = (t, e) => e.axes?.[t]?.title?.content.text ?? "", zi = (t, e, i) => {
|
|
280
280
|
const s = i.axes?.[e];
|
|
281
281
|
s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title = I({
|
|
282
282
|
text: t,
|
|
283
283
|
visible: !0,
|
|
284
|
-
font:
|
|
284
|
+
font: V(T.AxisTitle)
|
|
285
285
|
}));
|
|
286
|
-
},
|
|
286
|
+
}, Hi = (t, e) => e.axes?.[t]?.visible ?? !0, _i = (t, e, i) => {
|
|
287
287
|
const s = i.axes?.[e];
|
|
288
288
|
s !== void 0 && (s.visible = t);
|
|
289
|
-
},
|
|
289
|
+
}, Ji = (t, e) => e.axes?.[t]?.labels?.visible ?? !0, Zi = (t, e, i) => {
|
|
290
290
|
const s = i.axes?.[e];
|
|
291
291
|
s?.labels !== void 0 ? s.labels.visible = t : s !== void 0 && s?.labels === void 0 && (s.labels = I({
|
|
292
292
|
text: "",
|
|
293
293
|
visible: t,
|
|
294
|
-
font:
|
|
295
|
-
type:
|
|
294
|
+
font: V(T.AxisLabels),
|
|
295
|
+
type: T.AxisLabels
|
|
296
296
|
}));
|
|
297
|
-
},
|
|
297
|
+
}, es = (t, e) => e.axes?.[t]?.title?.visible ?? !1, ts = (t, e, i) => {
|
|
298
298
|
const s = i.axes?.[e];
|
|
299
299
|
s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title = I({
|
|
300
|
-
text:
|
|
300
|
+
text: U(e, i),
|
|
301
301
|
visible: t,
|
|
302
|
-
font:
|
|
302
|
+
font: V(T.AxisTitle)
|
|
303
303
|
}));
|
|
304
|
-
},
|
|
304
|
+
}, is = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, ss = (t, e, i) => {
|
|
305
305
|
t.axes?.[i] !== void 0 && (t.axes[i].displayZeroLine = e);
|
|
306
|
-
},
|
|
306
|
+
}, as = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, rs = (t) => {
|
|
307
307
|
const { config: e, displayCursorTooltip: i, axisIndex: s } = t;
|
|
308
308
|
e.axes?.[s] !== void 0 && (e.axes[s].displayCursorTooltip = i);
|
|
309
|
-
},
|
|
309
|
+
}, ls = (t, e) => t.axes?.[e]?.buffer ?? !1, os = (t) => {
|
|
310
310
|
const { config: e, buffer: i, axisIndex: s } = t, a = e.axes?.[s];
|
|
311
311
|
a !== void 0 && (a.buffer = i);
|
|
312
|
-
},
|
|
312
|
+
}, ns = (t, e) => t.axes?.[e]?.tickSpacing, cs = (t) => {
|
|
313
313
|
const { config: e, tickSpacing: i, axisIndex: s } = t;
|
|
314
314
|
e.axes?.[s] !== void 0 && (e.axes[s].tickSpacing = i);
|
|
315
|
-
},
|
|
315
|
+
}, ds = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, us = (t) => {
|
|
316
316
|
const { config: e, integerOnlyValues: i, axisIndex: s } = t;
|
|
317
317
|
e.axes?.[s] !== void 0 && (e.axes[s].integerOnlyValues = i);
|
|
318
|
-
},
|
|
318
|
+
}, ys = (t, e) => {
|
|
319
319
|
e.series.forEach((i) => {
|
|
320
320
|
i.query && (i.query.fetchNullValues = t);
|
|
321
321
|
});
|
|
322
|
-
},
|
|
322
|
+
}, gs = (t) => t.series.some((e) => e.query?.fetchNullValues), fs = (t) => (
|
|
323
323
|
// TODO: Look into split-by values gotchas cases once done
|
|
324
324
|
t.series.map((e) => String(Y({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "")
|
|
325
|
-
),
|
|
325
|
+
), ps = (t) => t.dataFilters, ms = (t, e) => {
|
|
326
326
|
t !== void 0 ? e.dataFilters = t : delete e.dataFilters;
|
|
327
|
-
}, bt = (t) => {
|
|
328
|
-
let e;
|
|
329
|
-
const i = t.series[0];
|
|
330
|
-
return N(i) && (e = i.temporalBinning?.size), e;
|
|
331
327
|
}, Ft = (t) => {
|
|
332
328
|
let e;
|
|
333
329
|
const i = t.series[0];
|
|
334
|
-
return
|
|
330
|
+
return q(i) && (e = i.temporalBinning?.size), e;
|
|
335
331
|
}, Tt = (t) => {
|
|
336
332
|
let e;
|
|
337
333
|
const i = t.series[0];
|
|
338
|
-
return
|
|
334
|
+
return q(i) && (e = i.temporalBinning?.unit), e;
|
|
339
335
|
}, ht = (t) => {
|
|
340
336
|
let e;
|
|
341
337
|
const i = t.series[0];
|
|
342
|
-
return
|
|
338
|
+
return q(i) && (e = i.temporalBinning?.timeAggregationType), e;
|
|
343
339
|
}, vt = (t) => {
|
|
344
340
|
let e;
|
|
345
341
|
const i = t.series[0];
|
|
346
|
-
return
|
|
347
|
-
},
|
|
342
|
+
return q(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
343
|
+
}, At = (t) => {
|
|
344
|
+
let e;
|
|
345
|
+
const i = t.series[0];
|
|
346
|
+
return q(i) && (e = i.temporalBinning?.nullPolicy), e;
|
|
347
|
+
}, he = (t, e) => {
|
|
348
348
|
e?.series?.forEach((i) => {
|
|
349
|
-
|
|
350
|
-
}),
|
|
351
|
-
},
|
|
349
|
+
q(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
|
|
350
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
351
|
+
}, Bt = (t, e) => {
|
|
352
352
|
e?.series?.forEach((i) => {
|
|
353
|
-
|
|
354
|
-
}),
|
|
355
|
-
}, ms = (t, e) => {
|
|
356
|
-
e.series?.forEach((i) => {
|
|
357
|
-
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
|
|
358
|
-
}), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
353
|
+
q(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
|
|
354
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
359
355
|
}, xs = (t, e) => {
|
|
360
356
|
e.series?.forEach((i) => {
|
|
361
|
-
|
|
362
|
-
}),
|
|
357
|
+
q(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
|
|
358
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
363
359
|
}, Ss = (t, e) => {
|
|
364
360
|
e.series?.forEach((i) => {
|
|
365
|
-
|
|
366
|
-
}),
|
|
367
|
-
}, bs = (t) => {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
361
|
+
q(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
|
|
362
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
363
|
+
}, bs = (t, e) => {
|
|
364
|
+
e.series?.forEach((i) => {
|
|
365
|
+
q(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
|
|
366
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
367
|
+
}, Fs = (t) => {
|
|
368
|
+
he(0, t);
|
|
369
|
+
}, Ct = (t) => t.series.length ?? 0, Ts = (t, e) => e.series[t].visible ?? !0;
|
|
370
|
+
function hs(t, e) {
|
|
371
371
|
let i;
|
|
372
372
|
return t.length !== 0 && e < t.length && (i = t[e].dataTooltipValueFormat), i;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function vs(t) {
|
|
375
375
|
const { series: e, seriesIndex: i, valueFormat: s } = t;
|
|
376
376
|
e.length !== 0 && i < e.length && (e[i].dataTooltipValueFormat = s);
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function As(t, e) {
|
|
379
379
|
let i;
|
|
380
380
|
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Bs(t, e) {
|
|
383
383
|
let i;
|
|
384
384
|
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Cs(t, e) {
|
|
387
387
|
let i;
|
|
388
388
|
return e !== void 0 && (i = { ...e, rotated: t }), i;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function ve(t) {
|
|
391
391
|
let e;
|
|
392
392
|
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;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
return e != null ||
|
|
394
|
+
function Ls(t, e) {
|
|
395
|
+
return e != null || me(t);
|
|
396
396
|
}
|
|
397
|
-
async function
|
|
397
|
+
async function Lt(t) {
|
|
398
398
|
const { queryObject: e, chartConfig: i, options: s, splitByField: a } = t;
|
|
399
|
-
let r = [],
|
|
400
|
-
const
|
|
399
|
+
let r = [], l;
|
|
400
|
+
const o = $(i), c = o.series[0], n = Ge({
|
|
401
401
|
queryObject: e,
|
|
402
|
-
chartConfig:
|
|
402
|
+
chartConfig: o,
|
|
403
403
|
runtimeDataFilters: s?.runtimeDataFilters,
|
|
404
404
|
ignoreViewExtent: s?.ignoreViewExtent
|
|
405
405
|
});
|
|
406
|
-
if (
|
|
407
|
-
xAxisValueFormatType:
|
|
406
|
+
if (n.outStatistics?.[0]?.outStatisticFieldName && (n.outStatistics[0].outStatisticFieldName = Qe.outStatistics.outStatisticFieldName), q(c) && ze({
|
|
407
|
+
xAxisValueFormatType: He(o),
|
|
408
408
|
setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided,
|
|
409
|
-
seriesConfig:
|
|
409
|
+
seriesConfig: c
|
|
410
410
|
}) && _e(e)) {
|
|
411
|
-
const { temporalBinning:
|
|
412
|
-
chartConfig:
|
|
413
|
-
queryConfig:
|
|
411
|
+
const { temporalBinning: g, x: d } = c, { uniqueQuery: x } = await ae({
|
|
412
|
+
chartConfig: o,
|
|
413
|
+
queryConfig: n,
|
|
414
414
|
queryObject: e,
|
|
415
415
|
options: s
|
|
416
416
|
});
|
|
417
|
-
|
|
417
|
+
l = await Je({
|
|
418
418
|
queryObject: e,
|
|
419
419
|
dateField: d,
|
|
420
420
|
splitByField: a,
|
|
421
421
|
queryConfig: x,
|
|
422
|
-
temporalBinning:
|
|
422
|
+
temporalBinning: g
|
|
423
423
|
}), r = Array.from(
|
|
424
424
|
new Set(
|
|
425
|
-
|
|
426
|
-
const { stackedAttributes:
|
|
427
|
-
let
|
|
428
|
-
return
|
|
425
|
+
l.flatMap((m) => {
|
|
426
|
+
const { stackedAttributes: f } = m;
|
|
427
|
+
let u = [];
|
|
428
|
+
return f && (u = f.map((S) => S[a]).filter((S) => S !== void 0)), u;
|
|
429
429
|
})
|
|
430
430
|
).values()
|
|
431
431
|
);
|
|
432
432
|
} else {
|
|
433
|
-
const { uniqueQuery:
|
|
434
|
-
chartConfig:
|
|
433
|
+
const { uniqueQuery: g } = await ae({
|
|
434
|
+
chartConfig: o,
|
|
435
435
|
queryObject: e,
|
|
436
|
-
queryConfig:
|
|
436
|
+
queryConfig: n,
|
|
437
437
|
options: s
|
|
438
438
|
});
|
|
439
|
-
|
|
439
|
+
l = await Ze({
|
|
440
440
|
queryObject: e,
|
|
441
|
-
queryConfig:
|
|
441
|
+
queryConfig: g,
|
|
442
442
|
featureCount: 1
|
|
443
443
|
}), r = Array.from(
|
|
444
444
|
new Set(
|
|
445
|
-
|
|
445
|
+
l.map((d) => d.attributes[a]).filter((d) => d !== void 0)
|
|
446
446
|
).values()
|
|
447
447
|
);
|
|
448
448
|
}
|
|
449
|
-
return { allValues: r, preFetchedQueryResponse:
|
|
449
|
+
return { allValues: r, preFetchedQueryResponse: l };
|
|
450
450
|
}
|
|
451
451
|
function It(t, e) {
|
|
452
452
|
const i = /* @__PURE__ */ new Map();
|
|
@@ -461,24 +461,24 @@ function It(t, e) {
|
|
|
461
461
|
escape: !1
|
|
462
462
|
});
|
|
463
463
|
e && a !== null && (a = Number(a));
|
|
464
|
-
const r =
|
|
464
|
+
const r = de([s]);
|
|
465
465
|
r !== void 0 && i.set(r, [
|
|
466
466
|
...i.get(r) ?? [],
|
|
467
467
|
a
|
|
468
468
|
]);
|
|
469
469
|
}), i;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Vt(t) {
|
|
472
472
|
const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: s } = t, a = /* @__PURE__ */ new Map();
|
|
473
473
|
return Array.from(i.keys()).forEach((r) => {
|
|
474
|
-
const
|
|
475
|
-
let
|
|
476
|
-
s ?
|
|
477
|
-
|
|
478
|
-
}), a.set(r,
|
|
474
|
+
const l = i.get(r) ?? [];
|
|
475
|
+
let o = [];
|
|
476
|
+
s ? o = e : e.forEach((c) => {
|
|
477
|
+
l.includes(c) || o.push(c);
|
|
478
|
+
}), a.set(r, o);
|
|
479
479
|
}), a;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Nt(t) {
|
|
482
482
|
const { chartConfig: e, missingValue: i, splitByField: s, seriesTemplate: a } = t, r = JSON.parse(
|
|
483
483
|
JSON.stringify({
|
|
484
484
|
...e.series[0],
|
|
@@ -487,55 +487,55 @@ function Vt(t) {
|
|
|
487
487
|
);
|
|
488
488
|
if (r.query) {
|
|
489
489
|
if (r.id = `${i}-${e.series.length}-${Date.now()}`, r.name = `${i}`, r.query.outStatistics?.[0] !== void 0) {
|
|
490
|
-
const
|
|
491
|
-
r.query.outStatistics[0].outStatisticFieldName =
|
|
490
|
+
const o = r.id;
|
|
491
|
+
r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
|
|
492
492
|
}
|
|
493
|
-
const
|
|
494
|
-
r.query.where = `${s}=${
|
|
493
|
+
const l = typeof i == "number" || i === null ? i : `'${i}'`;
|
|
494
|
+
r.query.where = `${s}=${l}`;
|
|
495
495
|
}
|
|
496
496
|
return r;
|
|
497
497
|
}
|
|
498
|
-
async function
|
|
498
|
+
async function qt(t) {
|
|
499
499
|
const { updateSplitBySeries: e, config: i, options: s, queryObject: a } = t, { seriesTemplate: r } = e ?? {};
|
|
500
|
-
let
|
|
500
|
+
let l;
|
|
501
501
|
if (e !== void 0 && i !== void 0 && (i.series.length > 0 || r !== void 0) && e.addMissingSeries) {
|
|
502
|
-
const
|
|
502
|
+
const o = i.series.length === 0;
|
|
503
503
|
i.series.length === 0 && r !== void 0 && i.series.push(r);
|
|
504
|
-
const
|
|
505
|
-
if ((
|
|
506
|
-
const
|
|
507
|
-
await
|
|
508
|
-
const d =
|
|
504
|
+
const c = G(i.series);
|
|
505
|
+
if ((c === M.BoxPlotMonoFieldAndSplitBy || c === M.BoxPlotMultiFieldsAndSplitBy || c === M.BoxPlotMonoFieldAndCategoryAndSplitBy || c === M.BarAndLineSplitBy || c === M.BarAndLineSplitByNoAggregation) && a !== void 0) {
|
|
506
|
+
const n = We(i.series[0]?.query?.where), g = Ke(a);
|
|
507
|
+
await g.load();
|
|
508
|
+
const d = g.getField(n)?.toJSON(), x = Ye(d), m = await Lt({
|
|
509
509
|
queryObject: a,
|
|
510
510
|
chartConfig: i,
|
|
511
|
-
splitByField:
|
|
511
|
+
splitByField: n,
|
|
512
512
|
options: s
|
|
513
|
-
}), { allValues:
|
|
514
|
-
if ({ preFetchedQueryResponse:
|
|
515
|
-
const
|
|
516
|
-
allValues:
|
|
517
|
-
configUniqueValuesPerSeriesType:
|
|
518
|
-
initialConfigWasEmpty:
|
|
513
|
+
}), { allValues: f } = m;
|
|
514
|
+
if ({ preFetchedQueryResponse: l } = m, f.length > 0) {
|
|
515
|
+
const u = It(i, x), S = Vt({
|
|
516
|
+
allValues: f,
|
|
517
|
+
configUniqueValuesPerSeriesType: u,
|
|
518
|
+
initialConfigWasEmpty: o
|
|
519
519
|
});
|
|
520
520
|
Array.from(S.keys()).forEach((p) => {
|
|
521
|
-
(S.get(p) ?? []).forEach((
|
|
521
|
+
(S.get(p) ?? []).forEach((b) => {
|
|
522
522
|
i.series.push(
|
|
523
|
-
|
|
523
|
+
Nt({
|
|
524
524
|
chartConfig: i,
|
|
525
525
|
seriesTemplate: r,
|
|
526
|
-
missingValue:
|
|
527
|
-
splitByField:
|
|
526
|
+
missingValue: b,
|
|
527
|
+
splitByField: n
|
|
528
528
|
})
|
|
529
529
|
);
|
|
530
|
-
}),
|
|
530
|
+
}), o && i.series.shift();
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
return
|
|
535
|
+
return l;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
538
|
-
e && !
|
|
537
|
+
function Ot(t, e) {
|
|
538
|
+
e && !me(e) && (e = je({ chartConfig: e, queryObject: t }));
|
|
539
539
|
}
|
|
540
540
|
async function Is(t) {
|
|
541
541
|
const {
|
|
@@ -544,212 +544,212 @@ async function Is(t) {
|
|
|
544
544
|
addMissingSeries: s,
|
|
545
545
|
updateSplitBySeries: a,
|
|
546
546
|
chartContainer: r,
|
|
547
|
-
creation:
|
|
548
|
-
queryObject:
|
|
549
|
-
options:
|
|
550
|
-
previousConfig:
|
|
547
|
+
creation: l,
|
|
548
|
+
queryObject: o,
|
|
549
|
+
options: c,
|
|
550
|
+
previousConfig: n
|
|
551
551
|
} = t;
|
|
552
|
-
let
|
|
553
|
-
return
|
|
552
|
+
let g = e, d;
|
|
553
|
+
return Ot(i, g), g = await yt(g, i), s && (d = await qt({
|
|
554
554
|
updateSplitBySeries: a,
|
|
555
|
-
config:
|
|
556
|
-
options:
|
|
557
|
-
queryObject:
|
|
558
|
-
})), (
|
|
555
|
+
config: g,
|
|
556
|
+
options: c,
|
|
557
|
+
queryObject: o
|
|
558
|
+
})), (l || n && Xe(n, g)) && (g = Ue(g, r)), { alteredConfig: g, preFetchedQueryResponse: d };
|
|
559
559
|
}
|
|
560
|
-
const
|
|
561
|
-
const { xField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r =
|
|
562
|
-
if (typeof e == "string" &&
|
|
563
|
-
const
|
|
564
|
-
|
|
560
|
+
const Vs = (t) => {
|
|
561
|
+
const { xField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = U(0, i), l = wt(i), o = k(i), c = i.series[0];
|
|
562
|
+
if (typeof e == "string" && l !== e && c && (c.x = e, ve(i), l === r || o)) {
|
|
563
|
+
const n = N(a, e);
|
|
564
|
+
W(i, 0, n);
|
|
565
565
|
}
|
|
566
|
-
},
|
|
566
|
+
}, wt = (t) => t.series[0].x ?? "", Ns = (t) => t.hideEmptyRowsAndColumns, qs = (t, e) => {
|
|
567
567
|
t.hideEmptyRowsAndColumns = e;
|
|
568
|
-
},
|
|
568
|
+
}, Os = (t, e) => {
|
|
569
569
|
const i = t.series[0];
|
|
570
570
|
i.heatRulesType = e;
|
|
571
|
-
},
|
|
571
|
+
}, ws = (t) => t.series[0].heatRulesType, Ds = (t, e) => {
|
|
572
572
|
const i = t.series[0];
|
|
573
573
|
i.gradientRules = e;
|
|
574
|
-
},
|
|
575
|
-
const { yField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r =
|
|
576
|
-
if (typeof e == "string" &&
|
|
577
|
-
const
|
|
578
|
-
|
|
574
|
+
}, Ms = (t) => t.series[0].gradientRules, Ps = (t) => {
|
|
575
|
+
const { yField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = U(1, i), l = Dt(i), o = k(i), c = i.series[0];
|
|
576
|
+
if (typeof e == "string" && l !== e && c && (c.y = e, ve(i), l === r || o)) {
|
|
577
|
+
const n = N(a, e);
|
|
578
|
+
W(i, 1, n);
|
|
579
579
|
}
|
|
580
|
-
},
|
|
580
|
+
}, Dt = (t) => t.series[0].y ?? "", Es = (t, e) => {
|
|
581
581
|
const i = e.series[0];
|
|
582
582
|
i.xTemporalBinning = t;
|
|
583
|
-
},
|
|
583
|
+
}, Rs = (t) => t.series[0].xTemporalBinning, $s = (t, e) => {
|
|
584
584
|
const i = e.series[0];
|
|
585
585
|
i.yTemporalBinning = t;
|
|
586
|
-
}, ks = (t) => t.series[0].yTemporalBinning,
|
|
586
|
+
}, ks = (t) => t.series[0].yTemporalBinning, Mt = (t, e) => {
|
|
587
587
|
e.orderOptions ??= {};
|
|
588
|
-
const i = e.axes?.[0]?.valueFormat?.type === "category" ?
|
|
588
|
+
const i = e.axes?.[0]?.valueFormat?.type === "category" ? h.Category : h.YValue, s = Z(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? h.Category : h.YValue, r = Z(e)[1], l = {
|
|
589
589
|
...e.orderOptions.data ?? {},
|
|
590
|
-
orderType:
|
|
590
|
+
orderType: h.MultiAxes
|
|
591
591
|
};
|
|
592
|
-
s ===
|
|
593
|
-
},
|
|
592
|
+
s === J.customSort && i === h.Category && (l.orderByX = [...t]), r === J.customSort && a === h.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
|
|
593
|
+
}, Xs = (t, e) => {
|
|
594
594
|
const i = e.series[0];
|
|
595
595
|
i.gridLine && (i.gridLine.width = t);
|
|
596
|
-
},
|
|
596
|
+
}, Us = (t) => t.series[0].gridLine?.width, js = (t, e) => {
|
|
597
597
|
const i = e.series[0], s = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
598
598
|
i.gridLine && s && (i.gridLine.color = t);
|
|
599
|
-
},
|
|
599
|
+
}, Ws = (t) => t.series[0].gridLine?.color, Ks = (t, e) => {
|
|
600
600
|
const i = e.legend;
|
|
601
601
|
i && (i.position = t);
|
|
602
|
-
}, Ys = (t) => t.legend?.position ??
|
|
602
|
+
}, Ys = (t) => t.legend?.position ?? we.Bottom, Gs = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Qs = (t, e) => {
|
|
603
603
|
const i = e.series[0].query?.outStatistics?.[0];
|
|
604
604
|
i && (i.onStatisticField = t, i.outStatisticFieldName = `${i.statisticType}_${t}`);
|
|
605
|
-
},
|
|
605
|
+
}, zs = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, Hs = (t, e) => {
|
|
606
606
|
const i = e.series[0]?.query?.outStatistics?.[0];
|
|
607
|
-
i && t !==
|
|
608
|
-
}, _s = (t) => t.nullPolicy,
|
|
607
|
+
i && t !== v.NoAggregation && (i.statisticType = t, i.outStatisticFieldName = `${t}_${i.onStatisticField}`);
|
|
608
|
+
}, _s = (t) => t.nullPolicy, Js = (t, e) => {
|
|
609
609
|
e.nullPolicy = t;
|
|
610
|
-
},
|
|
610
|
+
}, Zs = (t) => t.series[0].emptyCells?.text, ea = (t, e) => {
|
|
611
611
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
612
|
-
},
|
|
612
|
+
}, ta = (t) => t.series[0].emptyCells?.symbol, ia = (t, e) => {
|
|
613
613
|
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
|
|
614
614
|
};
|
|
615
|
-
function
|
|
616
|
-
const { seriesIndex: e, xAxisField: i, aggregationType: s, config: a, layerInfo: r, commonStrings:
|
|
617
|
-
let
|
|
618
|
-
const
|
|
619
|
-
let
|
|
620
|
-
if (
|
|
621
|
-
const
|
|
622
|
-
|
|
615
|
+
function R(t) {
|
|
616
|
+
const { seriesIndex: e, xAxisField: i, aggregationType: s, config: a, layerInfo: r, commonStrings: l } = t, o = E(r?.layer).idField;
|
|
617
|
+
let c;
|
|
618
|
+
const n = a.series[e ?? 0];
|
|
619
|
+
let g = !1, d = !1;
|
|
620
|
+
if (n === void 0) {
|
|
621
|
+
const f = a.series;
|
|
622
|
+
g = f.slice(0, e).every((u) => B(u)), d = f.slice(0, e).every((u) => C(u));
|
|
623
623
|
} else
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
commonStrings:
|
|
624
|
+
g = B(n), d = C(n);
|
|
625
|
+
g ? c = it({
|
|
626
|
+
commonStrings: l,
|
|
627
627
|
seriesIndex: e,
|
|
628
|
-
objectIDField:
|
|
629
|
-
}) : d ?
|
|
630
|
-
commonStrings:
|
|
628
|
+
objectIDField: o
|
|
629
|
+
}) : d ? c = st({
|
|
630
|
+
commonStrings: l,
|
|
631
631
|
seriesIndex: e,
|
|
632
|
-
objectIDField:
|
|
633
|
-
}) :
|
|
632
|
+
objectIDField: o
|
|
633
|
+
}) : c = at({
|
|
634
634
|
seriesIndex: e,
|
|
635
|
-
objectIDField:
|
|
636
|
-
commonStrings:
|
|
635
|
+
objectIDField: o,
|
|
636
|
+
commonStrings: l
|
|
637
637
|
});
|
|
638
638
|
const x = a.series[0]?.dataLabels, m = {
|
|
639
|
-
...
|
|
639
|
+
...c,
|
|
640
640
|
x: i,
|
|
641
641
|
y: "",
|
|
642
642
|
dataLabels: {
|
|
643
|
-
...
|
|
644
|
-
type:
|
|
645
|
-
content: { ...
|
|
643
|
+
...c.dataLabels,
|
|
644
|
+
type: c.dataLabels?.type ?? P.Text,
|
|
645
|
+
content: { ...c.dataLabels?.content, ...x?.content, type: ot.TS },
|
|
646
646
|
visible: x?.visible ?? !1
|
|
647
647
|
}
|
|
648
648
|
};
|
|
649
649
|
if (m.query = {
|
|
650
650
|
groupByFieldsForStatistics: [i]
|
|
651
|
-
}, s !==
|
|
652
|
-
const
|
|
653
|
-
m.y =
|
|
651
|
+
}, s !== v.NoAggregation && o !== void 0) {
|
|
652
|
+
const f = `${s}_${o}_0`.toUpperCase();
|
|
653
|
+
m.y = f, m.query.outStatistics = [
|
|
654
654
|
{
|
|
655
655
|
statisticType: s,
|
|
656
|
-
onStatisticField:
|
|
657
|
-
outStatisticFieldName:
|
|
656
|
+
onStatisticField: o,
|
|
657
|
+
outStatisticFieldName: f
|
|
658
658
|
}
|
|
659
659
|
];
|
|
660
660
|
}
|
|
661
|
-
if (
|
|
662
|
-
let
|
|
663
|
-
if (a?.series?.[0] !== void 0 && (
|
|
664
|
-
let
|
|
665
|
-
|
|
666
|
-
size:
|
|
667
|
-
unit:
|
|
668
|
-
timeAggregationType:
|
|
669
|
-
trimIncompleteTimeInterval:
|
|
670
|
-
nullPolicy:
|
|
661
|
+
if (B(m) || C(m) || L(m) && a.series[0]?.binTemporalData) {
|
|
662
|
+
let f;
|
|
663
|
+
if (a?.series?.[0] !== void 0 && (f = G(a.series)), f !== M.BarAndLineNoAggregation && f !== M.BarAndLineSplitByNoAggregation) {
|
|
664
|
+
let u = Tt(a);
|
|
665
|
+
u === H.Quarter && (u = H.Month), m.temporalBinning = {
|
|
666
|
+
size: Ft(a),
|
|
667
|
+
unit: u,
|
|
668
|
+
timeAggregationType: ht(a),
|
|
669
|
+
trimIncompleteTimeInterval: vt(a),
|
|
670
|
+
nullPolicy: At(a)
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
return
|
|
674
|
+
return $(m);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
const { layerFieldsInfo: s,
|
|
678
|
-
let
|
|
679
|
-
if (
|
|
680
|
-
fieldName:
|
|
676
|
+
function Ae(t, e, i) {
|
|
677
|
+
const { layerFieldsInfo: s } = e, { idField: a, isTraditionalTypeOID: r } = E(e.layer), l = X(t), o = se(t), c = Ce(t), n = K(t), g = r && (o.length === 0 || o.includes(a)), d = ge(c, i), x = g ? "" : o.map((b) => N(s ?? [], b)).join(", "), m = N(s ?? [], l), f = N(s ?? [], n), u = t.series.some((b) => L(b)), S = u ? "category" : "xAxisField", p = m;
|
|
678
|
+
let y = "";
|
|
679
|
+
if (xe({
|
|
680
|
+
fieldName: l,
|
|
681
681
|
numericFields: o,
|
|
682
682
|
fieldList: s
|
|
683
683
|
}))
|
|
684
|
-
|
|
685
|
-
aggregationType:
|
|
686
|
-
aggregationFields:
|
|
684
|
+
y = D(i.titleLabels.aggrTypeOfAggrFields, {
|
|
685
|
+
aggregationType: d,
|
|
686
|
+
aggregationFields: x
|
|
687
687
|
});
|
|
688
|
-
else if (
|
|
689
|
-
const
|
|
688
|
+
else if (c === v.NoAggregation) {
|
|
689
|
+
const b = g ? a : x;
|
|
690
690
|
if (n === "") {
|
|
691
|
-
const
|
|
692
|
-
|
|
693
|
-
aggregationType:
|
|
694
|
-
[
|
|
691
|
+
const O = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
692
|
+
y = D(i.titleLabels[O], {
|
|
693
|
+
aggregationType: b,
|
|
694
|
+
[S]: p
|
|
695
695
|
});
|
|
696
696
|
} else {
|
|
697
|
-
const
|
|
698
|
-
|
|
699
|
-
aggregationType:
|
|
700
|
-
[
|
|
701
|
-
splitByField:
|
|
697
|
+
const O = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
698
|
+
y = D(i.titleLabels[O], {
|
|
699
|
+
aggregationType: b,
|
|
700
|
+
[S]: p,
|
|
701
|
+
splitByField: f
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
|
-
} else if (
|
|
704
|
+
} else if (c === v.Count)
|
|
705
705
|
if (n === "") {
|
|
706
|
-
const
|
|
707
|
-
|
|
708
|
-
aggregationType:
|
|
709
|
-
[
|
|
706
|
+
const b = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
707
|
+
y = D(i.titleLabels[b], {
|
|
708
|
+
aggregationType: d,
|
|
709
|
+
[S]: p
|
|
710
710
|
});
|
|
711
711
|
} else {
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
aggregationType:
|
|
715
|
-
[
|
|
716
|
-
splitByField:
|
|
712
|
+
const b = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
713
|
+
y = D(i.titleLabels[b], {
|
|
714
|
+
aggregationType: d,
|
|
715
|
+
[S]: p,
|
|
716
|
+
splitByField: f
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
719
|
else if (n !== "") {
|
|
720
|
-
const
|
|
721
|
-
|
|
722
|
-
aggregationType:
|
|
723
|
-
aggregationField:
|
|
724
|
-
[
|
|
725
|
-
splitByField:
|
|
720
|
+
const b = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
721
|
+
y = D(i.titleLabels[b], {
|
|
722
|
+
aggregationType: d,
|
|
723
|
+
aggregationField: x,
|
|
724
|
+
[S]: p,
|
|
725
|
+
splitByField: f
|
|
726
726
|
});
|
|
727
727
|
} else if (o.length > 0) {
|
|
728
|
-
const
|
|
729
|
-
|
|
730
|
-
aggregationType:
|
|
731
|
-
aggregationFields:
|
|
732
|
-
[
|
|
728
|
+
const b = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
729
|
+
y = D(i.titleLabels[b], {
|
|
730
|
+
aggregationType: d,
|
|
731
|
+
aggregationFields: x,
|
|
732
|
+
[S]: p
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
|
-
return
|
|
735
|
+
return y;
|
|
736
736
|
}
|
|
737
|
-
const
|
|
737
|
+
const Be = (t) => Y({
|
|
738
738
|
where: t.query?.where,
|
|
739
739
|
normalize: !1,
|
|
740
740
|
escape: !1
|
|
741
|
-
}) ?? "",
|
|
741
|
+
}) ?? "", Ce = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, K = ne(
|
|
742
742
|
(t) => {
|
|
743
743
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
744
|
-
return
|
|
744
|
+
return et(t?.series?.[0]?.query?.where) ? "" : e;
|
|
745
745
|
},
|
|
746
746
|
(t) => t?.series?.[0]?.query?.where
|
|
747
|
-
),
|
|
747
|
+
), se = ne(
|
|
748
748
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
749
749
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
750
750
|
(t) => {
|
|
751
751
|
let e = [];
|
|
752
|
-
if (
|
|
752
|
+
if (K(t) === "")
|
|
753
753
|
e = t?.series.map((i) => {
|
|
754
754
|
const s = i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
|
|
755
755
|
return s?.length > 0 ? s : i.y;
|
|
@@ -763,447 +763,447 @@ const Ae = (t) => Y({
|
|
|
763
763
|
// using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
|
|
764
764
|
(t) => t?.series
|
|
765
765
|
);
|
|
766
|
-
function
|
|
766
|
+
function Pt(t) {
|
|
767
767
|
const { numericFields: e, aggregationType: i, config: s, layerInfo: a } = t;
|
|
768
768
|
let r = !1;
|
|
769
|
-
i ===
|
|
770
|
-
const
|
|
771
|
-
return
|
|
769
|
+
i === v.Count ? r = !0 : i === v.NoAggregation && (r = e.every((c) => {
|
|
770
|
+
const n = a.layerFieldsInfo.find((g) => g.name === c);
|
|
771
|
+
return n !== void 0 ? re(n) : !1;
|
|
772
772
|
})), oe(s, 1, r);
|
|
773
|
-
const
|
|
774
|
-
if (
|
|
775
|
-
const
|
|
776
|
-
oe(s, 0,
|
|
773
|
+
const l = s.series.some((c) => B(c)), o = s.series.some((c) => C(c));
|
|
774
|
+
if (l || o) {
|
|
775
|
+
const c = X(s), n = a.layerFieldsInfo.find((d) => d.name === c), g = n !== void 0 && re(n);
|
|
776
|
+
oe(s, 0, g);
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
const
|
|
779
|
+
const Z = (t) => {
|
|
780
780
|
let e;
|
|
781
|
-
if (
|
|
782
|
-
const i = t.orderOptions?.data?.orderByX ?? [""], s = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ?
|
|
783
|
-
e = [
|
|
781
|
+
if (fe(t)) {
|
|
782
|
+
const i = t.orderOptions?.data?.orderByX ?? [""], s = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? h.Category : h.YValue, r = t.axes?.[1]?.valueFormat?.type === "category" ? h.Category : h.YValue;
|
|
783
|
+
e = [le(i, a), le(s, r)];
|
|
784
784
|
} else {
|
|
785
|
-
const i = t.orderOptions?.data?.orderType ??
|
|
786
|
-
e = [
|
|
785
|
+
const i = t.orderOptions?.data?.orderType ?? h.Category, s = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : ce.Ascending;
|
|
786
|
+
e = [ut(s, i)];
|
|
787
787
|
}
|
|
788
788
|
return e;
|
|
789
789
|
};
|
|
790
|
-
function
|
|
791
|
-
const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings:
|
|
792
|
-
let
|
|
793
|
-
const
|
|
790
|
+
function Et(t) {
|
|
791
|
+
const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: l } = t, { layerFieldsInfo: o } = r;
|
|
792
|
+
let c = !1;
|
|
793
|
+
const n = R({
|
|
794
794
|
config: a,
|
|
795
795
|
xAxisField: e,
|
|
796
796
|
aggregationType: s,
|
|
797
797
|
layerInfo: r,
|
|
798
798
|
seriesIndex: 0,
|
|
799
|
-
commonStrings:
|
|
800
|
-
}),
|
|
799
|
+
commonStrings: l
|
|
800
|
+
}), g = ie({
|
|
801
801
|
config: a,
|
|
802
802
|
xAxisField: e,
|
|
803
803
|
numericFields: i,
|
|
804
804
|
aggregationType: s,
|
|
805
805
|
layer: r.layer,
|
|
806
|
-
fieldList:
|
|
806
|
+
fieldList: o
|
|
807
807
|
}).name, d = {
|
|
808
|
-
...
|
|
808
|
+
...n,
|
|
809
809
|
id: `series_${Date.now()}`,
|
|
810
|
-
name:
|
|
810
|
+
name: l.axisLabels.values,
|
|
811
811
|
x: j,
|
|
812
|
-
y:
|
|
812
|
+
y: g
|
|
813
813
|
}, x = [];
|
|
814
|
-
for (const
|
|
814
|
+
for (const f of i)
|
|
815
815
|
x.push({
|
|
816
|
-
onStatisticField:
|
|
817
|
-
outStatisticFieldName: `${
|
|
816
|
+
onStatisticField: f,
|
|
817
|
+
outStatisticFieldName: `${f}_0`.toUpperCase(),
|
|
818
818
|
statisticType: s
|
|
819
819
|
});
|
|
820
820
|
d.query = { outStatistics: x };
|
|
821
821
|
const m = a.series[0];
|
|
822
|
-
return m !== void 0 && (d.id = m.id, a.colorMatch || (
|
|
822
|
+
return m !== void 0 && (d.id = m.id, a.colorMatch || (L(m) && L(d) ? d.fillSymbol = m.fillSymbol : (B(d) && B(m) || C(d) && C(m)) && (d.lineSymbol = m.lineSymbol, d.markerSymbol = m.markerSymbol), c = !0), d.id = m.id, m.name !== n.name && (d.name = m.name)), a.series.length === 1 && !a.colorMatch && (L(d) ? d.fillSymbol = a.series[0].fillSymbol : (B(d) || C(d)) && (d.lineSymbol = a.series[0].lineSymbol, d.markerSymbol = a.series[0].markerSymbol), c = !0), a.colorMatch = !c, [d];
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings:
|
|
826
|
-
let
|
|
824
|
+
function Le(t) {
|
|
825
|
+
const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: l } = t, { layerFieldsInfo: o } = r, c = E(r.layer).idField, n = [];
|
|
826
|
+
let g = !1;
|
|
827
827
|
for (let d = 0; d < i.length; d += 1) {
|
|
828
|
-
const x =
|
|
828
|
+
const x = R({
|
|
829
829
|
config: a,
|
|
830
830
|
xAxisField: e,
|
|
831
831
|
aggregationType: s,
|
|
832
832
|
layerInfo: r,
|
|
833
833
|
seriesIndex: d,
|
|
834
|
-
commonStrings:
|
|
835
|
-
}), m =
|
|
834
|
+
commonStrings: l
|
|
835
|
+
}), m = ie({
|
|
836
836
|
config: a,
|
|
837
837
|
xAxisField: e,
|
|
838
838
|
numericFields: i,
|
|
839
839
|
aggregationType: s,
|
|
840
840
|
layer: r.layer,
|
|
841
841
|
numericFieldIndex: d,
|
|
842
|
-
fieldList:
|
|
843
|
-
}).name,
|
|
844
|
-
let
|
|
842
|
+
fieldList: o
|
|
843
|
+
}).name, f = i[d];
|
|
844
|
+
let u = {
|
|
845
845
|
...x,
|
|
846
846
|
query: {
|
|
847
847
|
...x.query
|
|
848
848
|
}
|
|
849
849
|
};
|
|
850
|
-
|
|
851
|
-
...
|
|
852
|
-
id:
|
|
853
|
-
name:
|
|
850
|
+
i && f !== c && (u = {
|
|
851
|
+
...u,
|
|
852
|
+
id: f,
|
|
853
|
+
name: N(o, f)
|
|
854
854
|
});
|
|
855
|
-
let S =
|
|
856
|
-
|
|
855
|
+
let S = f;
|
|
856
|
+
u.query !== void 0 && (s !== v.NoAggregation ? (S = m, u.query.outStatistics = [
|
|
857
857
|
{
|
|
858
858
|
...x.query?.outStatistics?.[0] ?? {},
|
|
859
|
-
onStatisticField:
|
|
859
|
+
onStatisticField: f,
|
|
860
860
|
outStatisticFieldName: m,
|
|
861
861
|
statisticType: s
|
|
862
862
|
}
|
|
863
|
-
]) : delete
|
|
863
|
+
]) : delete u.query.outStatistics), u.y = S;
|
|
864
864
|
const p = a.series.find(
|
|
865
|
-
(
|
|
865
|
+
(y) => y.query?.outStatistics?.[0]?.onStatisticField === f && y.query.where === void 0
|
|
866
866
|
);
|
|
867
867
|
if (p !== void 0 && typeof p.y == "string" && p.y.trim() !== "") {
|
|
868
|
-
a.colorMatch || (
|
|
869
|
-
const
|
|
868
|
+
a.colorMatch || (L(u) && L(p) ? u.fillSymbol = p.fillSymbol : (B(u) && B(p) || C(u) && C(p)) && (u.lineSymbol = p.lineSymbol, u.markerSymbol = p.markerSymbol), g = !0);
|
|
869
|
+
const y = R({
|
|
870
870
|
config: a,
|
|
871
871
|
xAxisField: e,
|
|
872
872
|
aggregationType: s,
|
|
873
873
|
layerInfo: r,
|
|
874
874
|
seriesIndex: d,
|
|
875
|
-
commonStrings:
|
|
875
|
+
commonStrings: l
|
|
876
876
|
});
|
|
877
|
-
|
|
877
|
+
u.id = p.id, p.id !== y.id && p.name !== y.name && (u.id = p.id, u.name = p.name);
|
|
878
878
|
}
|
|
879
|
-
|
|
879
|
+
n.push(u);
|
|
880
880
|
}
|
|
881
|
-
return a.series.length === 1 &&
|
|
881
|
+
return a.series.length === 1 && n.length === 1 && !a.colorMatch && (L(a.series[0]) && L(n[0]) ? n[0].fillSymbol = a.series[0].fillSymbol : (B(a.series[0]) && B(n[0]) || C(a.series[0]) && C(n[0])) && (n[0].lineSymbol = a.series[0].lineSymbol, n[0].markerSymbol = a.series[0].markerSymbol), g = !0), a.colorMatch = !g, n;
|
|
882
882
|
}
|
|
883
|
-
async function
|
|
884
|
-
const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config: r, layerInfo:
|
|
883
|
+
async function Rt(t) {
|
|
884
|
+
const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config: r, layerInfo: l, commonStrings: o } = t, { layer: c, layerFieldsInfo: n } = l, { fetchNullValues: g } = r?.series?.[0]?.query ?? {}, d = i !== j ? i : void 0, { categoriesArray: x, splitByFieldType: m, numericalField: f } = await gt({
|
|
885
885
|
config: r,
|
|
886
|
-
layer:
|
|
887
|
-
layerFieldsInfo:
|
|
886
|
+
layer: c,
|
|
887
|
+
layerFieldsInfo: n,
|
|
888
888
|
xAxisField: d,
|
|
889
889
|
aggregationFields: s,
|
|
890
890
|
splitByField: e,
|
|
891
|
-
fetchNullValues:
|
|
891
|
+
fetchNullValues: g
|
|
892
892
|
});
|
|
893
|
-
let
|
|
893
|
+
let u = [], S = !1;
|
|
894
894
|
if (x.length === 0) {
|
|
895
|
-
|
|
895
|
+
u = Le({
|
|
896
896
|
xAxisField: i,
|
|
897
897
|
numericFields: s,
|
|
898
898
|
aggregationType: a,
|
|
899
899
|
config: r,
|
|
900
|
-
layerInfo:
|
|
901
|
-
commonStrings:
|
|
900
|
+
layerInfo: l,
|
|
901
|
+
commonStrings: o
|
|
902
902
|
});
|
|
903
|
-
for (const p of
|
|
903
|
+
for (const p of u)
|
|
904
904
|
p.query && (p.query.where = `${e}=''`);
|
|
905
905
|
} else
|
|
906
906
|
for (let p = 0; p < x.length; p += 1) {
|
|
907
|
-
const
|
|
907
|
+
const y = x[p], b = ie({
|
|
908
908
|
config: r,
|
|
909
909
|
xAxisField: i,
|
|
910
910
|
numericFields: s,
|
|
911
911
|
aggregationType: a,
|
|
912
|
-
layer:
|
|
912
|
+
layer: l.layer,
|
|
913
913
|
seriesIndex: p,
|
|
914
914
|
splitByField: e,
|
|
915
|
-
fieldList:
|
|
916
|
-
}).name,
|
|
915
|
+
fieldList: n
|
|
916
|
+
}).name, O = R({
|
|
917
917
|
config: r,
|
|
918
918
|
xAxisField: i,
|
|
919
919
|
aggregationType: a,
|
|
920
|
-
layerInfo:
|
|
920
|
+
layerInfo: l,
|
|
921
921
|
seriesIndex: p,
|
|
922
|
-
commonStrings:
|
|
922
|
+
commonStrings: o
|
|
923
923
|
}), Ie = {
|
|
924
924
|
fieldName: e,
|
|
925
|
-
fieldValueToMatch:
|
|
926
|
-
subtypeInfo:
|
|
927
|
-
fieldList:
|
|
928
|
-
},
|
|
929
|
-
...
|
|
930
|
-
id:
|
|
931
|
-
name:
|
|
932
|
-
y:
|
|
925
|
+
fieldValueToMatch: y ?? "",
|
|
926
|
+
subtypeInfo: ee(l.layer),
|
|
927
|
+
fieldList: l.layerFieldsInfo
|
|
928
|
+
}, Ve = te(Ie), Q = `${y}`, A = {
|
|
929
|
+
...O,
|
|
930
|
+
id: Q,
|
|
931
|
+
name: Ve ?? Q,
|
|
932
|
+
y: b,
|
|
933
933
|
query: {
|
|
934
|
-
...
|
|
935
|
-
where: `${e}=${m ===
|
|
936
|
-
outStatistics: a !==
|
|
934
|
+
...O.query,
|
|
935
|
+
where: `${e}=${m === pe.String && y !== null ? `'${y}'` : y}`,
|
|
936
|
+
outStatistics: a !== v.NoAggregation ? [
|
|
937
937
|
{
|
|
938
|
-
...
|
|
939
|
-
onStatisticField:
|
|
940
|
-
outStatisticFieldName:
|
|
938
|
+
...O.query?.outStatistics?.[0] ?? {},
|
|
939
|
+
onStatisticField: f,
|
|
940
|
+
outStatisticFieldName: b,
|
|
941
941
|
statisticType: a
|
|
942
942
|
}
|
|
943
943
|
] : void 0
|
|
944
944
|
}
|
|
945
945
|
};
|
|
946
|
-
a ===
|
|
947
|
-
const
|
|
948
|
-
(
|
|
946
|
+
a === v.NoAggregation && (A.query !== void 0 && (delete A.query.outStatistics, delete A.query.groupByFieldsForStatistics), A.y = f);
|
|
947
|
+
const w = r.series.find(
|
|
948
|
+
(Ne) => String(Be(Ne)).trim().replace(/'/gu, "") === Q
|
|
949
949
|
);
|
|
950
|
-
|
|
950
|
+
w !== void 0 && (r.colorMatch || (L(A) && L(w) ? A.fillSymbol = w.fillSymbol : (B(A) && B(w) || C(A) && C(w)) && (A.lineSymbol = w.lineSymbol, A.markerSymbol = w.markerSymbol), S = !0), A.id = w.id, A.name = w.name), u.push(A);
|
|
951
951
|
}
|
|
952
|
-
return r.colorMatch = !S,
|
|
952
|
+
return r.colorMatch = !S, u;
|
|
953
953
|
}
|
|
954
|
-
const
|
|
955
|
-
const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config: r, layerInfo:
|
|
956
|
-
let
|
|
957
|
-
const
|
|
958
|
-
if (
|
|
959
|
-
const
|
|
960
|
-
!
|
|
954
|
+
const sa = async (t) => {
|
|
955
|
+
const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config: r, layerInfo: l, commonStrings: o } = t, { layerFieldsInfo: c } = l ?? {}, n = Ct(r), g = X(r), d = $t(r, l, o), x = kt(r, l, o), m = Xt(r, l);
|
|
956
|
+
let f = Te(r);
|
|
957
|
+
const u = r.series.some((y) => L(y)), S = ct(r.series), p = dt(r.series);
|
|
958
|
+
if (c !== void 0) {
|
|
959
|
+
const y = tt(c);
|
|
960
|
+
!y.includes(g) && y.includes(e) ? f = rt() : y.includes(g) && !y.includes(e) && (u ? f = _() : f = lt()), c.find((O) => O.name === e)?.type === pe.String && (f = _()), f !== void 0 && pt(r, o, f);
|
|
961
961
|
}
|
|
962
|
-
if (
|
|
963
|
-
|
|
964
|
-
]), r.series.forEach((
|
|
965
|
-
|
|
966
|
-
}), i === "" || s.length > 1 ?
|
|
962
|
+
if (n === 0 && (r.series = [
|
|
963
|
+
R({ config: r, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: o })
|
|
964
|
+
]), r.series.forEach((y) => {
|
|
965
|
+
y.x = e, y.query !== void 0 && (y.query.groupByFieldsForStatistics = [e]);
|
|
966
|
+
}), i === "" || s.length > 1 ? xe({
|
|
967
967
|
fieldName: e,
|
|
968
968
|
numericFields: s,
|
|
969
|
-
fieldList:
|
|
970
|
-
}) ? r.series =
|
|
969
|
+
fieldList: c
|
|
970
|
+
}) ? r.series = Et({
|
|
971
971
|
config: r,
|
|
972
|
-
layerInfo:
|
|
972
|
+
layerInfo: l,
|
|
973
973
|
xAxisField: e,
|
|
974
974
|
numericFields: s,
|
|
975
975
|
aggregationType: a,
|
|
976
|
-
commonStrings:
|
|
977
|
-
}) : r.series =
|
|
976
|
+
commonStrings: o
|
|
977
|
+
}) : r.series = Le({
|
|
978
978
|
config: r,
|
|
979
|
-
layerInfo:
|
|
979
|
+
layerInfo: l,
|
|
980
980
|
xAxisField: e,
|
|
981
981
|
numericFields: s,
|
|
982
982
|
aggregationType: a,
|
|
983
|
-
commonStrings:
|
|
984
|
-
}) : (await Promise.resolve(), r.series = await
|
|
983
|
+
commonStrings: o
|
|
984
|
+
}) : (await Promise.resolve(), r.series = await Rt({
|
|
985
985
|
config: r,
|
|
986
|
-
layerInfo:
|
|
986
|
+
layerInfo: l,
|
|
987
987
|
splitByField: i,
|
|
988
988
|
xAxisField: e,
|
|
989
989
|
numericFields: s,
|
|
990
990
|
aggregationType: a,
|
|
991
|
-
commonStrings:
|
|
991
|
+
commonStrings: o
|
|
992
992
|
})), m) {
|
|
993
|
-
const
|
|
994
|
-
|
|
993
|
+
const y = N(c, e);
|
|
994
|
+
W(r, 0, y);
|
|
995
995
|
}
|
|
996
996
|
if (x) {
|
|
997
|
-
const
|
|
997
|
+
const y = Se({
|
|
998
998
|
config: r,
|
|
999
|
-
layerInfo:
|
|
1000
|
-
commonStrings:
|
|
999
|
+
layerInfo: l,
|
|
1000
|
+
commonStrings: o,
|
|
1001
1001
|
numericFields: s,
|
|
1002
1002
|
aggregationType: a
|
|
1003
1003
|
});
|
|
1004
|
-
|
|
1004
|
+
W(r, 1, y);
|
|
1005
1005
|
}
|
|
1006
|
-
if (r.title && d && (r.title.content.text =
|
|
1007
|
-
|
|
1008
|
-
const
|
|
1009
|
-
|
|
1006
|
+
if (r.title && d && (r.title.content.text = Ae(r, l, o)), F({ config: r, value: null, axisIndex: 1, isMax: !1 }), F({ config: r, value: null, axisIndex: 1, isMax: !0 }), Pt({ numericFields: s, aggregationType: a, config: r, layerInfo: l }), S || p) {
|
|
1007
|
+
F({ config: r, value: null, axisIndex: 0, isMax: !1 }), F({ config: r, value: null, axisIndex: 0, isMax: !0 }), he(0, r);
|
|
1008
|
+
const y = f?.type === P.DateAxisFormat ? z.Null : z.Interpolate;
|
|
1009
|
+
Bt(y, r);
|
|
1010
1010
|
}
|
|
1011
|
-
},
|
|
1012
|
-
const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, r = e.series?.[i],
|
|
1013
|
-
let
|
|
1014
|
-
if (
|
|
1015
|
-
|
|
1016
|
-
else if (
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1011
|
+
}, aa = (t) => {
|
|
1012
|
+
const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, r = e.series?.[i], l = K(e);
|
|
1013
|
+
let o;
|
|
1014
|
+
if (G(e.series) === M.BarAndLineFromFields)
|
|
1015
|
+
o = a.axisLabels.values;
|
|
1016
|
+
else if (qe(l)) {
|
|
1017
|
+
const n = r.query?.outStatistics?.[0]?.onStatisticField;
|
|
1018
|
+
n !== void 0 && n !== E(s.layer).idField && (o = N(s.layerFieldsInfo, n));
|
|
1019
1019
|
} else {
|
|
1020
|
-
const
|
|
1021
|
-
fieldName:
|
|
1022
|
-
fieldValueToMatch:
|
|
1023
|
-
subtypeInfo:
|
|
1020
|
+
const n = String(Be(r)).trim().replace(/'/gu, ""), g = {
|
|
1021
|
+
fieldName: K(e),
|
|
1022
|
+
fieldValueToMatch: n ?? "",
|
|
1023
|
+
subtypeInfo: ee(s.layer),
|
|
1024
1024
|
fieldList: s.layerFieldsInfo
|
|
1025
1025
|
};
|
|
1026
|
-
|
|
1026
|
+
o = te(g) ?? n;
|
|
1027
1027
|
}
|
|
1028
|
-
return
|
|
1029
|
-
},
|
|
1030
|
-
if (
|
|
1031
|
-
|
|
1028
|
+
return o ?? r.id;
|
|
1029
|
+
}, ra = (t, e) => {
|
|
1030
|
+
if (fe(e))
|
|
1031
|
+
Mt(t, e);
|
|
1032
1032
|
else {
|
|
1033
1033
|
e.orderOptions ??= {};
|
|
1034
1034
|
const i = e.orderOptions?.data?.orderType;
|
|
1035
|
-
|
|
1036
|
-
orderType:
|
|
1035
|
+
Z(e)[0] === J.customSort && i === h.Category && (e.orderOptions.data = {
|
|
1036
|
+
orderType: h.Category,
|
|
1037
1037
|
orderBy: [...t]
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
|
-
},
|
|
1041
|
-
const i =
|
|
1042
|
-
let
|
|
1043
|
-
return s ===
|
|
1040
|
+
}, la = async (t, e) => {
|
|
1041
|
+
const i = X(t), s = Te(t)?.type, a = se(t), r = G(t.series);
|
|
1042
|
+
let l = [];
|
|
1043
|
+
return s === P.CategoryAxisFormat && (r === M.BarAndLineFromFields || i === j ? l = a.map((o) => N(e?.layerFieldsInfo, o)) : i.trim() !== "" && i !== j && e !== void 0 && (l = await ft({
|
|
1044
1044
|
layerInfo: e,
|
|
1045
1045
|
config: t,
|
|
1046
1046
|
category: i
|
|
1047
|
-
}))),
|
|
1047
|
+
}))), l;
|
|
1048
1048
|
};
|
|
1049
|
-
function
|
|
1050
|
-
const s =
|
|
1049
|
+
function $t(t, e, i) {
|
|
1050
|
+
const s = Ae(t, e, i), a = St(t), r = k(t);
|
|
1051
1051
|
return s === a || r;
|
|
1052
1052
|
}
|
|
1053
1053
|
function kt(t, e, i) {
|
|
1054
|
-
const s =
|
|
1054
|
+
const s = Se({
|
|
1055
1055
|
config: t,
|
|
1056
1056
|
layerInfo: e,
|
|
1057
1057
|
commonStrings: i,
|
|
1058
|
-
numericFields:
|
|
1059
|
-
aggregationType:
|
|
1060
|
-
}), a =
|
|
1058
|
+
numericFields: se(t),
|
|
1059
|
+
aggregationType: Ce(t)
|
|
1060
|
+
}), a = U(1, t), r = k(t);
|
|
1061
1061
|
return s === a || r;
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1064
|
-
const i =
|
|
1063
|
+
function Xt(t, e) {
|
|
1064
|
+
const i = N(e.layerFieldsInfo, X(t)), s = U(0, t), a = k(t);
|
|
1065
1065
|
return i === s || a;
|
|
1066
1066
|
}
|
|
1067
1067
|
function oa(t) {
|
|
1068
1068
|
return t.series[0]?.binTemporalData ?? !1;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function na(t, e) {
|
|
1071
1071
|
e?.series.forEach((i) => {
|
|
1072
|
-
(i?.type ===
|
|
1073
|
-
unit:
|
|
1072
|
+
(i?.type === P.BarSeries || i?.type === P.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
|
|
1073
|
+
unit: H.Day,
|
|
1074
1074
|
size: 0,
|
|
1075
|
-
timeAggregationType:
|
|
1075
|
+
timeAggregationType: De.Start,
|
|
1076
1076
|
trimIncompleteTimeInterval: !0,
|
|
1077
|
-
nullPolicy:
|
|
1077
|
+
nullPolicy: z.Null
|
|
1078
1078
|
} : delete i.temporalBinning);
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
1081
|
export {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1082
|
+
gt as $,
|
|
1083
|
+
$s as A,
|
|
1084
|
+
Ns as B,
|
|
1085
|
+
qs as C,
|
|
1086
|
+
Us as D,
|
|
1087
|
+
Xs as E,
|
|
1088
|
+
Ws as F,
|
|
1089
1089
|
js as G,
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1090
|
+
ws as H,
|
|
1091
|
+
Os as I,
|
|
1092
|
+
Ms as J,
|
|
1093
|
+
Ds as K,
|
|
1094
|
+
Gs as L,
|
|
1095
|
+
Qs as M,
|
|
1096
|
+
zs as N,
|
|
1097
|
+
Hs as O,
|
|
1098
1098
|
Ys as P,
|
|
1099
|
-
|
|
1099
|
+
Ks as Q,
|
|
1100
1100
|
_s as R,
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1101
|
+
Js as S,
|
|
1102
|
+
Zs as T,
|
|
1103
|
+
ea as U,
|
|
1104
|
+
ta as V,
|
|
1105
|
+
ia as W,
|
|
1106
|
+
fs as X,
|
|
1107
|
+
Te as Y,
|
|
1108
|
+
ft as Z,
|
|
1109
|
+
pt as _,
|
|
1110
|
+
U as a,
|
|
1111
1111
|
os as a$,
|
|
1112
1112
|
oe as a0,
|
|
1113
|
-
|
|
1113
|
+
Oi as a1,
|
|
1114
1114
|
Ii as a2,
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1115
|
+
Vi as a3,
|
|
1116
|
+
Ni as a4,
|
|
1117
|
+
qi as a5,
|
|
1118
|
+
wi as a6,
|
|
1119
|
+
Di as a7,
|
|
1120
|
+
Mi as a8,
|
|
1121
|
+
Pi as a9,
|
|
1122
|
+
Ft as aA,
|
|
1123
|
+
he as aB,
|
|
1124
|
+
Tt as aC,
|
|
1125
|
+
xs as aD,
|
|
1126
|
+
ht as aE,
|
|
1127
|
+
Ss as aF,
|
|
1128
|
+
vt as aG,
|
|
1129
|
+
bs as aH,
|
|
1130
|
+
At as aI,
|
|
1131
|
+
Bt as aJ,
|
|
1132
|
+
Fs as aK,
|
|
1133
|
+
hi as aL,
|
|
1134
|
+
Gi as aM,
|
|
1135
|
+
Qi as aN,
|
|
1136
|
+
ns as aO,
|
|
1137
|
+
Hi as aP,
|
|
1138
1138
|
_i as aQ,
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1139
|
+
vi as aR,
|
|
1140
|
+
Ai as aS,
|
|
1141
|
+
Bi as aT,
|
|
1142
|
+
Ci as aU,
|
|
1143
|
+
Li as aV,
|
|
1144
|
+
is as aW,
|
|
1145
|
+
ss as aX,
|
|
1146
|
+
as as aY,
|
|
1147
|
+
rs as aZ,
|
|
1148
|
+
ls as a_,
|
|
1149
|
+
Ei as aa,
|
|
1150
|
+
bt as ab,
|
|
1151
|
+
Ri as ac,
|
|
1152
|
+
$i as ad,
|
|
1153
1153
|
ki as ae,
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1154
|
+
Ts as af,
|
|
1155
|
+
Ct as ag,
|
|
1156
|
+
hs as ah,
|
|
1157
|
+
vs as ai,
|
|
1158
|
+
gs as aj,
|
|
1159
|
+
ys as ak,
|
|
1160
|
+
ps as al,
|
|
1161
|
+
ms as am,
|
|
1162
|
+
zi as an,
|
|
1163
|
+
Ji as ao,
|
|
1164
|
+
Zi as ap,
|
|
1165
|
+
es as aq,
|
|
1166
|
+
ts as ar,
|
|
1167
|
+
Fi as as,
|
|
1168
|
+
Ti as at,
|
|
1169
|
+
Xi as au,
|
|
1170
|
+
Ui as av,
|
|
1171
1171
|
ji as aw,
|
|
1172
|
-
|
|
1173
|
-
|
|
1172
|
+
Wi as ax,
|
|
1173
|
+
Ki as ay,
|
|
1174
1174
|
Yi as az,
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1175
|
+
Se as b,
|
|
1176
|
+
cs as b0,
|
|
1177
|
+
ds as b1,
|
|
1178
|
+
us as b2,
|
|
1179
1179
|
Is as b3,
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1180
|
+
Ls as b4,
|
|
1181
|
+
Cs as b5,
|
|
1182
|
+
As as b6,
|
|
1183
|
+
Bs as b7,
|
|
1184
|
+
ve as b8,
|
|
1185
|
+
aa as c,
|
|
1186
|
+
bi as d,
|
|
1187
|
+
Si as e,
|
|
1188
|
+
Z as f,
|
|
1189
|
+
St as g,
|
|
1190
|
+
la as h,
|
|
1191
|
+
xi as i,
|
|
1192
|
+
ra as j,
|
|
1193
1193
|
oa as k,
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1194
|
+
na as l,
|
|
1195
|
+
Ce as m,
|
|
1196
|
+
K as n,
|
|
1197
|
+
se as o,
|
|
1198
|
+
sa as p,
|
|
1199
|
+
Ae as q,
|
|
1200
|
+
wt as r,
|
|
1201
|
+
F as s,
|
|
1202
|
+
Vs as t,
|
|
1203
|
+
W as u,
|
|
1204
|
+
Dt as v,
|
|
1205
|
+
Ps as w,
|
|
1206
|
+
Rs as x,
|
|
1207
|
+
Es as y,
|
|
1208
1208
|
ks as z
|
|
1209
1209
|
};
|