@arcgis/charts-components 5.2.0-next.2 → 5.2.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{ZRFHAQL6.js → 2OXJ5CIC.js} +1 -1
- package/dist/cdn/2YRBTD5E.js +2 -0
- package/dist/cdn/{VVKV5KKN.js → 3CRUKP7D.js} +1 -1
- package/dist/cdn/3MKY6UCO.js +2 -0
- package/dist/cdn/3SBYV6BW.js +2 -0
- package/dist/cdn/{LRNADJJG.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/4MBX554Q.js +2 -0
- package/dist/cdn/4ZGGMYAW.js +2 -0
- package/dist/cdn/{HCMD362H.js → 54CA4NEA.js} +1 -1
- package/dist/cdn/5B7SUFIW.js +2 -0
- package/dist/cdn/{VDG54AIC.js → 62ECX35C.js} +1 -1
- package/dist/cdn/{HCV34H6X.js → 6ECU76VK.js} +1 -1
- package/dist/cdn/7473JWME.js +2 -0
- package/dist/cdn/74UHJFPH.js +2 -0
- package/dist/cdn/{PVJEBBA7.js → 7532DIDI.js} +1 -1
- package/dist/cdn/{JVHJMPFE.js → 7C6E54U5.js} +1 -1
- package/dist/cdn/7X5P6K2W.js +2 -0
- package/dist/cdn/A636YSNA.js +2 -0
- package/dist/cdn/{TNB3MBXR.js → ABAERFCU.js} +1 -1
- package/dist/cdn/AH2UFHXP.js +2 -0
- package/dist/cdn/AHTGZ4MH.js +2 -0
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/{KOBNV5AQ.js → B34ZX3IO.js} +1 -1
- package/dist/cdn/BMAAWO5F.js +2 -0
- package/dist/cdn/CG6MYXFY.js +2 -0
- package/dist/cdn/{LONASKGH.js → CPT6BODA.js} +1 -1
- package/dist/cdn/CRCAJAFA.js +2 -0
- package/dist/cdn/DG2OI6R3.js +3 -0
- package/dist/cdn/DKENYDHS.js +233 -0
- package/dist/cdn/{YRBE7MBU.js → DSHN2EGI.js} +1 -1
- package/dist/cdn/E44C5J3E.js +2 -0
- package/dist/cdn/{LZYN55O4.js → EHMSOPGV.js} +1 -1
- package/dist/cdn/{KLC6NTPC.js → ETXHDKUU.js} +1 -1
- package/dist/cdn/{GL3IXVRN.js → F4WIDKYH.js} +1 -1
- package/dist/cdn/{TZB57XD4.js → FGRHILPJ.js} +1 -1
- package/dist/cdn/FYDWWQCT.js +2 -0
- package/dist/cdn/GIBMAXXC.js +2 -0
- package/dist/cdn/{24LTTBTF.js → HJIWACZ5.js} +1 -1
- package/dist/cdn/{WEQBZOH7.js → HNHNP7BI.js} +1 -1
- package/dist/cdn/{TYMKFCF4.js → HXR7LXG4.js} +1 -1
- package/dist/cdn/I4MM4T5T.js +2 -0
- package/dist/cdn/IHHPUKGG.js +2 -0
- package/dist/cdn/{R45FWF7D.js → IJNPEW4W.js} +1 -1
- package/dist/cdn/{OE3UFORR.js → ILMYZIWD.js} +1 -1
- package/dist/cdn/{U4XLNCOU.js → IQ3T72TK.js} +1 -1
- package/dist/cdn/{3YT44D4Z.js → IRJ2YA3P.js} +1 -1
- package/dist/cdn/{A5GIBV5W.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/{MRTKZZTF.js → JHANH4UG.js} +1 -1
- package/dist/cdn/JMLS3OCC.js +2 -0
- package/dist/cdn/JQ7KK2TT.js +2 -0
- package/dist/cdn/K5AZMQ5Q.js +2 -0
- package/dist/cdn/KNYJJN7R.js +2 -0
- package/dist/cdn/{FDXE5JLT.js → L3XXFSDJ.js} +1 -1
- package/dist/cdn/L52YJC6U.js +2 -0
- package/dist/cdn/{GES3HRXE.js → LKAKZYML.js} +1 -1
- package/dist/cdn/{CJ4POAPM.js → LNRU4KNE.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{RAQZUMC6.js → LYRIOMLM.js} +1 -1
- package/dist/cdn/{RFQBUWOW.js → NI4KTOCF.js} +1 -1
- package/dist/cdn/O533LNDP.js +2 -0
- package/dist/cdn/{UKDTXHZT.js → OKMRX4U5.js} +1 -1
- package/dist/cdn/{LDPHZHSF.js → OYQK2TIQ.js} +1 -1
- package/dist/cdn/{NQQW4GKA.js → PKCOYJHN.js} +1 -1
- package/dist/cdn/{PK5XIIZY.js → POIIR3QR.js} +1 -1
- package/dist/cdn/PSUB3KL5.js +4 -0
- package/dist/cdn/{KI4HS3AM.js → PWNFUWUN.js} +1 -1
- package/dist/cdn/Q5J2S3DE.js +2 -0
- package/dist/cdn/{5JML3JUR.js → QEC5EZ6Q.js} +1 -1
- package/dist/cdn/QID7XRNR.js +2 -0
- package/dist/cdn/QKL4PXPG.js +2 -0
- package/dist/cdn/{2K4ODNJ4.js → QN7MXGGV.js} +1 -1
- package/dist/cdn/{WASEMNYV.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/R7QGZ7QJ.js +2 -0
- package/dist/cdn/RGFQCA4L.js +102 -0
- package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/RQN3DHRN.js +2 -0
- package/dist/cdn/{N524VXQ2.js → RY3TJU7J.js} +1 -1
- package/dist/cdn/{7ABIELGZ.js → RZGDZC44.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/SCX3TUEG.js +2 -0
- package/dist/cdn/STTG3UAJ.js +2 -0
- package/dist/cdn/{VEA5ZR5D.js → SZOAGNYC.js} +1 -1
- package/dist/cdn/{PZGIXDMC.js → T5KLEUNC.js} +1 -1
- package/dist/cdn/{23YH7MTF.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/{PC7IKOIB.js → TH2F4GPI.js} +1 -1
- package/dist/cdn/{TU3UF32Y.js → U555MUVU.js} +1 -1
- package/dist/cdn/V2H2UI2W.js +2 -0
- package/dist/cdn/{RX3RNE7F.js → V6UMDO6X.js} +1 -1
- package/dist/cdn/VJFHFI6U.js +58 -0
- package/dist/cdn/{3DK6M5E7.js → VK4OJOVV.js} +1 -1
- package/dist/cdn/{5QO32XSX.js → VM6CF4WH.js} +1 -1
- package/dist/cdn/{TAI4RIWT.js → WE2J37H5.js} +1 -1
- package/dist/cdn/{5G7DSKI7.js → XAO2DW32.js} +1 -1
- package/dist/cdn/XRLVJJBT.js +2 -0
- package/dist/cdn/{U2LJZ4ML.js → XVW5DABR.js} +1 -1
- package/dist/cdn/YVOKQFAW.js +2 -0
- package/dist/cdn/{PSO5AURI.js → Z2Z3DPFE.js} +1 -1
- package/dist/cdn/ZW4PF3UK.js +2 -0
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -0
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +8 -8
- package/dist/chunks/chart-model.js +170 -138
- package/dist/chunks/class-breaks.js +18 -18
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/index2.js +2259 -2226
- package/dist/chunks/index3.js +32 -29
- package/dist/chunks/index4.js +107 -49
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/pie-chart-data.js +42 -36
- package/dist/chunks/pie-chart-model.js +175 -162
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +591 -579
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/utils.js +67 -56
- package/dist/chunks/web-component-utils.js +601 -491
- package/dist/components/arcgis-chart/customElement.d.ts +145 -138
- package/dist/components/arcgis-chart/customElement.js +6353 -6353
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +35 -36
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -16
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -27
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +29 -31
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +38 -40
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +66 -70
- package/dist/index.js +212 -210
- package/dist/json-schema/index.d.ts +59 -2
- package/dist/loader.js +1 -1
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +8 -2
- package/dist/utils/chart-config/converter/index.js +264 -264
- package/dist/utils/chart-config/utils/index.d.ts +36 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
- package/dist/utils/data/index.d.ts +8 -11
- package/dist/utils/defaults/index.d.ts +1 -2
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +5 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/layer/query-parser/index.d.ts +3 -3
- package/dist/utils/localization/interfaces.d.ts +4 -0
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +6 -6
- package/dist/cdn/26FWESH3.js +0 -102
- package/dist/cdn/3XHZ677O.js +0 -2
- package/dist/cdn/5FMEOIBS.js +0 -3
- package/dist/cdn/74JAZF7U.js +0 -2
- package/dist/cdn/7HIZH35G.js +0 -2
- package/dist/cdn/CCR46UHB.js +0 -2
- package/dist/cdn/CRFJ2GGS.js +0 -2
- package/dist/cdn/CXQOEN77.js +0 -2
- package/dist/cdn/DYC3Q36R.js +0 -2
- package/dist/cdn/E2N2S7BH.js +0 -2
- package/dist/cdn/E43KEVHT.js +0 -2
- package/dist/cdn/EXTKNE2L.js +0 -2
- package/dist/cdn/F7Y6EWWB.js +0 -2
- package/dist/cdn/G5HVFOIO.js +0 -2
- package/dist/cdn/G7TRU7JI.js +0 -2
- package/dist/cdn/IHQ7R6L4.js +0 -4
- package/dist/cdn/IUFXFWXH.js +0 -2
- package/dist/cdn/JHYH555K.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/KVGEY3IQ.js +0 -2
- package/dist/cdn/KXNZEPLT.js +0 -58
- package/dist/cdn/LWODMEOP.js +0 -2
- package/dist/cdn/LYZGRYQV.js +0 -2
- package/dist/cdn/MF3FGXHI.js +0 -2
- package/dist/cdn/MUPHTV55.js +0 -2
- package/dist/cdn/N5ERJZPG.js +0 -2
- package/dist/cdn/NGPMU4T3.js +0 -2
- package/dist/cdn/NJCZ6UTM.js +0 -2
- package/dist/cdn/NMB6TWC2.js +0 -2
- package/dist/cdn/NNNTZU5J.js +0 -2
- package/dist/cdn/NS3THLCD.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/P2NPQAJ3.js +0 -2
- package/dist/cdn/PJUAU42S.js +0 -2
- package/dist/cdn/PY5Q3V6E.js +0 -2
- package/dist/cdn/RMYZGOBM.js +0 -2
- package/dist/cdn/TXSWWAOF.js +0 -2
- package/dist/cdn/UAJGYF4S.js +0 -2
- package/dist/cdn/UT6G7RV7.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/WO6JBNMU.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/cdn/ZRZEKOEF.js +0 -2
- /package/dist/cdn/{2HGBRW4I.js → 3HAB3JR6.js} +0 -0
- /package/dist/cdn/{AJBEE7WE.js → 3YOOX2CV.js} +0 -0
- /package/dist/cdn/{53FG76LL.js → 4DSO7LUF.js} +0 -0
- /package/dist/cdn/{2X75KJPF.js → 5HRLHWQ5.js} +0 -0
- /package/dist/cdn/{I36OAVW3.js → 732EZ6WJ.js} +0 -0
- /package/dist/cdn/{3V4HRXIT.js → 7IS6QE6S.js} +0 -0
- /package/dist/cdn/{VFM2EV3M.js → 7XZZ5OZL.js} +0 -0
- /package/dist/cdn/{4E7C5QPS.js → AN2NRYQV.js} +0 -0
- /package/dist/cdn/{O2ERVMSN.js → ASUGYCJ6.js} +0 -0
- /package/dist/cdn/{TSI3C3OV.js → BICQEJYZ.js} +0 -0
- /package/dist/cdn/{66KSEDOR.js → C2I4WPWM.js} +0 -0
- /package/dist/cdn/{NFDXH5B3.js → C47AIJTI.js} +0 -0
- /package/dist/cdn/{B4KT2HUE.js → C5YJ7J3A.js} +0 -0
- /package/dist/cdn/{4QQVKRJ5.js → DPV2ZJLF.js} +0 -0
- /package/dist/cdn/{ZFM5RGWD.js → E4535ZTP.js} +0 -0
- /package/dist/cdn/{M4AQLWZU.js → FJNRPAMO.js} +0 -0
- /package/dist/cdn/{PH6UOHRS.js → GI54JT4O.js} +0 -0
- /package/dist/cdn/{YIIPYKTL.js → GYTYFBNU.js} +0 -0
- /package/dist/cdn/{RDTBZUT7.js → J5QUGI2J.js} +0 -0
- /package/dist/cdn/{XIJ5VLER.js → JPEN5TFK.js} +0 -0
- /package/dist/cdn/{DD4QUBOF.js → KBQM3DLQ.js} +0 -0
- /package/dist/cdn/{75P3QRL4.js → LEMJA72W.js} +0 -0
- /package/dist/cdn/{NHDVOYQ2.js → MMO2QPOA.js} +0 -0
- /package/dist/cdn/{NG2IHVZ4.js → PS7IL5JZ.js} +0 -0
- /package/dist/cdn/{5AOYADA3.js → R2RRMPOC.js} +0 -0
- /package/dist/cdn/{ABIVSH72.js → RV6E7KKQ.js} +0 -0
- /package/dist/cdn/{OA7FHTCA.js → RYLXJPKL.js} +0 -0
- /package/dist/cdn/{I5VHQW7B.js → S2R72ISR.js} +0 -0
- /package/dist/cdn/{N3VOUI25.js → T4NEEFOY.js} +0 -0
- /package/dist/cdn/{4JQ2RRLY.js → TEERYUCS.js} +0 -0
- /package/dist/cdn/{XWKBJDZT.js → V454JYTQ.js} +0 -0
- /package/dist/cdn/{LNF44ZGQ.js → V7JF5I5M.js} +0 -0
- /package/dist/cdn/{N6OT5IBC.js → VIZWWEG5.js} +0 -0
- /package/dist/cdn/{SGOYJFLO.js → W5SPX6WM.js} +0 -0
- /package/dist/cdn/{OYHKUGS6.js → X2IOJECM.js} +0 -0
- /package/dist/cdn/{O6SNP6QE.js → X33RIIGI.js} +0 -0
- /package/dist/cdn/{UAZ34KDJ.js → YBTVIOHQ.js} +0 -0
- /package/dist/cdn/{7ILH7ZG2.js → YFQHZWLO.js} +0 -0
- /package/dist/cdn/{FLO3N6JD.js → YX4EVVJM.js} +0 -0
- /package/dist/cdn/{CODAXMWM.js → YXH22GJ6.js} +0 -0
- /package/dist/cdn/{DIKQ7BPQ.js → ZMQTYGGT.js} +0 -0
|
@@ -1,174 +1,174 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { substitute as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { S as
|
|
5
|
-
import { s as
|
|
6
|
-
import { w as
|
|
7
|
-
import { a as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { C as D, d as w, F as U } from "./index3.js";
|
|
11
|
-
import { convertChartSpec as rt } from "../utils/chart-config/converter/index.js";
|
|
12
|
-
import { h as Be, i as O, j as lt, n as nt, g as b, m as A, e as pe } from "./index5.js";
|
|
13
|
-
import { c as se, e as ot } from "./type-guards.js";
|
|
14
|
-
import { az as ut, t as ct, Y as dt, a9 as yt, al as mt, x as gt, C as fe, H as Se, $ as pt } from "./index.js";
|
|
15
|
-
import { g as oe } from "./utils2.js";
|
|
16
|
-
import { a as ft, b as St } from "./series-length.js";
|
|
17
|
-
import { i as Ft, R as ht } from "./rest-js-object-literals.js";
|
|
2
|
+
import { substitute as w } from "@arcgis/core/intl.js";
|
|
3
|
+
import { cloneDeep as re, isEmpty as Le, memoize as Ve } from "lodash-es";
|
|
4
|
+
import { S as ee } from "./common.js";
|
|
5
|
+
import { s as q, u as E, g as le, a as Fe, b as Ne, c as qe, d as ce } from "./utils.js";
|
|
6
|
+
import { w as k, bY as ke, bm as Re, x as Oe, Y as K, cr as De, cq as Pe, p as we, aH as ne, c2 as Ee, d as Me, aG as $e, I as Ye, a7 as We, bk as Xe, W as He, e as je, bo as Ue, c_ as Ke, v as Qe, d5 as de, bM as ze, d6 as _e, bI as Ge, B as Ze, d2 as Je, an as H, a6 as he, cS as oe, b9 as et, k as te, bq as tt, bu as ye, bb as U, bh as me } from "./index2.js";
|
|
7
|
+
import { a as Y, s as xe, g as Q, b as ge, c as st } from "./data.js";
|
|
8
|
+
import { u as I, r as v, k as it, n as N, m as M, p as at, t as rt, s as se } from "./chart-object-literals.js";
|
|
9
|
+
import { i as lt, R as nt } from "./rest-js-object-literals.js";
|
|
18
10
|
import { i as z } from "./index4.js";
|
|
19
|
-
|
|
11
|
+
import { az as ot, t as ut, Y as ct, a9 as dt, al as yt, x as mt, C as pe, H as fe, $ as gt } from "./index.js";
|
|
12
|
+
import { C as P, F as $, d as D } from "./index3.js";
|
|
13
|
+
import { h as Te, i as O, j as pt, n as ft, g as b, m as A, e as Se } from "./index5.js";
|
|
14
|
+
import { convertChartSpec as St } from "../utils/chart-config/converter/index.js";
|
|
15
|
+
import { c as ie, e as Ft } from "./type-guards.js";
|
|
16
|
+
import { g as Be } from "./series-types.js";
|
|
17
|
+
import { g as ue } from "./utils2.js";
|
|
18
|
+
import { a as ht, b as xt } from "./series-length.js";
|
|
19
|
+
const is = (t) => {
|
|
20
20
|
let e;
|
|
21
21
|
const s = t.series[0];
|
|
22
|
-
return
|
|
22
|
+
return k(s) && (e = s.temporalBinning?.size), e;
|
|
23
23
|
}, Tt = (t) => {
|
|
24
24
|
let e;
|
|
25
25
|
const s = t.series[0];
|
|
26
|
-
return
|
|
27
|
-
},
|
|
26
|
+
return k(s) && (e = s.temporalBinning?.unit), e;
|
|
27
|
+
}, as = (t) => {
|
|
28
28
|
let e;
|
|
29
29
|
const s = t.series[0];
|
|
30
|
-
return
|
|
31
|
-
},
|
|
30
|
+
return k(s) && (e = s.temporalBinning?.timeAggregationType), e;
|
|
31
|
+
}, rs = (t) => {
|
|
32
32
|
let e;
|
|
33
33
|
const s = t.series[0];
|
|
34
|
-
return
|
|
35
|
-
},
|
|
34
|
+
return k(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
35
|
+
}, ls = (t) => {
|
|
36
36
|
let e;
|
|
37
37
|
const s = t.series[0];
|
|
38
|
-
return
|
|
39
|
-
}, xt = (t, e) => {
|
|
40
|
-
e?.series?.forEach((s) => {
|
|
41
|
-
R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
|
|
42
|
-
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
38
|
+
return k(s) && (e = s.temporalBinning?.nullPolicy), e;
|
|
43
39
|
}, Bt = (t, e) => {
|
|
44
40
|
e?.series?.forEach((s) => {
|
|
45
|
-
|
|
46
|
-
}),
|
|
47
|
-
},
|
|
41
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
|
|
42
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
43
|
+
}, Ct = (t, e) => {
|
|
44
|
+
e?.series?.forEach((s) => {
|
|
45
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
|
|
46
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
47
|
+
}, ns = (t, e) => {
|
|
48
48
|
e.series?.forEach((s) => {
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
},
|
|
49
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
|
|
50
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
51
|
+
}, os = (t, e) => {
|
|
52
52
|
e.series?.forEach((s) => {
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
},
|
|
53
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
|
|
54
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
55
|
+
}, us = (t, e) => {
|
|
56
56
|
e.series?.forEach((s) => {
|
|
57
|
-
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
|
|
57
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
|
|
58
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
|
+
}, bt = (t) => {
|
|
60
|
+
Bt(0, t);
|
|
61
61
|
};
|
|
62
|
-
function
|
|
62
|
+
function cs(t, e) {
|
|
63
63
|
let s;
|
|
64
64
|
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ds(t, e) {
|
|
67
67
|
let s;
|
|
68
68
|
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ys(t, e) {
|
|
71
71
|
let s;
|
|
72
72
|
return e !== void 0 && (s = { ...e, rotated: t }), s;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function At(t) {
|
|
75
75
|
let e;
|
|
76
76
|
return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return e != null ||
|
|
78
|
+
function ms(t, e) {
|
|
79
|
+
return e != null || Te(t);
|
|
80
80
|
}
|
|
81
|
-
async function
|
|
81
|
+
async function gs(t) {
|
|
82
82
|
const { config: e, layer: s, abortSignal: r } = t;
|
|
83
83
|
let a = !1;
|
|
84
|
-
return
|
|
84
|
+
return ie(s) || Ft(e) ? e && ie(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
|
|
85
85
|
}
|
|
86
|
-
async function
|
|
86
|
+
async function It(t) {
|
|
87
87
|
const {
|
|
88
88
|
queryObject: e,
|
|
89
89
|
chartConfig: s,
|
|
90
90
|
splitByField: r,
|
|
91
91
|
errorStrings: a,
|
|
92
92
|
abortSignal: i,
|
|
93
|
-
runtimeDataFilters:
|
|
94
|
-
ignoreViewExtent:
|
|
95
|
-
setTimeBinningInfoWhenNotProvided:
|
|
96
|
-
returnFeaturesExtent:
|
|
97
|
-
chartLimits:
|
|
93
|
+
runtimeDataFilters: l,
|
|
94
|
+
ignoreViewExtent: n,
|
|
95
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
96
|
+
returnFeaturesExtent: g,
|
|
97
|
+
chartLimits: S
|
|
98
98
|
} = t;
|
|
99
|
-
let
|
|
100
|
-
const
|
|
99
|
+
let o = [], c;
|
|
100
|
+
const m = re(s), d = m.series[0], u = je({
|
|
101
101
|
queryObject: e,
|
|
102
|
-
chartConfig:
|
|
103
|
-
runtimeDataFilters:
|
|
104
|
-
ignoreViewExtent:
|
|
102
|
+
chartConfig: m,
|
|
103
|
+
runtimeDataFilters: l,
|
|
104
|
+
ignoreViewExtent: n
|
|
105
105
|
});
|
|
106
|
-
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName =
|
|
107
|
-
xAxisValueFormatType: Ke(
|
|
108
|
-
setTimeBinningInfoWhenNotProvided:
|
|
109
|
-
seriesConfig:
|
|
106
|
+
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ot.outStatistics.outStatisticFieldName), k(d) && Ue({
|
|
107
|
+
xAxisValueFormatType: Ke(m),
|
|
108
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
109
|
+
seriesConfig: d,
|
|
110
110
|
queryObject: e
|
|
111
|
-
}) &&
|
|
112
|
-
const { temporalBinning: p, x:
|
|
113
|
-
chartConfig:
|
|
111
|
+
}) && Qe(r, e)) {
|
|
112
|
+
const { temporalBinning: p, x: T } = d, { uniqueQuery: C } = de({
|
|
113
|
+
chartConfig: m,
|
|
114
114
|
queryConfig: u,
|
|
115
115
|
queryObject: e,
|
|
116
|
-
setTimeBinningInfoWhenNotProvided:
|
|
117
|
-
returnFeaturesExtent:
|
|
118
|
-
chartLimits:
|
|
119
|
-
}),
|
|
120
|
-
|
|
116
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
117
|
+
returnFeaturesExtent: g,
|
|
118
|
+
chartLimits: S
|
|
119
|
+
}), F = s.axes?.[0].valueFormat.type === I.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
120
|
+
c = await ze({
|
|
121
121
|
queryObject: e,
|
|
122
|
-
dateField:
|
|
122
|
+
dateField: T,
|
|
123
123
|
splitByField: r,
|
|
124
124
|
queryConfig: C,
|
|
125
|
-
axisTimeZone:
|
|
125
|
+
axisTimeZone: F,
|
|
126
126
|
temporalBinning: p,
|
|
127
127
|
errorStrings: a,
|
|
128
128
|
abortSignal: i
|
|
129
|
-
}),
|
|
129
|
+
}), o = Array.from(
|
|
130
130
|
new Set(
|
|
131
|
-
|
|
132
|
-
const { stackedAttributes:
|
|
133
|
-
let
|
|
134
|
-
return
|
|
131
|
+
c.flatMap((f) => {
|
|
132
|
+
const { stackedAttributes: R } = f;
|
|
133
|
+
let x = [];
|
|
134
|
+
return R && (x = R.map((h) => h[r]).filter((h) => h !== void 0)), x;
|
|
135
135
|
})
|
|
136
136
|
).values()
|
|
137
137
|
);
|
|
138
138
|
} else {
|
|
139
139
|
const { uniqueQuery: p } = de({
|
|
140
|
-
chartConfig:
|
|
140
|
+
chartConfig: m,
|
|
141
141
|
queryObject: e,
|
|
142
142
|
queryConfig: u,
|
|
143
|
-
setTimeBinningInfoWhenNotProvided:
|
|
144
|
-
returnFeaturesExtent:
|
|
145
|
-
chartLimits:
|
|
146
|
-
}), { elementCount:
|
|
147
|
-
chartConfig:
|
|
143
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
144
|
+
returnFeaturesExtent: g,
|
|
145
|
+
chartLimits: S
|
|
146
|
+
}), { elementCount: T } = await _e({
|
|
147
|
+
chartConfig: m,
|
|
148
148
|
queryObject: e,
|
|
149
149
|
queryConfig: u,
|
|
150
|
-
behaviorAfterLimit:
|
|
150
|
+
behaviorAfterLimit: S?.behaviorAfterLimit,
|
|
151
151
|
numberMaxOfFeaturesToFetch: p.num,
|
|
152
152
|
abortSignal: i
|
|
153
153
|
});
|
|
154
|
-
|
|
154
|
+
c = await Ge({
|
|
155
155
|
queryObject: e,
|
|
156
156
|
queryConfig: p,
|
|
157
|
-
featureCount:
|
|
157
|
+
featureCount: T,
|
|
158
158
|
errorStrings: a,
|
|
159
159
|
abortSignal: i
|
|
160
|
-
}),
|
|
160
|
+
}), o = Array.from(
|
|
161
161
|
new Set(
|
|
162
|
-
|
|
162
|
+
c.map((C) => C.attributes[r]).filter((C) => C !== void 0)
|
|
163
163
|
).values()
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
return { allValues:
|
|
166
|
+
return { allValues: o, preFetchedQueryResponse: c };
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function vt(t, e) {
|
|
169
169
|
const s = /* @__PURE__ */ new Map();
|
|
170
170
|
return t.series.forEach((r) => {
|
|
171
|
-
let a =
|
|
171
|
+
let a = ne({
|
|
172
172
|
where: r.query?.where,
|
|
173
173
|
// normalize the value so it matches what we get from getAllValues()
|
|
174
174
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
@@ -178,24 +178,24 @@ function At(t, e) {
|
|
|
178
178
|
escape: !1
|
|
179
179
|
});
|
|
180
180
|
e && a !== null && (a = Number(a));
|
|
181
|
-
const i =
|
|
181
|
+
const i = Be([r]);
|
|
182
182
|
i !== void 0 && s.set(i, [
|
|
183
183
|
...s.get(i) ?? [],
|
|
184
184
|
a
|
|
185
185
|
]);
|
|
186
186
|
}), s;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Lt(t) {
|
|
189
189
|
const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
|
|
190
190
|
return Array.from(s.keys()).forEach((i) => {
|
|
191
|
-
const
|
|
192
|
-
let
|
|
193
|
-
r ?
|
|
194
|
-
|
|
195
|
-
}), a.set(i,
|
|
191
|
+
const l = s.get(i) ?? [];
|
|
192
|
+
let n = [];
|
|
193
|
+
r ? n = e : e.forEach((y) => {
|
|
194
|
+
l.includes(y) || n.push(y);
|
|
195
|
+
}), a.set(i, n);
|
|
196
196
|
}), a;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Vt(t) {
|
|
199
199
|
const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
|
|
200
200
|
JSON.stringify({
|
|
201
201
|
...e.series[0],
|
|
@@ -203,258 +203,258 @@ function It(t) {
|
|
|
203
203
|
})
|
|
204
204
|
);
|
|
205
205
|
if (i.query) {
|
|
206
|
-
if (i.id =
|
|
207
|
-
const
|
|
208
|
-
i.query.outStatistics[0].outStatisticFieldName =
|
|
206
|
+
if (s === null ? i.id = $.nullValue : s === "" ? i.id = $.emptyStringValue : i.id = `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
|
|
207
|
+
const n = i.id;
|
|
208
|
+
i.query.outStatistics[0].outStatisticFieldName = n, "y" in i && (i.y = n);
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
i.query.where = `${r}=${
|
|
210
|
+
const l = typeof s == "number" || s === null ? s : `'${s}'`;
|
|
211
|
+
i.query.where = `${r}=${l}`;
|
|
212
212
|
}
|
|
213
213
|
return i;
|
|
214
214
|
}
|
|
215
|
-
async function
|
|
215
|
+
async function Nt(t) {
|
|
216
216
|
const {
|
|
217
217
|
updateSplitBySeries: e,
|
|
218
218
|
config: s,
|
|
219
219
|
queryObject: r,
|
|
220
220
|
errorStrings: a,
|
|
221
221
|
abortSignal: i,
|
|
222
|
-
runtimeDataFilters:
|
|
223
|
-
ignoreViewExtent:
|
|
224
|
-
setTimeBinningInfoWhenNotProvided:
|
|
225
|
-
returnFeaturesExtent:
|
|
226
|
-
chartLimits:
|
|
227
|
-
} = t, { seriesTemplate:
|
|
228
|
-
let
|
|
229
|
-
if (r && !
|
|
230
|
-
const
|
|
231
|
-
s.series.length === 0 &&
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
-
const u =
|
|
222
|
+
runtimeDataFilters: l,
|
|
223
|
+
ignoreViewExtent: n,
|
|
224
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
225
|
+
returnFeaturesExtent: g,
|
|
226
|
+
chartLimits: S
|
|
227
|
+
} = t, { seriesTemplate: o } = e ?? {};
|
|
228
|
+
let c;
|
|
229
|
+
if (r && !ie(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || o !== void 0) && e.addMissingSeries) {
|
|
230
|
+
const m = s.series.length === 0;
|
|
231
|
+
s.series.length === 0 && o !== void 0 && s.series.push(o);
|
|
232
|
+
const d = K(s.series);
|
|
233
|
+
if (d === P.BoxPlotMonoFieldAndSplitBy || d === P.BoxPlotMultiFieldsAndSplitBy || d === P.BoxPlotMonoFieldAndCategoryAndSplitBy || d === P.BarAndLineSplitBy || d === P.BarAndLineSplitByNoAggregation) {
|
|
234
|
+
const u = $e(s.series[0]?.query?.where), p = Ye(r), T = We(u, p), C = T ? Xe(T) : !1, F = await It({
|
|
235
235
|
queryObject: r,
|
|
236
236
|
chartConfig: s,
|
|
237
237
|
splitByField: u,
|
|
238
238
|
abortSignal: i,
|
|
239
|
-
runtimeDataFilters:
|
|
240
|
-
ignoreViewExtent:
|
|
241
|
-
setTimeBinningInfoWhenNotProvided:
|
|
242
|
-
returnFeaturesExtent:
|
|
243
|
-
chartLimits:
|
|
239
|
+
runtimeDataFilters: l,
|
|
240
|
+
ignoreViewExtent: n,
|
|
241
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
242
|
+
returnFeaturesExtent: g,
|
|
243
|
+
chartLimits: S,
|
|
244
244
|
errorStrings: a
|
|
245
|
-
}), { allValues: f } =
|
|
246
|
-
if ({ preFetchedQueryResponse:
|
|
247
|
-
const
|
|
245
|
+
}), { allValues: f } = F;
|
|
246
|
+
if ({ preFetchedQueryResponse: c } = F, f.length > 0) {
|
|
247
|
+
const R = vt(s, C), x = Lt({
|
|
248
248
|
allValues: f,
|
|
249
|
-
configUniqueValuesPerSeriesType:
|
|
250
|
-
initialConfigWasEmpty:
|
|
249
|
+
configUniqueValuesPerSeriesType: R,
|
|
250
|
+
initialConfigWasEmpty: m
|
|
251
251
|
});
|
|
252
|
-
Array.from(
|
|
253
|
-
(
|
|
252
|
+
Array.from(x.keys()).forEach((h) => {
|
|
253
|
+
(x.get(h) ?? []).forEach((V) => {
|
|
254
254
|
s.series.push(
|
|
255
|
-
|
|
255
|
+
Vt({
|
|
256
256
|
chartConfig: s,
|
|
257
|
-
seriesTemplate:
|
|
258
|
-
missingValue:
|
|
257
|
+
seriesTemplate: o,
|
|
258
|
+
missingValue: V,
|
|
259
259
|
splitByField: u
|
|
260
260
|
})
|
|
261
261
|
);
|
|
262
|
-
}),
|
|
262
|
+
}), m && s.series.shift();
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
return
|
|
267
|
+
return c;
|
|
268
268
|
}
|
|
269
269
|
function qt(t, e) {
|
|
270
|
-
e && !
|
|
270
|
+
e && !Te(e) && (e = Me({ chartConfig: e, queryObject: t }));
|
|
271
271
|
}
|
|
272
|
-
async function
|
|
272
|
+
async function ps(t) {
|
|
273
273
|
const {
|
|
274
274
|
configToAlter: e,
|
|
275
275
|
layer: s,
|
|
276
276
|
addMissingSeries: r,
|
|
277
277
|
updateSplitBySeries: a,
|
|
278
278
|
chartContainer: i,
|
|
279
|
-
queryObject:
|
|
280
|
-
abortSignal:
|
|
281
|
-
runtimeDataFilters:
|
|
282
|
-
ignoreViewExtent:
|
|
283
|
-
setTimeBinningInfoWhenNotProvided:
|
|
284
|
-
returnFeaturesExtent:
|
|
285
|
-
chartLimits:
|
|
286
|
-
errorStrings:
|
|
279
|
+
queryObject: l,
|
|
280
|
+
abortSignal: n,
|
|
281
|
+
runtimeDataFilters: y,
|
|
282
|
+
ignoreViewExtent: g,
|
|
283
|
+
setTimeBinningInfoWhenNotProvided: S,
|
|
284
|
+
returnFeaturesExtent: o,
|
|
285
|
+
chartLimits: c,
|
|
286
|
+
errorStrings: m
|
|
287
287
|
} = t;
|
|
288
|
-
let
|
|
289
|
-
return
|
|
288
|
+
let d = e, u;
|
|
289
|
+
return d && (qt(s, d), d = await St(d, s, void 0, n), r && l && (u = await Nt({
|
|
290
290
|
updateSplitBySeries: a,
|
|
291
|
-
config:
|
|
292
|
-
queryObject:
|
|
293
|
-
errorStrings:
|
|
294
|
-
abortSignal:
|
|
295
|
-
runtimeDataFilters:
|
|
296
|
-
ignoreViewExtent:
|
|
297
|
-
setTimeBinningInfoWhenNotProvided:
|
|
298
|
-
returnFeaturesExtent:
|
|
299
|
-
chartLimits:
|
|
300
|
-
})),
|
|
291
|
+
config: d,
|
|
292
|
+
queryObject: l,
|
|
293
|
+
errorStrings: m,
|
|
294
|
+
abortSignal: n,
|
|
295
|
+
runtimeDataFilters: y,
|
|
296
|
+
ignoreViewExtent: g,
|
|
297
|
+
setTimeBinningInfoWhenNotProvided: S,
|
|
298
|
+
returnFeaturesExtent: o,
|
|
299
|
+
chartLimits: c
|
|
300
|
+
})), d = ke(d, i)), { alteredConfig: d, preFetchedQueryResponse: u };
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function kt(t, e) {
|
|
303
303
|
let s = !1;
|
|
304
304
|
if (e !== void 0) {
|
|
305
|
-
const r =
|
|
305
|
+
const r = He({ key: Ze.Average, splitBy: e });
|
|
306
306
|
s = Number.isFinite(t[r]);
|
|
307
307
|
}
|
|
308
308
|
return s;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i =
|
|
312
|
-
let
|
|
310
|
+
function fs(t) {
|
|
311
|
+
const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = re(s);
|
|
312
|
+
let l = !1;
|
|
313
313
|
if (!r && a > 1 && e) {
|
|
314
|
-
const
|
|
315
|
-
switch (
|
|
316
|
-
case
|
|
317
|
-
case
|
|
318
|
-
case
|
|
319
|
-
case
|
|
320
|
-
i.series.forEach((
|
|
321
|
-
if (Array.isArray(
|
|
322
|
-
let
|
|
323
|
-
"y" in
|
|
324
|
-
(u) =>
|
|
314
|
+
const n = Oe(e), y = Be(s?.series), g = K(s?.series), S = /* @__PURE__ */ new Set();
|
|
315
|
+
switch (y) {
|
|
316
|
+
case I.ComboLineAndBarSeries:
|
|
317
|
+
case I.BarSeries:
|
|
318
|
+
case I.RadarSeries:
|
|
319
|
+
case I.LineSeries: {
|
|
320
|
+
i.series.forEach((c) => {
|
|
321
|
+
if (Array.isArray(n)) {
|
|
322
|
+
let m = "";
|
|
323
|
+
"y" in c && (m = Array.isArray(c.y) ? c.y[0] : c.y, g === P.BarAndLineSplitByNoAggregation && (m = `${m}_${ne({ where: c.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), n.some(
|
|
324
|
+
(u) => Ee({
|
|
325
325
|
dataItem: u,
|
|
326
|
-
x:
|
|
327
|
-
y:
|
|
326
|
+
x: c.x,
|
|
327
|
+
y: m,
|
|
328
328
|
aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
|
|
329
329
|
})
|
|
330
|
-
) &&
|
|
330
|
+
) && S.add(c));
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
break;
|
|
334
334
|
}
|
|
335
|
-
case
|
|
336
|
-
if (
|
|
337
|
-
const
|
|
338
|
-
s.series.forEach((
|
|
339
|
-
let
|
|
340
|
-
|
|
335
|
+
case I.BoxPlotSeries: {
|
|
336
|
+
if (De(s)) {
|
|
337
|
+
const c = Pe(s);
|
|
338
|
+
s.series.forEach((m) => {
|
|
339
|
+
let d, u;
|
|
340
|
+
m.type === I.BoxPlotSeries ? (d = e.dataItems, u = d?.some(
|
|
341
341
|
(p) => we({
|
|
342
342
|
dataItem: p,
|
|
343
|
-
splitBy:
|
|
344
|
-
showOutliers:
|
|
343
|
+
splitBy: m.query?.where,
|
|
344
|
+
showOutliers: c
|
|
345
345
|
})
|
|
346
|
-
)) :
|
|
347
|
-
(p) =>
|
|
348
|
-
)), u &&
|
|
346
|
+
)) : m.type === I.LineSeries && (d = e.meanLines, u = d?.some(
|
|
347
|
+
(p) => kt(p, m.query?.where)
|
|
348
|
+
)), u && S.add(m);
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
break;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
const
|
|
355
|
-
|
|
354
|
+
const o = Array.from(S.values());
|
|
355
|
+
l = o.length > 0 && o.length < a, l && (i.series = o);
|
|
356
356
|
}
|
|
357
|
-
return { seriesFilteredOut:
|
|
357
|
+
return { seriesFilteredOut: l, filteredConfig: i };
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const Ss = (t) => t.hideEmptyRowsAndColumns, Fs = (t, e) => {
|
|
360
360
|
t.hideEmptyRowsAndColumns = e;
|
|
361
|
-
},
|
|
361
|
+
}, hs = (t, e) => {
|
|
362
362
|
const s = t.series[0];
|
|
363
363
|
s.heatRulesType = e;
|
|
364
|
-
},
|
|
364
|
+
}, xs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
|
|
365
365
|
const s = t.series[0];
|
|
366
366
|
s.gradientRules = e;
|
|
367
|
-
},
|
|
368
|
-
const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i =
|
|
369
|
-
if (typeof e == "string" &&
|
|
370
|
-
const
|
|
371
|
-
E(s, 1,
|
|
367
|
+
}, Bs = (t) => t.series[0].gradientRules, Cs = (t) => {
|
|
368
|
+
const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ue(1, s), l = Rt(s), n = z(s), y = s.series[0];
|
|
369
|
+
if (typeof e == "string" && l !== e && y && (y.y = e, At(s), l === i || n)) {
|
|
370
|
+
const g = D(a, e);
|
|
371
|
+
E(s, 1, g);
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, Rt = (t) => t.series[0].y ?? "", bs = (t) => {
|
|
374
374
|
const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
|
|
375
375
|
if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
376
376
|
const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
377
377
|
E(s, 0, i);
|
|
378
378
|
}
|
|
379
|
-
},
|
|
379
|
+
}, As = (t) => t.series[0].xTemporalBinning, Is = (t) => {
|
|
380
380
|
const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
|
|
381
381
|
if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
382
382
|
const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
383
383
|
E(s, 1, i);
|
|
384
384
|
}
|
|
385
|
-
}, vs = (t) => t.series[0].yTemporalBinning,
|
|
385
|
+
}, vs = (t) => t.series[0].yTemporalBinning, Ot = (t, e) => {
|
|
386
386
|
e.orderOptions ??= {};
|
|
387
|
-
const s = e.axes?.[0]?.valueFormat?.type === "category" ?
|
|
387
|
+
const s = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = ae(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, i = ae(e)[1], l = {
|
|
388
388
|
...e.orderOptions.data ?? {},
|
|
389
|
-
orderType:
|
|
389
|
+
orderType: N.MultiAxes
|
|
390
390
|
};
|
|
391
|
-
r ===
|
|
392
|
-
},
|
|
391
|
+
r === ee.customSort && s === N.Category && (l.orderByX = [...t]), i === ee.customSort && a === N.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
|
|
392
|
+
}, Ls = (t, e) => {
|
|
393
393
|
const s = e.series[0];
|
|
394
394
|
s.gridLine && (s.gridLine.width = t);
|
|
395
|
-
},
|
|
395
|
+
}, Vs = (t) => t.series[0].gridLine?.width, Ns = (t, e) => {
|
|
396
396
|
const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
397
397
|
s.gridLine && r && (s.gridLine.color = t);
|
|
398
|
-
},
|
|
398
|
+
}, qs = (t) => t.series[0].gridLine?.color, ks = (t, e) => {
|
|
399
399
|
const s = e.legend;
|
|
400
400
|
s && (s.position = t);
|
|
401
|
-
}, Rs = (t) => t.legend?.position ??
|
|
402
|
-
const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0],
|
|
401
|
+
}, Rs = (t) => t.legend?.position ?? it.Bottom, Os = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ds = (t) => {
|
|
402
|
+
const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], l = Z(s, r, a);
|
|
403
403
|
i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
|
|
404
404
|
outStatistics: [
|
|
405
405
|
{
|
|
406
406
|
onStatisticField: e,
|
|
407
|
-
outStatisticFieldName: `${
|
|
408
|
-
statisticType:
|
|
407
|
+
outStatisticFieldName: `${v.Count}_${e}`,
|
|
408
|
+
statisticType: v.Count
|
|
409
409
|
}
|
|
410
410
|
]
|
|
411
|
-
},
|
|
412
|
-
},
|
|
413
|
-
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0],
|
|
414
|
-
i && e !==
|
|
415
|
-
},
|
|
411
|
+
}, l && s.title && (s.title.content.text = j(s, r, a));
|
|
412
|
+
}, Ps = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, ws = (t) => {
|
|
413
|
+
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], l = Z(s, r, a);
|
|
414
|
+
i && e !== v.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === v.Count || e === v.Sum) && Dt(M.Zero, s), l && s.title && (s.title.content.text = j(s, r, a));
|
|
415
|
+
}, Es = (t) => t.nullPolicy, Dt = (t, e) => {
|
|
416
416
|
e.nullPolicy = t;
|
|
417
|
-
},
|
|
417
|
+
}, Ms = (t) => t.series[0].emptyCells, $s = (t, e) => {
|
|
418
418
|
e.series[0].emptyCells = t;
|
|
419
|
-
},
|
|
419
|
+
}, Ys = (t) => t.series[0].emptyCells?.text, Ws = (t, e) => {
|
|
420
420
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
421
|
-
},
|
|
421
|
+
}, Xs = (t) => t.includeLeapDay, Hs = (t, e) => {
|
|
422
422
|
e.includeLeapDay = t;
|
|
423
|
-
},
|
|
423
|
+
}, js = (t) => t.series[0].emptyCells?.symbol, Us = (t, e) => {
|
|
424
424
|
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
|
|
425
425
|
};
|
|
426
426
|
function Ks(t) {
|
|
427
427
|
return t.viewType;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
429
|
+
function Qs(t, e) {
|
|
430
|
+
Je(e) || (e.viewType = t);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
return t.series[0].classBreaksRules?.breaksCount ??
|
|
432
|
+
function zs(t) {
|
|
433
|
+
return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ??
|
|
437
|
-
breaksCount: t ??
|
|
435
|
+
function _s(t, e) {
|
|
436
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? $.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
437
|
+
breaksCount: t ?? $.classBreaks.breaksCount
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
440
|
function Gs(t) {
|
|
441
441
|
return t.series[0].classBreaksRules?.classificationMethod;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Zs(t, e) {
|
|
444
444
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
|
|
445
445
|
classificationMethod: t
|
|
446
|
-
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ??
|
|
446
|
+
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Js(t, e) {
|
|
449
449
|
e.firstDayOfWeek = t;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function ei(t) {
|
|
452
452
|
return t.firstDayOfWeek;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function ti(t) {
|
|
455
455
|
return t.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function si(t, e) {
|
|
458
458
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
459
459
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
460
460
|
name: t
|
|
@@ -465,10 +465,10 @@ function ti(t, e) {
|
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function ii(t) {
|
|
469
469
|
return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function ai(t, e) {
|
|
472
472
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
473
473
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
474
474
|
flipped: t
|
|
@@ -478,138 +478,135 @@ function ii(t, e) {
|
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings:
|
|
483
|
-
let
|
|
484
|
-
const
|
|
485
|
-
let
|
|
486
|
-
if (
|
|
481
|
+
function W(t) {
|
|
482
|
+
const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, n = H(i?.layer).idField;
|
|
483
|
+
let y;
|
|
484
|
+
const g = a.series[e ?? 0];
|
|
485
|
+
let S = !1, o = !1, c = !1;
|
|
486
|
+
if (g === void 0) {
|
|
487
487
|
const u = a.series;
|
|
488
|
-
|
|
488
|
+
S = u.slice(0, e).every((p) => b(p)), o = u.slice(0, e).every((p) => A(p)), c = u.slice(0, e).every((p) => Se(p));
|
|
489
489
|
} else
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
commonStrings:
|
|
490
|
+
S = b(g), o = A(g), c = Se(g);
|
|
491
|
+
S ? y = ct({
|
|
492
|
+
commonStrings: l,
|
|
493
493
|
seriesIndex: e,
|
|
494
|
-
objectIDField:
|
|
495
|
-
}) :
|
|
496
|
-
commonStrings:
|
|
494
|
+
objectIDField: n
|
|
495
|
+
}) : o ? y = dt({
|
|
496
|
+
commonStrings: l,
|
|
497
497
|
seriesIndex: e,
|
|
498
|
-
objectIDField:
|
|
499
|
-
}) :
|
|
498
|
+
objectIDField: n
|
|
499
|
+
}) : c ? y = yt(l, n) : y = mt({
|
|
500
500
|
seriesIndex: e,
|
|
501
|
-
objectIDField:
|
|
502
|
-
commonStrings:
|
|
501
|
+
objectIDField: n,
|
|
502
|
+
commonStrings: l
|
|
503
503
|
});
|
|
504
|
-
const
|
|
505
|
-
...
|
|
504
|
+
const m = a.series[0]?.dataLabels, d = {
|
|
505
|
+
...y,
|
|
506
506
|
x: s,
|
|
507
507
|
y: "",
|
|
508
508
|
dataLabels: {
|
|
509
|
-
...
|
|
510
|
-
type:
|
|
511
|
-
content: { ...
|
|
512
|
-
visible:
|
|
509
|
+
...y.dataLabels,
|
|
510
|
+
type: y.dataLabels?.type ?? I.Text,
|
|
511
|
+
content: { ...y.dataLabels?.content, ...m?.content, type: lt.TS },
|
|
512
|
+
visible: m?.visible ?? !1
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
|
-
if (
|
|
515
|
+
if (d.query = {
|
|
516
516
|
groupByFieldsForStatistics: [s]
|
|
517
|
-
}, r !==
|
|
518
|
-
const u = `${r}_${
|
|
519
|
-
|
|
517
|
+
}, r !== v.NoAggregation && n !== void 0) {
|
|
518
|
+
const u = `${r}_${n}_0`.toUpperCase();
|
|
519
|
+
d.y = u, d.query.outStatistics = [
|
|
520
520
|
{
|
|
521
521
|
statisticType: r,
|
|
522
|
-
onStatisticField:
|
|
522
|
+
onStatisticField: n,
|
|
523
523
|
outStatisticFieldName: u
|
|
524
524
|
}
|
|
525
525
|
];
|
|
526
526
|
}
|
|
527
|
-
if (
|
|
528
|
-
let u;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
unit: p
|
|
534
|
-
};
|
|
535
|
-
}
|
|
527
|
+
if (k(a.series[0]) && k(d)) {
|
|
528
|
+
let u = Tt(a);
|
|
529
|
+
u === se.Quarter && (u = se.Month), d.temporalBinning = {
|
|
530
|
+
...a.series[0]?.temporalBinning,
|
|
531
|
+
unit: u
|
|
532
|
+
};
|
|
536
533
|
}
|
|
537
|
-
return
|
|
534
|
+
return re(d);
|
|
538
535
|
}
|
|
539
|
-
function
|
|
540
|
-
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } =
|
|
536
|
+
function j(t, e, s) {
|
|
537
|
+
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = H(e.layer), l = Y(t), n = G(t), y = be(t), g = _(t), S = i && (n.length === 0 || n.includes(a)), o = ut(y, s), c = S ? "" : n.map((F) => D(r ?? [], F)).join(", "), m = D(r ?? [], l), d = D(r ?? [], g), u = t.series.some((F) => O(F)), p = u ? "category" : "xAxisField", T = m;
|
|
541
538
|
let C = "";
|
|
542
|
-
if (
|
|
543
|
-
fieldName:
|
|
544
|
-
numericFields:
|
|
539
|
+
if (xe({
|
|
540
|
+
fieldName: l,
|
|
541
|
+
numericFields: n,
|
|
545
542
|
fieldList: r
|
|
546
543
|
}))
|
|
547
|
-
C =
|
|
548
|
-
aggregationType:
|
|
549
|
-
aggregationFields:
|
|
544
|
+
C = w(s.titleLabels.aggrTypeOfAggrFields, {
|
|
545
|
+
aggregationType: o,
|
|
546
|
+
aggregationFields: c
|
|
550
547
|
});
|
|
551
|
-
else if (
|
|
552
|
-
const
|
|
553
|
-
if (
|
|
548
|
+
else if (y === v.NoAggregation) {
|
|
549
|
+
const F = S ? a : c;
|
|
550
|
+
if (g === "") {
|
|
554
551
|
const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
555
|
-
C =
|
|
556
|
-
aggregationType:
|
|
557
|
-
[p]:
|
|
552
|
+
C = w(s.titleLabels[f], {
|
|
553
|
+
aggregationType: F,
|
|
554
|
+
[p]: T
|
|
558
555
|
});
|
|
559
556
|
} else {
|
|
560
557
|
const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
561
|
-
C =
|
|
562
|
-
aggregationType:
|
|
563
|
-
[p]:
|
|
564
|
-
splitByField:
|
|
558
|
+
C = w(s.titleLabels[f], {
|
|
559
|
+
aggregationType: F,
|
|
560
|
+
[p]: T,
|
|
561
|
+
splitByField: d
|
|
565
562
|
});
|
|
566
563
|
}
|
|
567
|
-
} else if (
|
|
568
|
-
if (
|
|
569
|
-
const
|
|
570
|
-
C =
|
|
571
|
-
aggregationType:
|
|
572
|
-
[p]:
|
|
564
|
+
} else if (y === v.Count)
|
|
565
|
+
if (g === "") {
|
|
566
|
+
const F = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
567
|
+
C = w(s.titleLabels[F], {
|
|
568
|
+
aggregationType: o,
|
|
569
|
+
[p]: T
|
|
573
570
|
});
|
|
574
571
|
} else {
|
|
575
|
-
const
|
|
576
|
-
C =
|
|
577
|
-
aggregationType:
|
|
578
|
-
[p]:
|
|
579
|
-
splitByField:
|
|
572
|
+
const F = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
573
|
+
C = w(s.titleLabels[F], {
|
|
574
|
+
aggregationType: o,
|
|
575
|
+
[p]: T,
|
|
576
|
+
splitByField: d
|
|
580
577
|
});
|
|
581
578
|
}
|
|
582
|
-
else if (
|
|
583
|
-
const
|
|
584
|
-
C =
|
|
585
|
-
aggregationType:
|
|
586
|
-
aggregationField:
|
|
587
|
-
[p]:
|
|
588
|
-
splitByField:
|
|
579
|
+
else if (g !== "") {
|
|
580
|
+
const F = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
581
|
+
C = w(s.titleLabels[F], {
|
|
582
|
+
aggregationType: o,
|
|
583
|
+
aggregationField: c,
|
|
584
|
+
[p]: T,
|
|
585
|
+
splitByField: d
|
|
589
586
|
});
|
|
590
|
-
} else if (
|
|
591
|
-
const
|
|
592
|
-
C =
|
|
593
|
-
aggregationType:
|
|
594
|
-
aggregationFields:
|
|
595
|
-
[p]:
|
|
587
|
+
} else if (n.length > 0) {
|
|
588
|
+
const F = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
589
|
+
C = w(s.titleLabels[F], {
|
|
590
|
+
aggregationType: o,
|
|
591
|
+
aggregationFields: c,
|
|
592
|
+
[p]: T
|
|
596
593
|
});
|
|
597
594
|
}
|
|
598
595
|
return C;
|
|
599
596
|
}
|
|
600
|
-
const Ce = (t) =>
|
|
597
|
+
const Ce = (t) => ne({
|
|
601
598
|
where: t.query?.where,
|
|
602
599
|
normalize: !1,
|
|
603
600
|
escape: !1
|
|
604
|
-
}) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ??
|
|
601
|
+
}) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, _ = Ve(
|
|
605
602
|
(t) => {
|
|
606
603
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
607
|
-
return
|
|
604
|
+
return et(t?.series?.[0]?.query?.where) ? "" : e;
|
|
608
605
|
},
|
|
609
606
|
(t) => t?.series?.[0]?.query?.where
|
|
610
607
|
), G = (t) => {
|
|
611
608
|
let e = [];
|
|
612
|
-
if (
|
|
609
|
+
if (_(t) === "")
|
|
613
610
|
e = t?.series.map((s) => {
|
|
614
611
|
const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
|
|
615
612
|
return r?.length > 0 ? r : s.y;
|
|
@@ -620,454 +617,469 @@ const Ce = (t) => le({
|
|
|
620
617
|
}
|
|
621
618
|
return e.filter((s) => s !== "");
|
|
622
619
|
};
|
|
623
|
-
function
|
|
620
|
+
function Ae(t) {
|
|
621
|
+
const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = H(r).idField ?? "";
|
|
622
|
+
return e === "" ? s[a] ?? i : s[0] ?? i;
|
|
623
|
+
}
|
|
624
|
+
function Pt(t) {
|
|
624
625
|
const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
|
|
625
626
|
let i = !1;
|
|
626
|
-
s ===
|
|
627
|
-
const
|
|
628
|
-
return
|
|
627
|
+
s === v.Count ? i = !0 : s === v.NoAggregation && (i = e.every((y) => {
|
|
628
|
+
const g = a.layerFieldsInfo.find((S) => S.name === y);
|
|
629
|
+
return g !== void 0 ? me(g) : !1;
|
|
629
630
|
})), ce(r, 1, i);
|
|
630
|
-
const
|
|
631
|
-
if (
|
|
632
|
-
const
|
|
633
|
-
ce(r, 0,
|
|
631
|
+
const l = r.series.some((y) => b(y)), n = r.series.some((y) => A(y));
|
|
632
|
+
if (l || n) {
|
|
633
|
+
const y = Y(r), g = a.layerFieldsInfo.find((o) => o.name === y), S = g !== void 0 && me(g);
|
|
634
|
+
ce(r, 0, S);
|
|
634
635
|
}
|
|
635
636
|
}
|
|
636
|
-
const
|
|
637
|
+
const ae = (t) => {
|
|
637
638
|
let e;
|
|
638
|
-
if (
|
|
639
|
-
const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ?
|
|
639
|
+
if (oe(t)) {
|
|
640
|
+
const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue;
|
|
640
641
|
e = [ge(s, a), ge(r, i)];
|
|
641
642
|
} else {
|
|
642
|
-
const s = t.orderOptions?.data?.orderType ??
|
|
643
|
-
e = [
|
|
643
|
+
const s = t.orderOptions?.data?.orderType ?? N.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : at.Ascending;
|
|
644
|
+
e = [st(r, s)];
|
|
644
645
|
}
|
|
645
646
|
return e;
|
|
646
647
|
};
|
|
647
|
-
function
|
|
648
|
-
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings:
|
|
649
|
-
let
|
|
650
|
-
const
|
|
648
|
+
function wt(t) {
|
|
649
|
+
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i;
|
|
650
|
+
let y = !1;
|
|
651
|
+
const g = W({
|
|
651
652
|
config: a,
|
|
652
653
|
xAxisField: e,
|
|
653
654
|
aggregationType: r,
|
|
654
655
|
layerInfo: i,
|
|
655
656
|
seriesIndex: 0,
|
|
656
|
-
commonStrings:
|
|
657
|
-
}),
|
|
657
|
+
commonStrings: l
|
|
658
|
+
}), S = Q({
|
|
658
659
|
config: a,
|
|
659
660
|
xAxisField: e,
|
|
660
661
|
numericFields: s,
|
|
661
662
|
aggregationType: r,
|
|
662
663
|
layer: i.layer,
|
|
663
|
-
fieldList:
|
|
664
|
-
}).name,
|
|
665
|
-
...
|
|
664
|
+
fieldList: n
|
|
665
|
+
}).name, o = {
|
|
666
|
+
...g,
|
|
666
667
|
id: `series_${Date.now()}`,
|
|
667
|
-
name:
|
|
668
|
-
x:
|
|
669
|
-
y:
|
|
670
|
-
},
|
|
671
|
-
for (const
|
|
672
|
-
|
|
673
|
-
onStatisticField:
|
|
674
|
-
outStatisticFieldName: `${
|
|
668
|
+
name: l.axisLabels.values,
|
|
669
|
+
x: te,
|
|
670
|
+
y: S
|
|
671
|
+
}, c = [];
|
|
672
|
+
for (const d of s)
|
|
673
|
+
c.push({
|
|
674
|
+
onStatisticField: d,
|
|
675
|
+
outStatisticFieldName: `${d}_0`.toUpperCase(),
|
|
675
676
|
statisticType: r
|
|
676
677
|
});
|
|
677
|
-
|
|
678
|
-
const
|
|
679
|
-
return
|
|
678
|
+
o.query = { outStatistics: c };
|
|
679
|
+
const m = a.series[0];
|
|
680
|
+
return m !== void 0 && (o.id = m.id, (b(o) && b(m) || A(o) && A(m)) && X(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)) && X(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];
|
|
680
681
|
}
|
|
681
|
-
function
|
|
682
|
-
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings:
|
|
683
|
-
let
|
|
682
|
+
function Ie(t) {
|
|
683
|
+
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i, y = H(i.layer).idField, g = [];
|
|
684
|
+
let S = !1;
|
|
684
685
|
for (let u = 0; u < s.length; u += 1) {
|
|
685
|
-
const p =
|
|
686
|
+
const p = W({
|
|
686
687
|
config: a,
|
|
687
688
|
xAxisField: e,
|
|
688
689
|
aggregationType: r,
|
|
689
690
|
layerInfo: i,
|
|
690
691
|
seriesIndex: u,
|
|
691
|
-
commonStrings:
|
|
692
|
-
}),
|
|
692
|
+
commonStrings: l
|
|
693
|
+
}), T = a.series[u]?.y, C = typeof T == "string" && T.trim() !== "" && !n.find((h) => h.name === T) ? T : Q({
|
|
693
694
|
config: a,
|
|
694
695
|
xAxisField: e,
|
|
695
696
|
numericFields: s,
|
|
696
697
|
aggregationType: r,
|
|
697
698
|
layer: i.layer,
|
|
698
699
|
numericFieldIndex: u,
|
|
699
|
-
fieldList:
|
|
700
|
-
}).name,
|
|
700
|
+
fieldList: n
|
|
701
|
+
}).name, F = s[u];
|
|
701
702
|
let f = {
|
|
702
703
|
...p,
|
|
703
704
|
query: {
|
|
704
705
|
...p.query
|
|
705
706
|
}
|
|
706
707
|
};
|
|
707
|
-
s &&
|
|
708
|
+
s && F !== y && (f = {
|
|
708
709
|
...f,
|
|
709
|
-
id:
|
|
710
|
-
name:
|
|
710
|
+
id: F,
|
|
711
|
+
name: D(n, F)
|
|
711
712
|
});
|
|
712
|
-
let
|
|
713
|
-
f.query !== void 0 && (r !==
|
|
713
|
+
let R = F;
|
|
714
|
+
f.query !== void 0 && (r !== v.NoAggregation ? (R = C, f.query.outStatistics = [
|
|
714
715
|
{
|
|
715
716
|
...p.query?.outStatistics?.[0] ?? {},
|
|
716
|
-
onStatisticField:
|
|
717
|
+
onStatisticField: F,
|
|
717
718
|
outStatisticFieldName: C,
|
|
718
719
|
statisticType: r
|
|
719
720
|
}
|
|
720
|
-
]) : delete f.query.outStatistics), f.y =
|
|
721
|
-
const
|
|
722
|
-
(
|
|
721
|
+
]) : delete f.query.outStatistics), f.y = R;
|
|
722
|
+
const x = a.series.find(
|
|
723
|
+
(h) => h.query?.outStatistics?.[0]?.onStatisticField === F && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === F || h.x === F)
|
|
723
724
|
);
|
|
724
|
-
if (
|
|
725
|
-
(b(f) && b(
|
|
726
|
-
const
|
|
725
|
+
if (x !== void 0 && typeof x.y == "string" && x.y.trim() !== "") {
|
|
726
|
+
(b(f) && b(x) || A(f) && A(x)) && X(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), S = !0);
|
|
727
|
+
const h = W({
|
|
727
728
|
config: a,
|
|
728
729
|
xAxisField: e,
|
|
729
730
|
aggregationType: r,
|
|
730
731
|
layerInfo: i,
|
|
731
732
|
seriesIndex: u,
|
|
732
|
-
commonStrings:
|
|
733
|
+
commonStrings: l
|
|
733
734
|
});
|
|
734
|
-
f.id =
|
|
735
|
+
f.id = x.id, x.id !== h.id && x.name !== h.name && (f.id = x.id, f.name = x.name), f.assignToSecondValueAxis = x.assignToSecondValueAxis, f.type === I.HeatSeries && x.type === I.HeatSeries && (f.y = x.y, f.heatRulesType = x.heatRulesType);
|
|
735
736
|
}
|
|
736
|
-
|
|
737
|
+
g.push(f);
|
|
737
738
|
}
|
|
738
|
-
const
|
|
739
|
+
const o = g.filter((u) => O(u)), c = g.filter(
|
|
739
740
|
(u) => b(u) || A(u)
|
|
740
|
-
),
|
|
741
|
+
), m = a.series.filter((u) => O(u)), d = a.series.filter(
|
|
741
742
|
(u) => b(u) || A(u)
|
|
742
743
|
);
|
|
743
|
-
return
|
|
744
|
+
return m.length === 1 && o.length === 1 && !a.colorMatch && (O(m[0]) && O(o[0]) && (o[0].fillSymbol = m[0].fillSymbol), S = !0), d.length === 1 && c.length === 1 && ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && X(c[0], d[0]), a.colorMatch || ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && (c[0].lineSymbol = d[0].lineSymbol, c[0].markerSymbol = d[0].markerSymbol), S = !0)), a.colorMatch = !S, g;
|
|
744
745
|
}
|
|
745
|
-
function
|
|
746
|
-
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer:
|
|
747
|
-
if (s.series.forEach((
|
|
746
|
+
function ri(t) {
|
|
747
|
+
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: l } = r, n = Y(s), y = G(s), g = _(s), S = Z(s, r, a), o = ve(s, r, a);
|
|
748
|
+
if (s.series.forEach((c, m) => {
|
|
748
749
|
const d = Q({
|
|
749
750
|
config: s,
|
|
750
|
-
xAxisField:
|
|
751
|
-
numericFields:
|
|
751
|
+
xAxisField: n,
|
|
752
|
+
numericFields: y,
|
|
752
753
|
aggregationType: e,
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
754
|
+
splitByField: g,
|
|
755
|
+
layer: l,
|
|
756
|
+
seriesIndex: m,
|
|
757
|
+
numericFieldIndex: m,
|
|
756
758
|
fieldList: i
|
|
757
759
|
}).name;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
760
|
+
c.y = d;
|
|
761
|
+
const u = Ae({
|
|
762
|
+
splitByField: g,
|
|
763
|
+
numericFields: y,
|
|
764
|
+
layer: l,
|
|
765
|
+
seriesIndex: m
|
|
766
|
+
}), p = c.query?.outStatistics?.[0]?.onStatisticField ?? u;
|
|
767
|
+
c.query = {
|
|
768
|
+
...c.query,
|
|
769
|
+
outStatistics: e === v.NoAggregation ? void 0 : [
|
|
761
770
|
{
|
|
762
|
-
...
|
|
771
|
+
...c.query?.outStatistics?.[0],
|
|
763
772
|
outStatisticFieldName: d,
|
|
764
773
|
statisticType: e,
|
|
765
|
-
onStatisticField:
|
|
774
|
+
onStatisticField: p
|
|
766
775
|
}
|
|
767
776
|
]
|
|
768
|
-
}
|
|
769
|
-
}),
|
|
770
|
-
const
|
|
777
|
+
}, "temporalBinning" in c && c.temporalBinning !== void 0 && (c.temporalBinning.nullPolicy = e === v.NoAggregation ? M.Interpolate : M.Null), e === v.NoAggregation && bt(s);
|
|
778
|
+
}), S && s.title && (s.title.content.text = j(s, r, a)), o && s.series[0].type !== I.HeatSeries) {
|
|
779
|
+
const c = le({
|
|
771
780
|
config: s,
|
|
772
781
|
layerInfo: r,
|
|
773
782
|
commonStrings: a,
|
|
774
|
-
numericFields:
|
|
783
|
+
numericFields: y,
|
|
775
784
|
aggregationType: e
|
|
776
785
|
});
|
|
777
|
-
E(s, 1,
|
|
786
|
+
E(s, 1, c);
|
|
778
787
|
}
|
|
779
788
|
}
|
|
780
|
-
function
|
|
789
|
+
function Et(t) {
|
|
781
790
|
const {
|
|
782
791
|
splitByField: e,
|
|
783
792
|
xAxisField: s,
|
|
784
793
|
numericFields: r,
|
|
785
794
|
aggregationType: a,
|
|
786
795
|
config: i,
|
|
787
|
-
layerInfo:
|
|
788
|
-
commonStrings:
|
|
789
|
-
splitByFieldInfos:
|
|
790
|
-
} = t, { layer:
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
796
|
+
layerInfo: l,
|
|
797
|
+
commonStrings: n,
|
|
798
|
+
splitByFieldInfos: y
|
|
799
|
+
} = t, { layer: g, layerFieldsInfo: S } = l, { categoriesArray: o, splitByFieldType: c } = y, m = Ae({
|
|
800
|
+
splitByField: e,
|
|
801
|
+
numericFields: r,
|
|
802
|
+
layer: g,
|
|
803
|
+
seriesIndex: 0
|
|
804
|
+
});
|
|
805
|
+
let d = [], u = !1;
|
|
806
|
+
if (o.length === 0) {
|
|
807
|
+
d = Ie({
|
|
794
808
|
xAxisField: s,
|
|
795
809
|
numericFields: r,
|
|
796
810
|
aggregationType: a,
|
|
797
811
|
config: i,
|
|
798
|
-
layerInfo:
|
|
799
|
-
commonStrings:
|
|
812
|
+
layerInfo: l,
|
|
813
|
+
commonStrings: n
|
|
800
814
|
});
|
|
801
|
-
for (const p of
|
|
815
|
+
for (const p of d)
|
|
802
816
|
p.query && (p.query.where = `${e}=''`);
|
|
803
817
|
} else
|
|
804
|
-
for (let p = 0; p <
|
|
805
|
-
const
|
|
818
|
+
for (let p = 0; p < o.length; p += 1) {
|
|
819
|
+
const T = o[p], C = Q({
|
|
806
820
|
config: i,
|
|
807
821
|
xAxisField: s,
|
|
808
822
|
numericFields: r,
|
|
809
823
|
aggregationType: a,
|
|
810
|
-
layer:
|
|
824
|
+
layer: l.layer,
|
|
811
825
|
seriesIndex: p,
|
|
812
826
|
splitByField: e,
|
|
813
|
-
fieldList:
|
|
814
|
-
}).name,
|
|
827
|
+
fieldList: S
|
|
828
|
+
}).name, F = W({
|
|
815
829
|
config: i,
|
|
816
830
|
xAxisField: s,
|
|
817
831
|
aggregationType: a,
|
|
818
|
-
layerInfo:
|
|
832
|
+
layerInfo: l,
|
|
819
833
|
seriesIndex: p,
|
|
820
|
-
commonStrings:
|
|
834
|
+
commonStrings: n
|
|
821
835
|
}), f = he({
|
|
822
|
-
queryObject:
|
|
836
|
+
queryObject: l.layer,
|
|
823
837
|
fieldName: e,
|
|
824
|
-
fieldValue:
|
|
825
|
-
}),
|
|
826
|
-
...
|
|
827
|
-
id:
|
|
828
|
-
name: f ??
|
|
838
|
+
fieldValue: T ?? ""
|
|
839
|
+
}), R = `${T}`, h = {
|
|
840
|
+
...F,
|
|
841
|
+
id: R,
|
|
842
|
+
name: f ?? R,
|
|
829
843
|
y: C,
|
|
830
844
|
query: {
|
|
831
|
-
...
|
|
832
|
-
where: `${e}=${
|
|
833
|
-
outStatistics: a !==
|
|
845
|
+
...F.query,
|
|
846
|
+
where: `${e}=${c === nt.String && T !== null ? `'${T}'` : T}`,
|
|
847
|
+
outStatistics: a !== v.NoAggregation ? [
|
|
834
848
|
{
|
|
835
|
-
...
|
|
836
|
-
onStatisticField:
|
|
849
|
+
...F.query?.outStatistics?.[0] ?? {},
|
|
850
|
+
onStatisticField: m,
|
|
837
851
|
outStatisticFieldName: C,
|
|
838
852
|
statisticType: a
|
|
839
853
|
}
|
|
840
854
|
] : void 0
|
|
841
855
|
}
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
const I = i.series.find(
|
|
845
|
-
(L) => String(Ce(L)).trim().replace(/'/gu, "") === k
|
|
856
|
+
}, L = i.series.find(
|
|
857
|
+
(V) => String(Ce(V)).trim().replace(/'/gu, "") === R
|
|
846
858
|
);
|
|
847
|
-
|
|
859
|
+
L !== void 0 && ((b(h) && b(L) || A(h) && A(L)) && X(h, L), i.colorMatch || (O(h) && O(L) ? h.fillSymbol = L.fillSymbol : (b(h) && b(L) || A(h) && A(L)) && (h.lineSymbol = L.lineSymbol, h.markerSymbol = L.markerSymbol), u = !0), h.id = L.id, h.name = L.name, h.assignToSecondValueAxis = L.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = i.series.some((V) => V.query?.fetchNullValues)), d.push(h);
|
|
848
860
|
}
|
|
849
|
-
return i.colorMatch = !u,
|
|
861
|
+
return i.colorMatch = !u, d;
|
|
850
862
|
}
|
|
851
|
-
const
|
|
863
|
+
const li = (t) => {
|
|
852
864
|
const {
|
|
853
865
|
xAxisFieldName: e,
|
|
854
866
|
splitByField: s,
|
|
855
867
|
numericFields: r,
|
|
856
868
|
aggregationType: a,
|
|
857
869
|
config: i,
|
|
858
|
-
layerInfo:
|
|
859
|
-
commonStrings:
|
|
860
|
-
splitByFieldInfos:
|
|
861
|
-
} = t, { layerFieldsInfo:
|
|
870
|
+
layerInfo: l,
|
|
871
|
+
commonStrings: n,
|
|
872
|
+
splitByFieldInfos: y
|
|
873
|
+
} = t, { layerFieldsInfo: g } = l ?? {}, S = ht(i), o = Y(i), c = g.find((B) => B.name === o), m = i.series[0].query?.fetchNullValues, d = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = g.find((B) => B.name === e), T = Z(i, l, n), C = ve(i, l, n), F = Mt(i, l);
|
|
862
874
|
let f = Fe(i);
|
|
863
|
-
const
|
|
864
|
-
|
|
865
|
-
let
|
|
866
|
-
if (
|
|
867
|
-
|
|
868
|
-
]), i.series.forEach((
|
|
869
|
-
|
|
870
|
-
}), s === "" || r.length > 1 ?
|
|
875
|
+
const R = i.series.some((B) => O(B)), x = pt(i.series), h = ft(i.series), L = oe(i), V = {};
|
|
876
|
+
L && (V.classBreaksRules = i.series[0]?.classBreaksRules, V.xTemporalBinning = i.series[0]?.xTemporalBinning, V.yTemporalBinning = i.series[0]?.yTemporalBinning, V.emptyCells = i.series[0]?.emptyCells, V.nullPolicy = i.nullPolicy);
|
|
877
|
+
let J = !1;
|
|
878
|
+
if (tt(p) ? f = pe() : !ye(c) && ye(p) ? f = fe() : !U(c) && U(p) ? (f = fe(), J = !0) : U(c) && !U(p) && (R ? f = pe() : f = gt(), J = !0), f !== void 0 && qe(i, n, f), S === 0 && (i.series = [
|
|
879
|
+
W({ config: i, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
|
|
880
|
+
]), i.series.forEach((B) => {
|
|
881
|
+
B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
|
|
882
|
+
}), s === "" || r.length > 1 ? xe({
|
|
871
883
|
fieldName: e,
|
|
872
884
|
numericFields: r,
|
|
873
|
-
fieldList:
|
|
874
|
-
}) ? i.series =
|
|
885
|
+
fieldList: g
|
|
886
|
+
}) ? i.series = wt({
|
|
875
887
|
config: i,
|
|
876
|
-
layerInfo:
|
|
888
|
+
layerInfo: l,
|
|
877
889
|
xAxisField: e,
|
|
878
890
|
numericFields: r,
|
|
879
891
|
aggregationType: a,
|
|
880
|
-
commonStrings:
|
|
881
|
-
}) : i.series =
|
|
892
|
+
commonStrings: n
|
|
893
|
+
}) : i.series = Ie({
|
|
882
894
|
config: i,
|
|
883
|
-
layerInfo:
|
|
895
|
+
layerInfo: l,
|
|
884
896
|
xAxisField: e,
|
|
885
897
|
numericFields: r,
|
|
886
898
|
aggregationType: a,
|
|
887
|
-
commonStrings:
|
|
888
|
-
}) :
|
|
899
|
+
commonStrings: n
|
|
900
|
+
}) : y && (i.series = Et({
|
|
889
901
|
config: i,
|
|
890
|
-
layerInfo:
|
|
902
|
+
layerInfo: l,
|
|
891
903
|
splitByField: s,
|
|
892
904
|
xAxisField: e,
|
|
893
905
|
numericFields: r,
|
|
894
906
|
aggregationType: a,
|
|
895
|
-
commonStrings:
|
|
896
|
-
splitByFieldInfos:
|
|
897
|
-
})),
|
|
898
|
-
const
|
|
899
|
-
E(i, 0,
|
|
907
|
+
commonStrings: n,
|
|
908
|
+
splitByFieldInfos: y
|
|
909
|
+
})), F && i.series[0].type !== I.HeatSeries) {
|
|
910
|
+
const B = D(g, e);
|
|
911
|
+
E(i, 0, B);
|
|
900
912
|
}
|
|
901
|
-
if (C && i.series[0].type !==
|
|
902
|
-
const
|
|
913
|
+
if (C && i.series[0].type !== I.HeatSeries) {
|
|
914
|
+
const B = le({
|
|
903
915
|
config: i,
|
|
904
|
-
layerInfo:
|
|
905
|
-
commonStrings:
|
|
916
|
+
layerInfo: l,
|
|
917
|
+
commonStrings: n,
|
|
906
918
|
numericFields: r,
|
|
907
919
|
aggregationType: a
|
|
908
920
|
});
|
|
909
|
-
E(i, 1,
|
|
921
|
+
E(i, 1, B);
|
|
910
922
|
}
|
|
911
|
-
if (
|
|
912
|
-
const
|
|
913
|
-
|
|
923
|
+
if (T && i.title && (i.title.content.text = j(i, l, n)), q({ config: i, value: null, axisIndex: 1, isMax: !1 }), q({ config: i, value: null, axisIndex: 1, isMax: !0 }), Pt({ numericFields: r, aggregationType: a, config: i, layerInfo: l }), (x || h) && (q({ config: i, value: null, axisIndex: 0, isMax: !1 }), q({ config: i, value: null, axisIndex: 0, isMax: !0 }), J && a !== v.NoAggregation)) {
|
|
924
|
+
const B = f?.type === I.DateAxisFormat ? M.Null : M.Interpolate;
|
|
925
|
+
Ct(B, i);
|
|
914
926
|
}
|
|
915
|
-
|
|
916
|
-
delete
|
|
917
|
-
}) :
|
|
918
|
-
|
|
919
|
-
}),
|
|
920
|
-
(
|
|
927
|
+
L && (i.series[0].classBreaksRules = V.classBreaksRules, i.series[0].xTemporalBinning = V.xTemporalBinning, i.series[0].yTemporalBinning = V.yTemporalBinning, i.series[0].emptyCells = V.emptyCells, i.nullPolicy = V.nullPolicy), u ? i.series.forEach((B) => {
|
|
928
|
+
delete B.query;
|
|
929
|
+
}) : m && i.series.forEach((B) => {
|
|
930
|
+
B.query && (B.query.fetchNullValues = m);
|
|
931
|
+
}), d && i.series.forEach((B) => {
|
|
932
|
+
(B.type === I.BarSeries || B.type === I.LineSeries || B.type === I.RadarSeries) && (B.nullCategory = d);
|
|
921
933
|
});
|
|
922
|
-
},
|
|
934
|
+
}, X = (t, e) => {
|
|
923
935
|
t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
|
|
924
936
|
...e.markerSymbol,
|
|
925
937
|
color: t.markerSymbol?.color
|
|
926
938
|
});
|
|
927
|
-
},
|
|
928
|
-
const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s],
|
|
929
|
-
let
|
|
930
|
-
if (
|
|
931
|
-
|
|
932
|
-
else if (
|
|
933
|
-
const
|
|
934
|
-
|
|
939
|
+
}, ni = (t) => {
|
|
940
|
+
const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], l = _(e);
|
|
941
|
+
let n;
|
|
942
|
+
if (K(e.series) === P.BarAndLineFromFields)
|
|
943
|
+
n = a.axisLabels.values;
|
|
944
|
+
else if (Le(l)) {
|
|
945
|
+
const g = i.query?.outStatistics?.[0]?.onStatisticField;
|
|
946
|
+
g !== void 0 && g !== H(r.layer).idField && (n = D(r.layerFieldsInfo, g));
|
|
935
947
|
} else {
|
|
936
|
-
const
|
|
937
|
-
|
|
948
|
+
const g = String(Ce(i)).trim().replace(/'/gu, "");
|
|
949
|
+
n = he({
|
|
938
950
|
queryObject: r.layer,
|
|
939
|
-
fieldName:
|
|
940
|
-
fieldValue:
|
|
941
|
-
}) ??
|
|
951
|
+
fieldName: l,
|
|
952
|
+
fieldValue: g ?? ""
|
|
953
|
+
}) ?? g;
|
|
942
954
|
}
|
|
943
|
-
return
|
|
944
|
-
},
|
|
945
|
-
if (
|
|
946
|
-
|
|
955
|
+
return n ?? i.id;
|
|
956
|
+
}, oi = (t, e) => {
|
|
957
|
+
if (oe(e))
|
|
958
|
+
Ot(t, e);
|
|
947
959
|
else {
|
|
948
960
|
e.orderOptions ??= {};
|
|
949
961
|
const s = e.orderOptions?.data?.orderType;
|
|
950
|
-
|
|
951
|
-
orderType:
|
|
962
|
+
ae(e)[0] === ee.customSort && s === N.Category && (e.orderOptions.data = {
|
|
963
|
+
orderType: N.Category,
|
|
952
964
|
orderBy: [...t]
|
|
953
965
|
});
|
|
954
966
|
}
|
|
955
|
-
},
|
|
956
|
-
const { config: e, layerInfo: s, errorStrings: r } = t, a =
|
|
957
|
-
let
|
|
958
|
-
return i ===
|
|
967
|
+
}, ui = async (t) => {
|
|
968
|
+
const { config: e, layerInfo: s, errorStrings: r } = t, a = Y(e), i = Fe(e)?.type, l = G(e), n = K(e.series);
|
|
969
|
+
let y = [];
|
|
970
|
+
return i === I.CategoryAxisFormat && (n === P.BarAndLineFromFields || a === te ? y = l.map((g) => D(s?.layerFieldsInfo, g)) : a.trim() !== "" && a !== te && s !== void 0 && (y = await Ne({
|
|
959
971
|
layerInfo: s,
|
|
960
972
|
config: e,
|
|
961
973
|
category: a,
|
|
962
974
|
errorStrings: r
|
|
963
|
-
}))),
|
|
975
|
+
}))), y;
|
|
964
976
|
};
|
|
965
|
-
function
|
|
966
|
-
const r =
|
|
977
|
+
function Z(t, e, s) {
|
|
978
|
+
const r = j(t, e, s), a = xt(t), i = z(t);
|
|
967
979
|
return r === a || i;
|
|
968
980
|
}
|
|
969
981
|
function ve(t, e, s) {
|
|
970
|
-
const r =
|
|
982
|
+
const r = le({
|
|
971
983
|
config: t,
|
|
972
984
|
layerInfo: e,
|
|
973
985
|
commonStrings: s,
|
|
974
986
|
numericFields: G(t),
|
|
975
987
|
aggregationType: be(t)
|
|
976
|
-
}), a =
|
|
988
|
+
}), a = ue(1, t), i = z(t);
|
|
977
989
|
return r === a || i;
|
|
978
990
|
}
|
|
979
|
-
function
|
|
980
|
-
const s =
|
|
991
|
+
function Mt(t, e) {
|
|
992
|
+
const s = D(e.layerFieldsInfo, Y(t)), r = ue(0, t), a = z(t);
|
|
981
993
|
return s === r || a;
|
|
982
994
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
995
|
+
function ci(t) {
|
|
996
|
+
return k(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
|
|
985
997
|
}
|
|
986
|
-
function
|
|
998
|
+
function di(t, e) {
|
|
987
999
|
e?.series.forEach((s) => {
|
|
988
|
-
(s?.type ===
|
|
989
|
-
unit:
|
|
1000
|
+
(s?.type === I.BarSeries || s?.type === I.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
|
|
1001
|
+
unit: se.Day,
|
|
990
1002
|
size: 0,
|
|
991
|
-
timeAggregationType:
|
|
1003
|
+
timeAggregationType: rt.Start,
|
|
992
1004
|
trimIncompleteTimeInterval: !0,
|
|
993
|
-
nullPolicy:
|
|
1005
|
+
nullPolicy: M.Null
|
|
994
1006
|
} : delete s.temporalBinning);
|
|
995
1007
|
});
|
|
996
1008
|
}
|
|
997
1009
|
export {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1010
|
+
xs as $,
|
|
1011
|
+
oi as A,
|
|
1012
|
+
li as B,
|
|
1013
|
+
ci as C,
|
|
1014
|
+
di as D,
|
|
1015
|
+
j as E,
|
|
1016
|
+
Rt as F,
|
|
1017
|
+
Cs as G,
|
|
1006
1018
|
Ks as H,
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1019
|
+
Qs as I,
|
|
1020
|
+
As as J,
|
|
1021
|
+
bs as K,
|
|
1010
1022
|
vs as L,
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1023
|
+
Is as M,
|
|
1024
|
+
zs as N,
|
|
1025
|
+
_s as O,
|
|
1014
1026
|
Gs as P,
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1027
|
+
Zs as Q,
|
|
1028
|
+
ti as R,
|
|
1029
|
+
si as S,
|
|
1030
|
+
ii as T,
|
|
1031
|
+
ai as U,
|
|
1032
|
+
Ss as V,
|
|
1033
|
+
Fs as W,
|
|
1034
|
+
Vs as X,
|
|
1035
|
+
Ls as Y,
|
|
1036
|
+
qs as Z,
|
|
1037
|
+
Ns as _,
|
|
1038
|
+
ms as a,
|
|
1039
|
+
hs as a0,
|
|
1040
|
+
Bs as a1,
|
|
1029
1041
|
Ts as a2,
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1042
|
+
Os as a3,
|
|
1043
|
+
Ds as a4,
|
|
1044
|
+
Ps as a5,
|
|
1033
1045
|
ws as a6,
|
|
1034
1046
|
Rs as a7,
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1047
|
+
ks as a8,
|
|
1048
|
+
Es as a9,
|
|
1049
|
+
Dt as aa,
|
|
1050
|
+
Ms as ab,
|
|
1051
|
+
$s as ac,
|
|
1052
|
+
Ys as ad,
|
|
1053
|
+
Ws as ae,
|
|
1054
|
+
Xs as af,
|
|
1055
|
+
Hs as ag,
|
|
1056
|
+
ei as ah,
|
|
1057
|
+
Js as ai,
|
|
1058
|
+
js as aj,
|
|
1059
|
+
Us as ak,
|
|
1060
|
+
cs as b,
|
|
1061
|
+
ds as c,
|
|
1050
1062
|
G as d,
|
|
1051
|
-
|
|
1052
|
-
|
|
1063
|
+
_ as e,
|
|
1064
|
+
fs as f,
|
|
1053
1065
|
be as g,
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1066
|
+
ni as h,
|
|
1067
|
+
gs as i,
|
|
1068
|
+
is as j,
|
|
1057
1069
|
Tt as k,
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1070
|
+
ns as l,
|
|
1071
|
+
as as m,
|
|
1072
|
+
os as n,
|
|
1073
|
+
rs as o,
|
|
1074
|
+
ps as p,
|
|
1075
|
+
us as q,
|
|
1076
|
+
At as r,
|
|
1077
|
+
Bt as s,
|
|
1078
|
+
ls as t,
|
|
1079
|
+
ys as u,
|
|
1080
|
+
Ct as v,
|
|
1081
|
+
bt as w,
|
|
1082
|
+
ri as x,
|
|
1083
|
+
ae as y,
|
|
1084
|
+
ui as z
|
|
1073
1085
|
};
|