@arcgis/charts-components 5.2.0-next.11 → 5.2.0-next.110
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/{VDKFC44J.js → 2EUPFLNW.js} +2 -2
- package/dist/cdn/{L5DROI2A.js → 2IWBCO6Z.js} +2 -2
- package/dist/cdn/{II2ZPEUZ.js → 2VJWHI5H.js} +2 -2
- package/dist/cdn/{H3EXGCE7.js → 2VUR2GRV.js} +2 -2
- package/dist/cdn/{IHO3OLL3.js → 3DIZRBOJ.js} +2 -2
- package/dist/cdn/3LVNK4EI.js +2 -0
- package/dist/cdn/{2XXW3WF3.js → 3R6MHDQW.js} +2 -2
- package/dist/cdn/{OBPAQN4H.js → 3WARDHOQ.js} +1 -1
- package/dist/cdn/3XY3OEMH.js +2 -0
- package/dist/cdn/{FEKSPYHM.js → 3Z2C6NLH.js} +2 -2
- package/dist/cdn/{ZYOWZCR7.js → 4ABAUNOO.js} +2 -2
- package/dist/cdn/4DGRKLXO.js +2 -0
- package/dist/cdn/4G3OQ5FC.js +2 -0
- package/dist/cdn/{TACQVUBU.js → 4H2QKHO3.js} +2 -2
- package/dist/cdn/4L4ZZUIW.js +2 -0
- package/dist/cdn/{TFPQDMER.js → 4L6FQOVC.js} +2 -2
- package/dist/cdn/{ZBIVDGNH.js → 4RDHGQAL.js} +2 -2
- package/dist/cdn/5AMXSBVD.js +2 -0
- package/dist/cdn/{244ZX2UP.js → 5FBHUYVN.js} +2 -2
- package/dist/cdn/5GZBRQP2.js +2 -0
- package/dist/cdn/5HR252CM.js +2 -0
- package/dist/cdn/5L2GOXND.js +2 -0
- package/dist/cdn/62M4DHW3.js +2 -0
- package/dist/cdn/66O67DDO.js +2 -0
- package/dist/cdn/6KYYHQBS.js +2 -0
- package/dist/cdn/{BJ7Q7LCT.js → 6ZDEWZ4A.js} +2 -2
- package/dist/cdn/{TYUVXRBO.js → 7EUVBNRP.js} +2 -2
- package/dist/cdn/7PAQCBZ7.js +2 -0
- package/dist/cdn/7RRUD4HM.js +2 -0
- package/dist/cdn/{3VMHKSYP.js → 7YROV2MS.js} +1 -1
- package/dist/cdn/{FWAXKDYV.js → AG3BRYP2.js} +2 -2
- package/dist/cdn/{7YXTWBT4.js → AJDNZRJP.js} +4 -4
- package/dist/cdn/AK34H2Z4.js +2 -0
- package/dist/cdn/{4USHOYLT.js → AMIF7IUE.js} +2 -2
- package/dist/cdn/AYS37I6F.js +2 -0
- package/dist/cdn/{ZFJFTDJF.js → B5M3UYOD.js} +2 -2
- package/dist/cdn/{6B7JCDQC.js → B6K3UJ5E.js} +2 -2
- package/dist/cdn/{2OHFSVV5.js → BE3IE4CJ.js} +2 -2
- package/dist/cdn/BGA3UX4U.js +2 -0
- package/dist/cdn/{KX7KGXKQ.js → BIXQAUTT.js} +1 -1
- package/dist/cdn/{IVLVCLDE.js → BK4JKDTR.js} +1 -1
- package/dist/cdn/BPYN2X7Q.js +45 -0
- package/dist/cdn/{KDJ5RVHA.js → BYSF3WH4.js} +2 -2
- package/dist/cdn/C4LXB6MK.js +2 -0
- package/dist/cdn/C4OPIUNW.js +2 -0
- package/dist/cdn/C7IT74BS.js +2 -0
- package/dist/cdn/{J5NHXQLA.js → CAFMZZWU.js} +2 -2
- package/dist/cdn/CHCM5ZNC.js +2 -0
- package/dist/cdn/CKRMPTUO.js +2 -0
- package/dist/cdn/{SERX6V5M.js → CPPCFOXI.js} +2 -2
- package/dist/cdn/{O4HUYRYL.js → D4EPE7SG.js} +2 -2
- package/dist/cdn/{QR2OOC4D.js → DDKQH6CG.js} +2 -2
- package/dist/cdn/{7JIHGRTB.js → DGE5LAEC.js} +2 -2
- package/dist/cdn/{XY4TRZCG.js → DMCP4KFE.js} +2 -2
- package/dist/cdn/DMTY4NTC.js +2 -0
- package/dist/cdn/{NAXNRCMZ.js → DY4LKAXR.js} +2 -2
- package/dist/cdn/{Y6ZCTPJW.js → EEWNYPKP.js} +2 -2
- package/dist/cdn/EJCQJK4X.js +2 -0
- package/dist/cdn/EQLEA5AG.js +2 -0
- package/dist/cdn/EQNW3D27.js +2 -0
- package/dist/cdn/{D3CFPMAR.js → EQUJMGCQ.js} +2 -2
- package/dist/cdn/EUSDSRSD.js +4 -0
- package/dist/cdn/EXQDBBLY.js +2 -0
- package/dist/cdn/F5C2X2NS.js +2 -0
- package/dist/cdn/{OJ5X6I3H.js → FAP35T3M.js} +2 -2
- package/dist/cdn/{MK5ZYSOD.js → FVIQ4YK2.js} +2 -2
- package/dist/cdn/FWVZY2DN.js +2 -0
- package/dist/cdn/FZ4P2E22.js +2 -0
- package/dist/cdn/G5NLV2CS.js +2 -0
- package/dist/cdn/{X2LW7GTR.js → G5NNGGAX.js} +2 -2
- package/dist/cdn/{N4L5KE23.js → GA2SIPMS.js} +2 -2
- package/dist/cdn/GDFKEJO4.js +2 -0
- package/dist/cdn/GFIZPXVK.js +2 -0
- package/dist/cdn/GG7KDNXF.js +2 -0
- package/dist/cdn/{DNTLH5RT.js → GGLXIQWK.js} +2 -2
- package/dist/cdn/GQ6A5FQG.js +2 -0
- package/dist/cdn/{SP2IPHWF.js → GUQ44MLO.js} +1 -1
- package/dist/cdn/{4ZIZEJXS.js → GVBJWBHM.js} +2 -2
- package/dist/cdn/GY72TEIZ.js +2 -0
- package/dist/cdn/H3GVLNRJ.js +2 -0
- package/dist/cdn/{AASL4RKT.js → HHMRE4ZV.js} +2 -2
- package/dist/cdn/{XMPLEHTW.js → HVB5AZOB.js} +2 -2
- package/dist/cdn/{JQKRGUBU.js → HX6ZTJDH.js} +2 -2
- package/dist/cdn/{VT4WJZN6.js → I5WKBYXW.js} +2 -2
- package/dist/cdn/{S3ZSZXYG.js → I6SPDO4B.js} +2 -2
- package/dist/cdn/{BDGHBTPU.js → IH7IBNZZ.js} +2 -2
- package/dist/cdn/IICYSP6T.js +2 -0
- package/dist/cdn/IOG2IVJN.js +2 -0
- package/dist/cdn/{UYXCGSXU.js → IUALCYH2.js} +2 -2
- package/dist/cdn/{ETOGNYFU.js → IWEPAHDN.js} +2 -2
- package/dist/cdn/{BXYNEUQY.js → IXQLYXG3.js} +2 -2
- package/dist/cdn/J22FARAC.js +2 -0
- package/dist/cdn/J5SIGRGU.js +2 -0
- package/dist/cdn/JCGY4PXV.js +2 -0
- package/dist/cdn/JDCNFE5C.js +2 -0
- package/dist/cdn/JFRRNZCG.js +2 -0
- package/dist/cdn/{LUSFGRHV.js → JFVAFJ4H.js} +2 -2
- package/dist/cdn/JGDOGMER.js +2 -0
- package/dist/cdn/JJLZNOU5.js +3 -0
- package/dist/cdn/JKDSYFI5.js +2 -0
- package/dist/cdn/{WAINRCCJ.js → JNPALTZY.js} +2 -2
- package/dist/cdn/{RSNZMJ6I.js → JYBHESZC.js} +2 -2
- package/dist/cdn/K4PGZCDZ.js +2 -0
- package/dist/cdn/K6PMOUYR.js +2 -0
- package/dist/cdn/{PMIWXHTG.js → K7M3AA6L.js} +2 -2
- package/dist/cdn/KSDWPX5N.js +2 -0
- package/dist/cdn/{4OH4NSIW.js → KW37MJXK.js} +2 -2
- package/dist/cdn/{XYKXBWIT.js → KW5VRQR3.js} +2 -2
- package/dist/cdn/{AY6IOQ3H.js → KZ2R4OLR.js} +2 -2
- package/dist/cdn/LBOJGYSL.js +2 -0
- package/dist/cdn/{I5T7JUDH.js → LD7OU6HP.js} +2 -2
- package/dist/cdn/{XG2KN6YJ.js → LF7NQGHA.js} +2 -2
- package/dist/cdn/LJOG5J2V.js +2 -0
- package/dist/cdn/{7QXRWMUN.js → LJYMDBF4.js} +2 -2
- package/dist/cdn/LTZBWR5K.js +2 -0
- package/dist/cdn/{ULWJ57VT.js → MBMJNR7H.js} +2 -2
- package/dist/cdn/{L47EGLUH.js → ME2NTJW5.js} +2 -2
- package/dist/cdn/{I6UPUSLQ.js → NOODYKYT.js} +2 -2
- package/dist/cdn/{OFWEHJDH.js → NQ3QW4ED.js} +2 -2
- package/dist/cdn/NRKA3PVS.js +2 -0
- package/dist/cdn/{OXYJKZEP.js → NS256ILC.js} +2 -2
- package/dist/cdn/{3JYZJUOM.js → NSZKEEMN.js} +2 -2
- package/dist/cdn/NVWHMHFJ.js +2 -0
- package/dist/cdn/O3F4PKL5.js +2 -0
- package/dist/cdn/O522WPHN.js +2 -0
- package/dist/cdn/ORXX53NO.js +2 -0
- package/dist/cdn/{C5K6XOCR.js → OVUN4PSA.js} +2 -2
- package/dist/cdn/P6HJNWKL.js +2 -0
- package/dist/cdn/P7L3ARQ3.js +2 -0
- package/dist/cdn/{CNFBNAPJ.js → PCMTYFOA.js} +2 -2
- package/dist/cdn/{UE5VX2RL.js → POUXDWR6.js} +2 -2
- package/dist/cdn/{VY3KBD6N.js → PQCKQMUH.js} +2 -2
- package/dist/cdn/{7LYAWWOE.js → PUYHEQW6.js} +2 -2
- package/dist/cdn/PVNWEM36.js +2 -0
- package/dist/cdn/{SX6SDBU7.js → QBN2RUK7.js} +2 -2
- package/dist/cdn/{7UQHB6KY.js → QBRPQBRE.js} +2 -2
- package/dist/cdn/{QP5UAIC6.js → QIST2E6D.js} +1 -1
- package/dist/cdn/{CHLE2QGU.js → QKD52Y6W.js} +2 -2
- package/dist/cdn/{ZQDADGLQ.js → QPTOSFND.js} +2 -2
- package/dist/cdn/QQE67EPU.js +2 -0
- package/dist/cdn/QZCSTDPS.js +2 -0
- package/dist/cdn/{YJ6TRXMU.js → R5KXZK6C.js} +2 -2
- package/dist/cdn/{P5AO3V3M.js → RAWFU6UX.js} +2 -2
- package/dist/cdn/{XDMGH7YU.js → RD2GIVHJ.js} +2 -2
- package/dist/cdn/REC66TO6.js +2 -0
- package/dist/cdn/{YKDW7ZW3.js → RP3YFUJH.js} +2 -2
- package/dist/cdn/{N5ZUO6F3.js → RPILNNIB.js} +2 -2
- package/dist/cdn/{77A4T4FJ.js → RRFVH5KA.js} +2 -2
- package/dist/cdn/RT3RIRB5.js +2 -0
- package/dist/cdn/RYSXQJEF.js +2 -0
- package/dist/cdn/{SSQ3VCZ2.js → SCTII7J3.js} +2 -2
- package/dist/cdn/{ANN3O54W.js → SE6FHLO2.js} +2 -2
- package/dist/cdn/{5SIAOUPO.js → SILAGY2P.js} +2 -2
- package/dist/cdn/SMLGQATL.js +2 -0
- package/dist/cdn/SXOHCOAC.js +2 -0
- package/dist/cdn/{FOYOG3G7.js → TCW4HYMN.js} +2 -2
- package/dist/cdn/{VE3GFNNM.js → TI332EPG.js} +2 -2
- package/dist/cdn/{WMPWOPRZ.js → TIKRHNQ7.js} +2 -2
- package/dist/cdn/U4LGTOAJ.js +2 -0
- package/dist/cdn/U4LJEOCU.js +2 -0
- package/dist/cdn/UCS6KWEF.js +2 -0
- package/dist/cdn/{AZOBLYAP.js → UNK7GZT3.js} +2 -2
- package/dist/cdn/UOXDMZSI.js +2 -0
- package/dist/cdn/UPENS2HR.js +3 -0
- package/dist/cdn/{LROW4Y6O.js → UWXENGPT.js} +2 -2
- package/dist/cdn/{L7CMLBHB.js → UZFD4QWD.js} +1 -1
- package/dist/cdn/UZKSCM2S.js +2 -0
- package/dist/cdn/VAWXK4TO.js +2 -0
- package/dist/cdn/{5ZGALYWZ.js → VIKLBNPF.js} +2 -2
- package/dist/cdn/VKEJFHGG.js +2 -0
- package/dist/cdn/VPWZC6PQ.js +2 -0
- package/dist/cdn/{AK7X7SGI.js → VTGIHCBG.js} +2 -2
- package/dist/cdn/{DFKVPDMJ.js → VUWVVCEB.js} +16 -14
- package/dist/cdn/{4C6KWLWN.js → W5VC7K62.js} +2 -2
- package/dist/cdn/WCG6VBHW.js +2 -0
- package/dist/cdn/WZZIHATO.js +2 -0
- package/dist/cdn/X4P4OY6S.js +2 -0
- package/dist/cdn/X6C44FPC.js +2 -0
- package/dist/cdn/XB5AI5AU.js +2 -0
- package/dist/cdn/XETRBEFO.js +2 -0
- package/dist/cdn/XHJGXDGC.js +2 -0
- package/dist/cdn/{IYA7HQMS.js → XI6IYELV.js} +2 -2
- package/dist/cdn/XJEWRYSH.js +2 -0
- package/dist/cdn/{Q7J7EKQW.js → XJWB6DUA.js} +2 -2
- package/dist/cdn/XURXJVLT.js +2 -0
- package/dist/cdn/Y3WE42BQ.js +2 -0
- package/dist/cdn/YCM6O6HX.js +2 -0
- package/dist/cdn/{VRZ2SY6M.js → YHBSS2N2.js} +2 -2
- package/dist/cdn/{DSIFL2DF.js → YHMODCYK.js} +2 -2
- package/dist/cdn/{H2A5GZ55.js → YJW653RP.js} +2 -2
- package/dist/cdn/YKAA3D7I.js +2 -0
- package/dist/cdn/{P2F2O6MH.js → YRPBDTCB.js} +2 -2
- package/dist/cdn/{3TZEMBXR.js → YX7IFYJP.js} +2 -2
- package/dist/cdn/Z2MRSW74.js +2 -0
- package/dist/cdn/{4Z23HWDH.js → Z56TJBFK.js} +2 -2
- package/dist/cdn/ZE4S6J2S.js +2 -0
- package/dist/cdn/ZJIYZYVK.js +2 -0
- package/dist/cdn/ZN7K5ISR.js +2 -0
- package/dist/cdn/{TXB2I2U5.js → ZYCKBTVS.js} +2 -2
- 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 +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -2
- package/dist/chart-rendering/common/interfaces.d.ts +104 -66
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +38 -46
- package/dist/chunks/axis-lines-symbol.js +8 -8
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +47 -39
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/box-plot-data.js +292 -275
- package/dist/chunks/box-plot-model.js +144 -131
- package/dist/chunks/chart-model.js +66 -57
- package/dist/chunks/chart-object-literals.js +27 -26
- package/dist/chunks/chart-ui-utils.js +149 -67
- package/dist/chunks/chart-ui-utils2.js +69 -150
- package/dist/chunks/class-breaks.js +271 -239
- package/dist/chunks/combo-bar-line-chart-model.js +123 -102
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/data-labels-symbol.js +40 -25
- package/dist/chunks/data-labels-visibility.js +9 -9
- package/dist/chunks/data.js +42 -42
- package/dist/chunks/default.js +7 -7
- package/dist/chunks/gauge-model.js +62 -62
- package/dist/chunks/generate-x-axis-title.js +20 -16
- package/dist/chunks/heat-chart-model.js +96 -67
- package/dist/chunks/histogram-data.js +24 -24
- package/dist/chunks/histogram-model.js +11 -11
- package/dist/chunks/index.js +9349 -1080
- package/dist/chunks/index2.js +852 -8758
- package/dist/chunks/index3.js +1170 -850
- package/dist/chunks/index4.js +412 -252
- package/dist/chunks/index5.js +67 -101
- package/dist/chunks/interfaces.js +10 -10
- package/dist/chunks/line-chart-model.js +41 -25
- package/dist/chunks/model-setter.js +60 -65
- package/dist/chunks/model-types.js +2 -2
- package/dist/chunks/model-with-line-marker-styling.js +73 -48
- package/dist/chunks/model-with-x-guides.js +6 -6
- package/dist/chunks/model-with-y-guides.js +252 -272
- package/dist/chunks/negative-values-stacked-to-baseline.js +123 -72
- package/dist/chunks/pie-chart-data.js +176 -194
- package/dist/chunks/pie-chart-model.js +389 -321
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +414 -47
- package/dist/chunks/resource.js +2 -2
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +11 -11
- package/dist/chunks/rotated-state.js +2 -2
- package/dist/chunks/rounded-corners.js +90 -0
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/scatterplot-model.js +23 -23
- package/dist/chunks/serial-chart-data.js +935 -819
- package/dist/chunks/serial-chart-model.js +146 -124
- package/dist/chunks/series-length.js +18 -18
- package/dist/chunks/series-types.js +23 -19
- package/dist/chunks/series.js +2 -2
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/type-guards.js +50 -24
- package/dist/chunks/type-guards2.js +62 -53
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +111 -88
- package/dist/chunks/utils2.js +55 -38
- package/dist/chunks/web-component-utils.js +414 -384
- package/dist/chunks/x-bounds.js +104 -99
- package/dist/components/arcgis-chart/customElement.d.ts +728 -255
- package/dist/components/arcgis-chart/customElement.js +10834 -10589
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +8 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +35 -32
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +71 -65
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +40 -34
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +44 -44
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +55 -54
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +14 -13
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +32 -40
- 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 +49 -50
- 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 +11 -11
- package/dist/components/arcgis-charts-config-category-format/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-color-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-colors/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +245 -231
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-format/customElement.js +90 -83
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-general/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-guide/customElement.js +22 -23
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-guides/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +13 -14
- 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 +56 -56
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -24
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +29 -29
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +6 -7
- 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 +39 -39
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-style/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-number-format/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +57 -64
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +55 -54
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +68 -69
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +28 -24
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +16 -16
- 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 -18
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +58 -27
- package/dist/components/arcgis-charts-info-modal/customElement.js +8 -8
- 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 +489 -465
- package/dist/interfaces.d.ts +57 -14
- package/dist/json-schema/index.d.ts +154 -6
- package/dist/loader.js +3 -3
- 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/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/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 +69 -106
- 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/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/setup-utils.js +1 -1
- package/dist/model/shared/type-guards.d.ts +38 -22
- package/dist/spec/chart-object-literals.d.ts +4 -3
- package/dist/spec/data-source.d.ts +17 -3
- package/dist/spec/web-chart.d.ts +34 -4
- 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 +369 -350
- package/dist/utils/chart-config/utils/index.d.ts +28 -10
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +1 -0
- 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 +18 -2
- 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 +30 -4
- package/dist/utils/defaults/interfaces.d.ts +73 -4
- package/dist/utils/layer/index.d.ts +23 -5
- 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 +10 -6
- package/dist/utils/layer/utils/index.d.ts +22 -5
- package/dist/utils/localization/interfaces.d.ts +9 -1
- 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/package.json +8 -9
- package/dist/cdn/24AOJE7B.js +0 -2
- package/dist/cdn/3KRPCKJZ.js +0 -2
- package/dist/cdn/3TBK72EK.js +0 -3
- package/dist/cdn/425PZ2QJ.js +0 -2
- package/dist/cdn/4PHYDOBF.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/567CLBG4.js +0 -2
- package/dist/cdn/5IIF22XN.js +0 -2
- package/dist/cdn/5IN5WK2R.js +0 -2
- package/dist/cdn/5LXX2PUM.js +0 -2
- package/dist/cdn/5NTIKQP4.js +0 -2
- package/dist/cdn/5YEADAVZ.js +0 -2
- package/dist/cdn/6R7VSDDU.js +0 -2
- package/dist/cdn/76MOP26H.js +0 -2
- package/dist/cdn/AHYYQWKY.js +0 -2
- package/dist/cdn/ASI7RDYV.js +0 -2
- package/dist/cdn/AXS3UMQJ.js +0 -2
- package/dist/cdn/BHUFE4DA.js +0 -2
- package/dist/cdn/CEWH3LQO.js +0 -2
- package/dist/cdn/CTBQ5Y4Z.js +0 -2
- package/dist/cdn/CVK7KFEC.js +0 -2
- package/dist/cdn/DJGEQ42V.js +0 -2
- package/dist/cdn/DL43NPDO.js +0 -2
- package/dist/cdn/E2DO2HQ6.js +0 -2
- package/dist/cdn/E4LJWBRC.js +0 -2
- package/dist/cdn/EDSF5KGV.js +0 -233
- package/dist/cdn/EE3KEIAT.js +0 -2
- package/dist/cdn/EJCGZPIV.js +0 -2
- package/dist/cdn/ETSB7KD3.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/F6QRLYSF.js +0 -2
- package/dist/cdn/FBMA7FW4.js +0 -2
- package/dist/cdn/FFS73X36.js +0 -142
- package/dist/cdn/FUAA6IFR.js +0 -4
- package/dist/cdn/FWRMJQXY.js +0 -2
- package/dist/cdn/G5FULTB5.js +0 -2
- package/dist/cdn/GISGGO3Z.js +0 -2
- package/dist/cdn/GQPOEX7B.js +0 -58
- package/dist/cdn/GYXK3DV7.js +0 -2
- package/dist/cdn/H45LPCQ2.js +0 -2
- package/dist/cdn/HW6MJJSX.js +0 -2
- package/dist/cdn/HZFHTWL6.js +0 -2
- package/dist/cdn/I2EERAZ3.js +0 -2
- package/dist/cdn/IE3GLZJZ.js +0 -2
- package/dist/cdn/IL2FG26D.js +0 -2
- package/dist/cdn/JBPYGZPJ.js +0 -2
- package/dist/cdn/JEOBO5JM.js +0 -2
- package/dist/cdn/KPWHYSA5.js +0 -2
- package/dist/cdn/KXUQJ6GE.js +0 -2
- package/dist/cdn/KZQFX7LH.js +0 -2
- package/dist/cdn/LL7NH3VV.js +0 -2
- package/dist/cdn/LUMOL7ZP.js +0 -2
- package/dist/cdn/LYJFZA2M.js +0 -2
- package/dist/cdn/MBSMC77K.js +0 -2
- package/dist/cdn/MVGAATR7.js +0 -2
- package/dist/cdn/NNZCIR7W.js +0 -2
- package/dist/cdn/NZXQ5BWP.js +0 -2
- package/dist/cdn/O4LKWTBY.js +0 -2
- package/dist/cdn/OW2DLJGU.js +0 -2
- package/dist/cdn/P4HSSZRL.js +0 -2
- package/dist/cdn/P4UJJCPG.js +0 -2
- package/dist/cdn/P56ROGSK.js +0 -2
- package/dist/cdn/PAIRUVLU.js +0 -2
- package/dist/cdn/PXIAM4CZ.js +0 -2
- package/dist/cdn/QPSJ6XOX.js +0 -2
- package/dist/cdn/R7HW5WVG.js +0 -2
- package/dist/cdn/RJCJ3F5C.js +0 -2
- package/dist/cdn/RKB6QZNW.js +0 -2
- package/dist/cdn/S6LH7YS6.js +0 -2
- package/dist/cdn/S74GCXXK.js +0 -3
- package/dist/cdn/SA22QZNW.js +0 -2
- package/dist/cdn/SJVVFOAX.js +0 -2
- package/dist/cdn/SOKKWGPA.js +0 -2
- package/dist/cdn/SQYOFBS6.js +0 -2
- package/dist/cdn/SVGAVKBQ.js +0 -2
- package/dist/cdn/THTYR6IL.js +0 -2
- package/dist/cdn/TTBRUBXY.js +0 -2
- package/dist/cdn/U5IM4KAQ.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/UIRKQREJ.js +0 -2
- package/dist/cdn/UIY2PSG4.js +0 -2
- package/dist/cdn/UNTIPIBS.js +0 -2
- package/dist/cdn/VIY3BCJZ.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/WHJU66P4.js +0 -2
- package/dist/cdn/WJ2VDT6B.js +0 -2
- package/dist/cdn/WNKDEOFZ.js +0 -2
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/cdn/WU3C7BQU.js +0 -2
- package/dist/cdn/WWO326JE.js +0 -2
- package/dist/cdn/XJFVSX2E.js +0 -2
- package/dist/cdn/XNWSVHA3.js +0 -2
- package/dist/cdn/XOM6LSIW.js +0 -2
- package/dist/cdn/XP4S2M7F.js +0 -2
- package/dist/cdn/XUERYUEG.js +0 -2
- package/dist/cdn/Y3CXVO2M.js +0 -2
- package/dist/cdn/Y7HBWU3M.js +0 -2
- package/dist/cdn/YALB4GSA.js +0 -2
- package/dist/cdn/YUF4ZSA5.js +0 -2
- package/dist/cdn/ZJHV3UVG.js +0 -2
- package/dist/cdn/ZQ2WG55W.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/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
|
@@ -1,174 +1,207 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import { substitute as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { S as
|
|
5
|
-
import { s 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
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
+
import { substitute as M } 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 D, u as Y, 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 L, aM as $, bi 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, aW as Ge, bQ as Je, N as et, t as tt, bR as st, aN as it, Q as at, bS as rt, _ as nt, bw 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, aO as q, aV as Q, M as gt, r as j, a1 as Oe, b_ as W, bA as U, b$ as pt, c0 as ft, c1 as V, c2 as k, c3 as Fe, bB as xe } from "./index.js";
|
|
7
|
+
import { a as E, s as ge, g as te, b as he, c as St } from "./data.js";
|
|
8
|
+
import { a as T, d as I, f as Ft, l as R, t as N, h as X, 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 H, b as w } 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 L(t) && (e = t.temporalBinning?.size), e;
|
|
23
|
+
}, wt = (s) => {
|
|
24
24
|
let e;
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
},
|
|
25
|
+
const t = s.series[0];
|
|
26
|
+
return L(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 L(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 L(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
35
|
+
}, Vs = (s) => {
|
|
36
36
|
let e;
|
|
37
|
-
const
|
|
38
|
-
return
|
|
39
|
-
},
|
|
40
|
-
e?.series?.forEach((
|
|
41
|
-
|
|
42
|
-
})
|
|
43
|
-
},
|
|
44
|
-
e?.series?.forEach((
|
|
45
|
-
|
|
46
|
-
}),
|
|
47
|
-
},
|
|
48
|
-
e.series?.forEach((
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
},
|
|
52
|
-
e.series?.forEach((
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
},
|
|
56
|
-
e.series?.forEach((
|
|
57
|
-
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
|
|
37
|
+
const t = s.series[0];
|
|
38
|
+
return L(t) && (e = t.temporalBinning?.nullPolicy), e;
|
|
39
|
+
}, Pt = (s, e) => {
|
|
40
|
+
e?.series?.forEach((t) => {
|
|
41
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
|
|
42
|
+
});
|
|
43
|
+
}, Et = (s, e) => {
|
|
44
|
+
e?.series?.forEach((t) => {
|
|
45
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = s);
|
|
46
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
47
|
+
}, ks = (s, e) => {
|
|
48
|
+
e.series?.forEach((t) => {
|
|
49
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = s);
|
|
50
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
51
|
+
}, qs = (s, e) => {
|
|
52
|
+
e.series?.forEach((t) => {
|
|
53
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = s);
|
|
54
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
55
|
+
}, Rs = (s, e) => {
|
|
56
|
+
e.series?.forEach((t) => {
|
|
57
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = s);
|
|
58
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
|
+
}, Mt = (s) => {
|
|
60
|
+
Pt(0, s);
|
|
61
|
+
};
|
|
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;
|
|
61
66
|
};
|
|
62
|
-
|
|
63
|
-
let
|
|
64
|
-
return
|
|
67
|
+
const Xt = (s) => {
|
|
68
|
+
let e;
|
|
69
|
+
return $(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
|
+
$(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 ws(s, e) {
|
|
93
|
+
let t;
|
|
94
|
+
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = s)), t;
|
|
65
95
|
}
|
|
66
|
-
function
|
|
67
|
-
let
|
|
68
|
-
return e !== void 0 && (
|
|
96
|
+
function Ps(s, e) {
|
|
97
|
+
let t;
|
|
98
|
+
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = s)), t;
|
|
69
99
|
}
|
|
70
|
-
function
|
|
71
|
-
let
|
|
72
|
-
return e !== void 0 && (
|
|
100
|
+
function Es(s, e) {
|
|
101
|
+
let t;
|
|
102
|
+
return e !== void 0 && (t = { ...e, rotated: s }), t;
|
|
73
103
|
}
|
|
74
|
-
function
|
|
104
|
+
function Ut(s) {
|
|
75
105
|
let e;
|
|
76
|
-
return
|
|
106
|
+
return s !== void 0 && (e = { ...s }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
77
107
|
}
|
|
78
|
-
function
|
|
79
|
-
return e != null ||
|
|
108
|
+
function Ms(s, e) {
|
|
109
|
+
return e != null || 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:
|
|
93
|
-
runtimeDataFilters:
|
|
94
|
-
ignoreViewExtent:
|
|
95
|
-
setTimeBinningInfoWhenNotProvided:
|
|
96
|
-
returnFeaturesExtent:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
121
|
+
errorStrings: i,
|
|
122
|
+
abortSignal: a,
|
|
123
|
+
runtimeDataFilters: n,
|
|
124
|
+
ignoreViewExtent: o,
|
|
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
|
-
chartConfig:
|
|
103
|
-
runtimeDataFilters:
|
|
104
|
-
ignoreViewExtent:
|
|
133
|
+
chartConfig: d,
|
|
134
|
+
runtimeDataFilters: n,
|
|
135
|
+
ignoreViewExtent: o
|
|
105
136
|
});
|
|
106
|
-
if (
|
|
107
|
-
xAxisValueFormatType:
|
|
108
|
-
setTimeBinningInfoWhenNotProvided:
|
|
109
|
-
seriesConfig:
|
|
137
|
+
if (g.outStatistics?.[0]?.outStatisticFieldName && (g.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), L(y) && nt({
|
|
138
|
+
xAxisValueFormatType: ot(d),
|
|
139
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
140
|
+
seriesConfig: y,
|
|
110
141
|
queryObject: e
|
|
111
|
-
}) &&
|
|
112
|
-
const { temporalBinning:
|
|
113
|
-
chartConfig:
|
|
114
|
-
queryConfig:
|
|
142
|
+
}) && lt(r, e)) {
|
|
143
|
+
const { temporalBinning: F, x } = y, { uniqueQuery: S } = fe({
|
|
144
|
+
chartConfig: d,
|
|
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
|
+
}), A = 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: x,
|
|
123
154
|
splitByField: r,
|
|
124
|
-
queryConfig:
|
|
125
|
-
axisTimeZone:
|
|
126
|
-
temporalBinning:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
155
|
+
queryConfig: S,
|
|
156
|
+
axisTimeZone: A,
|
|
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 v = [];
|
|
166
|
+
return B && (v = B.map((b) => b[r]).filter((b) => b !== void 0)), v;
|
|
135
167
|
})
|
|
136
168
|
).values()
|
|
137
169
|
);
|
|
138
170
|
} else {
|
|
139
|
-
const { uniqueQuery:
|
|
140
|
-
chartConfig:
|
|
171
|
+
const { uniqueQuery: F } = fe({
|
|
172
|
+
chartConfig: d,
|
|
141
173
|
queryObject: e,
|
|
142
|
-
queryConfig:
|
|
143
|
-
setTimeBinningInfoWhenNotProvided:
|
|
144
|
-
returnFeaturesExtent:
|
|
145
|
-
chartLimits:
|
|
146
|
-
}), { elementCount:
|
|
147
|
-
chartConfig:
|
|
174
|
+
queryConfig: g,
|
|
175
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
176
|
+
returnFeaturesExtent: c,
|
|
177
|
+
chartLimits: f
|
|
178
|
+
}), { elementCount: x } = await ut({
|
|
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: x,
|
|
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,913 +210,996 @@ function It(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
|
|
192
|
-
let
|
|
193
|
-
r ?
|
|
194
|
-
|
|
195
|
-
}),
|
|
196
|
-
}),
|
|
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) ?? [];
|
|
225
|
+
let o = [];
|
|
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
|
|
208
|
-
|
|
238
|
+
if (a.query) {
|
|
239
|
+
if (t === null ? a.id = H.nullValue : t === "" ? a.id = H.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
|
|
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:
|
|
222
|
-
runtimeDataFilters:
|
|
223
|
-
ignoreViewExtent:
|
|
224
|
-
setTimeBinningInfoWhenNotProvided:
|
|
225
|
-
returnFeaturesExtent:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
253
|
+
errorStrings: i,
|
|
254
|
+
abortSignal: a,
|
|
255
|
+
runtimeDataFilters: n,
|
|
256
|
+
ignoreViewExtent: o,
|
|
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), x = st(g, F), S = x ? it(x) : !1, A = await jt({
|
|
235
269
|
queryObject: r,
|
|
236
|
-
chartConfig:
|
|
237
|
-
splitByField:
|
|
238
|
-
abortSignal:
|
|
239
|
-
runtimeDataFilters:
|
|
240
|
-
ignoreViewExtent:
|
|
241
|
-
setTimeBinningInfoWhenNotProvided:
|
|
242
|
-
returnFeaturesExtent:
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
270
|
+
chartConfig: t,
|
|
271
|
+
splitByField: g,
|
|
272
|
+
abortSignal: a,
|
|
273
|
+
runtimeDataFilters: n,
|
|
274
|
+
ignoreViewExtent: o,
|
|
275
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
276
|
+
returnFeaturesExtent: c,
|
|
277
|
+
returnStatisticsAggregatedIds: p,
|
|
278
|
+
chartLimits: f,
|
|
279
|
+
errorStrings: i
|
|
280
|
+
}), { allValues: C } = A;
|
|
281
|
+
if ({ preFetchedQueryResponse: m } = A, C.length > 0) {
|
|
282
|
+
const B = Zt(t, S), v = Kt({
|
|
283
|
+
allValues: C,
|
|
284
|
+
configUniqueValuesPerSeriesType: B,
|
|
285
|
+
initialConfigWasEmpty: d
|
|
251
286
|
});
|
|
252
|
-
Array.from(
|
|
253
|
-
(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
chartConfig:
|
|
257
|
-
seriesTemplate:
|
|
258
|
-
missingValue:
|
|
259
|
-
splitByField:
|
|
287
|
+
Array.from(v.keys()).forEach((b) => {
|
|
288
|
+
(v.get(b) ?? []).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
|
-
}),
|
|
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:
|
|
279
|
-
queryObject:
|
|
280
|
-
abortSignal:
|
|
281
|
-
runtimeDataFilters:
|
|
282
|
-
ignoreViewExtent:
|
|
283
|
-
setTimeBinningInfoWhenNotProvided:
|
|
284
|
-
returnFeaturesExtent:
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
312
|
+
updateSplitBySeries: i,
|
|
313
|
+
chartContainer: a,
|
|
314
|
+
queryObject: n,
|
|
315
|
+
abortSignal: o,
|
|
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,
|
|
329
|
+
queryObject: n,
|
|
330
|
+
errorStrings: y,
|
|
331
|
+
abortSignal: o,
|
|
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:
|
|
312
|
-
let
|
|
313
|
-
if (!r &&
|
|
314
|
-
const
|
|
315
|
-
switch (
|
|
316
|
-
case
|
|
317
|
-
case
|
|
318
|
-
case
|
|
319
|
-
case
|
|
320
|
-
|
|
321
|
-
if (Array.isArray(
|
|
348
|
+
function $s(s) {
|
|
349
|
+
const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
|
|
350
|
+
let n = !1;
|
|
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) => {
|
|
359
|
+
if (Array.isArray(o)) {
|
|
322
360
|
let m = "";
|
|
323
|
-
"y" in
|
|
324
|
-
(
|
|
325
|
-
dataItem:
|
|
326
|
-
x:
|
|
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,
|
|
327
365
|
y: m,
|
|
328
|
-
aggregationType:
|
|
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 d,
|
|
340
|
-
m.type ===
|
|
341
|
-
(
|
|
342
|
-
dataItem:
|
|
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,
|
|
343
381
|
splitBy: m.query?.where,
|
|
344
|
-
showOutliers:
|
|
382
|
+
showOutliers: u
|
|
345
383
|
})
|
|
346
|
-
)) : m.type ===
|
|
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
|
-
|
|
392
|
+
const f = Array.from(p.values());
|
|
393
|
+
n = f.length > 0 && f.length < i, n && (a.series = f);
|
|
356
394
|
}
|
|
357
|
-
return { seriesFilteredOut:
|
|
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 = w(a, e);
|
|
410
|
+
Y(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
|
+
Y(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
|
+
Y(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" ? N.Category : N.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, a = de(e)[1], n = {
|
|
388
431
|
...e.orderOptions.data ?? {},
|
|
389
|
-
orderType:
|
|
432
|
+
orderType: N.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 === N.Category && (n.orderByX = [...s]), a === oe.customSort && i === N.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: `${I.Count}_${e}`,
|
|
451
|
+
statisticType: I.Count
|
|
409
452
|
}
|
|
410
453
|
]
|
|
411
|
-
},
|
|
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 ?? I.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 !== I.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === I.Count || e === I.Sum) && is(X.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 ?? H.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 ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
480
|
+
breaksCount: s ?? H.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 ?? H.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
|
+
R.DayOfMonth,
|
|
526
|
+
R.MonthOfYear
|
|
527
|
+
], Te = (s) => {
|
|
528
|
+
let e;
|
|
529
|
+
return _(s) ? e = ce() : (q(s) || Q(s)) && (e = z()), e;
|
|
530
|
+
}, Be = (s) => q(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 === R.DayOfWeek ? t = R.HourOfDay : s === 1 && e?.unit === R.HourOfDay && (t = R.DayOfWeek), {
|
|
539
|
+
type: T.CalendarDateParts,
|
|
540
|
+
unit: t
|
|
541
|
+
};
|
|
542
|
+
}, ns = (s) => {
|
|
543
|
+
let e = {};
|
|
544
|
+
switch (s.unit) {
|
|
545
|
+
case R.DayOfMonth:
|
|
546
|
+
e = { day: "2-digit" };
|
|
547
|
+
break;
|
|
548
|
+
case R.DayOfWeek:
|
|
549
|
+
e = { weekday: "short" };
|
|
550
|
+
break;
|
|
551
|
+
case R.HourOfDay:
|
|
552
|
+
e = { hour: "numeric", hour12: !1 };
|
|
553
|
+
break;
|
|
554
|
+
case R.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 = w(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) && Y(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((v) => V(v)), f = B.slice(0, e).every((v) => k(v)), u = B.slice(0, e).every((v) => Fe(v));
|
|
489
615
|
} else
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
commonStrings:
|
|
616
|
+
p = V(c), f = k(c), u = Fe(c);
|
|
617
|
+
p ? l = bt({
|
|
618
|
+
commonStrings: n,
|
|
493
619
|
seriesIndex: e,
|
|
494
|
-
objectIDField:
|
|
495
|
-
}) :
|
|
496
|
-
commonStrings:
|
|
620
|
+
objectIDField: o
|
|
621
|
+
}) : f ? l = At({
|
|
622
|
+
commonStrings: n,
|
|
497
623
|
seriesIndex: e,
|
|
498
|
-
objectIDField:
|
|
499
|
-
}) :
|
|
624
|
+
objectIDField: o
|
|
625
|
+
}) : u ? l = vt(n, o) : l = It({
|
|
500
626
|
seriesIndex: e,
|
|
501
|
-
objectIDField:
|
|
502
|
-
commonStrings:
|
|
627
|
+
objectIDField: o,
|
|
628
|
+
commonStrings: n
|
|
503
629
|
});
|
|
504
|
-
const m =
|
|
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, x = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, S = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, A = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, C = {
|
|
631
|
+
...l,
|
|
632
|
+
x: t,
|
|
507
633
|
y: "",
|
|
508
634
|
dataLabels: {
|
|
509
|
-
...
|
|
510
|
-
type:
|
|
511
|
-
content: { ...
|
|
635
|
+
...l.dataLabels,
|
|
636
|
+
type: l.dataLabels?.type ?? T.Text,
|
|
637
|
+
content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
|
|
512
638
|
visible: m?.visible ?? !1
|
|
513
|
-
}
|
|
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
|
+
...x !== void 0 ? { yTemporalBinning: x } : {},
|
|
645
|
+
...S !== void 0 ? { emptyCells: S } : {}
|
|
514
646
|
};
|
|
515
|
-
if (
|
|
516
|
-
groupByFieldsForStatistics: [
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
647
|
+
if (C.query = {
|
|
648
|
+
groupByFieldsForStatistics: [t],
|
|
649
|
+
...A !== void 0 ? { fetchNullValues: A } : {}
|
|
650
|
+
}, r !== I.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
|
-
onStatisticField:
|
|
523
|
-
outStatisticFieldName:
|
|
655
|
+
onStatisticField: o,
|
|
656
|
+
outStatisticFieldName: B
|
|
524
657
|
}
|
|
525
658
|
];
|
|
526
659
|
}
|
|
527
|
-
if (
|
|
528
|
-
let
|
|
529
|
-
|
|
530
|
-
...
|
|
531
|
-
unit:
|
|
660
|
+
if (L(i.series[0]) && L(C)) {
|
|
661
|
+
let B = wt(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 (
|
|
540
|
-
fieldName:
|
|
541
|
-
numericFields:
|
|
669
|
+
function Z(s, e, t) {
|
|
670
|
+
const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = E(s), o = K(s), l = we(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => w(r ?? [], S)).join(", "), m = w(r ?? [], n), d = w(r ?? [], c), y = s.series.some((S) => W(S)), g = y ? "category" : "xAxisField", F = m;
|
|
671
|
+
let x = "";
|
|
672
|
+
if (ge({
|
|
673
|
+
fieldName: n,
|
|
674
|
+
numericFields: o,
|
|
542
675
|
fieldList: r
|
|
543
676
|
}))
|
|
544
|
-
|
|
545
|
-
aggregationType:
|
|
546
|
-
aggregationFields:
|
|
677
|
+
x = M(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 === I.NoAggregation) {
|
|
682
|
+
const S = p ? i : u;
|
|
683
|
+
if (c === "") {
|
|
684
|
+
const A = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
685
|
+
x = M(t.titleLabels[A], {
|
|
686
|
+
aggregationType: S,
|
|
687
|
+
[g]: F
|
|
555
688
|
});
|
|
556
689
|
} else {
|
|
557
|
-
const
|
|
558
|
-
|
|
559
|
-
aggregationType:
|
|
560
|
-
[
|
|
690
|
+
const A = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
691
|
+
x = M(t.titleLabels[A], {
|
|
692
|
+
aggregationType: S,
|
|
693
|
+
[g]: F,
|
|
561
694
|
splitByField: d
|
|
562
695
|
});
|
|
563
696
|
}
|
|
564
|
-
} else if (
|
|
565
|
-
if (
|
|
566
|
-
const
|
|
567
|
-
|
|
568
|
-
aggregationType:
|
|
569
|
-
[
|
|
697
|
+
} else if (l === I.Count)
|
|
698
|
+
if (c === "") {
|
|
699
|
+
const S = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
700
|
+
x = M(t.titleLabels[S], {
|
|
701
|
+
aggregationType: f,
|
|
702
|
+
[g]: F
|
|
570
703
|
});
|
|
571
704
|
} else {
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
aggregationType:
|
|
575
|
-
[
|
|
705
|
+
const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
706
|
+
x = M(t.titleLabels[S], {
|
|
707
|
+
aggregationType: f,
|
|
708
|
+
[g]: F,
|
|
576
709
|
splitByField: d
|
|
577
710
|
});
|
|
578
711
|
}
|
|
579
|
-
else if (
|
|
580
|
-
const
|
|
581
|
-
|
|
582
|
-
aggregationType:
|
|
583
|
-
aggregationField:
|
|
584
|
-
[
|
|
712
|
+
else if (c !== "") {
|
|
713
|
+
const S = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
714
|
+
x = M(t.titleLabels[S], {
|
|
715
|
+
aggregationType: f,
|
|
716
|
+
aggregationField: u,
|
|
717
|
+
[g]: F,
|
|
585
718
|
splitByField: d
|
|
586
719
|
});
|
|
587
|
-
} else if (
|
|
588
|
-
const
|
|
589
|
-
|
|
590
|
-
aggregationType:
|
|
591
|
-
aggregationFields:
|
|
592
|
-
[
|
|
720
|
+
} else if (o.length > 0) {
|
|
721
|
+
const S = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
722
|
+
x = M(t.titleLabels[S], {
|
|
723
|
+
aggregationType: f,
|
|
724
|
+
aggregationFields: u,
|
|
725
|
+
[g]: F
|
|
593
726
|
});
|
|
594
727
|
}
|
|
595
|
-
return
|
|
728
|
+
return x;
|
|
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
|
+
}) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.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 { splitByField: e, numericFields:
|
|
622
|
-
return e === "" ?
|
|
753
|
+
function Pe(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;
|
|
623
756
|
}
|
|
624
|
-
function
|
|
625
|
-
const { numericFields: e, aggregationType:
|
|
626
|
-
let
|
|
627
|
-
|
|
628
|
-
const
|
|
629
|
-
return
|
|
630
|
-
})),
|
|
631
|
-
const
|
|
632
|
-
if (
|
|
633
|
-
const
|
|
634
|
-
|
|
757
|
+
function ls(s) {
|
|
758
|
+
const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
|
|
759
|
+
let a = !1;
|
|
760
|
+
t === I.Count ? a = !0 : t === I.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) => V(l)), o = r.series.some((l) => k(l));
|
|
765
|
+
if (n || o) {
|
|
766
|
+
const l = E(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
|
|
767
|
+
pe(r, 0, p);
|
|
635
768
|
}
|
|
636
769
|
}
|
|
637
|
-
const
|
|
770
|
+
const de = (s) => {
|
|
638
771
|
let e;
|
|
639
|
-
if (
|
|
640
|
-
const
|
|
641
|
-
e = [
|
|
772
|
+
if ($(s)) {
|
|
773
|
+
const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue;
|
|
774
|
+
e = [he(t, i), he(r, a)];
|
|
642
775
|
} else {
|
|
643
|
-
const
|
|
644
|
-
e = [
|
|
776
|
+
const t = s.orderOptions?.data?.orderType ?? N.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
|
|
777
|
+
e = [St(r, t)];
|
|
645
778
|
}
|
|
646
779
|
return e;
|
|
647
780
|
};
|
|
648
|
-
function
|
|
649
|
-
const { xAxisField: e, numericFields:
|
|
650
|
-
|
|
651
|
-
const g = Y({
|
|
652
|
-
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,
|
|
653
784
|
xAxisField: e,
|
|
654
785
|
aggregationType: r,
|
|
655
|
-
layerInfo:
|
|
786
|
+
layerInfo: a,
|
|
656
787
|
seriesIndex: 0,
|
|
657
|
-
commonStrings:
|
|
658
|
-
}),
|
|
659
|
-
config:
|
|
788
|
+
commonStrings: n
|
|
789
|
+
}), c = te({
|
|
790
|
+
config: i,
|
|
660
791
|
xAxisField: e,
|
|
661
|
-
numericFields:
|
|
792
|
+
numericFields: t,
|
|
662
793
|
aggregationType: r,
|
|
663
|
-
layer:
|
|
664
|
-
fieldList:
|
|
665
|
-
}).name,
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
794
|
+
layer: a.layer,
|
|
795
|
+
fieldList: o
|
|
796
|
+
}).name, p = E(i), f = K(i), u = ge({
|
|
797
|
+
fieldName: p,
|
|
798
|
+
numericFields: f,
|
|
799
|
+
fieldList: o
|
|
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
|
+
}, x = [];
|
|
807
|
+
for (const S of t)
|
|
808
|
+
x.push({
|
|
809
|
+
onStatisticField: S,
|
|
810
|
+
outStatisticFieldName: `${S}_0`.toUpperCase(),
|
|
676
811
|
statisticType: r
|
|
677
812
|
});
|
|
678
|
-
|
|
679
|
-
const m = a.series[0];
|
|
680
|
-
return m !== void 0 && (o.id = m.id, (b(o) && b(m) || A(o) && A(m)) && W(o, m), a.colorMatch || (O(m) && O(o) ? o.fillSymbol = m.fillSymbol : (b(o) && b(m) || A(o) && A(m)) && (o.lineSymbol = m.lineSymbol, o.markerSymbol = m.markerSymbol), y = !0), o.id = m.id, m.name !== g.name && (o.name = m.name)), a.series.length === 1 && ((b(o) || A(o)) && W(o, a.series[0]), a.colorMatch || (O(o) ? o.fillSymbol = a.series[0].fillSymbol : (b(o) || A(o)) && (o.lineSymbol = a.series[0].lineSymbol, o.markerSymbol = a.series[0].markerSymbol), y = !0)), a.colorMatch = !y, [o];
|
|
813
|
+
return F.query = { outStatistics: x }, i.series.length === 1 && ((V(F) || k(F)) && Me(F, i.series[0]), W(F) ? F.fillSymbol = i.series[0].fillSymbol : (V(F) || k(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
|
|
681
814
|
}
|
|
682
|
-
function
|
|
683
|
-
const { xAxisField: e, numericFields:
|
|
684
|
-
let
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
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,
|
|
688
820
|
xAxisField: e,
|
|
689
821
|
aggregationType: r,
|
|
690
|
-
layerInfo:
|
|
691
|
-
seriesIndex:
|
|
692
|
-
commonStrings:
|
|
693
|
-
}),
|
|
694
|
-
config:
|
|
822
|
+
layerInfo: a,
|
|
823
|
+
seriesIndex: d,
|
|
824
|
+
commonStrings: n
|
|
825
|
+
}), g = i.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((O) => O.name === g) ? g : te({
|
|
826
|
+
config: i,
|
|
695
827
|
xAxisField: e,
|
|
696
|
-
numericFields:
|
|
828
|
+
numericFields: t,
|
|
697
829
|
aggregationType: r,
|
|
698
|
-
layer:
|
|
699
|
-
numericFieldIndex:
|
|
700
|
-
fieldList:
|
|
701
|
-
}).name,
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
830
|
+
layer: a.layer,
|
|
831
|
+
numericFieldIndex: d,
|
|
832
|
+
fieldList: o
|
|
833
|
+
}).name, x = t[d], S = i.series.find(
|
|
834
|
+
(O) => O.query?.where === void 0 && (O.query?.outStatistics?.length === 1 && O.query?.outStatistics?.[0]?.onStatisticField === x || O.query?.outStatistics === void 0 && (O.y === x || O.x === x))
|
|
835
|
+
), A = x !== l ? x : y.id, C = S?.id ?? A, B = S?.name ?? w(o, x) ?? C, v = S ?? y, b = {
|
|
836
|
+
...v,
|
|
837
|
+
id: C,
|
|
838
|
+
name: B
|
|
707
839
|
};
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
id: h,
|
|
711
|
-
name: D(n, h)
|
|
712
|
-
});
|
|
713
|
-
let R = h;
|
|
714
|
-
f.query !== void 0 && (r !== L.NoAggregation ? (R = C, f.query.outStatistics = [
|
|
840
|
+
let h = x;
|
|
841
|
+
b.query !== void 0 && (r !== I.NoAggregation ? (h = b.type === T.HeatSeries && S?.type === T.HeatSeries ? x : F, b.query.outStatistics = [
|
|
715
842
|
{
|
|
716
|
-
...
|
|
717
|
-
onStatisticField:
|
|
718
|
-
outStatisticFieldName:
|
|
843
|
+
...v.query?.outStatistics?.[0] ?? {},
|
|
844
|
+
onStatisticField: x,
|
|
845
|
+
outStatisticFieldName: F,
|
|
719
846
|
statisticType: r
|
|
720
847
|
}
|
|
721
|
-
]) : delete
|
|
722
|
-
const x = a.series.find(
|
|
723
|
-
(S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
|
|
724
|
-
);
|
|
725
|
-
if (x !== void 0 && typeof x.y == "string" && x.y.trim() !== "") {
|
|
726
|
-
(b(f) && b(x) || A(f) && A(x)) && W(f, x), a.colorMatch || (O(f) && O(x) ? f.fillSymbol = x.fillSymbol : (b(f) && b(x) || A(f) && A(x)) && (f.lineSymbol = x.lineSymbol, f.markerSymbol = x.markerSymbol), F = !0);
|
|
727
|
-
const S = Y({
|
|
728
|
-
config: a,
|
|
729
|
-
xAxisField: e,
|
|
730
|
-
aggregationType: r,
|
|
731
|
-
layerInfo: i,
|
|
732
|
-
seriesIndex: u,
|
|
733
|
-
commonStrings: l
|
|
734
|
-
});
|
|
735
|
-
f.id = x.id, x.id !== S.id && x.name !== S.name && (f.id = x.id, f.name = x.name), f.assignToSecondValueAxis = x.assignToSecondValueAxis, f.type === v.HeatSeries && x.type === v.HeatSeries && (f.y = x.y, f.heatRulesType = x.heatRulesType);
|
|
736
|
-
}
|
|
737
|
-
g.push(f);
|
|
848
|
+
]) : delete b.query.outStatistics), b.y = h, c.push(b);
|
|
738
849
|
}
|
|
739
|
-
const
|
|
740
|
-
(
|
|
741
|
-
),
|
|
742
|
-
(
|
|
850
|
+
const p = c.filter((d) => W(d)), f = c.filter(
|
|
851
|
+
(d) => V(d) || k(d)
|
|
852
|
+
), u = i.series.filter((d) => W(d)), m = i.series.filter(
|
|
853
|
+
(d) => V(d) || k(d)
|
|
743
854
|
);
|
|
744
|
-
return
|
|
855
|
+
return u.length === 1 && p.length === 1 && W(u[0]) && W(p[0]) && (p[0].fillSymbol = u[0].fillSymbol), m.length === 1 && f.length === 1 && ((V(m[0]) && V(f[0]) || k(m[0]) && k(f[0])) && Me(f[0], m[0]), (V(m[0]) && V(f[0]) || k(m[0]) && k(f[0])) && (f[0].lineSymbol = m[0].lineSymbol, f[0].markerSymbol = m[0].markerSymbol)), c;
|
|
745
856
|
}
|
|
746
|
-
function
|
|
747
|
-
const { aggregationType: e, config:
|
|
748
|
-
if (
|
|
749
|
-
const d =
|
|
750
|
-
config:
|
|
751
|
-
xAxisField:
|
|
752
|
-
numericFields:
|
|
857
|
+
function Ni(s) {
|
|
858
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = E(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,
|
|
862
|
+
xAxisField: o,
|
|
863
|
+
numericFields: l,
|
|
753
864
|
aggregationType: e,
|
|
754
|
-
splitByField:
|
|
755
|
-
layer:
|
|
865
|
+
splitByField: c,
|
|
866
|
+
layer: n,
|
|
756
867
|
seriesIndex: m,
|
|
757
868
|
numericFieldIndex: m,
|
|
758
|
-
fieldList:
|
|
869
|
+
fieldList: a
|
|
759
870
|
}).name;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
const c = le({
|
|
782
|
-
config: s,
|
|
871
|
+
u.y = d;
|
|
872
|
+
const y = Pe({
|
|
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 === I.NoAggregation ? void 0 : [
|
|
881
|
+
{
|
|
882
|
+
...u.query?.outStatistics?.[0],
|
|
883
|
+
outStatisticFieldName: d,
|
|
884
|
+
statisticType: e,
|
|
885
|
+
onStatisticField: g
|
|
886
|
+
}
|
|
887
|
+
]
|
|
888
|
+
}, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? X.Interpolate : X.Null), e === I.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,
|
|
783
892
|
layerInfo: r,
|
|
784
|
-
commonStrings:
|
|
785
|
-
numericFields:
|
|
893
|
+
commonStrings: i,
|
|
894
|
+
numericFields: l,
|
|
786
895
|
aggregationType: e
|
|
787
896
|
});
|
|
788
|
-
|
|
897
|
+
Y(t, 1, u);
|
|
789
898
|
}
|
|
790
899
|
}
|
|
791
|
-
function
|
|
900
|
+
function us(s) {
|
|
792
901
|
const {
|
|
793
902
|
splitByField: e,
|
|
794
|
-
xAxisField:
|
|
903
|
+
xAxisField: t,
|
|
795
904
|
numericFields: r,
|
|
796
|
-
aggregationType:
|
|
797
|
-
config:
|
|
798
|
-
layerInfo:
|
|
799
|
-
commonStrings:
|
|
800
|
-
splitByFieldInfos:
|
|
801
|
-
} =
|
|
905
|
+
aggregationType: i,
|
|
906
|
+
config: a,
|
|
907
|
+
layerInfo: n,
|
|
908
|
+
commonStrings: o,
|
|
909
|
+
splitByFieldInfos: l
|
|
910
|
+
} = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = Pe({
|
|
802
911
|
splitByField: e,
|
|
803
912
|
numericFields: r,
|
|
804
|
-
layer:
|
|
913
|
+
layer: c,
|
|
805
914
|
seriesIndex: 0
|
|
806
915
|
});
|
|
807
|
-
let d = []
|
|
808
|
-
if (
|
|
809
|
-
d =
|
|
810
|
-
xAxisField:
|
|
916
|
+
let d = [];
|
|
917
|
+
if (f.length === 0) {
|
|
918
|
+
d = Ee({
|
|
919
|
+
xAxisField: t,
|
|
811
920
|
numericFields: r,
|
|
812
|
-
aggregationType:
|
|
813
|
-
config:
|
|
814
|
-
layerInfo:
|
|
815
|
-
commonStrings:
|
|
921
|
+
aggregationType: i,
|
|
922
|
+
config: a,
|
|
923
|
+
layerInfo: n,
|
|
924
|
+
commonStrings: o
|
|
816
925
|
});
|
|
817
|
-
for (const
|
|
818
|
-
|
|
926
|
+
for (const y of d)
|
|
927
|
+
y.query && (y.query.where = `${e}=''`);
|
|
819
928
|
} else
|
|
820
|
-
for (let
|
|
821
|
-
const
|
|
822
|
-
config:
|
|
823
|
-
xAxisField:
|
|
929
|
+
for (let y = 0; y < f.length; y += 1) {
|
|
930
|
+
const g = f[y], F = te({
|
|
931
|
+
config: a,
|
|
932
|
+
xAxisField: t,
|
|
824
933
|
numericFields: r,
|
|
825
|
-
aggregationType:
|
|
826
|
-
layer:
|
|
827
|
-
seriesIndex:
|
|
934
|
+
aggregationType: i,
|
|
935
|
+
layer: n.layer,
|
|
936
|
+
seriesIndex: y,
|
|
828
937
|
splitByField: e,
|
|
829
|
-
fieldList:
|
|
830
|
-
}).name,
|
|
831
|
-
config:
|
|
832
|
-
xAxisField:
|
|
833
|
-
aggregationType:
|
|
834
|
-
layerInfo:
|
|
835
|
-
seriesIndex:
|
|
836
|
-
commonStrings:
|
|
837
|
-
}),
|
|
838
|
-
queryObject:
|
|
938
|
+
fieldList: p
|
|
939
|
+
}).name, x = ae({
|
|
940
|
+
config: a,
|
|
941
|
+
xAxisField: t,
|
|
942
|
+
aggregationType: i,
|
|
943
|
+
layerInfo: n,
|
|
944
|
+
seriesIndex: y,
|
|
945
|
+
commonStrings: o
|
|
946
|
+
}), S = Oe({
|
|
947
|
+
queryObject: n.layer,
|
|
839
948
|
fieldName: e,
|
|
840
|
-
fieldValue:
|
|
841
|
-
}),
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
949
|
+
fieldValue: g ?? ""
|
|
950
|
+
}), A = `${g}`, C = a.series.find(
|
|
951
|
+
(O) => String(Re(O)).trim().replace(/'/gu, "") === A
|
|
952
|
+
), B = C?.id ?? A, v = C?.name ?? S ?? B, b = C ?? x, h = {
|
|
953
|
+
...b,
|
|
954
|
+
id: B,
|
|
955
|
+
name: v,
|
|
956
|
+
y: F,
|
|
846
957
|
query: {
|
|
847
|
-
...
|
|
848
|
-
where: `${e}=${
|
|
849
|
-
outStatistics:
|
|
958
|
+
...b.query,
|
|
959
|
+
where: `${e}=${u === De.String && g !== null ? `'${g}'` : g}`,
|
|
960
|
+
outStatistics: i !== I.NoAggregation ? [
|
|
850
961
|
{
|
|
851
|
-
...
|
|
962
|
+
...b.query?.outStatistics?.[0] ?? {},
|
|
852
963
|
onStatisticField: m,
|
|
853
|
-
outStatisticFieldName:
|
|
854
|
-
statisticType:
|
|
964
|
+
outStatisticFieldName: F,
|
|
965
|
+
statisticType: i
|
|
855
966
|
}
|
|
856
967
|
] : void 0
|
|
857
968
|
}
|
|
858
969
|
};
|
|
859
|
-
|
|
860
|
-
const I = i.series.find(
|
|
861
|
-
(q) => String(be(q)).trim().replace(/'/gu, "") === R
|
|
862
|
-
);
|
|
863
|
-
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)), d.push(S);
|
|
970
|
+
d.push(h);
|
|
864
971
|
}
|
|
865
|
-
return
|
|
972
|
+
return d;
|
|
866
973
|
}
|
|
867
|
-
const
|
|
974
|
+
const Oi = (s) => {
|
|
868
975
|
const {
|
|
869
976
|
xAxisFieldName: e,
|
|
870
|
-
splitByField:
|
|
977
|
+
splitByField: t,
|
|
871
978
|
numericFields: r,
|
|
872
|
-
aggregationType:
|
|
873
|
-
config:
|
|
874
|
-
layerInfo:
|
|
875
|
-
commonStrings:
|
|
876
|
-
splitByFieldInfos:
|
|
877
|
-
} =
|
|
878
|
-
let
|
|
879
|
-
const
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
|
|
886
|
-
}), s === "" || r.length > 1 ? Te({
|
|
979
|
+
aggregationType: i,
|
|
980
|
+
config: a,
|
|
981
|
+
layerInfo: n,
|
|
982
|
+
commonStrings: o,
|
|
983
|
+
splitByFieldInfos: l
|
|
984
|
+
} = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = qt(a), u = E(p), m = c.find((h) => h.name === u), d = a.series[0]?.query === void 0, y = c.find((h) => h.name === e), g = ne(p, n, o), F = We(p, n, o), x = ds({ config: p, layerInfo: n, commonStrings: o });
|
|
985
|
+
let S = Le(a);
|
|
986
|
+
const A = p.series.some((h) => W(h)), C = pt(p.series), B = ft(p.series), v = q(m) || q(y);
|
|
987
|
+
if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !q(m) && q(y) ? S = z() : q(m) && !q(y) && (A ? 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((h) => {
|
|
990
|
+
h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
|
|
991
|
+
}), t === "" || r.length > 1 ? ge({
|
|
887
992
|
fieldName: e,
|
|
888
993
|
numericFields: r,
|
|
889
|
-
fieldList:
|
|
890
|
-
}) ?
|
|
891
|
-
config:
|
|
892
|
-
layerInfo:
|
|
994
|
+
fieldList: c
|
|
995
|
+
}) ? a.series = cs({
|
|
996
|
+
config: a,
|
|
997
|
+
layerInfo: n,
|
|
893
998
|
xAxisField: e,
|
|
894
999
|
numericFields: r,
|
|
895
|
-
aggregationType:
|
|
896
|
-
commonStrings:
|
|
897
|
-
}) :
|
|
898
|
-
config:
|
|
899
|
-
layerInfo:
|
|
1000
|
+
aggregationType: i,
|
|
1001
|
+
commonStrings: o
|
|
1002
|
+
}) : a.series = Ee({
|
|
1003
|
+
config: a,
|
|
1004
|
+
layerInfo: n,
|
|
900
1005
|
xAxisField: e,
|
|
901
1006
|
numericFields: r,
|
|
902
|
-
aggregationType:
|
|
903
|
-
commonStrings:
|
|
904
|
-
}) :
|
|
905
|
-
config:
|
|
906
|
-
layerInfo:
|
|
907
|
-
splitByField:
|
|
1007
|
+
aggregationType: i,
|
|
1008
|
+
commonStrings: o
|
|
1009
|
+
}) : l && (a.series = us({
|
|
1010
|
+
config: a,
|
|
1011
|
+
layerInfo: n,
|
|
1012
|
+
splitByField: t,
|
|
908
1013
|
xAxisField: e,
|
|
909
1014
|
numericFields: r,
|
|
910
|
-
aggregationType:
|
|
911
|
-
commonStrings:
|
|
912
|
-
splitByFieldInfos:
|
|
913
|
-
})),
|
|
914
|
-
const
|
|
915
|
-
|
|
1015
|
+
aggregationType: i,
|
|
1016
|
+
commonStrings: o,
|
|
1017
|
+
splitByFieldInfos: l
|
|
1018
|
+
})), x && e !== U && a.series[0].type !== T.HeatSeries) {
|
|
1019
|
+
const h = w(c, e);
|
|
1020
|
+
Y(a, 0, h);
|
|
916
1021
|
}
|
|
917
|
-
if (
|
|
918
|
-
const
|
|
919
|
-
config:
|
|
920
|
-
layerInfo:
|
|
921
|
-
commonStrings:
|
|
1022
|
+
if (F && a.series[0].type !== T.HeatSeries) {
|
|
1023
|
+
const h = ye({
|
|
1024
|
+
config: a,
|
|
1025
|
+
layerInfo: n,
|
|
1026
|
+
commonStrings: o,
|
|
922
1027
|
numericFields: r,
|
|
923
|
-
aggregationType:
|
|
1028
|
+
aggregationType: i
|
|
924
1029
|
});
|
|
925
|
-
|
|
1030
|
+
Y(a, 1, h);
|
|
926
1031
|
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
1032
|
+
g && a.title && (a.title.content.text = Z(a, n, o));
|
|
1033
|
+
const b = u === e;
|
|
1034
|
+
if (D({
|
|
1035
|
+
config: a,
|
|
1036
|
+
value: b ? a.axes?.[1]?.minimum ?? null : null,
|
|
1037
|
+
axisIndex: 1,
|
|
1038
|
+
isMax: !1
|
|
1039
|
+
}), D({
|
|
1040
|
+
config: a,
|
|
1041
|
+
value: b ? a.axes?.[1]?.maximum ?? null : null,
|
|
1042
|
+
axisIndex: 1,
|
|
1043
|
+
isMax: !0
|
|
1044
|
+
}), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (D({ config: a, value: null, axisIndex: 0, isMax: !1 }), D({ config: a, value: null, axisIndex: 0, isMax: !0 }), v && i !== I.NoAggregation && !$(p))) {
|
|
1045
|
+
const h = q(y) ? X.Null : X.Interpolate;
|
|
1046
|
+
Et(h, a);
|
|
930
1047
|
}
|
|
931
|
-
|
|
932
|
-
delete
|
|
933
|
-
}) : m && i.series.forEach((B) => {
|
|
934
|
-
B.query && (B.query.fetchNullValues = m);
|
|
935
|
-
}), d && i.series.forEach((B) => {
|
|
936
|
-
(B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = d);
|
|
1048
|
+
$(a) && qe({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((h) => {
|
|
1049
|
+
d && delete h.query, u !== e && L(h) && (y?.type === De.TimeOnly ? h.binTemporalData = !1 : h.binTemporalData = h.type === T.LineSeries && q(y));
|
|
937
1050
|
});
|
|
938
|
-
},
|
|
939
|
-
|
|
1051
|
+
}, Me = (s, e) => {
|
|
1052
|
+
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 = {
|
|
940
1053
|
...e.markerSymbol,
|
|
941
|
-
color:
|
|
1054
|
+
color: s.markerSymbol?.color
|
|
942
1055
|
});
|
|
943
|
-
},
|
|
944
|
-
const { config: e, seriesIndex:
|
|
945
|
-
let
|
|
946
|
-
if (
|
|
947
|
-
|
|
948
|
-
else if (
|
|
949
|
-
const
|
|
950
|
-
|
|
1056
|
+
}, Di = (s) => {
|
|
1057
|
+
const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
|
|
1058
|
+
let o;
|
|
1059
|
+
if (ee(e.series) === P.BarAndLineFromFields)
|
|
1060
|
+
o = i.axisLabels.values;
|
|
1061
|
+
else if ($e(n)) {
|
|
1062
|
+
const c = a.query?.outStatistics?.[0]?.onStatisticField;
|
|
1063
|
+
c !== void 0 && c !== j(r.layer).idField && (o = w(r.layerFieldsInfo, c));
|
|
951
1064
|
} else {
|
|
952
|
-
const
|
|
953
|
-
|
|
1065
|
+
const c = String(Re(a)).trim().replace(/'/gu, "");
|
|
1066
|
+
o = Oe({
|
|
954
1067
|
queryObject: r.layer,
|
|
955
|
-
fieldName:
|
|
956
|
-
fieldValue:
|
|
957
|
-
}) ??
|
|
1068
|
+
fieldName: n,
|
|
1069
|
+
fieldValue: c ?? ""
|
|
1070
|
+
}) ?? c;
|
|
958
1071
|
}
|
|
959
|
-
return
|
|
960
|
-
},
|
|
961
|
-
if (
|
|
962
|
-
|
|
1072
|
+
return o ?? a.id;
|
|
1073
|
+
}, Vi = (s, e) => {
|
|
1074
|
+
if ($(e))
|
|
1075
|
+
ss(s, e);
|
|
963
1076
|
else {
|
|
964
1077
|
e.orderOptions ??= {};
|
|
965
|
-
const
|
|
966
|
-
|
|
967
|
-
orderType:
|
|
968
|
-
orderBy: [...
|
|
1078
|
+
const t = e.orderOptions?.data?.orderType;
|
|
1079
|
+
de(e)[0] === oe.customSort && t === N.Category && (e.orderOptions.data = {
|
|
1080
|
+
orderType: N.Category,
|
|
1081
|
+
orderBy: [...s]
|
|
969
1082
|
});
|
|
970
1083
|
}
|
|
971
|
-
},
|
|
972
|
-
const { config: e, layerInfo:
|
|
973
|
-
let
|
|
974
|
-
return
|
|
975
|
-
layerInfo:
|
|
1084
|
+
}, ki = async (s) => {
|
|
1085
|
+
const { config: e, layerInfo: t, errorStrings: r } = s, i = E(e), a = Le(e)?.type, n = K(e), o = ee(e.series);
|
|
1086
|
+
let l = [];
|
|
1087
|
+
return a === T.CategoryAxisFormat && (o === P.BarAndLineFromFields || i === U ? l = n.map((c) => w(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await Xe({
|
|
1088
|
+
layerInfo: t,
|
|
976
1089
|
config: e,
|
|
977
|
-
category:
|
|
1090
|
+
category: i,
|
|
978
1091
|
errorStrings: r
|
|
979
|
-
}))),
|
|
1092
|
+
}))), l;
|
|
980
1093
|
};
|
|
981
|
-
function
|
|
982
|
-
const r =
|
|
983
|
-
return r ===
|
|
1094
|
+
function ne(s, e, t) {
|
|
1095
|
+
const r = Z(s, e, t), i = Rt(s), a = se(s);
|
|
1096
|
+
return r === i || a;
|
|
984
1097
|
}
|
|
985
|
-
function
|
|
986
|
-
const r =
|
|
987
|
-
config:
|
|
1098
|
+
function We(s, e, t) {
|
|
1099
|
+
const r = ye({
|
|
1100
|
+
config: s,
|
|
988
1101
|
layerInfo: e,
|
|
989
|
-
commonStrings:
|
|
990
|
-
numericFields:
|
|
991
|
-
aggregationType:
|
|
992
|
-
}),
|
|
993
|
-
return r ===
|
|
1102
|
+
commonStrings: t,
|
|
1103
|
+
numericFields: K(s),
|
|
1104
|
+
aggregationType: we(s)
|
|
1105
|
+
}), i = ie(1, s), a = se(s);
|
|
1106
|
+
return r === i || a;
|
|
994
1107
|
}
|
|
995
|
-
function
|
|
996
|
-
const s =
|
|
997
|
-
return
|
|
1108
|
+
function ds(s) {
|
|
1109
|
+
const { config: e, layerInfo: t, commonStrings: r } = s, i = w(t.layerFieldsInfo, E(e)), a = ie(0, e), n = se(e), o = E(e) === U && (a === "" || a === r.xAxis);
|
|
1110
|
+
return i === a || n || o;
|
|
998
1111
|
}
|
|
999
|
-
function
|
|
1000
|
-
return
|
|
1112
|
+
function qi(s) {
|
|
1113
|
+
return L(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
|
|
1001
1114
|
}
|
|
1002
|
-
function
|
|
1003
|
-
|
|
1004
|
-
(
|
|
1005
|
-
unit:
|
|
1115
|
+
function Ri(s, e) {
|
|
1116
|
+
e?.series.forEach((t) => {
|
|
1117
|
+
L(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
|
|
1118
|
+
unit: le.Day,
|
|
1006
1119
|
size: 0,
|
|
1007
|
-
timeAggregationType:
|
|
1120
|
+
timeAggregationType: ht.Start,
|
|
1008
1121
|
trimIncompleteTimeInterval: !0,
|
|
1009
|
-
nullPolicy:
|
|
1010
|
-
} : delete
|
|
1122
|
+
nullPolicy: X.Null
|
|
1123
|
+
} : delete t.temporalBinning);
|
|
1011
1124
|
});
|
|
1012
1125
|
}
|
|
1013
1126
|
export {
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1127
|
+
Gs as $,
|
|
1128
|
+
ki as A,
|
|
1129
|
+
Vi as B,
|
|
1130
|
+
Oi as C,
|
|
1131
|
+
qi as D,
|
|
1132
|
+
Ri as E,
|
|
1133
|
+
Z as F,
|
|
1134
|
+
qe as G,
|
|
1135
|
+
Jt as H,
|
|
1136
|
+
_s as I,
|
|
1137
|
+
Si as J,
|
|
1138
|
+
Fi as K,
|
|
1139
|
+
es as L,
|
|
1140
|
+
Qs as M,
|
|
1141
|
+
ts as N,
|
|
1142
|
+
zs as O,
|
|
1143
|
+
xi as P,
|
|
1144
|
+
hi as Q,
|
|
1145
|
+
Ti as R,
|
|
1146
|
+
Bi as S,
|
|
1147
|
+
Ai as T,
|
|
1148
|
+
vi as U,
|
|
1149
|
+
Ii as V,
|
|
1150
|
+
Ht as W,
|
|
1151
|
+
Li as X,
|
|
1152
|
+
Xs as Y,
|
|
1153
|
+
Hs as Z,
|
|
1154
|
+
Js as _,
|
|
1155
|
+
Ms as a,
|
|
1156
|
+
ti as a0,
|
|
1157
|
+
ei as a1,
|
|
1158
|
+
js as a2,
|
|
1159
|
+
Us as a3,
|
|
1160
|
+
Ks as a4,
|
|
1161
|
+
Zs as a5,
|
|
1162
|
+
ai as a6,
|
|
1163
|
+
ri as a7,
|
|
1164
|
+
ni as a8,
|
|
1165
|
+
oi as a9,
|
|
1166
|
+
ii as aa,
|
|
1167
|
+
si as ab,
|
|
1168
|
+
li as ac,
|
|
1169
|
+
is as ad,
|
|
1170
|
+
ci as ae,
|
|
1171
|
+
ui as af,
|
|
1172
|
+
di as ag,
|
|
1173
|
+
yi as ah,
|
|
1174
|
+
mi as ai,
|
|
1175
|
+
gi as aj,
|
|
1176
|
+
bi as ak,
|
|
1177
|
+
Ci as al,
|
|
1178
|
+
pi as am,
|
|
1179
|
+
fi as an,
|
|
1180
|
+
ws as b,
|
|
1181
|
+
Ps as c,
|
|
1182
|
+
K as d,
|
|
1183
|
+
re as e,
|
|
1184
|
+
$s as f,
|
|
1185
|
+
we as g,
|
|
1186
|
+
Di as h,
|
|
1187
|
+
Ws as i,
|
|
1188
|
+
Ns as j,
|
|
1189
|
+
Pt as k,
|
|
1190
|
+
wt as l,
|
|
1191
|
+
ks as m,
|
|
1192
|
+
Os as n,
|
|
1193
|
+
qs as o,
|
|
1194
|
+
Ys as p,
|
|
1195
|
+
Ds as q,
|
|
1196
|
+
Ut as r,
|
|
1197
|
+
ke as s,
|
|
1198
|
+
Rs as t,
|
|
1199
|
+
Es as u,
|
|
1200
|
+
Vs as v,
|
|
1201
|
+
Et as w,
|
|
1202
|
+
Mt as x,
|
|
1203
|
+
Ni as y,
|
|
1204
|
+
de as z
|
|
1089
1205
|
};
|