@arcgis/charts-components 5.2.0-next.6 → 5.2.0-next.61
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/README.md +2 -2
- package/dist/cdn/{FF4DUQDZ.js → 22WGB4CQ.js} +1 -1
- package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
- package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
- package/dist/cdn/2G65P262.js +2 -0
- package/dist/cdn/2RYKKN36.js +2 -0
- package/dist/cdn/3AYXOX4U.js +2 -0
- package/dist/cdn/{ZFZ5AEUQ.js → 3CGAUDYD.js} +1 -1
- package/dist/cdn/{JBHGSSHS.js → 3FZCVKWJ.js} +1 -1
- package/dist/cdn/{DCZWZOPF.js → 3GVTYZ2I.js} +1 -1
- package/dist/cdn/3YCGBAQY.js +2 -0
- package/dist/cdn/3ZGG7Q5M.js +2 -0
- package/dist/cdn/46PXO7ZC.js +4 -0
- package/dist/cdn/4COV22K4.js +2 -0
- package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
- package/dist/cdn/{AM2TOTX6.js → 4EBMUPEV.js} +1 -1
- package/dist/cdn/4ITNOJXC.js +2 -0
- package/dist/cdn/{E7OAEGSE.js → 4VL2SBHK.js} +1 -1
- package/dist/cdn/54W4C75M.js +2 -0
- package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
- package/dist/cdn/{GDQBQQUP.js → 5JXEO4VE.js} +1 -1
- package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
- package/dist/cdn/5YP7P6S3.js +2 -0
- package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
- package/dist/cdn/67QYTLMM.js +2 -0
- package/dist/cdn/6AI3ZXL5.js +2 -0
- package/dist/cdn/6MNV7FJC.js +2 -0
- package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
- package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
- package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
- package/dist/cdn/{JRHMUFED.js → 7DIQIFKR.js} +1 -1
- package/dist/cdn/{ETKPMU7Z.js → 7WVTY3XI.js} +1 -1
- package/dist/cdn/{A5AECJXP.js → A2NFOGT2.js} +1 -1
- package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
- package/dist/cdn/ANHW36VW.js +2 -0
- package/dist/cdn/{DKAHZ7IX.js → ASZ6YFIL.js} +1 -1
- package/dist/cdn/{VY3KBD6N.js → AYQ4HHL6.js} +1 -1
- package/dist/cdn/AYUYEY5H.js +2 -0
- package/dist/cdn/{JJIGLOJA.js → AZKX3FMB.js} +1 -1
- package/dist/cdn/{AJWYIBGC.js → AZMQPJO3.js} +1 -1
- package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
- package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
- package/dist/cdn/BDTKAMUN.js +2 -0
- package/dist/cdn/BGOWDCTO.js +2 -0
- package/dist/cdn/BHGOAHMJ.js +2 -0
- package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
- package/dist/cdn/BKK57XHL.js +2 -0
- package/dist/cdn/BLZLMGO6.js +2 -0
- package/dist/cdn/BYSUABOV.js +2 -0
- package/dist/cdn/{BJDRJUEJ.js → CDJRYMBP.js} +1 -1
- package/dist/cdn/{6XTKJ7DO.js → CHMLTTRN.js} +1 -1
- package/dist/cdn/{HVO4LIXR.js → CL5G6D6W.js} +1 -1
- package/dist/cdn/{AWF4R7WL.js → CMGCZ4MF.js} +1 -1
- package/dist/cdn/{QMSINFQX.js → CVJSVWF3.js} +1 -1
- package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
- package/dist/cdn/{K3GNHGEW.js → D3KIBJKD.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → DAFNQT4C.js} +1 -1
- package/dist/cdn/DBAM7MH7.js +2 -0
- package/dist/cdn/DGV6S2W3.js +2 -0
- package/dist/cdn/{TF7TE7K5.js → DJPMW6UC.js} +1 -1
- package/dist/cdn/DPTA2AET.js +2 -0
- package/dist/cdn/DQXO7PWX.js +2 -0
- package/dist/cdn/EAV3KAS7.js +2 -0
- package/dist/cdn/EMBMJCFZ.js +2 -0
- package/dist/cdn/EOHKNJSJ.js +2 -0
- package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
- package/dist/cdn/EUOJG5H6.js +2 -0
- package/dist/cdn/{2HUAW34Q.js → EXS2KOEA.js} +1 -1
- package/dist/cdn/FHBCVW5T.js +2 -0
- package/dist/cdn/FJGG2VVZ.js +2 -0
- package/dist/cdn/FQLRMWNL.js +2 -0
- package/dist/cdn/{QFEZPP3R.js → GARBFC7Q.js} +1 -1
- package/dist/cdn/{CLXVAIQX.js → GP3LPIRJ.js} +1 -1
- package/dist/cdn/GRL5SM6K.js +2 -0
- package/dist/cdn/{ADGMA3ST.js → H57XAQPI.js} +2 -2
- package/dist/cdn/{L4G6FO7A.js → HBOYEK6P.js} +1 -1
- package/dist/cdn/{MVHQR4FJ.js → HOIPLQXD.js} +1 -1
- package/dist/cdn/{LFQGH44F.js → HQMOMCWF.js} +1 -1
- package/dist/cdn/{N6AOFBBX.js → HSQ32NUA.js} +1 -1
- package/dist/cdn/{7HGVEE7A.js → HUNN3ERX.js} +1 -1
- package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
- package/dist/cdn/I3XBTQKJ.js +2 -0
- package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
- package/dist/cdn/INISFVAK.js +2 -0
- package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
- package/dist/cdn/{KCMZSNBL.js → ISK4QVLY.js} +1 -1
- package/dist/cdn/{DEGBVJ76.js → IUOORM26.js} +1 -1
- package/dist/cdn/J3CL6KB6.js +2 -0
- package/dist/cdn/JGESKW6S.js +2 -0
- package/dist/cdn/JH3NSZUT.js +2 -0
- package/dist/cdn/{ML3A3MYV.js → JS6A5QAV.js} +1 -1
- package/dist/cdn/{4LPXOEML.js → JUON3AJY.js} +1 -1
- package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
- package/dist/cdn/JYITKARU.js +104 -0
- package/dist/cdn/{KUZR6CGB.js → JZ5HUNM5.js} +1 -1
- package/dist/cdn/K4APZJ2O.js +2 -0
- package/dist/cdn/KCES2YBJ.js +2 -0
- package/dist/cdn/KDCZQ6UT.js +2 -0
- package/dist/cdn/KJZTU3DV.js +2 -0
- package/dist/cdn/KLKI4XNW.js +2 -0
- package/dist/cdn/{5XTQQOTT.js → KOCZJFY6.js} +1 -1
- package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
- package/dist/cdn/KWA7OWHO.js +2 -0
- package/dist/cdn/L7TUV2MY.js +2 -0
- package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
- package/dist/cdn/LGTXQIF7.js +2 -0
- package/dist/cdn/{IPM2XKST.js → LHDBHPXR.js} +1 -1
- package/dist/cdn/LIBE4XVH.js +2 -0
- package/dist/cdn/M744CFJ2.js +2 -0
- package/dist/cdn/{CHQDKVVQ.js → MARXRC6B.js} +1 -1
- package/dist/cdn/MI6AKTXQ.js +2 -0
- package/dist/cdn/MJTWR33N.js +2 -0
- package/dist/cdn/MPGHOXLW.js +2 -0
- package/dist/cdn/MU6ZYADT.js +2 -0
- package/dist/cdn/{XE3FKQFA.js → MVCB4RM7.js} +1 -1
- package/dist/cdn/MXE4VPZS.js +2 -0
- package/dist/cdn/{KFONSKQF.js → MZ2RZ62O.js} +1 -1
- package/dist/cdn/NK66D65H.js +2 -0
- package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
- package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
- package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
- package/dist/cdn/NZ2C5DJB.js +2 -0
- package/dist/cdn/O3VKOV2W.js +2 -0
- package/dist/cdn/{THTYR6IL.js → OAXHS4LE.js} +1 -1
- package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
- package/dist/cdn/OFFKJPQH.js +2 -0
- package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
- package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
- package/dist/cdn/ONKEO3Z2.js +2 -0
- package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
- package/dist/cdn/{A4GEWIPY.js → OSUM4CWA.js} +1 -1
- package/dist/cdn/OT7PLFBK.js +2 -0
- package/dist/cdn/OWWQ5SYW.js +2 -0
- package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
- package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
- package/dist/cdn/P5QEJOJS.js +2 -0
- package/dist/cdn/{5MEQANMY.js → PAQGR4DD.js} +1 -1
- package/dist/cdn/PBO5VH6A.js +2 -0
- package/dist/cdn/{ZXOO3X5P.js → PEEVY5UG.js} +1 -1
- package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
- package/dist/cdn/PLEC3GNT.js +2 -0
- package/dist/cdn/Q5OFF4FE.js +45 -0
- package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
- package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
- package/dist/cdn/QZCTLQBM.js +2 -0
- package/dist/cdn/RICA7GJM.js +2 -0
- package/dist/cdn/S5GVUYBL.js +2 -0
- package/dist/cdn/SCU3SBSN.js +2 -0
- package/dist/cdn/SQIKFO32.js +2 -0
- package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
- package/dist/cdn/SUNHJPBW.js +2 -0
- package/dist/cdn/SYVPFDIW.js +2 -0
- package/dist/cdn/T62EETHJ.js +2 -0
- package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
- package/dist/cdn/TEWEPSIO.js +2 -0
- package/dist/cdn/{QOOBNATX.js → TGEHTOWR.js} +1 -1
- package/dist/cdn/{DAB5R2BN.js → TQYJM66E.js} +1 -1
- package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
- package/dist/cdn/{SBYD2EKR.js → TSSN2OW3.js} +1 -1
- package/dist/cdn/TU3LYEK3.js +2 -0
- package/dist/cdn/TVG7KD3H.js +2 -0
- package/dist/cdn/{MRTKZZTF.js → U43KANH5.js} +1 -1
- package/dist/cdn/{7FZC3RZK.js → UB36FUCN.js} +1 -1
- package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
- package/dist/cdn/UM7RIOCE.js +2 -0
- package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
- package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
- package/dist/cdn/V6LKZUEZ.js +3 -0
- package/dist/cdn/{YOT6DVSU.js → V7AEHY25.js} +1 -1
- package/dist/cdn/VA6KJZ2Y.js +2 -0
- package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
- package/dist/cdn/VM4XLVMS.js +2 -0
- package/dist/cdn/{KZ7LPNX3.js → VNNTABNO.js} +1 -1
- package/dist/cdn/VPYL3RVN.js +2 -0
- package/dist/cdn/{XW4PBQNW.js → VT6X6QMA.js} +1 -1
- package/dist/cdn/WFW6BNDT.js +2 -0
- package/dist/cdn/{GV3TT7L5.js → WKQB6Z7Z.js} +1 -1
- package/dist/cdn/{Y7HBWU3M.js → WMUPNT4Q.js} +1 -1
- package/dist/cdn/WSL76GA5.js +2 -0
- package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
- package/dist/cdn/WTJ2NJ76.js +2 -0
- package/dist/cdn/WZOHQJFB.js +2 -0
- package/dist/cdn/X3S4M6JL.js +2 -0
- package/dist/cdn/XV4LD73L.js +2 -0
- package/dist/cdn/Y5ZH7VS4.js +2 -0
- package/dist/cdn/{WASEMNYV.js → YC4WZNPI.js} +1 -1
- package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
- package/dist/cdn/ZGBULDPL.js +2 -0
- package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → ZRX4BEOX.js} +1 -1
- package/dist/cdn/{S5UDCCRH.js → ZWIF7LHW.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 +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +19 -21
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +27 -35
- 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 +273 -282
- package/dist/chunks/box-plot-model.js +159 -144
- package/dist/chunks/chart-model.js +177 -145
- 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 +25 -26
- package/dist/chunks/data-labels-symbol.js +39 -24
- package/dist/chunks/data-labels-visibility.js +24 -24
- package/dist/chunks/data.js +69 -69
- package/dist/chunks/gauge-model.js +18 -18
- package/dist/chunks/generate-x-axis-title.js +12 -12
- package/dist/chunks/heat-chart-model.js +93 -64
- package/dist/chunks/histogram-data.js +22 -22
- package/dist/chunks/histogram-model.js +10 -10
- package/dist/chunks/index.js +190 -179
- package/dist/chunks/index2.js +6069 -5721
- package/dist/chunks/index3.js +96 -86
- package/dist/chunks/index4.js +312 -87
- package/dist/chunks/index5.js +63 -100
- package/dist/chunks/line-chart-model.js +12 -12
- package/dist/chunks/model-setter.js +16 -15
- package/dist/chunks/model-with-line-marker-styling.js +2 -3
- package/dist/chunks/model-with-y-guides.js +59 -74
- package/dist/chunks/negative-values-stacked-to-baseline.js +18 -18
- package/dist/chunks/pie-chart-data.js +174 -192
- package/dist/chunks/pie-chart-model.js +161 -148
- package/dist/chunks/radar-chart-model.js +397 -46
- package/dist/chunks/resource.js +5 -5
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +73 -0
- package/dist/chunks/scatterplot-model.js +3 -3
- package/dist/chunks/serial-chart-data.js +889 -774
- package/dist/chunks/serial-chart-model.js +145 -124
- package/dist/chunks/series-length.js +2 -2
- package/dist/chunks/series-types.js +22 -18
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +17 -13
- package/dist/chunks/type-guards2.js +41 -33
- package/dist/chunks/utils.js +108 -96
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +632 -492
- package/dist/chunks/x-bounds.js +41 -42
- package/dist/components/arcgis-chart/customElement.d.ts +277 -164
- package/dist/components/arcgis-chart/customElement.js +10323 -10325
- package/dist/components/arcgis-charts-action-bar/customElement.js +33 -30
- package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +19 -19
- 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 +44 -43
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -15
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -11
- 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 +15 -18
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +18 -20
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +138 -136
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-format/customElement.js +93 -86
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide/customElement.js +17 -18
- 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/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +64 -76
- 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 +27 -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 +5 -6
- 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 +35 -37
- 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 +6 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -5
- 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 +65 -66
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
- 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 +6 -6
- 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 +62 -67
- package/dist/index.js +471 -458
- package/dist/json-schema/index.d.ts +207 -6
- package/dist/loader.js +2 -2
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
- 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 +44 -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 +62 -99
- 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/radar-chart-model/radar-chart-model.d.ts +190 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
- package/dist/model/shared/type-guards.d.ts +16 -2
- package/dist/spec/chart-object-literals.d.ts +1 -0
- package/dist/spec/data-source.d.ts +15 -3
- 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 +42 -6
- package/dist/utils/chart-config/converter/index.js +198 -179
- package/dist/utils/chart-config/utils/index.d.ts +54 -4
- 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/cursor/interfaces.d.ts +21 -0
- package/dist/utils/data/categorical-data/index.d.ts +2 -2
- package/dist/utils/data/index.d.ts +14 -10
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +16 -4
- package/dist/utils/defaults/interfaces.d.ts +7 -2
- 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 +18 -1
- package/dist/utils/layer/query-parser/index.d.ts +5 -3
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/type-guards/chart-types.d.ts +10 -0
- package/dist/utils/type-guards/series-types.d.ts +9 -2
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +7 -8
- package/dist/cdn/24RLLXS6.js +0 -2
- package/dist/cdn/2N4MK6FQ.js +0 -2
- package/dist/cdn/32FR66QO.js +0 -2
- package/dist/cdn/3EIVHDDK.js +0 -2
- package/dist/cdn/3NUNWPAR.js +0 -2
- package/dist/cdn/43ZHPVBB.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/5YJNENER.js +0 -2
- package/dist/cdn/6AF2OTL6.js +0 -2
- package/dist/cdn/6CFIKYKR.js +0 -2
- package/dist/cdn/6GLTSMOR.js +0 -2
- package/dist/cdn/7EMCHGGV.js +0 -2
- package/dist/cdn/7OF2IANH.js +0 -2
- package/dist/cdn/7VN3A7S2.js +0 -2
- package/dist/cdn/7YWZG3ZS.js +0 -2
- package/dist/cdn/A5GIBV5W.js +0 -2
- package/dist/cdn/ADPDJISV.js +0 -2
- package/dist/cdn/B4KAJRUJ.js +0 -2
- package/dist/cdn/BBUPTHPL.js +0 -2
- package/dist/cdn/BBURKBKE.js +0 -2
- package/dist/cdn/BLZODYE2.js +0 -4
- package/dist/cdn/BO62KSB5.js +0 -2
- package/dist/cdn/C2FOUUEM.js +0 -2
- package/dist/cdn/CJPEW4LJ.js +0 -142
- package/dist/cdn/CVU3UPPF.js +0 -2
- package/dist/cdn/CZ5XRXCE.js +0 -2
- package/dist/cdn/D73VV2AZ.js +0 -2
- package/dist/cdn/DJACBOFO.js +0 -2
- package/dist/cdn/DPNTYHTH.js +0 -2
- package/dist/cdn/DZ72EIRH.js +0 -2
- package/dist/cdn/EGISZTGB.js +0 -2
- package/dist/cdn/EP34TF4L.js +0 -2
- package/dist/cdn/EZD3FBJU.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/FQT7V7QG.js +0 -2
- package/dist/cdn/G72TNKCS.js +0 -2
- package/dist/cdn/GQ5QBLRO.js +0 -2
- package/dist/cdn/HWJGWDU3.js +0 -2
- package/dist/cdn/HZR4NSZV.js +0 -2
- package/dist/cdn/ICFKKJWQ.js +0 -2
- package/dist/cdn/IWX5L226.js +0 -2
- package/dist/cdn/JNG6V7XC.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/JS2KOBA2.js +0 -2
- package/dist/cdn/JTTJ455Y.js +0 -2
- package/dist/cdn/JWO5WVTZ.js +0 -2
- package/dist/cdn/K4WI2SGM.js +0 -2
- package/dist/cdn/KLHZFPYK.js +0 -2
- package/dist/cdn/KO7HQLGV.js +0 -2
- package/dist/cdn/L5AQ4I5T.js +0 -2
- package/dist/cdn/LC6CY2HW.js +0 -2
- package/dist/cdn/MBVTB42G.js +0 -2
- package/dist/cdn/MGEW6X3Y.js +0 -102
- package/dist/cdn/NSOZIR5F.js +0 -2
- package/dist/cdn/NTSTL3FK.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/O5A25X5K.js +0 -2
- package/dist/cdn/OAAJ6CIN.js +0 -2
- package/dist/cdn/OGYY2Y22.js +0 -2
- package/dist/cdn/PAIRUVLU.js +0 -2
- package/dist/cdn/PRGFNLY7.js +0 -2
- package/dist/cdn/PROSIXIF.js +0 -2
- package/dist/cdn/Q5JDSPJA.js +0 -2
- package/dist/cdn/QJC3FDWG.js +0 -2
- package/dist/cdn/QRLILSSI.js +0 -2
- package/dist/cdn/QY53LXP2.js +0 -2
- package/dist/cdn/R75MHIRF.js +0 -2
- package/dist/cdn/RDA5NV6M.js +0 -2
- package/dist/cdn/RG3DO2OE.js +0 -2
- package/dist/cdn/RPNZL6AC.js +0 -2
- package/dist/cdn/S32NLOJ5.js +0 -2
- package/dist/cdn/SCAZDS2G.js +0 -2
- package/dist/cdn/SJGYHEMZ.js +0 -2
- package/dist/cdn/STU55UIS.js +0 -58
- package/dist/cdn/TCTQ4LMU.js +0 -2
- package/dist/cdn/TDHHWIIC.js +0 -2
- package/dist/cdn/TJMPLGQI.js +0 -2
- package/dist/cdn/TJMTF45U.js +0 -3
- package/dist/cdn/TW5DX7YP.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/UZEMSOA2.js +0 -2
- package/dist/cdn/VBHQFV2H.js +0 -2
- package/dist/cdn/VFREVEVA.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/VZTLODMQ.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/WNKDEOFZ.js +0 -2
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/cdn/XCUXUZXY.js +0 -2
- package/dist/cdn/XG3WW5GG.js +0 -2
- package/dist/cdn/XJFVSX2E.js +0 -2
- package/dist/cdn/Y3CXVO2M.js +0 -2
- package/dist/cdn/YEZL5KRS.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/chunks/bar-chart-series.js +0 -15
- package/dist/chunks/index6.js +0 -66
- package/dist/chunks/time-zone.js +0 -38
- package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
- /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
- /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
|
@@ -1,175 +1,206 @@
|
|
|
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 M, s as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
const
|
|
2
|
+
import { substitute as w } from "@arcgis/core/intl.js";
|
|
3
|
+
import { cloneDeep as G, isEmpty as Ye, memoize as We } from "lodash-es";
|
|
4
|
+
import { S as ne } from "./common.js";
|
|
5
|
+
import { s as D, u as E, a as Ie, g as ye, b as Le, c as He, d as Xe, e as pe } from "./utils.js";
|
|
6
|
+
import { w as I, i as Ue, dg as W, co as je, bC as Ke, a$ as De, x as Ze, Y as J, cS as _e, cR as Qe, p as ze, aJ as me, cu as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, dq as ot, v as lt, dw as fe, cb as ut, dx as ct, c7 as dt, B as yt, N as Se, bL as Z, dt as mt, bj as Y, bP as _, ap as U, a6 as Ne, bd as P, bc as gt, k as oe, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
|
|
7
|
+
import { a as M, s as ge, g as ee, b as he, c as St } from "./data.js";
|
|
8
|
+
import { u as T, r as v, k as Ft, d as k, n as L, m as H, p as xt, t as ht, s as le } from "./chart-object-literals.js";
|
|
9
|
+
import { R as Oe, i as Tt } from "./rest-js-object-literals.js";
|
|
10
|
+
import { i as te } from "./index4.js";
|
|
11
|
+
import { aD as Bt, K as Q, F as ue, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
|
|
12
|
+
import { C as q, F as X, d as R } from "./index3.js";
|
|
13
|
+
import { g as Ve, s as Dt } from "./series-types.js";
|
|
14
|
+
import { convertChartSpec as Nt } from "../utils/chart-config/converter/index.js";
|
|
15
|
+
import { d as ce, f as Ot } from "./type-guards.js";
|
|
16
|
+
import { C as Vt, m as kt } from "./model-setter.js";
|
|
17
|
+
import { g as se } from "./utils2.js";
|
|
18
|
+
import { a as Rt, b as qt } from "./series-length.js";
|
|
19
|
+
const Ds = (s) => {
|
|
20
20
|
let e;
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
},
|
|
21
|
+
const t = s.series[0];
|
|
22
|
+
return I(t) && (e = t.temporalBinning?.size), e;
|
|
23
|
+
}, wt = (s) => {
|
|
24
24
|
let e;
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
},
|
|
25
|
+
const t = s.series[0];
|
|
26
|
+
return I(t) && (e = t.temporalBinning?.unit), e;
|
|
27
|
+
}, Ns = (s) => {
|
|
28
28
|
let e;
|
|
29
|
-
const
|
|
30
|
-
return
|
|
31
|
-
},
|
|
29
|
+
const t = s.series[0];
|
|
30
|
+
return I(t) && (e = t.temporalBinning?.timeAggregationType), e;
|
|
31
|
+
}, Os = (s) => {
|
|
32
32
|
let e;
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
-
},
|
|
33
|
+
const t = s.series[0];
|
|
34
|
+
return I(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
35
|
+
}, Vs = (s) => {
|
|
36
36
|
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
|
-
|
|
37
|
+
const t = s.series[0];
|
|
38
|
+
return I(t) && (e = t.temporalBinning?.nullPolicy), e;
|
|
39
|
+
}, Pt = (s, e) => {
|
|
40
|
+
e?.series?.forEach((t) => {
|
|
41
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
|
|
42
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
43
|
+
}, Et = (s, e) => {
|
|
44
|
+
e?.series?.forEach((t) => {
|
|
45
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = s);
|
|
46
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
47
|
+
}, ks = (s, e) => {
|
|
48
|
+
e.series?.forEach((t) => {
|
|
49
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = s);
|
|
50
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
51
|
+
}, Rs = (s, e) => {
|
|
52
|
+
e.series?.forEach((t) => {
|
|
53
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = s);
|
|
54
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
55
|
+
}, qs = (s, e) => {
|
|
56
|
+
e.series?.forEach((t) => {
|
|
57
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = s);
|
|
58
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
|
+
}, Mt = (s) => {
|
|
60
|
+
Pt(0, s);
|
|
61
61
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e, t, a) => {
|
|
63
|
+
for (var i = Yt(e, t), r = s.length - 1, n; r >= 0; r--)
|
|
64
|
+
(n = s[r]) && (i = n(e, t, i) || i);
|
|
65
|
+
return i && $t(e, t, i), i;
|
|
66
|
+
};
|
|
67
|
+
const Ht = (s) => {
|
|
68
|
+
let e;
|
|
69
|
+
return W(s) ? e = s.outTimeZone : s?.series.forEach((t) => {
|
|
70
|
+
(t.type === T.BarSeries || t.type === T.RadarSeries || t.type === T.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
|
|
71
|
+
}), e || (e = s?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
|
|
72
|
+
}, ke = (s, e) => {
|
|
73
|
+
const t = Ue(s);
|
|
74
|
+
W(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((a) => {
|
|
75
|
+
(a.type === T.BarSeries || a.type === T.RadarSeries || a.type === T.LineSeries) && (s ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
|
|
76
|
+
}), e?.axes?.[0]?.valueFormat.type === T.DateAxisFormat && (s ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
|
|
77
|
+
};
|
|
78
|
+
class Xt extends Vt {
|
|
79
|
+
/**
|
|
80
|
+
* Gets the time zone for the chart.
|
|
81
|
+
*/
|
|
82
|
+
get timeZone() {
|
|
83
|
+
return Ht(this._config);
|
|
84
|
+
}
|
|
85
|
+
set timeZone(e) {
|
|
86
|
+
ke(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
Wt([
|
|
90
|
+
kt
|
|
91
|
+
], Xt.prototype, "timeZone");
|
|
92
|
+
function ws(s, e) {
|
|
93
|
+
let t;
|
|
94
|
+
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = s)), t;
|
|
65
95
|
}
|
|
66
|
-
function
|
|
67
|
-
let
|
|
68
|
-
return e !== void 0 && (
|
|
96
|
+
function Ps(s, e) {
|
|
97
|
+
let t;
|
|
98
|
+
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = s)), t;
|
|
69
99
|
}
|
|
70
|
-
function
|
|
71
|
-
let
|
|
72
|
-
return e !== void 0 && (
|
|
100
|
+
function Es(s, e) {
|
|
101
|
+
let t;
|
|
102
|
+
return e !== void 0 && (t = { ...e, rotated: s }), t;
|
|
73
103
|
}
|
|
74
|
-
function
|
|
104
|
+
function Ut(s) {
|
|
75
105
|
let e;
|
|
76
|
-
return
|
|
106
|
+
return s !== void 0 && (e = { ...s }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
77
107
|
}
|
|
78
|
-
function
|
|
79
|
-
return e != null ||
|
|
108
|
+
function Ms(s, e) {
|
|
109
|
+
return e != null || De(s);
|
|
80
110
|
}
|
|
81
|
-
async function
|
|
82
|
-
const { config: e, layer:
|
|
83
|
-
let
|
|
84
|
-
return
|
|
111
|
+
async function $s(s) {
|
|
112
|
+
const { config: e, layer: t, abortSignal: a } = s;
|
|
113
|
+
let i = !1;
|
|
114
|
+
return ce(t) || Ot(e) ? e && ce(t) && (i = await Ke({ config: e, layer: t, abortSignal: a })) : i = !0, i;
|
|
85
115
|
}
|
|
86
|
-
async function
|
|
116
|
+
async function jt(s) {
|
|
87
117
|
const {
|
|
88
118
|
queryObject: e,
|
|
89
|
-
chartConfig:
|
|
90
|
-
splitByField:
|
|
91
|
-
errorStrings:
|
|
92
|
-
abortSignal:
|
|
119
|
+
chartConfig: t,
|
|
120
|
+
splitByField: a,
|
|
121
|
+
errorStrings: i,
|
|
122
|
+
abortSignal: r,
|
|
93
123
|
runtimeDataFilters: n,
|
|
94
124
|
ignoreViewExtent: o,
|
|
95
|
-
setTimeBinningInfoWhenNotProvided:
|
|
96
|
-
returnFeaturesExtent:
|
|
97
|
-
chartLimits:
|
|
98
|
-
} =
|
|
99
|
-
let
|
|
100
|
-
const
|
|
125
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
126
|
+
returnFeaturesExtent: c,
|
|
127
|
+
chartLimits: p
|
|
128
|
+
} = s;
|
|
129
|
+
let g = [], d;
|
|
130
|
+
const m = G(t), y = m.series[0], u = rt({
|
|
101
131
|
queryObject: e,
|
|
102
|
-
chartConfig:
|
|
132
|
+
chartConfig: m,
|
|
103
133
|
runtimeDataFilters: n,
|
|
104
134
|
ignoreViewExtent: o
|
|
105
135
|
});
|
|
106
|
-
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName =
|
|
107
|
-
xAxisValueFormatType:
|
|
108
|
-
setTimeBinningInfoWhenNotProvided:
|
|
136
|
+
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
|
|
137
|
+
xAxisValueFormatType: ot(m),
|
|
138
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
109
139
|
seriesConfig: y,
|
|
110
140
|
queryObject: e
|
|
111
|
-
}) &&
|
|
112
|
-
const { temporalBinning:
|
|
113
|
-
chartConfig:
|
|
141
|
+
}) && lt(a, e)) {
|
|
142
|
+
const { temporalBinning: S, x: F } = y, { uniqueQuery: x } = fe({
|
|
143
|
+
chartConfig: m,
|
|
114
144
|
queryConfig: u,
|
|
115
145
|
queryObject: e,
|
|
116
|
-
setTimeBinningInfoWhenNotProvided:
|
|
117
|
-
returnFeaturesExtent:
|
|
118
|
-
chartLimits:
|
|
119
|
-
}),
|
|
120
|
-
|
|
146
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
147
|
+
returnFeaturesExtent: c,
|
|
148
|
+
chartLimits: p
|
|
149
|
+
}), f = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
150
|
+
d = await ut({
|
|
121
151
|
queryObject: e,
|
|
122
|
-
dateField:
|
|
123
|
-
splitByField:
|
|
124
|
-
queryConfig:
|
|
125
|
-
axisTimeZone:
|
|
126
|
-
temporalBinning:
|
|
127
|
-
errorStrings:
|
|
128
|
-
abortSignal:
|
|
129
|
-
}),
|
|
152
|
+
dateField: F,
|
|
153
|
+
splitByField: a,
|
|
154
|
+
queryConfig: x,
|
|
155
|
+
axisTimeZone: f,
|
|
156
|
+
temporalBinning: S,
|
|
157
|
+
errorStrings: i,
|
|
158
|
+
abortSignal: r
|
|
159
|
+
}), g = Array.from(
|
|
130
160
|
new Set(
|
|
131
|
-
|
|
132
|
-
const { stackedAttributes:
|
|
133
|
-
let
|
|
134
|
-
return
|
|
161
|
+
d.flatMap((A) => {
|
|
162
|
+
const { stackedAttributes: b } = A;
|
|
163
|
+
let B = [];
|
|
164
|
+
return b && (B = b.map((C) => C[a]).filter((C) => C !== void 0)), B;
|
|
135
165
|
})
|
|
136
166
|
).values()
|
|
137
167
|
);
|
|
138
168
|
} else {
|
|
139
|
-
const { uniqueQuery:
|
|
140
|
-
chartConfig:
|
|
169
|
+
const { uniqueQuery: S } = fe({
|
|
170
|
+
chartConfig: m,
|
|
141
171
|
queryObject: e,
|
|
142
172
|
queryConfig: u,
|
|
143
|
-
setTimeBinningInfoWhenNotProvided:
|
|
144
|
-
returnFeaturesExtent:
|
|
145
|
-
chartLimits:
|
|
146
|
-
}), { elementCount:
|
|
147
|
-
chartConfig:
|
|
173
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
174
|
+
returnFeaturesExtent: c,
|
|
175
|
+
chartLimits: p
|
|
176
|
+
}), { elementCount: F } = await ct({
|
|
177
|
+
chartConfig: m,
|
|
148
178
|
queryObject: e,
|
|
149
179
|
queryConfig: u,
|
|
150
|
-
behaviorAfterLimit:
|
|
151
|
-
numberMaxOfFeaturesToFetch:
|
|
152
|
-
abortSignal:
|
|
180
|
+
behaviorAfterLimit: p?.behaviorAfterLimit,
|
|
181
|
+
numberMaxOfFeaturesToFetch: S.num,
|
|
182
|
+
abortSignal: r
|
|
153
183
|
});
|
|
154
|
-
|
|
184
|
+
d = await dt({
|
|
155
185
|
queryObject: e,
|
|
156
|
-
queryConfig:
|
|
157
|
-
featureCount:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
186
|
+
queryConfig: S,
|
|
187
|
+
featureCount: F,
|
|
188
|
+
returnStatisticsAggregatedIds: !0,
|
|
189
|
+
errorStrings: i,
|
|
190
|
+
abortSignal: r
|
|
191
|
+
}), g = Array.from(
|
|
161
192
|
new Set(
|
|
162
|
-
|
|
193
|
+
d.map((x) => x.attributes[a]).filter((x) => x !== void 0)
|
|
163
194
|
).values()
|
|
164
195
|
);
|
|
165
196
|
}
|
|
166
|
-
return { allValues:
|
|
197
|
+
return { allValues: g, preFetchedQueryResponse: d };
|
|
167
198
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
return
|
|
171
|
-
let
|
|
172
|
-
where:
|
|
199
|
+
function Kt(s, e) {
|
|
200
|
+
const t = /* @__PURE__ */ new Map();
|
|
201
|
+
return s.series.forEach((a) => {
|
|
202
|
+
let i = me({
|
|
203
|
+
where: a.query?.where,
|
|
173
204
|
// normalize the value so it matches what we get from getAllValues()
|
|
174
205
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
175
206
|
normalize: !0,
|
|
@@ -177,897 +208,981 @@ function At(t, e) {
|
|
|
177
208
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
|
|
178
209
|
escape: !1
|
|
179
210
|
});
|
|
180
|
-
e &&
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
...
|
|
184
|
-
|
|
211
|
+
e && i !== null && (i = Number(i));
|
|
212
|
+
const r = Ve([a]);
|
|
213
|
+
r !== void 0 && t.set(r, [
|
|
214
|
+
...t.get(r) ?? [],
|
|
215
|
+
i
|
|
185
216
|
]);
|
|
186
|
-
}),
|
|
217
|
+
}), t;
|
|
187
218
|
}
|
|
188
|
-
function
|
|
189
|
-
const { allValues: e, configUniqueValuesPerSeriesType:
|
|
190
|
-
return Array.from(
|
|
191
|
-
const n =
|
|
219
|
+
function Zt(s) {
|
|
220
|
+
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = s, i = /* @__PURE__ */ new Map();
|
|
221
|
+
return Array.from(t.keys()).forEach((r) => {
|
|
222
|
+
const n = t.get(r) ?? [];
|
|
192
223
|
let o = [];
|
|
193
|
-
|
|
194
|
-
n.includes(
|
|
195
|
-
}),
|
|
196
|
-
}),
|
|
224
|
+
a ? o = e : e.forEach((l) => {
|
|
225
|
+
n.includes(l) || o.push(l);
|
|
226
|
+
}), i.set(r, o);
|
|
227
|
+
}), i;
|
|
197
228
|
}
|
|
198
|
-
function
|
|
199
|
-
const { chartConfig: e, missingValue:
|
|
229
|
+
function _t(s) {
|
|
230
|
+
const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: i } = s, r = JSON.parse(
|
|
200
231
|
JSON.stringify({
|
|
201
232
|
...e.series[0],
|
|
202
|
-
...
|
|
233
|
+
...i
|
|
203
234
|
})
|
|
204
235
|
);
|
|
205
|
-
if (
|
|
206
|
-
if (
|
|
207
|
-
const o =
|
|
208
|
-
|
|
236
|
+
if (r.query) {
|
|
237
|
+
if (t === null ? r.id = X.nullValue : t === "" ? r.id = X.emptyStringValue : r.id = `${t}`, r.name = `${t}`, r.query.outStatistics?.[0] !== void 0) {
|
|
238
|
+
const o = r.id;
|
|
239
|
+
r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
|
|
209
240
|
}
|
|
210
|
-
const n = typeof
|
|
211
|
-
|
|
241
|
+
const n = typeof t == "number" || t === null ? t : `'${t}'`;
|
|
242
|
+
r.query.where = `${a}=${n}`;
|
|
212
243
|
}
|
|
213
|
-
return
|
|
244
|
+
return r;
|
|
214
245
|
}
|
|
215
|
-
async function
|
|
246
|
+
async function Qt(s) {
|
|
216
247
|
const {
|
|
217
248
|
updateSplitBySeries: e,
|
|
218
|
-
config:
|
|
219
|
-
queryObject:
|
|
220
|
-
errorStrings:
|
|
221
|
-
abortSignal:
|
|
249
|
+
config: t,
|
|
250
|
+
queryObject: a,
|
|
251
|
+
errorStrings: i,
|
|
252
|
+
abortSignal: r,
|
|
222
253
|
runtimeDataFilters: n,
|
|
223
254
|
ignoreViewExtent: o,
|
|
224
|
-
setTimeBinningInfoWhenNotProvided:
|
|
225
|
-
returnFeaturesExtent:
|
|
226
|
-
chartLimits:
|
|
227
|
-
} =
|
|
228
|
-
let
|
|
229
|
-
if (
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
const y =
|
|
233
|
-
if (y ===
|
|
234
|
-
const u =
|
|
235
|
-
queryObject:
|
|
236
|
-
chartConfig:
|
|
255
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
256
|
+
returnFeaturesExtent: c,
|
|
257
|
+
chartLimits: p
|
|
258
|
+
} = s, { seriesTemplate: g } = e ?? {};
|
|
259
|
+
let d;
|
|
260
|
+
if (a && !ce(a) && e !== void 0 && t !== void 0 && (t.series.length > 0 || g !== void 0) && e.addMissingSeries) {
|
|
261
|
+
const m = t.series.length === 0;
|
|
262
|
+
t.series.length === 0 && g !== void 0 && t.series.push(g);
|
|
263
|
+
const y = J(t.series);
|
|
264
|
+
if (y === q.BoxPlotMonoFieldAndSplitBy || y === q.BoxPlotMultiFieldsAndSplitBy || y === q.BoxPlotMonoFieldAndCategoryAndSplitBy || y === q.BarAndLineSplitBy || y === q.BarAndLineSplitByNoAggregation) {
|
|
265
|
+
const u = et(t.series[0]?.query?.where), S = tt(a), F = st(u, S), x = F ? it(F) : !1, f = await jt({
|
|
266
|
+
queryObject: a,
|
|
267
|
+
chartConfig: t,
|
|
237
268
|
splitByField: u,
|
|
238
|
-
abortSignal:
|
|
269
|
+
abortSignal: r,
|
|
239
270
|
runtimeDataFilters: n,
|
|
240
271
|
ignoreViewExtent: o,
|
|
241
|
-
setTimeBinningInfoWhenNotProvided:
|
|
242
|
-
returnFeaturesExtent:
|
|
243
|
-
chartLimits:
|
|
244
|
-
errorStrings:
|
|
245
|
-
}), { allValues:
|
|
246
|
-
if ({ preFetchedQueryResponse:
|
|
247
|
-
const
|
|
248
|
-
allValues:
|
|
249
|
-
configUniqueValuesPerSeriesType:
|
|
250
|
-
initialConfigWasEmpty:
|
|
272
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
273
|
+
returnFeaturesExtent: c,
|
|
274
|
+
chartLimits: p,
|
|
275
|
+
errorStrings: i
|
|
276
|
+
}), { allValues: A } = f;
|
|
277
|
+
if ({ preFetchedQueryResponse: d } = f, A.length > 0) {
|
|
278
|
+
const b = Kt(t, x), B = Zt({
|
|
279
|
+
allValues: A,
|
|
280
|
+
configUniqueValuesPerSeriesType: b,
|
|
281
|
+
initialConfigWasEmpty: m
|
|
251
282
|
});
|
|
252
|
-
Array.from(
|
|
253
|
-
(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
chartConfig:
|
|
257
|
-
seriesTemplate:
|
|
258
|
-
missingValue:
|
|
283
|
+
Array.from(B.keys()).forEach((C) => {
|
|
284
|
+
(B.get(C) ?? []).forEach(($) => {
|
|
285
|
+
t.series.push(
|
|
286
|
+
_t({
|
|
287
|
+
chartConfig: t,
|
|
288
|
+
seriesTemplate: g,
|
|
289
|
+
missingValue: $,
|
|
259
290
|
splitByField: u
|
|
260
291
|
})
|
|
261
292
|
);
|
|
262
|
-
}),
|
|
293
|
+
}), m && t.series.shift();
|
|
263
294
|
});
|
|
264
295
|
}
|
|
265
296
|
}
|
|
266
297
|
}
|
|
267
|
-
return
|
|
298
|
+
return d;
|
|
268
299
|
}
|
|
269
|
-
function
|
|
270
|
-
e && !
|
|
300
|
+
function zt(s, e) {
|
|
301
|
+
e && !De(e) && (e = Je({ chartConfig: e, queryObject: s }));
|
|
271
302
|
}
|
|
272
|
-
async function
|
|
303
|
+
async function Ys(s) {
|
|
273
304
|
const {
|
|
274
305
|
configToAlter: e,
|
|
275
|
-
layer:
|
|
276
|
-
addMissingSeries:
|
|
277
|
-
updateSplitBySeries:
|
|
278
|
-
chartContainer:
|
|
306
|
+
layer: t,
|
|
307
|
+
addMissingSeries: a,
|
|
308
|
+
updateSplitBySeries: i,
|
|
309
|
+
chartContainer: r,
|
|
279
310
|
queryObject: n,
|
|
280
311
|
abortSignal: o,
|
|
281
|
-
runtimeDataFilters:
|
|
282
|
-
ignoreViewExtent:
|
|
283
|
-
setTimeBinningInfoWhenNotProvided:
|
|
284
|
-
returnFeaturesExtent:
|
|
285
|
-
chartLimits:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
312
|
+
runtimeDataFilters: l,
|
|
313
|
+
ignoreViewExtent: c,
|
|
314
|
+
setTimeBinningInfoWhenNotProvided: p,
|
|
315
|
+
returnFeaturesExtent: g,
|
|
316
|
+
chartLimits: d,
|
|
317
|
+
timeZone: m,
|
|
318
|
+
errorStrings: y
|
|
319
|
+
} = s;
|
|
320
|
+
let u = e, S;
|
|
321
|
+
return u && (zt(t, u), u = await Nt(u, t, void 0, o), a && n && (S = await Qt({
|
|
322
|
+
updateSplitBySeries: i,
|
|
323
|
+
config: u,
|
|
292
324
|
queryObject: n,
|
|
293
|
-
errorStrings:
|
|
325
|
+
errorStrings: y,
|
|
294
326
|
abortSignal: o,
|
|
295
|
-
runtimeDataFilters:
|
|
296
|
-
ignoreViewExtent:
|
|
297
|
-
setTimeBinningInfoWhenNotProvided:
|
|
298
|
-
returnFeaturesExtent:
|
|
299
|
-
chartLimits:
|
|
300
|
-
})),
|
|
327
|
+
runtimeDataFilters: l,
|
|
328
|
+
ignoreViewExtent: c,
|
|
329
|
+
setTimeBinningInfoWhenNotProvided: p,
|
|
330
|
+
returnFeaturesExtent: g,
|
|
331
|
+
chartLimits: d
|
|
332
|
+
})), u = je(u, r), ke(m, u)), { alteredConfig: u, preFetchedQueryResponse: S };
|
|
301
333
|
}
|
|
302
|
-
function
|
|
303
|
-
let
|
|
334
|
+
function Gt(s, e) {
|
|
335
|
+
let t = !1;
|
|
304
336
|
if (e !== void 0) {
|
|
305
|
-
const
|
|
306
|
-
|
|
337
|
+
const a = at({ key: yt.Average, splitBy: e });
|
|
338
|
+
t = Number.isFinite(s[a]);
|
|
307
339
|
}
|
|
308
|
-
return
|
|
340
|
+
return t;
|
|
309
341
|
}
|
|
310
|
-
function
|
|
311
|
-
const { data: e, config:
|
|
342
|
+
function Ws(s) {
|
|
343
|
+
const { data: e, config: t, showEmptySeries: a } = s, i = t.series.length, r = G(t);
|
|
312
344
|
let n = !1;
|
|
313
|
-
if (!
|
|
314
|
-
const o =
|
|
315
|
-
switch (
|
|
316
|
-
case
|
|
317
|
-
case
|
|
318
|
-
case
|
|
319
|
-
case
|
|
320
|
-
|
|
345
|
+
if (!a && i > 1 && e) {
|
|
346
|
+
const o = Ze(e), l = Ve(t?.series), c = J(t?.series), p = /* @__PURE__ */ new Set();
|
|
347
|
+
switch (l) {
|
|
348
|
+
case T.ComboLineAndBarSeries:
|
|
349
|
+
case T.BarSeries:
|
|
350
|
+
case T.RadarSeries:
|
|
351
|
+
case T.LineSeries: {
|
|
352
|
+
r.series.forEach((d) => {
|
|
321
353
|
if (Array.isArray(o)) {
|
|
322
|
-
let
|
|
323
|
-
"y" in
|
|
324
|
-
(u) =>
|
|
354
|
+
let m = "";
|
|
355
|
+
"y" in d && (m = Array.isArray(d.y) ? d.y[0] : d.y, c === q.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
356
|
+
(u) => Ge({
|
|
325
357
|
dataItem: u,
|
|
326
|
-
x:
|
|
327
|
-
y:
|
|
328
|
-
aggregationType:
|
|
358
|
+
x: d.x,
|
|
359
|
+
y: m,
|
|
360
|
+
aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
|
|
329
361
|
})
|
|
330
|
-
) &&
|
|
362
|
+
) && p.add(d));
|
|
331
363
|
}
|
|
332
364
|
});
|
|
333
365
|
break;
|
|
334
366
|
}
|
|
335
|
-
case
|
|
336
|
-
if (
|
|
337
|
-
const
|
|
338
|
-
|
|
367
|
+
case T.BoxPlotSeries: {
|
|
368
|
+
if (_e(t)) {
|
|
369
|
+
const d = Qe(t);
|
|
370
|
+
t.series.forEach((m) => {
|
|
339
371
|
let y, u;
|
|
340
|
-
|
|
341
|
-
(
|
|
342
|
-
dataItem:
|
|
343
|
-
splitBy:
|
|
344
|
-
showOutliers:
|
|
372
|
+
m.type === T.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
|
|
373
|
+
(S) => ze({
|
|
374
|
+
dataItem: S,
|
|
375
|
+
splitBy: m.query?.where,
|
|
376
|
+
showOutliers: d
|
|
345
377
|
})
|
|
346
|
-
)) :
|
|
347
|
-
(
|
|
348
|
-
)), u &&
|
|
378
|
+
)) : m.type === T.LineSeries && (y = e.meanLines, u = y?.some(
|
|
379
|
+
(S) => Gt(S, m.query?.where)
|
|
380
|
+
)), u && p.add(m);
|
|
349
381
|
});
|
|
350
382
|
}
|
|
351
383
|
break;
|
|
352
384
|
}
|
|
353
385
|
}
|
|
354
|
-
const
|
|
355
|
-
n =
|
|
386
|
+
const g = Array.from(p.values());
|
|
387
|
+
n = g.length > 0 && g.length < i, n && (r.series = g);
|
|
356
388
|
}
|
|
357
|
-
return { seriesFilteredOut: n, filteredConfig:
|
|
389
|
+
return { seriesFilteredOut: n, filteredConfig: r };
|
|
358
390
|
}
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
},
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
},
|
|
368
|
-
const { yField: e, config:
|
|
369
|
-
if (typeof e == "string" &&
|
|
370
|
-
|
|
371
|
-
|
|
391
|
+
const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
|
|
392
|
+
s.hideEmptyRowsAndColumns = e;
|
|
393
|
+
}, Us = (s, e) => {
|
|
394
|
+
const t = s.series[0];
|
|
395
|
+
t.heatRulesType = e;
|
|
396
|
+
}, js = (s) => s.series[0].heatRulesType, Ks = (s, e) => {
|
|
397
|
+
const t = s.series[0];
|
|
398
|
+
t.gradientRules = e;
|
|
399
|
+
}, Zs = (s) => s.series[0].gradientRules, _s = (s) => {
|
|
400
|
+
const { yField: e, config: t, layerInfo: a, commonStrings: i } = s, { layerFieldsInfo: r } = a, n = se(1, t), o = Jt(t), l = te(t), c = t.series[0];
|
|
401
|
+
if (typeof e == "string" && o !== e && c) {
|
|
402
|
+
if (c.y = e, Ut(t), o === n || l) {
|
|
403
|
+
const p = R(r, e);
|
|
404
|
+
E(t, 1, p);
|
|
405
|
+
}
|
|
406
|
+
Re({ commonStrings: i, config: t, layerInfo: a });
|
|
372
407
|
}
|
|
373
|
-
},
|
|
374
|
-
const { binning: e, config:
|
|
375
|
-
if (
|
|
376
|
-
const
|
|
377
|
-
E(
|
|
408
|
+
}, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
|
|
409
|
+
const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
|
|
410
|
+
if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
411
|
+
const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
412
|
+
E(t, 0, r);
|
|
378
413
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
414
|
+
z({ axisIndex: 0, commonStrings: a, config: t });
|
|
415
|
+
}, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
|
|
416
|
+
const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
|
|
417
|
+
if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
418
|
+
const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
419
|
+
E(t, 1, r);
|
|
384
420
|
}
|
|
385
|
-
|
|
421
|
+
z({ axisIndex: 1, commonStrings: a, config: t });
|
|
422
|
+
}, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
|
|
386
423
|
e.orderOptions ??= {};
|
|
387
|
-
const
|
|
424
|
+
const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[1], n = {
|
|
388
425
|
...e.orderOptions.data ?? {},
|
|
389
|
-
orderType:
|
|
426
|
+
orderType: L.MultiAxes
|
|
390
427
|
};
|
|
391
|
-
|
|
392
|
-
},
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
},
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
},
|
|
399
|
-
const
|
|
400
|
-
|
|
401
|
-
},
|
|
402
|
-
const { field: e, config:
|
|
403
|
-
|
|
428
|
+
a === ne.customSort && t === L.Category && (n.orderByX = [...s]), r === ne.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
429
|
+
}, Gs = (s, e) => {
|
|
430
|
+
const t = e.series[0];
|
|
431
|
+
t.gridLine && (t.gridLine.width = s);
|
|
432
|
+
}, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
|
|
433
|
+
const t = e.series[0], a = s?.length === 4 && s.every((i) => typeof i == "number");
|
|
434
|
+
t.gridLine && a && (t.gridLine.color = s);
|
|
435
|
+
}, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
|
|
436
|
+
const t = e.legend;
|
|
437
|
+
t && (t.position = s);
|
|
438
|
+
}, ii = (s) => s.legend?.position ?? Ft.Bottom, ai = (s) => s.series[0].query?.outStatistics?.[0]?.onStatisticField, ri = (s) => {
|
|
439
|
+
const { field: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0].query?.outStatistics?.[0], n = re(t, a, i);
|
|
440
|
+
r ? (r.onStatisticField = e, r.outStatisticFieldName = `${r.statisticType}_${e}`) : t.series[0].query = {
|
|
404
441
|
outStatistics: [
|
|
405
442
|
{
|
|
406
443
|
onStatisticField: e,
|
|
407
|
-
outStatisticFieldName: `${
|
|
408
|
-
statisticType:
|
|
444
|
+
outStatisticFieldName: `${v.Count}_${e}`,
|
|
445
|
+
statisticType: v.Count
|
|
409
446
|
}
|
|
410
447
|
]
|
|
411
|
-
}, n &&
|
|
412
|
-
},
|
|
413
|
-
const { aggregationType: e, config:
|
|
414
|
-
|
|
415
|
-
},
|
|
416
|
-
e.nullPolicy =
|
|
417
|
-
},
|
|
418
|
-
e.series[0].emptyCells =
|
|
419
|
-
},
|
|
420
|
-
e.series[0].emptyCells ? e.series[0].emptyCells.text =
|
|
421
|
-
},
|
|
422
|
-
e.includeLeapDay =
|
|
423
|
-
},
|
|
424
|
-
e.series[0].emptyCells ? e.series[0].emptyCells.symbol =
|
|
448
|
+
}, n && t.title && (t.title.content.text = j(t, a, i));
|
|
449
|
+
}, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, oi = (s) => {
|
|
450
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0]?.query?.outStatistics?.[0], n = re(t, a, i);
|
|
451
|
+
r && e !== v.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === v.Count || e === v.Sum) && is(H.Zero, t), n && t.title && (t.title.content.text = j(t, a, i));
|
|
452
|
+
}, li = (s) => s.nullPolicy, is = (s, e) => {
|
|
453
|
+
e.nullPolicy = s;
|
|
454
|
+
}, ui = (s) => s.series[0].emptyCells, ci = (s, e) => {
|
|
455
|
+
e.series[0].emptyCells = s;
|
|
456
|
+
}, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
|
|
457
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
|
|
458
|
+
}, mi = (s) => s.includeLeapDay, gi = (s, e) => {
|
|
459
|
+
e.includeLeapDay = s;
|
|
460
|
+
}, pi = (s) => s.series[0].emptyCells?.symbol, fi = (s, e) => {
|
|
461
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = s : e.series[0].emptyCells = { symbol: s };
|
|
425
462
|
};
|
|
426
|
-
function
|
|
427
|
-
return
|
|
463
|
+
function Si(s) {
|
|
464
|
+
return s.viewType;
|
|
428
465
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
466
|
+
function Fi(s, e) {
|
|
467
|
+
mt(e) || (e.viewType = s);
|
|
431
468
|
}
|
|
432
|
-
function
|
|
433
|
-
return
|
|
469
|
+
function xi(s) {
|
|
470
|
+
return s.series[0].classBreaksRules?.breaksCount ?? X.classBreaks.breaksCount;
|
|
434
471
|
}
|
|
435
|
-
function
|
|
436
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount =
|
|
437
|
-
breaksCount:
|
|
472
|
+
function hi(s, e) {
|
|
473
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? X.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
474
|
+
breaksCount: s ?? X.classBreaks.breaksCount
|
|
438
475
|
};
|
|
439
476
|
}
|
|
440
|
-
function
|
|
441
|
-
return
|
|
477
|
+
function Ti(s) {
|
|
478
|
+
return s.series[0].classBreaksRules?.classificationMethod;
|
|
442
479
|
}
|
|
443
|
-
function
|
|
444
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod =
|
|
445
|
-
classificationMethod:
|
|
446
|
-
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ??
|
|
480
|
+
function Bi(s, e) {
|
|
481
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = s : e.series[0].classBreaksRules = {
|
|
482
|
+
classificationMethod: s
|
|
483
|
+
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? X.classBreaks.breaksCount;
|
|
447
484
|
}
|
|
448
|
-
function
|
|
449
|
-
e.firstDayOfWeek =
|
|
485
|
+
function Ci(s, e) {
|
|
486
|
+
e.firstDayOfWeek = s;
|
|
450
487
|
}
|
|
451
|
-
function
|
|
452
|
-
return
|
|
488
|
+
function bi(s) {
|
|
489
|
+
return s.firstDayOfWeek;
|
|
453
490
|
}
|
|
454
|
-
function
|
|
455
|
-
return
|
|
491
|
+
function Ai(s) {
|
|
492
|
+
return s.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
456
493
|
}
|
|
457
|
-
function
|
|
494
|
+
function vi(s, e) {
|
|
458
495
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
459
496
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
460
|
-
name:
|
|
497
|
+
name: s
|
|
461
498
|
} : e.series[0].classBreaksRules = {
|
|
462
499
|
colorRampInfo: {
|
|
463
|
-
name:
|
|
500
|
+
name: s,
|
|
464
501
|
flipped: !1
|
|
465
502
|
}
|
|
466
503
|
};
|
|
467
504
|
}
|
|
468
|
-
function
|
|
469
|
-
return
|
|
505
|
+
function Ii(s) {
|
|
506
|
+
return s.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
470
507
|
}
|
|
471
|
-
function
|
|
508
|
+
function Li(s, e) {
|
|
472
509
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
473
510
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
474
|
-
flipped:
|
|
511
|
+
flipped: s
|
|
475
512
|
} : e.series[0].classBreaksRules = {
|
|
476
513
|
colorRampInfo: {
|
|
477
|
-
flipped:
|
|
514
|
+
flipped: s
|
|
478
515
|
}
|
|
479
516
|
};
|
|
480
517
|
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
let
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
518
|
+
const as = [
|
|
519
|
+
k.DayOfMonth,
|
|
520
|
+
k.MonthOfYear
|
|
521
|
+
], Te = (s) => {
|
|
522
|
+
let e;
|
|
523
|
+
return Z(s) ? e = ue() : (Y(s) || _(s)) && (e = Q()), e;
|
|
524
|
+
}, Be = (s) => Y(s) || _(s), Ce = (s) => {
|
|
525
|
+
const { axisIndex: e, commonStrings: t, config: a, valueFormat: i } = s, r = a.axes?.[e]?.valueFormat;
|
|
526
|
+
i !== void 0 && r?.type !== i.type && Ie({ config: a, commonStrings: t, valueFormat: i, axisIndex: e });
|
|
527
|
+
}, rs = (s, e) => {
|
|
528
|
+
let t;
|
|
529
|
+
return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
|
|
530
|
+
}, be = (s, e) => s.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ae = (s, e) => {
|
|
531
|
+
let t = as[s];
|
|
532
|
+
return s === 0 && e?.unit === k.DayOfWeek ? t = k.HourOfDay : s === 1 && e?.unit === k.HourOfDay && (t = k.DayOfWeek), {
|
|
533
|
+
type: T.CalendarDateParts,
|
|
534
|
+
unit: t
|
|
535
|
+
};
|
|
536
|
+
}, ns = (s) => {
|
|
537
|
+
let e = {};
|
|
538
|
+
switch (s.unit) {
|
|
539
|
+
case k.DayOfMonth:
|
|
540
|
+
e = { day: "2-digit" };
|
|
541
|
+
break;
|
|
542
|
+
case k.DayOfWeek:
|
|
543
|
+
e = { weekday: "short" };
|
|
544
|
+
break;
|
|
545
|
+
case k.HourOfDay:
|
|
546
|
+
e = { hour: "numeric", hour12: !1 };
|
|
547
|
+
break;
|
|
548
|
+
case k.MonthOfYear:
|
|
549
|
+
e = { month: "short" };
|
|
550
|
+
break;
|
|
551
|
+
default:
|
|
552
|
+
e = Q().intlOptions;
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
return {
|
|
556
|
+
type: T.DateAxisFormat,
|
|
557
|
+
intlOptions: e
|
|
558
|
+
};
|
|
559
|
+
}, ve = (s) => {
|
|
560
|
+
const { axisIndex: e, binning: t, commonStrings: a, config: i, fieldName: r, layerInfo: n } = s, o = i.series[0], l = se(e, i), c = R(n.layerFieldsInfo, r);
|
|
561
|
+
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(a, t.unit) || l === a.xAxis) && E(i, e, be(a, t.unit));
|
|
562
|
+
}, z = (s) => {
|
|
563
|
+
const { axisIndex: e, commonStrings: t, config: a } = s, i = rs(a, e), r = i ? ns(i) : void 0;
|
|
564
|
+
Ie({ config: a, commonStrings: t, valueFormat: r, axisIndex: e });
|
|
565
|
+
}, Re = (s) => {
|
|
566
|
+
const { commonStrings: e, config: t, layerInfo: a } = s, i = t.series[0]?.x ?? "", r = t.series[0]?.y ?? "", n = Se(a.layerFieldsInfo, i), o = Se(a.layerFieldsInfo, r), l = Te(n), c = Te(o), p = Be(n) && Be(o), g = Z(n) && Z(o);
|
|
567
|
+
if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
|
|
568
|
+
const d = es(t) === void 0, m = ts(t) === void 0;
|
|
569
|
+
d && (ve({
|
|
570
|
+
axisIndex: 0,
|
|
571
|
+
binning: Ae(0, t.series[0].yTemporalBinning),
|
|
572
|
+
commonStrings: e,
|
|
573
|
+
config: t,
|
|
574
|
+
fieldName: i,
|
|
575
|
+
layerInfo: a
|
|
576
|
+
}), z({
|
|
577
|
+
axisIndex: 0,
|
|
578
|
+
commonStrings: e,
|
|
579
|
+
config: t
|
|
580
|
+
})), m && (ve({
|
|
581
|
+
axisIndex: 1,
|
|
582
|
+
binning: Ae(1, t.series[0].xTemporalBinning),
|
|
583
|
+
commonStrings: e,
|
|
584
|
+
config: t,
|
|
585
|
+
fieldName: r,
|
|
586
|
+
layerInfo: a
|
|
587
|
+
}), z({
|
|
588
|
+
axisIndex: 1,
|
|
589
|
+
commonStrings: e,
|
|
590
|
+
config: t
|
|
591
|
+
}));
|
|
592
|
+
}
|
|
593
|
+
g && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
|
|
594
|
+
};
|
|
595
|
+
function os(s) {
|
|
596
|
+
const e = {};
|
|
597
|
+
return s.series.forEach((t) => {
|
|
598
|
+
Dt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
|
|
599
|
+
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
600
|
+
}
|
|
601
|
+
function ie(s) {
|
|
602
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, o = U(r?.layer).idField;
|
|
603
|
+
let l;
|
|
604
|
+
const c = i.series[e ?? 0];
|
|
605
|
+
let p = !1, g = !1, d = !1;
|
|
606
|
+
if (c === void 0) {
|
|
607
|
+
const B = i.series;
|
|
608
|
+
p = B.slice(0, e).every((C) => O(C)), g = B.slice(0, e).every((C) => V(C)), d = B.slice(0, e).every((C) => Fe(C));
|
|
489
609
|
} else
|
|
490
|
-
|
|
491
|
-
|
|
610
|
+
p = O(c), g = V(c), d = Fe(c);
|
|
611
|
+
p ? l = bt({
|
|
492
612
|
commonStrings: n,
|
|
493
613
|
seriesIndex: e,
|
|
494
614
|
objectIDField: o
|
|
495
|
-
}) :
|
|
615
|
+
}) : g ? l = At({
|
|
496
616
|
commonStrings: n,
|
|
497
617
|
seriesIndex: e,
|
|
498
618
|
objectIDField: o
|
|
499
|
-
}) :
|
|
619
|
+
}) : d ? l = vt(n, o) : l = It({
|
|
500
620
|
seriesIndex: e,
|
|
501
621
|
objectIDField: o,
|
|
502
622
|
commonStrings: n
|
|
503
623
|
});
|
|
504
|
-
const
|
|
505
|
-
...
|
|
506
|
-
x:
|
|
624
|
+
const m = i.series[0]?.dataLabels, y = "nullCategory" in i.series[0] ? os(i) : void 0, u = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, S = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, x = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, f = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, A = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, b = {
|
|
625
|
+
...l,
|
|
626
|
+
x: t,
|
|
507
627
|
y: "",
|
|
508
628
|
dataLabels: {
|
|
509
|
-
...
|
|
510
|
-
type:
|
|
511
|
-
content: { ...
|
|
512
|
-
visible:
|
|
513
|
-
}
|
|
629
|
+
...l.dataLabels,
|
|
630
|
+
type: l.dataLabels?.type ?? T.Text,
|
|
631
|
+
content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
|
|
632
|
+
visible: m?.visible ?? !1
|
|
633
|
+
},
|
|
634
|
+
...y !== void 0 ? { nullCategory: y } : {},
|
|
635
|
+
...u !== void 0 ? { binTemporalData: u } : {},
|
|
636
|
+
...S !== void 0 ? { classBreakRules: S } : {},
|
|
637
|
+
...F !== void 0 ? { xTemporalBinning: F } : {},
|
|
638
|
+
...x !== void 0 ? { yTemporalBinning: x } : {},
|
|
639
|
+
...f !== void 0 ? { emptyCells: f } : {}
|
|
514
640
|
};
|
|
515
|
-
if (
|
|
516
|
-
groupByFieldsForStatistics: [
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
641
|
+
if (b.query = {
|
|
642
|
+
groupByFieldsForStatistics: [t],
|
|
643
|
+
...A !== void 0 ? { fetchNullValues: A } : {}
|
|
644
|
+
}, a !== v.NoAggregation && o !== void 0) {
|
|
645
|
+
const B = `${a}_${o}_0`.toUpperCase();
|
|
646
|
+
b.y = B, b.query.outStatistics = [
|
|
520
647
|
{
|
|
521
|
-
statisticType:
|
|
648
|
+
statisticType: a,
|
|
522
649
|
onStatisticField: o,
|
|
523
|
-
outStatisticFieldName:
|
|
650
|
+
outStatisticFieldName: B
|
|
524
651
|
}
|
|
525
652
|
];
|
|
526
653
|
}
|
|
527
|
-
if (
|
|
528
|
-
let
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
unit: p
|
|
534
|
-
};
|
|
535
|
-
}
|
|
654
|
+
if (I(i.series[0]) && I(b)) {
|
|
655
|
+
let B = wt(i);
|
|
656
|
+
B === le.Quarter && (B = le.Month), b.temporalBinning = {
|
|
657
|
+
...i.series[0]?.temporalBinning,
|
|
658
|
+
unit: B
|
|
659
|
+
};
|
|
536
660
|
}
|
|
537
|
-
return
|
|
661
|
+
return G(b);
|
|
538
662
|
}
|
|
539
|
-
function j(
|
|
540
|
-
const { layerFieldsInfo:
|
|
541
|
-
let
|
|
542
|
-
if (
|
|
663
|
+
function j(s, e, t) {
|
|
664
|
+
const { layerFieldsInfo: a } = e, { idField: i, isTraditionalTypeOID: r } = U(e.layer), n = M(s), o = K(s), l = we(s), c = ae(s), p = r && (o.length === 0 || o.includes(i)), g = Ct(l, t), d = p ? "" : o.map((f) => R(a ?? [], f)).join(", "), m = R(a ?? [], n), y = R(a ?? [], c), u = s.series.some((f) => P(f)), S = u ? "category" : "xAxisField", F = m;
|
|
665
|
+
let x = "";
|
|
666
|
+
if (ge({
|
|
543
667
|
fieldName: n,
|
|
544
668
|
numericFields: o,
|
|
545
|
-
fieldList:
|
|
669
|
+
fieldList: a
|
|
546
670
|
}))
|
|
547
|
-
|
|
548
|
-
aggregationType:
|
|
549
|
-
aggregationFields:
|
|
671
|
+
x = w(t.titleLabels.aggrTypeOfAggrFields, {
|
|
672
|
+
aggregationType: g,
|
|
673
|
+
aggregationFields: d
|
|
550
674
|
});
|
|
551
|
-
else if (
|
|
552
|
-
const
|
|
553
|
-
if (
|
|
554
|
-
const
|
|
555
|
-
|
|
556
|
-
aggregationType:
|
|
557
|
-
[
|
|
675
|
+
else if (l === v.NoAggregation) {
|
|
676
|
+
const f = p ? i : d;
|
|
677
|
+
if (c === "") {
|
|
678
|
+
const A = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
679
|
+
x = w(t.titleLabels[A], {
|
|
680
|
+
aggregationType: f,
|
|
681
|
+
[S]: F
|
|
558
682
|
});
|
|
559
683
|
} else {
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
aggregationType:
|
|
563
|
-
[
|
|
684
|
+
const A = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
685
|
+
x = w(t.titleLabels[A], {
|
|
686
|
+
aggregationType: f,
|
|
687
|
+
[S]: F,
|
|
564
688
|
splitByField: y
|
|
565
689
|
});
|
|
566
690
|
}
|
|
567
|
-
} else if (
|
|
568
|
-
if (
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
aggregationType:
|
|
572
|
-
[
|
|
691
|
+
} else if (l === v.Count)
|
|
692
|
+
if (c === "") {
|
|
693
|
+
const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
694
|
+
x = w(t.titleLabels[f], {
|
|
695
|
+
aggregationType: g,
|
|
696
|
+
[S]: F
|
|
573
697
|
});
|
|
574
698
|
} else {
|
|
575
|
-
const
|
|
576
|
-
|
|
577
|
-
aggregationType:
|
|
578
|
-
[
|
|
699
|
+
const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
700
|
+
x = w(t.titleLabels[f], {
|
|
701
|
+
aggregationType: g,
|
|
702
|
+
[S]: F,
|
|
579
703
|
splitByField: y
|
|
580
704
|
});
|
|
581
705
|
}
|
|
582
|
-
else if (
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
aggregationType:
|
|
586
|
-
aggregationField:
|
|
587
|
-
[
|
|
706
|
+
else if (c !== "") {
|
|
707
|
+
const f = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
708
|
+
x = w(t.titleLabels[f], {
|
|
709
|
+
aggregationType: g,
|
|
710
|
+
aggregationField: d,
|
|
711
|
+
[S]: F,
|
|
588
712
|
splitByField: y
|
|
589
713
|
});
|
|
590
714
|
} else if (o.length > 0) {
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
aggregationType:
|
|
594
|
-
aggregationFields:
|
|
595
|
-
[
|
|
715
|
+
const f = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
716
|
+
x = w(t.titleLabels[f], {
|
|
717
|
+
aggregationType: g,
|
|
718
|
+
aggregationFields: d,
|
|
719
|
+
[S]: F
|
|
596
720
|
});
|
|
597
721
|
}
|
|
598
|
-
return
|
|
722
|
+
return x;
|
|
599
723
|
}
|
|
600
|
-
const
|
|
601
|
-
where:
|
|
724
|
+
const qe = (s) => me({
|
|
725
|
+
where: s.query?.where,
|
|
602
726
|
normalize: !1,
|
|
603
727
|
escape: !1
|
|
604
|
-
}) ?? "",
|
|
605
|
-
(
|
|
606
|
-
const e =
|
|
607
|
-
return
|
|
728
|
+
}) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, ae = We(
|
|
729
|
+
(s) => {
|
|
730
|
+
const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
731
|
+
return gt(s?.series?.[0]?.query?.where) ? "" : e;
|
|
608
732
|
},
|
|
609
|
-
(
|
|
610
|
-
),
|
|
733
|
+
(s) => s?.series?.[0]?.query?.where
|
|
734
|
+
), K = (s) => {
|
|
611
735
|
let e = [];
|
|
612
|
-
if (
|
|
613
|
-
e =
|
|
614
|
-
const
|
|
615
|
-
return
|
|
736
|
+
if (ae(s) === "")
|
|
737
|
+
e = s?.series.map((t) => {
|
|
738
|
+
const a = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
|
|
739
|
+
return a?.length > 0 ? a : t.y;
|
|
616
740
|
}).flat() ?? [];
|
|
617
741
|
else {
|
|
618
|
-
const
|
|
619
|
-
e =
|
|
742
|
+
const t = s?.series?.[0], a = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
|
|
743
|
+
e = a !== void 0 ? [a] : [];
|
|
620
744
|
}
|
|
621
|
-
return e.filter((
|
|
745
|
+
return e.filter((t) => t !== "");
|
|
622
746
|
};
|
|
623
|
-
function
|
|
624
|
-
const {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
747
|
+
function Pe(s) {
|
|
748
|
+
const { splitByField: e, numericFields: t, layer: a, seriesIndex: i } = s, r = U(a).idField ?? "";
|
|
749
|
+
return e === "" ? t[i] ?? r : t[0] ?? r;
|
|
750
|
+
}
|
|
751
|
+
function ls(s) {
|
|
752
|
+
const { numericFields: e, aggregationType: t, config: a, layerInfo: i } = s;
|
|
753
|
+
let r = !1;
|
|
754
|
+
t === v.Count ? r = !0 : t === v.NoAggregation && (r = e.every((l) => {
|
|
755
|
+
const c = i.layerFieldsInfo.find((p) => p.name === l);
|
|
756
|
+
return c !== void 0 ? xe(c) : !1;
|
|
757
|
+
})), pe(a, 1, r);
|
|
758
|
+
const n = a.series.some((l) => O(l)), o = a.series.some((l) => V(l));
|
|
631
759
|
if (n || o) {
|
|
632
|
-
const
|
|
633
|
-
|
|
760
|
+
const l = M(a), c = i.layerFieldsInfo.find((g) => g.name === l), p = c !== void 0 && xe(c);
|
|
761
|
+
pe(a, 0, p);
|
|
634
762
|
}
|
|
635
763
|
}
|
|
636
|
-
const
|
|
764
|
+
const de = (s) => {
|
|
637
765
|
let e;
|
|
638
|
-
if (
|
|
639
|
-
const
|
|
640
|
-
e = [
|
|
766
|
+
if (W(s)) {
|
|
767
|
+
const t = s.orderOptions?.data?.orderByX ?? [""], a = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
|
|
768
|
+
e = [he(t, i), he(a, r)];
|
|
641
769
|
} else {
|
|
642
|
-
const
|
|
643
|
-
e = [
|
|
770
|
+
const t = s.orderOptions?.data?.orderType ?? L.Category, a = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
|
|
771
|
+
e = [St(a, t)];
|
|
644
772
|
}
|
|
645
773
|
return e;
|
|
646
774
|
};
|
|
647
|
-
function
|
|
648
|
-
const { xAxisField: e, numericFields:
|
|
649
|
-
|
|
650
|
-
const m = Y({
|
|
651
|
-
config: a,
|
|
775
|
+
function us(s) {
|
|
776
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = ie({
|
|
777
|
+
config: i,
|
|
652
778
|
xAxisField: e,
|
|
653
|
-
aggregationType:
|
|
654
|
-
layerInfo:
|
|
779
|
+
aggregationType: a,
|
|
780
|
+
layerInfo: r,
|
|
655
781
|
seriesIndex: 0,
|
|
656
782
|
commonStrings: n
|
|
657
|
-
}),
|
|
658
|
-
config:
|
|
783
|
+
}), c = ee({
|
|
784
|
+
config: i,
|
|
659
785
|
xAxisField: e,
|
|
660
|
-
numericFields:
|
|
661
|
-
aggregationType:
|
|
662
|
-
layer:
|
|
786
|
+
numericFields: t,
|
|
787
|
+
aggregationType: a,
|
|
788
|
+
layer: r.layer,
|
|
789
|
+
fieldList: o
|
|
790
|
+
}).name, p = M(i), g = K(i), d = ge({
|
|
791
|
+
fieldName: p,
|
|
792
|
+
numericFields: g,
|
|
663
793
|
fieldList: o
|
|
664
|
-
}).name,
|
|
665
|
-
...
|
|
666
|
-
id:
|
|
667
|
-
name:
|
|
668
|
-
x:
|
|
669
|
-
y:
|
|
670
|
-
},
|
|
671
|
-
for (const
|
|
672
|
-
|
|
673
|
-
onStatisticField:
|
|
674
|
-
outStatisticFieldName: `${
|
|
675
|
-
statisticType:
|
|
794
|
+
}) ? i.series[0] : void 0, m = `series_${Date.now()}`, y = d?.id ?? m, u = d?.name ?? n.axisLabels.values, F = {
|
|
795
|
+
...d ?? l,
|
|
796
|
+
id: y,
|
|
797
|
+
name: u,
|
|
798
|
+
x: oe,
|
|
799
|
+
y: c
|
|
800
|
+
}, x = [];
|
|
801
|
+
for (const f of t)
|
|
802
|
+
x.push({
|
|
803
|
+
onStatisticField: f,
|
|
804
|
+
outStatisticFieldName: `${f}_0`.toUpperCase(),
|
|
805
|
+
statisticType: a
|
|
676
806
|
});
|
|
677
|
-
|
|
678
|
-
const d = a.series[0];
|
|
679
|
-
return d !== void 0 && (l.id = d.id, (b(l) && b(d) || A(l) && A(d)) && W(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && W(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
|
|
807
|
+
return F.query = { outStatistics: x }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), P(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
|
|
680
808
|
}
|
|
681
|
-
function
|
|
682
|
-
const { xAxisField: e, numericFields:
|
|
683
|
-
let
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
config: a,
|
|
809
|
+
function Ee(s) {
|
|
810
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = U(r.layer).idField, c = [];
|
|
811
|
+
for (let y = 0; y < t.length; y += 1) {
|
|
812
|
+
const u = ie({
|
|
813
|
+
config: i,
|
|
687
814
|
xAxisField: e,
|
|
688
|
-
aggregationType:
|
|
689
|
-
layerInfo:
|
|
690
|
-
seriesIndex:
|
|
815
|
+
aggregationType: a,
|
|
816
|
+
layerInfo: r,
|
|
817
|
+
seriesIndex: y,
|
|
691
818
|
commonStrings: n
|
|
692
|
-
}),
|
|
693
|
-
config:
|
|
819
|
+
}), S = i.series[y]?.y, F = typeof S == "string" && S.trim() !== "" && !o.find((N) => N.name === S) ? S : ee({
|
|
820
|
+
config: i,
|
|
694
821
|
xAxisField: e,
|
|
695
|
-
numericFields:
|
|
696
|
-
aggregationType:
|
|
697
|
-
layer:
|
|
698
|
-
numericFieldIndex:
|
|
822
|
+
numericFields: t,
|
|
823
|
+
aggregationType: a,
|
|
824
|
+
layer: r.layer,
|
|
825
|
+
numericFieldIndex: y,
|
|
699
826
|
fieldList: o
|
|
700
|
-
}).name,
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
827
|
+
}).name, x = t[y], f = i.series.find(
|
|
828
|
+
(N) => N.query?.where === void 0 && (N.query?.outStatistics?.length === 1 && N.query?.outStatistics?.[0]?.onStatisticField === x || N.query?.outStatistics === void 0 && (N.y === x || N.x === x))
|
|
829
|
+
), A = x !== l ? x : u.id, b = f?.id ?? A, B = f?.name ?? R(o, x) ?? b, C = f ?? u, h = {
|
|
830
|
+
...C,
|
|
831
|
+
id: b,
|
|
832
|
+
name: B
|
|
706
833
|
};
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
id: h,
|
|
710
|
-
name: w(o, h)
|
|
711
|
-
});
|
|
712
|
-
let k = h;
|
|
713
|
-
f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
|
|
834
|
+
let $ = x;
|
|
835
|
+
h.query !== void 0 && (a !== v.NoAggregation ? ($ = h.type === T.HeatSeries && f?.type === T.HeatSeries ? x : F, h.query.outStatistics = [
|
|
714
836
|
{
|
|
715
|
-
...
|
|
716
|
-
onStatisticField:
|
|
717
|
-
outStatisticFieldName:
|
|
718
|
-
statisticType:
|
|
837
|
+
...C.query?.outStatistics?.[0] ?? {},
|
|
838
|
+
onStatisticField: x,
|
|
839
|
+
outStatisticFieldName: F,
|
|
840
|
+
statisticType: a
|
|
719
841
|
}
|
|
720
|
-
]) : delete
|
|
721
|
-
const T = a.series.find(
|
|
722
|
-
(S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
|
|
723
|
-
);
|
|
724
|
-
if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
|
|
725
|
-
(b(f) && b(T) || A(f) && A(T)) && W(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
|
|
726
|
-
const S = Y({
|
|
727
|
-
config: a,
|
|
728
|
-
xAxisField: e,
|
|
729
|
-
aggregationType: r,
|
|
730
|
-
layerInfo: i,
|
|
731
|
-
seriesIndex: u,
|
|
732
|
-
commonStrings: n
|
|
733
|
-
});
|
|
734
|
-
f.id = T.id, T.id !== S.id && T.name !== S.name && (f.id = T.id, f.name = T.name), f.assignToSecondValueAxis = T.assignToSecondValueAxis, f.type === v.HeatSeries && T.type === v.HeatSeries && (f.y = T.y, f.heatRulesType = T.heatRulesType);
|
|
735
|
-
}
|
|
736
|
-
m.push(f);
|
|
842
|
+
]) : delete h.query.outStatistics), h.y = $, c.push(h);
|
|
737
843
|
}
|
|
738
|
-
const
|
|
739
|
-
(
|
|
740
|
-
), d =
|
|
741
|
-
(
|
|
844
|
+
const p = c.filter((y) => P(y)), g = c.filter(
|
|
845
|
+
(y) => O(y) || V(y)
|
|
846
|
+
), d = i.series.filter((y) => P(y)), m = i.series.filter(
|
|
847
|
+
(y) => O(y) || V(y)
|
|
742
848
|
);
|
|
743
|
-
return d.length === 1 &&
|
|
849
|
+
return d.length === 1 && p.length === 1 && P(d[0]) && P(p[0]) && (p[0].fillSymbol = d[0].fillSymbol), m.length === 1 && g.length === 1 && ((O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && Me(g[0], m[0]), (O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && (g[0].lineSymbol = m[0].lineSymbol, g[0].markerSymbol = m[0].markerSymbol)), c;
|
|
744
850
|
}
|
|
745
|
-
function
|
|
746
|
-
const { aggregationType: e, config:
|
|
747
|
-
if (
|
|
748
|
-
const
|
|
749
|
-
config:
|
|
851
|
+
function Di(s) {
|
|
852
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: i } = s, { layerFieldsInfo: r, layer: n } = a, o = M(t), l = K(t), c = ae(t), p = re(t, a, i), g = $e(t, a, i);
|
|
853
|
+
if (t.series.forEach((d, m) => {
|
|
854
|
+
const y = ee({
|
|
855
|
+
config: t,
|
|
750
856
|
xAxisField: o,
|
|
751
|
-
numericFields:
|
|
857
|
+
numericFields: l,
|
|
752
858
|
aggregationType: e,
|
|
859
|
+
splitByField: c,
|
|
753
860
|
layer: n,
|
|
754
|
-
seriesIndex:
|
|
755
|
-
numericFieldIndex:
|
|
756
|
-
fieldList:
|
|
861
|
+
seriesIndex: m,
|
|
862
|
+
numericFieldIndex: m,
|
|
863
|
+
fieldList: r
|
|
757
864
|
}).name;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
865
|
+
d.y = y;
|
|
866
|
+
const u = Pe({
|
|
867
|
+
splitByField: c,
|
|
868
|
+
numericFields: l,
|
|
869
|
+
layer: n,
|
|
870
|
+
seriesIndex: m
|
|
871
|
+
}), S = d.query?.outStatistics?.[0]?.onStatisticField ?? u;
|
|
872
|
+
d.query = {
|
|
873
|
+
...d.query,
|
|
874
|
+
outStatistics: e === v.NoAggregation ? void 0 : [
|
|
761
875
|
{
|
|
762
|
-
...
|
|
763
|
-
outStatisticFieldName:
|
|
876
|
+
...d.query?.outStatistics?.[0],
|
|
877
|
+
outStatisticFieldName: y,
|
|
764
878
|
statisticType: e,
|
|
765
|
-
onStatisticField:
|
|
879
|
+
onStatisticField: S
|
|
766
880
|
}
|
|
767
881
|
]
|
|
768
|
-
}
|
|
769
|
-
}),
|
|
770
|
-
const
|
|
771
|
-
config:
|
|
772
|
-
layerInfo:
|
|
773
|
-
commonStrings:
|
|
774
|
-
numericFields:
|
|
882
|
+
}, "temporalBinning" in d && d.temporalBinning !== void 0 && (d.temporalBinning.nullPolicy = e === v.NoAggregation ? H.Interpolate : H.Null), e === v.NoAggregation && Mt(t);
|
|
883
|
+
}), p && t.title && (t.title.content.text = j(t, a, i)), g && t.series[0].type !== T.HeatSeries) {
|
|
884
|
+
const d = ye({
|
|
885
|
+
config: t,
|
|
886
|
+
layerInfo: a,
|
|
887
|
+
commonStrings: i,
|
|
888
|
+
numericFields: l,
|
|
775
889
|
aggregationType: e
|
|
776
890
|
});
|
|
777
|
-
E(
|
|
891
|
+
E(t, 1, d);
|
|
778
892
|
}
|
|
779
893
|
}
|
|
780
|
-
function
|
|
894
|
+
function cs(s) {
|
|
781
895
|
const {
|
|
782
896
|
splitByField: e,
|
|
783
|
-
xAxisField:
|
|
784
|
-
numericFields:
|
|
785
|
-
aggregationType:
|
|
786
|
-
config:
|
|
897
|
+
xAxisField: t,
|
|
898
|
+
numericFields: a,
|
|
899
|
+
aggregationType: i,
|
|
900
|
+
config: r,
|
|
787
901
|
layerInfo: n,
|
|
788
902
|
commonStrings: o,
|
|
789
|
-
splitByFieldInfos:
|
|
790
|
-
} =
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
903
|
+
splitByFieldInfos: l
|
|
904
|
+
} = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: g, splitByFieldType: d } = l, m = Pe({
|
|
905
|
+
splitByField: e,
|
|
906
|
+
numericFields: a,
|
|
907
|
+
layer: c,
|
|
908
|
+
seriesIndex: 0
|
|
909
|
+
});
|
|
910
|
+
let y = [];
|
|
911
|
+
if (g.length === 0) {
|
|
912
|
+
y = Ee({
|
|
913
|
+
xAxisField: t,
|
|
914
|
+
numericFields: a,
|
|
915
|
+
aggregationType: i,
|
|
916
|
+
config: r,
|
|
798
917
|
layerInfo: n,
|
|
799
918
|
commonStrings: o
|
|
800
919
|
});
|
|
801
|
-
for (const
|
|
802
|
-
|
|
920
|
+
for (const u of y)
|
|
921
|
+
u.query && (u.query.where = `${e}=''`);
|
|
803
922
|
} else
|
|
804
|
-
for (let
|
|
805
|
-
const
|
|
806
|
-
config:
|
|
807
|
-
xAxisField:
|
|
808
|
-
numericFields:
|
|
809
|
-
aggregationType:
|
|
923
|
+
for (let u = 0; u < g.length; u += 1) {
|
|
924
|
+
const S = g[u], F = ee({
|
|
925
|
+
config: r,
|
|
926
|
+
xAxisField: t,
|
|
927
|
+
numericFields: a,
|
|
928
|
+
aggregationType: i,
|
|
810
929
|
layer: n.layer,
|
|
811
|
-
seriesIndex:
|
|
930
|
+
seriesIndex: u,
|
|
812
931
|
splitByField: e,
|
|
813
|
-
fieldList:
|
|
814
|
-
}).name,
|
|
815
|
-
config:
|
|
816
|
-
xAxisField:
|
|
817
|
-
aggregationType:
|
|
932
|
+
fieldList: p
|
|
933
|
+
}).name, x = ie({
|
|
934
|
+
config: r,
|
|
935
|
+
xAxisField: t,
|
|
936
|
+
aggregationType: i,
|
|
818
937
|
layerInfo: n,
|
|
819
|
-
seriesIndex:
|
|
938
|
+
seriesIndex: u,
|
|
820
939
|
commonStrings: o
|
|
821
|
-
}), f =
|
|
940
|
+
}), f = Ne({
|
|
822
941
|
queryObject: n.layer,
|
|
823
942
|
fieldName: e,
|
|
824
|
-
fieldValue:
|
|
825
|
-
}),
|
|
943
|
+
fieldValue: S ?? ""
|
|
944
|
+
}), A = `${S}`, b = r.series.find(
|
|
945
|
+
(N) => String(qe(N)).trim().replace(/'/gu, "") === A
|
|
946
|
+
), B = b?.id ?? A, C = b?.name ?? f ?? B, h = b ?? x, $ = {
|
|
826
947
|
...h,
|
|
827
|
-
id:
|
|
828
|
-
name:
|
|
829
|
-
y:
|
|
948
|
+
id: B,
|
|
949
|
+
name: C,
|
|
950
|
+
y: F,
|
|
830
951
|
query: {
|
|
831
952
|
...h.query,
|
|
832
|
-
where: `${e}=${
|
|
833
|
-
outStatistics:
|
|
953
|
+
where: `${e}=${d === Oe.String && S !== null ? `'${S}'` : S}`,
|
|
954
|
+
outStatistics: i !== v.NoAggregation ? [
|
|
834
955
|
{
|
|
835
956
|
...h.query?.outStatistics?.[0] ?? {},
|
|
836
|
-
onStatisticField:
|
|
837
|
-
outStatisticFieldName:
|
|
838
|
-
statisticType:
|
|
957
|
+
onStatisticField: m,
|
|
958
|
+
outStatisticFieldName: F,
|
|
959
|
+
statisticType: i
|
|
839
960
|
}
|
|
840
961
|
] : void 0
|
|
841
962
|
}
|
|
842
963
|
};
|
|
843
|
-
|
|
844
|
-
const I = i.series.find(
|
|
845
|
-
(L) => String(Ce(L)).trim().replace(/'/gu, "") === k
|
|
846
|
-
);
|
|
847
|
-
I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((L) => L.query?.fetchNullValues)), y.push(S);
|
|
964
|
+
y.push($);
|
|
848
965
|
}
|
|
849
|
-
return
|
|
966
|
+
return y;
|
|
850
967
|
}
|
|
851
|
-
const
|
|
968
|
+
const Ni = (s) => {
|
|
852
969
|
const {
|
|
853
970
|
xAxisFieldName: e,
|
|
854
|
-
splitByField:
|
|
855
|
-
numericFields:
|
|
856
|
-
aggregationType:
|
|
857
|
-
config:
|
|
971
|
+
splitByField: t,
|
|
972
|
+
numericFields: a,
|
|
973
|
+
aggregationType: i,
|
|
974
|
+
config: r,
|
|
858
975
|
layerInfo: n,
|
|
859
976
|
commonStrings: o,
|
|
860
|
-
splitByFieldInfos:
|
|
861
|
-
} =
|
|
862
|
-
let f =
|
|
863
|
-
const
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
}), s === "" || r.length > 1 ? Te({
|
|
977
|
+
splitByFieldInfos: l
|
|
978
|
+
} = s, { layerFieldsInfo: c } = n ?? {}, p = G(r), g = Rt(r), d = M(p), m = c.find((h) => h.name === d), y = r.series[0]?.query === void 0, u = c.find((h) => h.name === e), S = re(p, n, o), F = $e(p, n, o), x = ds(p, n);
|
|
979
|
+
let f = Le(r);
|
|
980
|
+
const A = p.series.some((h) => P(h)), b = pt(p.series), B = ft(p.series);
|
|
981
|
+
let C = !1;
|
|
982
|
+
if (Z(u) ? f = ue() : !_(m) && _(u) ? (f = Q(), C = !0) : !Y(m) && Y(u) ? (f = Q(), C = !0) : Y(m) && !Y(u) && (A ? f = ue() : f = Lt(), C = !0), f !== void 0 && Xe(r, o, f), g === 0 && (r.series = [
|
|
983
|
+
ie({ config: r, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
|
|
984
|
+
]), r.series.forEach((h) => {
|
|
985
|
+
h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
|
|
986
|
+
}), t === "" || a.length > 1 ? ge({
|
|
871
987
|
fieldName: e,
|
|
872
|
-
numericFields:
|
|
873
|
-
fieldList:
|
|
874
|
-
}) ?
|
|
875
|
-
config:
|
|
988
|
+
numericFields: a,
|
|
989
|
+
fieldList: c
|
|
990
|
+
}) ? r.series = us({
|
|
991
|
+
config: r,
|
|
876
992
|
layerInfo: n,
|
|
877
993
|
xAxisField: e,
|
|
878
|
-
numericFields:
|
|
879
|
-
aggregationType:
|
|
994
|
+
numericFields: a,
|
|
995
|
+
aggregationType: i,
|
|
880
996
|
commonStrings: o
|
|
881
|
-
}) :
|
|
882
|
-
config:
|
|
997
|
+
}) : r.series = Ee({
|
|
998
|
+
config: r,
|
|
883
999
|
layerInfo: n,
|
|
884
1000
|
xAxisField: e,
|
|
885
|
-
numericFields:
|
|
886
|
-
aggregationType:
|
|
1001
|
+
numericFields: a,
|
|
1002
|
+
aggregationType: i,
|
|
887
1003
|
commonStrings: o
|
|
888
|
-
}) :
|
|
889
|
-
config:
|
|
1004
|
+
}) : l && (r.series = cs({
|
|
1005
|
+
config: r,
|
|
890
1006
|
layerInfo: n,
|
|
891
|
-
splitByField:
|
|
1007
|
+
splitByField: t,
|
|
892
1008
|
xAxisField: e,
|
|
893
|
-
numericFields:
|
|
894
|
-
aggregationType:
|
|
1009
|
+
numericFields: a,
|
|
1010
|
+
aggregationType: i,
|
|
895
1011
|
commonStrings: o,
|
|
896
|
-
splitByFieldInfos:
|
|
897
|
-
})),
|
|
898
|
-
const
|
|
899
|
-
E(
|
|
1012
|
+
splitByFieldInfos: l
|
|
1013
|
+
})), x && r.series[0].type !== T.HeatSeries) {
|
|
1014
|
+
const h = R(c, e);
|
|
1015
|
+
E(r, 0, h);
|
|
900
1016
|
}
|
|
901
|
-
if (
|
|
902
|
-
const
|
|
903
|
-
config:
|
|
1017
|
+
if (F && r.series[0].type !== T.HeatSeries) {
|
|
1018
|
+
const h = ye({
|
|
1019
|
+
config: r,
|
|
904
1020
|
layerInfo: n,
|
|
905
1021
|
commonStrings: o,
|
|
906
|
-
numericFields:
|
|
907
|
-
aggregationType:
|
|
1022
|
+
numericFields: a,
|
|
1023
|
+
aggregationType: i
|
|
908
1024
|
});
|
|
909
|
-
E(
|
|
1025
|
+
E(r, 1, h);
|
|
910
1026
|
}
|
|
911
|
-
if (
|
|
912
|
-
const
|
|
913
|
-
|
|
1027
|
+
if (S && r.title && (r.title.content.text = j(r, n, o)), D({ config: r, value: null, axisIndex: 1, isMax: !1 }), D({ config: r, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: a, aggregationType: i, config: r, layerInfo: n }), (b || B) && (D({ config: r, value: null, axisIndex: 0, isMax: !1 }), D({ config: r, value: null, axisIndex: 0, isMax: !0 }), C && i !== v.NoAggregation && !W(p))) {
|
|
1028
|
+
const h = f?.type === T.DateAxisFormat ? H.Null : H.Interpolate;
|
|
1029
|
+
Et(h, r);
|
|
914
1030
|
}
|
|
915
|
-
|
|
916
|
-
delete
|
|
917
|
-
}) : d && i.series.forEach((B) => {
|
|
918
|
-
B.query && (B.query.fetchNullValues = d);
|
|
919
|
-
}), y && i.series.forEach((B) => {
|
|
920
|
-
(B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = y);
|
|
1031
|
+
W(r) && Re({ commonStrings: o, config: r, layerInfo: n }), r.series.forEach((h) => {
|
|
1032
|
+
y && delete h.query, I(h) && h.binTemporalData === void 0 && u?.type === Oe.TimeOnly && (h.binTemporalData = !1);
|
|
921
1033
|
});
|
|
922
|
-
},
|
|
923
|
-
|
|
1034
|
+
}, Me = (s, e) => {
|
|
1035
|
+
s.markerVisible = e.markerVisible, s.lineSmoothed = e.lineSmoothed, s.showArea = e.showArea, s.areaColor = e.areaColor, s.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (s.lineSymbol = { ...e.lineSymbol, color: s.lineSymbol?.color }), e.markerSymbol && (s.markerSymbol = {
|
|
924
1036
|
...e.markerSymbol,
|
|
925
|
-
color:
|
|
1037
|
+
color: s.markerSymbol?.color
|
|
926
1038
|
});
|
|
927
|
-
},
|
|
928
|
-
const { config: e, seriesIndex:
|
|
1039
|
+
}, Oi = (s) => {
|
|
1040
|
+
const { config: e, seriesIndex: t, layerInfo: a, commonStrings: i } = s, r = e.series?.[t], n = ae(e);
|
|
929
1041
|
let o;
|
|
930
|
-
if (
|
|
931
|
-
o =
|
|
932
|
-
else if (
|
|
933
|
-
const
|
|
934
|
-
|
|
1042
|
+
if (J(e.series) === q.BarAndLineFromFields)
|
|
1043
|
+
o = i.axisLabels.values;
|
|
1044
|
+
else if (Ye(n)) {
|
|
1045
|
+
const c = r.query?.outStatistics?.[0]?.onStatisticField;
|
|
1046
|
+
c !== void 0 && c !== U(a.layer).idField && (o = R(a.layerFieldsInfo, c));
|
|
935
1047
|
} else {
|
|
936
|
-
const
|
|
937
|
-
o =
|
|
938
|
-
queryObject:
|
|
1048
|
+
const c = String(qe(r)).trim().replace(/'/gu, "");
|
|
1049
|
+
o = Ne({
|
|
1050
|
+
queryObject: a.layer,
|
|
939
1051
|
fieldName: n,
|
|
940
|
-
fieldValue:
|
|
941
|
-
}) ??
|
|
1052
|
+
fieldValue: c ?? ""
|
|
1053
|
+
}) ?? c;
|
|
942
1054
|
}
|
|
943
|
-
return o ??
|
|
944
|
-
},
|
|
945
|
-
if (
|
|
946
|
-
|
|
1055
|
+
return o ?? r.id;
|
|
1056
|
+
}, Vi = (s, e) => {
|
|
1057
|
+
if (W(e))
|
|
1058
|
+
ss(s, e);
|
|
947
1059
|
else {
|
|
948
1060
|
e.orderOptions ??= {};
|
|
949
|
-
const
|
|
950
|
-
|
|
951
|
-
orderType:
|
|
952
|
-
orderBy: [...
|
|
1061
|
+
const t = e.orderOptions?.data?.orderType;
|
|
1062
|
+
de(e)[0] === ne.customSort && t === L.Category && (e.orderOptions.data = {
|
|
1063
|
+
orderType: L.Category,
|
|
1064
|
+
orderBy: [...s]
|
|
953
1065
|
});
|
|
954
1066
|
}
|
|
955
|
-
},
|
|
956
|
-
const { config: e, layerInfo:
|
|
957
|
-
let
|
|
958
|
-
return
|
|
959
|
-
layerInfo:
|
|
1067
|
+
}, ki = async (s) => {
|
|
1068
|
+
const { config: e, layerInfo: t, errorStrings: a } = s, i = M(e), r = Le(e)?.type, n = K(e), o = J(e.series);
|
|
1069
|
+
let l = [];
|
|
1070
|
+
return r === T.CategoryAxisFormat && (o === q.BarAndLineFromFields || i === oe ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== oe && t !== void 0 && (l = await He({
|
|
1071
|
+
layerInfo: t,
|
|
960
1072
|
config: e,
|
|
961
|
-
category:
|
|
962
|
-
errorStrings:
|
|
963
|
-
}))),
|
|
1073
|
+
category: i,
|
|
1074
|
+
errorStrings: a
|
|
1075
|
+
}))), l;
|
|
964
1076
|
};
|
|
965
|
-
function
|
|
966
|
-
const
|
|
967
|
-
return
|
|
1077
|
+
function re(s, e, t) {
|
|
1078
|
+
const a = j(s, e, t), i = qt(s), r = te(s);
|
|
1079
|
+
return a === i || r;
|
|
968
1080
|
}
|
|
969
|
-
function
|
|
970
|
-
const
|
|
971
|
-
config:
|
|
1081
|
+
function $e(s, e, t) {
|
|
1082
|
+
const a = ye({
|
|
1083
|
+
config: s,
|
|
972
1084
|
layerInfo: e,
|
|
973
|
-
commonStrings:
|
|
974
|
-
numericFields:
|
|
975
|
-
aggregationType:
|
|
976
|
-
}),
|
|
977
|
-
return
|
|
1085
|
+
commonStrings: t,
|
|
1086
|
+
numericFields: K(s),
|
|
1087
|
+
aggregationType: we(s)
|
|
1088
|
+
}), i = se(1, s), r = te(s);
|
|
1089
|
+
return a === i || r;
|
|
978
1090
|
}
|
|
979
|
-
function
|
|
980
|
-
const
|
|
981
|
-
return
|
|
1091
|
+
function ds(s, e) {
|
|
1092
|
+
const t = R(e.layerFieldsInfo, M(s)), a = se(0, s), i = te(s);
|
|
1093
|
+
return t === a || i;
|
|
982
1094
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
1095
|
+
function Ri(s) {
|
|
1096
|
+
return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
|
|
985
1097
|
}
|
|
986
|
-
function
|
|
987
|
-
e?.series.forEach((
|
|
988
|
-
(
|
|
989
|
-
unit:
|
|
1098
|
+
function qi(s, e) {
|
|
1099
|
+
e?.series.forEach((t) => {
|
|
1100
|
+
I(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
|
|
1101
|
+
unit: le.Day,
|
|
990
1102
|
size: 0,
|
|
991
|
-
timeAggregationType:
|
|
1103
|
+
timeAggregationType: ht.Start,
|
|
992
1104
|
trimIncompleteTimeInterval: !0,
|
|
993
|
-
nullPolicy:
|
|
994
|
-
} : delete
|
|
1105
|
+
nullPolicy: H.Null
|
|
1106
|
+
} : delete t.temporalBinning);
|
|
995
1107
|
});
|
|
996
1108
|
}
|
|
997
1109
|
export {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1110
|
+
Gs as $,
|
|
1111
|
+
ki as A,
|
|
1112
|
+
Vi as B,
|
|
1113
|
+
Ni as C,
|
|
1114
|
+
Ri as D,
|
|
1115
|
+
qi as E,
|
|
1116
|
+
j as F,
|
|
1117
|
+
Re as G,
|
|
1118
|
+
Jt as H,
|
|
1119
|
+
_s as I,
|
|
1120
|
+
Si as J,
|
|
1121
|
+
Fi as K,
|
|
1122
|
+
es as L,
|
|
1123
|
+
Qs as M,
|
|
1124
|
+
ts as N,
|
|
1013
1125
|
zs as O,
|
|
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
|
-
|
|
1126
|
+
xi as P,
|
|
1127
|
+
hi as Q,
|
|
1128
|
+
Ti as R,
|
|
1129
|
+
Bi as S,
|
|
1130
|
+
Ai as T,
|
|
1131
|
+
vi as U,
|
|
1132
|
+
Ii as V,
|
|
1133
|
+
Xt as W,
|
|
1134
|
+
Li as X,
|
|
1135
|
+
Hs as Y,
|
|
1136
|
+
Xs as Z,
|
|
1137
|
+
Js as _,
|
|
1138
|
+
Ms as a,
|
|
1139
|
+
ti as a0,
|
|
1140
|
+
ei as a1,
|
|
1141
|
+
js as a2,
|
|
1142
|
+
Us as a3,
|
|
1143
|
+
Zs as a4,
|
|
1144
|
+
Ks as a5,
|
|
1145
|
+
ai as a6,
|
|
1146
|
+
ri as a7,
|
|
1147
|
+
ni as a8,
|
|
1148
|
+
oi as a9,
|
|
1149
|
+
ii as aa,
|
|
1150
|
+
si as ab,
|
|
1151
|
+
li as ac,
|
|
1152
|
+
is as ad,
|
|
1153
|
+
ui as ae,
|
|
1154
|
+
ci as af,
|
|
1155
|
+
di as ag,
|
|
1156
|
+
yi as ah,
|
|
1157
|
+
mi as ai,
|
|
1158
|
+
gi as aj,
|
|
1159
|
+
bi as ak,
|
|
1160
|
+
Ci as al,
|
|
1161
|
+
pi as am,
|
|
1162
|
+
fi as an,
|
|
1163
|
+
ws as b,
|
|
1164
|
+
Ps as c,
|
|
1165
|
+
K as d,
|
|
1166
|
+
ae as e,
|
|
1167
|
+
Ws as f,
|
|
1168
|
+
we as g,
|
|
1169
|
+
Oi as h,
|
|
1170
|
+
$s as i,
|
|
1171
|
+
Ds as j,
|
|
1172
|
+
Pt as k,
|
|
1173
|
+
wt as l,
|
|
1174
|
+
ks as m,
|
|
1175
|
+
Ns as n,
|
|
1176
|
+
Rs as o,
|
|
1177
|
+
Ys as p,
|
|
1178
|
+
Os as q,
|
|
1179
|
+
Ut as r,
|
|
1180
|
+
ke as s,
|
|
1181
|
+
qs as t,
|
|
1182
|
+
Es as u,
|
|
1183
|
+
Vs as v,
|
|
1184
|
+
Et as w,
|
|
1185
|
+
Mt as x,
|
|
1186
|
+
Di as y,
|
|
1187
|
+
de as z
|
|
1073
1188
|
};
|