@arcgis/charts-components 5.2.0-next.9 → 5.2.0-next.90
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/LICENSE.md +4 -2
- package/README.md +2 -2
- package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
- package/dist/cdn/2B4DKL3R.js +2 -0
- package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
- package/dist/cdn/{VY3KBD6N.js → 2YDNWOWT.js} +1 -1
- package/dist/cdn/3HG6OEAW.js +2 -0
- package/dist/cdn/3K7H52Y5.js +2 -0
- package/dist/cdn/{Y7HBWU3M.js → 3ZKNY2GI.js} +1 -1
- package/dist/cdn/{IYA7HQMS.js → 3ZNZH5XV.js} +1 -1
- package/dist/cdn/44ICH2UX.js +2 -0
- package/dist/cdn/4A42J7HF.js +2 -0
- package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
- package/dist/cdn/{3TZEMBXR.js → 4EWMZYXM.js} +1 -1
- package/dist/cdn/{TFPQDMER.js → 4JBUJYUG.js} +1 -1
- package/dist/cdn/4JMHK7HK.js +2 -0
- package/dist/cdn/{WASEMNYV.js → 4JWNKQ22.js} +1 -1
- package/dist/cdn/4O4L6CM3.js +2 -0
- package/dist/cdn/4QQRIMTI.js +2 -0
- package/dist/cdn/4VW736DF.js +2 -0
- package/dist/cdn/54LUEUIT.js +2 -0
- package/dist/cdn/57PMXO2G.js +2 -0
- package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
- package/dist/cdn/{XY4TRZCG.js → 5JV6PU34.js} +1 -1
- package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
- package/dist/cdn/5YBMIR4F.js +2 -0
- package/dist/cdn/62GSQDTE.js +2 -0
- package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
- package/dist/cdn/65HVRSR6.js +2 -0
- package/dist/cdn/6K6Z6CQE.js +2 -0
- package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
- package/dist/cdn/73DFT5MR.js +2 -0
- package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
- package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
- package/dist/cdn/7HANUCEA.js +2 -0
- package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
- package/dist/cdn/{5SIAOUPO.js → AI2WUG3K.js} +1 -1
- package/dist/cdn/{XYKXBWIT.js → AKEVK6VK.js} +1 -1
- package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
- package/dist/cdn/{AASL4RKT.js → B4HOQOHS.js} +1 -1
- package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
- package/dist/cdn/{MK5ZYSOD.js → BG4CYK7C.js} +1 -1
- package/dist/cdn/BHJHX65O.js +2 -0
- package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
- package/dist/cdn/BYSUABOV.js +2 -0
- package/dist/cdn/BZEYWH2F.js +2 -0
- package/dist/cdn/BZIGQJAH.js +2 -0
- package/dist/cdn/{S3ZSZXYG.js → C6UUBWI2.js} +1 -1
- package/dist/cdn/CDWFPVYG.js +2 -0
- package/dist/cdn/{FWAXKDYV.js → CHHARRJP.js} +1 -1
- package/dist/cdn/{2GJX5OO6.js → CKRZTUGB.js} +1 -1
- package/dist/cdn/COSE26XR.js +2 -0
- package/dist/cdn/CPDE3ZSY.js +2 -0
- package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
- package/dist/cdn/{FOYOG3G7.js → D3ZXHZRV.js} +1 -1
- package/dist/cdn/D5O2M65G.js +2 -0
- package/dist/cdn/D7LBGWWL.js +2 -0
- package/dist/cdn/{ULWJ57VT.js → DF2SKHUD.js} +1 -1
- package/dist/cdn/DLCJMSYG.js +2 -0
- package/dist/cdn/DOE5S7EP.js +2 -0
- package/dist/cdn/{WAINRCCJ.js → E45CPXW6.js} +1 -1
- package/dist/cdn/EFXNPF4V.js +2 -0
- package/dist/cdn/ELNZ7PTF.js +2 -0
- package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
- package/dist/cdn/{N5ZUO6F3.js → ESBQKSZF.js} +1 -1
- package/dist/cdn/F66W272X.js +2 -0
- package/dist/cdn/F6VXAPTT.js +2 -0
- package/dist/cdn/{3JYZJUOM.js → FPM6WDQ4.js} +1 -1
- package/dist/cdn/{SSQ3VCZ2.js → FXBSBXWY.js} +1 -1
- package/dist/cdn/{H3EXGCE7.js → G7W2RL4I.js} +1 -1
- package/dist/cdn/GK6IJBRW.js +2 -0
- package/dist/cdn/GUMN6KPP.js +2 -0
- package/dist/cdn/{73BVFUAA.js → GUWBPR2H.js} +1 -1
- package/dist/cdn/GVJF3VFV.js +2 -0
- package/dist/cdn/{CHQDKVVQ.js → H2NVXIPH.js} +2 -2
- package/dist/cdn/H4R2P2BO.js +2 -0
- package/dist/cdn/HIVJRWLF.js +2 -0
- package/dist/cdn/{UYXCGSXU.js → HPNWQANQ.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → HSIYQNVK.js} +1 -1
- package/dist/cdn/{ANN3O54W.js → HVWOLFLT.js} +1 -1
- package/dist/cdn/HZEGDF6W.js +2 -0
- package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
- package/dist/cdn/{7QXRWMUN.js → IBLGAXGT.js} +1 -1
- package/dist/cdn/{LROW4Y6O.js → IC7XUYKD.js} +1 -1
- package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
- package/dist/cdn/IGE2Z7GO.js +2 -0
- package/dist/cdn/IHDWXIBS.js +3 -0
- package/dist/cdn/IIV6X3KV.js +2 -0
- package/dist/cdn/{RSNZMJ6I.js → IUZFB3JE.js} +1 -1
- package/dist/cdn/JSPNXGH3.js +2 -0
- package/dist/cdn/JXAPOWHG.js +2 -0
- package/dist/cdn/{RCK5VONL.js → KAUOH4F3.js} +1 -1
- package/dist/cdn/KHC2DMSU.js +2 -0
- package/dist/cdn/{PRFJNHPS.js → KHWZ54IX.js} +1 -1
- package/dist/cdn/{N4L5KE23.js → KIIS7OLN.js} +1 -1
- package/dist/cdn/KJAMXKR3.js +2 -0
- package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
- package/dist/cdn/KPEBWOLJ.js +2 -0
- package/dist/cdn/KQUI4CT6.js +2 -0
- package/dist/cdn/KVWM73YN.js +2 -0
- package/dist/cdn/KYCNUCTQ.js +2 -0
- package/dist/cdn/KZ4SCRQT.js +2 -0
- package/dist/cdn/KZSCAJDG.js +2 -0
- package/dist/cdn/L5JZ5COY.js +2 -0
- package/dist/cdn/L6IM34J7.js +2 -0
- package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
- package/dist/cdn/LCJVASMQ.js +2 -0
- package/dist/cdn/{QR2OOC4D.js → LCRLYOX6.js} +1 -1
- package/dist/cdn/LJJPOUVA.js +2 -0
- package/dist/cdn/LKC6J4IQ.js +2 -0
- package/dist/cdn/LU7UO6PR.js +2 -0
- package/dist/cdn/LZ3ZRY2F.js +2 -0
- package/dist/cdn/{YKDW7ZW3.js → MCWIIGOW.js} +1 -1
- package/dist/cdn/MF2ZBHWI.js +2 -0
- package/dist/cdn/MTFWTSTG.js +2 -0
- package/dist/cdn/{BDGHBTPU.js → MW6VSJEF.js} +1 -1
- package/dist/cdn/{JRN2TZSV.js → N4XXKTCN.js} +1 -1
- package/dist/cdn/NGGJIQHT.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/NYR4K242.js +2 -0
- package/dist/cdn/OCT2KA4Q.js +2 -0
- 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/OPMACXLA.js +2 -0
- package/dist/cdn/{VRZ2SY6M.js → OQFM5DBD.js} +1 -1
- package/dist/cdn/OQQIDPDH.js +2 -0
- package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → P3AYFJRV.js} +1 -1
- package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
- package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
- package/dist/cdn/{4OH4NSIW.js → PSQDO4QK.js} +1 -1
- package/dist/cdn/PWJBGZPW.js +2 -0
- package/dist/cdn/{2OHFSVV5.js → PWSEK3XV.js} +1 -1
- package/dist/cdn/QBBUOEKF.js +4 -0
- package/dist/cdn/QFXCVZYG.js +2 -0
- package/dist/cdn/QIBUTVUN.js +2 -0
- package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
- package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
- package/dist/cdn/{X2LW7GTR.js → QOQ5QNZV.js} +1 -1
- package/dist/cdn/QVLDIB2N.js +2 -0
- package/dist/cdn/QYRHZJH3.js +2 -0
- package/dist/cdn/RAJO727X.js +2 -0
- package/dist/cdn/RCAJJ24P.js +2 -0
- package/dist/cdn/RPUEIRTH.js +2 -0
- package/dist/cdn/SBJGOYJL.js +2 -0
- package/dist/cdn/SBZKGQBV.js +2 -0
- package/dist/cdn/SJBJ2N5C.js +104 -0
- package/dist/cdn/{OXYJKZEP.js → SLQPIX6X.js} +1 -1
- package/dist/cdn/SMTDJE55.js +2 -0
- package/dist/cdn/SOR4DYKA.js +2 -0
- package/dist/cdn/SQHEWY2J.js +2 -0
- package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
- package/dist/cdn/SZNZAD56.js +2 -0
- package/dist/cdn/{ZBIVDGNH.js → SZXVQMQV.js} +1 -1
- package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
- package/dist/cdn/{AK7X7SGI.js → TENIFMA5.js} +1 -1
- package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
- package/dist/cdn/{VDKFC44J.js → TVKP2GAI.js} +1 -1
- package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
- package/dist/cdn/ULF3LG3W.js +2 -0
- package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
- package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
- package/dist/cdn/UZHQF5CV.js +2 -0
- package/dist/cdn/VBDLVCPP.js +2 -0
- package/dist/cdn/VCBFPEET.js +2 -0
- package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
- package/dist/cdn/{I6UPUSLQ.js → VQLXOQMY.js} +1 -1
- package/dist/cdn/VQU2TVX7.js +3 -0
- package/dist/cdn/VVOQ4Q2X.js +2 -0
- package/dist/cdn/{Y6ZCTPJW.js → WJY4AWHX.js} +1 -1
- package/dist/cdn/{L47EGLUH.js → WNDLNCF7.js} +1 -1
- package/dist/cdn/WOGALV3T.js +2 -0
- package/dist/cdn/{ZAHVBXAQ.js → WPLJ5BXE.js} +1 -1
- package/dist/cdn/WTABMFFY.js +2 -0
- package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
- package/dist/cdn/XW5I2M45.js +2 -0
- package/dist/cdn/XYJJ2PIL.js +2 -0
- package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
- package/dist/cdn/{SERX6V5M.js → YNED6356.js} +1 -1
- package/dist/cdn/YOUTTWJN.js +2 -0
- package/dist/cdn/YQL5A2WS.js +2 -0
- package/dist/cdn/YX7WAUQZ.js +2 -0
- package/dist/cdn/{XDMGH7YU.js → YZCWFNPW.js} +1 -1
- package/dist/cdn/Z4ZXC4GO.js +45 -0
- package/dist/cdn/{2XXW3WF3.js → ZEQF2W7Y.js} +1 -1
- package/dist/cdn/ZFHU5I2O.js +2 -0
- package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
- package/dist/cdn/{GQ3TDTO5.js → ZO4GRLG6.js} +1 -1
- package/dist/cdn/{OFWEHJDH.js → ZYK4DWCN.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/assets/common/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/interfaces.d.ts +46 -20
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +37 -45
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +46 -38
- package/dist/chunks/box-plot-data.js +291 -274
- package/dist/chunks/box-plot-model.js +143 -130
- package/dist/chunks/chart-model.js +194 -153
- package/dist/chunks/chart-object-literals.js +26 -25
- package/dist/chunks/chart-ui-utils.js +148 -66
- package/dist/chunks/chart-ui-utils2.js +68 -149
- package/dist/chunks/class-breaks.js +30 -30
- package/dist/chunks/combo-bar-line-chart-model.js +122 -101
- package/dist/chunks/data-labels-symbol.js +39 -24
- package/dist/chunks/data-labels-visibility.js +8 -8
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/default.js +6 -6
- package/dist/chunks/gauge-model.js +61 -61
- package/dist/chunks/generate-x-axis-title.js +15 -15
- package/dist/chunks/heat-chart-model.js +95 -66
- package/dist/chunks/histogram-data.js +23 -23
- package/dist/chunks/histogram-model.js +9 -9
- package/dist/chunks/index.js +9401 -1079
- package/dist/chunks/index2.js +851 -8751
- package/dist/chunks/index3.js +1169 -847
- package/dist/chunks/index4.js +467 -250
- package/dist/chunks/index5.js +63 -100
- package/dist/chunks/interfaces.js +9 -9
- package/dist/chunks/line-chart-model.js +40 -24
- package/dist/chunks/model-setter.js +59 -64
- package/dist/chunks/model-types.js +1 -1
- package/dist/chunks/model-with-line-marker-styling.js +72 -47
- package/dist/chunks/model-with-y-guides.js +52 -67
- package/dist/chunks/negative-values-stacked-to-baseline.js +122 -71
- package/dist/chunks/pie-chart-data.js +175 -193
- package/dist/chunks/pie-chart-model.js +388 -320
- package/dist/chunks/radar-chart-model.js +413 -46
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +10 -10
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +90 -0
- package/dist/chunks/scatterplot-model.js +12 -12
- package/dist/chunks/serial-chart-data.js +869 -746
- package/dist/chunks/serial-chart-model.js +145 -123
- package/dist/chunks/series-length.js +17 -17
- package/dist/chunks/series-types.js +22 -18
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +49 -23
- package/dist/chunks/type-guards2.js +61 -52
- package/dist/chunks/utils.js +101 -91
- package/dist/chunks/utils2.js +9 -9
- package/dist/chunks/web-component-utils.js +591 -540
- package/dist/chunks/x-bounds.js +98 -97
- package/dist/components/arcgis-chart/customElement.d.ts +611 -234
- package/dist/components/arcgis-chart/customElement.js +10450 -10103
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +8 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +34 -31
- package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +39 -33
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +29 -29
- 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 +31 -39
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +16 -16
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +26 -28
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
- 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-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +243 -229
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-format/customElement.js +94 -87
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-general/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-guide/customElement.js +23 -24
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +10 -13
- 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 +65 -77
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +57 -58
- package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +35 -36
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +42 -44
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +7 -8
- package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/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 +56 -57
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +66 -67
- 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 +15 -15
- 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 +7 -7
- 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 +1 -1
- package/dist/index.js +488 -466
- package/dist/interfaces.d.ts +57 -14
- package/dist/json-schema/index.d.ts +211 -6
- package/dist/loader.js +2 -2
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -4
- package/dist/model/box-plot-model/box-plot-model.d.ts +11 -5
- package/dist/model/chart-model/chart-model-base.d.ts +10 -0
- package/dist/model/chart-model/chart-model-wrapper.d.ts +24 -0
- 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 +33 -21
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +41 -8
- package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/mixins/model-with-guides.d.ts +1 -1
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +28 -19
- package/dist/model/mixins/model-with-multi-axes.d.ts +62 -99
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +61 -2
- 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/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/setup-utils.d.ts +3 -3
- package/dist/model/shared/type-guards.d.ts +38 -22
- package/dist/spec/chart-object-literals.d.ts +1 -0
- package/dist/spec/data-source.d.ts +17 -3
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +42 -6
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +3 -3
- package/dist/utils/chart-config/converter/index.js +210 -191
- package/dist/utils/chart-config/utils/index.d.ts +30 -9
- package/dist/utils/chart-config/validator/index.d.ts +2 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +4 -3
- package/dist/utils/components/interfaces.d.ts +2 -0
- package/dist/utils/cursor/interfaces.d.ts +21 -0
- package/dist/utils/data/categorical-data/index.d.ts +1 -1
- package/dist/utils/data/index.d.ts +28 -22
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +31 -5
- package/dist/utils/defaults/interfaces.d.ts +73 -4
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +26 -8
- package/dist/utils/layer/inline-conversion/index.d.ts +0 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/layer/interfaces.d.ts +0 -12
- package/dist/utils/layer/query-features/index.d.ts +8 -3
- package/dist/utils/layer/query-parser/index.d.ts +13 -9
- package/dist/utils/layer/utils/index.d.ts +22 -5
- package/dist/utils/localization/interfaces.d.ts +8 -0
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/misc/interfaces.d.ts +1 -0
- 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 +8 -9
- package/dist/cdn/2B4S6PH2.js +0 -2
- package/dist/cdn/3EIVHDDK.js +0 -2
- package/dist/cdn/3X5JIVJJ.js +0 -3
- package/dist/cdn/44GWFKSR.js +0 -2
- package/dist/cdn/4LLOMGO7.js +0 -2
- package/dist/cdn/4P7S3KIY.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/55UVN4AF.js +0 -4
- package/dist/cdn/5F54SB3S.js +0 -2
- package/dist/cdn/667DYS3D.js +0 -2
- package/dist/cdn/7DD3FFI5.js +0 -2
- package/dist/cdn/7LXWQH6J.js +0 -2
- package/dist/cdn/7TRRNFTL.js +0 -2
- package/dist/cdn/7XLZ42N6.js +0 -2
- package/dist/cdn/A5GIBV5W.js +0 -2
- package/dist/cdn/ADGMA3ST.js +0 -3
- package/dist/cdn/BBURKBKE.js +0 -2
- package/dist/cdn/BSP7U5YN.js +0 -58
- package/dist/cdn/CAGJKKOW.js +0 -2
- package/dist/cdn/CG6PLENK.js +0 -2
- package/dist/cdn/CKRMYU2S.js +0 -2
- package/dist/cdn/CQTLTJ52.js +0 -2
- package/dist/cdn/CY7GY33F.js +0 -2
- package/dist/cdn/CZ5XRXCE.js +0 -2
- package/dist/cdn/D57ESYPO.js +0 -2
- package/dist/cdn/DJACBOFO.js +0 -2
- package/dist/cdn/DKXRIXFG.js +0 -2
- package/dist/cdn/EDSF5KGV.js +0 -233
- package/dist/cdn/EPUNY3VI.js +0 -2
- package/dist/cdn/EZD3FBJU.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/FATECLIQ.js +0 -2
- package/dist/cdn/FFS73X36.js +0 -142
- package/dist/cdn/FGNRWY57.js +0 -2
- package/dist/cdn/FJ4UGRMY.js +0 -2
- package/dist/cdn/G7YZE67F.js +0 -2
- package/dist/cdn/GGHRYV36.js +0 -2
- package/dist/cdn/GOP2GNGE.js +0 -2
- package/dist/cdn/H2DP7HXE.js +0 -2
- package/dist/cdn/H42V247N.js +0 -2
- package/dist/cdn/H7TZ42RW.js +0 -2
- package/dist/cdn/HZR4NSZV.js +0 -2
- package/dist/cdn/I5B6REVT.js +0 -2
- package/dist/cdn/IXKYQBM7.js +0 -2
- package/dist/cdn/J7XXIAQJ.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/JRUIUNQA.js +0 -2
- package/dist/cdn/KI2YCXW6.js +0 -2
- package/dist/cdn/KPPNRDOP.js +0 -2
- package/dist/cdn/LB6EF2UN.js +0 -2
- package/dist/cdn/M7QVV7WC.js +0 -2
- package/dist/cdn/MICVGPGC.js +0 -2
- package/dist/cdn/MRTKZZTF.js +0 -2
- package/dist/cdn/MZHOWTY3.js +0 -2
- package/dist/cdn/NALKWY43.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/OCE4FAJ4.js +0 -2
- package/dist/cdn/P4HSSZRL.js +0 -2
- package/dist/cdn/PAIRUVLU.js +0 -2
- package/dist/cdn/PQHVQQSI.js +0 -2
- package/dist/cdn/QJC3FDWG.js +0 -2
- package/dist/cdn/QNUCPXBU.js +0 -2
- package/dist/cdn/QW5KML7L.js +0 -2
- package/dist/cdn/QXUR76TF.js +0 -2
- package/dist/cdn/RJW2DOIR.js +0 -102
- package/dist/cdn/RR63Q3C2.js +0 -2
- package/dist/cdn/RRC5ESYH.js +0 -2
- package/dist/cdn/SS42OW45.js +0 -2
- package/dist/cdn/STM26XZG.js +0 -2
- package/dist/cdn/THTYR6IL.js +0 -2
- package/dist/cdn/TX43YOVC.js +0 -2
- package/dist/cdn/TYAN5HWQ.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/UAGGYOZB.js +0 -2
- package/dist/cdn/UDKG7LGN.js +0 -2
- package/dist/cdn/UHQGJR3U.js +0 -2
- package/dist/cdn/UYOCWLLG.js +0 -2
- package/dist/cdn/UYTPOUP7.js +0 -2
- package/dist/cdn/VKYQGU2R.js +0 -2
- package/dist/cdn/VOSE67U2.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/W3OA4MKU.js +0 -2
- package/dist/cdn/W6KE6F3T.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/WCJ5W5TE.js +0 -2
- package/dist/cdn/WHYRYWPW.js +0 -2
- package/dist/cdn/WNKDEOFZ.js +0 -2
- package/dist/cdn/WOJQ6BTB.js +0 -2
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/cdn/XJFVSX2E.js +0 -2
- package/dist/cdn/XP6RGZ2N.js +0 -2
- package/dist/cdn/XRUOXTHH.js +0 -2
- package/dist/cdn/XTNDUDWE.js +0 -2
- package/dist/cdn/XUERYUEG.js +0 -2
- package/dist/cdn/Y3CXVO2M.js +0 -2
- package/dist/cdn/YAR2TF55.js +0 -2
- package/dist/cdn/YEZL5KRS.js +0 -2
- package/dist/cdn/YRFSWIDQ.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/cdn/ZG7SUAGR.js +0 -2
- package/dist/cdn/ZTX2ULE6.js +0 -2
- package/dist/cdn/ZY44M3QZ.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,174 +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 N, u as
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { i as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { g as
|
|
18
|
-
import {
|
|
19
|
-
const
|
|
2
|
+
import { substitute as E } from "@arcgis/core/intl.js";
|
|
3
|
+
import { cloneDeep as J, memoize as Ye, isEmpty as $e } from "lodash-es";
|
|
4
|
+
import { S as oe } from "./common.js";
|
|
5
|
+
import { s as N, u as W, a as Ie, g as ye, b as Le, c as Xe, d as He, e as pe } from "./utils.js";
|
|
6
|
+
import { Y as I, aN as Y, bj as Ue, bN as je, bO as Ze, bC as Ne, f as Ke, p as ee, W as _e, V as Qe, bP as ze, O as me, aX as Ge, bQ as Je, N as et, t as tt, bR as st, aO as it, Q as at, bS as rt, _ as nt, bv as ot, bT as lt, bU as fe, bV as ct, bW as ut, bX as dt, P as yt, bY as Se, bZ as _, bE as mt, aP as R, aW as Q, M as gt, r as j, a1 as Oe, b_ as M, bA as U, b$ as pt, c0 as ft, c1 as D, c2 as V, c3 as Fe, bB as xe } from "./index.js";
|
|
7
|
+
import { a as w, s as ge, g as te, b as he, c as St } from "./data.js";
|
|
8
|
+
import { a as T, d as v, f as Ft, l as k, t as L, h as $, g as xt, b as ht, e as le } from "./chart-object-literals.js";
|
|
9
|
+
import { d as De, b as Tt } from "./rest-js-object-literals.js";
|
|
10
|
+
import { i as se } from "./index4.js";
|
|
11
|
+
import { q as Bt, W as z, X as ce, H as Ct, Y as bt, Z as At, _ as vt, $ as It, j as Lt } from "./index3.js";
|
|
12
|
+
import { a as P, C as X, b as q } from "./index2.js";
|
|
13
|
+
import { g as Ve, s as Nt } from "./series-types.js";
|
|
14
|
+
import { C as Ot, m as Dt } from "./model-setter.js";
|
|
15
|
+
import { convertChartSpec as Vt } from "../utils/chart-config/converter/index.js";
|
|
16
|
+
import { i as ue, h as kt } from "./type-guards.js";
|
|
17
|
+
import { g as ie } from "./utils2.js";
|
|
18
|
+
import { b as qt, g as Rt } from "./series-length.js";
|
|
19
|
+
const Ns = (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
|
+
}, Pt = (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
|
+
}, Os = (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
|
+
}, Ds = (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
|
-
|
|
37
|
+
const t = s.series[0];
|
|
38
|
+
return I(t) && (e = t.temporalBinning?.nullPolicy), e;
|
|
39
|
+
}, wt = (s, e) => {
|
|
40
|
+
e?.series?.forEach((t) => {
|
|
41
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
|
|
42
42
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
43
|
-
},
|
|
44
|
-
e?.series?.forEach((
|
|
45
|
-
|
|
43
|
+
}, Et = (s, e) => {
|
|
44
|
+
e?.series?.forEach((t) => {
|
|
45
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = s);
|
|
46
46
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
47
|
-
},
|
|
48
|
-
e.series?.forEach((
|
|
49
|
-
|
|
47
|
+
}, ks = (s, e) => {
|
|
48
|
+
e.series?.forEach((t) => {
|
|
49
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = s);
|
|
50
50
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
51
|
-
},
|
|
52
|
-
e.series?.forEach((
|
|
53
|
-
|
|
51
|
+
}, qs = (s, e) => {
|
|
52
|
+
e.series?.forEach((t) => {
|
|
53
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = s);
|
|
54
54
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
55
|
-
},
|
|
56
|
-
e.series?.forEach((
|
|
57
|
-
|
|
55
|
+
}, Rs = (s, e) => {
|
|
56
|
+
e.series?.forEach((t) => {
|
|
57
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = s);
|
|
58
58
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
|
-
},
|
|
60
|
-
|
|
59
|
+
}, Mt = (s) => {
|
|
60
|
+
wt(0, s);
|
|
61
61
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
var Wt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, $t = (s, e, t, r) => {
|
|
63
|
+
for (var i = Yt(e, t), a = s.length - 1, n; a >= 0; a--)
|
|
64
|
+
(n = s[a]) && (i = n(e, t, i) || i);
|
|
65
|
+
return i && Wt(e, t, i), i;
|
|
66
|
+
};
|
|
67
|
+
const Xt = (s) => {
|
|
68
|
+
let e;
|
|
69
|
+
return Y(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
|
+
Y(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
|
|
75
|
+
(r.type === T.BarSeries || r.type === T.RadarSeries || r.type === T.LineSeries) && (s ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = t) : r.temporalBinning && delete r.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 Ht extends Ot {
|
|
79
|
+
/**
|
|
80
|
+
* Gets the time zone for the chart.
|
|
81
|
+
*/
|
|
82
|
+
get timeZone() {
|
|
83
|
+
return Xt(this._config);
|
|
84
|
+
}
|
|
85
|
+
set timeZone(e) {
|
|
86
|
+
ke(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
$t([
|
|
90
|
+
Dt
|
|
91
|
+
], Ht.prototype, "timeZone");
|
|
92
|
+
function Ps(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 ws(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 || Ne(s);
|
|
80
110
|
}
|
|
81
|
-
async function
|
|
82
|
-
const { config: e, layer:
|
|
83
|
-
let
|
|
84
|
-
return
|
|
111
|
+
async function Ws(s) {
|
|
112
|
+
const { config: e, layer: t, abortSignal: r } = s;
|
|
113
|
+
let i = !1;
|
|
114
|
+
return ue(t) || kt(e) ? e && ue(t) && (i = await Ze({ config: e, layer: t, abortSignal: r })) : i = !0, i;
|
|
85
115
|
}
|
|
86
|
-
async function
|
|
116
|
+
async function jt(s) {
|
|
87
117
|
const {
|
|
88
118
|
queryObject: e,
|
|
89
|
-
chartConfig:
|
|
119
|
+
chartConfig: t,
|
|
90
120
|
splitByField: r,
|
|
91
|
-
errorStrings:
|
|
92
|
-
abortSignal:
|
|
121
|
+
errorStrings: i,
|
|
122
|
+
abortSignal: a,
|
|
93
123
|
runtimeDataFilters: n,
|
|
94
124
|
ignoreViewExtent: o,
|
|
95
|
-
setTimeBinningInfoWhenNotProvided:
|
|
96
|
-
returnFeaturesExtent:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
125
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
126
|
+
returnFeaturesExtent: c,
|
|
127
|
+
returnStatisticsAggregatedIds: p,
|
|
128
|
+
chartLimits: f
|
|
129
|
+
} = s;
|
|
130
|
+
let u = [], m;
|
|
131
|
+
const d = J(t), y = d.series[0], g = rt({
|
|
101
132
|
queryObject: e,
|
|
102
133
|
chartConfig: d,
|
|
103
134
|
runtimeDataFilters: n,
|
|
104
135
|
ignoreViewExtent: o
|
|
105
136
|
});
|
|
106
|
-
if (
|
|
107
|
-
xAxisValueFormatType:
|
|
108
|
-
setTimeBinningInfoWhenNotProvided:
|
|
137
|
+
if (g.outStatistics?.[0]?.outStatisticFieldName && (g.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
|
|
138
|
+
xAxisValueFormatType: ot(d),
|
|
139
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
109
140
|
seriesConfig: y,
|
|
110
141
|
queryObject: e
|
|
111
|
-
}) &&
|
|
112
|
-
const { temporalBinning:
|
|
142
|
+
}) && lt(r, e)) {
|
|
143
|
+
const { temporalBinning: F, x: h } = y, { uniqueQuery: S } = fe({
|
|
113
144
|
chartConfig: d,
|
|
114
|
-
queryConfig:
|
|
145
|
+
queryConfig: g,
|
|
115
146
|
queryObject: e,
|
|
116
|
-
setTimeBinningInfoWhenNotProvided:
|
|
117
|
-
returnFeaturesExtent:
|
|
118
|
-
chartLimits:
|
|
119
|
-
}),
|
|
120
|
-
|
|
147
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
148
|
+
returnFeaturesExtent: c,
|
|
149
|
+
chartLimits: f
|
|
150
|
+
}), b = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
151
|
+
m = await ct({
|
|
121
152
|
queryObject: e,
|
|
122
|
-
dateField:
|
|
153
|
+
dateField: h,
|
|
123
154
|
splitByField: r,
|
|
124
|
-
queryConfig:
|
|
125
|
-
axisTimeZone:
|
|
126
|
-
temporalBinning:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
155
|
+
queryConfig: S,
|
|
156
|
+
axisTimeZone: b,
|
|
157
|
+
temporalBinning: F,
|
|
158
|
+
returnStatisticsAggregatedIds: p,
|
|
159
|
+
errorStrings: i,
|
|
160
|
+
abortSignal: a
|
|
161
|
+
}), u = Array.from(
|
|
130
162
|
new Set(
|
|
131
|
-
|
|
132
|
-
const { stackedAttributes:
|
|
133
|
-
let
|
|
134
|
-
return
|
|
163
|
+
m.flatMap((C) => {
|
|
164
|
+
const { stackedAttributes: B } = C;
|
|
165
|
+
let A = [];
|
|
166
|
+
return B && (A = B.map((x) => x[r]).filter((x) => x !== void 0)), A;
|
|
135
167
|
})
|
|
136
168
|
).values()
|
|
137
169
|
);
|
|
138
170
|
} else {
|
|
139
|
-
const { uniqueQuery:
|
|
171
|
+
const { uniqueQuery: F } = fe({
|
|
140
172
|
chartConfig: d,
|
|
141
173
|
queryObject: e,
|
|
142
|
-
queryConfig:
|
|
143
|
-
setTimeBinningInfoWhenNotProvided:
|
|
144
|
-
returnFeaturesExtent:
|
|
145
|
-
chartLimits:
|
|
146
|
-
}), { elementCount:
|
|
174
|
+
queryConfig: g,
|
|
175
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
176
|
+
returnFeaturesExtent: c,
|
|
177
|
+
chartLimits: f
|
|
178
|
+
}), { elementCount: h } = await ut({
|
|
147
179
|
chartConfig: d,
|
|
148
180
|
queryObject: e,
|
|
149
|
-
queryConfig:
|
|
150
|
-
behaviorAfterLimit:
|
|
151
|
-
numberMaxOfFeaturesToFetch:
|
|
152
|
-
abortSignal:
|
|
181
|
+
queryConfig: g,
|
|
182
|
+
behaviorAfterLimit: f?.behaviorAfterLimit,
|
|
183
|
+
numberMaxOfFeaturesToFetch: F.num,
|
|
184
|
+
abortSignal: a
|
|
153
185
|
});
|
|
154
|
-
|
|
186
|
+
m = await dt({
|
|
155
187
|
queryObject: e,
|
|
156
|
-
queryConfig:
|
|
157
|
-
featureCount:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
188
|
+
queryConfig: F,
|
|
189
|
+
featureCount: h,
|
|
190
|
+
returnStatisticsAggregatedIds: p,
|
|
191
|
+
errorStrings: i,
|
|
192
|
+
abortSignal: a
|
|
193
|
+
}), u = Array.from(
|
|
161
194
|
new Set(
|
|
162
|
-
|
|
195
|
+
m.map((S) => S.attributes[r]).filter((S) => S !== void 0)
|
|
163
196
|
).values()
|
|
164
197
|
);
|
|
165
198
|
}
|
|
166
|
-
return { allValues:
|
|
199
|
+
return { allValues: u, preFetchedQueryResponse: m };
|
|
167
200
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
return
|
|
171
|
-
let
|
|
201
|
+
function Zt(s, e) {
|
|
202
|
+
const t = /* @__PURE__ */ new Map();
|
|
203
|
+
return s.series.forEach((r) => {
|
|
204
|
+
let i = me({
|
|
172
205
|
where: r.query?.where,
|
|
173
206
|
// normalize the value so it matches what we get from getAllValues()
|
|
174
207
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
@@ -177,894 +210,984 @@ function vt(t, e) {
|
|
|
177
210
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
|
|
178
211
|
escape: !1
|
|
179
212
|
});
|
|
180
|
-
e &&
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
...
|
|
184
|
-
|
|
213
|
+
e && i !== null && (i = Number(i));
|
|
214
|
+
const a = Ve([r]);
|
|
215
|
+
a !== void 0 && t.set(a, [
|
|
216
|
+
...t.get(a) ?? [],
|
|
217
|
+
i
|
|
185
218
|
]);
|
|
186
|
-
}),
|
|
219
|
+
}), t;
|
|
187
220
|
}
|
|
188
|
-
function
|
|
189
|
-
const { allValues: e, configUniqueValuesPerSeriesType:
|
|
190
|
-
return Array.from(
|
|
191
|
-
const n =
|
|
221
|
+
function Kt(s) {
|
|
222
|
+
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = s, i = /* @__PURE__ */ new Map();
|
|
223
|
+
return Array.from(t.keys()).forEach((a) => {
|
|
224
|
+
const n = t.get(a) ?? [];
|
|
192
225
|
let o = [];
|
|
193
|
-
r ? o = e : e.forEach((
|
|
194
|
-
n.includes(
|
|
195
|
-
}),
|
|
196
|
-
}),
|
|
226
|
+
r ? o = e : e.forEach((l) => {
|
|
227
|
+
n.includes(l) || o.push(l);
|
|
228
|
+
}), i.set(a, o);
|
|
229
|
+
}), i;
|
|
197
230
|
}
|
|
198
|
-
function
|
|
199
|
-
const { chartConfig: e, missingValue:
|
|
231
|
+
function _t(s) {
|
|
232
|
+
const { chartConfig: e, missingValue: t, splitByField: r, seriesTemplate: i } = s, a = JSON.parse(
|
|
200
233
|
JSON.stringify({
|
|
201
234
|
...e.series[0],
|
|
202
|
-
...
|
|
235
|
+
...i
|
|
203
236
|
})
|
|
204
237
|
);
|
|
205
|
-
if (
|
|
206
|
-
if (
|
|
207
|
-
const o =
|
|
208
|
-
|
|
238
|
+
if (a.query) {
|
|
239
|
+
if (t === null ? a.id = X.nullValue : t === "" ? a.id = X.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
|
|
240
|
+
const o = a.id;
|
|
241
|
+
a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
|
|
209
242
|
}
|
|
210
|
-
const n = typeof
|
|
211
|
-
|
|
243
|
+
const n = typeof t == "number" || t === null ? t : `'${t}'`;
|
|
244
|
+
a.query.where = `${r}=${n}`;
|
|
212
245
|
}
|
|
213
|
-
return
|
|
246
|
+
return a;
|
|
214
247
|
}
|
|
215
|
-
async function
|
|
248
|
+
async function Qt(s) {
|
|
216
249
|
const {
|
|
217
250
|
updateSplitBySeries: e,
|
|
218
|
-
config:
|
|
251
|
+
config: t,
|
|
219
252
|
queryObject: r,
|
|
220
|
-
errorStrings:
|
|
221
|
-
abortSignal:
|
|
253
|
+
errorStrings: i,
|
|
254
|
+
abortSignal: a,
|
|
222
255
|
runtimeDataFilters: n,
|
|
223
256
|
ignoreViewExtent: o,
|
|
224
|
-
setTimeBinningInfoWhenNotProvided:
|
|
225
|
-
returnFeaturesExtent:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
257
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
258
|
+
returnFeaturesExtent: c,
|
|
259
|
+
returnStatisticsAggregatedIds: p,
|
|
260
|
+
chartLimits: f
|
|
261
|
+
} = s, { seriesTemplate: u } = e ?? {};
|
|
262
|
+
let m;
|
|
263
|
+
if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || u !== void 0) && e.addMissingSeries) {
|
|
264
|
+
const d = t.series.length === 0;
|
|
265
|
+
t.series.length === 0 && u !== void 0 && t.series.push(u);
|
|
266
|
+
const y = ee(t.series);
|
|
267
|
+
if (y === P.BoxPlotMonoFieldAndSplitBy || y === P.BoxPlotMultiFieldsAndSplitBy || y === P.BoxPlotMonoFieldAndCategoryAndSplitBy || y === P.BarAndLineSplitBy || y === P.BarAndLineSplitByNoAggregation) {
|
|
268
|
+
const g = et(t.series[0]?.query?.where), F = tt(r), h = st(g, F), S = h ? it(h) : !1, b = await jt({
|
|
235
269
|
queryObject: r,
|
|
236
|
-
chartConfig:
|
|
237
|
-
splitByField:
|
|
238
|
-
abortSignal:
|
|
270
|
+
chartConfig: t,
|
|
271
|
+
splitByField: g,
|
|
272
|
+
abortSignal: a,
|
|
239
273
|
runtimeDataFilters: n,
|
|
240
274
|
ignoreViewExtent: o,
|
|
241
|
-
setTimeBinningInfoWhenNotProvided:
|
|
242
|
-
returnFeaturesExtent:
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
275
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
276
|
+
returnFeaturesExtent: c,
|
|
277
|
+
returnStatisticsAggregatedIds: p,
|
|
278
|
+
chartLimits: f,
|
|
279
|
+
errorStrings: i
|
|
280
|
+
}), { allValues: C } = b;
|
|
281
|
+
if ({ preFetchedQueryResponse: m } = b, C.length > 0) {
|
|
282
|
+
const B = Zt(t, S), A = Kt({
|
|
283
|
+
allValues: C,
|
|
284
|
+
configUniqueValuesPerSeriesType: B,
|
|
250
285
|
initialConfigWasEmpty: d
|
|
251
286
|
});
|
|
252
|
-
Array.from(
|
|
253
|
-
(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
chartConfig:
|
|
257
|
-
seriesTemplate:
|
|
258
|
-
missingValue:
|
|
259
|
-
splitByField:
|
|
287
|
+
Array.from(A.keys()).forEach((x) => {
|
|
288
|
+
(A.get(x) ?? []).forEach((O) => {
|
|
289
|
+
t.series.push(
|
|
290
|
+
_t({
|
|
291
|
+
chartConfig: t,
|
|
292
|
+
seriesTemplate: u,
|
|
293
|
+
missingValue: O,
|
|
294
|
+
splitByField: g
|
|
260
295
|
})
|
|
261
296
|
);
|
|
262
|
-
}), d &&
|
|
297
|
+
}), d && t.series.shift();
|
|
263
298
|
});
|
|
264
299
|
}
|
|
265
300
|
}
|
|
266
301
|
}
|
|
267
|
-
return
|
|
302
|
+
return m;
|
|
268
303
|
}
|
|
269
|
-
function
|
|
270
|
-
e && !
|
|
304
|
+
function zt(s, e) {
|
|
305
|
+
e && !Ne(e) && (e = Je({ chartConfig: e, queryObject: s }));
|
|
271
306
|
}
|
|
272
|
-
async function
|
|
307
|
+
async function Ys(s) {
|
|
273
308
|
const {
|
|
274
309
|
configToAlter: e,
|
|
275
|
-
layer:
|
|
310
|
+
layer: t,
|
|
276
311
|
addMissingSeries: r,
|
|
277
|
-
updateSplitBySeries:
|
|
278
|
-
chartContainer:
|
|
312
|
+
updateSplitBySeries: i,
|
|
313
|
+
chartContainer: a,
|
|
279
314
|
queryObject: n,
|
|
280
315
|
abortSignal: o,
|
|
281
|
-
runtimeDataFilters:
|
|
282
|
-
ignoreViewExtent:
|
|
283
|
-
setTimeBinningInfoWhenNotProvided:
|
|
284
|
-
returnFeaturesExtent:
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
316
|
+
runtimeDataFilters: l,
|
|
317
|
+
ignoreViewExtent: c,
|
|
318
|
+
setTimeBinningInfoWhenNotProvided: p,
|
|
319
|
+
returnFeaturesExtent: f,
|
|
320
|
+
returnStatisticsAggregatedIds: u,
|
|
321
|
+
chartLimits: m,
|
|
322
|
+
timeZone: d,
|
|
323
|
+
errorStrings: y
|
|
324
|
+
} = s;
|
|
325
|
+
let g = e, F;
|
|
326
|
+
return g && (zt(t, g), g = await Vt(g, t, void 0, o), r && n && (F = await Qt({
|
|
327
|
+
updateSplitBySeries: i,
|
|
328
|
+
config: g,
|
|
292
329
|
queryObject: n,
|
|
293
|
-
errorStrings:
|
|
330
|
+
errorStrings: y,
|
|
294
331
|
abortSignal: o,
|
|
295
|
-
runtimeDataFilters:
|
|
296
|
-
ignoreViewExtent:
|
|
297
|
-
setTimeBinningInfoWhenNotProvided:
|
|
298
|
-
returnFeaturesExtent:
|
|
299
|
-
|
|
300
|
-
|
|
332
|
+
runtimeDataFilters: l,
|
|
333
|
+
ignoreViewExtent: c,
|
|
334
|
+
setTimeBinningInfoWhenNotProvided: p,
|
|
335
|
+
returnFeaturesExtent: f,
|
|
336
|
+
returnStatisticsAggregatedIds: u,
|
|
337
|
+
chartLimits: m
|
|
338
|
+
})), g = je(g, a), ke(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
|
|
301
339
|
}
|
|
302
|
-
function
|
|
303
|
-
let
|
|
340
|
+
function Gt(s, e) {
|
|
341
|
+
let t = !1;
|
|
304
342
|
if (e !== void 0) {
|
|
305
|
-
const r =
|
|
306
|
-
|
|
343
|
+
const r = at({ key: yt.Average, splitBy: e });
|
|
344
|
+
t = Number.isFinite(s[r]);
|
|
307
345
|
}
|
|
308
|
-
return
|
|
346
|
+
return t;
|
|
309
347
|
}
|
|
310
|
-
function
|
|
311
|
-
const { data: e, config:
|
|
348
|
+
function $s(s) {
|
|
349
|
+
const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
|
|
312
350
|
let n = !1;
|
|
313
|
-
if (!r &&
|
|
314
|
-
const o =
|
|
315
|
-
switch (
|
|
316
|
-
case
|
|
317
|
-
case
|
|
318
|
-
case
|
|
319
|
-
case
|
|
320
|
-
|
|
351
|
+
if (!r && i > 1 && e) {
|
|
352
|
+
const o = Ke(e), l = Ve(t?.series), c = ee(t?.series), p = /* @__PURE__ */ new Set();
|
|
353
|
+
switch (l) {
|
|
354
|
+
case T.ComboLineAndBarSeries:
|
|
355
|
+
case T.BarSeries:
|
|
356
|
+
case T.RadarSeries:
|
|
357
|
+
case T.LineSeries: {
|
|
358
|
+
a.series.forEach((u) => {
|
|
321
359
|
if (Array.isArray(o)) {
|
|
322
|
-
let
|
|
323
|
-
"y" in
|
|
324
|
-
(
|
|
325
|
-
dataItem:
|
|
326
|
-
x:
|
|
327
|
-
y:
|
|
328
|
-
aggregationType:
|
|
360
|
+
let m = "";
|
|
361
|
+
"y" in u && (m = Array.isArray(u.y) ? u.y[0] : u.y, c === P.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: u.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
362
|
+
(y) => Ge({
|
|
363
|
+
dataItem: y,
|
|
364
|
+
x: u.x,
|
|
365
|
+
y: m,
|
|
366
|
+
aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
|
|
329
367
|
})
|
|
330
|
-
) &&
|
|
368
|
+
) && p.add(u));
|
|
331
369
|
}
|
|
332
370
|
});
|
|
333
371
|
break;
|
|
334
372
|
}
|
|
335
|
-
case
|
|
336
|
-
if (
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
let
|
|
340
|
-
|
|
341
|
-
(
|
|
342
|
-
dataItem:
|
|
343
|
-
splitBy:
|
|
344
|
-
showOutliers:
|
|
373
|
+
case T.BoxPlotSeries: {
|
|
374
|
+
if (_e(t)) {
|
|
375
|
+
const u = Qe(t);
|
|
376
|
+
t.series.forEach((m) => {
|
|
377
|
+
let d, y;
|
|
378
|
+
m.type === T.BoxPlotSeries ? (d = e.dataItems, y = d?.some(
|
|
379
|
+
(g) => ze({
|
|
380
|
+
dataItem: g,
|
|
381
|
+
splitBy: m.query?.where,
|
|
382
|
+
showOutliers: u
|
|
345
383
|
})
|
|
346
|
-
)) :
|
|
347
|
-
(
|
|
348
|
-
)),
|
|
384
|
+
)) : m.type === T.LineSeries && (d = e.meanLines, y = d?.some(
|
|
385
|
+
(g) => Gt(g, m.query?.where)
|
|
386
|
+
)), y && p.add(m);
|
|
349
387
|
});
|
|
350
388
|
}
|
|
351
389
|
break;
|
|
352
390
|
}
|
|
353
391
|
}
|
|
354
|
-
const
|
|
355
|
-
n =
|
|
392
|
+
const f = Array.from(p.values());
|
|
393
|
+
n = f.length > 0 && f.length < i, n && (a.series = f);
|
|
356
394
|
}
|
|
357
|
-
return { seriesFilteredOut: n, filteredConfig:
|
|
395
|
+
return { seriesFilteredOut: n, filteredConfig: a };
|
|
358
396
|
}
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
},
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
},
|
|
368
|
-
const { yField: e, config:
|
|
369
|
-
if (typeof e == "string" &&
|
|
370
|
-
|
|
371
|
-
|
|
397
|
+
const Xs = (s) => s.hideEmptyRowsAndColumns, Hs = (s, e) => {
|
|
398
|
+
s.hideEmptyRowsAndColumns = e;
|
|
399
|
+
}, Us = (s, e) => {
|
|
400
|
+
const t = s.series[0];
|
|
401
|
+
t.heatRulesType = e;
|
|
402
|
+
}, js = (s) => s.series[0].heatRulesType, Zs = (s, e) => {
|
|
403
|
+
const t = s.series[0];
|
|
404
|
+
t.gradientRules = e;
|
|
405
|
+
}, Ks = (s) => s.series[0].gradientRules, _s = (s) => {
|
|
406
|
+
const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), c = t.series[0];
|
|
407
|
+
if (typeof e == "string" && o !== e && c) {
|
|
408
|
+
if (c.y = e, Ut(t), o === n || l) {
|
|
409
|
+
const p = q(a, e);
|
|
410
|
+
W(t, 1, p);
|
|
411
|
+
}
|
|
412
|
+
qe({ commonStrings: i, config: t, layerInfo: r });
|
|
372
413
|
}
|
|
373
|
-
},
|
|
374
|
-
const { binning: e, config:
|
|
375
|
-
if (
|
|
376
|
-
const
|
|
377
|
-
|
|
414
|
+
}, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
|
|
415
|
+
const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
|
|
416
|
+
if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
417
|
+
const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
418
|
+
W(t, 0, a);
|
|
378
419
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
420
|
+
G({ axisIndex: 0, commonStrings: r, config: t });
|
|
421
|
+
}, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
|
|
422
|
+
const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
|
|
423
|
+
if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
424
|
+
const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
425
|
+
W(t, 1, a);
|
|
384
426
|
}
|
|
385
|
-
|
|
427
|
+
G({ axisIndex: 1, commonStrings: r, config: t });
|
|
428
|
+
}, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
|
|
386
429
|
e.orderOptions ??= {};
|
|
387
|
-
const
|
|
430
|
+
const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[1], n = {
|
|
388
431
|
...e.orderOptions.data ?? {},
|
|
389
|
-
orderType:
|
|
432
|
+
orderType: L.MultiAxes
|
|
390
433
|
};
|
|
391
|
-
r ===
|
|
392
|
-
},
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
},
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
},
|
|
399
|
-
const
|
|
400
|
-
|
|
401
|
-
},
|
|
402
|
-
const { field: e, config:
|
|
403
|
-
|
|
434
|
+
r === oe.customSort && t === L.Category && (n.orderByX = [...s]), a === oe.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
435
|
+
}, Gs = (s, e) => {
|
|
436
|
+
const t = e.series[0];
|
|
437
|
+
t.gridLine && (t.gridLine.width = s);
|
|
438
|
+
}, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
|
|
439
|
+
const t = e.series[0], r = s?.length === 4 && s.every((i) => typeof i == "number");
|
|
440
|
+
t.gridLine && r && (t.gridLine.color = s);
|
|
441
|
+
}, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
|
|
442
|
+
const t = e.legend;
|
|
443
|
+
t && (t.position = s);
|
|
444
|
+
}, ii = (s) => s.legend?.position ?? Ft.Bottom, ai = (s) => s.series[0].query?.outStatistics?.[0]?.onStatisticField, ri = (s) => {
|
|
445
|
+
const { field: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0].query?.outStatistics?.[0], n = ne(t, r, i);
|
|
446
|
+
a ? (a.onStatisticField = e, a.outStatisticFieldName = `${a.statisticType}_${e}`) : t.series[0].query = {
|
|
404
447
|
outStatistics: [
|
|
405
448
|
{
|
|
406
449
|
onStatisticField: e,
|
|
407
|
-
outStatisticFieldName: `${
|
|
408
|
-
statisticType:
|
|
450
|
+
outStatisticFieldName: `${v.Count}_${e}`,
|
|
451
|
+
statisticType: v.Count
|
|
409
452
|
}
|
|
410
453
|
]
|
|
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 =
|
|
454
|
+
}, n && t.title && (t.title.content.text = Z(t, r, i));
|
|
455
|
+
}, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, oi = (s) => {
|
|
456
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0]?.query?.outStatistics?.[0], n = ne(t, r, i);
|
|
457
|
+
a && e !== v.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === v.Count || e === v.Sum) && is($.Zero, t), n && t.title && (t.title.content.text = Z(t, r, i));
|
|
458
|
+
}, li = (s) => s.nullPolicy, is = (s, e) => {
|
|
459
|
+
e.nullPolicy = s;
|
|
460
|
+
}, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
|
|
461
|
+
e.series[0].emptyCells = s;
|
|
462
|
+
}, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
|
|
463
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
|
|
464
|
+
}, mi = (s) => s.includeLeapDay, gi = (s, e) => {
|
|
465
|
+
e.includeLeapDay = s;
|
|
466
|
+
}, pi = (s) => s.series[0].emptyCells?.symbol, fi = (s, e) => {
|
|
467
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = s : e.series[0].emptyCells = { symbol: s };
|
|
425
468
|
};
|
|
426
|
-
function
|
|
427
|
-
return
|
|
469
|
+
function Si(s) {
|
|
470
|
+
return s.viewType;
|
|
428
471
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
472
|
+
function Fi(s, e) {
|
|
473
|
+
mt(e) || (e.viewType = s);
|
|
431
474
|
}
|
|
432
|
-
function
|
|
433
|
-
return
|
|
475
|
+
function xi(s) {
|
|
476
|
+
return s.series[0].classBreaksRules?.breaksCount ?? X.classBreaks.breaksCount;
|
|
434
477
|
}
|
|
435
|
-
function
|
|
436
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount =
|
|
437
|
-
breaksCount:
|
|
478
|
+
function hi(s, e) {
|
|
479
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? X.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
480
|
+
breaksCount: s ?? X.classBreaks.breaksCount
|
|
438
481
|
};
|
|
439
482
|
}
|
|
440
|
-
function
|
|
441
|
-
return
|
|
483
|
+
function Ti(s) {
|
|
484
|
+
return s.series[0].classBreaksRules?.classificationMethod;
|
|
442
485
|
}
|
|
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 ??
|
|
486
|
+
function Bi(s, e) {
|
|
487
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = s : e.series[0].classBreaksRules = {
|
|
488
|
+
classificationMethod: s
|
|
489
|
+
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? X.classBreaks.breaksCount;
|
|
447
490
|
}
|
|
448
|
-
function
|
|
449
|
-
e.firstDayOfWeek =
|
|
491
|
+
function Ci(s, e) {
|
|
492
|
+
e.firstDayOfWeek = s;
|
|
450
493
|
}
|
|
451
|
-
function
|
|
452
|
-
return
|
|
494
|
+
function bi(s) {
|
|
495
|
+
return s.firstDayOfWeek;
|
|
453
496
|
}
|
|
454
|
-
function
|
|
455
|
-
return
|
|
497
|
+
function Ai(s) {
|
|
498
|
+
return s.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
456
499
|
}
|
|
457
|
-
function
|
|
500
|
+
function vi(s, e) {
|
|
458
501
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
459
502
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
460
|
-
name:
|
|
503
|
+
name: s
|
|
461
504
|
} : e.series[0].classBreaksRules = {
|
|
462
505
|
colorRampInfo: {
|
|
463
|
-
name:
|
|
506
|
+
name: s,
|
|
464
507
|
flipped: !1
|
|
465
508
|
}
|
|
466
509
|
};
|
|
467
510
|
}
|
|
468
|
-
function
|
|
469
|
-
return
|
|
511
|
+
function Ii(s) {
|
|
512
|
+
return s.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
470
513
|
}
|
|
471
|
-
function
|
|
514
|
+
function Li(s, e) {
|
|
472
515
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
473
516
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
474
|
-
flipped:
|
|
517
|
+
flipped: s
|
|
475
518
|
} : e.series[0].classBreaksRules = {
|
|
476
519
|
colorRampInfo: {
|
|
477
|
-
flipped:
|
|
520
|
+
flipped: s
|
|
478
521
|
}
|
|
479
522
|
};
|
|
480
523
|
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
let
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
524
|
+
const as = [
|
|
525
|
+
k.DayOfMonth,
|
|
526
|
+
k.MonthOfYear
|
|
527
|
+
], Te = (s) => {
|
|
528
|
+
let e;
|
|
529
|
+
return _(s) ? e = ce() : (R(s) || Q(s)) && (e = z()), e;
|
|
530
|
+
}, Be = (s) => R(s) || Q(s), Ce = (s) => {
|
|
531
|
+
const { axisIndex: e, commonStrings: t, config: r, valueFormat: i } = s, a = r.axes?.[e]?.valueFormat;
|
|
532
|
+
i !== void 0 && a?.type !== i.type && Ie({ config: r, commonStrings: t, valueFormat: i, axisIndex: e });
|
|
533
|
+
}, rs = (s, e) => {
|
|
534
|
+
let t;
|
|
535
|
+
return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
|
|
536
|
+
}, be = (s, e) => s.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ae = (s, e) => {
|
|
537
|
+
let t = as[s];
|
|
538
|
+
return s === 0 && e?.unit === k.DayOfWeek ? t = k.HourOfDay : s === 1 && e?.unit === k.HourOfDay && (t = k.DayOfWeek), {
|
|
539
|
+
type: T.CalendarDateParts,
|
|
540
|
+
unit: t
|
|
541
|
+
};
|
|
542
|
+
}, ns = (s) => {
|
|
543
|
+
let e = {};
|
|
544
|
+
switch (s.unit) {
|
|
545
|
+
case k.DayOfMonth:
|
|
546
|
+
e = { day: "2-digit" };
|
|
547
|
+
break;
|
|
548
|
+
case k.DayOfWeek:
|
|
549
|
+
e = { weekday: "short" };
|
|
550
|
+
break;
|
|
551
|
+
case k.HourOfDay:
|
|
552
|
+
e = { hour: "numeric", hour12: !1 };
|
|
553
|
+
break;
|
|
554
|
+
case k.MonthOfYear:
|
|
555
|
+
e = { month: "short" };
|
|
556
|
+
break;
|
|
557
|
+
default:
|
|
558
|
+
e = z().intlOptions;
|
|
559
|
+
break;
|
|
560
|
+
}
|
|
561
|
+
return {
|
|
562
|
+
type: T.DateAxisFormat,
|
|
563
|
+
intlOptions: e
|
|
564
|
+
};
|
|
565
|
+
}, ve = (s) => {
|
|
566
|
+
const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), c = q(n.layerFieldsInfo, a);
|
|
567
|
+
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(r, t.unit) || l === r.xAxis) && W(i, e, be(r, t.unit));
|
|
568
|
+
}, G = (s) => {
|
|
569
|
+
const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
|
|
570
|
+
Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
|
|
571
|
+
}, qe = (s) => {
|
|
572
|
+
const { commonStrings: e, config: t, layerInfo: r } = s, i = t.series[0]?.x ?? "", a = t.series[0]?.y ?? "", n = Se(r.layerFieldsInfo, i), o = Se(r.layerFieldsInfo, a), l = Te(n), c = Te(o), p = Be(n) && Be(o), f = _(n) && _(o);
|
|
573
|
+
if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
|
|
574
|
+
const u = es(t) === void 0, m = ts(t) === void 0;
|
|
575
|
+
u && (ve({
|
|
576
|
+
axisIndex: 0,
|
|
577
|
+
binning: Ae(0, t.series[0].yTemporalBinning),
|
|
578
|
+
commonStrings: e,
|
|
579
|
+
config: t,
|
|
580
|
+
fieldName: i,
|
|
581
|
+
layerInfo: r
|
|
582
|
+
}), G({
|
|
583
|
+
axisIndex: 0,
|
|
584
|
+
commonStrings: e,
|
|
585
|
+
config: t
|
|
586
|
+
})), m && (ve({
|
|
587
|
+
axisIndex: 1,
|
|
588
|
+
binning: Ae(1, t.series[0].xTemporalBinning),
|
|
589
|
+
commonStrings: e,
|
|
590
|
+
config: t,
|
|
591
|
+
fieldName: a,
|
|
592
|
+
layerInfo: r
|
|
593
|
+
}), G({
|
|
594
|
+
axisIndex: 1,
|
|
595
|
+
commonStrings: e,
|
|
596
|
+
config: t
|
|
597
|
+
}));
|
|
598
|
+
}
|
|
599
|
+
f && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
|
|
600
|
+
};
|
|
601
|
+
function os(s) {
|
|
602
|
+
const e = {};
|
|
603
|
+
return s.series.forEach((t) => {
|
|
604
|
+
Nt(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);
|
|
605
|
+
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
606
|
+
}
|
|
607
|
+
function ae(s) {
|
|
608
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = j(a?.layer).idField;
|
|
609
|
+
let l;
|
|
610
|
+
const c = i.series[e ?? 0];
|
|
611
|
+
let p = !1, f = !1, u = !1;
|
|
612
|
+
if (c === void 0) {
|
|
613
|
+
const B = i.series;
|
|
614
|
+
p = B.slice(0, e).every((A) => D(A)), f = B.slice(0, e).every((A) => V(A)), u = B.slice(0, e).every((A) => Fe(A));
|
|
489
615
|
} else
|
|
490
|
-
|
|
491
|
-
|
|
616
|
+
p = D(c), f = V(c), u = Fe(c);
|
|
617
|
+
p ? l = bt({
|
|
492
618
|
commonStrings: n,
|
|
493
619
|
seriesIndex: e,
|
|
494
620
|
objectIDField: o
|
|
495
|
-
}) :
|
|
621
|
+
}) : f ? l = At({
|
|
496
622
|
commonStrings: n,
|
|
497
623
|
seriesIndex: e,
|
|
498
624
|
objectIDField: o
|
|
499
|
-
}) :
|
|
625
|
+
}) : u ? l = vt(n, o) : l = It({
|
|
500
626
|
seriesIndex: e,
|
|
501
627
|
objectIDField: o,
|
|
502
628
|
commonStrings: n
|
|
503
629
|
});
|
|
504
|
-
const
|
|
505
|
-
...
|
|
506
|
-
x:
|
|
630
|
+
const m = i.series[0]?.dataLabels, d = "nullCategory" in i.series[0] ? os(i) : void 0, y = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, g = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, h = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, S = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, b = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, C = {
|
|
631
|
+
...l,
|
|
632
|
+
x: t,
|
|
507
633
|
y: "",
|
|
508
634
|
dataLabels: {
|
|
509
|
-
...
|
|
510
|
-
type:
|
|
511
|
-
content: { ...
|
|
512
|
-
visible:
|
|
513
|
-
}
|
|
635
|
+
...l.dataLabels,
|
|
636
|
+
type: l.dataLabels?.type ?? T.Text,
|
|
637
|
+
content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
|
|
638
|
+
visible: m?.visible ?? !1
|
|
639
|
+
},
|
|
640
|
+
...d !== void 0 ? { nullCategory: d } : {},
|
|
641
|
+
...y !== void 0 ? { binTemporalData: y } : {},
|
|
642
|
+
...g !== void 0 ? { classBreakRules: g } : {},
|
|
643
|
+
...F !== void 0 ? { xTemporalBinning: F } : {},
|
|
644
|
+
...h !== void 0 ? { yTemporalBinning: h } : {},
|
|
645
|
+
...S !== void 0 ? { emptyCells: S } : {}
|
|
514
646
|
};
|
|
515
|
-
if (
|
|
516
|
-
groupByFieldsForStatistics: [
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
647
|
+
if (C.query = {
|
|
648
|
+
groupByFieldsForStatistics: [t],
|
|
649
|
+
...b !== void 0 ? { fetchNullValues: b } : {}
|
|
650
|
+
}, r !== v.NoAggregation && o !== void 0) {
|
|
651
|
+
const B = `${r}_${o}_0`.toUpperCase();
|
|
652
|
+
C.y = B, C.query.outStatistics = [
|
|
520
653
|
{
|
|
521
654
|
statisticType: r,
|
|
522
655
|
onStatisticField: o,
|
|
523
|
-
outStatisticFieldName:
|
|
656
|
+
outStatisticFieldName: B
|
|
524
657
|
}
|
|
525
658
|
];
|
|
526
659
|
}
|
|
527
|
-
if (
|
|
528
|
-
let
|
|
529
|
-
|
|
530
|
-
...
|
|
531
|
-
unit:
|
|
660
|
+
if (I(i.series[0]) && I(C)) {
|
|
661
|
+
let B = Pt(i);
|
|
662
|
+
B === le.Quarter && (B = le.Month), C.temporalBinning = {
|
|
663
|
+
...i.series[0]?.temporalBinning,
|
|
664
|
+
unit: B
|
|
532
665
|
};
|
|
533
666
|
}
|
|
534
|
-
return
|
|
667
|
+
return J(C);
|
|
535
668
|
}
|
|
536
|
-
function
|
|
537
|
-
const { layerFieldsInfo: r } = e, { idField:
|
|
538
|
-
let
|
|
539
|
-
if (
|
|
669
|
+
function Z(s, e, t) {
|
|
670
|
+
const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = w(s), o = K(s), l = Pe(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => q(r ?? [], S)).join(", "), m = q(r ?? [], n), d = q(r ?? [], c), y = s.series.some((S) => M(S)), g = y ? "category" : "xAxisField", F = m;
|
|
671
|
+
let h = "";
|
|
672
|
+
if (ge({
|
|
540
673
|
fieldName: n,
|
|
541
674
|
numericFields: o,
|
|
542
675
|
fieldList: r
|
|
543
676
|
}))
|
|
544
|
-
|
|
545
|
-
aggregationType:
|
|
546
|
-
aggregationFields:
|
|
677
|
+
h = E(t.titleLabels.aggrTypeOfAggrFields, {
|
|
678
|
+
aggregationType: f,
|
|
679
|
+
aggregationFields: u
|
|
547
680
|
});
|
|
548
|
-
else if (
|
|
549
|
-
const
|
|
550
|
-
if (
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
aggregationType:
|
|
554
|
-
[
|
|
681
|
+
else if (l === v.NoAggregation) {
|
|
682
|
+
const S = p ? i : u;
|
|
683
|
+
if (c === "") {
|
|
684
|
+
const b = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
685
|
+
h = E(t.titleLabels[b], {
|
|
686
|
+
aggregationType: S,
|
|
687
|
+
[g]: F
|
|
555
688
|
});
|
|
556
689
|
} else {
|
|
557
|
-
const
|
|
558
|
-
|
|
559
|
-
aggregationType:
|
|
560
|
-
[
|
|
561
|
-
splitByField:
|
|
690
|
+
const b = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
691
|
+
h = E(t.titleLabels[b], {
|
|
692
|
+
aggregationType: S,
|
|
693
|
+
[g]: F,
|
|
694
|
+
splitByField: d
|
|
562
695
|
});
|
|
563
696
|
}
|
|
564
|
-
} else if (
|
|
565
|
-
if (
|
|
566
|
-
const
|
|
567
|
-
|
|
568
|
-
aggregationType:
|
|
569
|
-
[
|
|
697
|
+
} else if (l === v.Count)
|
|
698
|
+
if (c === "") {
|
|
699
|
+
const S = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
700
|
+
h = E(t.titleLabels[S], {
|
|
701
|
+
aggregationType: f,
|
|
702
|
+
[g]: F
|
|
570
703
|
});
|
|
571
704
|
} else {
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
aggregationType:
|
|
575
|
-
[
|
|
576
|
-
splitByField:
|
|
705
|
+
const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
706
|
+
h = E(t.titleLabels[S], {
|
|
707
|
+
aggregationType: f,
|
|
708
|
+
[g]: F,
|
|
709
|
+
splitByField: d
|
|
577
710
|
});
|
|
578
711
|
}
|
|
579
|
-
else if (
|
|
580
|
-
const
|
|
581
|
-
|
|
582
|
-
aggregationType:
|
|
583
|
-
aggregationField:
|
|
584
|
-
[
|
|
585
|
-
splitByField:
|
|
712
|
+
else if (c !== "") {
|
|
713
|
+
const S = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
714
|
+
h = E(t.titleLabels[S], {
|
|
715
|
+
aggregationType: f,
|
|
716
|
+
aggregationField: u,
|
|
717
|
+
[g]: F,
|
|
718
|
+
splitByField: d
|
|
586
719
|
});
|
|
587
720
|
} else if (o.length > 0) {
|
|
588
|
-
const
|
|
589
|
-
|
|
590
|
-
aggregationType:
|
|
591
|
-
aggregationFields:
|
|
592
|
-
[
|
|
721
|
+
const S = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
722
|
+
h = E(t.titleLabels[S], {
|
|
723
|
+
aggregationType: f,
|
|
724
|
+
aggregationFields: u,
|
|
725
|
+
[g]: F
|
|
593
726
|
});
|
|
594
727
|
}
|
|
595
|
-
return
|
|
728
|
+
return h;
|
|
596
729
|
}
|
|
597
|
-
const
|
|
598
|
-
where:
|
|
730
|
+
const Re = (s) => me({
|
|
731
|
+
where: s.query?.where,
|
|
599
732
|
normalize: !1,
|
|
600
733
|
escape: !1
|
|
601
|
-
}) ?? "",
|
|
602
|
-
(
|
|
603
|
-
const e =
|
|
604
|
-
return
|
|
734
|
+
}) ?? "", Pe = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, re = Ye(
|
|
735
|
+
(s) => {
|
|
736
|
+
const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
737
|
+
return gt(s?.series?.[0]?.query?.where) ? "" : e;
|
|
605
738
|
},
|
|
606
|
-
(
|
|
607
|
-
),
|
|
739
|
+
(s) => s?.series?.[0]?.query?.where
|
|
740
|
+
), K = (s) => {
|
|
608
741
|
let e = [];
|
|
609
|
-
if (
|
|
610
|
-
e =
|
|
611
|
-
const r =
|
|
612
|
-
return r?.length > 0 ? r :
|
|
742
|
+
if (re(s) === "")
|
|
743
|
+
e = s?.series.map((t) => {
|
|
744
|
+
const r = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
|
|
745
|
+
return r?.length > 0 ? r : t.y;
|
|
613
746
|
}).flat() ?? [];
|
|
614
747
|
else {
|
|
615
|
-
const
|
|
748
|
+
const t = s?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
|
|
616
749
|
e = r !== void 0 ? [r] : [];
|
|
617
750
|
}
|
|
618
|
-
return e.filter((
|
|
751
|
+
return e.filter((t) => t !== "");
|
|
619
752
|
};
|
|
620
|
-
function
|
|
621
|
-
const {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
753
|
+
function we(s) {
|
|
754
|
+
const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = j(r).idField ?? "";
|
|
755
|
+
return e === "" ? t[i] ?? a : t[0] ?? a;
|
|
756
|
+
}
|
|
757
|
+
function ls(s) {
|
|
758
|
+
const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
|
|
759
|
+
let a = !1;
|
|
760
|
+
t === v.Count ? a = !0 : t === v.NoAggregation && (a = e.every((l) => {
|
|
761
|
+
const c = i.layerFieldsInfo.find((p) => p.name === l);
|
|
762
|
+
return c !== void 0 ? xe(c) : !1;
|
|
763
|
+
})), pe(r, 1, a);
|
|
764
|
+
const n = r.series.some((l) => D(l)), o = r.series.some((l) => V(l));
|
|
628
765
|
if (n || o) {
|
|
629
|
-
const
|
|
630
|
-
|
|
766
|
+
const l = w(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
|
|
767
|
+
pe(r, 0, p);
|
|
631
768
|
}
|
|
632
769
|
}
|
|
633
|
-
const
|
|
770
|
+
const de = (s) => {
|
|
634
771
|
let e;
|
|
635
|
-
if (
|
|
636
|
-
const
|
|
637
|
-
e = [
|
|
772
|
+
if (Y(s)) {
|
|
773
|
+
const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
|
|
774
|
+
e = [he(t, i), he(r, a)];
|
|
638
775
|
} else {
|
|
639
|
-
const
|
|
640
|
-
e = [
|
|
776
|
+
const t = s.orderOptions?.data?.orderType ?? L.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
|
|
777
|
+
e = [St(r, t)];
|
|
641
778
|
}
|
|
642
779
|
return e;
|
|
643
780
|
};
|
|
644
|
-
function
|
|
645
|
-
const { xAxisField: e, numericFields:
|
|
646
|
-
|
|
647
|
-
const m = $({
|
|
648
|
-
config: a,
|
|
781
|
+
function cs(s) {
|
|
782
|
+
const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = ae({
|
|
783
|
+
config: i,
|
|
649
784
|
xAxisField: e,
|
|
650
785
|
aggregationType: r,
|
|
651
|
-
layerInfo:
|
|
786
|
+
layerInfo: a,
|
|
652
787
|
seriesIndex: 0,
|
|
653
788
|
commonStrings: n
|
|
654
|
-
}),
|
|
655
|
-
config:
|
|
789
|
+
}), c = te({
|
|
790
|
+
config: i,
|
|
656
791
|
xAxisField: e,
|
|
657
|
-
numericFields:
|
|
792
|
+
numericFields: t,
|
|
658
793
|
aggregationType: r,
|
|
659
|
-
layer:
|
|
794
|
+
layer: a.layer,
|
|
795
|
+
fieldList: o
|
|
796
|
+
}).name, p = w(i), f = K(i), u = ge({
|
|
797
|
+
fieldName: p,
|
|
798
|
+
numericFields: f,
|
|
660
799
|
fieldList: o
|
|
661
|
-
}).name,
|
|
662
|
-
...
|
|
663
|
-
id:
|
|
664
|
-
name:
|
|
665
|
-
x:
|
|
666
|
-
y:
|
|
667
|
-
},
|
|
668
|
-
for (const
|
|
669
|
-
|
|
670
|
-
onStatisticField:
|
|
671
|
-
outStatisticFieldName: `${
|
|
800
|
+
}) ? i.series[0] : void 0, m = `series_${Date.now()}`, d = u?.id ?? m, y = u?.name ?? n.axisLabels.values, F = {
|
|
801
|
+
...u ?? l,
|
|
802
|
+
id: d,
|
|
803
|
+
name: y,
|
|
804
|
+
x: U,
|
|
805
|
+
y: c
|
|
806
|
+
}, h = [];
|
|
807
|
+
for (const S of t)
|
|
808
|
+
h.push({
|
|
809
|
+
onStatisticField: S,
|
|
810
|
+
outStatisticFieldName: `${S}_0`.toUpperCase(),
|
|
672
811
|
statisticType: r
|
|
673
812
|
});
|
|
674
|
-
|
|
675
|
-
const d = a.series[0];
|
|
676
|
-
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];
|
|
813
|
+
return F.query = { outStatistics: h }, i.series.length === 1 && ((D(F) || V(F)) && Me(F, i.series[0]), M(F) ? F.fillSymbol = i.series[0].fillSymbol : (D(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
|
|
677
814
|
}
|
|
678
|
-
function
|
|
679
|
-
const { xAxisField: e, numericFields:
|
|
680
|
-
let
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
config: a,
|
|
815
|
+
function Ee(s) {
|
|
816
|
+
const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, c = [];
|
|
817
|
+
for (let d = 0; d < t.length; d += 1) {
|
|
818
|
+
const y = ae({
|
|
819
|
+
config: i,
|
|
684
820
|
xAxisField: e,
|
|
685
821
|
aggregationType: r,
|
|
686
|
-
layerInfo:
|
|
687
|
-
seriesIndex:
|
|
822
|
+
layerInfo: a,
|
|
823
|
+
seriesIndex: d,
|
|
688
824
|
commonStrings: n
|
|
689
|
-
}),
|
|
690
|
-
config:
|
|
825
|
+
}), g = i.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((O) => O.name === g) ? g : te({
|
|
826
|
+
config: i,
|
|
691
827
|
xAxisField: e,
|
|
692
|
-
numericFields:
|
|
828
|
+
numericFields: t,
|
|
693
829
|
aggregationType: r,
|
|
694
|
-
layer:
|
|
695
|
-
numericFieldIndex:
|
|
830
|
+
layer: a.layer,
|
|
831
|
+
numericFieldIndex: d,
|
|
696
832
|
fieldList: o
|
|
697
|
-
}).name,
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
833
|
+
}).name, h = t[d], S = i.series.find(
|
|
834
|
+
(O) => O.query?.where === void 0 && (O.query?.outStatistics?.length === 1 && O.query?.outStatistics?.[0]?.onStatisticField === h || O.query?.outStatistics === void 0 && (O.y === h || O.x === h))
|
|
835
|
+
), b = h !== l ? h : y.id, C = S?.id ?? b, B = S?.name ?? q(o, h) ?? C, A = S ?? y, x = {
|
|
836
|
+
...A,
|
|
837
|
+
id: C,
|
|
838
|
+
name: B
|
|
703
839
|
};
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
id: F,
|
|
707
|
-
name: D(o, F)
|
|
708
|
-
});
|
|
709
|
-
let k = F;
|
|
710
|
-
p.query !== void 0 && (r !== L.NoAggregation ? (k = C, p.query.outStatistics = [
|
|
840
|
+
let H = h;
|
|
841
|
+
x.query !== void 0 && (r !== v.NoAggregation ? (H = x.type === T.HeatSeries && S?.type === T.HeatSeries ? h : F, x.query.outStatistics = [
|
|
711
842
|
{
|
|
712
|
-
...
|
|
713
|
-
onStatisticField:
|
|
714
|
-
outStatisticFieldName:
|
|
843
|
+
...A.query?.outStatistics?.[0] ?? {},
|
|
844
|
+
onStatisticField: h,
|
|
845
|
+
outStatisticFieldName: F,
|
|
715
846
|
statisticType: r
|
|
716
847
|
}
|
|
717
|
-
]) : delete
|
|
718
|
-
const T = a.series.find(
|
|
719
|
-
(S) => S.query?.outStatistics?.[0]?.onStatisticField === F && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === F || S.x === F)
|
|
720
|
-
);
|
|
721
|
-
if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
|
|
722
|
-
(b(p) && b(T) || A(p) && A(T)) && W(p, T), a.colorMatch || (O(p) && O(T) ? p.fillSymbol = T.fillSymbol : (b(p) && b(T) || A(p) && A(T)) && (p.lineSymbol = T.lineSymbol, p.markerSymbol = T.markerSymbol), h = !0);
|
|
723
|
-
const S = $({
|
|
724
|
-
config: a,
|
|
725
|
-
xAxisField: e,
|
|
726
|
-
aggregationType: r,
|
|
727
|
-
layerInfo: i,
|
|
728
|
-
seriesIndex: u,
|
|
729
|
-
commonStrings: n
|
|
730
|
-
});
|
|
731
|
-
p.id = T.id, T.id !== S.id && T.name !== S.name && (p.id = T.id, p.name = T.name), p.assignToSecondValueAxis = T.assignToSecondValueAxis, p.type === v.HeatSeries && T.type === v.HeatSeries && (p.y = T.y, p.heatRulesType = T.heatRulesType);
|
|
732
|
-
}
|
|
733
|
-
m.push(p);
|
|
848
|
+
]) : delete x.query.outStatistics), x.y = H, c.push(x);
|
|
734
849
|
}
|
|
735
|
-
const
|
|
736
|
-
(
|
|
737
|
-
),
|
|
738
|
-
(
|
|
850
|
+
const p = c.filter((d) => M(d)), f = c.filter(
|
|
851
|
+
(d) => D(d) || V(d)
|
|
852
|
+
), u = i.series.filter((d) => M(d)), m = i.series.filter(
|
|
853
|
+
(d) => D(d) || V(d)
|
|
739
854
|
);
|
|
740
|
-
return
|
|
855
|
+
return u.length === 1 && p.length === 1 && M(u[0]) && M(p[0]) && (p[0].fillSymbol = u[0].fillSymbol), m.length === 1 && f.length === 1 && ((D(m[0]) && D(f[0]) || V(m[0]) && V(f[0])) && Me(f[0], m[0]), (D(m[0]) && D(f[0]) || V(m[0]) && V(f[0])) && (f[0].lineSymbol = m[0].lineSymbol, f[0].markerSymbol = m[0].markerSymbol)), c;
|
|
741
856
|
}
|
|
742
|
-
function
|
|
743
|
-
const { aggregationType: e, config:
|
|
744
|
-
if (
|
|
745
|
-
const d =
|
|
746
|
-
config:
|
|
857
|
+
function Ni(s) {
|
|
858
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = w(t), l = K(t), c = re(t), p = ne(t, r, i), f = We(t, r, i);
|
|
859
|
+
if (t.series.forEach((u, m) => {
|
|
860
|
+
const d = te({
|
|
861
|
+
config: t,
|
|
747
862
|
xAxisField: o,
|
|
748
|
-
numericFields:
|
|
863
|
+
numericFields: l,
|
|
749
864
|
aggregationType: e,
|
|
865
|
+
splitByField: c,
|
|
750
866
|
layer: n,
|
|
751
|
-
seriesIndex:
|
|
752
|
-
numericFieldIndex:
|
|
753
|
-
fieldList:
|
|
867
|
+
seriesIndex: m,
|
|
868
|
+
numericFieldIndex: m,
|
|
869
|
+
fieldList: a
|
|
754
870
|
}).name;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
871
|
+
u.y = d;
|
|
872
|
+
const y = we({
|
|
873
|
+
splitByField: c,
|
|
874
|
+
numericFields: l,
|
|
875
|
+
layer: n,
|
|
876
|
+
seriesIndex: m
|
|
877
|
+
}), g = u.query?.outStatistics?.[0]?.onStatisticField ?? y;
|
|
878
|
+
u.query = {
|
|
879
|
+
...u.query,
|
|
880
|
+
outStatistics: e === v.NoAggregation ? void 0 : [
|
|
758
881
|
{
|
|
759
|
-
...
|
|
882
|
+
...u.query?.outStatistics?.[0],
|
|
760
883
|
outStatisticFieldName: d,
|
|
761
884
|
statisticType: e,
|
|
762
|
-
onStatisticField:
|
|
885
|
+
onStatisticField: g
|
|
763
886
|
}
|
|
764
887
|
]
|
|
765
|
-
}
|
|
766
|
-
}),
|
|
767
|
-
const
|
|
768
|
-
config:
|
|
888
|
+
}, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === v.NoAggregation ? $.Interpolate : $.Null), e === v.NoAggregation && Mt(t);
|
|
889
|
+
}), p && t.title && (t.title.content.text = Z(t, r, i)), f && t.series[0].type !== T.HeatSeries) {
|
|
890
|
+
const u = ye({
|
|
891
|
+
config: t,
|
|
769
892
|
layerInfo: r,
|
|
770
|
-
commonStrings:
|
|
771
|
-
numericFields:
|
|
893
|
+
commonStrings: i,
|
|
894
|
+
numericFields: l,
|
|
772
895
|
aggregationType: e
|
|
773
896
|
});
|
|
774
|
-
|
|
897
|
+
W(t, 1, u);
|
|
775
898
|
}
|
|
776
899
|
}
|
|
777
|
-
function
|
|
900
|
+
function us(s) {
|
|
778
901
|
const {
|
|
779
902
|
splitByField: e,
|
|
780
|
-
xAxisField:
|
|
903
|
+
xAxisField: t,
|
|
781
904
|
numericFields: r,
|
|
782
|
-
aggregationType:
|
|
783
|
-
config:
|
|
905
|
+
aggregationType: i,
|
|
906
|
+
config: a,
|
|
784
907
|
layerInfo: n,
|
|
785
908
|
commonStrings: o,
|
|
786
|
-
splitByFieldInfos:
|
|
787
|
-
} =
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
909
|
+
splitByFieldInfos: l
|
|
910
|
+
} = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = we({
|
|
911
|
+
splitByField: e,
|
|
912
|
+
numericFields: r,
|
|
913
|
+
layer: c,
|
|
914
|
+
seriesIndex: 0
|
|
915
|
+
});
|
|
916
|
+
let d = [];
|
|
917
|
+
if (f.length === 0) {
|
|
918
|
+
d = Ee({
|
|
919
|
+
xAxisField: t,
|
|
792
920
|
numericFields: r,
|
|
793
|
-
aggregationType:
|
|
794
|
-
config:
|
|
921
|
+
aggregationType: i,
|
|
922
|
+
config: a,
|
|
795
923
|
layerInfo: n,
|
|
796
924
|
commonStrings: o
|
|
797
925
|
});
|
|
798
|
-
for (const
|
|
799
|
-
|
|
926
|
+
for (const y of d)
|
|
927
|
+
y.query && (y.query.where = `${e}=''`);
|
|
800
928
|
} else
|
|
801
|
-
for (let
|
|
802
|
-
const
|
|
803
|
-
config:
|
|
804
|
-
xAxisField:
|
|
929
|
+
for (let y = 0; y < f.length; y += 1) {
|
|
930
|
+
const g = f[y], F = te({
|
|
931
|
+
config: a,
|
|
932
|
+
xAxisField: t,
|
|
805
933
|
numericFields: r,
|
|
806
|
-
aggregationType:
|
|
934
|
+
aggregationType: i,
|
|
807
935
|
layer: n.layer,
|
|
808
|
-
seriesIndex:
|
|
936
|
+
seriesIndex: y,
|
|
809
937
|
splitByField: e,
|
|
810
|
-
fieldList:
|
|
811
|
-
}).name,
|
|
812
|
-
config:
|
|
813
|
-
xAxisField:
|
|
814
|
-
aggregationType:
|
|
938
|
+
fieldList: p
|
|
939
|
+
}).name, h = ae({
|
|
940
|
+
config: a,
|
|
941
|
+
xAxisField: t,
|
|
942
|
+
aggregationType: i,
|
|
815
943
|
layerInfo: n,
|
|
816
|
-
seriesIndex:
|
|
944
|
+
seriesIndex: y,
|
|
817
945
|
commonStrings: o
|
|
818
|
-
}),
|
|
946
|
+
}), S = Oe({
|
|
819
947
|
queryObject: n.layer,
|
|
820
948
|
fieldName: e,
|
|
821
|
-
fieldValue:
|
|
822
|
-
}),
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
949
|
+
fieldValue: g ?? ""
|
|
950
|
+
}), b = `${g}`, C = a.series.find(
|
|
951
|
+
(O) => String(Re(O)).trim().replace(/'/gu, "") === b
|
|
952
|
+
), B = C?.id ?? b, A = C?.name ?? S ?? B, x = C ?? h, H = {
|
|
953
|
+
...x,
|
|
954
|
+
id: B,
|
|
955
|
+
name: A,
|
|
956
|
+
y: F,
|
|
827
957
|
query: {
|
|
828
|
-
...
|
|
829
|
-
where: `${e}=${
|
|
830
|
-
outStatistics:
|
|
958
|
+
...x.query,
|
|
959
|
+
where: `${e}=${u === De.String && g !== null ? `'${g}'` : g}`,
|
|
960
|
+
outStatistics: i !== v.NoAggregation ? [
|
|
831
961
|
{
|
|
832
|
-
...
|
|
833
|
-
onStatisticField:
|
|
834
|
-
outStatisticFieldName:
|
|
835
|
-
statisticType:
|
|
962
|
+
...x.query?.outStatistics?.[0] ?? {},
|
|
963
|
+
onStatisticField: m,
|
|
964
|
+
outStatisticFieldName: F,
|
|
965
|
+
statisticType: i
|
|
836
966
|
}
|
|
837
967
|
] : void 0
|
|
838
968
|
}
|
|
839
969
|
};
|
|
840
|
-
|
|
841
|
-
const I = i.series.find(
|
|
842
|
-
(q) => String(be(q)).trim().replace(/'/gu, "") === k
|
|
843
|
-
);
|
|
844
|
-
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((q) => q.query?.fetchNullValues)), y.push(S);
|
|
970
|
+
d.push(H);
|
|
845
971
|
}
|
|
846
|
-
return
|
|
972
|
+
return d;
|
|
847
973
|
}
|
|
848
|
-
const
|
|
974
|
+
const Oi = (s) => {
|
|
849
975
|
const {
|
|
850
976
|
xAxisFieldName: e,
|
|
851
|
-
splitByField:
|
|
977
|
+
splitByField: t,
|
|
852
978
|
numericFields: r,
|
|
853
|
-
aggregationType:
|
|
854
|
-
config:
|
|
979
|
+
aggregationType: i,
|
|
980
|
+
config: a,
|
|
855
981
|
layerInfo: n,
|
|
856
982
|
commonStrings: o,
|
|
857
|
-
splitByFieldInfos:
|
|
858
|
-
} =
|
|
859
|
-
let
|
|
860
|
-
const
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
|
|
867
|
-
}), s === "" || r.length > 1 ? xe({
|
|
983
|
+
splitByFieldInfos: l
|
|
984
|
+
} = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = qt(a), u = w(p), m = c.find((x) => x.name === u), d = a.series[0]?.query === void 0, y = c.find((x) => x.name === e), g = ne(p, n, o), F = We(p, n, o), h = ds({ config: p, layerInfo: n, commonStrings: o });
|
|
985
|
+
let S = Le(a);
|
|
986
|
+
const b = p.series.some((x) => M(x)), C = pt(p.series), B = ft(p.series), A = R(m) || R(y);
|
|
987
|
+
if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !R(m) && R(y) ? S = z() : R(m) && !R(y) && (b ? S = ce() : S = Lt()), S !== void 0 && He(a, o, S), f === 0 && (a.series = [
|
|
988
|
+
ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
|
|
989
|
+
]), a.series.forEach((x) => {
|
|
990
|
+
x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
|
|
991
|
+
}), t === "" || r.length > 1 ? ge({
|
|
868
992
|
fieldName: e,
|
|
869
993
|
numericFields: r,
|
|
870
|
-
fieldList:
|
|
871
|
-
}) ?
|
|
872
|
-
config:
|
|
994
|
+
fieldList: c
|
|
995
|
+
}) ? a.series = cs({
|
|
996
|
+
config: a,
|
|
873
997
|
layerInfo: n,
|
|
874
998
|
xAxisField: e,
|
|
875
999
|
numericFields: r,
|
|
876
|
-
aggregationType:
|
|
1000
|
+
aggregationType: i,
|
|
877
1001
|
commonStrings: o
|
|
878
|
-
}) :
|
|
879
|
-
config:
|
|
1002
|
+
}) : a.series = Ee({
|
|
1003
|
+
config: a,
|
|
880
1004
|
layerInfo: n,
|
|
881
1005
|
xAxisField: e,
|
|
882
1006
|
numericFields: r,
|
|
883
|
-
aggregationType:
|
|
1007
|
+
aggregationType: i,
|
|
884
1008
|
commonStrings: o
|
|
885
|
-
}) :
|
|
886
|
-
config:
|
|
1009
|
+
}) : l && (a.series = us({
|
|
1010
|
+
config: a,
|
|
887
1011
|
layerInfo: n,
|
|
888
|
-
splitByField:
|
|
1012
|
+
splitByField: t,
|
|
889
1013
|
xAxisField: e,
|
|
890
1014
|
numericFields: r,
|
|
891
|
-
aggregationType:
|
|
1015
|
+
aggregationType: i,
|
|
892
1016
|
commonStrings: o,
|
|
893
|
-
splitByFieldInfos:
|
|
894
|
-
})),
|
|
895
|
-
const
|
|
896
|
-
|
|
1017
|
+
splitByFieldInfos: l
|
|
1018
|
+
})), h && e !== U && a.series[0].type !== T.HeatSeries) {
|
|
1019
|
+
const x = q(c, e);
|
|
1020
|
+
W(a, 0, x);
|
|
897
1021
|
}
|
|
898
|
-
if (
|
|
899
|
-
const
|
|
900
|
-
config:
|
|
1022
|
+
if (F && a.series[0].type !== T.HeatSeries) {
|
|
1023
|
+
const x = ye({
|
|
1024
|
+
config: a,
|
|
901
1025
|
layerInfo: n,
|
|
902
1026
|
commonStrings: o,
|
|
903
1027
|
numericFields: r,
|
|
904
|
-
aggregationType:
|
|
1028
|
+
aggregationType: i
|
|
905
1029
|
});
|
|
906
|
-
|
|
1030
|
+
W(a, 1, x);
|
|
907
1031
|
}
|
|
908
|
-
if (
|
|
909
|
-
const
|
|
910
|
-
|
|
1032
|
+
if (g && a.title && (a.title.content.text = Z(a, n, o)), N({ config: a, value: null, axisIndex: 1, isMax: !1 }), N({ config: a, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (N({ config: a, value: null, axisIndex: 0, isMax: !1 }), N({ config: a, value: null, axisIndex: 0, isMax: !0 }), A && i !== v.NoAggregation && !Y(p))) {
|
|
1033
|
+
const x = R(y) ? $.Null : $.Interpolate;
|
|
1034
|
+
Et(x, a);
|
|
911
1035
|
}
|
|
912
|
-
|
|
913
|
-
delete
|
|
914
|
-
}) : d && i.series.forEach((B) => {
|
|
915
|
-
B.query && (B.query.fetchNullValues = d);
|
|
916
|
-
}), y && i.series.forEach((B) => {
|
|
917
|
-
(B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = y);
|
|
1036
|
+
Y(a) && qe({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((x) => {
|
|
1037
|
+
d && delete x.query, I(x) && x.binTemporalData === void 0 && y?.type === De.TimeOnly && (x.binTemporalData = !1);
|
|
918
1038
|
});
|
|
919
|
-
},
|
|
920
|
-
|
|
1039
|
+
}, Me = (s, e) => {
|
|
1040
|
+
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 = {
|
|
921
1041
|
...e.markerSymbol,
|
|
922
|
-
color:
|
|
1042
|
+
color: s.markerSymbol?.color
|
|
923
1043
|
});
|
|
924
|
-
},
|
|
925
|
-
const { config: e, seriesIndex:
|
|
1044
|
+
}, Di = (s) => {
|
|
1045
|
+
const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
|
|
926
1046
|
let o;
|
|
927
|
-
if (
|
|
928
|
-
o =
|
|
929
|
-
else if (
|
|
930
|
-
const
|
|
931
|
-
|
|
1047
|
+
if (ee(e.series) === P.BarAndLineFromFields)
|
|
1048
|
+
o = i.axisLabels.values;
|
|
1049
|
+
else if ($e(n)) {
|
|
1050
|
+
const c = a.query?.outStatistics?.[0]?.onStatisticField;
|
|
1051
|
+
c !== void 0 && c !== j(r.layer).idField && (o = q(r.layerFieldsInfo, c));
|
|
932
1052
|
} else {
|
|
933
|
-
const
|
|
934
|
-
o =
|
|
1053
|
+
const c = String(Re(a)).trim().replace(/'/gu, "");
|
|
1054
|
+
o = Oe({
|
|
935
1055
|
queryObject: r.layer,
|
|
936
1056
|
fieldName: n,
|
|
937
|
-
fieldValue:
|
|
938
|
-
}) ??
|
|
1057
|
+
fieldValue: c ?? ""
|
|
1058
|
+
}) ?? c;
|
|
939
1059
|
}
|
|
940
|
-
return o ??
|
|
941
|
-
},
|
|
942
|
-
if (
|
|
943
|
-
|
|
1060
|
+
return o ?? a.id;
|
|
1061
|
+
}, Vi = (s, e) => {
|
|
1062
|
+
if (Y(e))
|
|
1063
|
+
ss(s, e);
|
|
944
1064
|
else {
|
|
945
1065
|
e.orderOptions ??= {};
|
|
946
|
-
const
|
|
947
|
-
|
|
948
|
-
orderType:
|
|
949
|
-
orderBy: [...
|
|
1066
|
+
const t = e.orderOptions?.data?.orderType;
|
|
1067
|
+
de(e)[0] === oe.customSort && t === L.Category && (e.orderOptions.data = {
|
|
1068
|
+
orderType: L.Category,
|
|
1069
|
+
orderBy: [...s]
|
|
950
1070
|
});
|
|
951
1071
|
}
|
|
952
|
-
},
|
|
953
|
-
const { config: e, layerInfo:
|
|
954
|
-
let
|
|
955
|
-
return
|
|
956
|
-
layerInfo:
|
|
1072
|
+
}, ki = async (s) => {
|
|
1073
|
+
const { config: e, layerInfo: t, errorStrings: r } = s, i = w(e), a = Le(e)?.type, n = K(e), o = ee(e.series);
|
|
1074
|
+
let l = [];
|
|
1075
|
+
return a === T.CategoryAxisFormat && (o === P.BarAndLineFromFields || i === U ? l = n.map((c) => q(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await Xe({
|
|
1076
|
+
layerInfo: t,
|
|
957
1077
|
config: e,
|
|
958
|
-
category:
|
|
1078
|
+
category: i,
|
|
959
1079
|
errorStrings: r
|
|
960
|
-
}))),
|
|
1080
|
+
}))), l;
|
|
961
1081
|
};
|
|
962
|
-
function
|
|
963
|
-
const r =
|
|
964
|
-
return r ===
|
|
1082
|
+
function ne(s, e, t) {
|
|
1083
|
+
const r = Z(s, e, t), i = Rt(s), a = se(s);
|
|
1084
|
+
return r === i || a;
|
|
965
1085
|
}
|
|
966
|
-
function
|
|
967
|
-
const r =
|
|
968
|
-
config:
|
|
1086
|
+
function We(s, e, t) {
|
|
1087
|
+
const r = ye({
|
|
1088
|
+
config: s,
|
|
969
1089
|
layerInfo: e,
|
|
970
|
-
commonStrings:
|
|
971
|
-
numericFields:
|
|
972
|
-
aggregationType:
|
|
973
|
-
}),
|
|
974
|
-
return r ===
|
|
1090
|
+
commonStrings: t,
|
|
1091
|
+
numericFields: K(s),
|
|
1092
|
+
aggregationType: Pe(s)
|
|
1093
|
+
}), i = ie(1, s), a = se(s);
|
|
1094
|
+
return r === i || a;
|
|
975
1095
|
}
|
|
976
|
-
function
|
|
977
|
-
const s =
|
|
978
|
-
return
|
|
1096
|
+
function ds(s) {
|
|
1097
|
+
const { config: e, layerInfo: t, commonStrings: r } = s, i = q(t.layerFieldsInfo, w(e)), a = ie(0, e), n = se(e), o = w(e) === U && (a === "" || a === r.xAxis);
|
|
1098
|
+
return i === a || n || o;
|
|
979
1099
|
}
|
|
980
|
-
function
|
|
981
|
-
return
|
|
1100
|
+
function qi(s) {
|
|
1101
|
+
return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
|
|
982
1102
|
}
|
|
983
|
-
function
|
|
984
|
-
|
|
985
|
-
(
|
|
986
|
-
unit:
|
|
1103
|
+
function Ri(s, e) {
|
|
1104
|
+
e?.series.forEach((t) => {
|
|
1105
|
+
I(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
|
|
1106
|
+
unit: le.Day,
|
|
987
1107
|
size: 0,
|
|
988
|
-
timeAggregationType:
|
|
1108
|
+
timeAggregationType: ht.Start,
|
|
989
1109
|
trimIncompleteTimeInterval: !0,
|
|
990
|
-
nullPolicy:
|
|
991
|
-
} : delete
|
|
1110
|
+
nullPolicy: $.Null
|
|
1111
|
+
} : delete t.temporalBinning);
|
|
992
1112
|
});
|
|
993
1113
|
}
|
|
994
1114
|
export {
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
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
|
-
|
|
1115
|
+
Gs as $,
|
|
1116
|
+
ki as A,
|
|
1117
|
+
Vi as B,
|
|
1118
|
+
Oi as C,
|
|
1119
|
+
qi as D,
|
|
1120
|
+
Ri as E,
|
|
1121
|
+
Z as F,
|
|
1122
|
+
qe as G,
|
|
1123
|
+
Jt as H,
|
|
1124
|
+
_s as I,
|
|
1125
|
+
Si as J,
|
|
1126
|
+
Fi as K,
|
|
1127
|
+
es as L,
|
|
1128
|
+
Qs as M,
|
|
1129
|
+
ts as N,
|
|
1130
|
+
zs as O,
|
|
1131
|
+
xi as P,
|
|
1132
|
+
hi as Q,
|
|
1133
|
+
Ti as R,
|
|
1134
|
+
Bi as S,
|
|
1135
|
+
Ai as T,
|
|
1136
|
+
vi as U,
|
|
1137
|
+
Ii as V,
|
|
1138
|
+
Ht as W,
|
|
1139
|
+
Li as X,
|
|
1140
|
+
Xs as Y,
|
|
1141
|
+
Hs as Z,
|
|
1142
|
+
Js as _,
|
|
1143
|
+
Ms as a,
|
|
1144
|
+
ti as a0,
|
|
1145
|
+
ei as a1,
|
|
1146
|
+
js as a2,
|
|
1147
|
+
Us as a3,
|
|
1148
|
+
Ks as a4,
|
|
1149
|
+
Zs as a5,
|
|
1150
|
+
ai as a6,
|
|
1151
|
+
ri as a7,
|
|
1152
|
+
ni as a8,
|
|
1153
|
+
oi as a9,
|
|
1154
|
+
ii as aa,
|
|
1155
|
+
si as ab,
|
|
1156
|
+
li as ac,
|
|
1157
|
+
is as ad,
|
|
1158
|
+
ci as ae,
|
|
1159
|
+
ui as af,
|
|
1160
|
+
di as ag,
|
|
1161
|
+
yi as ah,
|
|
1162
|
+
mi as ai,
|
|
1163
|
+
gi as aj,
|
|
1164
|
+
bi as ak,
|
|
1165
|
+
Ci as al,
|
|
1166
|
+
pi as am,
|
|
1167
|
+
fi as an,
|
|
1168
|
+
Ps as b,
|
|
1169
|
+
ws as c,
|
|
1170
|
+
K as d,
|
|
1171
|
+
re as e,
|
|
1172
|
+
$s as f,
|
|
1173
|
+
Pe as g,
|
|
1174
|
+
Di as h,
|
|
1175
|
+
Ws as i,
|
|
1176
|
+
Ns as j,
|
|
1177
|
+
wt as k,
|
|
1178
|
+
Pt as l,
|
|
1179
|
+
ks as m,
|
|
1180
|
+
Os as n,
|
|
1181
|
+
qs as o,
|
|
1182
|
+
Ys as p,
|
|
1183
|
+
Ds as q,
|
|
1184
|
+
Ut as r,
|
|
1185
|
+
ke as s,
|
|
1186
|
+
Rs as t,
|
|
1187
|
+
Es as u,
|
|
1188
|
+
Vs as v,
|
|
1189
|
+
Et as w,
|
|
1190
|
+
Mt as x,
|
|
1191
|
+
Ni as y,
|
|
1192
|
+
de as z
|
|
1070
1193
|
};
|