@arcgis/charts-components 5.2.0-next.5 → 5.2.0-next.50
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/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
- package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
- package/dist/cdn/2EEGLP4N.js +2 -0
- package/dist/cdn/{2HUAW34Q.js → 2R5BXKVB.js} +1 -1
- package/dist/cdn/{5QO32XSX.js → 2UMW7TY6.js} +1 -1
- package/dist/cdn/356JWED3.js +2 -0
- package/dist/cdn/{Y7HBWU3M.js → 3GAUDUOD.js} +1 -1
- package/dist/cdn/{SBYD2EKR.js → 3UDKG6TV.js} +1 -1
- package/dist/cdn/{DCZWZOPF.js → 4ASVJDBN.js} +1 -1
- package/dist/cdn/4C3N36J3.js +2 -0
- package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
- package/dist/cdn/{Y3CXVO2M.js → 4MSUALRF.js} +1 -1
- package/dist/cdn/4PEJNBSG.js +2 -0
- package/dist/cdn/53HYBRJO.js +2 -0
- package/dist/cdn/{L4G6FO7A.js → 57VIC2YX.js} +1 -1
- package/dist/cdn/5CIY3LRQ.js +2 -0
- package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
- package/dist/cdn/{CHQDKVVQ.js → 5DUKB563.js} +1 -1
- package/dist/cdn/{23YH7MTF.js → 5E27ED2B.js} +1 -1
- package/dist/cdn/5IOIRPSB.js +2 -0
- package/dist/cdn/5JY7HY6L.js +2 -0
- package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
- package/dist/cdn/5XW2VK3A.js +2 -0
- package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
- package/dist/cdn/67P25QZA.js +2 -0
- package/dist/cdn/6HU62XEQ.js +2 -0
- package/dist/cdn/{BJDRJUEJ.js → 6RG6AF7N.js} +1 -1
- package/dist/cdn/{HCMD362H.js → 6RPBMFL2.js} +1 -1
- package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
- package/dist/cdn/77A4IT5I.js +2 -0
- package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
- package/dist/cdn/{JJIGLOJA.js → 7CGAXWPM.js} +1 -1
- package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
- package/dist/cdn/7FSMC2TG.js +2 -0
- package/dist/cdn/{N6AOFBBX.js → 7MEYUIY2.js} +1 -1
- package/dist/cdn/{TNB3MBXR.js → A67PKDYM.js} +1 -1
- package/dist/cdn/AALLRICA.js +2 -0
- package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
- package/dist/cdn/{5MEQANMY.js → AFE4UMQE.js} +1 -1
- package/dist/cdn/{CJ4POAPM.js → AJ4RZPOJ.js} +1 -1
- package/dist/cdn/AM27TYIA.js +102 -0
- package/dist/cdn/{VEA5ZR5D.js → APATJCOK.js} +1 -1
- package/dist/cdn/AZHBGLOD.js +2 -0
- package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
- package/dist/cdn/{TYMKFCF4.js → B6BI3FPN.js} +1 -1
- package/dist/cdn/{HVO4LIXR.js → BAPR67OA.js} +1 -1
- package/dist/cdn/{5JML3JUR.js → BBMN3YU4.js} +1 -1
- package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
- package/dist/cdn/BGOWDCTO.js +2 -0
- package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
- package/dist/cdn/BYPSLSFP.js +2 -0
- package/dist/cdn/BYSUABOV.js +2 -0
- package/dist/cdn/BYU72SMZ.js +2 -0
- package/dist/cdn/{ZFZ5AEUQ.js → C4O77AVT.js} +1 -1
- package/dist/cdn/CHZMNR2R.js +2 -0
- package/dist/cdn/CK2HC7UZ.js +4 -0
- package/dist/cdn/{64ZMYZ2S.js → CO2YXCVJ.js} +1 -1
- package/dist/cdn/CRUHZMGY.js +2 -0
- package/dist/cdn/{KLC6NTPC.js → CUPAZHZI.js} +1 -1
- package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
- package/dist/cdn/{DEGBVJ76.js → DGJATKEL.js} +1 -1
- package/dist/cdn/DGU55EVX.js +2 -0
- package/dist/cdn/DT5VZTKL.js +2 -0
- package/dist/cdn/DWWFJ4K4.js +2 -0
- package/dist/cdn/{RAQZUMC6.js → E7YVOSTR.js} +1 -1
- package/dist/cdn/{A5GIBV5W.js → EDYALXKT.js} +1 -1
- package/dist/cdn/EKHD7EQL.js +2 -0
- package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
- package/dist/cdn/{A4GEWIPY.js → F7IPTEHX.js} +1 -1
- package/dist/cdn/{WASEMNYV.js → FHKRXY7E.js} +1 -1
- package/dist/cdn/{R45FWF7D.js → G6XSNG2U.js} +1 -1
- package/dist/cdn/{LFQGH44F.js → GEHO65XE.js} +1 -1
- package/dist/cdn/{RFQBUWOW.js → GT6KWFXM.js} +1 -1
- package/dist/cdn/{TF7TE7K5.js → GZZJATH3.js} +1 -1
- package/dist/cdn/HGG2Y5XW.js +2 -0
- package/dist/cdn/HMBXRL4X.js +2 -0
- package/dist/cdn/HQHYGZW7.js +2 -0
- package/dist/cdn/{FF4DUQDZ.js → HRUQXEFI.js} +1 -1
- package/dist/cdn/{ZXOO3X5P.js → HWHKCIYW.js} +1 -1
- package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
- package/dist/cdn/{3DK6M5E7.js → IB6KNSJY.js} +1 -1
- package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
- package/dist/cdn/{PSO5AURI.js → INECCYD7.js} +1 -1
- package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
- package/dist/cdn/{PVJEBBA7.js → ISY2BKFT.js} +1 -1
- package/dist/cdn/J64IDIEG.js +2 -0
- package/dist/cdn/J6YHKP6I.js +2 -0
- package/dist/cdn/JDAJB45A.js +2 -0
- package/dist/cdn/{YOT6DVSU.js → JEW6MSOC.js} +1 -1
- package/dist/cdn/{KZ7LPNX3.js → JNFMKAES.js} +1 -1
- package/dist/cdn/JPGRB2JX.js +2 -0
- package/dist/cdn/JRJXFHCK.js +2 -0
- package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
- package/dist/cdn/{JBHGSSHS.js → K25GJKPH.js} +1 -1
- package/dist/cdn/K4APZJ2O.js +2 -0
- package/dist/cdn/K5FLBEYI.js +2 -0
- package/dist/cdn/KITNG4RO.js +2 -0
- package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
- package/dist/cdn/{7FZC3RZK.js → L5J4TYCU.js} +1 -1
- package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
- package/dist/cdn/LGTEA66L.js +2 -0
- package/dist/cdn/LQMU7V5C.js +2 -0
- package/dist/cdn/LSWWNXP3.js +2 -0
- package/dist/cdn/M22IUUVK.js +2 -0
- package/dist/cdn/{MRTKZZTF.js → MBL6ZAKF.js} +1 -1
- package/dist/cdn/{K3GNHGEW.js → MDPDU2BA.js} +1 -1
- package/dist/cdn/MIJTHCPZ.js +2 -0
- package/dist/cdn/NEOAI7Q7.js +3 -0
- package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
- package/dist/cdn/{VVKV5KKN.js → NMITBWC4.js} +1 -1
- package/dist/cdn/NPRV25FK.js +2 -0
- package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
- package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → NYFHPR6N.js} +1 -1
- package/dist/cdn/{AJWYIBGC.js → O25MQAZU.js} +1 -1
- package/dist/cdn/{LONASKGH.js → OAFJADKA.js} +1 -1
- package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
- package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
- package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
- package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
- package/dist/cdn/{LDPHZHSF.js → OWLVHHFH.js} +1 -1
- package/dist/cdn/{E7OAEGSE.js → OZSAA5YQ.js} +1 -1
- package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
- package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
- package/dist/cdn/{WEQBZOH7.js → PDPZBGTU.js} +1 -1
- package/dist/cdn/PFR6MB2U.js +2 -0
- package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
- package/dist/cdn/PO2S3EAI.js +2 -0
- package/dist/cdn/{VDG54AIC.js → PTS74ZAY.js} +1 -1
- package/dist/cdn/{VY3KBD6N.js → PV2PO4IS.js} +1 -1
- package/dist/cdn/{ETKPMU7Z.js → Q3ZQR5JF.js} +1 -1
- package/dist/cdn/{QMSINFQX.js → Q5E66RNY.js} +1 -1
- package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
- package/dist/cdn/{XJFVSX2E.js → QJMUS3VS.js} +1 -1
- package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
- package/dist/cdn/QLJQK4ET.js +2 -0
- package/dist/cdn/{THTYR6IL.js → QYNNPEED.js} +1 -1
- package/dist/cdn/R53ISOLY.js +2 -0
- package/dist/cdn/{GV3TT7L5.js → R6T7WJQJ.js} +1 -1
- package/dist/cdn/{KUZR6CGB.js → R6XIGSQS.js} +1 -1
- package/dist/cdn/{7ABIELGZ.js → RFXODD7V.js} +1 -1
- package/dist/cdn/{5XTQQOTT.js → RLCLIRL6.js} +1 -1
- package/dist/cdn/RREO2RVL.js +2 -0
- package/dist/cdn/{AM2TOTX6.js → RTVU7ANC.js} +1 -1
- package/dist/cdn/RXFVSKL4.js +2 -0
- package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
- package/dist/cdn/{DKAHZ7IX.js → SWEIMWH2.js} +1 -1
- package/dist/cdn/T5QBJ7O3.js +2 -0
- package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
- package/dist/cdn/TGGLZGJB.js +2 -0
- package/dist/cdn/THYUOV7H.js +45 -0
- package/dist/cdn/TIRQ7FKE.js +2 -0
- package/dist/cdn/{KOBNV5AQ.js → TJZPVPM6.js} +1 -1
- package/dist/cdn/{A5YDJIMZ.js → TNNXIIY2.js} +1 -1
- package/dist/cdn/{KFONSKQF.js → TQLMPVI5.js} +1 -1
- package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → TW4RXJ35.js} +1 -1
- package/dist/cdn/{U2LJZ4ML.js → TWULSSGK.js} +1 -1
- package/dist/cdn/TXQMUOMN.js +2 -0
- package/dist/cdn/{PC7IKOIB.js → TZBDO2TG.js} +1 -1
- package/dist/cdn/{5G7DSKI7.js → UBG7XLVS.js} +1 -1
- package/dist/cdn/{NQQW4GKA.js → UBZEWFXF.js} +1 -1
- package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
- package/dist/cdn/{LZYN55O4.js → UDDRI2Q2.js} +1 -1
- package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
- package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
- package/dist/cdn/{A5AECJXP.js → VEXNULZX.js} +1 -1
- package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
- package/dist/cdn/VMJSBE4T.js +2 -0
- package/dist/cdn/{U4XLNCOU.js → VQJKVJS7.js} +1 -1
- package/dist/cdn/{3YT44D4Z.js → VX6SWJJ6.js} +1 -1
- package/dist/cdn/VZNG7PQX.js +2 -0
- package/dist/cdn/W2QTMTLL.js +2 -0
- package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
- package/dist/cdn/{AWF4R7WL.js → WWIRRYDD.js} +1 -1
- package/dist/cdn/{XW4PBQNW.js → X6QMN2HV.js} +1 -1
- package/dist/cdn/XKOKJQQD.js +2 -0
- package/dist/cdn/{LRNADJJG.js → XMV5A2VE.js} +2 -2
- package/dist/cdn/XUL3AOTB.js +2 -0
- package/dist/cdn/{IPM2XKST.js → XVK4ONRA.js} +1 -1
- package/dist/cdn/{QOOBNATX.js → XWLP2CHH.js} +1 -1
- package/dist/cdn/Y6KFUUWA.js +2 -0
- package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
- package/dist/cdn/YEGRLOUM.js +2 -0
- package/dist/cdn/{PAIRUVLU.js → YEK7BIRE.js} +1 -1
- package/dist/cdn/{XE3FKQFA.js → YS73YUW5.js} +1 -1
- package/dist/cdn/{WNKDEOFZ.js → ZALJA7E5.js} +1 -1
- package/dist/cdn/{6XTKJ7DO.js → ZCAHK6VZ.js} +1 -1
- package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
- package/dist/cdn/{FDXE5JLT.js → ZUIZRQUG.js} +1 -1
- package/dist/cdn/{CLXVAIQX.js → ZYK5XBZK.js} +1 -1
- package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -0
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +8 -8
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +39 -36
- package/dist/chunks/box-plot-data.js +37 -37
- package/dist/chunks/box-plot-model.js +10 -10
- package/dist/chunks/chart-model.js +173 -141
- package/dist/chunks/chart-object-literals.js +2 -1
- package/dist/chunks/chart-ui-utils.js +24 -23
- package/dist/chunks/class-breaks.js +12 -12
- package/dist/chunks/combo-bar-line-chart-model.js +27 -27
- package/dist/chunks/data-labels-symbol.js +39 -24
- package/dist/chunks/data-labels-visibility.js +22 -22
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/generate-x-axis-title.js +9 -9
- package/dist/chunks/heat-chart-model.js +76 -47
- package/dist/chunks/histogram-data.js +15 -15
- package/dist/chunks/histogram-model.js +5 -5
- package/dist/chunks/index.js +85 -84
- package/dist/chunks/index2.js +5926 -5735
- package/dist/chunks/index3.js +32 -29
- package/dist/chunks/index4.js +252 -75
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +15 -14
- package/dist/chunks/model-with-line-marker-styling.js +2 -3
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +20 -20
- package/dist/chunks/negative-values-stacked-to-baseline.js +3 -3
- package/dist/chunks/pie-chart-data.js +48 -42
- package/dist/chunks/pie-chart-model.js +171 -158
- package/dist/chunks/radar-chart-model.js +2 -2
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +73 -0
- package/dist/chunks/scatterplot-model.js +15 -15
- package/dist/chunks/serial-chart-data.js +891 -756
- package/dist/chunks/serial-chart-model.js +107 -93
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +17 -13
- package/dist/chunks/type-guards2.js +24 -20
- package/dist/chunks/type-guards3.js +1 -1
- package/dist/chunks/utils.js +79 -68
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +632 -492
- package/dist/chunks/x-bounds.js +17 -17
- package/dist/components/arcgis-chart/customElement.d.ts +178 -148
- package/dist/components/arcgis-chart/customElement.js +8259 -8184
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +6 -9
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +23 -25
- 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 +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +16 -16
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +63 -75
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +53 -54
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -12
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +36 -38
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +41 -48
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +55 -56
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +79 -79
- package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +9 -11
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
- package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +66 -70
- package/dist/index.js +457 -450
- package/dist/json-schema/index.d.ts +162 -2
- package/dist/loader.js +2 -2
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +8 -5
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +24 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +6 -5
- package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
- package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/model/properties/rounded-corners.d.ts +18 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +15 -0
- package/dist/model/shared/type-guards.d.ts +7 -0
- package/dist/spec/chart-object-literals.d.ts +1 -0
- package/dist/spec/data-source.d.ts +6 -1
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +16 -2
- package/dist/utils/chart-config/converter/index.js +17 -17
- package/dist/utils/chart-config/utils/index.d.ts +35 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
- package/dist/utils/data/index.d.ts +14 -10
- package/dist/utils/defaults/index.d.ts +5 -3
- package/dist/utils/defaults/interfaces.d.ts +1 -1
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +5 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/layer/interfaces.d.ts +2 -1
- package/dist/utils/layer/query-features/index.d.ts +17 -1
- package/dist/utils/layer/query-parser/index.d.ts +4 -3
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +7 -8
- package/dist/cdn/26FWESH3.js +0 -102
- package/dist/cdn/2K4ODNJ4.js +0 -2
- package/dist/cdn/3XHZ677O.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/5FMEOIBS.js +0 -3
- package/dist/cdn/5XTB2INB.js +0 -2
- package/dist/cdn/5YJNENER.js +0 -2
- package/dist/cdn/74JAZF7U.js +0 -2
- package/dist/cdn/7CN6J33C.js +0 -2
- package/dist/cdn/7HIZH35G.js +0 -2
- package/dist/cdn/BBURKBKE.js +0 -2
- package/dist/cdn/CCR46UHB.js +0 -2
- package/dist/cdn/CJPEW4LJ.js +0 -142
- package/dist/cdn/CRFJ2GGS.js +0 -2
- package/dist/cdn/CXQOEN77.js +0 -2
- package/dist/cdn/DYC3Q36R.js +0 -2
- package/dist/cdn/E43KEVHT.js +0 -2
- package/dist/cdn/EXTKNE2L.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/F7Y6EWWB.js +0 -2
- package/dist/cdn/G5HVFOIO.js +0 -2
- package/dist/cdn/G7TRU7JI.js +0 -2
- package/dist/cdn/GL3IXVRN.js +0 -2
- package/dist/cdn/GLJWUZHK.js +0 -2
- package/dist/cdn/HCV34H6X.js +0 -2
- package/dist/cdn/IUFXFWXH.js +0 -2
- package/dist/cdn/JHYH555K.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/JVHJMPFE.js +0 -2
- package/dist/cdn/K5MXTTSL.js +0 -2
- package/dist/cdn/KI4HS3AM.js +0 -2
- package/dist/cdn/KVGEY3IQ.js +0 -2
- package/dist/cdn/LWODMEOP.js +0 -2
- package/dist/cdn/LYZGRYQV.js +0 -2
- package/dist/cdn/MF3FGXHI.js +0 -2
- package/dist/cdn/MUPHTV55.js +0 -2
- package/dist/cdn/N5ERJZPG.js +0 -2
- package/dist/cdn/NGPMU4T3.js +0 -2
- package/dist/cdn/NJCZ6UTM.js +0 -2
- package/dist/cdn/NMB6TWC2.js +0 -2
- package/dist/cdn/NNNTZU5J.js +0 -2
- package/dist/cdn/NPXBPNXE.js +0 -2
- package/dist/cdn/NS3THLCD.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/OLV642SY.js +0 -4
- package/dist/cdn/P2NPQAJ3.js +0 -2
- package/dist/cdn/PJUAU42S.js +0 -2
- package/dist/cdn/PK5XIIZY.js +0 -2
- package/dist/cdn/PY5Q3V6E.js +0 -2
- package/dist/cdn/PZGIXDMC.js +0 -2
- package/dist/cdn/RMYZGOBM.js +0 -2
- package/dist/cdn/SVLEJ3HK.js +0 -2
- package/dist/cdn/TAI4RIWT.js +0 -2
- package/dist/cdn/TXSWWAOF.js +0 -2
- package/dist/cdn/TZB57XD4.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/UAJGYF4S.js +0 -2
- package/dist/cdn/UT6G7RV7.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/cdn/YF7MNTCU.js +0 -58
- package/dist/cdn/YRBE7MBU.js +0 -2
- package/dist/cdn/YRFZPSCC.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/cdn/Z2CVF7CH.js +0 -2
- package/dist/cdn/ZRZEKOEF.js +0 -2
- package/dist/chunks/bar-chart-series.js +0 -15
- package/dist/chunks/time-zone.js +0 -38
- package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
- /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
|
@@ -1,175 +1,207 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { substitute as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { S as
|
|
5
|
-
import { s as
|
|
6
|
-
import { w as
|
|
7
|
-
import { a as
|
|
8
|
-
import { C as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { h as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
2
|
+
import { substitute as M } from "@arcgis/core/intl.js";
|
|
3
|
+
import { cloneDeep as ee, isEmpty as Xe, memoize as Ue } from "lodash-es";
|
|
4
|
+
import { S as oe } from "./common.js";
|
|
5
|
+
import { s as k, u as E, a as Ve, g as pe, b as Le, c as je, d as Ke, e as fe } from "./utils.js";
|
|
6
|
+
import { w as D, i as Ze, cU as Y, b_ as _e, bm as Qe, x as ze, Y as te, cs as Ge, cr as Je, p as et, aH as ge, c4 as tt, d as it, aG as st, I as at, a7 as rt, bk as nt, W as lt, e as ot, bo as ut, c$ as ct, v as dt, d6 as Se, bN as yt, d7 as mt, bJ as pt, B as gt, N as Fe, bq as Q, d3 as ft, bb as W, bu as z, an as K, a6 as Ne, b9 as St, k as ue, bh as he } from "./index2.js";
|
|
7
|
+
import { a as X, s as De, g as ie, b as xe, c as Ft } from "./data.js";
|
|
8
|
+
import { u as C, r as V, k as ht, d as R, n as O, m as $, p as xt, t as Tt, s as ce } from "./chart-object-literals.js";
|
|
9
|
+
import { R as Oe, i as Bt } from "./rest-js-object-literals.js";
|
|
10
|
+
import { i as se } from "./index4.js";
|
|
11
|
+
import { aA as Ct, I as G, D as de, u as bt, Z as At, aa as vt, am as It, y as Vt, a0 as Lt } from "./index.js";
|
|
12
|
+
import { C as w, F as H, d as P } from "./index3.js";
|
|
13
|
+
import { h as ke, i as q, j as Nt, n as Dt, g as A, m as v, e as Te } from "./index5.js";
|
|
14
|
+
import { convertChartSpec as Ot } from "../utils/chart-config/converter/index.js";
|
|
15
|
+
import { d as ye, f as kt } from "./type-guards.js";
|
|
16
|
+
import { g as qe } from "./series-types.js";
|
|
17
|
+
import { C as qt, m as Rt } from "./model-setter.js";
|
|
18
|
+
import { g as ae } from "./utils2.js";
|
|
19
|
+
import { a as Pt, b as wt } from "./series-length.js";
|
|
20
|
+
const Di = (t) => {
|
|
20
21
|
let e;
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
},
|
|
22
|
+
const i = t.series[0];
|
|
23
|
+
return D(i) && (e = i.temporalBinning?.size), e;
|
|
24
|
+
}, Mt = (t) => {
|
|
24
25
|
let e;
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
},
|
|
26
|
+
const i = t.series[0];
|
|
27
|
+
return D(i) && (e = i.temporalBinning?.unit), e;
|
|
28
|
+
}, Oi = (t) => {
|
|
28
29
|
let e;
|
|
29
|
-
const
|
|
30
|
-
return
|
|
31
|
-
},
|
|
30
|
+
const i = t.series[0];
|
|
31
|
+
return D(i) && (e = i.temporalBinning?.timeAggregationType), e;
|
|
32
|
+
}, ki = (t) => {
|
|
32
33
|
let e;
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
-
},
|
|
34
|
+
const i = t.series[0];
|
|
35
|
+
return D(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
36
|
+
}, qi = (t) => {
|
|
36
37
|
let e;
|
|
37
|
-
const
|
|
38
|
-
return
|
|
39
|
-
},
|
|
40
|
-
e?.series?.forEach((
|
|
41
|
-
|
|
42
|
-
}),
|
|
43
|
-
},
|
|
44
|
-
e?.series?.forEach((
|
|
45
|
-
|
|
46
|
-
}),
|
|
47
|
-
},
|
|
48
|
-
e.series?.forEach((
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
},
|
|
52
|
-
e.series?.forEach((
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
},
|
|
56
|
-
e.series?.forEach((
|
|
57
|
-
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
|
|
38
|
+
const i = t.series[0];
|
|
39
|
+
return D(i) && (e = i.temporalBinning?.nullPolicy), e;
|
|
40
|
+
}, Et = (t, e) => {
|
|
41
|
+
e?.series?.forEach((i) => {
|
|
42
|
+
D(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
|
|
43
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
44
|
+
}, Wt = (t, e) => {
|
|
45
|
+
e?.series?.forEach((i) => {
|
|
46
|
+
D(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
|
|
47
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
48
|
+
}, Ri = (t, e) => {
|
|
49
|
+
e.series?.forEach((i) => {
|
|
50
|
+
D(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
|
|
51
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
52
|
+
}, Pi = (t, e) => {
|
|
53
|
+
e.series?.forEach((i) => {
|
|
54
|
+
D(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
|
|
55
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
56
|
+
}, wi = (t, e) => {
|
|
57
|
+
e.series?.forEach((i) => {
|
|
58
|
+
D(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
|
|
59
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
60
|
+
}, Yt = (t) => {
|
|
61
|
+
Et(0, t);
|
|
61
62
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
var $t = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, Xt = (t, e, i, a) => {
|
|
64
|
+
for (var r = Ht(e, i), s = t.length - 1, n; s >= 0; s--)
|
|
65
|
+
(n = t[s]) && (r = n(e, i, r) || r);
|
|
66
|
+
return r && $t(e, i, r), r;
|
|
67
|
+
};
|
|
68
|
+
const Ut = (t) => {
|
|
69
|
+
let e;
|
|
70
|
+
return Y(t) ? e = t.outTimeZone : t?.series.forEach((i) => {
|
|
71
|
+
(i.type === C.BarSeries || i.type === C.RadarSeries || i.type === C.LineSeries) && i.temporalBinning && (e = i.temporalBinning.outTimeZone);
|
|
72
|
+
}), e || (e = t?.axes?.[0]?.valueFormat.type === C.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
|
|
73
|
+
}, Re = (t, e) => {
|
|
74
|
+
const i = Ze(t);
|
|
75
|
+
Y(e) ? t ? e.outTimeZone = i : delete e.outTimeZone : e?.series.forEach((a) => {
|
|
76
|
+
(a.type === C.BarSeries || a.type === C.RadarSeries || a.type === C.LineSeries) && (t ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = i) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
|
|
77
|
+
}), e?.axes?.[0]?.valueFormat.type === C.DateAxisFormat && (t ? e.axes[0].valueFormat.intlOptions.timeZone = i : delete e.axes[0].valueFormat.intlOptions.timeZone);
|
|
78
|
+
};
|
|
79
|
+
class jt extends qt {
|
|
80
|
+
/**
|
|
81
|
+
* Gets the time zone for the chart.
|
|
82
|
+
*/
|
|
83
|
+
get timeZone() {
|
|
84
|
+
return Ut(this._config);
|
|
85
|
+
}
|
|
86
|
+
set timeZone(e) {
|
|
87
|
+
Re(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
Xt([
|
|
91
|
+
Rt
|
|
92
|
+
], jt.prototype, "timeZone");
|
|
93
|
+
function Mi(t, e) {
|
|
94
|
+
let i;
|
|
95
|
+
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
|
|
65
96
|
}
|
|
66
|
-
function
|
|
67
|
-
let
|
|
68
|
-
return e !== void 0 && (
|
|
97
|
+
function Ei(t, e) {
|
|
98
|
+
let i;
|
|
99
|
+
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
|
|
69
100
|
}
|
|
70
|
-
function
|
|
71
|
-
let
|
|
72
|
-
return e !== void 0 && (
|
|
101
|
+
function Wi(t, e) {
|
|
102
|
+
let i;
|
|
103
|
+
return e !== void 0 && (i = { ...e, rotated: t }), i;
|
|
73
104
|
}
|
|
74
|
-
function
|
|
105
|
+
function Kt(t) {
|
|
75
106
|
let e;
|
|
76
107
|
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;
|
|
77
108
|
}
|
|
78
|
-
function
|
|
79
|
-
return e != null ||
|
|
109
|
+
function Yi(t, e) {
|
|
110
|
+
return e != null || ke(t);
|
|
80
111
|
}
|
|
81
|
-
async function
|
|
82
|
-
const { config: e, layer:
|
|
83
|
-
let
|
|
84
|
-
return
|
|
112
|
+
async function $i(t) {
|
|
113
|
+
const { config: e, layer: i, abortSignal: a } = t;
|
|
114
|
+
let r = !1;
|
|
115
|
+
return ye(i) || kt(e) ? e && ye(i) && (r = await Qe({ config: e, layer: i, abortSignal: a })) : r = !0, r;
|
|
85
116
|
}
|
|
86
|
-
async function
|
|
117
|
+
async function Zt(t) {
|
|
87
118
|
const {
|
|
88
119
|
queryObject: e,
|
|
89
|
-
chartConfig:
|
|
90
|
-
splitByField:
|
|
91
|
-
errorStrings:
|
|
92
|
-
abortSignal:
|
|
120
|
+
chartConfig: i,
|
|
121
|
+
splitByField: a,
|
|
122
|
+
errorStrings: r,
|
|
123
|
+
abortSignal: s,
|
|
93
124
|
runtimeDataFilters: n,
|
|
94
|
-
ignoreViewExtent:
|
|
125
|
+
ignoreViewExtent: l,
|
|
95
126
|
setTimeBinningInfoWhenNotProvided: c,
|
|
96
|
-
returnFeaturesExtent:
|
|
97
|
-
chartLimits:
|
|
127
|
+
returnFeaturesExtent: d,
|
|
128
|
+
chartLimits: p
|
|
98
129
|
} = t;
|
|
99
|
-
let
|
|
100
|
-
const
|
|
130
|
+
let u = [], y;
|
|
131
|
+
const m = ee(i), g = m.series[0], o = ot({
|
|
101
132
|
queryObject: e,
|
|
102
|
-
chartConfig:
|
|
133
|
+
chartConfig: m,
|
|
103
134
|
runtimeDataFilters: n,
|
|
104
|
-
ignoreViewExtent:
|
|
135
|
+
ignoreViewExtent: l
|
|
105
136
|
});
|
|
106
|
-
if (
|
|
107
|
-
xAxisValueFormatType:
|
|
137
|
+
if (o.outStatistics?.[0]?.outStatisticFieldName && (o.outStatistics[0].outStatisticFieldName = Ct.outStatistics.outStatisticFieldName), D(g) && ut({
|
|
138
|
+
xAxisValueFormatType: ct(m),
|
|
108
139
|
setTimeBinningInfoWhenNotProvided: c,
|
|
109
|
-
seriesConfig:
|
|
140
|
+
seriesConfig: g,
|
|
110
141
|
queryObject: e
|
|
111
|
-
}) &&
|
|
112
|
-
const { temporalBinning:
|
|
113
|
-
chartConfig:
|
|
114
|
-
queryConfig:
|
|
142
|
+
}) && dt(a, e)) {
|
|
143
|
+
const { temporalBinning: f, x: T } = g, { uniqueQuery: b } = Se({
|
|
144
|
+
chartConfig: m,
|
|
145
|
+
queryConfig: o,
|
|
115
146
|
queryObject: e,
|
|
116
147
|
setTimeBinningInfoWhenNotProvided: c,
|
|
117
|
-
returnFeaturesExtent:
|
|
118
|
-
chartLimits:
|
|
119
|
-
}),
|
|
120
|
-
|
|
148
|
+
returnFeaturesExtent: d,
|
|
149
|
+
chartLimits: p
|
|
150
|
+
}), F = i.axes?.[0].valueFormat.type === C.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
151
|
+
y = await yt({
|
|
121
152
|
queryObject: e,
|
|
122
|
-
dateField:
|
|
123
|
-
splitByField:
|
|
124
|
-
queryConfig:
|
|
125
|
-
axisTimeZone:
|
|
126
|
-
temporalBinning:
|
|
127
|
-
errorStrings:
|
|
128
|
-
abortSignal:
|
|
129
|
-
}),
|
|
153
|
+
dateField: T,
|
|
154
|
+
splitByField: a,
|
|
155
|
+
queryConfig: b,
|
|
156
|
+
axisTimeZone: F,
|
|
157
|
+
temporalBinning: f,
|
|
158
|
+
errorStrings: r,
|
|
159
|
+
abortSignal: s
|
|
160
|
+
}), u = Array.from(
|
|
130
161
|
new Set(
|
|
131
|
-
|
|
132
|
-
const { stackedAttributes:
|
|
133
|
-
let
|
|
134
|
-
return
|
|
162
|
+
y.flatMap((S) => {
|
|
163
|
+
const { stackedAttributes: I } = S;
|
|
164
|
+
let B = [];
|
|
165
|
+
return I && (B = I.map((h) => h[a]).filter((h) => h !== void 0)), B;
|
|
135
166
|
})
|
|
136
167
|
).values()
|
|
137
168
|
);
|
|
138
169
|
} else {
|
|
139
|
-
const { uniqueQuery:
|
|
140
|
-
chartConfig:
|
|
170
|
+
const { uniqueQuery: f } = Se({
|
|
171
|
+
chartConfig: m,
|
|
141
172
|
queryObject: e,
|
|
142
|
-
queryConfig:
|
|
173
|
+
queryConfig: o,
|
|
143
174
|
setTimeBinningInfoWhenNotProvided: c,
|
|
144
|
-
returnFeaturesExtent:
|
|
145
|
-
chartLimits:
|
|
146
|
-
}), { elementCount:
|
|
147
|
-
chartConfig:
|
|
175
|
+
returnFeaturesExtent: d,
|
|
176
|
+
chartLimits: p
|
|
177
|
+
}), { elementCount: T } = await mt({
|
|
178
|
+
chartConfig: m,
|
|
148
179
|
queryObject: e,
|
|
149
|
-
queryConfig:
|
|
150
|
-
behaviorAfterLimit:
|
|
151
|
-
numberMaxOfFeaturesToFetch:
|
|
152
|
-
abortSignal:
|
|
180
|
+
queryConfig: o,
|
|
181
|
+
behaviorAfterLimit: p?.behaviorAfterLimit,
|
|
182
|
+
numberMaxOfFeaturesToFetch: f.num,
|
|
183
|
+
abortSignal: s
|
|
153
184
|
});
|
|
154
|
-
|
|
185
|
+
y = await pt({
|
|
155
186
|
queryObject: e,
|
|
156
|
-
queryConfig:
|
|
157
|
-
featureCount:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
187
|
+
queryConfig: f,
|
|
188
|
+
featureCount: T,
|
|
189
|
+
returnStatisticsAggregatedIds: !0,
|
|
190
|
+
errorStrings: r,
|
|
191
|
+
abortSignal: s
|
|
192
|
+
}), u = Array.from(
|
|
161
193
|
new Set(
|
|
162
|
-
|
|
194
|
+
y.map((b) => b.attributes[a]).filter((b) => b !== void 0)
|
|
163
195
|
).values()
|
|
164
196
|
);
|
|
165
197
|
}
|
|
166
|
-
return { allValues:
|
|
198
|
+
return { allValues: u, preFetchedQueryResponse: y };
|
|
167
199
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
return t.series.forEach((
|
|
171
|
-
let
|
|
172
|
-
where:
|
|
200
|
+
function _t(t, e) {
|
|
201
|
+
const i = /* @__PURE__ */ new Map();
|
|
202
|
+
return t.series.forEach((a) => {
|
|
203
|
+
let r = ge({
|
|
204
|
+
where: a.query?.where,
|
|
173
205
|
// normalize the value so it matches what we get from getAllValues()
|
|
174
206
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
175
207
|
normalize: !0,
|
|
@@ -177,284 +209,290 @@ function At(t, e) {
|
|
|
177
209
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
|
|
178
210
|
escape: !1
|
|
179
211
|
});
|
|
180
|
-
e &&
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
...
|
|
184
|
-
|
|
212
|
+
e && r !== null && (r = Number(r));
|
|
213
|
+
const s = qe([a]);
|
|
214
|
+
s !== void 0 && i.set(s, [
|
|
215
|
+
...i.get(s) ?? [],
|
|
216
|
+
r
|
|
185
217
|
]);
|
|
186
|
-
}),
|
|
218
|
+
}), i;
|
|
187
219
|
}
|
|
188
|
-
function
|
|
189
|
-
const { allValues: e, configUniqueValuesPerSeriesType:
|
|
190
|
-
return Array.from(
|
|
191
|
-
const n =
|
|
192
|
-
let
|
|
193
|
-
|
|
194
|
-
n.includes(c) ||
|
|
195
|
-
}),
|
|
196
|
-
}),
|
|
220
|
+
function Qt(t) {
|
|
221
|
+
const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: a } = t, r = /* @__PURE__ */ new Map();
|
|
222
|
+
return Array.from(i.keys()).forEach((s) => {
|
|
223
|
+
const n = i.get(s) ?? [];
|
|
224
|
+
let l = [];
|
|
225
|
+
a ? l = e : e.forEach((c) => {
|
|
226
|
+
n.includes(c) || l.push(c);
|
|
227
|
+
}), r.set(s, l);
|
|
228
|
+
}), r;
|
|
197
229
|
}
|
|
198
|
-
function
|
|
199
|
-
const { chartConfig: e, missingValue:
|
|
230
|
+
function zt(t) {
|
|
231
|
+
const { chartConfig: e, missingValue: i, splitByField: a, seriesTemplate: r } = t, s = JSON.parse(
|
|
200
232
|
JSON.stringify({
|
|
201
233
|
...e.series[0],
|
|
202
|
-
...
|
|
234
|
+
...r
|
|
203
235
|
})
|
|
204
236
|
);
|
|
205
|
-
if (
|
|
206
|
-
if (i.id =
|
|
207
|
-
const
|
|
208
|
-
|
|
237
|
+
if (s.query) {
|
|
238
|
+
if (i === null ? s.id = H.nullValue : i === "" ? s.id = H.emptyStringValue : s.id = `${i}`, s.name = `${i}`, s.query.outStatistics?.[0] !== void 0) {
|
|
239
|
+
const l = s.id;
|
|
240
|
+
s.query.outStatistics[0].outStatisticFieldName = l, "y" in s && (s.y = l);
|
|
209
241
|
}
|
|
210
|
-
const n = typeof
|
|
211
|
-
|
|
242
|
+
const n = typeof i == "number" || i === null ? i : `'${i}'`;
|
|
243
|
+
s.query.where = `${a}=${n}`;
|
|
212
244
|
}
|
|
213
|
-
return
|
|
245
|
+
return s;
|
|
214
246
|
}
|
|
215
|
-
async function
|
|
247
|
+
async function Gt(t) {
|
|
216
248
|
const {
|
|
217
249
|
updateSplitBySeries: e,
|
|
218
|
-
config:
|
|
219
|
-
queryObject:
|
|
220
|
-
errorStrings:
|
|
221
|
-
abortSignal:
|
|
250
|
+
config: i,
|
|
251
|
+
queryObject: a,
|
|
252
|
+
errorStrings: r,
|
|
253
|
+
abortSignal: s,
|
|
222
254
|
runtimeDataFilters: n,
|
|
223
|
-
ignoreViewExtent:
|
|
255
|
+
ignoreViewExtent: l,
|
|
224
256
|
setTimeBinningInfoWhenNotProvided: c,
|
|
225
|
-
returnFeaturesExtent:
|
|
226
|
-
chartLimits:
|
|
227
|
-
} = t, { seriesTemplate:
|
|
228
|
-
let
|
|
229
|
-
if (
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
-
const
|
|
235
|
-
queryObject:
|
|
236
|
-
chartConfig:
|
|
237
|
-
splitByField:
|
|
238
|
-
abortSignal:
|
|
257
|
+
returnFeaturesExtent: d,
|
|
258
|
+
chartLimits: p
|
|
259
|
+
} = t, { seriesTemplate: u } = e ?? {};
|
|
260
|
+
let y;
|
|
261
|
+
if (a && !ye(a) && e !== void 0 && i !== void 0 && (i.series.length > 0 || u !== void 0) && e.addMissingSeries) {
|
|
262
|
+
const m = i.series.length === 0;
|
|
263
|
+
i.series.length === 0 && u !== void 0 && i.series.push(u);
|
|
264
|
+
const g = te(i.series);
|
|
265
|
+
if (g === w.BoxPlotMonoFieldAndSplitBy || g === w.BoxPlotMultiFieldsAndSplitBy || g === w.BoxPlotMonoFieldAndCategoryAndSplitBy || g === w.BarAndLineSplitBy || g === w.BarAndLineSplitByNoAggregation) {
|
|
266
|
+
const o = st(i.series[0]?.query?.where), f = at(a), T = rt(o, f), b = T ? nt(T) : !1, F = await Zt({
|
|
267
|
+
queryObject: a,
|
|
268
|
+
chartConfig: i,
|
|
269
|
+
splitByField: o,
|
|
270
|
+
abortSignal: s,
|
|
239
271
|
runtimeDataFilters: n,
|
|
240
|
-
ignoreViewExtent:
|
|
272
|
+
ignoreViewExtent: l,
|
|
241
273
|
setTimeBinningInfoWhenNotProvided: c,
|
|
242
|
-
returnFeaturesExtent:
|
|
243
|
-
chartLimits:
|
|
244
|
-
errorStrings:
|
|
245
|
-
}), { allValues:
|
|
246
|
-
if ({ preFetchedQueryResponse:
|
|
247
|
-
const
|
|
248
|
-
allValues:
|
|
249
|
-
configUniqueValuesPerSeriesType:
|
|
250
|
-
initialConfigWasEmpty:
|
|
274
|
+
returnFeaturesExtent: d,
|
|
275
|
+
chartLimits: p,
|
|
276
|
+
errorStrings: r
|
|
277
|
+
}), { allValues: S } = F;
|
|
278
|
+
if ({ preFetchedQueryResponse: y } = F, S.length > 0) {
|
|
279
|
+
const I = _t(i, b), B = Qt({
|
|
280
|
+
allValues: S,
|
|
281
|
+
configUniqueValuesPerSeriesType: I,
|
|
282
|
+
initialConfigWasEmpty: m
|
|
251
283
|
});
|
|
252
|
-
Array.from(
|
|
253
|
-
(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
chartConfig:
|
|
257
|
-
seriesTemplate:
|
|
258
|
-
missingValue:
|
|
259
|
-
splitByField:
|
|
284
|
+
Array.from(B.keys()).forEach((h) => {
|
|
285
|
+
(B.get(h) ?? []).forEach((N) => {
|
|
286
|
+
i.series.push(
|
|
287
|
+
zt({
|
|
288
|
+
chartConfig: i,
|
|
289
|
+
seriesTemplate: u,
|
|
290
|
+
missingValue: N,
|
|
291
|
+
splitByField: o
|
|
260
292
|
})
|
|
261
293
|
);
|
|
262
|
-
}),
|
|
294
|
+
}), m && i.series.shift();
|
|
263
295
|
});
|
|
264
296
|
}
|
|
265
297
|
}
|
|
266
298
|
}
|
|
267
|
-
return
|
|
299
|
+
return y;
|
|
268
300
|
}
|
|
269
|
-
function
|
|
270
|
-
e && !
|
|
301
|
+
function Jt(t, e) {
|
|
302
|
+
e && !ke(e) && (e = it({ chartConfig: e, queryObject: t }));
|
|
271
303
|
}
|
|
272
|
-
async function
|
|
304
|
+
async function Hi(t) {
|
|
273
305
|
const {
|
|
274
306
|
configToAlter: e,
|
|
275
|
-
layer:
|
|
276
|
-
addMissingSeries:
|
|
277
|
-
updateSplitBySeries:
|
|
278
|
-
chartContainer:
|
|
307
|
+
layer: i,
|
|
308
|
+
addMissingSeries: a,
|
|
309
|
+
updateSplitBySeries: r,
|
|
310
|
+
chartContainer: s,
|
|
279
311
|
queryObject: n,
|
|
280
|
-
abortSignal:
|
|
312
|
+
abortSignal: l,
|
|
281
313
|
runtimeDataFilters: c,
|
|
282
|
-
ignoreViewExtent:
|
|
283
|
-
setTimeBinningInfoWhenNotProvided:
|
|
284
|
-
returnFeaturesExtent:
|
|
285
|
-
chartLimits:
|
|
286
|
-
|
|
314
|
+
ignoreViewExtent: d,
|
|
315
|
+
setTimeBinningInfoWhenNotProvided: p,
|
|
316
|
+
returnFeaturesExtent: u,
|
|
317
|
+
chartLimits: y,
|
|
318
|
+
timeZone: m,
|
|
319
|
+
errorStrings: g
|
|
287
320
|
} = t;
|
|
288
|
-
let
|
|
289
|
-
return
|
|
290
|
-
updateSplitBySeries:
|
|
291
|
-
config:
|
|
321
|
+
let o = e, f;
|
|
322
|
+
return o && (Jt(i, o), o = await Ot(o, i, void 0, l), a && n && (f = await Gt({
|
|
323
|
+
updateSplitBySeries: r,
|
|
324
|
+
config: o,
|
|
292
325
|
queryObject: n,
|
|
293
|
-
errorStrings:
|
|
294
|
-
abortSignal:
|
|
326
|
+
errorStrings: g,
|
|
327
|
+
abortSignal: l,
|
|
295
328
|
runtimeDataFilters: c,
|
|
296
|
-
ignoreViewExtent:
|
|
297
|
-
setTimeBinningInfoWhenNotProvided:
|
|
298
|
-
returnFeaturesExtent:
|
|
299
|
-
chartLimits:
|
|
300
|
-
})),
|
|
329
|
+
ignoreViewExtent: d,
|
|
330
|
+
setTimeBinningInfoWhenNotProvided: p,
|
|
331
|
+
returnFeaturesExtent: u,
|
|
332
|
+
chartLimits: y
|
|
333
|
+
})), o = _e(o, s), Re(m, o)), { alteredConfig: o, preFetchedQueryResponse: f };
|
|
301
334
|
}
|
|
302
|
-
function
|
|
303
|
-
let
|
|
335
|
+
function ei(t, e) {
|
|
336
|
+
let i = !1;
|
|
304
337
|
if (e !== void 0) {
|
|
305
|
-
const
|
|
306
|
-
|
|
338
|
+
const a = lt({ key: gt.Average, splitBy: e });
|
|
339
|
+
i = Number.isFinite(t[a]);
|
|
307
340
|
}
|
|
308
|
-
return
|
|
341
|
+
return i;
|
|
309
342
|
}
|
|
310
|
-
function
|
|
311
|
-
const { data: e, config:
|
|
343
|
+
function Xi(t) {
|
|
344
|
+
const { data: e, config: i, showEmptySeries: a } = t, r = i.series.length, s = ee(i);
|
|
312
345
|
let n = !1;
|
|
313
|
-
if (!
|
|
314
|
-
const
|
|
346
|
+
if (!a && r > 1 && e) {
|
|
347
|
+
const l = ze(e), c = qe(i?.series), d = te(i?.series), p = /* @__PURE__ */ new Set();
|
|
315
348
|
switch (c) {
|
|
316
|
-
case
|
|
317
|
-
case
|
|
318
|
-
case
|
|
319
|
-
case
|
|
320
|
-
|
|
321
|
-
if (Array.isArray(
|
|
322
|
-
let
|
|
323
|
-
"y" in
|
|
324
|
-
(
|
|
325
|
-
dataItem:
|
|
326
|
-
x:
|
|
327
|
-
y:
|
|
328
|
-
aggregationType:
|
|
349
|
+
case C.ComboLineAndBarSeries:
|
|
350
|
+
case C.BarSeries:
|
|
351
|
+
case C.RadarSeries:
|
|
352
|
+
case C.LineSeries: {
|
|
353
|
+
s.series.forEach((y) => {
|
|
354
|
+
if (Array.isArray(l)) {
|
|
355
|
+
let m = "";
|
|
356
|
+
"y" in y && (m = Array.isArray(y.y) ? y.y[0] : y.y, d === w.BarAndLineSplitByNoAggregation && (m = `${m}_${ge({ where: y.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), l.some(
|
|
357
|
+
(o) => tt({
|
|
358
|
+
dataItem: o,
|
|
359
|
+
x: y.x,
|
|
360
|
+
y: m,
|
|
361
|
+
aggregationType: i.series[0].query?.outStatistics?.[0]?.statisticType
|
|
329
362
|
})
|
|
330
|
-
) &&
|
|
363
|
+
) && p.add(y));
|
|
331
364
|
}
|
|
332
365
|
});
|
|
333
366
|
break;
|
|
334
367
|
}
|
|
335
|
-
case
|
|
336
|
-
if (
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
let
|
|
340
|
-
|
|
341
|
-
(
|
|
342
|
-
dataItem:
|
|
343
|
-
splitBy:
|
|
344
|
-
showOutliers:
|
|
368
|
+
case C.BoxPlotSeries: {
|
|
369
|
+
if (Ge(i)) {
|
|
370
|
+
const y = Je(i);
|
|
371
|
+
i.series.forEach((m) => {
|
|
372
|
+
let g, o;
|
|
373
|
+
m.type === C.BoxPlotSeries ? (g = e.dataItems, o = g?.some(
|
|
374
|
+
(f) => et({
|
|
375
|
+
dataItem: f,
|
|
376
|
+
splitBy: m.query?.where,
|
|
377
|
+
showOutliers: y
|
|
345
378
|
})
|
|
346
|
-
)) :
|
|
347
|
-
(
|
|
348
|
-
)),
|
|
379
|
+
)) : m.type === C.LineSeries && (g = e.meanLines, o = g?.some(
|
|
380
|
+
(f) => ei(f, m.query?.where)
|
|
381
|
+
)), o && p.add(m);
|
|
349
382
|
});
|
|
350
383
|
}
|
|
351
384
|
break;
|
|
352
385
|
}
|
|
353
386
|
}
|
|
354
|
-
const
|
|
355
|
-
n =
|
|
387
|
+
const u = Array.from(p.values());
|
|
388
|
+
n = u.length > 0 && u.length < r, n && (s.series = u);
|
|
356
389
|
}
|
|
357
|
-
return { seriesFilteredOut: n, filteredConfig:
|
|
390
|
+
return { seriesFilteredOut: n, filteredConfig: s };
|
|
358
391
|
}
|
|
359
|
-
const
|
|
392
|
+
const Ui = (t) => t.hideEmptyRowsAndColumns, ji = (t, e) => {
|
|
360
393
|
t.hideEmptyRowsAndColumns = e;
|
|
361
|
-
},
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
},
|
|
368
|
-
const { yField: e, config:
|
|
369
|
-
if (typeof e == "string" &&
|
|
370
|
-
|
|
371
|
-
|
|
394
|
+
}, Ki = (t, e) => {
|
|
395
|
+
const i = t.series[0];
|
|
396
|
+
i.heatRulesType = e;
|
|
397
|
+
}, Zi = (t) => t.series[0].heatRulesType, _i = (t, e) => {
|
|
398
|
+
const i = t.series[0];
|
|
399
|
+
i.gradientRules = e;
|
|
400
|
+
}, Qi = (t) => t.series[0].gradientRules, zi = (t) => {
|
|
401
|
+
const { yField: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s } = a, n = ae(1, i), l = ti(i), c = se(i), d = i.series[0];
|
|
402
|
+
if (typeof e == "string" && l !== e && d) {
|
|
403
|
+
if (d.y = e, Kt(i), l === n || c) {
|
|
404
|
+
const p = P(s, e);
|
|
405
|
+
E(i, 1, p);
|
|
406
|
+
}
|
|
407
|
+
Pe({ commonStrings: r, config: i, layerInfo: a });
|
|
372
408
|
}
|
|
373
|
-
},
|
|
374
|
-
const { binning: e, config:
|
|
375
|
-
if (
|
|
376
|
-
const
|
|
377
|
-
E(
|
|
409
|
+
}, ti = (t) => t.series[0].y ?? "", Gi = (t) => {
|
|
410
|
+
const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
|
|
411
|
+
if (r.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
412
|
+
const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
413
|
+
E(i, 0, s);
|
|
378
414
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
415
|
+
J({ axisIndex: 0, commonStrings: a, config: i });
|
|
416
|
+
}, ii = (t) => t.series[0].xTemporalBinning, Ji = (t) => {
|
|
417
|
+
const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
|
|
418
|
+
if (r.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
419
|
+
const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
420
|
+
E(i, 1, s);
|
|
384
421
|
}
|
|
385
|
-
|
|
422
|
+
J({ axisIndex: 1, commonStrings: a, config: i });
|
|
423
|
+
}, si = (t) => t.series[0].yTemporalBinning, ai = (t, e) => {
|
|
386
424
|
e.orderOptions ??= {};
|
|
387
|
-
const
|
|
425
|
+
const i = e.axes?.[0]?.valueFormat?.type === "category" ? O.Category : O.YValue, a = me(e)[0], r = e.axes?.[1]?.valueFormat?.type === "category" ? O.Category : O.YValue, s = me(e)[1], n = {
|
|
388
426
|
...e.orderOptions.data ?? {},
|
|
389
|
-
orderType:
|
|
427
|
+
orderType: O.MultiAxes
|
|
390
428
|
};
|
|
391
|
-
|
|
392
|
-
},
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
},
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
},
|
|
399
|
-
const
|
|
400
|
-
|
|
401
|
-
},
|
|
402
|
-
const { field: e, config:
|
|
403
|
-
|
|
429
|
+
a === oe.customSort && i === O.Category && (n.orderByX = [...t]), s === oe.customSort && r === O.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
430
|
+
}, es = (t, e) => {
|
|
431
|
+
const i = e.series[0];
|
|
432
|
+
i.gridLine && (i.gridLine.width = t);
|
|
433
|
+
}, ts = (t) => t.series[0].gridLine?.width, is = (t, e) => {
|
|
434
|
+
const i = e.series[0], a = t?.length === 4 && t.every((r) => typeof r == "number");
|
|
435
|
+
i.gridLine && a && (i.gridLine.color = t);
|
|
436
|
+
}, ss = (t) => t.series[0].gridLine?.color, as = (t, e) => {
|
|
437
|
+
const i = e.legend;
|
|
438
|
+
i && (i.position = t);
|
|
439
|
+
}, rs = (t) => t.legend?.position ?? ht.Bottom, ns = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ls = (t) => {
|
|
440
|
+
const { field: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0].query?.outStatistics?.[0], n = le(i, a, r);
|
|
441
|
+
s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) : i.series[0].query = {
|
|
404
442
|
outStatistics: [
|
|
405
443
|
{
|
|
406
444
|
onStatisticField: e,
|
|
407
|
-
outStatisticFieldName: `${
|
|
408
|
-
statisticType:
|
|
445
|
+
outStatisticFieldName: `${V.Count}_${e}`,
|
|
446
|
+
statisticType: V.Count
|
|
409
447
|
}
|
|
410
448
|
]
|
|
411
|
-
}, n &&
|
|
412
|
-
},
|
|
413
|
-
const { aggregationType: e, config:
|
|
414
|
-
|
|
415
|
-
},
|
|
449
|
+
}, n && i.title && (i.title.content.text = Z(i, a, r));
|
|
450
|
+
}, os = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? V.Count, us = (t) => {
|
|
451
|
+
const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0]?.query?.outStatistics?.[0], n = le(i, a, r);
|
|
452
|
+
s && e !== V.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === V.Count || e === V.Sum) && ri($.Zero, i), n && i.title && (i.title.content.text = Z(i, a, r));
|
|
453
|
+
}, cs = (t) => t.nullPolicy, ri = (t, e) => {
|
|
416
454
|
e.nullPolicy = t;
|
|
417
|
-
},
|
|
455
|
+
}, ds = (t) => t.series[0].emptyCells, ys = (t, e) => {
|
|
418
456
|
e.series[0].emptyCells = t;
|
|
419
|
-
},
|
|
457
|
+
}, ms = (t) => t.series[0].emptyCells?.text, ps = (t, e) => {
|
|
420
458
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
421
|
-
},
|
|
459
|
+
}, gs = (t) => t.includeLeapDay, fs = (t, e) => {
|
|
422
460
|
e.includeLeapDay = t;
|
|
423
|
-
},
|
|
461
|
+
}, Ss = (t) => t.series[0].emptyCells?.symbol, Fs = (t, e) => {
|
|
424
462
|
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
|
|
425
463
|
};
|
|
426
|
-
function
|
|
464
|
+
function hs(t) {
|
|
427
465
|
return t.viewType;
|
|
428
466
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
467
|
+
function xs(t, e) {
|
|
468
|
+
ft(e) || (e.viewType = t);
|
|
431
469
|
}
|
|
432
|
-
function
|
|
433
|
-
return t.series[0].classBreaksRules?.breaksCount ??
|
|
470
|
+
function Ts(t) {
|
|
471
|
+
return t.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
|
|
434
472
|
}
|
|
435
|
-
function
|
|
436
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ??
|
|
437
|
-
breaksCount: t ??
|
|
473
|
+
function Bs(t, e) {
|
|
474
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
475
|
+
breaksCount: t ?? H.classBreaks.breaksCount
|
|
438
476
|
};
|
|
439
477
|
}
|
|
440
|
-
function
|
|
478
|
+
function Cs(t) {
|
|
441
479
|
return t.series[0].classBreaksRules?.classificationMethod;
|
|
442
480
|
}
|
|
443
|
-
function
|
|
481
|
+
function bs(t, e) {
|
|
444
482
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
|
|
445
483
|
classificationMethod: t
|
|
446
|
-
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ??
|
|
484
|
+
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
|
|
447
485
|
}
|
|
448
|
-
function
|
|
486
|
+
function As(t, e) {
|
|
449
487
|
e.firstDayOfWeek = t;
|
|
450
488
|
}
|
|
451
|
-
function
|
|
489
|
+
function vs(t) {
|
|
452
490
|
return t.firstDayOfWeek;
|
|
453
491
|
}
|
|
454
|
-
function
|
|
492
|
+
function Is(t) {
|
|
455
493
|
return t.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
456
494
|
}
|
|
457
|
-
function
|
|
495
|
+
function Vs(t, e) {
|
|
458
496
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
459
497
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
460
498
|
name: t
|
|
@@ -465,10 +503,10 @@ function ti(t, e) {
|
|
|
465
503
|
}
|
|
466
504
|
};
|
|
467
505
|
}
|
|
468
|
-
function
|
|
506
|
+
function Ls(t) {
|
|
469
507
|
return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
470
508
|
}
|
|
471
|
-
function
|
|
509
|
+
function Ns(t, e) {
|
|
472
510
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
473
511
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
474
512
|
flipped: t
|
|
@@ -478,596 +516,693 @@ function ii(t, e) {
|
|
|
478
516
|
}
|
|
479
517
|
};
|
|
480
518
|
}
|
|
481
|
-
|
|
482
|
-
|
|
519
|
+
const ni = [
|
|
520
|
+
R.DayOfMonth,
|
|
521
|
+
R.MonthOfYear
|
|
522
|
+
], Be = (t) => {
|
|
523
|
+
let e;
|
|
524
|
+
return Q(t) ? e = de() : (W(t) || z(t)) && (e = G()), e;
|
|
525
|
+
}, Ce = (t) => W(t) || z(t), be = (t) => {
|
|
526
|
+
const { axisIndex: e, commonStrings: i, config: a, valueFormat: r } = t, s = a.axes?.[e]?.valueFormat;
|
|
527
|
+
r !== void 0 && s?.type !== r.type && Ve({ config: a, commonStrings: i, valueFormat: r, axisIndex: e });
|
|
528
|
+
}, li = (t, e) => {
|
|
529
|
+
let i;
|
|
530
|
+
return e === 0 ? i = t.series[0]?.xTemporalBinning : e === 1 && (i = t.series[0]?.yTemporalBinning), i;
|
|
531
|
+
}, Ae = (t, e) => t.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", ve = (t, e) => {
|
|
532
|
+
let i = ni[t];
|
|
533
|
+
return t === 0 && e?.unit === R.DayOfWeek ? i = R.HourOfDay : t === 1 && e?.unit === R.HourOfDay && (i = R.DayOfWeek), {
|
|
534
|
+
type: C.CalendarDateParts,
|
|
535
|
+
unit: i
|
|
536
|
+
};
|
|
537
|
+
}, oi = (t) => {
|
|
538
|
+
let e = {};
|
|
539
|
+
switch (t.unit) {
|
|
540
|
+
case R.DayOfMonth:
|
|
541
|
+
e = { day: "2-digit" };
|
|
542
|
+
break;
|
|
543
|
+
case R.DayOfWeek:
|
|
544
|
+
e = { weekday: "short" };
|
|
545
|
+
break;
|
|
546
|
+
case R.HourOfDay:
|
|
547
|
+
e = { hour: "numeric", hour12: !1 };
|
|
548
|
+
break;
|
|
549
|
+
case R.MonthOfYear:
|
|
550
|
+
e = { month: "short" };
|
|
551
|
+
break;
|
|
552
|
+
default:
|
|
553
|
+
e = G().intlOptions;
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
return {
|
|
557
|
+
type: C.DateAxisFormat,
|
|
558
|
+
intlOptions: e
|
|
559
|
+
};
|
|
560
|
+
}, Ie = (t) => {
|
|
561
|
+
const { axisIndex: e, binning: i, commonStrings: a, config: r, fieldName: s, layerInfo: n } = t, l = r.series[0], c = ae(e, r), d = P(n.layerFieldsInfo, s);
|
|
562
|
+
e === 0 ? l.xTemporalBinning = i : e === 1 && (l.yTemporalBinning = i), i !== void 0 && (c === "" || c === d || c === Ae(a, i.unit)) && E(r, e, Ae(a, i.unit));
|
|
563
|
+
}, J = (t) => {
|
|
564
|
+
const { axisIndex: e, commonStrings: i, config: a } = t, r = li(a, e), s = r ? oi(r) : void 0;
|
|
565
|
+
Ve({ config: a, commonStrings: i, valueFormat: s, axisIndex: e });
|
|
566
|
+
}, Pe = (t) => {
|
|
567
|
+
const { commonStrings: e, config: i, layerInfo: a } = t, r = i.series[0]?.x ?? "", s = i.series[0]?.y ?? "", n = Fe(a.layerFieldsInfo, r), l = Fe(a.layerFieldsInfo, s), c = Be(n), d = Be(l), p = Ce(n) && Ce(l), u = Q(n) && Q(l);
|
|
568
|
+
if (be({ axisIndex: 0, commonStrings: e, config: i, valueFormat: c }), be({ axisIndex: 1, commonStrings: e, config: i, valueFormat: d }), p) {
|
|
569
|
+
const y = ii(i) === void 0, m = si(i) === void 0;
|
|
570
|
+
y && (Ie({
|
|
571
|
+
axisIndex: 0,
|
|
572
|
+
binning: ve(0, i.series[0].yTemporalBinning),
|
|
573
|
+
commonStrings: e,
|
|
574
|
+
config: i,
|
|
575
|
+
fieldName: r,
|
|
576
|
+
layerInfo: a
|
|
577
|
+
}), J({
|
|
578
|
+
axisIndex: 0,
|
|
579
|
+
commonStrings: e,
|
|
580
|
+
config: i
|
|
581
|
+
})), m && (Ie({
|
|
582
|
+
axisIndex: 1,
|
|
583
|
+
binning: ve(1, i.series[0].xTemporalBinning),
|
|
584
|
+
commonStrings: e,
|
|
585
|
+
config: i,
|
|
586
|
+
fieldName: s,
|
|
587
|
+
layerInfo: a
|
|
588
|
+
}), J({
|
|
589
|
+
axisIndex: 1,
|
|
590
|
+
commonStrings: e,
|
|
591
|
+
config: i
|
|
592
|
+
}));
|
|
593
|
+
}
|
|
594
|
+
u && (i.series[0].xTemporalBinning = void 0, i.series[0].yTemporalBinning = void 0);
|
|
595
|
+
};
|
|
596
|
+
function U(t) {
|
|
597
|
+
const { seriesIndex: e, xAxisField: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, l = K(s?.layer).idField;
|
|
483
598
|
let c;
|
|
484
|
-
const
|
|
485
|
-
let
|
|
486
|
-
if (
|
|
487
|
-
const
|
|
488
|
-
|
|
599
|
+
const d = r.series[e ?? 0];
|
|
600
|
+
let p = !1, u = !1, y = !1;
|
|
601
|
+
if (d === void 0) {
|
|
602
|
+
const o = r.series;
|
|
603
|
+
p = o.slice(0, e).every((f) => A(f)), u = o.slice(0, e).every((f) => v(f)), y = o.slice(0, e).every((f) => Te(f));
|
|
489
604
|
} else
|
|
490
|
-
|
|
491
|
-
|
|
605
|
+
p = A(d), u = v(d), y = Te(d);
|
|
606
|
+
p ? c = At({
|
|
492
607
|
commonStrings: n,
|
|
493
608
|
seriesIndex: e,
|
|
494
|
-
objectIDField:
|
|
495
|
-
}) :
|
|
609
|
+
objectIDField: l
|
|
610
|
+
}) : u ? c = vt({
|
|
496
611
|
commonStrings: n,
|
|
497
612
|
seriesIndex: e,
|
|
498
|
-
objectIDField:
|
|
499
|
-
}) :
|
|
613
|
+
objectIDField: l
|
|
614
|
+
}) : y ? c = It(n, l) : c = Vt({
|
|
500
615
|
seriesIndex: e,
|
|
501
|
-
objectIDField:
|
|
616
|
+
objectIDField: l,
|
|
502
617
|
commonStrings: n
|
|
503
618
|
});
|
|
504
|
-
const
|
|
619
|
+
const m = r.series[0]?.dataLabels, g = {
|
|
505
620
|
...c,
|
|
506
|
-
x:
|
|
621
|
+
x: i,
|
|
507
622
|
y: "",
|
|
508
623
|
dataLabels: {
|
|
509
624
|
...c.dataLabels,
|
|
510
|
-
type: c.dataLabels?.type ??
|
|
511
|
-
content: { ...c.dataLabels?.content, ...
|
|
512
|
-
visible:
|
|
625
|
+
type: c.dataLabels?.type ?? C.Text,
|
|
626
|
+
content: { ...c.dataLabels?.content, ...m?.content, type: Bt.TS },
|
|
627
|
+
visible: m?.visible ?? !1
|
|
513
628
|
}
|
|
514
629
|
};
|
|
515
|
-
if (
|
|
516
|
-
groupByFieldsForStatistics: [
|
|
517
|
-
},
|
|
518
|
-
const
|
|
519
|
-
|
|
630
|
+
if (g.query = {
|
|
631
|
+
groupByFieldsForStatistics: [i]
|
|
632
|
+
}, a !== V.NoAggregation && l !== void 0) {
|
|
633
|
+
const o = `${a}_${l}_0`.toUpperCase();
|
|
634
|
+
g.y = o, g.query.outStatistics = [
|
|
520
635
|
{
|
|
521
|
-
statisticType:
|
|
522
|
-
onStatisticField:
|
|
523
|
-
outStatisticFieldName:
|
|
636
|
+
statisticType: a,
|
|
637
|
+
onStatisticField: l,
|
|
638
|
+
outStatisticFieldName: o
|
|
524
639
|
}
|
|
525
640
|
];
|
|
526
641
|
}
|
|
527
|
-
if (
|
|
528
|
-
let
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
unit: p
|
|
534
|
-
};
|
|
535
|
-
}
|
|
642
|
+
if (D(r.series[0]) && D(g)) {
|
|
643
|
+
let o = Mt(r);
|
|
644
|
+
o === ce.Quarter && (o = ce.Month), g.temporalBinning = {
|
|
645
|
+
...r.series[0]?.temporalBinning,
|
|
646
|
+
unit: o
|
|
647
|
+
};
|
|
536
648
|
}
|
|
537
|
-
return
|
|
649
|
+
return ee(g);
|
|
538
650
|
}
|
|
539
|
-
function
|
|
540
|
-
const { layerFieldsInfo:
|
|
541
|
-
let
|
|
542
|
-
if (
|
|
651
|
+
function Z(t, e, i) {
|
|
652
|
+
const { layerFieldsInfo: a } = e, { idField: r, isTraditionalTypeOID: s } = K(e.layer), n = X(t), l = ne(t), c = Me(t), d = re(t), p = s && (l.length === 0 || l.includes(r)), u = bt(c, i), y = p ? "" : l.map((F) => P(a ?? [], F)).join(", "), m = P(a ?? [], n), g = P(a ?? [], d), o = t.series.some((F) => q(F)), f = o ? "category" : "xAxisField", T = m;
|
|
653
|
+
let b = "";
|
|
654
|
+
if (De({
|
|
543
655
|
fieldName: n,
|
|
544
|
-
numericFields:
|
|
545
|
-
fieldList:
|
|
656
|
+
numericFields: l,
|
|
657
|
+
fieldList: a
|
|
546
658
|
}))
|
|
547
|
-
|
|
548
|
-
aggregationType:
|
|
549
|
-
aggregationFields:
|
|
659
|
+
b = M(i.titleLabels.aggrTypeOfAggrFields, {
|
|
660
|
+
aggregationType: u,
|
|
661
|
+
aggregationFields: y
|
|
550
662
|
});
|
|
551
|
-
else if (c ===
|
|
552
|
-
const
|
|
553
|
-
if (
|
|
554
|
-
const
|
|
555
|
-
|
|
556
|
-
aggregationType:
|
|
557
|
-
[
|
|
663
|
+
else if (c === V.NoAggregation) {
|
|
664
|
+
const F = p ? r : y;
|
|
665
|
+
if (d === "") {
|
|
666
|
+
const S = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
667
|
+
b = M(i.titleLabels[S], {
|
|
668
|
+
aggregationType: F,
|
|
669
|
+
[f]: T
|
|
558
670
|
});
|
|
559
671
|
} else {
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
aggregationType:
|
|
563
|
-
[
|
|
564
|
-
splitByField:
|
|
672
|
+
const S = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
673
|
+
b = M(i.titleLabels[S], {
|
|
674
|
+
aggregationType: F,
|
|
675
|
+
[f]: T,
|
|
676
|
+
splitByField: g
|
|
565
677
|
});
|
|
566
678
|
}
|
|
567
|
-
} else if (c ===
|
|
568
|
-
if (
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
aggregationType:
|
|
572
|
-
[
|
|
679
|
+
} else if (c === V.Count)
|
|
680
|
+
if (d === "") {
|
|
681
|
+
const F = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
682
|
+
b = M(i.titleLabels[F], {
|
|
683
|
+
aggregationType: u,
|
|
684
|
+
[f]: T
|
|
573
685
|
});
|
|
574
686
|
} else {
|
|
575
|
-
const
|
|
576
|
-
|
|
577
|
-
aggregationType:
|
|
578
|
-
[
|
|
579
|
-
splitByField:
|
|
687
|
+
const F = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
688
|
+
b = M(i.titleLabels[F], {
|
|
689
|
+
aggregationType: u,
|
|
690
|
+
[f]: T,
|
|
691
|
+
splitByField: g
|
|
580
692
|
});
|
|
581
693
|
}
|
|
582
|
-
else if (
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
aggregationType:
|
|
586
|
-
aggregationField:
|
|
587
|
-
[
|
|
588
|
-
splitByField:
|
|
694
|
+
else if (d !== "") {
|
|
695
|
+
const F = o ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
696
|
+
b = M(i.titleLabels[F], {
|
|
697
|
+
aggregationType: u,
|
|
698
|
+
aggregationField: y,
|
|
699
|
+
[f]: T,
|
|
700
|
+
splitByField: g
|
|
589
701
|
});
|
|
590
|
-
} else if (
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
aggregationType:
|
|
594
|
-
aggregationFields:
|
|
595
|
-
[
|
|
702
|
+
} else if (l.length > 0) {
|
|
703
|
+
const F = o ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
704
|
+
b = M(i.titleLabels[F], {
|
|
705
|
+
aggregationType: u,
|
|
706
|
+
aggregationFields: y,
|
|
707
|
+
[f]: T
|
|
596
708
|
});
|
|
597
709
|
}
|
|
598
|
-
return
|
|
710
|
+
return b;
|
|
599
711
|
}
|
|
600
|
-
const
|
|
712
|
+
const we = (t) => ge({
|
|
601
713
|
where: t.query?.where,
|
|
602
714
|
normalize: !1,
|
|
603
715
|
escape: !1
|
|
604
|
-
}) ?? "",
|
|
716
|
+
}) ?? "", Me = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? V.NoAggregation, re = Ue(
|
|
605
717
|
(t) => {
|
|
606
718
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
607
|
-
return
|
|
719
|
+
return St(t?.series?.[0]?.query?.where) ? "" : e;
|
|
608
720
|
},
|
|
609
721
|
(t) => t?.series?.[0]?.query?.where
|
|
610
|
-
),
|
|
722
|
+
), ne = (t) => {
|
|
611
723
|
let e = [];
|
|
612
|
-
if (
|
|
613
|
-
e = t?.series.map((
|
|
614
|
-
const
|
|
615
|
-
return
|
|
724
|
+
if (re(t) === "")
|
|
725
|
+
e = t?.series.map((i) => {
|
|
726
|
+
const a = i.query?.outStatistics?.map((r) => r.onStatisticField) ?? [];
|
|
727
|
+
return a?.length > 0 ? a : i.y;
|
|
616
728
|
}).flat() ?? [];
|
|
617
729
|
else {
|
|
618
|
-
const
|
|
619
|
-
e =
|
|
730
|
+
const i = t?.series?.[0], a = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
|
|
731
|
+
e = a !== void 0 ? [a] : [];
|
|
620
732
|
}
|
|
621
|
-
return e.filter((
|
|
733
|
+
return e.filter((i) => i !== "");
|
|
622
734
|
};
|
|
623
|
-
function
|
|
624
|
-
const {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
735
|
+
function Ee(t) {
|
|
736
|
+
const { splitByField: e, numericFields: i, layer: a, seriesIndex: r } = t, s = K(a).idField ?? "";
|
|
737
|
+
return e === "" ? i[r] ?? s : i[0] ?? s;
|
|
738
|
+
}
|
|
739
|
+
function ui(t) {
|
|
740
|
+
const { numericFields: e, aggregationType: i, config: a, layerInfo: r } = t;
|
|
741
|
+
let s = !1;
|
|
742
|
+
i === V.Count ? s = !0 : i === V.NoAggregation && (s = e.every((c) => {
|
|
743
|
+
const d = r.layerFieldsInfo.find((p) => p.name === c);
|
|
744
|
+
return d !== void 0 ? he(d) : !1;
|
|
745
|
+
})), fe(a, 1, s);
|
|
746
|
+
const n = a.series.some((c) => A(c)), l = a.series.some((c) => v(c));
|
|
747
|
+
if (n || l) {
|
|
748
|
+
const c = X(a), d = r.layerFieldsInfo.find((u) => u.name === c), p = d !== void 0 && he(d);
|
|
749
|
+
fe(a, 0, p);
|
|
634
750
|
}
|
|
635
751
|
}
|
|
636
|
-
const
|
|
752
|
+
const me = (t) => {
|
|
637
753
|
let e;
|
|
638
|
-
if (
|
|
639
|
-
const
|
|
640
|
-
e = [
|
|
754
|
+
if (Y(t)) {
|
|
755
|
+
const i = t.orderOptions?.data?.orderByX ?? [""], a = t.orderOptions?.data?.orderByY ?? [""], r = t.axes?.[0]?.valueFormat?.type === "category" ? O.Category : O.YValue, s = t.axes?.[1]?.valueFormat?.type === "category" ? O.Category : O.YValue;
|
|
756
|
+
e = [xe(i, r), xe(a, s)];
|
|
641
757
|
} else {
|
|
642
|
-
const
|
|
643
|
-
e = [
|
|
758
|
+
const i = t.orderOptions?.data?.orderType ?? O.Category, a = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : xt.Ascending;
|
|
759
|
+
e = [Ft(a, i)];
|
|
644
760
|
}
|
|
645
761
|
return e;
|
|
646
762
|
};
|
|
647
|
-
function
|
|
648
|
-
const { xAxisField: e, numericFields:
|
|
763
|
+
function ci(t) {
|
|
764
|
+
const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s;
|
|
649
765
|
let c = !1;
|
|
650
|
-
const
|
|
651
|
-
config:
|
|
766
|
+
const d = U({
|
|
767
|
+
config: r,
|
|
652
768
|
xAxisField: e,
|
|
653
|
-
aggregationType:
|
|
654
|
-
layerInfo:
|
|
769
|
+
aggregationType: a,
|
|
770
|
+
layerInfo: s,
|
|
655
771
|
seriesIndex: 0,
|
|
656
772
|
commonStrings: n
|
|
657
|
-
}),
|
|
658
|
-
config:
|
|
773
|
+
}), p = ie({
|
|
774
|
+
config: r,
|
|
659
775
|
xAxisField: e,
|
|
660
|
-
numericFields:
|
|
661
|
-
aggregationType:
|
|
662
|
-
layer:
|
|
663
|
-
fieldList:
|
|
664
|
-
}).name,
|
|
665
|
-
...
|
|
776
|
+
numericFields: i,
|
|
777
|
+
aggregationType: a,
|
|
778
|
+
layer: s.layer,
|
|
779
|
+
fieldList: l
|
|
780
|
+
}).name, u = {
|
|
781
|
+
...d,
|
|
666
782
|
id: `series_${Date.now()}`,
|
|
667
783
|
name: n.axisLabels.values,
|
|
668
|
-
x:
|
|
669
|
-
y:
|
|
670
|
-
},
|
|
671
|
-
for (const
|
|
672
|
-
|
|
673
|
-
onStatisticField:
|
|
674
|
-
outStatisticFieldName: `${
|
|
675
|
-
statisticType:
|
|
784
|
+
x: ue,
|
|
785
|
+
y: p
|
|
786
|
+
}, y = [];
|
|
787
|
+
for (const g of i)
|
|
788
|
+
y.push({
|
|
789
|
+
onStatisticField: g,
|
|
790
|
+
outStatisticFieldName: `${g}_0`.toUpperCase(),
|
|
791
|
+
statisticType: a
|
|
676
792
|
});
|
|
677
|
-
|
|
678
|
-
const
|
|
679
|
-
return
|
|
793
|
+
u.query = { outStatistics: y };
|
|
794
|
+
const m = r.series[0];
|
|
795
|
+
return m !== void 0 && (u.id = m.id, (A(u) && A(m) || v(u) && v(m)) && j(u, m), r.colorMatch || (q(m) && q(u) ? u.fillSymbol = m.fillSymbol : (A(u) && A(m) || v(u) && v(m)) && (u.lineSymbol = m.lineSymbol, u.markerSymbol = m.markerSymbol), c = !0), u.id = m.id, m.name !== d.name && (u.name = m.name)), r.series.length === 1 && ((A(u) || v(u)) && j(u, r.series[0]), r.colorMatch || (q(u) ? u.fillSymbol = r.series[0].fillSymbol : (A(u) || v(u)) && (u.lineSymbol = r.series[0].lineSymbol, u.markerSymbol = r.series[0].markerSymbol), c = !0)), r.colorMatch = !c, [u];
|
|
680
796
|
}
|
|
681
|
-
function
|
|
682
|
-
const { xAxisField: e, numericFields:
|
|
683
|
-
let
|
|
684
|
-
for (let
|
|
685
|
-
const
|
|
686
|
-
config:
|
|
797
|
+
function We(t) {
|
|
798
|
+
const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, c = K(s.layer).idField, d = [];
|
|
799
|
+
let p = !1;
|
|
800
|
+
for (let o = 0; o < i.length; o += 1) {
|
|
801
|
+
const f = U({
|
|
802
|
+
config: r,
|
|
687
803
|
xAxisField: e,
|
|
688
|
-
aggregationType:
|
|
689
|
-
layerInfo:
|
|
690
|
-
seriesIndex:
|
|
804
|
+
aggregationType: a,
|
|
805
|
+
layerInfo: s,
|
|
806
|
+
seriesIndex: o,
|
|
691
807
|
commonStrings: n
|
|
692
|
-
}),
|
|
693
|
-
config:
|
|
808
|
+
}), T = r.series[o]?.y, b = typeof T == "string" && T.trim() !== "" && !l.find((h) => h.name === T) ? T : ie({
|
|
809
|
+
config: r,
|
|
694
810
|
xAxisField: e,
|
|
695
|
-
numericFields:
|
|
696
|
-
aggregationType:
|
|
697
|
-
layer:
|
|
698
|
-
numericFieldIndex:
|
|
699
|
-
fieldList:
|
|
700
|
-
}).name,
|
|
701
|
-
let
|
|
702
|
-
...
|
|
811
|
+
numericFields: i,
|
|
812
|
+
aggregationType: a,
|
|
813
|
+
layer: s.layer,
|
|
814
|
+
numericFieldIndex: o,
|
|
815
|
+
fieldList: l
|
|
816
|
+
}).name, F = i[o];
|
|
817
|
+
let S = {
|
|
818
|
+
...f,
|
|
703
819
|
query: {
|
|
704
|
-
...
|
|
820
|
+
...f.query
|
|
705
821
|
}
|
|
706
822
|
};
|
|
707
|
-
|
|
708
|
-
...
|
|
709
|
-
id:
|
|
710
|
-
name:
|
|
823
|
+
i && F !== c && (S = {
|
|
824
|
+
...S,
|
|
825
|
+
id: F,
|
|
826
|
+
name: P(l, F)
|
|
711
827
|
});
|
|
712
|
-
let
|
|
713
|
-
|
|
828
|
+
let I = F;
|
|
829
|
+
S.query !== void 0 && (a !== V.NoAggregation ? (I = b, S.query.outStatistics = [
|
|
714
830
|
{
|
|
715
|
-
...
|
|
716
|
-
onStatisticField:
|
|
717
|
-
outStatisticFieldName:
|
|
718
|
-
statisticType:
|
|
831
|
+
...f.query?.outStatistics?.[0] ?? {},
|
|
832
|
+
onStatisticField: F,
|
|
833
|
+
outStatisticFieldName: b,
|
|
834
|
+
statisticType: a
|
|
719
835
|
}
|
|
720
|
-
]) : delete
|
|
721
|
-
const
|
|
722
|
-
(
|
|
836
|
+
]) : delete S.query.outStatistics), S.y = I;
|
|
837
|
+
const B = r.series.find(
|
|
838
|
+
(h) => h.query?.outStatistics?.[0]?.onStatisticField === F && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === F || h.x === F)
|
|
723
839
|
);
|
|
724
|
-
if (
|
|
725
|
-
(
|
|
726
|
-
const
|
|
727
|
-
config:
|
|
840
|
+
if (B !== void 0 && typeof B.y == "string" && B.y.trim() !== "") {
|
|
841
|
+
(A(S) && A(B) || v(S) && v(B)) && j(S, B), r.colorMatch || (q(S) && q(B) ? S.fillSymbol = B.fillSymbol : (A(S) && A(B) || v(S) && v(B)) && (S.lineSymbol = B.lineSymbol, S.markerSymbol = B.markerSymbol), p = !0);
|
|
842
|
+
const h = U({
|
|
843
|
+
config: r,
|
|
728
844
|
xAxisField: e,
|
|
729
|
-
aggregationType:
|
|
730
|
-
layerInfo:
|
|
731
|
-
seriesIndex:
|
|
845
|
+
aggregationType: a,
|
|
846
|
+
layerInfo: s,
|
|
847
|
+
seriesIndex: o,
|
|
732
848
|
commonStrings: n
|
|
733
849
|
});
|
|
734
|
-
|
|
850
|
+
S.id = B.id, B.id !== h.id && B.name !== h.name && (S.id = B.id, S.name = B.name), S.assignToSecondValueAxis = B.assignToSecondValueAxis, S.type === C.HeatSeries && B.type === C.HeatSeries && (S.y = B.y, S.heatRulesType = B.heatRulesType);
|
|
735
851
|
}
|
|
736
|
-
|
|
852
|
+
d.push(S);
|
|
737
853
|
}
|
|
738
|
-
const
|
|
739
|
-
(
|
|
740
|
-
),
|
|
741
|
-
(
|
|
854
|
+
const u = d.filter((o) => q(o)), y = d.filter(
|
|
855
|
+
(o) => A(o) || v(o)
|
|
856
|
+
), m = r.series.filter((o) => q(o)), g = r.series.filter(
|
|
857
|
+
(o) => A(o) || v(o)
|
|
742
858
|
);
|
|
743
|
-
return
|
|
859
|
+
return m.length === 1 && u.length === 1 && !r.colorMatch && (q(m[0]) && q(u[0]) && (u[0].fillSymbol = m[0].fillSymbol), p = !0), g.length === 1 && y.length === 1 && ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && j(y[0], g[0]), r.colorMatch || ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && (y[0].lineSymbol = g[0].lineSymbol, y[0].markerSymbol = g[0].markerSymbol), p = !0)), r.colorMatch = !p, d;
|
|
744
860
|
}
|
|
745
|
-
function
|
|
746
|
-
const { aggregationType: e, config:
|
|
747
|
-
if (
|
|
748
|
-
const
|
|
749
|
-
config:
|
|
750
|
-
xAxisField:
|
|
861
|
+
function Ds(t) {
|
|
862
|
+
const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s, layer: n } = a, l = X(i), c = ne(i), d = re(i), p = le(i, a, r), u = Ye(i, a, r);
|
|
863
|
+
if (i.series.forEach((y, m) => {
|
|
864
|
+
const g = ie({
|
|
865
|
+
config: i,
|
|
866
|
+
xAxisField: l,
|
|
751
867
|
numericFields: c,
|
|
752
868
|
aggregationType: e,
|
|
869
|
+
splitByField: d,
|
|
753
870
|
layer: n,
|
|
754
|
-
seriesIndex:
|
|
755
|
-
numericFieldIndex:
|
|
756
|
-
fieldList:
|
|
871
|
+
seriesIndex: m,
|
|
872
|
+
numericFieldIndex: m,
|
|
873
|
+
fieldList: s
|
|
757
874
|
}).name;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
875
|
+
y.y = g;
|
|
876
|
+
const o = Ee({
|
|
877
|
+
splitByField: d,
|
|
878
|
+
numericFields: c,
|
|
879
|
+
layer: n,
|
|
880
|
+
seriesIndex: m
|
|
881
|
+
}), f = y.query?.outStatistics?.[0]?.onStatisticField ?? o;
|
|
882
|
+
y.query = {
|
|
883
|
+
...y.query,
|
|
884
|
+
outStatistics: e === V.NoAggregation ? void 0 : [
|
|
761
885
|
{
|
|
762
|
-
...
|
|
763
|
-
outStatisticFieldName:
|
|
886
|
+
...y.query?.outStatistics?.[0],
|
|
887
|
+
outStatisticFieldName: g,
|
|
764
888
|
statisticType: e,
|
|
765
|
-
onStatisticField:
|
|
889
|
+
onStatisticField: f
|
|
766
890
|
}
|
|
767
891
|
]
|
|
768
|
-
}
|
|
769
|
-
}),
|
|
770
|
-
const
|
|
771
|
-
config:
|
|
772
|
-
layerInfo:
|
|
773
|
-
commonStrings:
|
|
892
|
+
}, "temporalBinning" in y && y.temporalBinning !== void 0 && (y.temporalBinning.nullPolicy = e === V.NoAggregation ? $.Interpolate : $.Null), e === V.NoAggregation && Yt(i);
|
|
893
|
+
}), p && i.title && (i.title.content.text = Z(i, a, r)), u && i.series[0].type !== C.HeatSeries) {
|
|
894
|
+
const y = pe({
|
|
895
|
+
config: i,
|
|
896
|
+
layerInfo: a,
|
|
897
|
+
commonStrings: r,
|
|
774
898
|
numericFields: c,
|
|
775
899
|
aggregationType: e
|
|
776
900
|
});
|
|
777
|
-
E(
|
|
901
|
+
E(i, 1, y);
|
|
778
902
|
}
|
|
779
903
|
}
|
|
780
|
-
function
|
|
904
|
+
function di(t) {
|
|
781
905
|
const {
|
|
782
906
|
splitByField: e,
|
|
783
|
-
xAxisField:
|
|
784
|
-
numericFields:
|
|
785
|
-
aggregationType:
|
|
786
|
-
config:
|
|
907
|
+
xAxisField: i,
|
|
908
|
+
numericFields: a,
|
|
909
|
+
aggregationType: r,
|
|
910
|
+
config: s,
|
|
787
911
|
layerInfo: n,
|
|
788
|
-
commonStrings:
|
|
912
|
+
commonStrings: l,
|
|
789
913
|
splitByFieldInfos: c
|
|
790
|
-
} = t, { layer:
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
914
|
+
} = t, { layer: d, layerFieldsInfo: p } = n, { categoriesArray: u, splitByFieldType: y } = c, m = Ee({
|
|
915
|
+
splitByField: e,
|
|
916
|
+
numericFields: a,
|
|
917
|
+
layer: d,
|
|
918
|
+
seriesIndex: 0
|
|
919
|
+
});
|
|
920
|
+
let g = [], o = !1;
|
|
921
|
+
if (u.length === 0) {
|
|
922
|
+
g = We({
|
|
923
|
+
xAxisField: i,
|
|
924
|
+
numericFields: a,
|
|
925
|
+
aggregationType: r,
|
|
926
|
+
config: s,
|
|
798
927
|
layerInfo: n,
|
|
799
|
-
commonStrings:
|
|
928
|
+
commonStrings: l
|
|
800
929
|
});
|
|
801
|
-
for (const
|
|
802
|
-
|
|
930
|
+
for (const f of g)
|
|
931
|
+
f.query && (f.query.where = `${e}=''`);
|
|
803
932
|
} else
|
|
804
|
-
for (let
|
|
805
|
-
const
|
|
806
|
-
config:
|
|
807
|
-
xAxisField:
|
|
808
|
-
numericFields:
|
|
809
|
-
aggregationType:
|
|
933
|
+
for (let f = 0; f < u.length; f += 1) {
|
|
934
|
+
const T = u[f], b = ie({
|
|
935
|
+
config: s,
|
|
936
|
+
xAxisField: i,
|
|
937
|
+
numericFields: a,
|
|
938
|
+
aggregationType: r,
|
|
810
939
|
layer: n.layer,
|
|
811
|
-
seriesIndex:
|
|
940
|
+
seriesIndex: f,
|
|
812
941
|
splitByField: e,
|
|
813
|
-
fieldList:
|
|
814
|
-
}).name,
|
|
815
|
-
config:
|
|
816
|
-
xAxisField:
|
|
817
|
-
aggregationType:
|
|
942
|
+
fieldList: p
|
|
943
|
+
}).name, F = U({
|
|
944
|
+
config: s,
|
|
945
|
+
xAxisField: i,
|
|
946
|
+
aggregationType: r,
|
|
818
947
|
layerInfo: n,
|
|
819
|
-
seriesIndex:
|
|
820
|
-
commonStrings:
|
|
821
|
-
}),
|
|
948
|
+
seriesIndex: f,
|
|
949
|
+
commonStrings: l
|
|
950
|
+
}), S = Ne({
|
|
822
951
|
queryObject: n.layer,
|
|
823
952
|
fieldName: e,
|
|
824
|
-
fieldValue:
|
|
825
|
-
}),
|
|
826
|
-
...
|
|
827
|
-
id:
|
|
828
|
-
name:
|
|
829
|
-
y:
|
|
953
|
+
fieldValue: T ?? ""
|
|
954
|
+
}), I = `${T}`, h = {
|
|
955
|
+
...F,
|
|
956
|
+
id: I,
|
|
957
|
+
name: S ?? I,
|
|
958
|
+
y: b,
|
|
830
959
|
query: {
|
|
831
|
-
...
|
|
832
|
-
where: `${e}=${
|
|
833
|
-
outStatistics:
|
|
960
|
+
...F.query,
|
|
961
|
+
where: `${e}=${y === Oe.String && T !== null ? `'${T}'` : T}`,
|
|
962
|
+
outStatistics: r !== V.NoAggregation ? [
|
|
834
963
|
{
|
|
835
|
-
...
|
|
836
|
-
onStatisticField:
|
|
837
|
-
outStatisticFieldName:
|
|
838
|
-
statisticType:
|
|
964
|
+
...F.query?.outStatistics?.[0] ?? {},
|
|
965
|
+
onStatisticField: m,
|
|
966
|
+
outStatisticFieldName: b,
|
|
967
|
+
statisticType: r
|
|
839
968
|
}
|
|
840
969
|
] : void 0
|
|
841
970
|
}
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
const I = i.series.find(
|
|
845
|
-
(L) => String(Ce(L)).trim().replace(/'/gu, "") === k
|
|
971
|
+
}, L = s.series.find(
|
|
972
|
+
(N) => String(we(N)).trim().replace(/'/gu, "") === I
|
|
846
973
|
);
|
|
847
|
-
|
|
974
|
+
L !== void 0 && ((A(h) && A(L) || v(h) && v(L)) && j(h, L), s.colorMatch || (q(h) && q(L) ? h.fillSymbol = L.fillSymbol : (A(h) && A(L) || v(h) && v(L)) && (h.lineSymbol = L.lineSymbol, h.markerSymbol = L.markerSymbol), o = !0), h.id = L.id, h.name = L.name, h.assignToSecondValueAxis = L.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = s.series.some((N) => N.query?.fetchNullValues)), g.push(h);
|
|
848
975
|
}
|
|
849
|
-
return
|
|
976
|
+
return s.colorMatch = !o, g;
|
|
850
977
|
}
|
|
851
|
-
const
|
|
978
|
+
const Os = (t) => {
|
|
852
979
|
const {
|
|
853
980
|
xAxisFieldName: e,
|
|
854
|
-
splitByField:
|
|
855
|
-
numericFields:
|
|
856
|
-
aggregationType:
|
|
857
|
-
config:
|
|
981
|
+
splitByField: i,
|
|
982
|
+
numericFields: a,
|
|
983
|
+
aggregationType: r,
|
|
984
|
+
config: s,
|
|
858
985
|
layerInfo: n,
|
|
859
|
-
commonStrings:
|
|
986
|
+
commonStrings: l,
|
|
860
987
|
splitByFieldInfos: c
|
|
861
|
-
} = t, { layerFieldsInfo:
|
|
862
|
-
let
|
|
863
|
-
const
|
|
864
|
-
|
|
865
|
-
let
|
|
866
|
-
if (
|
|
867
|
-
|
|
868
|
-
]),
|
|
869
|
-
|
|
870
|
-
}),
|
|
988
|
+
} = t, { layerFieldsInfo: d } = n ?? {}, p = ee(s), u = Pt(s), y = X(p), m = d.find((x) => x.name === y), g = p.series[0].query?.fetchNullValues, o = "nullCategory" in p.series?.[0] ? p.series[0].nullCategory : void 0, f = p.series[0]?.query === void 0, T = d.find((x) => x.name === e), b = le(p, n, l), F = Ye(p, n, l), S = yi(p, n);
|
|
989
|
+
let I = Le(s);
|
|
990
|
+
const B = p.series.some((x) => q(x)), h = Nt(p.series), L = Dt(p.series), N = {};
|
|
991
|
+
Y(p) && (N.classBreaksRules = p.series[0]?.classBreaksRules, N.xTemporalBinning = p.series[0]?.xTemporalBinning, N.yTemporalBinning = p.series[0]?.yTemporalBinning, N.emptyCells = p.series[0]?.emptyCells, N.nullPolicy = p.nullPolicy);
|
|
992
|
+
let _ = !1;
|
|
993
|
+
if (Q(T) ? I = de() : !z(m) && z(T) ? (I = G(), _ = !0) : !W(m) && W(T) ? (I = G(), _ = !0) : W(m) && !W(T) && (B ? I = de() : I = Lt(), _ = !0), I !== void 0 && Ke(s, l, I), u === 0 && (s.series = [
|
|
994
|
+
U({ config: s, xAxisField: e, aggregationType: r, layerInfo: n, commonStrings: l })
|
|
995
|
+
]), s.series.forEach((x) => {
|
|
996
|
+
x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
|
|
997
|
+
}), i === "" || a.length > 1 ? De({
|
|
871
998
|
fieldName: e,
|
|
872
|
-
numericFields:
|
|
873
|
-
fieldList:
|
|
874
|
-
}) ?
|
|
875
|
-
config:
|
|
999
|
+
numericFields: a,
|
|
1000
|
+
fieldList: d
|
|
1001
|
+
}) ? s.series = ci({
|
|
1002
|
+
config: s,
|
|
876
1003
|
layerInfo: n,
|
|
877
1004
|
xAxisField: e,
|
|
878
|
-
numericFields:
|
|
879
|
-
aggregationType:
|
|
880
|
-
commonStrings:
|
|
881
|
-
}) :
|
|
882
|
-
config:
|
|
1005
|
+
numericFields: a,
|
|
1006
|
+
aggregationType: r,
|
|
1007
|
+
commonStrings: l
|
|
1008
|
+
}) : s.series = We({
|
|
1009
|
+
config: s,
|
|
883
1010
|
layerInfo: n,
|
|
884
1011
|
xAxisField: e,
|
|
885
|
-
numericFields:
|
|
886
|
-
aggregationType:
|
|
887
|
-
commonStrings:
|
|
888
|
-
}) : c && (
|
|
889
|
-
config:
|
|
1012
|
+
numericFields: a,
|
|
1013
|
+
aggregationType: r,
|
|
1014
|
+
commonStrings: l
|
|
1015
|
+
}) : c && (s.series = di({
|
|
1016
|
+
config: s,
|
|
890
1017
|
layerInfo: n,
|
|
891
|
-
splitByField:
|
|
1018
|
+
splitByField: i,
|
|
892
1019
|
xAxisField: e,
|
|
893
|
-
numericFields:
|
|
894
|
-
aggregationType:
|
|
895
|
-
commonStrings:
|
|
1020
|
+
numericFields: a,
|
|
1021
|
+
aggregationType: r,
|
|
1022
|
+
commonStrings: l,
|
|
896
1023
|
splitByFieldInfos: c
|
|
897
|
-
})),
|
|
898
|
-
const
|
|
899
|
-
E(
|
|
1024
|
+
})), S && s.series[0].type !== C.HeatSeries) {
|
|
1025
|
+
const x = P(d, e);
|
|
1026
|
+
E(s, 0, x);
|
|
900
1027
|
}
|
|
901
|
-
if (
|
|
902
|
-
const
|
|
903
|
-
config:
|
|
1028
|
+
if (F && s.series[0].type !== C.HeatSeries) {
|
|
1029
|
+
const x = pe({
|
|
1030
|
+
config: s,
|
|
904
1031
|
layerInfo: n,
|
|
905
|
-
commonStrings:
|
|
906
|
-
numericFields:
|
|
907
|
-
aggregationType:
|
|
1032
|
+
commonStrings: l,
|
|
1033
|
+
numericFields: a,
|
|
1034
|
+
aggregationType: r
|
|
908
1035
|
});
|
|
909
|
-
E(
|
|
1036
|
+
E(s, 1, x);
|
|
910
1037
|
}
|
|
911
|
-
if (
|
|
912
|
-
const
|
|
913
|
-
|
|
1038
|
+
if (b && s.title && (s.title.content.text = Z(s, n, l)), k({ config: s, value: null, axisIndex: 1, isMax: !1 }), k({ config: s, value: null, axisIndex: 1, isMax: !0 }), ui({ numericFields: a, aggregationType: r, config: s, layerInfo: n }), (h || L) && (k({ config: s, value: null, axisIndex: 0, isMax: !1 }), k({ config: s, value: null, axisIndex: 0, isMax: !0 }), _ && r !== V.NoAggregation)) {
|
|
1039
|
+
const x = I?.type === C.DateAxisFormat ? $.Null : $.Interpolate;
|
|
1040
|
+
Wt(x, s);
|
|
914
1041
|
}
|
|
915
|
-
|
|
916
|
-
delete
|
|
917
|
-
}) :
|
|
918
|
-
|
|
919
|
-
}),
|
|
920
|
-
(
|
|
1042
|
+
Y(s) && (s.series[0].classBreaksRules = N.classBreaksRules, s.series[0].xTemporalBinning = N.xTemporalBinning, s.series[0].yTemporalBinning = N.yTemporalBinning, s.series[0].emptyCells = N.emptyCells, s.nullPolicy = N.nullPolicy, Pe({ commonStrings: l, config: s, layerInfo: n })), f ? s.series.forEach((x) => {
|
|
1043
|
+
delete x.query;
|
|
1044
|
+
}) : g && s.series.forEach((x) => {
|
|
1045
|
+
x.query && (x.query.fetchNullValues = g);
|
|
1046
|
+
}), o && s.series.forEach((x) => {
|
|
1047
|
+
(x.type === C.BarSeries || x.type === C.LineSeries || x.type === C.RadarSeries) && (x.nullCategory = o);
|
|
1048
|
+
}), s.series.forEach((x) => {
|
|
1049
|
+
D(x) && x.binTemporalData === void 0 && T?.type === Oe.TimeOnly && (x.binTemporalData = !1);
|
|
1050
|
+
}), s.series.forEach((x) => {
|
|
1051
|
+
const $e = p.series.find((He) => He.id === x.id)?.visible;
|
|
1052
|
+
x.visible = $e;
|
|
921
1053
|
});
|
|
922
|
-
},
|
|
1054
|
+
}, j = (t, e) => {
|
|
923
1055
|
t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
|
|
924
1056
|
...e.markerSymbol,
|
|
925
1057
|
color: t.markerSymbol?.color
|
|
926
1058
|
});
|
|
927
|
-
},
|
|
928
|
-
const { config: e, seriesIndex:
|
|
929
|
-
let
|
|
930
|
-
if (
|
|
931
|
-
|
|
932
|
-
else if (
|
|
933
|
-
const
|
|
934
|
-
|
|
1059
|
+
}, ks = (t) => {
|
|
1060
|
+
const { config: e, seriesIndex: i, layerInfo: a, commonStrings: r } = t, s = e.series?.[i], n = re(e);
|
|
1061
|
+
let l;
|
|
1062
|
+
if (te(e.series) === w.BarAndLineFromFields)
|
|
1063
|
+
l = r.axisLabels.values;
|
|
1064
|
+
else if (Xe(n)) {
|
|
1065
|
+
const d = s.query?.outStatistics?.[0]?.onStatisticField;
|
|
1066
|
+
d !== void 0 && d !== K(a.layer).idField && (l = P(a.layerFieldsInfo, d));
|
|
935
1067
|
} else {
|
|
936
|
-
const
|
|
937
|
-
|
|
938
|
-
queryObject:
|
|
1068
|
+
const d = String(we(s)).trim().replace(/'/gu, "");
|
|
1069
|
+
l = Ne({
|
|
1070
|
+
queryObject: a.layer,
|
|
939
1071
|
fieldName: n,
|
|
940
|
-
fieldValue:
|
|
941
|
-
}) ??
|
|
1072
|
+
fieldValue: d ?? ""
|
|
1073
|
+
}) ?? d;
|
|
942
1074
|
}
|
|
943
|
-
return
|
|
944
|
-
},
|
|
945
|
-
if (
|
|
946
|
-
|
|
1075
|
+
return l ?? s.id;
|
|
1076
|
+
}, qs = (t, e) => {
|
|
1077
|
+
if (Y(e))
|
|
1078
|
+
ai(t, e);
|
|
947
1079
|
else {
|
|
948
1080
|
e.orderOptions ??= {};
|
|
949
|
-
const
|
|
950
|
-
|
|
951
|
-
orderType:
|
|
1081
|
+
const i = e.orderOptions?.data?.orderType;
|
|
1082
|
+
me(e)[0] === oe.customSort && i === O.Category && (e.orderOptions.data = {
|
|
1083
|
+
orderType: O.Category,
|
|
952
1084
|
orderBy: [...t]
|
|
953
1085
|
});
|
|
954
1086
|
}
|
|
955
|
-
},
|
|
956
|
-
const { config: e, layerInfo:
|
|
1087
|
+
}, Rs = async (t) => {
|
|
1088
|
+
const { config: e, layerInfo: i, errorStrings: a } = t, r = X(e), s = Le(e)?.type, n = ne(e), l = te(e.series);
|
|
957
1089
|
let c = [];
|
|
958
|
-
return
|
|
959
|
-
layerInfo:
|
|
1090
|
+
return s === C.CategoryAxisFormat && (l === w.BarAndLineFromFields || r === ue ? c = n.map((d) => P(i?.layerFieldsInfo, d)) : r.trim() !== "" && r !== ue && i !== void 0 && (c = await je({
|
|
1091
|
+
layerInfo: i,
|
|
960
1092
|
config: e,
|
|
961
|
-
category:
|
|
962
|
-
errorStrings:
|
|
1093
|
+
category: r,
|
|
1094
|
+
errorStrings: a
|
|
963
1095
|
}))), c;
|
|
964
1096
|
};
|
|
965
|
-
function
|
|
966
|
-
const
|
|
967
|
-
return
|
|
1097
|
+
function le(t, e, i) {
|
|
1098
|
+
const a = Z(t, e, i), r = wt(t), s = se(t);
|
|
1099
|
+
return a === r || s;
|
|
968
1100
|
}
|
|
969
|
-
function
|
|
970
|
-
const
|
|
1101
|
+
function Ye(t, e, i) {
|
|
1102
|
+
const a = pe({
|
|
971
1103
|
config: t,
|
|
972
1104
|
layerInfo: e,
|
|
973
|
-
commonStrings:
|
|
974
|
-
numericFields:
|
|
975
|
-
aggregationType:
|
|
976
|
-
}),
|
|
977
|
-
return
|
|
1105
|
+
commonStrings: i,
|
|
1106
|
+
numericFields: ne(t),
|
|
1107
|
+
aggregationType: Me(t)
|
|
1108
|
+
}), r = ae(1, t), s = se(t);
|
|
1109
|
+
return a === r || s;
|
|
978
1110
|
}
|
|
979
|
-
function
|
|
980
|
-
const
|
|
981
|
-
return
|
|
1111
|
+
function yi(t, e) {
|
|
1112
|
+
const i = P(e.layerFieldsInfo, X(t)), a = ae(0, t), r = se(t);
|
|
1113
|
+
return i === a || r;
|
|
982
1114
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
1115
|
+
function Ps(t) {
|
|
1116
|
+
return D(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
|
|
985
1117
|
}
|
|
986
|
-
function
|
|
987
|
-
e?.series.forEach((
|
|
988
|
-
(
|
|
989
|
-
unit:
|
|
1118
|
+
function ws(t, e) {
|
|
1119
|
+
e?.series.forEach((i) => {
|
|
1120
|
+
D(i) && (i.binTemporalData = t, t ? i.temporalBinning = {
|
|
1121
|
+
unit: ce.Day,
|
|
990
1122
|
size: 0,
|
|
991
|
-
timeAggregationType:
|
|
1123
|
+
timeAggregationType: Tt.Start,
|
|
992
1124
|
trimIncompleteTimeInterval: !0,
|
|
993
|
-
nullPolicy:
|
|
994
|
-
} : delete
|
|
1125
|
+
nullPolicy: $.Null
|
|
1126
|
+
} : delete i.temporalBinning);
|
|
995
1127
|
});
|
|
996
1128
|
}
|
|
997
1129
|
export {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1130
|
+
es as $,
|
|
1131
|
+
Rs as A,
|
|
1132
|
+
qs as B,
|
|
1133
|
+
Os as C,
|
|
1134
|
+
Ps as D,
|
|
1135
|
+
ws as E,
|
|
1136
|
+
Z as F,
|
|
1137
|
+
Pe as G,
|
|
1138
|
+
ti as H,
|
|
1139
|
+
zi as I,
|
|
1140
|
+
hs as J,
|
|
1141
|
+
xs as K,
|
|
1142
|
+
ii as L,
|
|
1143
|
+
Gi as M,
|
|
1144
|
+
si as N,
|
|
1145
|
+
Ji as O,
|
|
1146
|
+
Ts as P,
|
|
1147
|
+
Bs as Q,
|
|
1148
|
+
Cs as R,
|
|
1149
|
+
bs as S,
|
|
1150
|
+
Is as T,
|
|
1151
|
+
Vs as U,
|
|
1152
|
+
Ls as V,
|
|
1153
|
+
jt as W,
|
|
1154
|
+
Ns as X,
|
|
1155
|
+
Ui as Y,
|
|
1156
|
+
ji as Z,
|
|
1157
|
+
ts as _,
|
|
1158
|
+
Yi as a,
|
|
1159
|
+
ss as a0,
|
|
1160
|
+
is as a1,
|
|
1161
|
+
Zi as a2,
|
|
1162
|
+
Ki as a3,
|
|
1163
|
+
Qi as a4,
|
|
1164
|
+
_i as a5,
|
|
1165
|
+
ns as a6,
|
|
1166
|
+
ls as a7,
|
|
1167
|
+
os as a8,
|
|
1168
|
+
us as a9,
|
|
1169
|
+
rs as aa,
|
|
1170
|
+
as as ab,
|
|
1171
|
+
cs as ac,
|
|
1172
|
+
ri as ad,
|
|
1173
|
+
ds as ae,
|
|
1174
|
+
ys as af,
|
|
1175
|
+
ms as ag,
|
|
1176
|
+
ps as ah,
|
|
1177
|
+
gs as ai,
|
|
1178
|
+
fs as aj,
|
|
1179
|
+
vs as ak,
|
|
1180
|
+
As as al,
|
|
1181
|
+
Ss as am,
|
|
1182
|
+
Fs as an,
|
|
1183
|
+
Mi as b,
|
|
1184
|
+
Ei as c,
|
|
1185
|
+
ne as d,
|
|
1186
|
+
re as e,
|
|
1187
|
+
Xi as f,
|
|
1188
|
+
Me as g,
|
|
1189
|
+
ks as h,
|
|
1190
|
+
$i as i,
|
|
1191
|
+
Di as j,
|
|
1192
|
+
Et as k,
|
|
1193
|
+
Mt as l,
|
|
1194
|
+
Ri as m,
|
|
1195
|
+
Oi as n,
|
|
1196
|
+
Pi as o,
|
|
1197
|
+
Hi as p,
|
|
1198
|
+
ki as q,
|
|
1199
|
+
Kt as r,
|
|
1200
|
+
Re as s,
|
|
1201
|
+
wi as t,
|
|
1202
|
+
Wi as u,
|
|
1203
|
+
qi as v,
|
|
1204
|
+
Wt as w,
|
|
1205
|
+
Yt as x,
|
|
1206
|
+
Ds as y,
|
|
1207
|
+
me as z
|
|
1073
1208
|
};
|