@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.10
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/{BZCVDNC4.js → 255TSQSE.js} +14 -14
- package/dist/cdn/{A5GIBV5W.js → 25YAWDIB.js} +1 -1
- package/dist/cdn/{S6PJHEJ7.js → 2A7JZQX5.js} +1 -1
- package/dist/cdn/{DYC3Q36R.js → 2HTYRBIX.js} +1 -1
- package/dist/cdn/{RG3I5ORH.js → 2PAVNZEM.js} +1 -1
- package/dist/cdn/{7IV6GMF7.js → 2XYTPC2V.js} +1 -1
- package/dist/cdn/{EUOPRFMU.js → 3376CR53.js} +1 -1
- package/dist/cdn/{NS3THLCD.js → 3CFZUVMF.js} +1 -1
- package/dist/cdn/{F5Q73CFW.js → 3S3PN7AK.js} +1 -1
- package/dist/cdn/3W2A4SAP.js +2 -0
- package/dist/cdn/{V2XJSJH4.js → 4ETF22K6.js} +1 -1
- package/dist/cdn/{X6WA2KXK.js → 4J6UFQ2Q.js} +1 -1
- package/dist/cdn/4YJSRB7R.js +2 -0
- package/dist/cdn/{74JAZF7U.js → 5JNEJJU3.js} +1 -1
- package/dist/cdn/{H6NH46AS.js → 5OKNLDIJ.js} +1 -1
- package/dist/cdn/{YVVQVAJZ.js → 5V3ADOWS.js} +1 -1
- package/dist/cdn/{MOMKSNIZ.js → 6MF2R6DJ.js} +1 -1
- package/dist/cdn/{KC6CFXB7.js → 6SRJ2VKV.js} +1 -1
- package/dist/cdn/{GCSGY6GL.js → 7EEYYP6X.js} +1 -1
- package/dist/cdn/{ATIARKAU.js → BER7FMK3.js} +1 -1
- package/dist/cdn/{PKMZ6N6M.js → BJRHNVLR.js} +1 -1
- package/dist/cdn/{CPPT5HUK.js → CBHWMUGA.js} +26 -26
- package/dist/cdn/{I2M6YAUU.js → CDHUW42P.js} +1 -1
- package/dist/cdn/{FAQDMSUC.js → CEE2QRZ5.js} +1 -1
- package/dist/cdn/{TXSWWAOF.js → CGYB5KPV.js} +1 -1
- package/dist/cdn/{WASEMNYV.js → CSAUXIK2.js} +1 -1
- package/dist/cdn/{YKGZVYK2.js → DJ5OHPYW.js} +1 -1
- package/dist/cdn/EDSF5KGV.js +233 -0
- package/dist/cdn/{HUCSTT64.js → EK33HUAH.js} +1 -1
- package/dist/cdn/{5MVNVHYG.js → F7Q3XDZH.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → FTOYQNHN.js} +1 -1
- package/dist/cdn/{EQVQRZHJ.js → GBDEYCR6.js} +1 -1
- package/dist/cdn/{IWVS6SKP.js → GKPMAFU3.js} +1 -1
- package/dist/cdn/GNC62GNV.js +2 -0
- package/dist/cdn/{V76PIVCF.js → GXC7VLYM.js} +1 -1
- package/dist/cdn/{6JGLHOFY.js → H4B3ERFL.js} +1 -1
- package/dist/cdn/{RWEUTQWS.js → HD4FP3ZK.js} +1 -1
- package/dist/cdn/{FT2K3J7O.js → HFJ4EPET.js} +1 -1
- package/dist/cdn/{6PAONFHB.js → I5AALJRN.js} +1 -1
- package/dist/cdn/{FCXI523J.js → ICVAXCHZ.js} +1 -1
- package/dist/cdn/{7BEC5WZB.js → IHTJSWKK.js} +1 -1
- package/dist/cdn/{JILAM6NH.js → IKCVYV5L.js} +1 -1
- package/dist/cdn/{PEZCCXQ7.js → JEH22SPH.js} +1 -1
- package/dist/cdn/{TTDZKISK.js → JMAVBKEZ.js} +1 -1
- package/dist/cdn/{47HHRDX4.js → JQYB4ZDY.js} +1 -1
- package/dist/cdn/{DNMVB3A2.js → KB76VF4V.js} +1 -1
- package/dist/cdn/{MKQAQDRM.js → KHNP4LWB.js} +1 -1
- package/dist/cdn/{B7DM7VT6.js → KKKCWW6G.js} +1 -1
- package/dist/cdn/{XMQCH4QI.js → L6ZALCLC.js} +1 -1
- package/dist/cdn/{KKWXEF5W.js → LIPUN4CH.js} +1 -1
- package/dist/cdn/{XFZX5ULX.js → LO6KKSE4.js} +1 -1
- package/dist/cdn/{Z7EBST4A.js → LOZOENFC.js} +1 -1
- package/dist/cdn/{7SNOZDAD.js → M6JCOZIE.js} +1 -1
- package/dist/cdn/{CUJHGXNK.js → N7NZHIGS.js} +1 -1
- package/dist/cdn/{YZQ54BRI.js → NFANBMTU.js} +1 -1
- package/dist/cdn/{5HQ2CJEQ.js → NKJC4MT7.js} +1 -1
- package/dist/cdn/{ZQCUJ7VE.js → OYCT7CFU.js} +1 -1
- package/dist/cdn/{CXQOEN77.js → PJZVDHIF.js} +1 -1
- package/dist/cdn/{MRTKZZTF.js → PM6FCUUV.js} +1 -1
- package/dist/cdn/{V7MBHG4F.js → PNDFAGEB.js} +1 -1
- package/dist/cdn/{45JPWIBI.js → PRPNJEPZ.js} +1 -1
- package/dist/cdn/{4OZZXXZF.js → PZKRRAXW.js} +1 -1
- package/dist/cdn/{YYK7SPXC.js → QAIY4AMN.js} +1 -1
- package/dist/cdn/{UNUPCA4W.js → QF4UBQYT.js} +1 -1
- package/dist/cdn/{GWQJXXP3.js → QF6LHQTR.js} +1 -1
- package/dist/cdn/QM27URJR.js +2 -0
- package/dist/cdn/{P3RM2ACY.js → RA3CZHC7.js} +1 -1
- package/dist/cdn/{O4M33ZPK.js → RH4AC577.js} +1 -1
- package/dist/cdn/{KV4ZPVWQ.js → SHTFWNG3.js} +1 -1
- package/dist/cdn/SPVZ5BND.js +2 -0
- package/dist/cdn/SXT5DNXJ.js +4 -0
- package/dist/cdn/SYIW6YJN.js +2 -0
- package/dist/cdn/{TORIY3OE.js → SZEYHOGG.js} +1 -1
- package/dist/cdn/{M75ENKIU.js → TH4OHGTQ.js} +1 -1
- package/dist/cdn/{EXTKNE2L.js → U4COKMGA.js} +1 -1
- package/dist/cdn/{6LQYOBAL.js → U6USPTQ5.js} +1 -1
- package/dist/cdn/UHPAFBYO.js +2 -0
- package/dist/cdn/VL2G5M57.js +2 -0
- package/dist/cdn/{G6OHBBUT.js → VMS7DT3M.js} +1 -1
- package/dist/cdn/{RKKWMNWU.js → VSPTNIIU.js} +1 -1
- package/dist/cdn/{UQPFMDJB.js → VW4GW2JT.js} +1 -1
- package/dist/cdn/{3FTJIVFE.js → WBJ6NWHX.js} +1 -1
- package/dist/cdn/{LKY2A3U6.js → WPPMMVD5.js} +1 -1
- package/dist/cdn/{PYKHO4QI.js → X4BYDZDR.js} +1 -1
- package/dist/cdn/XACXJMSF.js +3 -0
- package/dist/cdn/{P74SXC5B.js → XJ2L7VN4.js} +1 -1
- package/dist/cdn/{7YBKGD3V.js → XP5GZU4O.js} +1 -1
- package/dist/cdn/{TZ4GOE2Q.js → XUT56VH6.js} +1 -1
- package/dist/cdn/{FJPGZEGK.js → XWZYTOHY.js} +1 -1
- package/dist/cdn/{GUH6CQE6.js → XXXXO6OB.js} +1 -1
- package/dist/cdn/{RKN64EJQ.js → YDJPGFXU.js} +1 -1
- package/dist/cdn/{P6SC5DD2.js → YSWV4FZE.js} +1 -1
- package/dist/cdn/{45PJ5TQL.js → YXWIKYN4.js} +1 -1
- package/dist/cdn/{URYNG6OA.js → Z4HCNLCD.js} +1 -1
- package/dist/cdn/{AT2NWWBG.js → Z5VVIVR3.js} +1 -1
- package/dist/cdn/{PTFRQF65.js → ZIVPZF6E.js} +1 -1
- 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/axis-lines-symbol.js +4 -4
- package/dist/chunks/bar-chart-model.js +13 -13
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/box-plot-data.js +5 -5
- package/dist/chunks/box-plot-model.js +18 -18
- package/dist/chunks/chart-model.js +170 -138
- package/dist/chunks/chart-ui-utils2.js +13 -13
- package/dist/chunks/class-breaks.js +21 -21
- package/dist/chunks/combo-bar-line-chart-model.js +2 -2
- package/dist/chunks/data.js +21 -21
- package/dist/chunks/gauge-model.js +14 -14
- package/dist/chunks/generate-x-axis-title.js +4 -4
- package/dist/chunks/heat-chart-model.js +19 -19
- package/dist/chunks/histogram-data.js +2 -2
- package/dist/chunks/histogram-model.js +11 -11
- package/dist/chunks/index2.js +1655 -1652
- package/dist/chunks/index3.js +38 -36
- package/dist/chunks/index4.js +10805 -680
- package/dist/chunks/index5.js +87 -10782
- package/dist/chunks/index6.js +63 -100
- package/dist/chunks/interfaces.js +3 -3
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +11 -11
- package/dist/chunks/model-with-x-guides.js +6 -6
- package/dist/chunks/model-with-y-guides.js +2 -2
- package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
- package/dist/chunks/pie-chart-data.js +2 -2
- package/dist/chunks/pie-chart-model.js +2 -2
- package/dist/chunks/radar-chart-model.js +2 -2
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +19 -19
- package/dist/chunks/serial-chart-data.js +367 -370
- package/dist/chunks/serial-chart-model.js +44 -44
- package/dist/chunks/series-length.js +2 -2
- package/dist/chunks/series.js +2 -2
- package/dist/chunks/store.js +5 -5
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/type-guards3.js +4 -4
- package/dist/chunks/utils.js +14 -14
- package/dist/chunks/web-component-utils.js +557 -468
- package/dist/chunks/x-bounds.js +4 -4
- package/dist/components/arcgis-chart/customElement.d.ts +48 -41
- package/dist/components/arcgis-chart/customElement.js +4824 -4905
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-format/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +2 -2
- 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 +70 -62
- package/dist/index.js +476 -471
- package/dist/json-schema/index.d.ts +52 -2
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/{model.js → model/shared/setup-utils.js} +12 -12
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/spec/web-chart.d.ts +6 -0
- package/dist/utils/chart-config/converter/index.js +723 -0
- package/dist/utils/chart-config/utils/index.d.ts +30 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +2 -0
- package/dist/utils/defaults/index.d.ts +1 -2
- package/dist/utils/layer/index.d.ts +3 -3
- package/dist/utils/layer/inline-conversion/index.d.ts +3 -0
- package/dist/utils/layer/query-parser/index.d.ts +3 -3
- package/dist/utils/localization/interfaces.d.ts +4 -0
- package/package.json +8 -6
- package/dist/cdn/6SRISPQN.js +0 -3
- package/dist/cdn/CAJVNPHZ.js +0 -2
- package/dist/cdn/D23GGWFM.js +0 -2
- package/dist/cdn/HJHMEVMB.js +0 -2
- package/dist/cdn/HX4236ZL.js +0 -2
- package/dist/cdn/NS7OCROO.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/OVM5QF7Q.js +0 -2
- package/dist/cdn/OY6UOUYX.js +0 -2
- package/dist/cdn/S3BC57BJ.js +0 -4
- package/dist/chunks/index7.js +0 -66
- /package/dist/cdn/{ABIVSH72.js → 2OHFSVV5.js} +0 -0
- /package/dist/cdn/{TSI3C3OV.js → 2XXW3WF3.js} +0 -0
- /package/dist/cdn/{XWKBJDZT.js → 3JYZJUOM.js} +0 -0
- /package/dist/cdn/{NHDVOYQ2.js → 3TZEMBXR.js} +0 -0
- /package/dist/cdn/{UAZ34KDJ.js → 4OH4NSIW.js} +0 -0
- /package/dist/cdn/{XIJ5VLER.js → 5SIAOUPO.js} +0 -0
- /package/dist/cdn/{75P3QRL4.js → 7QXRWMUN.js} +0 -0
- /package/dist/cdn/{4QQVKRJ5.js → AASL4RKT.js} +0 -0
- /package/dist/cdn/{PH6UOHRS.js → ANN3O54W.js} +0 -0
- /package/dist/cdn/{N6OT5IBC.js → BDGHBTPU.js} +0 -0
- /package/dist/cdn/{ZFM5RGWD.js → FFS73X36.js} +0 -0
- /package/dist/cdn/{5AOYADA3.js → FOYOG3G7.js} +0 -0
- /package/dist/cdn/{53FG76LL.js → FWAXKDYV.js} +0 -0
- /package/dist/cdn/{B4KT2HUE.js → H3EXGCE7.js} +0 -0
- /package/dist/cdn/{FLO3N6JD.js → I6UPUSLQ.js} +0 -0
- /package/dist/cdn/{WVRBLV5L.js → IVLVCLDE.js} +0 -0
- /package/dist/cdn/{NG2IHVZ4.js → IYA7HQMS.js} +0 -0
- /package/dist/cdn/{I5VHQW7B.js → L47EGLUH.js} +0 -0
- /package/dist/cdn/{OYHKUGS6.js → LROW4Y6O.js} +0 -0
- /package/dist/cdn/{DIKQ7BPQ.js → MK5ZYSOD.js} +0 -0
- /package/dist/cdn/{RDTBZUT7.js → N4L5KE23.js} +0 -0
- /package/dist/cdn/{4JQ2RRLY.js → N5ZUO6F3.js} +0 -0
- /package/dist/cdn/{2HGBRW4I.js → OFWEHJDH.js} +0 -0
- /package/dist/cdn/{M4AQLWZU.js → OXYJKZEP.js} +0 -0
- /package/dist/cdn/{O6SNP6QE.js → QR2OOC4D.js} +0 -0
- /package/dist/cdn/{4E7C5QPS.js → RSNZMJ6I.js} +0 -0
- /package/dist/cdn/{CODAXMWM.js → S3ZSZXYG.js} +0 -0
- /package/dist/cdn/{I36OAVW3.js → SERX6V5M.js} +0 -0
- /package/dist/cdn/{AJBEE7WE.js → SSQ3VCZ2.js} +0 -0
- /package/dist/cdn/{3V4HRXIT.js → TFPQDMER.js} +0 -0
- /package/dist/cdn/{2X75KJPF.js → ULWJ57VT.js} +0 -0
- /package/dist/cdn/{LNF44ZGQ.js → UYXCGSXU.js} +0 -0
- /package/dist/cdn/{OA7FHTCA.js → VDKFC44J.js} +0 -0
- /package/dist/cdn/{YIIPYKTL.js → VRZ2SY6M.js} +0 -0
- /package/dist/cdn/{VFM2EV3M.js → WAINRCCJ.js} +0 -0
- /package/dist/cdn/{MHG42BA5.js → WNKDEOFZ.js} +0 -0
- /package/dist/cdn/{DD4QUBOF.js → X2LW7GTR.js} +0 -0
- /package/dist/cdn/{N3VOUI25.js → XDMGH7YU.js} +0 -0
- /package/dist/cdn/{7ILH7ZG2.js → XY4TRZCG.js} +0 -0
- /package/dist/cdn/{66KSEDOR.js → XYKXBWIT.js} +0 -0
- /package/dist/cdn/{O2ERVMSN.js → Y6ZCTPJW.js} +0 -0
- /package/dist/cdn/{NFDXH5B3.js → YKDW7ZW3.js} +0 -0
- /package/dist/cdn/{SGOYJFLO.js → ZBIVDGNH.js} +0 -0
|
@@ -1,698 +1,787 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as
|
|
3
|
-
import {
|
|
4
|
-
import { g as
|
|
5
|
-
import { g as
|
|
6
|
-
import { g as
|
|
7
|
-
import { g as
|
|
8
|
-
import { g as
|
|
9
|
-
import { g as
|
|
10
|
-
import { Y as
|
|
11
|
-
import { j as
|
|
12
|
-
import { q as
|
|
13
|
-
import { g as
|
|
14
|
-
import { V as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { u as
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
import { isEqual as ne, capitalize as S, isNumber as E, zip as ee } from "lodash-es";
|
|
3
|
+
import { d as U } from "./interfaces.js";
|
|
4
|
+
import { g as se, a as H, b as te, c as _ } from "./box-plot-data.js";
|
|
5
|
+
import { g as ue } from "./histogram-data.js";
|
|
6
|
+
import { g as ce, a as fe, b as me } from "./pie-chart-data.js";
|
|
7
|
+
import { g as ae } from "./series-length.js";
|
|
8
|
+
import { g as oe, d as ie, e as de } from "./serial-chart-data.js";
|
|
9
|
+
import { g as z, a as ye } from "./data.js";
|
|
10
|
+
import { Y as K, an as ge, af as pe, aK as R, a6 as be, B as P, bb as xe } from "./index2.js";
|
|
11
|
+
import { j as Y, av as M, g as T, ap as Fe, b as De, a as q } from "./index.js";
|
|
12
|
+
import { q as N, C as y, F as V } from "./index3.js";
|
|
13
|
+
import { g as Se } from "./series-types.js";
|
|
14
|
+
import { V as ve } from "./index6.js";
|
|
15
|
+
import { DateTime as re } from "luxon";
|
|
16
|
+
import { P as Z } from "./common.js";
|
|
17
|
+
import { u as O, d as L } from "./chart-object-literals.js";
|
|
18
|
+
import { R as he } from "./rest-js-object-literals.js";
|
|
19
|
+
function Pe(l) {
|
|
20
|
+
const { hour: e, minute: t = 0, format: o, locale: r = "en-US" } = l, a = o && Object.keys(o).length > 0 ? o : {
|
|
20
21
|
hour: "numeric",
|
|
21
22
|
minute: "2-digit",
|
|
22
23
|
hour12: !1
|
|
23
24
|
};
|
|
24
|
-
let
|
|
25
|
+
let i = e.toString();
|
|
25
26
|
if (Number.isInteger(e) && e >= 0 && e <= 23 && Number.isInteger(t) && t >= 0 && t <= 59) {
|
|
26
|
-
const
|
|
27
|
-
|
|
27
|
+
const n = new Date(2e3, 0, 1, e, t);
|
|
28
|
+
i = new Intl.DateTimeFormat(r, a).format(n), i.includes(":") || i.startsWith("0") && (i = i.slice(1));
|
|
28
29
|
}
|
|
29
|
-
return
|
|
30
|
+
return i;
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
const { weekdayNumber: e, format: t, locale:
|
|
33
|
-
let
|
|
32
|
+
function Be(l) {
|
|
33
|
+
const { weekdayNumber: e, format: t, locale: o = "en-US", firstDayOfWeek: r = 7 } = l, a = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
|
|
34
|
+
let i = e.toString();
|
|
34
35
|
if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(r) && r > 0 && r <= 7) {
|
|
35
|
-
const
|
|
36
|
-
|
|
36
|
+
const n = (e + r - 1) % 7, m = new Date(2e3, 0, 2 + n);
|
|
37
|
+
i = new Intl.DateTimeFormat(o, a).format(m);
|
|
37
38
|
}
|
|
38
|
-
return
|
|
39
|
+
return i;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
const { monthNumber: e, format: t, locale:
|
|
42
|
-
let
|
|
41
|
+
function Ae(l) {
|
|
42
|
+
const { monthNumber: e, format: t, locale: o = "en-US" } = l, r = t && Object.keys(t).length > 0 ? t : { month: "long" };
|
|
43
|
+
let a = e.toString();
|
|
43
44
|
if (Number.isInteger(e) && e > 0 && e <= 12) {
|
|
44
|
-
const
|
|
45
|
-
|
|
45
|
+
const i = new Date(2e3, e - 1);
|
|
46
|
+
a = new Intl.DateTimeFormat(o, r).format(i);
|
|
46
47
|
}
|
|
47
|
-
return
|
|
48
|
+
return a;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
const { value: e, formatLocale: t, unit:
|
|
51
|
-
let
|
|
52
|
-
switch (
|
|
53
|
-
case
|
|
54
|
-
|
|
55
|
-
label:
|
|
56
|
-
value:
|
|
50
|
+
function X(l) {
|
|
51
|
+
const { value: e, formatLocale: t, unit: o, config: r, utilsStrings: a } = l;
|
|
52
|
+
let i = { label: "", value: e.toString() };
|
|
53
|
+
switch (o) {
|
|
54
|
+
case L.DayOfWeek:
|
|
55
|
+
i = {
|
|
56
|
+
label: a.heatChartCalendarDatePartsUnits.dayOfWeek,
|
|
57
|
+
value: Be({
|
|
57
58
|
weekdayNumber: e,
|
|
58
|
-
firstDayOfWeek: "firstDayOfWeek" in r ? r.firstDayOfWeek :
|
|
59
|
+
firstDayOfWeek: "firstDayOfWeek" in r ? r.firstDayOfWeek : Fe,
|
|
59
60
|
locale: t
|
|
60
61
|
})
|
|
61
62
|
};
|
|
62
63
|
break;
|
|
63
|
-
case
|
|
64
|
-
|
|
65
|
-
label:
|
|
66
|
-
value:
|
|
64
|
+
case L.MonthOfYear:
|
|
65
|
+
i = {
|
|
66
|
+
label: a.heatChartCalendarDatePartsUnits.monthOfYear,
|
|
67
|
+
value: Ae({
|
|
67
68
|
monthNumber: e,
|
|
68
69
|
locale: t
|
|
69
70
|
})
|
|
70
71
|
};
|
|
71
72
|
break;
|
|
72
|
-
case
|
|
73
|
-
|
|
74
|
-
label:
|
|
75
|
-
value:
|
|
73
|
+
case L.HourOfDay:
|
|
74
|
+
i = {
|
|
75
|
+
label: a.heatChartCalendarDatePartsUnits.hourOfDay,
|
|
76
|
+
value: Pe({
|
|
76
77
|
hour: e,
|
|
77
78
|
format: { hour: "numeric", hour12: !1 },
|
|
78
79
|
locale: t
|
|
79
80
|
})
|
|
80
81
|
};
|
|
81
82
|
break;
|
|
82
|
-
case
|
|
83
|
-
|
|
84
|
-
label:
|
|
83
|
+
case L.DayOfMonth:
|
|
84
|
+
i = {
|
|
85
|
+
label: a.heatChartCalendarDatePartsUnits.dayOfMonth,
|
|
85
86
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
86
87
|
};
|
|
87
88
|
break;
|
|
88
|
-
case
|
|
89
|
-
|
|
90
|
-
label:
|
|
89
|
+
case L.DayOfYear:
|
|
90
|
+
i = {
|
|
91
|
+
label: a.heatChartCalendarDatePartsUnits.dayOfYear,
|
|
91
92
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
92
93
|
};
|
|
93
94
|
break;
|
|
94
|
-
case
|
|
95
|
-
|
|
96
|
-
label:
|
|
95
|
+
case L.MinuteOfDay:
|
|
96
|
+
i = {
|
|
97
|
+
label: a.heatChartCalendarDatePartsUnits.minuteOfDay,
|
|
97
98
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
98
99
|
};
|
|
99
100
|
break;
|
|
100
|
-
case
|
|
101
|
-
|
|
102
|
-
label:
|
|
101
|
+
case L.WeekOfYear:
|
|
102
|
+
i = {
|
|
103
|
+
label: a.heatChartCalendarDatePartsUnits.weekOfYear,
|
|
103
104
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
104
105
|
};
|
|
105
106
|
break;
|
|
106
|
-
case
|
|
107
|
-
|
|
108
|
-
label:
|
|
107
|
+
case L.QuarterOfYear:
|
|
108
|
+
i = {
|
|
109
|
+
label: a.heatChartCalendarDatePartsUnits.quarterOfYear,
|
|
109
110
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
110
111
|
};
|
|
111
112
|
break;
|
|
112
113
|
}
|
|
113
|
-
return
|
|
114
|
+
return i;
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
-
return !
|
|
116
|
+
function Le(l, e) {
|
|
117
|
+
return !ne(l, e);
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
-
return
|
|
119
|
+
function it(l, e) {
|
|
120
|
+
return Le(l, e) || l !== e;
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
-
return (new Intl.NumberFormat(
|
|
122
|
+
function Ce(l) {
|
|
123
|
+
return (new Intl.NumberFormat(l, {
|
|
123
124
|
minimumFractionDigits: 1,
|
|
124
125
|
maximumFractionDigits: 1
|
|
125
|
-
}).formatToParts(1.1).find((
|
|
126
|
+
}).formatToParts(1.1).find((o) => o.type === "decimal")?.value ?? ".") === "." ? "," : ";";
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
-
return new Intl.NumberFormat(
|
|
128
|
+
function Ve(l) {
|
|
129
|
+
return new Intl.NumberFormat(l, {
|
|
129
130
|
minimumFractionDigits: 1,
|
|
130
131
|
maximumFractionDigits: 1
|
|
131
132
|
}).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
|
|
132
133
|
}
|
|
133
|
-
const
|
|
134
|
-
const { value: e, quoteAll: t = !1, locale:
|
|
135
|
-
let
|
|
134
|
+
const G = (l) => {
|
|
135
|
+
const { value: e, quoteAll: t = !1, locale: o, roundDecimals: r } = l;
|
|
136
|
+
let a = e == null ? "" : String(e);
|
|
136
137
|
if (e === null)
|
|
137
|
-
|
|
138
|
+
a = "null";
|
|
138
139
|
else if (e === void 0)
|
|
139
|
-
|
|
140
|
-
else if (typeof e == "number" && Number.isFinite(e) &&
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
maximumFractionDigits:
|
|
140
|
+
a = "";
|
|
141
|
+
else if (typeof e == "number" && Number.isFinite(e) && o !== void 0) {
|
|
142
|
+
const n = Ve(o), m = r ?? a.split(n)[1]?.length ?? 2;
|
|
143
|
+
a = new Intl.NumberFormat(o, {
|
|
144
|
+
maximumFractionDigits: m
|
|
144
145
|
}).format(e).replace(/\u202F/gu, " ");
|
|
145
146
|
}
|
|
146
|
-
return (t || /[",\r\n]/u.test(
|
|
147
|
+
return (t || /[",\r\n]/u.test(a)) && (a = `"${a.replace(/"/gu, '""')}"`), a;
|
|
147
148
|
};
|
|
148
|
-
function
|
|
149
|
-
const { columns: t, delimiter:
|
|
150
|
-
let
|
|
151
|
-
if (!
|
|
152
|
-
const
|
|
153
|
-
if (
|
|
149
|
+
function rt(l, e = {}) {
|
|
150
|
+
const { columns: t, delimiter: o, includeHeader: r = !0, quoteAll: a = !1, locale: i, roundDecimals: n } = e, m = l.length === 0;
|
|
151
|
+
let u = "";
|
|
152
|
+
if (!m) {
|
|
153
|
+
const g = t ?? Object.keys(l[0]), F = [], b = o ?? Ce(i ?? "en");
|
|
154
|
+
if (i !== void 0 && b !== "," && (u += `sep=${b}\r
|
|
154
155
|
`), r) {
|
|
155
|
-
const
|
|
156
|
-
|
|
156
|
+
const x = g.map((d) => G({ value: d, quoteAll: a, locale: i, roundDecimals: n }));
|
|
157
|
+
F.push(x.join(b));
|
|
157
158
|
}
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
}),
|
|
159
|
+
l.forEach((x) => {
|
|
160
|
+
const d = g.map((s) => G({ value: x[s], quoteAll: a, locale: i, roundDecimals: n }));
|
|
161
|
+
F.push(d.join(b));
|
|
162
|
+
}), u += F.join(`\r
|
|
162
163
|
`);
|
|
163
164
|
}
|
|
164
|
-
return
|
|
165
|
+
return u;
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
-
const { rawData: e, config: t, layer:
|
|
168
|
-
let
|
|
167
|
+
function lt(l) {
|
|
168
|
+
const { rawData: e, config: t, layer: o, fieldList: r, formatters: a, formatLocale: i, utilsStrings: n } = l;
|
|
169
|
+
let m = [];
|
|
169
170
|
if (t !== void 0 && Array.isArray(e) && e.length > 0) {
|
|
170
|
-
const
|
|
171
|
-
|
|
171
|
+
const u = Se(t?.series);
|
|
172
|
+
u === O.HistogramSeries ? m = ke(
|
|
172
173
|
t,
|
|
173
174
|
e,
|
|
174
|
-
|
|
175
|
-
) :
|
|
175
|
+
a
|
|
176
|
+
) : u === O.HeatSeries ? m = Me({
|
|
176
177
|
config: t,
|
|
177
178
|
rows: e,
|
|
178
|
-
layer:
|
|
179
|
+
layer: o,
|
|
179
180
|
fieldList: r,
|
|
180
|
-
formatLocale:
|
|
181
|
-
utilsStrings:
|
|
182
|
-
}) :
|
|
181
|
+
formatLocale: i,
|
|
182
|
+
utilsStrings: n
|
|
183
|
+
}) : u === O.BarSeries || u === O.LineSeries || u === O.ComboLineAndBarSeries ? m = Te({
|
|
183
184
|
config: t,
|
|
184
185
|
rows: e,
|
|
185
|
-
layer:
|
|
186
|
+
layer: o,
|
|
186
187
|
fieldList: r,
|
|
187
|
-
formatters:
|
|
188
|
-
}) :
|
|
188
|
+
formatters: a
|
|
189
|
+
}) : u === O.PieSeries ? m = Ne({
|
|
189
190
|
config: t,
|
|
190
191
|
rows: e,
|
|
191
|
-
layer:
|
|
192
|
+
layer: o,
|
|
192
193
|
fieldList: r,
|
|
193
|
-
formatters:
|
|
194
|
-
}) :
|
|
194
|
+
formatters: a
|
|
195
|
+
}) : u === O.BoxPlotSeries && (m = Re({
|
|
195
196
|
config: t,
|
|
196
197
|
rows: e,
|
|
198
|
+
layer: o,
|
|
197
199
|
fieldList: r,
|
|
198
|
-
formatters:
|
|
200
|
+
formatters: a
|
|
199
201
|
}));
|
|
200
202
|
}
|
|
201
|
-
return
|
|
203
|
+
return m;
|
|
202
204
|
}
|
|
203
|
-
function
|
|
204
|
-
const { value: e, originalValue: t, formatter:
|
|
205
|
+
function h(l) {
|
|
206
|
+
const { value: e, originalValue: t, formatter: o } = l;
|
|
205
207
|
let r = e;
|
|
206
|
-
return
|
|
208
|
+
return o !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (r = o(e, t)), r;
|
|
209
|
+
}
|
|
210
|
+
function A(l) {
|
|
211
|
+
const { field: e, value: t, layer: o, fieldList: r, formatter: a } = l;
|
|
212
|
+
let i;
|
|
213
|
+
if (t == null || typeof t == "boolean" || Array.isArray(t))
|
|
214
|
+
i = t;
|
|
215
|
+
else if (typeof t == "string" || typeof t == "number" || t instanceof Date) {
|
|
216
|
+
const n = o !== void 0 && (typeof t == "string" || typeof t == "number") ? be({
|
|
217
|
+
queryObject: o,
|
|
218
|
+
fieldName: e,
|
|
219
|
+
fieldValue: t
|
|
220
|
+
}) : void 0;
|
|
221
|
+
i = le({
|
|
222
|
+
field: e,
|
|
223
|
+
value: n ?? t,
|
|
224
|
+
fieldList: r
|
|
225
|
+
});
|
|
226
|
+
} else
|
|
227
|
+
i = t;
|
|
228
|
+
return h({
|
|
229
|
+
value: i,
|
|
230
|
+
originalValue: t,
|
|
231
|
+
formatter: a
|
|
232
|
+
});
|
|
207
233
|
}
|
|
208
|
-
function C(
|
|
209
|
-
const { field: e, row: t, fieldList:
|
|
210
|
-
|
|
211
|
-
return a == null || typeof a == "boolean" || Array.isArray(a) ? u = a : typeof a == "string" || typeof a == "number" || a instanceof Date ? u = ie({
|
|
234
|
+
function C(l) {
|
|
235
|
+
const { field: e, row: t, layer: o, fieldList: r, formatter: a } = l, i = Object.keys(t).find((m) => m.toLocaleLowerCase() === e.toLocaleLowerCase()), n = t[i ?? e];
|
|
236
|
+
return A({
|
|
212
237
|
field: e,
|
|
213
|
-
value:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
originalValue: a,
|
|
218
|
-
formatter: r
|
|
238
|
+
value: n,
|
|
239
|
+
layer: o,
|
|
240
|
+
fieldList: r,
|
|
241
|
+
formatter: a
|
|
219
242
|
});
|
|
220
243
|
}
|
|
221
|
-
function
|
|
222
|
-
const { config: e, seriesIndex: t, formatters:
|
|
223
|
-
return e.series?.[t]?.assignToSecondValueAxis === !0 ?
|
|
244
|
+
function W(l) {
|
|
245
|
+
const { config: e, seriesIndex: t, formatters: o } = l;
|
|
246
|
+
return e.series?.[t]?.assignToSecondValueAxis === !0 ? o?.secondaryYAxisLabelFormatter : o?.yAxisLabelFormatter;
|
|
224
247
|
}
|
|
225
|
-
function
|
|
226
|
-
const { config: e, splitValueIndex: t, formatters:
|
|
227
|
-
return e?.series?.[t]?.assignToSecondValueAxis === !0 ?
|
|
248
|
+
function Oe(l) {
|
|
249
|
+
const { config: e, splitValueIndex: t, formatters: o } = l;
|
|
250
|
+
return e?.series?.[t]?.assignToSecondValueAxis === !0 ? o?.secondaryYAxisLabelFormatter : o?.yAxisLabelFormatter;
|
|
228
251
|
}
|
|
229
|
-
function
|
|
230
|
-
const { config: e, rows: t, layer:
|
|
252
|
+
function Me(l) {
|
|
253
|
+
const { config: e, rows: t, layer: o, fieldList: r, formatLocale: a, utilsStrings: i } = l, [n] = e.series, m = n.x, u = oe(e), g = ie(e), F = z({
|
|
231
254
|
config: e,
|
|
232
|
-
xAxisField:
|
|
233
|
-
numericFields:
|
|
234
|
-
aggregationType:
|
|
235
|
-
layer:
|
|
255
|
+
xAxisField: m,
|
|
256
|
+
numericFields: g,
|
|
257
|
+
aggregationType: u,
|
|
258
|
+
layer: o,
|
|
236
259
|
fieldList: r
|
|
237
260
|
});
|
|
238
|
-
return t.map((
|
|
239
|
-
const
|
|
240
|
-
let
|
|
241
|
-
if (
|
|
242
|
-
const { label: D, value:
|
|
243
|
-
value: Number(
|
|
261
|
+
return t.map((b) => {
|
|
262
|
+
const x = b[Y.xField], d = b[Y.yField], s = b[Y.valueField], c = typeof s == "number" && Number.isFinite(s) ? s.toFixed(2) : s;
|
|
263
|
+
let f = { label: n.x, value: x }, p = { label: n.y, value: d };
|
|
264
|
+
if (n.xTemporalBinning !== void 0) {
|
|
265
|
+
const { label: D, value: v } = X({
|
|
266
|
+
value: Number(x),
|
|
244
267
|
config: e,
|
|
245
|
-
formatLocale:
|
|
246
|
-
unit:
|
|
247
|
-
utilsStrings:
|
|
268
|
+
formatLocale: a,
|
|
269
|
+
unit: n.xTemporalBinning.unit,
|
|
270
|
+
utilsStrings: i
|
|
248
271
|
});
|
|
249
|
-
!
|
|
272
|
+
!N(D) && !N(v) && (f = { label: D, value: v });
|
|
250
273
|
}
|
|
251
|
-
if (
|
|
252
|
-
const { label: D, value:
|
|
253
|
-
value: Number(
|
|
274
|
+
if (n.yTemporalBinning !== void 0) {
|
|
275
|
+
const { label: D, value: v } = X({
|
|
276
|
+
value: Number(d),
|
|
254
277
|
config: e,
|
|
255
|
-
formatLocale:
|
|
256
|
-
unit:
|
|
257
|
-
utilsStrings:
|
|
278
|
+
formatLocale: a,
|
|
279
|
+
unit: n.yTemporalBinning.unit,
|
|
280
|
+
utilsStrings: i
|
|
258
281
|
});
|
|
259
|
-
!
|
|
282
|
+
!N(D) && !N(v) && (p = { label: D, value: v });
|
|
260
283
|
}
|
|
261
284
|
return {
|
|
262
|
-
[
|
|
263
|
-
[
|
|
264
|
-
[
|
|
285
|
+
[f.label]: f.value,
|
|
286
|
+
[p.label]: p.value,
|
|
287
|
+
[F.description]: c
|
|
265
288
|
};
|
|
266
289
|
});
|
|
267
290
|
}
|
|
268
|
-
function
|
|
269
|
-
const
|
|
270
|
-
return e.map((
|
|
271
|
-
const { minValue:
|
|
272
|
-
if (
|
|
273
|
-
value:
|
|
274
|
-
originalValue:
|
|
291
|
+
function ke(l, e, t) {
|
|
292
|
+
const o = ue(l), r = `${S(U.Min)} of ${o}`, a = `${S(U.Max)} of ${o}`, i = `${S(U.Count)} of ${o}`;
|
|
293
|
+
return e.map((n) => {
|
|
294
|
+
const { minValue: m, maxValue: u, count: g } = n, F = E(m), b = E(u), x = E(g), d = {};
|
|
295
|
+
if (F && (d[r] = h({
|
|
296
|
+
value: m,
|
|
297
|
+
originalValue: m,
|
|
275
298
|
formatter: t?.xAxisLabelFormatter
|
|
276
|
-
})),
|
|
277
|
-
value:
|
|
278
|
-
originalValue:
|
|
299
|
+
})), b && (d[a] = h({
|
|
300
|
+
value: u,
|
|
301
|
+
originalValue: u,
|
|
279
302
|
formatter: t?.xAxisLabelFormatter
|
|
280
|
-
})),
|
|
281
|
-
const
|
|
282
|
-
value:
|
|
283
|
-
originalValue:
|
|
303
|
+
})), F && b) {
|
|
304
|
+
const s = h({
|
|
305
|
+
value: m,
|
|
306
|
+
originalValue: m,
|
|
284
307
|
formatter: t?.xAxisLabelFormatter
|
|
285
|
-
}),
|
|
286
|
-
value:
|
|
287
|
-
originalValue:
|
|
308
|
+
}), c = h({
|
|
309
|
+
value: u,
|
|
310
|
+
originalValue: u,
|
|
288
311
|
formatter: t?.xAxisLabelFormatter
|
|
289
312
|
});
|
|
290
|
-
|
|
313
|
+
d.Label = `${String(s ?? "")} - ${String(c ?? "")}`;
|
|
291
314
|
}
|
|
292
|
-
return
|
|
293
|
-
value:
|
|
294
|
-
originalValue:
|
|
315
|
+
return x && (d[i] = h({
|
|
316
|
+
value: g,
|
|
317
|
+
originalValue: g,
|
|
295
318
|
formatter: t?.yAxisLabelFormatter
|
|
296
|
-
})),
|
|
319
|
+
})), d;
|
|
297
320
|
});
|
|
298
321
|
}
|
|
299
|
-
function
|
|
300
|
-
const
|
|
322
|
+
function $e(l, e, t) {
|
|
323
|
+
const o = Object.keys(l);
|
|
301
324
|
let r = [];
|
|
302
|
-
return t ? r = t.map((
|
|
325
|
+
return t ? r = t.map((a) => o.find((i) => i.toLowerCase().includes(a.toLowerCase())) || "") : r = o.filter((i) => i.toLowerCase().includes(e.toLowerCase())), r.filter((a) => a.trim() !== "");
|
|
303
326
|
}
|
|
304
|
-
function
|
|
305
|
-
const { config: e, rows: t, layer:
|
|
306
|
-
let
|
|
307
|
-
switch (
|
|
308
|
-
case
|
|
309
|
-
|
|
310
|
-
const
|
|
311
|
-
field:
|
|
312
|
-
row:
|
|
327
|
+
function Te(l) {
|
|
328
|
+
const { config: e, rows: t, layer: o, fieldList: r, formatters: a } = l, i = ye(e), n = oe(e), m = S(n), u = ie(e), g = K(e.series), F = ae(e), b = de(e), { idField: x, isTraditionalTypeOID: d } = ge(pe(o)), s = d && u.length === 1 && u[0] === x;
|
|
329
|
+
let c;
|
|
330
|
+
switch (g) {
|
|
331
|
+
case y.BarAndLineNoAggregation:
|
|
332
|
+
c = t.map((f) => {
|
|
333
|
+
const p = C({
|
|
334
|
+
field: i,
|
|
335
|
+
row: f,
|
|
336
|
+
layer: o,
|
|
313
337
|
fieldList: r,
|
|
314
|
-
formatter:
|
|
315
|
-
}), D = { [
|
|
338
|
+
formatter: a?.xAxisLabelFormatter
|
|
339
|
+
}), D = { [i]: p };
|
|
316
340
|
return Object.assign(
|
|
317
341
|
D,
|
|
318
|
-
...
|
|
319
|
-
[
|
|
320
|
-
value:
|
|
321
|
-
originalValue:
|
|
322
|
-
formatter:
|
|
342
|
+
...u.map((v, B) => ({
|
|
343
|
+
[v]: h({
|
|
344
|
+
value: f[v],
|
|
345
|
+
originalValue: f[v],
|
|
346
|
+
formatter: W({ config: e, seriesIndex: B, formatters: a })
|
|
323
347
|
})
|
|
324
348
|
}))
|
|
325
349
|
), D;
|
|
326
350
|
});
|
|
327
351
|
break;
|
|
328
|
-
case
|
|
329
|
-
|
|
330
|
-
const D =
|
|
331
|
-
return
|
|
332
|
-
value:
|
|
333
|
-
originalValue:
|
|
334
|
-
formatter:
|
|
335
|
-
}),
|
|
336
|
-
value:
|
|
337
|
-
originalValue:
|
|
338
|
-
formatter:
|
|
339
|
-
})),
|
|
352
|
+
case y.BarAndLineFromFields:
|
|
353
|
+
c = ee(u, t).map(([f, p]) => {
|
|
354
|
+
const D = R(e.series)[0], v = {};
|
|
355
|
+
return p !== void 0 && f !== void 0 && (v.Field = h({
|
|
356
|
+
value: p[i],
|
|
357
|
+
originalValue: p[i],
|
|
358
|
+
formatter: a?.xAxisLabelFormatter
|
|
359
|
+
}), v.Value = h({
|
|
360
|
+
value: p[D],
|
|
361
|
+
originalValue: p[D],
|
|
362
|
+
formatter: W({ config: e, seriesIndex: 0, formatters: a })
|
|
363
|
+
})), v;
|
|
340
364
|
});
|
|
341
365
|
break;
|
|
342
|
-
case
|
|
343
|
-
case
|
|
344
|
-
|
|
345
|
-
const
|
|
346
|
-
field:
|
|
347
|
-
row:
|
|
366
|
+
case y.BarAndLineMonoField:
|
|
367
|
+
case y.BarAndLineMultiFields:
|
|
368
|
+
c = t.map((f) => {
|
|
369
|
+
const p = C({
|
|
370
|
+
field: i,
|
|
371
|
+
row: f,
|
|
372
|
+
layer: o,
|
|
348
373
|
fieldList: r,
|
|
349
|
-
formatter:
|
|
350
|
-
}), D = { [
|
|
351
|
-
return
|
|
352
|
-
const
|
|
374
|
+
formatter: a?.xAxisLabelFormatter
|
|
375
|
+
}), D = { [i]: p };
|
|
376
|
+
return u.forEach((v, B) => {
|
|
377
|
+
const k = z({
|
|
353
378
|
config: e,
|
|
354
|
-
xAxisField:
|
|
355
|
-
numericFields:
|
|
356
|
-
aggregationType:
|
|
357
|
-
layer:
|
|
358
|
-
numericFieldIndex:
|
|
379
|
+
xAxisField: i,
|
|
380
|
+
numericFields: u,
|
|
381
|
+
aggregationType: n,
|
|
382
|
+
layer: o,
|
|
383
|
+
numericFieldIndex: B,
|
|
359
384
|
fieldList: r
|
|
360
|
-
}),
|
|
361
|
-
let
|
|
362
|
-
|
|
363
|
-
value:
|
|
364
|
-
originalValue:
|
|
365
|
-
formatter:
|
|
385
|
+
}), w = R(e.series)[B];
|
|
386
|
+
let Q = w, j = w;
|
|
387
|
+
w.toLowerCase() === k.name.toLowerCase() && (Q = k.description, j = k.name), D[Q] = h({
|
|
388
|
+
value: f[j],
|
|
389
|
+
originalValue: f[j],
|
|
390
|
+
formatter: W({ config: e, seriesIndex: B, formatters: a })
|
|
366
391
|
});
|
|
367
392
|
}), D;
|
|
368
393
|
});
|
|
369
394
|
break;
|
|
370
|
-
case
|
|
371
|
-
|
|
372
|
-
const
|
|
373
|
-
field:
|
|
374
|
-
row:
|
|
395
|
+
case y.BarAndLineSplitBy:
|
|
396
|
+
c = t.flatMap((f) => {
|
|
397
|
+
const p = R(e.series), D = C({
|
|
398
|
+
field: i,
|
|
399
|
+
row: f,
|
|
400
|
+
layer: o,
|
|
375
401
|
fieldList: r,
|
|
376
|
-
formatter:
|
|
402
|
+
formatter: a?.xAxisLabelFormatter
|
|
403
|
+
});
|
|
404
|
+
return F.map((v, B) => {
|
|
405
|
+
const k = A({
|
|
406
|
+
field: b,
|
|
407
|
+
value: v,
|
|
408
|
+
layer: o,
|
|
409
|
+
fieldList: r
|
|
410
|
+
});
|
|
411
|
+
return {
|
|
412
|
+
[i]: D,
|
|
413
|
+
[b]: k,
|
|
414
|
+
[s ? m : `${m} of ${u[0]}`]: h({
|
|
415
|
+
value: f[p[B]],
|
|
416
|
+
originalValue: f[p[B]],
|
|
417
|
+
formatter: Oe({ config: e, splitValueIndex: B, formatters: a })
|
|
418
|
+
})
|
|
419
|
+
};
|
|
377
420
|
});
|
|
378
|
-
return p.map((h, A) => ({
|
|
379
|
-
[a]: D,
|
|
380
|
-
[x]: h,
|
|
381
|
-
[f ? c : `${c} of ${l[0]}`]: P({
|
|
382
|
-
value: g[b[A]],
|
|
383
|
-
originalValue: g[b[A]],
|
|
384
|
-
formatter: Ce({ config: e, splitValueIndex: A, formatters: o })
|
|
385
|
-
})
|
|
386
|
-
}));
|
|
387
421
|
});
|
|
388
422
|
break;
|
|
389
|
-
case
|
|
390
|
-
|
|
391
|
-
const
|
|
392
|
-
field:
|
|
393
|
-
row:
|
|
423
|
+
case y.BarAndLineSplitByNoAggregation:
|
|
424
|
+
c = t.map((f) => {
|
|
425
|
+
const p = C({
|
|
426
|
+
field: i,
|
|
427
|
+
row: f,
|
|
428
|
+
layer: o,
|
|
394
429
|
fieldList: r,
|
|
395
|
-
formatter:
|
|
396
|
-
}), D =
|
|
430
|
+
formatter: a?.xAxisLabelFormatter
|
|
431
|
+
}), D = $e(f, u[0], F), v = A({
|
|
432
|
+
field: b,
|
|
433
|
+
value: f[b],
|
|
434
|
+
layer: o,
|
|
435
|
+
fieldList: r
|
|
436
|
+
});
|
|
397
437
|
return {
|
|
398
|
-
[
|
|
399
|
-
[
|
|
400
|
-
[
|
|
401
|
-
value:
|
|
402
|
-
originalValue:
|
|
403
|
-
formatter:
|
|
438
|
+
[i]: p,
|
|
439
|
+
[b]: v,
|
|
440
|
+
[u[0]]: h({
|
|
441
|
+
value: f[D[0]],
|
|
442
|
+
originalValue: f[D[0]],
|
|
443
|
+
formatter: a?.yAxisLabelFormatter
|
|
404
444
|
})
|
|
405
445
|
};
|
|
406
446
|
});
|
|
407
447
|
break;
|
|
408
448
|
default:
|
|
409
|
-
|
|
449
|
+
c = t;
|
|
410
450
|
}
|
|
411
|
-
return
|
|
451
|
+
return c;
|
|
412
452
|
}
|
|
413
|
-
function
|
|
414
|
-
if (
|
|
453
|
+
function we(l) {
|
|
454
|
+
if (l.length === 0)
|
|
415
455
|
return [];
|
|
416
|
-
const e =
|
|
417
|
-
for (const [r,
|
|
418
|
-
typeof
|
|
456
|
+
const e = l.reduce((t, o) => {
|
|
457
|
+
for (const [r, a] of Object.entries(o))
|
|
458
|
+
typeof a == "number" && Number.isFinite(a) && (t[r] = (t[r] ?? 0) + a);
|
|
419
459
|
return t;
|
|
420
460
|
}, {});
|
|
421
|
-
return
|
|
422
|
-
const
|
|
423
|
-
for (const [r,
|
|
424
|
-
if (typeof
|
|
425
|
-
const
|
|
426
|
-
|
|
461
|
+
return l.map((t) => {
|
|
462
|
+
const o = { ...t };
|
|
463
|
+
for (const [r, a] of Object.entries(t))
|
|
464
|
+
if (typeof a == "number" && e[r] > 0) {
|
|
465
|
+
const i = a / e[r];
|
|
466
|
+
o[`${r}${M}`] = i.toPrecision(2);
|
|
427
467
|
}
|
|
428
|
-
return
|
|
468
|
+
return o;
|
|
429
469
|
});
|
|
430
470
|
}
|
|
431
|
-
function
|
|
432
|
-
const { config: e, rows: t, layer:
|
|
433
|
-
let
|
|
434
|
-
const
|
|
471
|
+
function Ne(l) {
|
|
472
|
+
const { config: e, rows: t, layer: o, fieldList: r, formatters: a } = l, i = ce(e), n = K(e.series);
|
|
473
|
+
let m = we(t);
|
|
474
|
+
const u = fe(e), g = n !== y.PieFromFields ? Z.Category : Z.Fields, F = me(e, g), b = z({
|
|
435
475
|
config: e,
|
|
436
|
-
xAxisField:
|
|
437
|
-
numericFields:
|
|
438
|
-
aggregationType:
|
|
439
|
-
mode:
|
|
440
|
-
layer:
|
|
476
|
+
xAxisField: i,
|
|
477
|
+
numericFields: u,
|
|
478
|
+
aggregationType: F,
|
|
479
|
+
mode: g,
|
|
480
|
+
layer: o,
|
|
441
481
|
fieldList: r
|
|
442
|
-
}),
|
|
443
|
-
return
|
|
444
|
-
const
|
|
445
|
-
field:
|
|
446
|
-
row:
|
|
482
|
+
}), x = R(e.series)[0];
|
|
483
|
+
return n === y.PieFromCategory || n === y.PieNoAggregation ? m = m.map((d) => {
|
|
484
|
+
const s = C({
|
|
485
|
+
field: i,
|
|
486
|
+
row: d,
|
|
487
|
+
layer: o,
|
|
447
488
|
fieldList: r,
|
|
448
|
-
formatter:
|
|
449
|
-
}),
|
|
450
|
-
let
|
|
451
|
-
return
|
|
452
|
-
value:
|
|
453
|
-
originalValue:
|
|
454
|
-
formatter:
|
|
455
|
-
}),
|
|
456
|
-
value:
|
|
457
|
-
originalValue:
|
|
458
|
-
formatter:
|
|
459
|
-
}),
|
|
460
|
-
}) :
|
|
461
|
-
const
|
|
462
|
-
return
|
|
463
|
-
value:
|
|
464
|
-
originalValue:
|
|
465
|
-
formatter:
|
|
466
|
-
}),
|
|
467
|
-
value:
|
|
468
|
-
originalValue:
|
|
469
|
-
formatter:
|
|
470
|
-
}),
|
|
471
|
-
value:
|
|
472
|
-
originalValue:
|
|
473
|
-
formatter:
|
|
474
|
-
})),
|
|
475
|
-
})),
|
|
489
|
+
formatter: a?.xAxisLabelFormatter
|
|
490
|
+
}), c = { [i]: s };
|
|
491
|
+
let f = x, p = x;
|
|
492
|
+
return n === y.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (f = b.description, p = b.name), c[f] = h({
|
|
493
|
+
value: d[p],
|
|
494
|
+
originalValue: d[p],
|
|
495
|
+
formatter: a?.yAxisLabelFormatter
|
|
496
|
+
}), c[S(M.trim())] = h({
|
|
497
|
+
value: d[`${p}${M}`],
|
|
498
|
+
originalValue: d[`${p}${M}`],
|
|
499
|
+
formatter: a?.yAxisLabelFormatter
|
|
500
|
+
}), c;
|
|
501
|
+
}) : n === y.PieFromFields && (m = ee(u, m).map(([d, s]) => {
|
|
502
|
+
const c = {};
|
|
503
|
+
return s !== void 0 && d !== void 0 && (c.Field = h({
|
|
504
|
+
value: s[i],
|
|
505
|
+
originalValue: s[i],
|
|
506
|
+
formatter: a?.xAxisLabelFormatter
|
|
507
|
+
}), c.Value = h({
|
|
508
|
+
value: s[x],
|
|
509
|
+
originalValue: s[x],
|
|
510
|
+
formatter: a?.yAxisLabelFormatter
|
|
511
|
+
}), c[S(M.trim())] = h({
|
|
512
|
+
value: s[`${x}${M}`],
|
|
513
|
+
originalValue: s[`${x}${M}`],
|
|
514
|
+
formatter: a?.yAxisLabelFormatter
|
|
515
|
+
})), c;
|
|
516
|
+
})), m;
|
|
476
517
|
}
|
|
477
|
-
function
|
|
478
|
-
const { rawData: e, keyBase: t = "", outRow:
|
|
479
|
-
for (const [r,
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
const
|
|
485
|
-
|
|
518
|
+
function I(l) {
|
|
519
|
+
const { rawData: e, keyBase: t = "", outRow: o } = l;
|
|
520
|
+
for (const [r, a] of Object.entries(P)) {
|
|
521
|
+
const i = e[t + a];
|
|
522
|
+
i !== void 0 && (o[r] = i);
|
|
523
|
+
const n = e[t + a + De];
|
|
524
|
+
n !== void 0 && (o[`${r} Outlier`] = n);
|
|
525
|
+
const m = e[t + a + q];
|
|
526
|
+
m !== void 0 && (o[`${r} Z-Score`] = m);
|
|
486
527
|
}
|
|
487
528
|
}
|
|
488
|
-
function
|
|
489
|
-
const { rawData: e, outRow: t, config:
|
|
490
|
-
let
|
|
491
|
-
const
|
|
529
|
+
function $(l) {
|
|
530
|
+
const { rawData: e, outRow: t, config: o, boxPlotSubType: r, layer: a, fieldList: i } = l, n = H(o), m = te(o), u = _(o);
|
|
531
|
+
let g = P.Outlier;
|
|
532
|
+
const F = T;
|
|
492
533
|
switch (r) {
|
|
493
|
-
case
|
|
494
|
-
const
|
|
495
|
-
field:
|
|
496
|
-
value: e[
|
|
497
|
-
fieldList:
|
|
534
|
+
case y.BoxPlotMonoFieldAndCategory: {
|
|
535
|
+
const d = le({
|
|
536
|
+
field: n,
|
|
537
|
+
value: e[n],
|
|
538
|
+
fieldList: i
|
|
498
539
|
});
|
|
499
|
-
t[
|
|
540
|
+
t[n] = d, t[S(P.Outlier)] = e[g];
|
|
500
541
|
break;
|
|
501
542
|
}
|
|
502
|
-
case
|
|
503
|
-
t[
|
|
504
|
-
(s) => Object.keys(e).some((
|
|
505
|
-
) ?? ""}_${
|
|
543
|
+
case y.BoxPlotMultiFieldsAndCategory: {
|
|
544
|
+
t[S(n)] = e[n], g = `${m.find(
|
|
545
|
+
(s) => Object.keys(e).some((c) => c.toLowerCase().includes(s.toLowerCase()))
|
|
546
|
+
) ?? ""}_${g}`, t[S(P.Outlier)] = e[g];
|
|
506
547
|
break;
|
|
507
548
|
}
|
|
508
|
-
case
|
|
509
|
-
case
|
|
510
|
-
const
|
|
511
|
-
|
|
549
|
+
case y.BoxPlotMonoFieldAndSplitBy:
|
|
550
|
+
case y.BoxPlotMultiFieldsAndSplitBy: {
|
|
551
|
+
const d = String(e[u]), s = A({
|
|
552
|
+
field: u,
|
|
553
|
+
value: d,
|
|
554
|
+
layer: a,
|
|
555
|
+
fieldList: i
|
|
556
|
+
});
|
|
557
|
+
g = `${d}_${g}`, t.Field = e[F], t[S(u)] = s, t[S(P.Outlier)] = e[g];
|
|
512
558
|
break;
|
|
513
559
|
}
|
|
514
|
-
case
|
|
515
|
-
const
|
|
516
|
-
|
|
560
|
+
case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
561
|
+
const d = String(e[u]), s = A({
|
|
562
|
+
field: u,
|
|
563
|
+
value: d,
|
|
564
|
+
layer: a,
|
|
565
|
+
fieldList: i
|
|
566
|
+
});
|
|
567
|
+
g = `${d}_${g}`, t[S(n)] = e[n], t[S(u)] = s, t[S(P.Outlier)] = e[g];
|
|
517
568
|
break;
|
|
518
569
|
}
|
|
519
|
-
case
|
|
520
|
-
case
|
|
570
|
+
case y.BoxPlotMonoField:
|
|
571
|
+
case y.BoxPlotMultiFields:
|
|
521
572
|
default: {
|
|
522
|
-
t.Field = e[
|
|
573
|
+
t.Field = e[F], t[S(P.Outlier)] = e[g];
|
|
523
574
|
break;
|
|
524
575
|
}
|
|
525
576
|
}
|
|
526
|
-
const
|
|
527
|
-
x !== void 0 && (t[`${
|
|
577
|
+
const b = `${g}${q}`, x = e[b];
|
|
578
|
+
x !== void 0 && (t[`${S(P.Outlier)} Z-Score`] = x);
|
|
528
579
|
}
|
|
529
|
-
function
|
|
530
|
-
const { rawData: e, outRow: t, config:
|
|
531
|
-
let
|
|
532
|
-
switch (
|
|
533
|
-
case
|
|
534
|
-
|
|
580
|
+
function Ie(l) {
|
|
581
|
+
const { rawData: e, outRow: t, config: o, splitByValue: r, layer: a, fieldList: i } = l, n = K(o.series), m = e[`${r}_${P.Average}`], u = _(o), g = H(o);
|
|
582
|
+
let F = "";
|
|
583
|
+
switch (n) {
|
|
584
|
+
case y.BoxPlotMonoFieldAndSplitBy: {
|
|
585
|
+
F = `${r}_${u}`, t.Field = e[T], t[S(u)] = A({
|
|
586
|
+
field: u,
|
|
587
|
+
value: e[F],
|
|
588
|
+
layer: a,
|
|
589
|
+
fieldList: i
|
|
590
|
+
});
|
|
535
591
|
break;
|
|
536
592
|
}
|
|
537
|
-
case
|
|
538
|
-
|
|
593
|
+
case y.BoxPlotMultiFieldsAndSplitBy: {
|
|
594
|
+
F = `${r}_${P.Average}`, t.Field = e[T], t[S(u)] = A({
|
|
595
|
+
field: u,
|
|
596
|
+
value: e[F],
|
|
597
|
+
layer: a,
|
|
598
|
+
fieldList: i
|
|
599
|
+
});
|
|
539
600
|
break;
|
|
540
601
|
}
|
|
541
|
-
case
|
|
542
|
-
|
|
602
|
+
case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
603
|
+
F = `${r}_${P.Average}`, t[g] = e[g], t[S(u)] = A({
|
|
604
|
+
field: u,
|
|
605
|
+
value: r,
|
|
606
|
+
layer: a,
|
|
607
|
+
fieldList: i
|
|
608
|
+
});
|
|
543
609
|
break;
|
|
544
610
|
}
|
|
545
611
|
}
|
|
546
|
-
t[
|
|
547
|
-
const
|
|
548
|
-
|
|
612
|
+
t[S(P.Average)] = m;
|
|
613
|
+
const b = `${String(m)}${q}`, x = e[b];
|
|
614
|
+
x !== void 0 && (t[`${S(P.Average)} Z-Score`] = x);
|
|
549
615
|
}
|
|
550
|
-
function
|
|
551
|
-
const { config: e, rows: t, fieldList:
|
|
552
|
-
let
|
|
553
|
-
const
|
|
554
|
-
|
|
555
|
-
const
|
|
556
|
-
let
|
|
557
|
-
switch (
|
|
558
|
-
case
|
|
559
|
-
case
|
|
560
|
-
|
|
561
|
-
const
|
|
562
|
-
if (s[
|
|
563
|
-
|
|
616
|
+
function Re(l) {
|
|
617
|
+
const { config: e, rows: t, layer: o, fieldList: r, formatters: a } = l, i = K(e.series);
|
|
618
|
+
let n = i;
|
|
619
|
+
const m = se(e), u = Array.isArray(t) && t.length > 0 && t.every((s) => s[V.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
|
|
620
|
+
m && !u && (i === y.BoxPlotMonoFieldAndSplitBy ? n = y.BoxPlotMonoField : i === y.BoxPlotMultiFieldsAndSplitBy ? n = y.BoxPlotMultiFields : i === y.BoxPlotMonoFieldAndCategoryAndSplitBy && (n = y.BoxPlotMonoFieldAndCategory));
|
|
621
|
+
const g = H(e), F = te(e), b = ae(e), x = _(e);
|
|
622
|
+
let d;
|
|
623
|
+
switch (n) {
|
|
624
|
+
case y.BoxPlotMonoField:
|
|
625
|
+
case y.BoxPlotMonoFieldAndCategory: {
|
|
626
|
+
d = t.map((s) => {
|
|
627
|
+
const c = {};
|
|
628
|
+
if (s[V.boxPlot.boxPlotOutlierId])
|
|
629
|
+
$({
|
|
630
|
+
rawData: s,
|
|
631
|
+
outRow: c,
|
|
632
|
+
config: e,
|
|
633
|
+
boxPlotSubType: n,
|
|
634
|
+
layer: o,
|
|
635
|
+
fieldList: r
|
|
636
|
+
});
|
|
564
637
|
else {
|
|
565
|
-
if (
|
|
566
|
-
const
|
|
567
|
-
field:
|
|
638
|
+
if (n === y.BoxPlotMonoFieldAndCategory) {
|
|
639
|
+
const f = C({
|
|
640
|
+
field: g,
|
|
568
641
|
row: s,
|
|
569
|
-
|
|
570
|
-
|
|
642
|
+
layer: o,
|
|
643
|
+
fieldList: r,
|
|
644
|
+
formatter: a?.xAxisLabelFormatter
|
|
571
645
|
});
|
|
572
|
-
|
|
573
|
-
} else
|
|
574
|
-
|
|
646
|
+
c[g] = f;
|
|
647
|
+
} else n === y.BoxPlotMonoField && (c.Field = s[T]);
|
|
648
|
+
I({ rawData: s, outRow: c });
|
|
575
649
|
}
|
|
576
|
-
return
|
|
650
|
+
return c;
|
|
577
651
|
});
|
|
578
652
|
break;
|
|
579
653
|
}
|
|
580
|
-
case
|
|
581
|
-
|
|
582
|
-
const
|
|
583
|
-
return s[
|
|
654
|
+
case y.BoxPlotMultiFields: {
|
|
655
|
+
d = t.flatMap((s) => {
|
|
656
|
+
const c = {};
|
|
657
|
+
return s[V.boxPlot.boxPlotOutlierId] ? $({
|
|
584
658
|
rawData: s,
|
|
585
|
-
outRow:
|
|
659
|
+
outRow: c,
|
|
586
660
|
config: e,
|
|
587
|
-
boxPlotSubType:
|
|
588
|
-
|
|
661
|
+
boxPlotSubType: n,
|
|
662
|
+
layer: o,
|
|
663
|
+
fieldList: r
|
|
664
|
+
}) : (c.Field = s[T], I({ rawData: s, outRow: c })), [c];
|
|
589
665
|
});
|
|
590
666
|
break;
|
|
591
667
|
}
|
|
592
|
-
case
|
|
593
|
-
|
|
594
|
-
(s) =>
|
|
595
|
-
const
|
|
596
|
-
let
|
|
597
|
-
if (
|
|
598
|
-
|
|
668
|
+
case y.BoxPlotMultiFieldsAndCategory: {
|
|
669
|
+
d = t.flatMap(
|
|
670
|
+
(s) => F.map((c) => {
|
|
671
|
+
const f = {};
|
|
672
|
+
let p = "";
|
|
673
|
+
if (f.Field = c, s[V.boxPlot.boxPlotOutlierId])
|
|
674
|
+
$({
|
|
599
675
|
rawData: s,
|
|
600
|
-
outRow:
|
|
676
|
+
outRow: f,
|
|
601
677
|
config: e,
|
|
602
|
-
boxPlotSubType:
|
|
678
|
+
boxPlotSubType: n,
|
|
679
|
+
layer: o,
|
|
680
|
+
fieldList: r
|
|
603
681
|
});
|
|
604
682
|
else {
|
|
605
|
-
if (
|
|
606
|
-
const
|
|
607
|
-
field:
|
|
683
|
+
if (n === y.BoxPlotMultiFieldsAndCategory) {
|
|
684
|
+
const D = C({
|
|
685
|
+
field: g,
|
|
608
686
|
row: s,
|
|
609
|
-
|
|
610
|
-
|
|
687
|
+
layer: o,
|
|
688
|
+
fieldList: r,
|
|
689
|
+
formatter: a?.xAxisLabelFormatter
|
|
611
690
|
});
|
|
612
|
-
|
|
691
|
+
f[g] = D, p = `${c}_`;
|
|
613
692
|
}
|
|
614
|
-
|
|
693
|
+
I({ rawData: s, outRow: f, keyBase: p });
|
|
615
694
|
}
|
|
616
|
-
return
|
|
695
|
+
return f;
|
|
617
696
|
})
|
|
618
697
|
);
|
|
619
698
|
break;
|
|
620
699
|
}
|
|
621
|
-
case
|
|
622
|
-
case
|
|
623
|
-
case
|
|
624
|
-
|
|
625
|
-
if (s[
|
|
700
|
+
case y.BoxPlotMonoFieldAndSplitBy:
|
|
701
|
+
case y.BoxPlotMultiFieldsAndSplitBy:
|
|
702
|
+
case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
703
|
+
d = t.flatMap((s) => {
|
|
704
|
+
if (s[V.boxPlot.boxPlotOutlierId]) {
|
|
705
|
+
const c = {};
|
|
706
|
+
return $({
|
|
707
|
+
rawData: s,
|
|
708
|
+
outRow: c,
|
|
709
|
+
config: e,
|
|
710
|
+
boxPlotSubType: n,
|
|
711
|
+
layer: o,
|
|
712
|
+
fieldList: r
|
|
713
|
+
}), [c];
|
|
714
|
+
} else return s[V.boxPlot.boxPlotMeanLineMarkerId] ? b?.map((c) => {
|
|
626
715
|
const f = {};
|
|
627
|
-
return
|
|
716
|
+
return Ie({
|
|
628
717
|
rawData: s,
|
|
629
718
|
outRow: f,
|
|
719
|
+
splitByValue: c,
|
|
630
720
|
config: e,
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
})
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
const g = C({
|
|
645
|
-
field: l,
|
|
721
|
+
layer: o,
|
|
722
|
+
fieldList: r
|
|
723
|
+
}), f;
|
|
724
|
+
}) : b.map((c) => {
|
|
725
|
+
const f = {}, p = A({
|
|
726
|
+
field: x,
|
|
727
|
+
value: c,
|
|
728
|
+
layer: o,
|
|
729
|
+
fieldList: r
|
|
730
|
+
});
|
|
731
|
+
if (n === y.BoxPlotMonoFieldAndCategoryAndSplitBy) {
|
|
732
|
+
const D = C({
|
|
733
|
+
field: g,
|
|
646
734
|
row: s,
|
|
647
|
-
|
|
648
|
-
|
|
735
|
+
layer: o,
|
|
736
|
+
fieldList: r,
|
|
737
|
+
formatter: a?.xAxisLabelFormatter
|
|
649
738
|
});
|
|
650
|
-
|
|
739
|
+
f[g] = D;
|
|
651
740
|
}
|
|
652
|
-
return s[
|
|
741
|
+
return s[V.boxPlot.boxPlotOutlierId] ? $({
|
|
653
742
|
rawData: s,
|
|
654
|
-
outRow:
|
|
743
|
+
outRow: f,
|
|
655
744
|
config: e,
|
|
656
|
-
boxPlotSubType:
|
|
657
|
-
}) : (
|
|
745
|
+
boxPlotSubType: n
|
|
746
|
+
}) : (f[x] = p, I({ rawData: s, outRow: f, keyBase: `${c}_` })), f;
|
|
658
747
|
});
|
|
659
748
|
});
|
|
660
749
|
break;
|
|
661
750
|
}
|
|
662
751
|
default:
|
|
663
|
-
|
|
752
|
+
d = t;
|
|
664
753
|
}
|
|
665
|
-
return
|
|
754
|
+
return d;
|
|
666
755
|
}
|
|
667
|
-
const
|
|
756
|
+
const J = (l) => {
|
|
668
757
|
let e = !1;
|
|
669
|
-
return (typeof
|
|
670
|
-
},
|
|
671
|
-
const { field: e, value: t, fieldList:
|
|
758
|
+
return (typeof l == "string" || typeof l == "number") && (e = !Number.isNaN(new Date(l).getTime())), e;
|
|
759
|
+
}, Ke = (l) => re.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd"), je = (l) => re.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), le = (l) => {
|
|
760
|
+
const { field: e, value: t, fieldList: o } = l;
|
|
672
761
|
let r = t;
|
|
673
|
-
const
|
|
674
|
-
if (
|
|
675
|
-
const
|
|
676
|
-
|
|
762
|
+
const a = o?.find((i) => i.name === e);
|
|
763
|
+
if (a) {
|
|
764
|
+
const i = a.type === he.DateOnly;
|
|
765
|
+
xe(a) && !i ? r = J(t) ? je(new Date(t)) : t : i && typeof t != "string" && (r = J(t) ? Ke(new Date(t)) : t);
|
|
677
766
|
}
|
|
678
767
|
return r;
|
|
679
768
|
};
|
|
680
|
-
function
|
|
681
|
-
const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy:
|
|
682
|
-
let
|
|
683
|
-
return t && (
|
|
769
|
+
function nt(l) {
|
|
770
|
+
const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: o, syncViewTimeExtent: r } = l;
|
|
771
|
+
let a = e;
|
|
772
|
+
return t && (o === ve.Refresh || r) && t.timeExtent?.start != null && t.timeExtent?.end != null && (a = {
|
|
684
773
|
...e,
|
|
685
774
|
timeExtent: [t.timeExtent.start.valueOf(), t.timeExtent.end.valueOf()]
|
|
686
|
-
}),
|
|
775
|
+
}), a;
|
|
687
776
|
}
|
|
688
777
|
export {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
778
|
+
Pe as a,
|
|
779
|
+
Ae as b,
|
|
780
|
+
Be as c,
|
|
781
|
+
nt as d,
|
|
782
|
+
rt as e,
|
|
783
|
+
Le as f,
|
|
784
|
+
X as g,
|
|
785
|
+
it as h,
|
|
786
|
+
lt as t
|
|
698
787
|
};
|