@arcgis/charts-components 5.1.0-next.111 → 5.1.0-next.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cdn/24TOMTMP.js +2 -0
- package/dist/cdn/2EPXIQFD.js +2 -0
- package/dist/cdn/2JUO3GP2.js +2 -0
- package/dist/cdn/2SVBUT3V.js +2 -0
- package/dist/cdn/2XTQT6TW.js +2 -0
- package/dist/cdn/{ANMNNZTA.js → 2YI4HWFY.js} +39 -39
- package/dist/cdn/34WNZMJY.js +2 -0
- package/dist/cdn/43P4WOC4.js +2 -0
- package/dist/cdn/4G5JOLEP.js +2 -0
- package/dist/cdn/4MZJZQDO.js +2 -0
- package/dist/cdn/52QMEXI6.js +2 -0
- package/dist/cdn/5I75UYWD.js +2 -0
- package/dist/cdn/5M72DGYL.js +2 -0
- package/dist/cdn/5PG6PXDG.js +2 -0
- package/dist/cdn/6FGRLBTA.js +2 -0
- package/dist/cdn/6JNHTWDQ.js +2 -0
- package/dist/cdn/6YSH3ROL.js +2 -0
- package/dist/cdn/75Y43JLP.js +2 -0
- package/dist/cdn/777EBGS5.js +2 -0
- package/dist/cdn/7AVVBDQS.js +4 -0
- package/dist/cdn/7EDHTVVK.js +2 -0
- package/dist/cdn/7MHEEH5F.js +2 -0
- package/dist/cdn/7MKAC33Z.js +2 -0
- package/dist/cdn/7Y76VKGS.js +2 -0
- package/dist/cdn/AC2XSIOU.js +2 -0
- package/dist/cdn/AEESEH6N.js +2 -0
- package/dist/cdn/AYY2C4BW.js +2 -0
- package/dist/cdn/BH7WDRGU.js +2 -0
- package/dist/cdn/BZUQTY3A.js +2 -0
- package/dist/cdn/CMPHBGKB.js +2 -0
- package/dist/cdn/DDA7NVBX.js +2 -0
- package/dist/cdn/DMDXALHQ.js +2 -0
- package/dist/cdn/DX5LK7LS.js +2 -0
- package/dist/cdn/ERUYMQOC.js +2 -0
- package/dist/cdn/{CSNF7XRL.js → ESUMWLYT.js} +1 -1
- package/dist/cdn/EULFJ5JL.js +2 -0
- package/dist/cdn/EX27CNDS.js +2 -0
- package/dist/cdn/FIMXZMTB.js +2 -0
- package/dist/cdn/FYI7J2KF.js +2 -0
- package/dist/cdn/G42X3FFH.js +2 -0
- package/dist/cdn/GGZNH26O.js +2 -0
- package/dist/cdn/HIQSXKPT.js +3 -0
- package/dist/cdn/HS2WQJEO.js +2 -0
- package/dist/cdn/IBCUXQZ4.js +2 -0
- package/dist/cdn/IC4OZCXG.js +2 -0
- package/dist/cdn/JGD2M47O.js +2 -0
- package/dist/cdn/KGOERXN5.js +2 -0
- package/dist/cdn/{JEQDHNEJ.js → KPXH2MNB.js} +1 -1
- package/dist/cdn/KSBWHMXE.js +2 -0
- package/dist/cdn/{6KFD2LHE.js → L3ULFQN3.js} +1 -1
- package/dist/cdn/LKHNZDEC.js +2 -0
- package/dist/cdn/LXVLBS7T.js +2 -0
- package/dist/cdn/M5E3NFDP.js +2 -0
- package/dist/cdn/MKEUDI3M.js +2 -0
- package/dist/cdn/MKQPW6B4.js +2 -0
- package/dist/cdn/MVAMHZ3Q.js +2 -0
- package/dist/cdn/{VTJXTTAB.js → MZ2UZAFW.js} +1 -1
- package/dist/cdn/N265ZHHU.js +2 -0
- package/dist/cdn/N2S6YV3I.js +2 -0
- package/dist/cdn/N3EATDXE.js +2 -0
- package/dist/cdn/NLWP2JOG.js +2 -0
- package/dist/cdn/NR3BCOHU.js +3 -0
- package/dist/cdn/O2JEDVIA.js +2 -0
- package/dist/cdn/OB7IDW6S.js +2 -0
- package/dist/cdn/OBPCKG62.js +2 -0
- package/dist/cdn/OCERCT4I.js +2 -0
- package/dist/cdn/OFN7ED75.js +2 -0
- package/dist/cdn/OQSFVGUL.js +2 -0
- package/dist/cdn/PA3PSUQ3.js +2 -0
- package/dist/cdn/PYFMKPMO.js +2 -0
- package/dist/cdn/QRZ32JMG.js +2 -0
- package/dist/cdn/R3GNKVFS.js +2 -0
- package/dist/cdn/R3Y2F64T.js +2 -0
- package/dist/cdn/RBVV7JGY.js +102 -0
- package/dist/cdn/RSXO7AZM.js +2 -0
- package/dist/cdn/S32VCEG7.js +2 -0
- package/dist/cdn/S7ASARWB.js +2 -0
- package/dist/cdn/SBS4J65N.js +2 -0
- package/dist/cdn/SVMC3JP5.js +2 -0
- package/dist/cdn/SYXU6NZX.js +2 -0
- package/dist/cdn/T3CSQ5DU.js +2 -0
- package/dist/cdn/T3NJTAF3.js +2 -0
- package/dist/cdn/T53WJZQN.js +2 -0
- package/dist/cdn/TES5ZESK.js +2 -0
- package/dist/cdn/{XSMRKVR2.js → TJQGGNGV.js} +1 -1
- package/dist/cdn/TOO3T62Y.js +2 -0
- package/dist/cdn/U5ZB4YD6.js +2 -0
- package/dist/cdn/UK2A3DRS.js +2 -0
- package/dist/cdn/UNDCO72C.js +2 -0
- package/dist/cdn/UR537UXK.js +2 -0
- package/dist/cdn/VMAOMKFN.js +2 -0
- package/dist/cdn/VV7JMGHL.js +2 -0
- package/dist/cdn/W6CIWZSM.js +2 -0
- package/dist/cdn/WA5XK3HC.js +2 -0
- package/dist/cdn/WD4QY4YU.js +2 -0
- package/dist/cdn/WESXMGHU.js +2 -0
- package/dist/cdn/WFDVEHVL.js +2 -0
- package/dist/cdn/WI3CE5TT.js +2 -0
- package/dist/cdn/WNZ2PSFZ.js +2 -0
- package/dist/cdn/XLJSZ42M.js +2 -0
- package/dist/cdn/XM6GBBOL.js +2 -0
- package/dist/cdn/XOB365BI.js +2 -0
- package/dist/cdn/Y2AULE2F.js +2 -0
- package/dist/cdn/YE5ASSSN.js +2 -0
- package/dist/cdn/ZBLRD77K.js +2 -0
- package/dist/cdn/{5RMUCBSG.js → ZZRH7LXO.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +12 -12
- package/dist/chunks/bar-chart-model.js +20 -47
- package/dist/chunks/bar-chart-series.js +10 -40
- package/dist/chunks/box-plot-data.js +132 -155
- package/dist/chunks/box-plot-model.js +18 -18
- package/dist/chunks/chart-model.js +76 -103
- package/dist/chunks/chart-object-literals.js +189 -0
- package/dist/chunks/chart-ui-utils.js +17 -16
- package/dist/chunks/chart-ui-utils2.js +91 -116
- package/dist/chunks/class-breaks.js +375 -196
- package/dist/chunks/combo-bar-line-chart-model.js +19 -18
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +56 -84
- package/dist/chunks/data.js +82 -105
- package/dist/chunks/default.js +6 -7
- package/dist/chunks/gauge-model.js +42 -69
- package/dist/chunks/generate-x-axis-title.js +39 -66
- package/dist/chunks/heat-chart-model.js +183 -183
- package/dist/chunks/histogram-data.js +56 -80
- package/dist/chunks/histogram-model.js +24 -24
- package/dist/chunks/index.js +560 -21042
- package/dist/chunks/index2.js +8706 -596
- package/dist/chunks/index3.js +873 -160
- package/dist/chunks/index4.js +701 -76
- package/dist/chunks/index5.js +10794 -62
- package/dist/chunks/index6.js +99 -0
- package/dist/chunks/index7.js +66 -0
- package/dist/chunks/interfaces.js +31 -32
- package/dist/chunks/line-chart-model.js +12 -11
- package/dist/chunks/model-setter.js +44 -41
- package/dist/chunks/model-types.js +43 -0
- package/dist/chunks/model-with-y-guides.js +89 -116
- package/dist/chunks/negative-values-stacked-to-baseline.js +50 -79
- package/dist/chunks/pie-chart-data.js +89 -111
- package/dist/chunks/pie-chart-model.js +46 -70
- package/dist/chunks/radar-chart-model.js +35 -62
- package/dist/chunks/resource.js +8 -10
- package/dist/chunks/rotated-state.js +24 -52
- package/dist/chunks/scatterplot-model.js +90 -112
- package/dist/chunks/serial-chart-data.js +540 -530
- package/dist/chunks/serial-chart-model.js +90 -115
- package/dist/chunks/series-length.js +25 -53
- package/dist/chunks/series-types.js +21 -206
- package/dist/chunks/series.js +9 -38
- package/dist/chunks/time-zone.js +14 -15
- package/dist/chunks/type-guards.js +23 -132
- package/dist/chunks/type-guards2.js +100 -192
- package/dist/chunks/type-guards3.js +173 -0
- package/dist/chunks/utils.js +75 -97
- package/dist/chunks/utils2.js +34 -63
- package/dist/chunks/web-component-utils.js +85 -83
- package/dist/chunks/x-bounds.js +69 -95
- package/dist/components/arcgis-chart/customElement.js +3670 -3637
- package/dist/components/arcgis-charts-action-bar/customElement.js +8 -9
- package/dist/components/arcgis-charts-config-axis/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +33 -60
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +47 -70
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +33 -54
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +37 -64
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +15 -43
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +12 -39
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +87 -111
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +41 -65
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +13 -40
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +18 -45
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +17 -45
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +47 -68
- package/dist/components/arcgis-charts-config-font-style/customElement.js +21 -48
- package/dist/components/arcgis-charts-config-format/customElement.js +55 -82
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +12 -41
- package/dist/components/arcgis-charts-config-general/customElement.js +29 -55
- package/dist/components/arcgis-charts-config-guide/customElement.js +44 -68
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +14 -43
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -3
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +10 -39
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +29 -56
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +153 -175
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +56 -79
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -55
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +39 -62
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -50
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +27 -54
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +23 -46
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +46 -69
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +33 -61
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +14 -42
- package/dist/components/arcgis-charts-config-line-style/customElement.js +9 -11
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +28 -55
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +24 -49
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +42 -66
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +38 -65
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +15 -43
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +31 -58
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +31 -55
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +16 -42
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +10 -38
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +21 -50
- package/dist/components/arcgis-charts-info-modal/customElement.js +17 -43
- 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 +57 -3
- package/dist/index.js +464 -459
- package/dist/json-schema/index.d.ts +4839 -4825
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -0
- package/dist/model.js +77 -39
- package/dist/spec/web-chart.d.ts +5 -1
- package/dist/utils/layer/index.d.ts +3 -1
- package/dist/utils/layer/utils/index.d.ts +16 -4
- package/package.json +3 -3
- package/dist/cdn/2NCZCQJQ.js +0 -2
- package/dist/cdn/2QWN4KMQ.js +0 -2
- package/dist/cdn/3HHF7GDV.js +0 -2
- package/dist/cdn/43EPRNLY.js +0 -2
- package/dist/cdn/53YROF54.js +0 -2
- package/dist/cdn/57M5BGHO.js +0 -2
- package/dist/cdn/5Y2AIQMX.js +0 -2
- package/dist/cdn/6CGECXEP.js +0 -2
- package/dist/cdn/6MDEAZCW.js +0 -2
- package/dist/cdn/6YLXJOBN.js +0 -2
- package/dist/cdn/7LE76H3V.js +0 -2
- package/dist/cdn/7OK6DOOJ.js +0 -2
- package/dist/cdn/7QJ77UCB.js +0 -2
- package/dist/cdn/7XCTW7TF.js +0 -2
- package/dist/cdn/ABPBMLW4.js +0 -4
- package/dist/cdn/ACBNPWST.js +0 -2
- package/dist/cdn/AU5NU5OU.js +0 -2
- package/dist/cdn/AUKWLONZ.js +0 -2
- package/dist/cdn/B3TAQSVG.js +0 -2
- package/dist/cdn/B7BDZS5Q.js +0 -2
- package/dist/cdn/B7OT7NHE.js +0 -2
- package/dist/cdn/BIW46U2E.js +0 -2
- package/dist/cdn/BNMVFWWL.js +0 -2
- package/dist/cdn/BUPTELGR.js +0 -2
- package/dist/cdn/C3EG6JVL.js +0 -2
- package/dist/cdn/CEML6AMG.js +0 -2
- package/dist/cdn/CSISDIV5.js +0 -2
- package/dist/cdn/CXSBPI44.js +0 -2
- package/dist/cdn/DEWZASZK.js +0 -2
- package/dist/cdn/FJFVBE6K.js +0 -2
- package/dist/cdn/FLBXUDIS.js +0 -2
- package/dist/cdn/FQKOG42T.js +0 -2
- package/dist/cdn/FTXNBE44.js +0 -2
- package/dist/cdn/FU6JT3UD.js +0 -2
- package/dist/cdn/H7SXQSDY.js +0 -2
- package/dist/cdn/HFHPPFTL.js +0 -2
- package/dist/cdn/IQ5ZYJIB.js +0 -2
- package/dist/cdn/IVSSNIVI.js +0 -2
- package/dist/cdn/J27JNN6U.js +0 -2
- package/dist/cdn/J5O4KJG3.js +0 -2
- package/dist/cdn/KJHX7M5S.js +0 -2
- package/dist/cdn/KKDZFW5O.js +0 -2
- package/dist/cdn/KRZLTTVV.js +0 -2
- package/dist/cdn/KUOSDD5D.js +0 -2
- package/dist/cdn/L767SIJD.js +0 -2
- package/dist/cdn/LSF52M7M.js +0 -2
- package/dist/cdn/LW3BORFM.js +0 -2
- package/dist/cdn/M3ATYECI.js +0 -2
- package/dist/cdn/M6BMA2X5.js +0 -2
- package/dist/cdn/MCSGNGSS.js +0 -2
- package/dist/cdn/MJEMDC6S.js +0 -2
- package/dist/cdn/MY2TTPFJ.js +0 -2
- package/dist/cdn/MZQHYO73.js +0 -2
- package/dist/cdn/N6ZYLQ35.js +0 -2
- package/dist/cdn/ODM6XDHJ.js +0 -2
- package/dist/cdn/PAPWPFW4.js +0 -2
- package/dist/cdn/PDDEFX6K.js +0 -2
- package/dist/cdn/PNQ6VVJK.js +0 -2
- package/dist/cdn/QCO44WFX.js +0 -2
- package/dist/cdn/QCZO6SPY.js +0 -2
- package/dist/cdn/QJQCXQZQ.js +0 -2
- package/dist/cdn/QLBJVTC3.js +0 -2
- package/dist/cdn/QLRYZVYC.js +0 -2
- package/dist/cdn/QRJS3CVV.js +0 -2
- package/dist/cdn/QWCMSPHD.js +0 -2
- package/dist/cdn/RCS3DD7Z.js +0 -104
- package/dist/cdn/S52W7JS7.js +0 -2
- package/dist/cdn/SDWC5FQU.js +0 -2
- package/dist/cdn/SLGQSOZB.js +0 -2
- package/dist/cdn/SNQFOXQP.js +0 -2
- package/dist/cdn/STPMMRCH.js +0 -2
- package/dist/cdn/SUYBENSN.js +0 -2
- package/dist/cdn/TAW7DR2R.js +0 -2
- package/dist/cdn/TUM7FWOK.js +0 -2
- package/dist/cdn/UFCW5HCY.js +0 -2
- package/dist/cdn/URPIV4FP.js +0 -2
- package/dist/cdn/URX6VCYJ.js +0 -2
- package/dist/cdn/V2LSSOBU.js +0 -2
- package/dist/cdn/V7JH3U65.js +0 -2
- package/dist/cdn/VFOLCHS4.js +0 -2
- package/dist/cdn/VFZ5WZJL.js +0 -2
- package/dist/cdn/WEAUUIMY.js +0 -2
- package/dist/cdn/WHL3PAOM.js +0 -2
- package/dist/cdn/WQRH2BWD.js +0 -2
- package/dist/cdn/WQRXJQDO.js +0 -2
- package/dist/cdn/WTIY4H4L.js +0 -2
- package/dist/cdn/WXEJ47F6.js +0 -2
- package/dist/cdn/XUAJWZRU.js +0 -2
- package/dist/cdn/XYTCID73.js +0 -2
- package/dist/cdn/Z7L63G6V.js +0 -2
- package/dist/cdn/ZJOBVONS.js +0 -2
- package/dist/cdn/ZZQFMONS.js +0 -2
- package/dist/chunks/setup-utils.js +0 -80
- package/dist/model/index.d.ts +0 -19
- package/dist/spec/index.d.ts +0 -8
- package/dist/utils/index.d.ts +0 -33
- /package/dist/cdn/{S5OM65RV.js → COYWSD6X.js} +0 -0
|
@@ -1,195 +1,174 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { substitute as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
17
|
-
import "
|
|
18
|
-
import "
|
|
19
|
-
|
|
20
|
-
import "@arcgis/core/core/sql.js";
|
|
21
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
22
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
23
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
24
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
25
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
26
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
27
|
-
import "./runtime.js";
|
|
28
|
-
import { h as Fe, i as k, j as ct, m as dt, g as C, l as b, e as me } from "./index4.js";
|
|
29
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
30
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
31
|
-
import "@arcgis/core/geometry/Point.js";
|
|
32
|
-
import "@arcgis/toolkit/dom";
|
|
33
|
-
import { s as N, u as P, g as re, d as he, e as yt, f as mt, j as ge } from "./utils.js";
|
|
34
|
-
import { S as ee } from "./common.js";
|
|
35
|
-
import "@esri/arcgis-html-sanitizer";
|
|
36
|
-
import { a as M, c as Te, g as Q, e as pe, f as gt } from "./data.js";
|
|
37
|
-
import { a as pt } from "./index2.js";
|
|
38
|
-
import { g as ne } from "./utils2.js";
|
|
39
|
-
import { b as ft, a as St } from "./series-length.js";
|
|
40
|
-
const Ti = (t) => {
|
|
2
|
+
import { substitute as w } from "@arcgis/core/intl.js";
|
|
3
|
+
import { cloneDeep as se, isEmpty as Ae, memoize as ve } from "lodash-es";
|
|
4
|
+
import { S as _ } from "./common.js";
|
|
5
|
+
import { s as N, u as P, g as ie, d as fe, e as Ie, f as Le, j as oe } from "./utils.js";
|
|
6
|
+
import { w as k, bW as Ve, bl as qe, x as Ne, Y as W, c4 as ke, c7 as Re, p as Oe, aH as ae, c0 as De, d as we, aG as Pe, I as Ee, a7 as Me, bj as $e, W as We, e as Ye, bm as Xe, c8 as je, v as He, c9 as ue, bK as Ke, ca as Ue, bG as Qe, B as ze, c5 as Ge, an as Y, a6 as Se, c3 as re, b9 as _e, k as Z, bo as Ze, bs as ce, ba as j, bg as de } from "./index2.js";
|
|
7
|
+
import { a as E, c as Fe, g as U, e as ye, f as Je } from "./data.js";
|
|
8
|
+
import { g as he } from "./series-types.js";
|
|
9
|
+
import { u as I, r as L, k as et, n as q, m as H, p as tt, t as st, s as J } from "./chart-object-literals.js";
|
|
10
|
+
import { C as O, d as D, F as K } from "./index3.js";
|
|
11
|
+
import { a as it } from "./index4.js";
|
|
12
|
+
import { h as xe, i as R, j as at, m as rt, g as C, l as b, e as me } from "./index6.js";
|
|
13
|
+
import { c as ee, e as lt } from "./type-guards.js";
|
|
14
|
+
import { az as nt, t as ot, Y as ut, a9 as ct, al as dt, x as yt, C as ge, H as pe, $ as mt } from "./index.js";
|
|
15
|
+
import { g as le } from "./utils2.js";
|
|
16
|
+
import { b as gt, a as pt } from "./series-length.js";
|
|
17
|
+
import { i as ft, R as St } from "./rest-js-object-literals.js";
|
|
18
|
+
import { i as Q } from "./index5.js";
|
|
19
|
+
const Jt = (t) => {
|
|
41
20
|
let e;
|
|
42
|
-
const
|
|
43
|
-
return
|
|
21
|
+
const s = t.series[0];
|
|
22
|
+
return k(s) && (e = s.temporalBinning?.size), e;
|
|
44
23
|
}, Ft = (t) => {
|
|
45
24
|
let e;
|
|
46
|
-
const
|
|
47
|
-
return
|
|
48
|
-
},
|
|
25
|
+
const s = t.series[0];
|
|
26
|
+
return k(s) && (e = s.temporalBinning?.unit), e;
|
|
27
|
+
}, es = (t) => {
|
|
49
28
|
let e;
|
|
50
|
-
const
|
|
51
|
-
return
|
|
52
|
-
},
|
|
29
|
+
const s = t.series[0];
|
|
30
|
+
return k(s) && (e = s.temporalBinning?.timeAggregationType), e;
|
|
31
|
+
}, ts = (t) => {
|
|
53
32
|
let e;
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
},
|
|
33
|
+
const s = t.series[0];
|
|
34
|
+
return k(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
35
|
+
}, ss = (t) => {
|
|
57
36
|
let e;
|
|
58
|
-
const
|
|
59
|
-
return
|
|
37
|
+
const s = t.series[0];
|
|
38
|
+
return k(s) && (e = s.temporalBinning?.nullPolicy), e;
|
|
60
39
|
}, ht = (t, e) => {
|
|
61
|
-
e?.series?.forEach((
|
|
62
|
-
|
|
40
|
+
e?.series?.forEach((s) => {
|
|
41
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
|
|
63
42
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
64
|
-
},
|
|
65
|
-
e?.series?.forEach((
|
|
66
|
-
|
|
43
|
+
}, xt = (t, e) => {
|
|
44
|
+
e?.series?.forEach((s) => {
|
|
45
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
|
|
67
46
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
68
|
-
},
|
|
69
|
-
e.series?.forEach((
|
|
70
|
-
|
|
47
|
+
}, is = (t, e) => {
|
|
48
|
+
e.series?.forEach((s) => {
|
|
49
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
|
|
71
50
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
72
|
-
},
|
|
73
|
-
e.series?.forEach((
|
|
74
|
-
|
|
51
|
+
}, as = (t, e) => {
|
|
52
|
+
e.series?.forEach((s) => {
|
|
53
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
|
|
75
54
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
76
|
-
},
|
|
77
|
-
e.series?.forEach((
|
|
78
|
-
|
|
55
|
+
}, rs = (t, e) => {
|
|
56
|
+
e.series?.forEach((s) => {
|
|
57
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
|
|
79
58
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
80
|
-
},
|
|
59
|
+
}, ls = (t) => {
|
|
81
60
|
ht(0, t);
|
|
82
61
|
};
|
|
83
|
-
function
|
|
84
|
-
let
|
|
85
|
-
return e !== void 0 && (
|
|
62
|
+
function ns(t, e) {
|
|
63
|
+
let s;
|
|
64
|
+
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
|
|
86
65
|
}
|
|
87
|
-
function
|
|
88
|
-
let
|
|
89
|
-
return e !== void 0 && (
|
|
66
|
+
function os(t, e) {
|
|
67
|
+
let s;
|
|
68
|
+
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
|
|
90
69
|
}
|
|
91
|
-
function
|
|
92
|
-
let
|
|
93
|
-
return e !== void 0 && (
|
|
70
|
+
function us(t, e) {
|
|
71
|
+
let s;
|
|
72
|
+
return e !== void 0 && (s = { ...e, rotated: t }), s;
|
|
94
73
|
}
|
|
95
|
-
function
|
|
74
|
+
function Tt(t) {
|
|
96
75
|
let e;
|
|
97
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;
|
|
98
77
|
}
|
|
99
|
-
function
|
|
100
|
-
return e != null ||
|
|
78
|
+
function cs(t, e) {
|
|
79
|
+
return e != null || xe(t);
|
|
101
80
|
}
|
|
102
|
-
async function
|
|
103
|
-
const { config: e, layer:
|
|
81
|
+
async function ds(t) {
|
|
82
|
+
const { config: e, layer: s, abortSignal: r } = t;
|
|
104
83
|
let a = !1;
|
|
105
|
-
return
|
|
84
|
+
return ee(s) || lt(e) ? e && ee(s) && (a = await qe({ config: e, layer: s, abortSignal: r })) : a = !0, a;
|
|
106
85
|
}
|
|
107
86
|
async function Bt(t) {
|
|
108
87
|
const {
|
|
109
88
|
queryObject: e,
|
|
110
|
-
chartConfig:
|
|
89
|
+
chartConfig: s,
|
|
111
90
|
splitByField: r,
|
|
112
91
|
errorStrings: a,
|
|
113
|
-
abortSignal:
|
|
114
|
-
runtimeDataFilters:
|
|
92
|
+
abortSignal: i,
|
|
93
|
+
runtimeDataFilters: n,
|
|
115
94
|
ignoreViewExtent: o,
|
|
116
95
|
setTimeBinningInfoWhenNotProvided: c,
|
|
117
96
|
returnFeaturesExtent: m,
|
|
118
97
|
chartLimits: h
|
|
119
98
|
} = t;
|
|
120
|
-
let
|
|
121
|
-
const y =
|
|
99
|
+
let l = [], g;
|
|
100
|
+
const y = se(s), d = y.series[0], u = Ye({
|
|
122
101
|
queryObject: e,
|
|
123
102
|
chartConfig: y,
|
|
124
|
-
runtimeDataFilters:
|
|
103
|
+
runtimeDataFilters: n,
|
|
125
104
|
ignoreViewExtent: o
|
|
126
105
|
});
|
|
127
|
-
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName =
|
|
128
|
-
xAxisValueFormatType:
|
|
106
|
+
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = nt.outStatistics.outStatisticFieldName), k(d) && Xe({
|
|
107
|
+
xAxisValueFormatType: je(y),
|
|
129
108
|
setTimeBinningInfoWhenNotProvided: c,
|
|
130
109
|
seriesConfig: d,
|
|
131
110
|
queryObject: e
|
|
132
|
-
}) &&
|
|
133
|
-
const { temporalBinning: f, x } = d, { uniqueQuery: S } =
|
|
111
|
+
}) && He(r, e)) {
|
|
112
|
+
const { temporalBinning: f, x: T } = d, { uniqueQuery: S } = ue({
|
|
134
113
|
chartConfig: y,
|
|
135
114
|
queryConfig: u,
|
|
136
115
|
queryObject: e,
|
|
137
116
|
setTimeBinningInfoWhenNotProvided: c,
|
|
138
117
|
returnFeaturesExtent: m,
|
|
139
118
|
chartLimits: h
|
|
140
|
-
}), p =
|
|
141
|
-
g = await
|
|
119
|
+
}), p = s.axes?.[0].valueFormat.type === I.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
120
|
+
g = await Ke({
|
|
142
121
|
queryObject: e,
|
|
143
|
-
dateField:
|
|
122
|
+
dateField: T,
|
|
144
123
|
splitByField: r,
|
|
145
124
|
queryConfig: S,
|
|
146
125
|
axisTimeZone: p,
|
|
147
126
|
temporalBinning: f,
|
|
148
127
|
errorStrings: a,
|
|
149
|
-
abortSignal:
|
|
150
|
-
}),
|
|
128
|
+
abortSignal: i
|
|
129
|
+
}), l = Array.from(
|
|
151
130
|
new Set(
|
|
152
|
-
g.flatMap((
|
|
153
|
-
const { stackedAttributes:
|
|
131
|
+
g.flatMap((V) => {
|
|
132
|
+
const { stackedAttributes: x } = V;
|
|
154
133
|
let A = [];
|
|
155
|
-
return
|
|
134
|
+
return x && (A = x.map((F) => F[r]).filter((F) => F !== void 0)), A;
|
|
156
135
|
})
|
|
157
136
|
).values()
|
|
158
137
|
);
|
|
159
138
|
} else {
|
|
160
|
-
const { uniqueQuery: f } =
|
|
139
|
+
const { uniqueQuery: f } = ue({
|
|
161
140
|
chartConfig: y,
|
|
162
141
|
queryObject: e,
|
|
163
142
|
queryConfig: u,
|
|
164
143
|
setTimeBinningInfoWhenNotProvided: c,
|
|
165
144
|
returnFeaturesExtent: m,
|
|
166
145
|
chartLimits: h
|
|
167
|
-
}), { elementCount:
|
|
146
|
+
}), { elementCount: T } = await Ue({
|
|
168
147
|
chartConfig: y,
|
|
169
148
|
queryObject: e,
|
|
170
149
|
queryConfig: u,
|
|
171
150
|
behaviorAfterLimit: h?.behaviorAfterLimit,
|
|
172
151
|
numberMaxOfFeaturesToFetch: f.num,
|
|
173
|
-
abortSignal:
|
|
152
|
+
abortSignal: i
|
|
174
153
|
});
|
|
175
|
-
g = await
|
|
154
|
+
g = await Qe({
|
|
176
155
|
queryObject: e,
|
|
177
156
|
queryConfig: f,
|
|
178
|
-
featureCount:
|
|
157
|
+
featureCount: T,
|
|
179
158
|
errorStrings: a,
|
|
180
|
-
abortSignal:
|
|
181
|
-
}),
|
|
159
|
+
abortSignal: i
|
|
160
|
+
}), l = Array.from(
|
|
182
161
|
new Set(
|
|
183
162
|
g.map((S) => S.attributes[r]).filter((S) => S !== void 0)
|
|
184
163
|
).values()
|
|
185
164
|
);
|
|
186
165
|
}
|
|
187
|
-
return { allValues:
|
|
166
|
+
return { allValues: l, preFetchedQueryResponse: g };
|
|
188
167
|
}
|
|
189
168
|
function Ct(t, e) {
|
|
190
|
-
const
|
|
169
|
+
const s = /* @__PURE__ */ new Map();
|
|
191
170
|
return t.series.forEach((r) => {
|
|
192
|
-
let a =
|
|
171
|
+
let a = ae({
|
|
193
172
|
where: r.query?.where,
|
|
194
173
|
// normalize the value so it matches what we get from getAllValues()
|
|
195
174
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
@@ -199,88 +178,88 @@ function Ct(t, e) {
|
|
|
199
178
|
escape: !1
|
|
200
179
|
});
|
|
201
180
|
e && a !== null && (a = Number(a));
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
...
|
|
181
|
+
const i = he([r]);
|
|
182
|
+
i !== void 0 && s.set(i, [
|
|
183
|
+
...s.get(i) ?? [],
|
|
205
184
|
a
|
|
206
185
|
]);
|
|
207
|
-
}),
|
|
186
|
+
}), s;
|
|
208
187
|
}
|
|
209
188
|
function bt(t) {
|
|
210
|
-
const { allValues: e, configUniqueValuesPerSeriesType:
|
|
211
|
-
return Array.from(
|
|
212
|
-
const
|
|
189
|
+
const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
|
|
190
|
+
return Array.from(s.keys()).forEach((i) => {
|
|
191
|
+
const n = s.get(i) ?? [];
|
|
213
192
|
let o = [];
|
|
214
193
|
r ? o = e : e.forEach((c) => {
|
|
215
|
-
|
|
216
|
-
}), a.set(
|
|
194
|
+
n.includes(c) || o.push(c);
|
|
195
|
+
}), a.set(i, o);
|
|
217
196
|
}), a;
|
|
218
197
|
}
|
|
219
198
|
function At(t) {
|
|
220
|
-
const { chartConfig: e, missingValue:
|
|
199
|
+
const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
|
|
221
200
|
JSON.stringify({
|
|
222
201
|
...e.series[0],
|
|
223
202
|
...a
|
|
224
203
|
})
|
|
225
204
|
);
|
|
226
|
-
if (
|
|
227
|
-
if (
|
|
228
|
-
const o =
|
|
229
|
-
|
|
205
|
+
if (i.query) {
|
|
206
|
+
if (i.id = `${s}-${e.series.length}-${Date.now()}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
|
|
207
|
+
const o = i.id;
|
|
208
|
+
i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
|
|
230
209
|
}
|
|
231
|
-
const
|
|
232
|
-
|
|
210
|
+
const n = typeof s == "number" || s === null ? s : `'${s}'`;
|
|
211
|
+
i.query.where = `${r}=${n}`;
|
|
233
212
|
}
|
|
234
|
-
return
|
|
213
|
+
return i;
|
|
235
214
|
}
|
|
236
215
|
async function vt(t) {
|
|
237
216
|
const {
|
|
238
217
|
updateSplitBySeries: e,
|
|
239
|
-
config:
|
|
218
|
+
config: s,
|
|
240
219
|
queryObject: r,
|
|
241
220
|
errorStrings: a,
|
|
242
|
-
abortSignal:
|
|
243
|
-
runtimeDataFilters:
|
|
221
|
+
abortSignal: i,
|
|
222
|
+
runtimeDataFilters: n,
|
|
244
223
|
ignoreViewExtent: o,
|
|
245
224
|
setTimeBinningInfoWhenNotProvided: c,
|
|
246
225
|
returnFeaturesExtent: m,
|
|
247
226
|
chartLimits: h
|
|
248
|
-
} = t, { seriesTemplate:
|
|
227
|
+
} = t, { seriesTemplate: l } = e ?? {};
|
|
249
228
|
let g;
|
|
250
|
-
if (r && !
|
|
251
|
-
const y =
|
|
252
|
-
|
|
253
|
-
const d = W(
|
|
254
|
-
if (d ===
|
|
255
|
-
const u =
|
|
229
|
+
if (r && !ee(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || l !== void 0) && e.addMissingSeries) {
|
|
230
|
+
const y = s.series.length === 0;
|
|
231
|
+
s.series.length === 0 && l !== void 0 && s.series.push(l);
|
|
232
|
+
const d = W(s.series);
|
|
233
|
+
if (d === O.BoxPlotMonoFieldAndSplitBy || d === O.BoxPlotMultiFieldsAndSplitBy || d === O.BoxPlotMonoFieldAndCategoryAndSplitBy || d === O.BarAndLineSplitBy || d === O.BarAndLineSplitByNoAggregation) {
|
|
234
|
+
const u = Pe(s.series[0]?.query?.where), f = Ee(r), T = Me(u, f), S = T ? $e(T) : !1, p = await Bt({
|
|
256
235
|
queryObject: r,
|
|
257
|
-
chartConfig:
|
|
236
|
+
chartConfig: s,
|
|
258
237
|
splitByField: u,
|
|
259
|
-
abortSignal:
|
|
260
|
-
runtimeDataFilters:
|
|
238
|
+
abortSignal: i,
|
|
239
|
+
runtimeDataFilters: n,
|
|
261
240
|
ignoreViewExtent: o,
|
|
262
241
|
setTimeBinningInfoWhenNotProvided: c,
|
|
263
242
|
returnFeaturesExtent: m,
|
|
264
243
|
chartLimits: h,
|
|
265
244
|
errorStrings: a
|
|
266
|
-
}), { allValues:
|
|
267
|
-
if ({ preFetchedQueryResponse: g } = p,
|
|
268
|
-
const
|
|
269
|
-
allValues:
|
|
270
|
-
configUniqueValuesPerSeriesType:
|
|
245
|
+
}), { allValues: V } = p;
|
|
246
|
+
if ({ preFetchedQueryResponse: g } = p, V.length > 0) {
|
|
247
|
+
const x = Ct(s, S), A = bt({
|
|
248
|
+
allValues: V,
|
|
249
|
+
configUniqueValuesPerSeriesType: x,
|
|
271
250
|
initialConfigWasEmpty: y
|
|
272
251
|
});
|
|
273
252
|
Array.from(A.keys()).forEach((F) => {
|
|
274
253
|
(A.get(F) ?? []).forEach((B) => {
|
|
275
|
-
|
|
254
|
+
s.series.push(
|
|
276
255
|
At({
|
|
277
|
-
chartConfig:
|
|
278
|
-
seriesTemplate:
|
|
256
|
+
chartConfig: s,
|
|
257
|
+
seriesTemplate: l,
|
|
279
258
|
missingValue: B,
|
|
280
259
|
splitByField: u
|
|
281
260
|
})
|
|
282
261
|
);
|
|
283
|
-
}), y &&
|
|
262
|
+
}), y && s.series.shift();
|
|
284
263
|
});
|
|
285
264
|
}
|
|
286
265
|
}
|
|
@@ -288,73 +267,73 @@ async function vt(t) {
|
|
|
288
267
|
return g;
|
|
289
268
|
}
|
|
290
269
|
function It(t, e) {
|
|
291
|
-
e && !
|
|
270
|
+
e && !xe(e) && (e = we({ chartConfig: e, queryObject: t }));
|
|
292
271
|
}
|
|
293
|
-
async function
|
|
272
|
+
async function ys(t) {
|
|
294
273
|
const {
|
|
295
274
|
configToAlter: e,
|
|
296
|
-
layer:
|
|
275
|
+
layer: s,
|
|
297
276
|
addMissingSeries: r,
|
|
298
277
|
updateSplitBySeries: a,
|
|
299
|
-
chartContainer:
|
|
300
|
-
queryObject:
|
|
278
|
+
chartContainer: i,
|
|
279
|
+
queryObject: n,
|
|
301
280
|
abortSignal: o,
|
|
302
281
|
runtimeDataFilters: c,
|
|
303
282
|
ignoreViewExtent: m,
|
|
304
283
|
setTimeBinningInfoWhenNotProvided: h,
|
|
305
|
-
returnFeaturesExtent:
|
|
284
|
+
returnFeaturesExtent: l,
|
|
306
285
|
chartLimits: g,
|
|
307
286
|
errorStrings: y
|
|
308
287
|
} = t;
|
|
309
288
|
let d = e, u;
|
|
310
|
-
return d && (It(
|
|
289
|
+
return d && (It(s, d), d = await it(d, s, void 0, o), r && n && (u = await vt({
|
|
311
290
|
updateSplitBySeries: a,
|
|
312
291
|
config: d,
|
|
313
|
-
queryObject:
|
|
292
|
+
queryObject: n,
|
|
314
293
|
errorStrings: y,
|
|
315
294
|
abortSignal: o,
|
|
316
295
|
runtimeDataFilters: c,
|
|
317
296
|
ignoreViewExtent: m,
|
|
318
297
|
setTimeBinningInfoWhenNotProvided: h,
|
|
319
|
-
returnFeaturesExtent:
|
|
298
|
+
returnFeaturesExtent: l,
|
|
320
299
|
chartLimits: g
|
|
321
|
-
})), d =
|
|
300
|
+
})), d = Ve(d, i)), { alteredConfig: d, preFetchedQueryResponse: u };
|
|
322
301
|
}
|
|
323
302
|
function Lt(t, e) {
|
|
324
|
-
let
|
|
303
|
+
let s = !1;
|
|
325
304
|
if (e !== void 0) {
|
|
326
|
-
const r =
|
|
327
|
-
|
|
305
|
+
const r = We({ key: ze.Average, splitBy: e });
|
|
306
|
+
s = Number.isFinite(t[r]);
|
|
328
307
|
}
|
|
329
|
-
return
|
|
308
|
+
return s;
|
|
330
309
|
}
|
|
331
|
-
function
|
|
332
|
-
const { data: e, config:
|
|
333
|
-
let
|
|
310
|
+
function ms(t) {
|
|
311
|
+
const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = se(s);
|
|
312
|
+
let n = !1;
|
|
334
313
|
if (!r && a > 1 && e) {
|
|
335
|
-
const o =
|
|
314
|
+
const o = Ne(e), c = he(s?.series), m = W(s?.series), h = /* @__PURE__ */ new Set();
|
|
336
315
|
switch (c) {
|
|
337
316
|
case I.ComboLineAndBarSeries:
|
|
338
317
|
case I.BarSeries:
|
|
339
318
|
case I.RadarSeries:
|
|
340
319
|
case I.LineSeries: {
|
|
341
|
-
|
|
320
|
+
i.series.forEach((g) => {
|
|
342
321
|
if (Array.isArray(o)) {
|
|
343
322
|
let y = "";
|
|
344
|
-
"y" in g && (y = Array.isArray(g.y) ? g.y[0] : g.y, m ===
|
|
345
|
-
(u) =>
|
|
323
|
+
"y" in g && (y = Array.isArray(g.y) ? g.y[0] : g.y, m === O.BarAndLineSplitByNoAggregation && (y = `${y}_${ae({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
324
|
+
(u) => De({ dataItem: u, x: g.x, y })
|
|
346
325
|
) && h.add(g));
|
|
347
326
|
}
|
|
348
327
|
});
|
|
349
328
|
break;
|
|
350
329
|
}
|
|
351
330
|
case I.BoxPlotSeries: {
|
|
352
|
-
if (
|
|
353
|
-
const g =
|
|
354
|
-
|
|
331
|
+
if (ke(s)) {
|
|
332
|
+
const g = Re(s);
|
|
333
|
+
s.series.forEach((y) => {
|
|
355
334
|
let d, u;
|
|
356
335
|
y.type === I.BoxPlotSeries ? (d = e.dataItems, u = d?.some(
|
|
357
|
-
(f) =>
|
|
336
|
+
(f) => Oe({
|
|
358
337
|
dataItem: f,
|
|
359
338
|
splitBy: y.query?.where,
|
|
360
339
|
showOutliers: g
|
|
@@ -367,56 +346,56 @@ function Di(t) {
|
|
|
367
346
|
break;
|
|
368
347
|
}
|
|
369
348
|
}
|
|
370
|
-
const
|
|
371
|
-
|
|
349
|
+
const l = Array.from(h.values());
|
|
350
|
+
n = l.length > 0 && l.length < a, n && (i.series = l);
|
|
372
351
|
}
|
|
373
|
-
return { seriesFilteredOut:
|
|
352
|
+
return { seriesFilteredOut: n, filteredConfig: i };
|
|
374
353
|
}
|
|
375
|
-
const
|
|
354
|
+
const gs = (t) => t.hideEmptyRowsAndColumns, ps = (t, e) => {
|
|
376
355
|
t.hideEmptyRowsAndColumns = e;
|
|
377
|
-
},
|
|
378
|
-
const
|
|
379
|
-
|
|
380
|
-
},
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
},
|
|
384
|
-
const { yField: e, config:
|
|
385
|
-
if (typeof e == "string" &&
|
|
386
|
-
const m =
|
|
387
|
-
P(
|
|
356
|
+
}, fs = (t, e) => {
|
|
357
|
+
const s = t.series[0];
|
|
358
|
+
s.heatRulesType = e;
|
|
359
|
+
}, Ss = (t) => t.series[0].heatRulesType, Fs = (t, e) => {
|
|
360
|
+
const s = t.series[0];
|
|
361
|
+
s.gradientRules = e;
|
|
362
|
+
}, hs = (t) => t.series[0].gradientRules, xs = (t) => {
|
|
363
|
+
const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = le(1, s), n = Vt(s), o = Q(s), c = s.series[0];
|
|
364
|
+
if (typeof e == "string" && n !== e && c && (c.y = e, Tt(s), n === i || o)) {
|
|
365
|
+
const m = D(a, e);
|
|
366
|
+
P(s, 1, m);
|
|
388
367
|
}
|
|
389
|
-
},
|
|
390
|
-
const { binning: e, config:
|
|
368
|
+
}, Vt = (t) => t.series[0].y ?? "", Ts = (t) => {
|
|
369
|
+
const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
|
|
391
370
|
if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
392
|
-
const
|
|
393
|
-
P(
|
|
371
|
+
const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
372
|
+
P(s, 0, i);
|
|
394
373
|
}
|
|
395
|
-
},
|
|
396
|
-
const { binning: e, config:
|
|
374
|
+
}, Bs = (t) => t.series[0].xTemporalBinning, Cs = (t) => {
|
|
375
|
+
const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
|
|
397
376
|
if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
398
|
-
const
|
|
399
|
-
P(
|
|
377
|
+
const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
378
|
+
P(s, 1, i);
|
|
400
379
|
}
|
|
401
|
-
},
|
|
380
|
+
}, bs = (t) => t.series[0].yTemporalBinning, qt = (t, e) => {
|
|
402
381
|
e.orderOptions ??= {};
|
|
403
|
-
const
|
|
382
|
+
const s = e.axes?.[0]?.valueFormat?.type === "category" ? q.Category : q.YValue, r = te(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? q.Category : q.YValue, i = te(e)[1], n = {
|
|
404
383
|
...e.orderOptions.data ?? {},
|
|
405
|
-
orderType:
|
|
384
|
+
orderType: q.MultiAxes
|
|
406
385
|
};
|
|
407
|
-
r ===
|
|
408
|
-
},
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
},
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
},
|
|
415
|
-
const
|
|
416
|
-
|
|
417
|
-
},
|
|
418
|
-
const { field: e, config:
|
|
419
|
-
|
|
386
|
+
r === _.customSort && s === q.Category && (n.orderByX = [...t]), i === _.customSort && a === q.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
387
|
+
}, As = (t, e) => {
|
|
388
|
+
const s = e.series[0];
|
|
389
|
+
s.gridLine && (s.gridLine.width = t);
|
|
390
|
+
}, vs = (t) => t.series[0].gridLine?.width, Is = (t, e) => {
|
|
391
|
+
const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
392
|
+
s.gridLine && r && (s.gridLine.color = t);
|
|
393
|
+
}, Ls = (t) => t.series[0].gridLine?.color, Vs = (t, e) => {
|
|
394
|
+
const s = e.legend;
|
|
395
|
+
s && (s.position = t);
|
|
396
|
+
}, qs = (t) => t.legend?.position ?? et.Bottom, Ns = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ks = (t) => {
|
|
397
|
+
const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = G(s, r, a);
|
|
398
|
+
i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
|
|
420
399
|
outStatistics: [
|
|
421
400
|
{
|
|
422
401
|
onStatisticField: e,
|
|
@@ -424,85 +403,112 @@ const wi = (t) => t.hideEmptyRowsAndColumns, Ri = (t, e) => {
|
|
|
424
403
|
statisticType: L.Count
|
|
425
404
|
}
|
|
426
405
|
]
|
|
427
|
-
},
|
|
428
|
-
},
|
|
429
|
-
const { aggregationType: e, config:
|
|
430
|
-
|
|
431
|
-
},
|
|
406
|
+
}, n && s.title && (s.title.content.text = X(s, r, a));
|
|
407
|
+
}, Rs = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, Os = (t) => {
|
|
408
|
+
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = G(s, r, a);
|
|
409
|
+
i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Nt(H.Zero, s), n && s.title && (s.title.content.text = X(s, r, a));
|
|
410
|
+
}, Ds = (t) => t.nullPolicy, Nt = (t, e) => {
|
|
432
411
|
e.nullPolicy = t;
|
|
433
|
-
},
|
|
412
|
+
}, ws = (t) => t.series[0].emptyCells, Ps = (t, e) => {
|
|
434
413
|
e.series[0].emptyCells = t;
|
|
435
|
-
},
|
|
414
|
+
}, Es = (t) => t.series[0].emptyCells?.text, Ms = (t, e) => {
|
|
436
415
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
437
|
-
},
|
|
416
|
+
}, $s = (t) => t.includeLeapDay, Ws = (t, e) => {
|
|
438
417
|
e.includeLeapDay = t;
|
|
439
|
-
},
|
|
418
|
+
}, Ys = (t) => t.series[0].emptyCells?.symbol, Xs = (t, e) => {
|
|
440
419
|
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
|
|
441
420
|
};
|
|
442
|
-
function
|
|
421
|
+
function js(t) {
|
|
443
422
|
return t.viewType;
|
|
444
423
|
}
|
|
445
|
-
function
|
|
446
|
-
|
|
424
|
+
function Hs(t, e) {
|
|
425
|
+
Ge(e) || (e.viewType = t);
|
|
447
426
|
}
|
|
448
|
-
function
|
|
449
|
-
return t.series[0].classBreaksRules?.breaksCount ??
|
|
427
|
+
function Ks(t) {
|
|
428
|
+
return t.series[0].classBreaksRules?.breaksCount ?? K.classBreaks.breaksCount;
|
|
450
429
|
}
|
|
451
|
-
function
|
|
452
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ??
|
|
453
|
-
breaksCount: t ??
|
|
430
|
+
function Us(t, e) {
|
|
431
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? K.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
432
|
+
breaksCount: t ?? K.classBreaks.breaksCount
|
|
454
433
|
};
|
|
455
434
|
}
|
|
456
|
-
function
|
|
435
|
+
function Qs(t) {
|
|
457
436
|
return t.series[0].classBreaksRules?.classificationMethod;
|
|
458
437
|
}
|
|
459
|
-
function
|
|
438
|
+
function zs(t, e) {
|
|
460
439
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
|
|
461
440
|
classificationMethod: t
|
|
462
|
-
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ??
|
|
441
|
+
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? K.classBreaks.breaksCount;
|
|
463
442
|
}
|
|
464
|
-
function
|
|
443
|
+
function Gs(t, e) {
|
|
465
444
|
e.firstDayOfWeek = t;
|
|
466
445
|
}
|
|
467
|
-
function
|
|
446
|
+
function _s(t) {
|
|
468
447
|
return t.firstDayOfWeek;
|
|
469
448
|
}
|
|
470
|
-
function
|
|
471
|
-
|
|
449
|
+
function Zs(t) {
|
|
450
|
+
return t.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
451
|
+
}
|
|
452
|
+
function Js(t, e) {
|
|
453
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
454
|
+
...e.series[0].classBreaksRules.colorRampInfo,
|
|
455
|
+
name: t
|
|
456
|
+
} : e.series[0].classBreaksRules = {
|
|
457
|
+
colorRampInfo: {
|
|
458
|
+
name: t,
|
|
459
|
+
flipped: !1
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
function ei(t) {
|
|
464
|
+
return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
465
|
+
}
|
|
466
|
+
function ti(t, e) {
|
|
467
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
468
|
+
...e.series[0].classBreaksRules.colorRampInfo,
|
|
469
|
+
flipped: t
|
|
470
|
+
} : e.series[0].classBreaksRules = {
|
|
471
|
+
colorRampInfo: {
|
|
472
|
+
flipped: t
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
function M(t) {
|
|
477
|
+
const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = Y(i?.layer).idField;
|
|
472
478
|
let c;
|
|
473
479
|
const m = a.series[e ?? 0];
|
|
474
|
-
let h = !1,
|
|
480
|
+
let h = !1, l = !1, g = !1;
|
|
475
481
|
if (m === void 0) {
|
|
476
482
|
const u = a.series;
|
|
477
|
-
h = u.slice(0, e).every((f) => C(f)),
|
|
483
|
+
h = u.slice(0, e).every((f) => C(f)), l = u.slice(0, e).every((f) => b(f)), g = u.slice(0, e).every((f) => me(f));
|
|
478
484
|
} else
|
|
479
|
-
h = C(m),
|
|
480
|
-
h ? c =
|
|
481
|
-
commonStrings:
|
|
485
|
+
h = C(m), l = b(m), g = me(m);
|
|
486
|
+
h ? c = ut({
|
|
487
|
+
commonStrings: n,
|
|
482
488
|
seriesIndex: e,
|
|
483
489
|
objectIDField: o
|
|
484
|
-
}) :
|
|
485
|
-
commonStrings:
|
|
490
|
+
}) : l ? c = ct({
|
|
491
|
+
commonStrings: n,
|
|
486
492
|
seriesIndex: e,
|
|
487
493
|
objectIDField: o
|
|
488
|
-
}) : g ? c =
|
|
494
|
+
}) : g ? c = dt(n, o) : c = yt({
|
|
489
495
|
seriesIndex: e,
|
|
490
496
|
objectIDField: o,
|
|
491
|
-
commonStrings:
|
|
497
|
+
commonStrings: n
|
|
492
498
|
});
|
|
493
499
|
const y = a.series[0]?.dataLabels, d = {
|
|
494
500
|
...c,
|
|
495
|
-
x:
|
|
501
|
+
x: s,
|
|
496
502
|
y: "",
|
|
497
503
|
dataLabels: {
|
|
498
504
|
...c.dataLabels,
|
|
499
505
|
type: c.dataLabels?.type ?? I.Text,
|
|
500
|
-
content: { ...c.dataLabels?.content, ...y?.content, type:
|
|
506
|
+
content: { ...c.dataLabels?.content, ...y?.content, type: ft.TS },
|
|
501
507
|
visible: y?.visible ?? !1
|
|
502
508
|
}
|
|
503
509
|
};
|
|
504
510
|
if (d.query = {
|
|
505
|
-
groupByFieldsForStatistics: [
|
|
511
|
+
groupByFieldsForStatistics: [s]
|
|
506
512
|
}, r !== L.NoAggregation && o !== void 0) {
|
|
507
513
|
const u = `${r}_${o}_0`.toUpperCase();
|
|
508
514
|
d.y = u, d.query.outStatistics = [
|
|
@@ -513,312 +519,312 @@ function E(t) {
|
|
|
513
519
|
}
|
|
514
520
|
];
|
|
515
521
|
}
|
|
516
|
-
if (
|
|
522
|
+
if (k(a.series[0]) && k(d)) {
|
|
517
523
|
let u;
|
|
518
|
-
if (a?.series?.[0] !== void 0 && (u = W(a.series)), u !==
|
|
524
|
+
if (a?.series?.[0] !== void 0 && (u = W(a.series)), u !== O.BarAndLineNoAggregation && u !== O.BarAndLineSplitByNoAggregation) {
|
|
519
525
|
let f = Ft(a);
|
|
520
|
-
f ===
|
|
526
|
+
f === J.Quarter && (f = J.Month), d.temporalBinning = {
|
|
521
527
|
...a.series[0]?.temporalBinning,
|
|
522
528
|
unit: f
|
|
523
529
|
};
|
|
524
530
|
}
|
|
525
531
|
}
|
|
526
|
-
return
|
|
532
|
+
return se(d);
|
|
527
533
|
}
|
|
528
|
-
function
|
|
529
|
-
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID:
|
|
534
|
+
function X(t, e, s) {
|
|
535
|
+
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = Y(e.layer), n = E(t), o = z(t), c = Be(t), m = ne(t), h = i && (o.length === 0 || o.includes(a)), l = ot(c, s), g = h ? "" : o.map((p) => D(r ?? [], p)).join(", "), y = D(r ?? [], n), d = D(r ?? [], m), u = t.series.some((p) => R(p)), f = u ? "category" : "xAxisField", T = y;
|
|
530
536
|
let S = "";
|
|
531
|
-
if (
|
|
532
|
-
fieldName:
|
|
537
|
+
if (Fe({
|
|
538
|
+
fieldName: n,
|
|
533
539
|
numericFields: o,
|
|
534
540
|
fieldList: r
|
|
535
541
|
}))
|
|
536
|
-
S =
|
|
537
|
-
aggregationType:
|
|
542
|
+
S = w(s.titleLabels.aggrTypeOfAggrFields, {
|
|
543
|
+
aggregationType: l,
|
|
538
544
|
aggregationFields: g
|
|
539
545
|
});
|
|
540
546
|
else if (c === L.NoAggregation) {
|
|
541
547
|
const p = h ? a : g;
|
|
542
548
|
if (m === "") {
|
|
543
|
-
const
|
|
544
|
-
S =
|
|
549
|
+
const V = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
550
|
+
S = w(s.titleLabels[V], {
|
|
545
551
|
aggregationType: p,
|
|
546
|
-
[f]:
|
|
552
|
+
[f]: T
|
|
547
553
|
});
|
|
548
554
|
} else {
|
|
549
|
-
const
|
|
550
|
-
S =
|
|
555
|
+
const V = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
556
|
+
S = w(s.titleLabels[V], {
|
|
551
557
|
aggregationType: p,
|
|
552
|
-
[f]:
|
|
558
|
+
[f]: T,
|
|
553
559
|
splitByField: d
|
|
554
560
|
});
|
|
555
561
|
}
|
|
556
562
|
} else if (c === L.Count)
|
|
557
563
|
if (m === "") {
|
|
558
564
|
const p = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
559
|
-
S =
|
|
560
|
-
aggregationType:
|
|
561
|
-
[f]:
|
|
565
|
+
S = w(s.titleLabels[p], {
|
|
566
|
+
aggregationType: l,
|
|
567
|
+
[f]: T
|
|
562
568
|
});
|
|
563
569
|
} else {
|
|
564
570
|
const p = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
565
|
-
S =
|
|
566
|
-
aggregationType:
|
|
567
|
-
[f]:
|
|
571
|
+
S = w(s.titleLabels[p], {
|
|
572
|
+
aggregationType: l,
|
|
573
|
+
[f]: T,
|
|
568
574
|
splitByField: d
|
|
569
575
|
});
|
|
570
576
|
}
|
|
571
577
|
else if (m !== "") {
|
|
572
578
|
const p = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
573
|
-
S =
|
|
574
|
-
aggregationType:
|
|
579
|
+
S = w(s.titleLabels[p], {
|
|
580
|
+
aggregationType: l,
|
|
575
581
|
aggregationField: g,
|
|
576
|
-
[f]:
|
|
582
|
+
[f]: T,
|
|
577
583
|
splitByField: d
|
|
578
584
|
});
|
|
579
585
|
} else if (o.length > 0) {
|
|
580
586
|
const p = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
581
|
-
S =
|
|
582
|
-
aggregationType:
|
|
587
|
+
S = w(s.titleLabels[p], {
|
|
588
|
+
aggregationType: l,
|
|
583
589
|
aggregationFields: g,
|
|
584
|
-
[f]:
|
|
590
|
+
[f]: T
|
|
585
591
|
});
|
|
586
592
|
}
|
|
587
593
|
return S;
|
|
588
594
|
}
|
|
589
|
-
const
|
|
595
|
+
const Te = (t) => ae({
|
|
590
596
|
where: t.query?.where,
|
|
591
597
|
normalize: !1,
|
|
592
598
|
escape: !1
|
|
593
|
-
}) ?? "", Be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation,
|
|
599
|
+
}) ?? "", Be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, ne = ve(
|
|
594
600
|
(t) => {
|
|
595
601
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
596
|
-
return
|
|
602
|
+
return _e(t?.series?.[0]?.query?.where) ? "" : e;
|
|
597
603
|
},
|
|
598
604
|
(t) => t?.series?.[0]?.query?.where
|
|
599
|
-
),
|
|
605
|
+
), z = (t) => {
|
|
600
606
|
let e = [];
|
|
601
|
-
if (
|
|
602
|
-
e = t?.series.map((
|
|
603
|
-
const r =
|
|
604
|
-
return r?.length > 0 ? r :
|
|
607
|
+
if (ne(t) === "")
|
|
608
|
+
e = t?.series.map((s) => {
|
|
609
|
+
const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
|
|
610
|
+
return r?.length > 0 ? r : s.y;
|
|
605
611
|
}).flat() ?? [];
|
|
606
612
|
else {
|
|
607
|
-
const
|
|
613
|
+
const s = t?.series?.[0], r = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
|
|
608
614
|
e = r !== void 0 ? [r] : [];
|
|
609
615
|
}
|
|
610
|
-
return e.filter((
|
|
616
|
+
return e.filter((s) => s !== "");
|
|
611
617
|
};
|
|
612
|
-
function
|
|
613
|
-
const { numericFields: e, aggregationType:
|
|
614
|
-
let
|
|
615
|
-
|
|
618
|
+
function kt(t) {
|
|
619
|
+
const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
|
|
620
|
+
let i = !1;
|
|
621
|
+
s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((c) => {
|
|
616
622
|
const m = a.layerFieldsInfo.find((h) => h.name === c);
|
|
617
|
-
return m !== void 0 ?
|
|
618
|
-
})),
|
|
619
|
-
const
|
|
620
|
-
if (
|
|
621
|
-
const c =
|
|
622
|
-
|
|
623
|
+
return m !== void 0 ? de(m) : !1;
|
|
624
|
+
})), oe(r, 1, i);
|
|
625
|
+
const n = r.series.some((c) => C(c)), o = r.series.some((c) => b(c));
|
|
626
|
+
if (n || o) {
|
|
627
|
+
const c = E(r), m = a.layerFieldsInfo.find((l) => l.name === c), h = m !== void 0 && de(m);
|
|
628
|
+
oe(r, 0, h);
|
|
623
629
|
}
|
|
624
630
|
}
|
|
625
631
|
const te = (t) => {
|
|
626
632
|
let e;
|
|
627
|
-
if (
|
|
628
|
-
const
|
|
629
|
-
e = [
|
|
633
|
+
if (re(t)) {
|
|
634
|
+
const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? q.Category : q.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? q.Category : q.YValue;
|
|
635
|
+
e = [ye(s, a), ye(r, i)];
|
|
630
636
|
} else {
|
|
631
|
-
const
|
|
632
|
-
e = [
|
|
637
|
+
const s = t.orderOptions?.data?.orderType ?? q.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : tt.Ascending;
|
|
638
|
+
e = [Je(r, s)];
|
|
633
639
|
}
|
|
634
640
|
return e;
|
|
635
641
|
};
|
|
636
|
-
function
|
|
637
|
-
const { xAxisField: e, numericFields:
|
|
642
|
+
function Rt(t) {
|
|
643
|
+
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
|
|
638
644
|
let c = !1;
|
|
639
|
-
const m =
|
|
645
|
+
const m = M({
|
|
640
646
|
config: a,
|
|
641
647
|
xAxisField: e,
|
|
642
648
|
aggregationType: r,
|
|
643
|
-
layerInfo:
|
|
649
|
+
layerInfo: i,
|
|
644
650
|
seriesIndex: 0,
|
|
645
|
-
commonStrings:
|
|
646
|
-
}), h =
|
|
651
|
+
commonStrings: n
|
|
652
|
+
}), h = U({
|
|
647
653
|
config: a,
|
|
648
654
|
xAxisField: e,
|
|
649
|
-
numericFields:
|
|
655
|
+
numericFields: s,
|
|
650
656
|
aggregationType: r,
|
|
651
|
-
layer:
|
|
657
|
+
layer: i.layer,
|
|
652
658
|
fieldList: o
|
|
653
|
-
}).name,
|
|
659
|
+
}).name, l = {
|
|
654
660
|
...m,
|
|
655
661
|
id: `series_${Date.now()}`,
|
|
656
|
-
name:
|
|
657
|
-
x:
|
|
662
|
+
name: n.axisLabels.values,
|
|
663
|
+
x: Z,
|
|
658
664
|
y: h
|
|
659
665
|
}, g = [];
|
|
660
|
-
for (const d of
|
|
666
|
+
for (const d of s)
|
|
661
667
|
g.push({
|
|
662
668
|
onStatisticField: d,
|
|
663
669
|
outStatisticFieldName: `${d}_0`.toUpperCase(),
|
|
664
670
|
statisticType: r
|
|
665
671
|
});
|
|
666
|
-
|
|
672
|
+
l.query = { outStatistics: g };
|
|
667
673
|
const y = a.series[0];
|
|
668
|
-
return y !== void 0 && (
|
|
674
|
+
return y !== void 0 && (l.id = y.id, (C(l) && C(y) || b(l) && b(y)) && $(l, y), a.colorMatch || (R(y) && R(l) ? l.fillSymbol = y.fillSymbol : (C(l) && C(y) || b(l) && b(y)) && (l.lineSymbol = y.lineSymbol, l.markerSymbol = y.markerSymbol), c = !0), l.id = y.id, y.name !== m.name && (l.name = y.name)), a.series.length === 1 && ((C(l) || b(l)) && $(l, a.series[0]), a.colorMatch || (R(l) ? l.fillSymbol = a.series[0].fillSymbol : (C(l) || b(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
|
|
669
675
|
}
|
|
670
676
|
function Ce(t) {
|
|
671
|
-
const { xAxisField: e, numericFields:
|
|
677
|
+
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = Y(i.layer).idField, m = [];
|
|
672
678
|
let h = !1;
|
|
673
|
-
for (let u = 0; u <
|
|
674
|
-
const f =
|
|
679
|
+
for (let u = 0; u < s.length; u += 1) {
|
|
680
|
+
const f = M({
|
|
675
681
|
config: a,
|
|
676
682
|
xAxisField: e,
|
|
677
683
|
aggregationType: r,
|
|
678
|
-
layerInfo:
|
|
684
|
+
layerInfo: i,
|
|
679
685
|
seriesIndex: u,
|
|
680
|
-
commonStrings:
|
|
681
|
-
}),
|
|
686
|
+
commonStrings: n
|
|
687
|
+
}), T = U({
|
|
682
688
|
config: a,
|
|
683
689
|
xAxisField: e,
|
|
684
|
-
numericFields:
|
|
690
|
+
numericFields: s,
|
|
685
691
|
aggregationType: r,
|
|
686
|
-
layer:
|
|
692
|
+
layer: i.layer,
|
|
687
693
|
numericFieldIndex: u,
|
|
688
694
|
fieldList: o
|
|
689
|
-
}).name, S =
|
|
695
|
+
}).name, S = s[u];
|
|
690
696
|
let p = {
|
|
691
697
|
...f,
|
|
692
698
|
query: {
|
|
693
699
|
...f.query
|
|
694
700
|
}
|
|
695
701
|
};
|
|
696
|
-
|
|
702
|
+
s && S !== c && (p = {
|
|
697
703
|
...p,
|
|
698
704
|
id: S,
|
|
699
|
-
name:
|
|
705
|
+
name: D(o, S)
|
|
700
706
|
});
|
|
701
|
-
let
|
|
702
|
-
p.query !== void 0 && (r !== L.NoAggregation ? (
|
|
707
|
+
let V = S;
|
|
708
|
+
p.query !== void 0 && (r !== L.NoAggregation ? (V = T, p.query.outStatistics = [
|
|
703
709
|
{
|
|
704
710
|
...f.query?.outStatistics?.[0] ?? {},
|
|
705
711
|
onStatisticField: S,
|
|
706
|
-
outStatisticFieldName:
|
|
712
|
+
outStatisticFieldName: T,
|
|
707
713
|
statisticType: r
|
|
708
714
|
}
|
|
709
|
-
]) : delete p.query.outStatistics), p.y =
|
|
710
|
-
const
|
|
715
|
+
]) : delete p.query.outStatistics), p.y = V;
|
|
716
|
+
const x = a.series.find(
|
|
711
717
|
(A) => A.query?.outStatistics?.[0]?.onStatisticField === S && A.query.where === void 0 || A.query?.outStatistics === void 0 && (A.y === S || A.x === S)
|
|
712
718
|
);
|
|
713
|
-
if (
|
|
714
|
-
(C(p) && C(
|
|
715
|
-
const A =
|
|
719
|
+
if (x !== void 0 && typeof x.y == "string" && x.y.trim() !== "") {
|
|
720
|
+
(C(p) && C(x) || b(p) && b(x)) && $(p, x), a.colorMatch || (R(p) && R(x) ? p.fillSymbol = x.fillSymbol : (C(p) && C(x) || b(p) && b(x)) && (p.lineSymbol = x.lineSymbol, p.markerSymbol = x.markerSymbol), h = !0);
|
|
721
|
+
const A = M({
|
|
716
722
|
config: a,
|
|
717
723
|
xAxisField: e,
|
|
718
724
|
aggregationType: r,
|
|
719
|
-
layerInfo:
|
|
725
|
+
layerInfo: i,
|
|
720
726
|
seriesIndex: u,
|
|
721
|
-
commonStrings:
|
|
727
|
+
commonStrings: n
|
|
722
728
|
});
|
|
723
|
-
p.id =
|
|
729
|
+
p.id = x.id, x.id !== A.id && x.name !== A.name && (p.id = x.id, p.name = x.name), p.assignToSecondValueAxis = x.assignToSecondValueAxis, p.type === I.HeatSeries && x.type === I.HeatSeries && (p.y = x.y, p.heatRulesType = x.heatRulesType);
|
|
724
730
|
}
|
|
725
731
|
m.push(p);
|
|
726
732
|
}
|
|
727
|
-
const
|
|
733
|
+
const l = m.filter((u) => R(u)), g = m.filter(
|
|
728
734
|
(u) => C(u) || b(u)
|
|
729
|
-
), y = a.series.filter((u) =>
|
|
735
|
+
), y = a.series.filter((u) => R(u)), d = a.series.filter(
|
|
730
736
|
(u) => C(u) || b(u)
|
|
731
737
|
);
|
|
732
|
-
return y.length === 1 &&
|
|
738
|
+
return y.length === 1 && l.length === 1 && !a.colorMatch && (R(y[0]) && R(l[0]) && (l[0].fillSymbol = y[0].fillSymbol), h = !0), d.length === 1 && g.length === 1 && ((C(d[0]) && C(g[0]) || b(d[0]) && b(g[0])) && $(g[0], d[0]), a.colorMatch || ((C(d[0]) && C(g[0]) || b(d[0]) && b(g[0])) && (g[0].lineSymbol = d[0].lineSymbol, g[0].markerSymbol = d[0].markerSymbol), h = !0)), a.colorMatch = !h, m;
|
|
733
739
|
}
|
|
734
|
-
function
|
|
735
|
-
const { aggregationType: e, config:
|
|
736
|
-
if (
|
|
737
|
-
const y =
|
|
738
|
-
config:
|
|
740
|
+
function si(t) {
|
|
741
|
+
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = E(s), c = z(s), m = G(s, r, a), h = be(s, r, a);
|
|
742
|
+
if (s.series.forEach((l, g) => {
|
|
743
|
+
const y = U({
|
|
744
|
+
config: s,
|
|
739
745
|
xAxisField: o,
|
|
740
746
|
numericFields: c,
|
|
741
747
|
aggregationType: e,
|
|
742
|
-
layer:
|
|
748
|
+
layer: n,
|
|
743
749
|
seriesIndex: g,
|
|
744
750
|
numericFieldIndex: g,
|
|
745
|
-
fieldList:
|
|
751
|
+
fieldList: i
|
|
746
752
|
}).name;
|
|
747
|
-
e !== L.NoAggregation ? (
|
|
748
|
-
...
|
|
753
|
+
e !== L.NoAggregation ? (l.y = y, l.query = {
|
|
754
|
+
...l.query,
|
|
749
755
|
outStatistics: [
|
|
750
756
|
{
|
|
751
|
-
...
|
|
757
|
+
...l.query?.outStatistics?.[0],
|
|
752
758
|
outStatisticFieldName: y,
|
|
753
759
|
statisticType: e,
|
|
754
|
-
onStatisticField:
|
|
760
|
+
onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
|
|
755
761
|
}
|
|
756
762
|
]
|
|
757
|
-
}) : (delete
|
|
758
|
-
}), m &&
|
|
759
|
-
const
|
|
760
|
-
config:
|
|
763
|
+
}) : (delete l.query?.outStatistics, l.y = c[g]);
|
|
764
|
+
}), m && s.title && (s.title.content.text = X(s, r, a)), h && s.series[0].type !== I.HeatSeries) {
|
|
765
|
+
const l = ie({
|
|
766
|
+
config: s,
|
|
761
767
|
layerInfo: r,
|
|
762
768
|
commonStrings: a,
|
|
763
769
|
numericFields: c,
|
|
764
770
|
aggregationType: e
|
|
765
771
|
});
|
|
766
|
-
P(
|
|
772
|
+
P(s, 1, l);
|
|
767
773
|
}
|
|
768
774
|
}
|
|
769
|
-
function
|
|
775
|
+
function Ot(t) {
|
|
770
776
|
const {
|
|
771
777
|
splitByField: e,
|
|
772
|
-
xAxisField:
|
|
778
|
+
xAxisField: s,
|
|
773
779
|
numericFields: r,
|
|
774
780
|
aggregationType: a,
|
|
775
|
-
config:
|
|
776
|
-
layerInfo:
|
|
781
|
+
config: i,
|
|
782
|
+
layerInfo: n,
|
|
777
783
|
commonStrings: o,
|
|
778
784
|
splitByFieldInfos: c
|
|
779
|
-
} = t, { layer: m, layerFieldsInfo: h } =
|
|
785
|
+
} = t, { layer: m, layerFieldsInfo: h } = n, { categoriesArray: l, splitByFieldType: g } = c, y = r.length === 0 ? Y(m).idField : r[0];
|
|
780
786
|
let d = [], u = !1;
|
|
781
|
-
if (
|
|
787
|
+
if (l.length === 0) {
|
|
782
788
|
d = Ce({
|
|
783
|
-
xAxisField:
|
|
789
|
+
xAxisField: s,
|
|
784
790
|
numericFields: r,
|
|
785
791
|
aggregationType: a,
|
|
786
|
-
config:
|
|
787
|
-
layerInfo:
|
|
792
|
+
config: i,
|
|
793
|
+
layerInfo: n,
|
|
788
794
|
commonStrings: o
|
|
789
795
|
});
|
|
790
796
|
for (const f of d)
|
|
791
797
|
f.query && (f.query.where = `${e}=''`);
|
|
792
798
|
} else
|
|
793
|
-
for (let f = 0; f <
|
|
794
|
-
const
|
|
795
|
-
config:
|
|
796
|
-
xAxisField:
|
|
799
|
+
for (let f = 0; f < l.length; f += 1) {
|
|
800
|
+
const T = l[f], S = U({
|
|
801
|
+
config: i,
|
|
802
|
+
xAxisField: s,
|
|
797
803
|
numericFields: r,
|
|
798
804
|
aggregationType: a,
|
|
799
|
-
layer:
|
|
805
|
+
layer: n.layer,
|
|
800
806
|
seriesIndex: f,
|
|
801
807
|
splitByField: e,
|
|
802
808
|
fieldList: h
|
|
803
|
-
}).name, p =
|
|
804
|
-
config:
|
|
805
|
-
xAxisField:
|
|
809
|
+
}).name, p = M({
|
|
810
|
+
config: i,
|
|
811
|
+
xAxisField: s,
|
|
806
812
|
aggregationType: a,
|
|
807
|
-
layerInfo:
|
|
813
|
+
layerInfo: n,
|
|
808
814
|
seriesIndex: f,
|
|
809
815
|
commonStrings: o
|
|
810
|
-
}),
|
|
811
|
-
queryObject:
|
|
816
|
+
}), V = Se({
|
|
817
|
+
queryObject: n.layer,
|
|
812
818
|
fieldName: e,
|
|
813
|
-
fieldValue:
|
|
814
|
-
}),
|
|
819
|
+
fieldValue: T ?? ""
|
|
820
|
+
}), x = `${T}`, F = {
|
|
815
821
|
...p,
|
|
816
|
-
id:
|
|
817
|
-
name:
|
|
822
|
+
id: x,
|
|
823
|
+
name: V ?? x,
|
|
818
824
|
y: S,
|
|
819
825
|
query: {
|
|
820
826
|
...p.query,
|
|
821
|
-
where: `${e}=${g ===
|
|
827
|
+
where: `${e}=${g === St.String && T !== null ? `'${T}'` : T}`,
|
|
822
828
|
outStatistics: a !== L.NoAggregation ? [
|
|
823
829
|
{
|
|
824
830
|
...p.query?.outStatistics?.[0] ?? {},
|
|
@@ -830,78 +836,78 @@ function Dt(t) {
|
|
|
830
836
|
}
|
|
831
837
|
};
|
|
832
838
|
a === L.NoAggregation && (F.query !== void 0 && (delete F.query.outStatistics, delete F.query.groupByFieldsForStatistics), F.y = y);
|
|
833
|
-
const v =
|
|
834
|
-
(B) => String(
|
|
839
|
+
const v = i.series.find(
|
|
840
|
+
(B) => String(Te(B)).trim().replace(/'/gu, "") === x
|
|
835
841
|
);
|
|
836
|
-
v !== void 0 && ((C(F) && C(v) || b(F) && b(v)) && $(F, v),
|
|
842
|
+
v !== void 0 && ((C(F) && C(v) || b(F) && b(v)) && $(F, v), i.colorMatch || (R(F) && R(v) ? F.fillSymbol = v.fillSymbol : (C(F) && C(v) || b(F) && b(v)) && (F.lineSymbol = v.lineSymbol, F.markerSymbol = v.markerSymbol), u = !0), F.id = v.id, F.name = v.name, F.assignToSecondValueAxis = v.assignToSecondValueAxis), F.query && (F.query.fetchNullValues = i.series.some((B) => B.query?.fetchNullValues)), d.push(F);
|
|
837
843
|
}
|
|
838
|
-
return
|
|
844
|
+
return i.colorMatch = !u, d;
|
|
839
845
|
}
|
|
840
|
-
const
|
|
846
|
+
const ii = (t) => {
|
|
841
847
|
const {
|
|
842
848
|
xAxisFieldName: e,
|
|
843
|
-
splitByField:
|
|
849
|
+
splitByField: s,
|
|
844
850
|
numericFields: r,
|
|
845
851
|
aggregationType: a,
|
|
846
|
-
config:
|
|
847
|
-
layerInfo:
|
|
852
|
+
config: i,
|
|
853
|
+
layerInfo: n,
|
|
848
854
|
commonStrings: o,
|
|
849
855
|
splitByFieldInfos: c
|
|
850
|
-
} = t, { layerFieldsInfo: m } =
|
|
851
|
-
let S =
|
|
852
|
-
const p =
|
|
853
|
-
A && (F.classBreaksRules =
|
|
856
|
+
} = t, { layerFieldsInfo: m } = n ?? {}, h = gt(i), l = E(i), g = m.find((B) => B.name === l), y = i.series[0]?.query === void 0, d = m.find((B) => B.name === e), u = G(i, n, o), f = be(i, n, o), T = Dt(i, n);
|
|
857
|
+
let S = fe(i);
|
|
858
|
+
const p = i.series.some((B) => R(B)), V = at(i.series), x = rt(i.series), A = re(i), F = {};
|
|
859
|
+
A && (F.classBreaksRules = i.series[0]?.classBreaksRules, F.xTemporalBinning = i.series[0]?.xTemporalBinning, F.yTemporalBinning = i.series[0]?.yTemporalBinning, F.emptyCells = i.series[0]?.emptyCells, F.nullPolicy = i.nullPolicy);
|
|
854
860
|
let v = !1;
|
|
855
|
-
if (
|
|
856
|
-
|
|
857
|
-
]),
|
|
861
|
+
if (Ze(d) ? S = ge() : !ce(g) && ce(d) ? S = pe() : !j(g) && j(d) ? (S = pe(), v = !0) : j(g) && !j(d) && (p ? S = ge() : S = mt(), v = !0), S !== void 0 && Le(i, o, S), h === 0 && (i.series = [
|
|
862
|
+
M({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
|
|
863
|
+
]), i.series.forEach((B) => {
|
|
858
864
|
B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
|
|
859
|
-
}),
|
|
865
|
+
}), s === "" || r.length > 1 ? Fe({
|
|
860
866
|
fieldName: e,
|
|
861
867
|
numericFields: r,
|
|
862
868
|
fieldList: m
|
|
863
|
-
}) ?
|
|
864
|
-
config:
|
|
865
|
-
layerInfo:
|
|
869
|
+
}) ? i.series = Rt({
|
|
870
|
+
config: i,
|
|
871
|
+
layerInfo: n,
|
|
866
872
|
xAxisField: e,
|
|
867
873
|
numericFields: r,
|
|
868
874
|
aggregationType: a,
|
|
869
875
|
commonStrings: o
|
|
870
|
-
}) :
|
|
871
|
-
config:
|
|
872
|
-
layerInfo:
|
|
876
|
+
}) : i.series = Ce({
|
|
877
|
+
config: i,
|
|
878
|
+
layerInfo: n,
|
|
873
879
|
xAxisField: e,
|
|
874
880
|
numericFields: r,
|
|
875
881
|
aggregationType: a,
|
|
876
882
|
commonStrings: o
|
|
877
|
-
}) : c && (
|
|
878
|
-
config:
|
|
879
|
-
layerInfo:
|
|
880
|
-
splitByField:
|
|
883
|
+
}) : c && (i.series = Ot({
|
|
884
|
+
config: i,
|
|
885
|
+
layerInfo: n,
|
|
886
|
+
splitByField: s,
|
|
881
887
|
xAxisField: e,
|
|
882
888
|
numericFields: r,
|
|
883
889
|
aggregationType: a,
|
|
884
890
|
commonStrings: o,
|
|
885
891
|
splitByFieldInfos: c
|
|
886
|
-
})),
|
|
887
|
-
const B =
|
|
888
|
-
P(
|
|
892
|
+
})), T && i.series[0].type !== I.HeatSeries) {
|
|
893
|
+
const B = D(m, e);
|
|
894
|
+
P(i, 0, B);
|
|
889
895
|
}
|
|
890
|
-
if (f &&
|
|
891
|
-
const B =
|
|
892
|
-
config:
|
|
893
|
-
layerInfo:
|
|
896
|
+
if (f && i.series[0].type !== I.HeatSeries) {
|
|
897
|
+
const B = ie({
|
|
898
|
+
config: i,
|
|
899
|
+
layerInfo: n,
|
|
894
900
|
commonStrings: o,
|
|
895
901
|
numericFields: r,
|
|
896
902
|
aggregationType: a
|
|
897
903
|
});
|
|
898
|
-
P(
|
|
904
|
+
P(i, 1, B);
|
|
899
905
|
}
|
|
900
|
-
if (u &&
|
|
901
|
-
const B = S?.type === I.DateAxisFormat ?
|
|
902
|
-
|
|
906
|
+
if (u && i.title && (i.title.content.text = X(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), kt({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (V || x) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), v)) {
|
|
907
|
+
const B = S?.type === I.DateAxisFormat ? H.Null : H.Interpolate;
|
|
908
|
+
xt(B, i);
|
|
903
909
|
}
|
|
904
|
-
A && (
|
|
910
|
+
A && (i.series[0].classBreaksRules = F.classBreaksRules, i.series[0].xTemporalBinning = F.xTemporalBinning, i.series[0].yTemporalBinning = F.yTemporalBinning, i.series[0].emptyCells = F.emptyCells, i.nullPolicy = F.nullPolicy), y && i.series.forEach((B) => {
|
|
905
911
|
delete B.query;
|
|
906
912
|
});
|
|
907
913
|
}, $ = (t, e) => {
|
|
@@ -909,146 +915,150 @@ const Ts = (t) => {
|
|
|
909
915
|
...e.markerSymbol,
|
|
910
916
|
color: t.markerSymbol?.color
|
|
911
917
|
});
|
|
912
|
-
},
|
|
913
|
-
const { config: e, seriesIndex:
|
|
918
|
+
}, ai = (t) => {
|
|
919
|
+
const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ne(e);
|
|
914
920
|
let o;
|
|
915
|
-
if (W(e.series) ===
|
|
921
|
+
if (W(e.series) === O.BarAndLineFromFields)
|
|
916
922
|
o = a.axisLabels.values;
|
|
917
|
-
else if (Ae(
|
|
918
|
-
const m =
|
|
919
|
-
m !== void 0 && m !==
|
|
923
|
+
else if (Ae(n)) {
|
|
924
|
+
const m = i.query?.outStatistics?.[0]?.onStatisticField;
|
|
925
|
+
m !== void 0 && m !== Y(r.layer).idField && (o = D(r.layerFieldsInfo, m));
|
|
920
926
|
} else {
|
|
921
|
-
const m = String(
|
|
927
|
+
const m = String(Te(i)).trim().replace(/'/gu, "");
|
|
922
928
|
o = Se({
|
|
923
929
|
queryObject: r.layer,
|
|
924
|
-
fieldName:
|
|
930
|
+
fieldName: n,
|
|
925
931
|
fieldValue: m ?? ""
|
|
926
932
|
}) ?? m;
|
|
927
933
|
}
|
|
928
|
-
return o ??
|
|
929
|
-
},
|
|
930
|
-
if (
|
|
931
|
-
|
|
934
|
+
return o ?? i.id;
|
|
935
|
+
}, ri = (t, e) => {
|
|
936
|
+
if (re(e))
|
|
937
|
+
qt(t, e);
|
|
932
938
|
else {
|
|
933
939
|
e.orderOptions ??= {};
|
|
934
|
-
const
|
|
935
|
-
te(e)[0] ===
|
|
936
|
-
orderType:
|
|
940
|
+
const s = e.orderOptions?.data?.orderType;
|
|
941
|
+
te(e)[0] === _.customSort && s === q.Category && (e.orderOptions.data = {
|
|
942
|
+
orderType: q.Category,
|
|
937
943
|
orderBy: [...t]
|
|
938
944
|
});
|
|
939
945
|
}
|
|
940
|
-
},
|
|
941
|
-
const { config: e, layerInfo:
|
|
946
|
+
}, li = async (t) => {
|
|
947
|
+
const { config: e, layerInfo: s, errorStrings: r } = t, a = E(e), i = fe(e)?.type, n = z(e), o = W(e.series);
|
|
942
948
|
let c = [];
|
|
943
|
-
return
|
|
944
|
-
layerInfo:
|
|
949
|
+
return i === I.CategoryAxisFormat && (o === O.BarAndLineFromFields || a === Z ? c = n.map((m) => D(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== Z && s !== void 0 && (c = await Ie({
|
|
950
|
+
layerInfo: s,
|
|
945
951
|
config: e,
|
|
946
952
|
category: a,
|
|
947
953
|
errorStrings: r
|
|
948
954
|
}))), c;
|
|
949
955
|
};
|
|
950
|
-
function
|
|
951
|
-
const r =
|
|
952
|
-
return r === a ||
|
|
956
|
+
function G(t, e, s) {
|
|
957
|
+
const r = X(t, e, s), a = pt(t), i = Q(t);
|
|
958
|
+
return r === a || i;
|
|
953
959
|
}
|
|
954
|
-
function be(t, e,
|
|
955
|
-
const r =
|
|
960
|
+
function be(t, e, s) {
|
|
961
|
+
const r = ie({
|
|
956
962
|
config: t,
|
|
957
963
|
layerInfo: e,
|
|
958
|
-
commonStrings:
|
|
959
|
-
numericFields:
|
|
964
|
+
commonStrings: s,
|
|
965
|
+
numericFields: z(t),
|
|
960
966
|
aggregationType: Be(t)
|
|
961
|
-
}), a =
|
|
962
|
-
return r === a ||
|
|
967
|
+
}), a = le(1, t), i = Q(t);
|
|
968
|
+
return r === a || i;
|
|
963
969
|
}
|
|
964
|
-
function
|
|
965
|
-
const
|
|
966
|
-
return
|
|
970
|
+
function Dt(t, e) {
|
|
971
|
+
const s = D(e.layerFieldsInfo, E(t)), r = le(0, t), a = Q(t);
|
|
972
|
+
return s === r || a;
|
|
967
973
|
}
|
|
968
|
-
function
|
|
969
|
-
return
|
|
974
|
+
function ni(t) {
|
|
975
|
+
return k(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
|
|
970
976
|
}
|
|
971
|
-
function
|
|
972
|
-
e?.series.forEach((
|
|
973
|
-
(
|
|
974
|
-
unit:
|
|
977
|
+
function oi(t, e) {
|
|
978
|
+
e?.series.forEach((s) => {
|
|
979
|
+
(s?.type === I.BarSeries || s?.type === I.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
|
|
980
|
+
unit: J.Day,
|
|
975
981
|
size: 0,
|
|
976
|
-
timeAggregationType:
|
|
982
|
+
timeAggregationType: st.Start,
|
|
977
983
|
trimIncompleteTimeInterval: !0,
|
|
978
|
-
nullPolicy:
|
|
979
|
-
} : delete
|
|
984
|
+
nullPolicy: H.Null
|
|
985
|
+
} : delete s.temporalBinning);
|
|
980
986
|
});
|
|
981
987
|
}
|
|
982
988
|
export {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
989
|
+
is as $,
|
|
990
|
+
Is as A,
|
|
991
|
+
Ss as B,
|
|
992
|
+
fs as C,
|
|
993
|
+
hs as D,
|
|
994
|
+
Fs as E,
|
|
995
|
+
Ns as F,
|
|
996
|
+
ks as G,
|
|
997
|
+
Rs as H,
|
|
998
|
+
Os as I,
|
|
999
|
+
qs as J,
|
|
1000
|
+
Vs as K,
|
|
1001
|
+
Ds as L,
|
|
1002
|
+
Nt as M,
|
|
1003
|
+
ws as N,
|
|
1004
|
+
Ps as O,
|
|
1005
|
+
te as P,
|
|
1006
|
+
Es as Q,
|
|
1007
|
+
Ms as R,
|
|
1008
|
+
$s as S,
|
|
1009
|
+
Ws as T,
|
|
1010
|
+
_s as U,
|
|
1011
|
+
Gs as V,
|
|
1012
|
+
Ys as W,
|
|
1013
|
+
Xs as X,
|
|
1014
|
+
Jt as Y,
|
|
1015
|
+
ht as Z,
|
|
1016
|
+
Ft as _,
|
|
1017
|
+
z as a,
|
|
1018
|
+
es as a0,
|
|
1019
|
+
as as a1,
|
|
1020
|
+
ts as a2,
|
|
1021
|
+
rs as a3,
|
|
1022
|
+
ss as a4,
|
|
1023
|
+
xt as a5,
|
|
1024
|
+
ls as a6,
|
|
1025
|
+
si as a7,
|
|
1026
|
+
li as a8,
|
|
1027
|
+
ri as a9,
|
|
1028
|
+
ii as aa,
|
|
1029
|
+
ni as ab,
|
|
1030
|
+
oi as ac,
|
|
1031
|
+
ys as ad,
|
|
1032
|
+
ds as ae,
|
|
1033
|
+
cs as af,
|
|
1034
|
+
us as ag,
|
|
1035
|
+
ns as ah,
|
|
1036
|
+
os as ai,
|
|
1037
|
+
Tt as aj,
|
|
1038
|
+
ms as ak,
|
|
1039
|
+
ne as b,
|
|
1040
|
+
ai as c,
|
|
1041
|
+
X as d,
|
|
1042
|
+
Vt as e,
|
|
1043
|
+
js as f,
|
|
1034
1044
|
Be as g,
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1045
|
+
Hs as h,
|
|
1046
|
+
Bs as i,
|
|
1047
|
+
Ts as j,
|
|
1048
|
+
bs as k,
|
|
1049
|
+
Cs as l,
|
|
1050
|
+
Ks as m,
|
|
1051
|
+
Us as n,
|
|
1052
|
+
Qs as o,
|
|
1053
|
+
zs as p,
|
|
1054
|
+
Zs as q,
|
|
1055
|
+
Js as r,
|
|
1056
|
+
xs as s,
|
|
1057
|
+
ei as t,
|
|
1058
|
+
ti as u,
|
|
1059
|
+
gs as v,
|
|
1060
|
+
ps as w,
|
|
1061
|
+
vs as x,
|
|
1062
|
+
As as y,
|
|
1063
|
+
Ls as z
|
|
1054
1064
|
};
|