@arcgis/charts-components 5.1.0-next.82 → 5.1.0-next.83
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/{BHFEFC6X.js → 2C53KAFV.js} +1 -1
- package/dist/cdn/{GEXUXKE2.js → 2DACBEJH.js} +1 -1
- package/dist/cdn/2F63MBYD.js +2 -0
- package/dist/cdn/{CJ7NTZVC.js → 2ZCJSPOP.js} +1 -1
- package/dist/cdn/{UC2KHUNN.js → 3PGPIXWL.js} +1 -1
- package/dist/cdn/{UOC3SKN2.js → 4EULL7VO.js} +1 -1
- package/dist/cdn/4SZOVAC4.js +2 -0
- package/dist/cdn/{WFGGTYWP.js → 4VAAS2W5.js} +1 -1
- package/dist/cdn/{7R3FEB3R.js → 52IYTDZC.js} +1 -1
- package/dist/cdn/5GXFNW3H.js +2 -0
- package/dist/cdn/{BJAQIZB3.js → 5TEAPXIJ.js} +1 -1
- package/dist/cdn/{VDZ5R7WX.js → 5ZH65PNZ.js} +1 -1
- package/dist/cdn/64HBWFA3.js +2 -0
- package/dist/cdn/{TITJWWP7.js → 6TS7TXG7.js} +1 -1
- package/dist/cdn/{ZC6NYZDM.js → 74U7XXHV.js} +1 -1
- package/dist/cdn/7KD5V3MH.js +2 -0
- package/dist/cdn/{B7RU4X5Z.js → AAM5VKBK.js} +1 -1
- package/dist/cdn/{GVBLRXKE.js → AAV66WVS.js} +1 -1
- package/dist/cdn/{PSCAEQLN.js → AXCA6ASP.js} +1 -1
- package/dist/cdn/{AZLVOWWT.js → CGNK5OP4.js} +3 -3
- package/dist/cdn/{UR6A4VM5.js → CMWMYS2K.js} +1 -1
- package/dist/cdn/CUQNQICY.js +2 -0
- package/dist/cdn/{3G26ZRB7.js → DCZD5KWR.js} +1 -1
- package/dist/cdn/{O4645DWG.js → DMSWFKFP.js} +1 -1
- package/dist/cdn/{OWRWKXFL.js → DTQAQIJM.js} +1 -1
- package/dist/cdn/DZSS337I.js +2 -0
- package/dist/cdn/E4Y6N6PF.js +2 -0
- package/dist/cdn/{623QYMIQ.js → EOUHXPEA.js} +1 -1
- package/dist/cdn/{FUHOULT2.js → F7CR2AY4.js} +1 -1
- package/dist/cdn/{QILOZFO7.js → FBG5ZTTQ.js} +8 -8
- package/dist/cdn/FEDPGCQC.js +2 -0
- package/dist/cdn/{YUN4XIA2.js → FITORE2C.js} +1 -1
- package/dist/cdn/{7QYOWBFU.js → FRYQRMDP.js} +1 -1
- package/dist/cdn/{N2RUZDL5.js → FUA7KDU7.js} +1 -1
- package/dist/cdn/{J6J3DXQC.js → G27LJ5W2.js} +1 -1
- package/dist/cdn/{WY264B2J.js → GRSM3NBO.js} +1 -1
- package/dist/cdn/H7EXVEYQ.js +2 -0
- package/dist/cdn/HBW4NM4H.js +2 -0
- package/dist/cdn/{S5FXOTG4.js → HKW5AON4.js} +1 -1
- package/dist/cdn/{IEPVBL2M.js → HTESG4KU.js} +1 -1
- package/dist/cdn/{LYZNGXSF.js → IFHTUSGS.js} +1 -1
- package/dist/cdn/{XR44W6VF.js → IIAYXAK2.js} +1 -1
- package/dist/cdn/{EFXQZRUY.js → ITWL3DEC.js} +1 -1
- package/dist/cdn/{OTMPMNL4.js → IV56BISU.js} +1 -1
- package/dist/cdn/{RN72ZH7K.js → IYTHLK7D.js} +1 -1
- package/dist/cdn/{MUHGSAN5.js → JC3YR2FM.js} +1 -1
- package/dist/cdn/JJ7N2BFD.js +2 -0
- package/dist/cdn/JVLIBFGJ.js +2 -0
- package/dist/cdn/KFYUW7H7.js +2 -0
- package/dist/cdn/KHN7AZBU.js +2 -0
- package/dist/cdn/LB6JRSLI.js +2 -0
- package/dist/cdn/{G63R4TEN.js → LDZK3TBM.js} +1 -1
- package/dist/cdn/LQ7U4J5D.js +2 -0
- package/dist/cdn/{5U2X7LKH.js → M7SNGANA.js} +1 -1
- package/dist/cdn/MNYJ2GYM.js +2 -0
- package/dist/cdn/MV6H65JZ.js +2 -0
- package/dist/cdn/{S2H4RCXL.js → N4OXGGCA.js} +1 -1
- package/dist/cdn/{CV3MN2OB.js → NESORWBG.js} +1 -1
- package/dist/cdn/{LJU5JLT7.js → NUGJT3MO.js} +1 -1
- package/dist/cdn/NVCMDHE6.js +2 -0
- package/dist/cdn/NWBQZSJH.js +2 -0
- package/dist/cdn/OED52OID.js +2 -0
- package/dist/cdn/QHZQKJJO.js +2 -0
- package/dist/cdn/{OOHBEF67.js → QZOROYMP.js} +1 -1
- package/dist/cdn/{4SRUJNYL.js → R4B3CB3N.js} +1 -1
- package/dist/cdn/{FUOCURYO.js → R6YWDKWN.js} +1 -1
- package/dist/cdn/RJZTG6BJ.js +2 -0
- package/dist/cdn/S64CBDJB.js +2 -0
- package/dist/cdn/{2BAQEPCK.js → SH37YJOP.js} +1 -1
- package/dist/cdn/SPJK6GM3.js +2 -0
- package/dist/cdn/{R2BGMXLL.js → SR5JGIZ4.js} +1 -1
- package/dist/cdn/{NWRE6XI6.js → SRVDVLIK.js} +1 -1
- package/dist/cdn/{WG43MAVJ.js → TUERF5XO.js} +1 -1
- package/dist/cdn/TVNJKFSE.js +2 -0
- package/dist/cdn/{VPVFOEEH.js → U2C7US5M.js} +1 -1
- package/dist/cdn/{KGLVHBMW.js → UDCTDYWY.js} +1 -1
- package/dist/cdn/UEWINO5H.js +2 -0
- package/dist/cdn/{HKGGDNSY.js → URXBOBYP.js} +1 -1
- package/dist/cdn/{YCXOS27R.js → VFNM4LQT.js} +1 -1
- package/dist/cdn/VS6WXU6Z.js +2 -0
- package/dist/cdn/{UBI26YGI.js → VWTWH44G.js} +1 -1
- package/dist/cdn/{4ASFVM5K.js → WD7BCM2T.js} +1 -1
- package/dist/cdn/{RS6N2KGI.js → WQHYVWTM.js} +1 -1
- package/dist/cdn/X24IXIYO.js +2 -0
- package/dist/cdn/{PQZYONXN.js → X3YHAZMZ.js} +1 -1
- package/dist/cdn/{XHVWL7MY.js → XPQKK4JT.js} +1 -1
- package/dist/cdn/YBXJYVTG.js +2 -0
- package/dist/cdn/{TCGJR6OG.js → YCE3GAGK.js} +1 -1
- package/dist/cdn/{FX754GOP.js → YFNVAJP6.js} +1 -1
- package/dist/cdn/{6OUQ7ORF.js → YVCUDFXA.js} +1 -1
- package/dist/cdn/ZISQPBKD.js +2 -0
- package/dist/cdn/assets/charts-config-line-style/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +23 -7
- package/dist/chunks/index.js +875 -875
- package/dist/chunks/serial-chart-data.js +25 -25
- package/dist/components/arcgis-chart/customElement.d.ts +76 -24
- package/dist/components/arcgis-chart/customElement.js +893 -891
- package/dist/components/arcgis-charts-config-axes/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-color-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +58 -58
- package/dist/components/arcgis-charts-config-font-style/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +12 -12
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +17 -17
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-style/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +6 -6
- 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/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -2
- package/dist/types/preact.d.ts +1 -2
- package/dist/types/react.d.ts +1 -2
- package/dist/types/stencil.d.ts +1 -2
- package/package.json +4 -4
- package/dist/cdn/2ADFKCPA.js +0 -2
- package/dist/cdn/5GD3PE32.js +0 -2
- package/dist/cdn/6AUW6C3P.js +0 -2
- package/dist/cdn/7CVRX5TJ.js +0 -2
- package/dist/cdn/7ZK3YGN6.js +0 -2
- package/dist/cdn/AVUM7BWA.js +0 -2
- package/dist/cdn/BO7RCJZB.js +0 -2
- package/dist/cdn/D5EMJRBB.js +0 -2
- package/dist/cdn/DS42P2EG.js +0 -2
- package/dist/cdn/EE7MSNVY.js +0 -2
- package/dist/cdn/EQ3IZDDQ.js +0 -2
- package/dist/cdn/FK52K255.js +0 -2
- package/dist/cdn/FUFEC4JX.js +0 -2
- package/dist/cdn/HJRYXAVR.js +0 -2
- package/dist/cdn/IY7457CX.js +0 -2
- package/dist/cdn/K4DKNVD7.js +0 -2
- package/dist/cdn/K76KZ3TY.js +0 -2
- package/dist/cdn/KZOJBRI6.js +0 -2
- package/dist/cdn/L4Y3GEOG.js +0 -2
- package/dist/cdn/PMFA3GVU.js +0 -2
- package/dist/cdn/PWCAXPNP.js +0 -2
- package/dist/cdn/QOJZM6EZ.js +0 -2
- package/dist/cdn/RCAB2G52.js +0 -2
- package/dist/cdn/SZKVED6M.js +0 -2
- package/dist/cdn/TKTNTVES.js +0 -2
- package/dist/cdn/UMXNCRW5.js +0 -2
- package/dist/cdn/UWIRHZ3N.js +0 -2
- package/dist/cdn/V7CMOKQQ.js +0 -2
- package/dist/cdn/XBBP6DN4.js +0 -2
- package/dist/cdn/YGCLG2LA.js +0 -2
- package/dist/cdn/YWFHR2KJ.js +0 -2
- package/dist/cdn/ZKVDUGFR.js +0 -2
package/dist/chunks/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computeStatisticsHistograms as ea, fetchPixelFeatureSet as ta, computeRasterAttributeTable as ia } from "@arcgis/core/applications/Components/imageryUtils.js";
|
|
3
3
|
import gr from "@arcgis/core/geometry/Extent.js";
|
|
4
4
|
import "@arcgis/toolkit/type";
|
|
5
|
-
import { u as y, r as I, t as re, p as ne, n as ve, k as li, m as Ce, s as $, q as Ie, a as
|
|
5
|
+
import { u as y, r as I, t as re, p as ne, n as ve, k as li, m as Ce, s as $, q as Ie, a as $i, S as ra, g as ee, l as na, w as q, j as aa, d as Te, v as dt, G as sa } from "./series-types.js";
|
|
6
6
|
import { g as pt, i as X, d as K, f as He, h as Ve, k as te, e as fe, j as xt, R as H } from "./rest-js-object-literals.js";
|
|
7
7
|
import * as br from "@arcgis/core/geometry/support/jsonUtils.js";
|
|
8
8
|
import oa from "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
@@ -21,7 +21,7 @@ import { isEmpty as Cr, isEqual as Re, memoize as qi, cloneDeep as wt, sortBy as
|
|
|
21
21
|
import { fetchT9nStringsBundle as $e, getElementLocale as Ae, supportedLocales as Fr } from "@arcgis/toolkit/intl";
|
|
22
22
|
import { DateTime as xe } from "luxon";
|
|
23
23
|
import ma from "@arcgis/core/Graphic.js";
|
|
24
|
-
import * as
|
|
24
|
+
import * as xi from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
25
25
|
import ga from "@esri/arcgis-html-sanitizer";
|
|
26
26
|
import Ki from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
27
27
|
import ba from "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
@@ -149,7 +149,7 @@ const Va = {
|
|
|
149
149
|
}, rt = {
|
|
150
150
|
Reject: "reject",
|
|
151
151
|
RenderUpToTheLimit: "renderUpToTheLimit"
|
|
152
|
-
},
|
|
152
|
+
}, j = {
|
|
153
153
|
AxisLabels: "axisLabels",
|
|
154
154
|
GuideLabel: "guideLabel",
|
|
155
155
|
AxisTitle: "axisTitle",
|
|
@@ -165,7 +165,7 @@ const Va = {
|
|
|
165
165
|
maxRecords: 2e3,
|
|
166
166
|
orderByJSAPIDelimiter: " ",
|
|
167
167
|
outStatistics: {
|
|
168
|
-
statisticType:
|
|
168
|
+
statisticType: $i.statisticType,
|
|
169
169
|
onStatisticField: "OBJECTID",
|
|
170
170
|
outStatisticFieldName: "arcgis_charts_outStatisticFieldName_default_key"
|
|
171
171
|
},
|
|
@@ -178,7 +178,7 @@ const Va = {
|
|
|
178
178
|
undefinedSliceId: "arcgis-charts-slice-id-undefined",
|
|
179
179
|
nullSliceId: "arcgis-charts-slice-id-null",
|
|
180
180
|
emptySliceId: "arcgis-charts-slice-id-empty"
|
|
181
|
-
}, Nt = "arcgis_charts_box_plot_category",
|
|
181
|
+
}, Nt = "arcgis_charts_box_plot_category", V = {
|
|
182
182
|
valueField: "arcgis_charts_heat_chart_value",
|
|
183
183
|
xField: "arcgis_charts_heat_chart_x",
|
|
184
184
|
yField: "arcgis_charts_heat_chart_y"
|
|
@@ -252,7 +252,7 @@ function Bp() {
|
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function di(t = 1) {
|
|
256
256
|
return [
|
|
257
257
|
Math.floor(Math.random() * 256),
|
|
258
258
|
Math.floor(Math.random() * 256),
|
|
@@ -266,19 +266,19 @@ function Y(t) {
|
|
|
266
266
|
size: 10
|
|
267
267
|
};
|
|
268
268
|
switch (t) {
|
|
269
|
-
case
|
|
269
|
+
case j.ChartTitle:
|
|
270
270
|
e.size = 18;
|
|
271
271
|
break;
|
|
272
|
-
case
|
|
272
|
+
case j.AxisTitle:
|
|
273
273
|
e.size = 14;
|
|
274
274
|
break;
|
|
275
|
-
case
|
|
275
|
+
case j.LegendText:
|
|
276
276
|
e.size = 12;
|
|
277
277
|
break;
|
|
278
|
-
case
|
|
278
|
+
case j.LegendTitle:
|
|
279
279
|
e.size = 13;
|
|
280
280
|
break;
|
|
281
|
-
case
|
|
281
|
+
case j.DescriptionText:
|
|
282
282
|
e.size = 11;
|
|
283
283
|
break;
|
|
284
284
|
}
|
|
@@ -286,7 +286,7 @@ function Y(t) {
|
|
|
286
286
|
}
|
|
287
287
|
function Br(t = "", e = Y(), i) {
|
|
288
288
|
let r = K.Center;
|
|
289
|
-
return (i ===
|
|
289
|
+
return (i === j.DataLabels || i === j.GuideLabel) && (r = void 0), {
|
|
290
290
|
type: X.TS,
|
|
291
291
|
color: Ar(),
|
|
292
292
|
text: t,
|
|
@@ -294,7 +294,7 @@ function Br(t = "", e = Y(), i) {
|
|
|
294
294
|
horizontalAlignment: r
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function _(t) {
|
|
298
298
|
const { text: e, visible: i, font: r, type: n } = t ?? {
|
|
299
299
|
text: "",
|
|
300
300
|
visible: !0,
|
|
@@ -309,7 +309,7 @@ function G(t) {
|
|
|
309
309
|
function Wt(t) {
|
|
310
310
|
const e = t?.useRandomColor ?? !1, i = t?.useRampColor, r = t?.width ?? 1, n = t?.isHistogramOverlay;
|
|
311
311
|
let a = t?.color ?? Ar(1);
|
|
312
|
-
return e ? a =
|
|
312
|
+
return e ? a = di() : i !== void 0 && (n === !0 ? a = Be({
|
|
313
313
|
colorIndex: i.colorIndex,
|
|
314
314
|
histogramOverlays: n
|
|
315
315
|
}) : a = Be({ colorIndex: i.colorIndex })), t?.opacity !== void 0 && (a[3] = t.opacity), {
|
|
@@ -331,7 +331,7 @@ function Lp() {
|
|
|
331
331
|
intlOptions: {}
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function wi() {
|
|
335
335
|
return {
|
|
336
336
|
type: y.NumberAxisFormat,
|
|
337
337
|
intlOptions: {
|
|
@@ -363,16 +363,16 @@ function Np() {
|
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
365
|
function Xt(t = "Category Axis") {
|
|
366
|
-
const e =
|
|
366
|
+
const e = _({
|
|
367
367
|
text: t,
|
|
368
368
|
visible: !0,
|
|
369
|
-
font: Y(
|
|
369
|
+
font: Y(j.AxisTitle)
|
|
370
370
|
});
|
|
371
371
|
e.content.horizontalAlignment = K.Center, e.content.verticalAlignment = te.Middle;
|
|
372
|
-
const i =
|
|
372
|
+
const i = _({
|
|
373
373
|
text: t,
|
|
374
374
|
visible: !0,
|
|
375
|
-
font: Y(
|
|
375
|
+
font: Y(j.AxisLabels)
|
|
376
376
|
});
|
|
377
377
|
return {
|
|
378
378
|
type: y.Axis,
|
|
@@ -384,21 +384,21 @@ function Xt(t = "Category Axis") {
|
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
function Zt(t = "Value Axis") {
|
|
387
|
-
const e =
|
|
387
|
+
const e = _({
|
|
388
388
|
text: t,
|
|
389
389
|
visible: !0,
|
|
390
|
-
font: Y(
|
|
391
|
-
}), i =
|
|
390
|
+
font: Y(j.AxisTitle)
|
|
391
|
+
}), i = _({
|
|
392
392
|
text: t,
|
|
393
393
|
visible: !0,
|
|
394
|
-
font: Y(
|
|
394
|
+
font: Y(j.AxisLabels)
|
|
395
395
|
});
|
|
396
396
|
return e.content.verticalAlignment = te.Middle, e.content.horizontalAlignment = K.Center, {
|
|
397
397
|
type: y.Axis,
|
|
398
398
|
visible: !0,
|
|
399
399
|
title: e,
|
|
400
400
|
labels: i,
|
|
401
|
-
valueFormat:
|
|
401
|
+
valueFormat: wi(),
|
|
402
402
|
lineSymbol: Wt({ color: Ir })
|
|
403
403
|
};
|
|
404
404
|
}
|
|
@@ -406,12 +406,12 @@ function nt() {
|
|
|
406
406
|
return {
|
|
407
407
|
type: y.Legend,
|
|
408
408
|
visible: !0,
|
|
409
|
-
title:
|
|
409
|
+
title: _({
|
|
410
410
|
text: "",
|
|
411
411
|
visible: !0,
|
|
412
|
-
font: Y(
|
|
412
|
+
font: Y(j.LegendTitle)
|
|
413
413
|
}),
|
|
414
|
-
body: Br("", Y(
|
|
414
|
+
body: Br("", Y(j.LegendText)),
|
|
415
415
|
position: li.Right
|
|
416
416
|
};
|
|
417
417
|
}
|
|
@@ -439,7 +439,7 @@ function Op(t, e = !1) {
|
|
|
439
439
|
return {
|
|
440
440
|
type: X.SFS,
|
|
441
441
|
style: He.Solid,
|
|
442
|
-
color: e ?
|
|
442
|
+
color: e ? di(ge) : Be({
|
|
443
443
|
colorIndex: t ?? 0,
|
|
444
444
|
opacity: ge
|
|
445
445
|
})
|
|
@@ -471,7 +471,7 @@ function Ja(t = !1) {
|
|
|
471
471
|
return {
|
|
472
472
|
type: X.SMS,
|
|
473
473
|
style: Ve.Circle,
|
|
474
|
-
color: t ?
|
|
474
|
+
color: t ? di(ge) : Be({ colorIndex: 0, opacity: ge }),
|
|
475
475
|
size: 7
|
|
476
476
|
};
|
|
477
477
|
}
|
|
@@ -494,7 +494,7 @@ function Ka(t = !1) {
|
|
|
494
494
|
symbol: {
|
|
495
495
|
type: X.SLS,
|
|
496
496
|
style: pt.Solid,
|
|
497
|
-
color: t ?
|
|
497
|
+
color: t ? di() : Be({ colorIndex: 1 }),
|
|
498
498
|
width: 2
|
|
499
499
|
}
|
|
500
500
|
}
|
|
@@ -508,10 +508,10 @@ function Xa(t, e) {
|
|
|
508
508
|
name: i,
|
|
509
509
|
y: "",
|
|
510
510
|
x: "",
|
|
511
|
-
dataLabels:
|
|
511
|
+
dataLabels: _({
|
|
512
512
|
text: "",
|
|
513
513
|
visible: !1,
|
|
514
|
-
font: Y(
|
|
514
|
+
font: Y(j.DataLabels)
|
|
515
515
|
}),
|
|
516
516
|
query: {
|
|
517
517
|
outStatistics: [
|
|
@@ -542,10 +542,10 @@ function Za() {
|
|
|
542
542
|
y: "",
|
|
543
543
|
markerSymbol: Ja(),
|
|
544
544
|
overlays: Ka(),
|
|
545
|
-
dataLabels:
|
|
545
|
+
dataLabels: _({
|
|
546
546
|
text: "",
|
|
547
547
|
visible: !1,
|
|
548
|
-
font: Y(
|
|
548
|
+
font: Y(j.DataLabels)
|
|
549
549
|
})
|
|
550
550
|
};
|
|
551
551
|
}
|
|
@@ -611,10 +611,10 @@ function is(t) {
|
|
|
611
611
|
y: r,
|
|
612
612
|
lineSymbol: Ya(t.seriesIndex),
|
|
613
613
|
markerSymbol: Qa(t.seriesIndex),
|
|
614
|
-
dataLabels:
|
|
614
|
+
dataLabels: _({
|
|
615
615
|
text: "",
|
|
616
616
|
visible: !1,
|
|
617
|
-
font: Y(
|
|
617
|
+
font: Y(j.DataLabels)
|
|
618
618
|
}),
|
|
619
619
|
temporalBinning: {
|
|
620
620
|
unit: $.Day,
|
|
@@ -657,11 +657,11 @@ function Rp(t) {
|
|
|
657
657
|
x: "",
|
|
658
658
|
y: r,
|
|
659
659
|
fillSymbol: rs(t.seriesIndex),
|
|
660
|
-
dataLabels:
|
|
660
|
+
dataLabels: _({
|
|
661
661
|
text: "",
|
|
662
662
|
visible: !1,
|
|
663
|
-
font: Y(
|
|
664
|
-
type:
|
|
663
|
+
font: Y(j.DataLabels),
|
|
664
|
+
type: j.DataLabels
|
|
665
665
|
})
|
|
666
666
|
};
|
|
667
667
|
}
|
|
@@ -719,11 +719,11 @@ function qp(t, e) {
|
|
|
719
719
|
x: "",
|
|
720
720
|
y: i,
|
|
721
721
|
fillSymbol: as(),
|
|
722
|
-
dataLabels:
|
|
722
|
+
dataLabels: _({
|
|
723
723
|
text: "",
|
|
724
724
|
visible: !1,
|
|
725
|
-
font: Y(
|
|
726
|
-
type:
|
|
725
|
+
font: Y(j.DataLabels),
|
|
726
|
+
type: j.DataLabels
|
|
727
727
|
}),
|
|
728
728
|
startAngle: -90,
|
|
729
729
|
endAngle: 270,
|
|
@@ -732,14 +732,14 @@ function qp(t, e) {
|
|
|
732
732
|
displayNumericValueOnDataLabel: !1,
|
|
733
733
|
displayPercentageOnDataLabel: !0,
|
|
734
734
|
numericValueFormat: {
|
|
735
|
-
...
|
|
735
|
+
...wi(),
|
|
736
736
|
intlOptions: {
|
|
737
737
|
minimumFractionDigits: 1,
|
|
738
738
|
maximumFractionDigits: 1
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
percentValueFormat: {
|
|
742
|
-
...
|
|
742
|
+
...wi(),
|
|
743
743
|
intlOptions: {
|
|
744
744
|
minimumFractionDigits: 1,
|
|
745
745
|
maximumFractionDigits: 1
|
|
@@ -782,16 +782,16 @@ function kp(t, e = We()) {
|
|
|
782
782
|
orderBy: ne.Ascending
|
|
783
783
|
}
|
|
784
784
|
},
|
|
785
|
-
title:
|
|
785
|
+
title: _({
|
|
786
786
|
text: Je(t),
|
|
787
787
|
visible: !0,
|
|
788
|
-
font: Y(
|
|
788
|
+
font: Y(j.ChartTitle)
|
|
789
789
|
}),
|
|
790
|
-
subtitle:
|
|
791
|
-
footer:
|
|
790
|
+
subtitle: _(),
|
|
791
|
+
footer: _({
|
|
792
792
|
text: "",
|
|
793
793
|
visible: !0,
|
|
794
|
-
font: Y(
|
|
794
|
+
font: Y(j.DescriptionText)
|
|
795
795
|
}),
|
|
796
796
|
background: at(),
|
|
797
797
|
axes: ft(t, y.BarSeries),
|
|
@@ -812,16 +812,16 @@ function Wp(t, e = We()) {
|
|
|
812
812
|
orderBy: ne.Ascending
|
|
813
813
|
}
|
|
814
814
|
},
|
|
815
|
-
title:
|
|
815
|
+
title: _({
|
|
816
816
|
text: Je(t),
|
|
817
817
|
visible: !0,
|
|
818
|
-
font: Y(
|
|
818
|
+
font: Y(j.ChartTitle)
|
|
819
819
|
}),
|
|
820
|
-
subtitle:
|
|
821
|
-
footer:
|
|
820
|
+
subtitle: _(),
|
|
821
|
+
footer: _({
|
|
822
822
|
text: "",
|
|
823
823
|
visible: !0,
|
|
824
|
-
font: Y(
|
|
824
|
+
font: Y(j.DescriptionText)
|
|
825
825
|
}),
|
|
826
826
|
background: at(),
|
|
827
827
|
series: [],
|
|
@@ -844,16 +844,16 @@ function Vp(t, e = We()) {
|
|
|
844
844
|
orderBy: ne.Ascending
|
|
845
845
|
}
|
|
846
846
|
},
|
|
847
|
-
title:
|
|
847
|
+
title: _({
|
|
848
848
|
text: Je(t),
|
|
849
849
|
visible: !0,
|
|
850
|
-
font: Y(
|
|
850
|
+
font: Y(j.ChartTitle)
|
|
851
851
|
}),
|
|
852
|
-
subtitle:
|
|
853
|
-
footer:
|
|
852
|
+
subtitle: _(),
|
|
853
|
+
footer: _({
|
|
854
854
|
text: "",
|
|
855
855
|
visible: !0,
|
|
856
|
-
font: Y(
|
|
856
|
+
font: Y(j.DescriptionText)
|
|
857
857
|
}),
|
|
858
858
|
background: at(),
|
|
859
859
|
axes: ft(t, y.LineSeries),
|
|
@@ -873,16 +873,16 @@ function jp(t, e = We()) {
|
|
|
873
873
|
orderBy: ne.Ascending
|
|
874
874
|
}
|
|
875
875
|
},
|
|
876
|
-
title:
|
|
876
|
+
title: _({
|
|
877
877
|
text: Je(t),
|
|
878
878
|
visible: !0,
|
|
879
|
-
font: Y(
|
|
879
|
+
font: Y(j.ChartTitle)
|
|
880
880
|
}),
|
|
881
|
-
subtitle:
|
|
882
|
-
footer:
|
|
881
|
+
subtitle: _(),
|
|
882
|
+
footer: _({
|
|
883
883
|
text: "",
|
|
884
884
|
visible: !0,
|
|
885
|
-
font: Y(
|
|
885
|
+
font: Y(j.DescriptionText)
|
|
886
886
|
}),
|
|
887
887
|
background: at(),
|
|
888
888
|
axes: ft(t, y.RadarSeries),
|
|
@@ -902,16 +902,16 @@ function zp(t, e = We()) {
|
|
|
902
902
|
orderBy: ne.Descending
|
|
903
903
|
}
|
|
904
904
|
},
|
|
905
|
-
title:
|
|
905
|
+
title: _({
|
|
906
906
|
text: Je(t),
|
|
907
907
|
visible: !0,
|
|
908
|
-
font: Y(
|
|
908
|
+
font: Y(j.ChartTitle)
|
|
909
909
|
}),
|
|
910
|
-
subtitle:
|
|
911
|
-
footer:
|
|
910
|
+
subtitle: _(),
|
|
911
|
+
footer: _({
|
|
912
912
|
text: "",
|
|
913
913
|
visible: !0,
|
|
914
|
-
font: Y(
|
|
914
|
+
font: Y(j.DescriptionText)
|
|
915
915
|
}),
|
|
916
916
|
background: at(),
|
|
917
917
|
series: [],
|
|
@@ -928,10 +928,10 @@ function _p(t, e = We()) {
|
|
|
928
928
|
type: y.Chart,
|
|
929
929
|
id: e,
|
|
930
930
|
colorMatch: !0,
|
|
931
|
-
title:
|
|
931
|
+
title: _({
|
|
932
932
|
text: Je(t),
|
|
933
933
|
visible: !0,
|
|
934
|
-
font: Y(
|
|
934
|
+
font: Y(j.ChartTitle)
|
|
935
935
|
}),
|
|
936
936
|
series: [],
|
|
937
937
|
axes: ts(t)
|
|
@@ -943,16 +943,16 @@ function Gp(t, e = We()) {
|
|
|
943
943
|
type: y.Chart,
|
|
944
944
|
id: e,
|
|
945
945
|
colorMatch: !0,
|
|
946
|
-
title:
|
|
946
|
+
title: _({
|
|
947
947
|
text: Je(t),
|
|
948
948
|
visible: !0,
|
|
949
|
-
font: Y(
|
|
949
|
+
font: Y(j.ChartTitle)
|
|
950
950
|
}),
|
|
951
|
-
subtitle:
|
|
952
|
-
footer:
|
|
951
|
+
subtitle: _(),
|
|
952
|
+
footer: _({
|
|
953
953
|
text: "",
|
|
954
954
|
visible: !0,
|
|
955
|
-
font: Y(
|
|
955
|
+
font: Y(j.DescriptionText)
|
|
956
956
|
}),
|
|
957
957
|
background: at(),
|
|
958
958
|
axes: ft(t, y.ScatterSeries),
|
|
@@ -965,10 +965,10 @@ function Up(t, e) {
|
|
|
965
965
|
version: Ye,
|
|
966
966
|
type: y.Chart,
|
|
967
967
|
id: We(),
|
|
968
|
-
title:
|
|
968
|
+
title: _({
|
|
969
969
|
text: Je(t),
|
|
970
970
|
visible: !0,
|
|
971
|
-
font: Y(
|
|
971
|
+
font: Y(j.ChartTitle)
|
|
972
972
|
}),
|
|
973
973
|
background: at(),
|
|
974
974
|
axes: ft(t, y.HeatSeries),
|
|
@@ -1006,10 +1006,10 @@ function ls() {
|
|
|
1006
1006
|
overlays: ss(),
|
|
1007
1007
|
dataTransformationType: ee.None,
|
|
1008
1008
|
fillSymbol: os(),
|
|
1009
|
-
dataLabels:
|
|
1009
|
+
dataLabels: _({
|
|
1010
1010
|
text: "",
|
|
1011
1011
|
visible: !1,
|
|
1012
|
-
font: Y(
|
|
1012
|
+
font: Y(j.DataLabels)
|
|
1013
1013
|
})
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
@@ -1019,16 +1019,16 @@ function Hp(t, e = We()) {
|
|
|
1019
1019
|
type: y.Chart,
|
|
1020
1020
|
id: e,
|
|
1021
1021
|
colorMatch: !0,
|
|
1022
|
-
title:
|
|
1022
|
+
title: _({
|
|
1023
1023
|
text: Je(t),
|
|
1024
1024
|
visible: !0,
|
|
1025
|
-
font: Y(
|
|
1025
|
+
font: Y(j.ChartTitle)
|
|
1026
1026
|
}),
|
|
1027
|
-
subtitle:
|
|
1028
|
-
footer:
|
|
1027
|
+
subtitle: _(),
|
|
1028
|
+
footer: _({
|
|
1029
1029
|
text: "",
|
|
1030
1030
|
visible: !0,
|
|
1031
|
-
font: Y(
|
|
1031
|
+
font: Y(j.DescriptionText)
|
|
1032
1032
|
}),
|
|
1033
1033
|
background: at(),
|
|
1034
1034
|
axes: ft(t, y.HistogramSeries),
|
|
@@ -1101,7 +1101,7 @@ function yt(t) {
|
|
|
1101
1101
|
e[r] = t[r] ?? Qt[r];
|
|
1102
1102
|
}), e;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function ci() {
|
|
1105
1105
|
return {
|
|
1106
1106
|
/* Specifies the size of the queries on an aggregated scatterplot, counting the number of cells per query.
|
|
1107
1107
|
A bigger number implies fewer but slower queries. A smaller number implies more but faster queries.
|
|
@@ -1643,7 +1643,9 @@ const cs = 0, ps = "_arcgis_charts_outliers", us = "_arcgis_charts_z_score", Kp
|
|
|
1643
1643
|
lastTemporalBin: "is_arcgis_charts_last_bin",
|
|
1644
1644
|
options: {
|
|
1645
1645
|
hideEmptySeries: !0,
|
|
1646
|
+
showEmptySeries: !1,
|
|
1646
1647
|
replaceNoValueCategoryWithZero: !0,
|
|
1648
|
+
hideZeroCountCategories: !1,
|
|
1647
1649
|
autoInverseDataLabelTextColor: !1
|
|
1648
1650
|
},
|
|
1649
1651
|
nullCategory: {
|
|
@@ -1890,11 +1892,11 @@ function gs(t) {
|
|
|
1890
1892
|
const { arrayToSort: e, orderBy: i, sortingField: r, fieldList: n, isByFieldsChart: a, preferLabel: s } = t;
|
|
1891
1893
|
e !== void 0 && e.length > 1 && !ae(r) && i !== void 0 && i.length > 0 && e.sort((o, d) => {
|
|
1892
1894
|
let l = o[r];
|
|
1893
|
-
s && a && typeof l == "string" && (l =
|
|
1895
|
+
s && a && typeof l == "string" && (l = Bi(n, l));
|
|
1894
1896
|
let c = i.indexOf(l?.toString() ?? "");
|
|
1895
1897
|
c === -1 && (c = i.length);
|
|
1896
1898
|
let p = d[r];
|
|
1897
|
-
s && a && typeof p == "string" && (p =
|
|
1899
|
+
s && a && typeof p == "string" && (p = Bi(n, p));
|
|
1898
1900
|
let u = i.indexOf(p?.toString() ?? "");
|
|
1899
1901
|
return u === -1 && (u = i.length), c - u;
|
|
1900
1902
|
});
|
|
@@ -1962,7 +1964,7 @@ function ri(t) {
|
|
|
1962
1964
|
Object.entries(e).forEach(([o]) => {
|
|
1963
1965
|
if (o !== "" && o !== _e && o in e) {
|
|
1964
1966
|
const d = {
|
|
1965
|
-
[i]:
|
|
1967
|
+
[i]: Bi(n, o),
|
|
1966
1968
|
[r]: e[o],
|
|
1967
1969
|
[C.xAxisField]: o,
|
|
1968
1970
|
[C.originalCategoryValue]: o
|
|
@@ -2007,29 +2009,29 @@ function Dr(t, e) {
|
|
|
2007
2009
|
maxLineThreePlusSeriesCountTotal: h,
|
|
2008
2010
|
maxPieChartSliceCountTotal: m,
|
|
2009
2011
|
maxGaugeByFeaturesLimit: b
|
|
2010
|
-
} = yt(e),
|
|
2011
|
-
switch (
|
|
2012
|
+
} = yt(e), S = q(t.series), x = t.series.length === 0 ? 1 : t.series.length, v = E(t.series);
|
|
2013
|
+
switch (S) {
|
|
2012
2014
|
case y.ComboLineAndBarSeries:
|
|
2013
2015
|
case y.BarSeries:
|
|
2014
|
-
|
|
2016
|
+
x <= r && (x === 1 ? i = n : x === 2 ? i = Yt({
|
|
2015
2017
|
countTotal: s,
|
|
2016
2018
|
countPerSeries: a,
|
|
2017
|
-
numberOfSeries:
|
|
2018
|
-
}) :
|
|
2019
|
+
numberOfSeries: x
|
|
2020
|
+
}) : x > 2 && (i = Yt({
|
|
2019
2021
|
countTotal: d,
|
|
2020
2022
|
countPerSeries: o,
|
|
2021
|
-
numberOfSeries:
|
|
2023
|
+
numberOfSeries: x
|
|
2022
2024
|
})));
|
|
2023
2025
|
break;
|
|
2024
2026
|
case y.LineSeries:
|
|
2025
|
-
|
|
2027
|
+
x <= l && (x === 1 ? i = c : x === 2 ? i = Yt({
|
|
2026
2028
|
countTotal: u,
|
|
2027
2029
|
countPerSeries: p,
|
|
2028
|
-
numberOfSeries:
|
|
2029
|
-
}) :
|
|
2030
|
+
numberOfSeries: x
|
|
2031
|
+
}) : x > 2 && (i = Yt({
|
|
2030
2032
|
countTotal: h,
|
|
2031
2033
|
countPerSeries: f,
|
|
2032
|
-
numberOfSeries:
|
|
2034
|
+
numberOfSeries: x
|
|
2033
2035
|
})));
|
|
2034
2036
|
break;
|
|
2035
2037
|
case y.PieSeries:
|
|
@@ -2044,7 +2046,7 @@ function Dr(t, e) {
|
|
|
2044
2046
|
// handled through the number of bins
|
|
2045
2047
|
case y.BoxPlotSeries:
|
|
2046
2048
|
}
|
|
2047
|
-
return (v === g.BarAndLineNoAggregation || v === g.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i /
|
|
2049
|
+
return (v === g.BarAndLineNoAggregation || v === g.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / x)), i;
|
|
2048
2050
|
}
|
|
2049
2051
|
function er(t, e) {
|
|
2050
2052
|
let i = t;
|
|
@@ -2134,7 +2136,7 @@ function yu(t) {
|
|
|
2134
2136
|
const { series: n } = e, a = q(n), s = E(n), o = Ke(e), d = st({
|
|
2135
2137
|
seriesConfig: o,
|
|
2136
2138
|
queryObject: i
|
|
2137
|
-
}), c =
|
|
2139
|
+
}), c = k(i)?.renderer;
|
|
2138
2140
|
switch (c?.type) {
|
|
2139
2141
|
case fe.Simple:
|
|
2140
2142
|
r = a === y.HistogramSeries || a === y.ScatterSeries || s === g.BarAndLineMonoField || s === g.BoxPlotMonoField || s === g.BoxPlotMultiFields || s === g.BoxPlotMonoFieldAndCategory || s === g.BarAndLineNoAggregation && n.length === 1 && !d;
|
|
@@ -2198,15 +2200,15 @@ function Os(t) {
|
|
|
2198
2200
|
const { color: f, label: h } = p;
|
|
2199
2201
|
let m;
|
|
2200
2202
|
Array.isArray(f) && f?.length === 4 ? m = f : f && "toRgba" in f && (m = f.toRgba());
|
|
2201
|
-
let b = !1,
|
|
2203
|
+
let b = !1, S = !0;
|
|
2202
2204
|
switch (d) {
|
|
2203
2205
|
case y.BarSeries:
|
|
2204
2206
|
case y.LineSeries:
|
|
2205
2207
|
case y.ComboLineAndBarSeries:
|
|
2206
2208
|
case y.RadarSeries:
|
|
2207
2209
|
if (r !== g.BarAndLineFromFields) {
|
|
2208
|
-
const
|
|
2209
|
-
|
|
2210
|
+
const x = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === u);
|
|
2211
|
+
x !== void 0 && "y" in x ? u = [x.y].flat()[0] : u = "";
|
|
2210
2212
|
}
|
|
2211
2213
|
b = r !== g.BarAndLineFromFields || u === n[C.originalCategoryValue];
|
|
2212
2214
|
break;
|
|
@@ -2214,13 +2216,13 @@ function Os(t) {
|
|
|
2214
2216
|
b = r === g.PieFromFields && u === n[C.originalCategoryValue];
|
|
2215
2217
|
break;
|
|
2216
2218
|
case y.BoxPlotSeries:
|
|
2217
|
-
r === g.BoxPlotMonoField || r === g.BoxPlotMonoFieldAndCategory ? b = u === i[0].y : u && (r === g.BoxPlotMultiFields || r === g.BoxPlotMultiFieldsAndCategory) && (b = i.map((v) => v.y).flat().includes(u)),
|
|
2219
|
+
r === g.BoxPlotMonoField || r === g.BoxPlotMonoFieldAndCategory ? b = u === i[0].y : u && (r === g.BoxPlotMultiFields || r === g.BoxPlotMultiFieldsAndCategory) && (b = i.map((v) => v.y).flat().includes(u)), S = !1;
|
|
2218
2220
|
break;
|
|
2219
2221
|
}
|
|
2220
2222
|
b && m && (s = {
|
|
2221
2223
|
type: X.SMS,
|
|
2222
2224
|
color: m,
|
|
2223
|
-
label:
|
|
2225
|
+
label: S && h ? h : void 0
|
|
2224
2226
|
}, l != null && (s.outline = l), Nr({
|
|
2225
2227
|
dataItem: n,
|
|
2226
2228
|
symbolField: r === g.BarAndLineFromFields || r === g.PieFromFields ? C.rendererSymbolField : `${C.rendererSymbolField}_${u}`,
|
|
@@ -2270,9 +2272,9 @@ function Ms(t) {
|
|
|
2270
2272
|
const { chartRenderer: e, queryObject: i } = t, r = e !== void 0 ? {
|
|
2271
2273
|
// TODO: find a better way to copy the layer. For now it's all right as the information we need are not lost with the spread operator
|
|
2272
2274
|
// eslint-disable-next-line @typescript-eslint/no-misused-spread
|
|
2273
|
-
...
|
|
2275
|
+
...k(i),
|
|
2274
2276
|
renderer: xr.fromJSON(e)
|
|
2275
|
-
} :
|
|
2277
|
+
} : k(i);
|
|
2276
2278
|
return new ma({
|
|
2277
2279
|
layer: r
|
|
2278
2280
|
});
|
|
@@ -2309,7 +2311,7 @@ async function Rs(t) {
|
|
|
2309
2311
|
chartSubType: s,
|
|
2310
2312
|
rendererType: n,
|
|
2311
2313
|
dataItem: i
|
|
2312
|
-
}),
|
|
2314
|
+
}), S = be({
|
|
2313
2315
|
where: m.query?.where,
|
|
2314
2316
|
normalize: !0,
|
|
2315
2317
|
keepSurroundingQuotes: !1,
|
|
@@ -2317,11 +2319,11 @@ async function Rs(t) {
|
|
|
2317
2319
|
});
|
|
2318
2320
|
h.set(b, {
|
|
2319
2321
|
...i,
|
|
2320
|
-
[o]:
|
|
2322
|
+
[o]: S
|
|
2321
2323
|
});
|
|
2322
2324
|
}
|
|
2323
2325
|
}) : e[0].type === y.HeatSeries && n === fe.ClassBreaks ? h.set(C.rendererSymbolField, {
|
|
2324
|
-
[
|
|
2326
|
+
[V.valueField]: i[V.valueField]
|
|
2325
2327
|
}) : h.set(
|
|
2326
2328
|
q(e) === y.HistogramSeries ? C.rendererSymbolFieldForHistogram : C.rendererSymbolField,
|
|
2327
2329
|
{
|
|
@@ -2332,26 +2334,26 @@ async function Rs(t) {
|
|
|
2332
2334
|
try {
|
|
2333
2335
|
const m = Array.from(h.entries()), b = d.clone();
|
|
2334
2336
|
b.layer = d.layer;
|
|
2335
|
-
const
|
|
2336
|
-
for (let
|
|
2337
|
-
const [v, F] = m[
|
|
2337
|
+
const S = r?.uniqueValueInfos;
|
|
2338
|
+
for (let x = 0; x < m.length; x += 1) {
|
|
2339
|
+
const [v, F] = m[x];
|
|
2338
2340
|
if (tr({
|
|
2339
2341
|
mode: "encode",
|
|
2340
2342
|
x: f,
|
|
2341
2343
|
splitByField: o,
|
|
2342
2344
|
attributes: F
|
|
2343
|
-
}), l && l.length > 0 && Object.keys(F).forEach((
|
|
2344
|
-
l.includes(
|
|
2345
|
+
}), l && l.length > 0 && Object.keys(F).forEach((w) => {
|
|
2346
|
+
l.includes(w) || delete F[w];
|
|
2345
2347
|
}), b.attributes = F, c?.has(JSON.stringify(F)))
|
|
2346
2348
|
p = c.get(JSON.stringify(F));
|
|
2347
2349
|
else {
|
|
2348
|
-
if (p = (await
|
|
2350
|
+
if (p = (await xi.getDisplayedSymbol(b))?.toJSON(), p != null) {
|
|
2349
2351
|
if (p.color === void 0) {
|
|
2350
|
-
const A = (await
|
|
2352
|
+
const A = (await xi.getDisplayedColor(b))?.toJSON();
|
|
2351
2353
|
A && (p.color = A.length === 4 ? A : [...A, 255]);
|
|
2352
2354
|
}
|
|
2353
|
-
const
|
|
2354
|
-
|
|
2355
|
+
const w = await xi.getLegendLabel(b);
|
|
2356
|
+
w != null && w !== "" && (p.label = w, p.uniqueValue = S?.find((A) => A.label === w)?.value ?? void 0);
|
|
2355
2357
|
}
|
|
2356
2358
|
c?.set(JSON.stringify(F), p);
|
|
2357
2359
|
}
|
|
@@ -2455,13 +2457,13 @@ function gu(t, e) {
|
|
|
2455
2457
|
const r = q(t?.series), n = q(e?.series);
|
|
2456
2458
|
return r && r !== n && (i = r === y.ComboLineAndBarSeries && (n === y.BarSeries || n === y.LineSeries) || n === y.ComboLineAndBarSeries && (r === y.BarSeries || r === y.LineSeries) || r === y.BarSeries && n === y.LineSeries || r === y.LineSeries && n === y.BarSeries), i;
|
|
2457
2459
|
}
|
|
2458
|
-
function
|
|
2460
|
+
function Ti(t, e) {
|
|
2459
2461
|
return t !== void 0 && e !== void 0 && e > 0;
|
|
2460
2462
|
}
|
|
2461
2463
|
function bu(t) {
|
|
2462
2464
|
const { chartConfig: e, queryObject: i, chartData: r } = t;
|
|
2463
2465
|
let n = [];
|
|
2464
|
-
const a = E(e.series), s = Pr(e), o =
|
|
2466
|
+
const a = E(e.series), s = Pr(e), o = k(i), d = e.chartRenderer ?? o?.renderer?.toJSON();
|
|
2465
2467
|
return n = e.series.map((l, c) => {
|
|
2466
2468
|
const p = q([l]);
|
|
2467
2469
|
let u;
|
|
@@ -2474,7 +2476,7 @@ function bu(t) {
|
|
|
2474
2476
|
})?.color : u === void 0 && (u = Be({ colorIndex: c }))), u;
|
|
2475
2477
|
}).filter((l) => l !== void 0), n;
|
|
2476
2478
|
}
|
|
2477
|
-
function
|
|
2479
|
+
function Ii(t) {
|
|
2478
2480
|
return t !== g.PieNoAggregation && t !== g.BarAndLineNoAggregation && t !== g.BarAndLineSplitByNoAggregation;
|
|
2479
2481
|
}
|
|
2480
2482
|
function Vs(t) {
|
|
@@ -2490,7 +2492,7 @@ function js(t) {
|
|
|
2490
2492
|
function Su() {
|
|
2491
2493
|
return `{name} {${C.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
|
|
2492
2494
|
}
|
|
2493
|
-
const
|
|
2495
|
+
const O = {
|
|
2494
2496
|
Min: "min",
|
|
2495
2497
|
FirstQuartile: "first_quartile",
|
|
2496
2498
|
Median: "median",
|
|
@@ -2595,7 +2597,7 @@ function _s(t) {
|
|
|
2595
2597
|
}
|
|
2596
2598
|
return e;
|
|
2597
2599
|
}
|
|
2598
|
-
function
|
|
2600
|
+
function Ai(t) {
|
|
2599
2601
|
let e = t, i = "";
|
|
2600
2602
|
t.startsWith("'") && t.endsWith("'") && (e = t.slice(1, -1), i = "'"), e = e.replace(/'/gu, "''");
|
|
2601
2603
|
let r = "";
|
|
@@ -2625,31 +2627,31 @@ function Ge(t) {
|
|
|
2625
2627
|
maxLineUniqueSeriesCountTotal: h,
|
|
2626
2628
|
maxLineTwoSeriesCountPerSeries: m,
|
|
2627
2629
|
maxLineTwoSeriesCountTotal: b,
|
|
2628
|
-
maxLineThreePlusSeriesCountPerSeries:
|
|
2629
|
-
maxLineThreePlusSeriesCountTotal:
|
|
2630
|
+
maxLineThreePlusSeriesCountPerSeries: S,
|
|
2631
|
+
maxLineThreePlusSeriesCountTotal: x,
|
|
2630
2632
|
maxPieChartSliceCountTotal: v,
|
|
2631
2633
|
maxGaugeByFeaturesLimit: F,
|
|
2632
|
-
maxBoxPlotSeriesCount:
|
|
2633
|
-
maxBoxUniqueSeriesCountTotal:
|
|
2634
|
+
maxBoxPlotSeriesCount: T,
|
|
2635
|
+
maxBoxUniqueSeriesCountTotal: w,
|
|
2634
2636
|
maxBoxTwoSeriesCountTotal: A,
|
|
2635
|
-
maxBoxTwoSeriesCountPerSeries:
|
|
2636
|
-
maxBoxThreePlusSeriesCountTotal:
|
|
2637
|
-
maxBoxThreePlusSeriesCountPerSeries:
|
|
2638
|
-
maxHeatChartCellLimit:
|
|
2637
|
+
maxBoxTwoSeriesCountPerSeries: P,
|
|
2638
|
+
maxBoxThreePlusSeriesCountTotal: D,
|
|
2639
|
+
maxBoxThreePlusSeriesCountPerSeries: B,
|
|
2640
|
+
maxHeatChartCellLimit: M
|
|
2639
2641
|
} = yt(n);
|
|
2640
2642
|
switch (r) {
|
|
2641
2643
|
case y.BarSeries:
|
|
2642
2644
|
case y.ComboLineAndBarSeries:
|
|
2643
2645
|
{
|
|
2644
|
-
const
|
|
2645
|
-
i <= o ? i === 0 ? s = !0 : i === 1 ? s = e <= d : i === 2 ? s = e <= c &&
|
|
2646
|
+
const L = e / i;
|
|
2647
|
+
i <= o ? i === 0 ? s = !0 : i === 1 ? s = e <= d : i === 2 ? s = e <= c && L <= l : i > 2 && (s = e <= u && L <= p) : s = !1;
|
|
2646
2648
|
}
|
|
2647
2649
|
break;
|
|
2648
2650
|
case y.LineSeries:
|
|
2649
2651
|
case y.RadarSeries:
|
|
2650
2652
|
{
|
|
2651
|
-
const
|
|
2652
|
-
i <= f ? i === 0 ? s = !0 : i === 1 ? s = e <= h : i === 2 ? s = e <= b &&
|
|
2653
|
+
const L = e / i;
|
|
2654
|
+
i <= f ? i === 0 ? s = !0 : i === 1 ? s = e <= h : i === 2 ? s = e <= b && L <= m : i > 2 && (s = e <= x && L <= S) : s = !1;
|
|
2653
2655
|
}
|
|
2654
2656
|
break;
|
|
2655
2657
|
case y.PieSeries:
|
|
@@ -2657,12 +2659,12 @@ function Ge(t) {
|
|
|
2657
2659
|
break;
|
|
2658
2660
|
case y.BoxPlotSeries:
|
|
2659
2661
|
{
|
|
2660
|
-
const
|
|
2661
|
-
i <=
|
|
2662
|
+
const L = e / i;
|
|
2663
|
+
i <= T ? i === 0 ? s = !0 : i === 1 ? s = e <= w : i === 2 ? s = e <= A && L <= P : i > 2 && (s = e <= D && L <= B) : s = !1;
|
|
2662
2664
|
}
|
|
2663
2665
|
break;
|
|
2664
2666
|
case y.HeatSeries:
|
|
2665
|
-
s = e <=
|
|
2667
|
+
s = e <= M;
|
|
2666
2668
|
break;
|
|
2667
2669
|
case y.GaugeSeries:
|
|
2668
2670
|
s = e <= F;
|
|
@@ -2671,7 +2673,7 @@ function Ge(t) {
|
|
|
2671
2673
|
}
|
|
2672
2674
|
return s;
|
|
2673
2675
|
}
|
|
2674
|
-
function
|
|
2676
|
+
function Bi(t = [], e) {
|
|
2675
2677
|
const i = t.find((r) => r.name === e)?.alias;
|
|
2676
2678
|
return i !== "" ? i ?? e : e;
|
|
2677
2679
|
}
|
|
@@ -2738,7 +2740,7 @@ function ei(t, e) {
|
|
|
2738
2740
|
const i = e.find((n) => n in t);
|
|
2739
2741
|
return { isInItem: i !== void 0, expr: i };
|
|
2740
2742
|
}
|
|
2741
|
-
function
|
|
2743
|
+
function pi(t) {
|
|
2742
2744
|
return ei(t, Tr);
|
|
2743
2745
|
}
|
|
2744
2746
|
function wu(t, e) {
|
|
@@ -2984,12 +2986,12 @@ function qt(t, e) {
|
|
|
2984
2986
|
}
|
|
2985
2987
|
function $u(t) {
|
|
2986
2988
|
return ue(
|
|
2987
|
-
|
|
2989
|
+
k(t)
|
|
2988
2990
|
)?.sourceJSON?.advancedQueryCapabilities.supportedOperationsWithCacheHint.includes("queryBins");
|
|
2989
2991
|
}
|
|
2990
2992
|
function io(t) {
|
|
2991
2993
|
let e = !1;
|
|
2992
|
-
const r = ue(
|
|
2994
|
+
const r = ue(k(t))?.sourceJSON;
|
|
2993
2995
|
if (r) {
|
|
2994
2996
|
const n = r.queryBinsCapabilities?.supportsFixedIntervalBin, a = r.queryBinsCapabilities?.supportedStatisticTypes, s = [I.Maximum, I.Count].every(
|
|
2995
2997
|
(o) => a?.includes(o.toUpperCase()) || a?.includes(o.toLowerCase())
|
|
@@ -3002,7 +3004,7 @@ function qu(t) {
|
|
|
3002
3004
|
let e;
|
|
3003
3005
|
return Ee(t) ? e = t.layer : e = t, e;
|
|
3004
3006
|
}
|
|
3005
|
-
function
|
|
3007
|
+
function k(t) {
|
|
3006
3008
|
let e;
|
|
3007
3009
|
return Ee(t) ? e = t.layer : e = t, e;
|
|
3008
3010
|
}
|
|
@@ -3015,7 +3017,7 @@ function Eu(t) {
|
|
|
3015
3017
|
const { chartConfig: e, queryObject: i } = t;
|
|
3016
3018
|
let r;
|
|
3017
3019
|
if (i) {
|
|
3018
|
-
const n =
|
|
3020
|
+
const n = k(i);
|
|
3019
3021
|
Js(n) ? r = {
|
|
3020
3022
|
id: n.id,
|
|
3021
3023
|
layerType: "ArcGISImageServiceLayer"
|
|
@@ -3056,17 +3058,17 @@ function no(t) {
|
|
|
3056
3058
|
async function ao(t) {
|
|
3057
3059
|
const { queryObject: e, queryConfig: i, outputFormat: r, dataFormat: n, outAnalytics: a } = t, { where: s, geometry: o, distance: d, units: l, timeExtent: c } = i;
|
|
3058
3060
|
let p;
|
|
3059
|
-
const u =
|
|
3061
|
+
const u = k(e), f = ue(u);
|
|
3060
3062
|
if (f) {
|
|
3061
|
-
const m = { where: Z([s, f.definitionExpression]) }, b = { query: m },
|
|
3062
|
-
if (
|
|
3063
|
-
const v = no(l), { xmin: F, ymin:
|
|
3064
|
-
m.geometryType = "esriGeometryEnvelope", m.geometry = `${F},${
|
|
3063
|
+
const m = { where: Z([s, f.definitionExpression]) }, b = { query: m }, S = Ot(o)?.extent?.toJSON();
|
|
3064
|
+
if (S !== void 0) {
|
|
3065
|
+
const v = no(l), { xmin: F, ymin: T, xmax: w, ymax: A } = S;
|
|
3066
|
+
m.geometryType = "esriGeometryEnvelope", m.geometry = `${F},${T},${w},${A}`, d !== void 0 && (m.distance = d.toString()), v !== void 0 && (m.units = v, o?.spatialReference?.wkid != null && (m.inSR = o.spatialReference.wkid.toString()));
|
|
3065
3067
|
}
|
|
3066
3068
|
c && (m.time = `${c[0]},${c[1]}`);
|
|
3067
|
-
const
|
|
3069
|
+
const x = `${f.url}/${f.layerId}/queryAnalytic?f=${r}&dataFormat=${n}&outAnalytics=${a}`;
|
|
3068
3070
|
try {
|
|
3069
|
-
p = (await ti(
|
|
3071
|
+
p = (await ti(x, b)).data?.features?.[0]?.attributes;
|
|
3070
3072
|
} catch (v) {
|
|
3071
3073
|
const F = (await $e(
|
|
3072
3074
|
Ae(document.documentElement).t9nLocale,
|
|
@@ -3088,7 +3090,7 @@ function _r(t, e) {
|
|
|
3088
3090
|
async function so(t) {
|
|
3089
3091
|
const { chartConfig: e, queryObject: i, queryConfig: r, errorStrings: n, options: a } = t;
|
|
3090
3092
|
let s;
|
|
3091
|
-
const o =
|
|
3093
|
+
const o = k(i), d = to(o);
|
|
3092
3094
|
if (d && i && "queryAttributeBins" in i) {
|
|
3093
3095
|
const { x: l, y: c, xTemporalBinning: p, yTemporalBinning: u } = e.series[0], { outTimeZone: f, firstDayOfWeek: h, includeLeapDay: m } = e, b = xo({
|
|
3094
3096
|
queryObject: i,
|
|
@@ -3104,8 +3106,8 @@ async function so(t) {
|
|
|
3104
3106
|
});
|
|
3105
3107
|
try {
|
|
3106
3108
|
s = await i.queryAttributeBins(b);
|
|
3107
|
-
} catch (
|
|
3108
|
-
throw new pe(oe.QueryFeaturesError, n.errors.queryError,
|
|
3109
|
+
} catch (S) {
|
|
3110
|
+
throw new pe(oe.QueryFeaturesError, n.errors.queryError, S);
|
|
3109
3111
|
}
|
|
3110
3112
|
}
|
|
3111
3113
|
if (!d)
|
|
@@ -3157,7 +3159,7 @@ async function lo(t) {
|
|
|
3157
3159
|
async function co(t) {
|
|
3158
3160
|
const { queryConfig: e, x: i, queryObject: r, chartSubType: n, isGaugeByFeature: a } = t;
|
|
3159
3161
|
let s;
|
|
3160
|
-
const o =
|
|
3162
|
+
const o = k(r), { idField: d, isTraditionalTypeOID: l } = Oe(o), c = Vi({ queryObject: r, queryConfig: e });
|
|
3161
3163
|
c.outFields = a || n === g.PieNoAggregation || n === g.BarAndLineNoAggregation || n === g.BarAndLineSplitByNoAggregation ? [l ? d : "*"] : [i], c.outFields?.[0] === i && (c.returnDistinctValues = !0);
|
|
3162
3164
|
try {
|
|
3163
3165
|
s = await r.queryFeatureCount(c);
|
|
@@ -3211,7 +3213,7 @@ async function Vt(t) {
|
|
|
3211
3213
|
async function Gr(t) {
|
|
3212
3214
|
const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: r, abortKey: n } = t;
|
|
3213
3215
|
let a = [];
|
|
3214
|
-
const s =
|
|
3216
|
+
const s = k(e), o = Co(s), d = Vi({
|
|
3215
3217
|
queryObject: e,
|
|
3216
3218
|
queryConfig: i,
|
|
3217
3219
|
maxRecordCountFactor: o
|
|
@@ -3258,13 +3260,13 @@ async function po(t) {
|
|
|
3258
3260
|
async function Le(t) {
|
|
3259
3261
|
const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: r, featureCount: n, noBatch: a, abortKey: s } = t;
|
|
3260
3262
|
let o = [];
|
|
3261
|
-
const d =
|
|
3263
|
+
const d = k(e), l = n ?? 1, c = Hr(d);
|
|
3262
3264
|
if (a !== !0 && l > c && d?.capabilities?.query.supportsPagination) {
|
|
3263
3265
|
let p = 0, u = 0;
|
|
3264
3266
|
const f = Math.ceil(l / c), h = Math.ceil(f / Q.maxParallelRequests), m = [];
|
|
3265
3267
|
for (; u < h; ) {
|
|
3266
3268
|
p = u * Q.maxParallelRequests * c;
|
|
3267
|
-
const
|
|
3269
|
+
const S = po({
|
|
3268
3270
|
queryConfig: { ...i, start: p },
|
|
3269
3271
|
queryObject: e,
|
|
3270
3272
|
maxRecords: c,
|
|
@@ -3272,7 +3274,7 @@ async function Le(t) {
|
|
|
3272
3274
|
returnUniqueIdsOnly: r,
|
|
3273
3275
|
abortKey: s
|
|
3274
3276
|
});
|
|
3275
|
-
m.push(
|
|
3277
|
+
m.push(S), u += 1;
|
|
3276
3278
|
}
|
|
3277
3279
|
o = (await Promise.all(m)).flat();
|
|
3278
3280
|
} else (Number.isNaN(l) || l >= 0) && (o = await Gr({
|
|
@@ -3313,7 +3315,7 @@ async function fo(t) {
|
|
|
3313
3315
|
const { unit: d } = a;
|
|
3314
3316
|
try {
|
|
3315
3317
|
if (d) {
|
|
3316
|
-
const l = ue(
|
|
3318
|
+
const l = ue(k(e)) ?? void 0;
|
|
3317
3319
|
if (o = qt(l, r), o && e && "queryAttributeBins" in e) {
|
|
3318
3320
|
const c = bo({
|
|
3319
3321
|
queryObject: e,
|
|
@@ -3373,7 +3375,7 @@ function Z(t, e) {
|
|
|
3373
3375
|
function ho(t, e) {
|
|
3374
3376
|
let i = e;
|
|
3375
3377
|
if (t !== void 0) {
|
|
3376
|
-
const r =
|
|
3378
|
+
const r = k(t), n = ue(r)?.timeExtent;
|
|
3377
3379
|
n?.start != null && n?.end != null && (i = [n.start.valueOf(), n.end.valueOf()]);
|
|
3378
3380
|
}
|
|
3379
3381
|
return i;
|
|
@@ -3401,15 +3403,15 @@ function Ot(t) {
|
|
|
3401
3403
|
function Qr(t) {
|
|
3402
3404
|
return t === void 0 ? ["*"] : Array.from(new Set(t));
|
|
3403
3405
|
}
|
|
3404
|
-
function
|
|
3405
|
-
const { queryType: e, queryObject: i, queryConfig: r } = t, { where: n, outStatistics: a, geometry: s, distance: o, units: d, timeExtent: l, returnDistinctValues: c } = r ?? {}, p =
|
|
3406
|
+
function ui(t) {
|
|
3407
|
+
const { queryType: e, queryObject: i, queryConfig: r } = t, { where: n, outStatistics: a, geometry: s, distance: o, units: d, timeExtent: l, returnDistinctValues: c } = r ?? {}, p = k(i);
|
|
3406
3408
|
let f = ue(p)?.createQuery() ?? new la(), h;
|
|
3407
|
-
const m =
|
|
3409
|
+
const m = fi(p).idFields;
|
|
3408
3410
|
if (e === "AttributeBinsQuery" && r?.objectIds?.[0] !== void 0 && m && (h = `${m} IN (${r.objectIds.join(",")})`), e === "AttributeBinsQuery" && (f = new oa(f.toJSON())), f.where = Z([f.where, n, h]), "returnDistinctValues" in f && (f.returnDistinctValues = c ?? !1), a !== void 0) {
|
|
3409
|
-
const
|
|
3411
|
+
const S = ro(p);
|
|
3410
3412
|
f.outStatistics = a.filter(
|
|
3411
|
-
(
|
|
3412
|
-
).map((
|
|
3413
|
+
(x) => x.statisticType !== I.EnvelopeAggregate || S
|
|
3414
|
+
).map((x) => da.fromJSON(x));
|
|
3413
3415
|
}
|
|
3414
3416
|
const b = Ot(s);
|
|
3415
3417
|
return b !== void 0 && (f.geometry = b, r?.spatialRelationship && (f.spatialRelationship = r.spatialRelationship), zr(p) && (o !== void 0 && (f.distance = o), d !== void 0 && (f.units = d))), l && (f.timeExtent = new Sr({
|
|
@@ -3430,12 +3432,12 @@ function go(t) {
|
|
|
3430
3432
|
return e;
|
|
3431
3433
|
}
|
|
3432
3434
|
function bo(t) {
|
|
3433
|
-
const { queryObject: e, queryConfig: i, temporalBinning: r, dateField: n, splitByField: a } = t, s =
|
|
3435
|
+
const { queryObject: e, queryConfig: i, temporalBinning: r, dateField: n, splitByField: a } = t, s = k(e), d = Fe(e).find((x) => x.name === n)?.type, l = ui({
|
|
3434
3436
|
queryType: "AttributeBinsQuery",
|
|
3435
3437
|
queryObject: e,
|
|
3436
3438
|
queryConfig: i
|
|
3437
|
-
}), { unit: c, size: p, timeAggregationType: u, start: f, end: h, offset: m, outTimeZone: b } = r,
|
|
3438
|
-
if (l.lowerBoundaryAlias =
|
|
3439
|
+
}), { unit: c, size: p, timeAggregationType: u, start: f, end: h, offset: m, outTimeZone: b } = r, S = Ur(n);
|
|
3440
|
+
if (l.lowerBoundaryAlias = S.lowerBoundaryAlias, l.upperBoundaryAlias = S.upperBoundaryAlias, d !== H.DateOnly && (l.outTimeZone = b ?? Intl.DateTimeFormat().resolvedOptions().timeZone), l.binParameters = {
|
|
3439
3441
|
type: "date",
|
|
3440
3442
|
field: n,
|
|
3441
3443
|
interval: { unit: c, value: p },
|
|
@@ -3545,7 +3547,7 @@ function xo(t) {
|
|
|
3545
3547
|
includeLeapDay: d,
|
|
3546
3548
|
configTimeZone: l,
|
|
3547
3549
|
options: c
|
|
3548
|
-
} = t, p = Fe(e), u = p.find((
|
|
3550
|
+
} = t, p = Fe(e), u = p.find((T) => T.name === r)?.type, f = p.find((T) => T.name === n)?.type, h = ui({
|
|
3549
3551
|
queryType: "AttributeBinsQuery",
|
|
3550
3552
|
queryObject: e,
|
|
3551
3553
|
queryConfig: i
|
|
@@ -3554,9 +3556,9 @@ function xo(t) {
|
|
|
3554
3556
|
type: "fixed-interval",
|
|
3555
3557
|
interval: 1
|
|
3556
3558
|
}, h.lowerBoundaryAlias = Q.heatChartLowerBoundaryAlias, h.upperBoundaryAlias = Q.heatChartUpperBoundaryAlias, u !== H.DateOnly) {
|
|
3557
|
-
const
|
|
3558
|
-
let A = l ??
|
|
3559
|
-
A === "unknown" ? A = "Etc/UTC" : A === "system" && (A =
|
|
3559
|
+
const T = Intl.DateTimeFormat().resolvedOptions().timeZone, w = c?.view && "timeZone" in c?.view ? c.view.timeZone : void 0;
|
|
3560
|
+
let A = l ?? w ?? T;
|
|
3561
|
+
A === "unknown" ? A = "Etc/UTC" : A === "system" && (A = T), h.outTimeZone = A;
|
|
3560
3562
|
}
|
|
3561
3563
|
o !== void 0 && (h.binParameters.firstDayOfWeek = o);
|
|
3562
3564
|
const m = rr({
|
|
@@ -3565,8 +3567,8 @@ function xo(t) {
|
|
|
3565
3567
|
xOrYFieldType: u,
|
|
3566
3568
|
addIntervalStatement: !1,
|
|
3567
3569
|
includeLeapDay: d
|
|
3568
|
-
}), { field: b, expression:
|
|
3569
|
-
b ? h.binParameters.field = b :
|
|
3570
|
+
}), { field: b, expression: S, start: x, end: v } = m;
|
|
3571
|
+
b ? h.binParameters.field = b : S && (h.binParameters.expression = S, h.binParameters.expressionValueType = "integer", h.binParameters.type === "fixed-interval" && (x !== void 0 && (h.binParameters.start = x), v !== void 0 && (h.binParameters.end = v)));
|
|
3570
3572
|
const F = rr({
|
|
3571
3573
|
temporalBinning: s,
|
|
3572
3574
|
xOrY: n,
|
|
@@ -3582,7 +3584,7 @@ function xo(t) {
|
|
|
3582
3584
|
}), h;
|
|
3583
3585
|
}
|
|
3584
3586
|
function vo(t) {
|
|
3585
|
-
const { queryObject: e, queryConfig: i, xStep: r, xMin: n, xMax: a, x: s, y: o, yStep: d } = t, l =
|
|
3587
|
+
const { queryObject: e, queryConfig: i, xStep: r, xMin: n, xMax: a, x: s, y: o, yStep: d } = t, l = ui({
|
|
3586
3588
|
queryType: "AttributeBinsQuery",
|
|
3587
3589
|
queryObject: e,
|
|
3588
3590
|
queryConfig: i
|
|
@@ -3602,9 +3604,9 @@ function vo(t) {
|
|
|
3602
3604
|
}, l;
|
|
3603
3605
|
}
|
|
3604
3606
|
function Vi(t) {
|
|
3605
|
-
const { queryObject: e, queryConfig: i, maxRecordCountFactor: r } = t, { groupByFieldsForStatistics: n, orderByFields: a, gdbVersion: s, start: o, num: d, outFields: l } = i ?? {}, c =
|
|
3607
|
+
const { queryObject: e, queryConfig: i, maxRecordCountFactor: r } = t, { groupByFieldsForStatistics: n, orderByFields: a, gdbVersion: s, start: o, num: d, outFields: l } = i ?? {}, c = ui({ queryType: "Query", queryObject: e, queryConfig: i });
|
|
3606
3608
|
c.returnGeometry = !1;
|
|
3607
|
-
const p =
|
|
3609
|
+
const p = k(e);
|
|
3608
3610
|
return c.outFields = Qr(l), c.groupByFieldsForStatistics = n ?? c.groupByFieldsForStatistics, c.orderByFields = a ?? [], c.objectIds = i?.objectIds, r !== void 0 && (c.maxRecordCountFactor = r), s !== void 0 && s !== "" && (c.gdbVersion = s), d !== void 0 && (c.num = d), o !== void 0 && (c.start = o, c.num = c.num ?? Hr(p)), c;
|
|
3609
3611
|
}
|
|
3610
3612
|
function Co(t) {
|
|
@@ -3624,7 +3626,7 @@ const Vu = {
|
|
|
3624
3626
|
AdditionalProperties: "additionalProperties",
|
|
3625
3627
|
Enum: "enum",
|
|
3626
3628
|
AnyOf: "anyOf"
|
|
3627
|
-
},
|
|
3629
|
+
}, W = {
|
|
3628
3630
|
BadData: "badData",
|
|
3629
3631
|
EmptyDataSet: "emptyDataSet",
|
|
3630
3632
|
InvalidConfig: "invalidConfig",
|
|
@@ -3659,43 +3661,43 @@ function wo(t) {
|
|
|
3659
3661
|
return e;
|
|
3660
3662
|
}
|
|
3661
3663
|
async function To(t) {
|
|
3662
|
-
const { queryConfig: e, chartConfig: i, queryObject: r, options: n, abortKey: a } = t, s = i.series[0], { x: o, dataTransformationType: d, binCount: l } = s, c =
|
|
3664
|
+
const { queryConfig: e, chartConfig: i, queryObject: r, options: n, abortKey: a } = t, s = i.series[0], { x: o, dataTransformationType: d, binCount: l } = s, c = k(r);
|
|
3663
3665
|
if (!de(c))
|
|
3664
3666
|
throw new pe(oe.LayerNotSupported);
|
|
3665
3667
|
c.loaded || await c.load();
|
|
3666
|
-
const p = await c.generateRasterInfo(c.rasterFunction), u = n?.view, f = Ot(e.geometry) ?? c.fullExtent, h = p.bandCount === 1 ? 0 : p.bandInfos.findIndex((
|
|
3668
|
+
const p = await c.generateRasterInfo(c.rasterFunction), u = n?.view, f = Ot(e.geometry) ?? c.fullExtent, h = p.bandCount === 1 ? 0 : p.bandInfos.findIndex((S) => S.name === o);
|
|
3667
3669
|
let m, b;
|
|
3668
3670
|
if (u === void 0 && (d === void 0 || d === ee.None) && l && Array.isArray(p.histograms) && p.histograms.length > h && p.histograms[h].size % l === 0 && Array.isArray(p.statistics) && p?.statistics?.length > h)
|
|
3669
3671
|
m = p.histograms[h], b = p.statistics[h];
|
|
3670
3672
|
else {
|
|
3671
|
-
let
|
|
3673
|
+
let S, x, v;
|
|
3672
3674
|
if (u)
|
|
3673
|
-
|
|
3675
|
+
S = u.resolution, x = u.resolution, v = u.spatialReference;
|
|
3674
3676
|
else {
|
|
3675
|
-
const A = Fo,
|
|
3677
|
+
const A = Fo, P = 2, D = p.width, B = p.height, M = Math.max(
|
|
3676
3678
|
0,
|
|
3677
|
-
Math.ceil(Math.log(Math.max(
|
|
3678
|
-
),
|
|
3679
|
-
|
|
3679
|
+
Math.ceil(Math.log(Math.max(D, B) / A) / Math.log(P))
|
|
3680
|
+
), L = P ** M;
|
|
3681
|
+
S = p.pixelSize.x * L, x = p.pixelSize.y * L, v = c.spatialReference;
|
|
3680
3682
|
}
|
|
3681
3683
|
const F = new Aa({
|
|
3682
|
-
x,
|
|
3683
|
-
y:
|
|
3684
|
+
x: S,
|
|
3685
|
+
y: x,
|
|
3684
3686
|
spatialReference: v
|
|
3685
|
-
}),
|
|
3687
|
+
}), T = wo(d), w = await ea(
|
|
3686
3688
|
c,
|
|
3687
3689
|
{
|
|
3688
3690
|
bandIds: [h],
|
|
3689
3691
|
geometry: f,
|
|
3690
3692
|
histogramSize: l ?? void 0,
|
|
3691
3693
|
pixelSize: F,
|
|
3692
|
-
transformType:
|
|
3694
|
+
transformType: T
|
|
3693
3695
|
},
|
|
3694
3696
|
{
|
|
3695
3697
|
signal: a !== void 0 ? et.get(a)?.signal : void 0
|
|
3696
3698
|
}
|
|
3697
3699
|
);
|
|
3698
|
-
b =
|
|
3700
|
+
b = w.statistics[0], m = w.histograms[0];
|
|
3699
3701
|
}
|
|
3700
3702
|
return { histogram: m, statistics: b };
|
|
3701
3703
|
}
|
|
@@ -3756,18 +3758,18 @@ async function Ao(t) {
|
|
|
3756
3758
|
}
|
|
3757
3759
|
} : s = {
|
|
3758
3760
|
valid: !1,
|
|
3759
|
-
invalidType:
|
|
3761
|
+
invalidType: W.EmptyDataSet
|
|
3760
3762
|
};
|
|
3761
3763
|
} else
|
|
3762
3764
|
s = {
|
|
3763
3765
|
valid: !1,
|
|
3764
|
-
invalidType:
|
|
3766
|
+
invalidType: W.BadData
|
|
3765
3767
|
};
|
|
3766
3768
|
return s;
|
|
3767
3769
|
}
|
|
3768
3770
|
const Bo = (t) => t.series[0].x;
|
|
3769
3771
|
function Lo(t) {
|
|
3770
|
-
const { chartConfig: e, layer: i, selectionDataItems: r } = t, n =
|
|
3772
|
+
const { chartConfig: e, layer: i, selectionDataItems: r } = t, n = Li(i, Bo(e)), s = r.map((l) => [
|
|
3771
3773
|
l.minValue,
|
|
3772
3774
|
l.maxValue
|
|
3773
3775
|
]).reduce((l, c, p) => {
|
|
@@ -3847,7 +3849,7 @@ async function Po(t) {
|
|
|
3847
3849
|
const { queryObject: e } = t;
|
|
3848
3850
|
let i = !1;
|
|
3849
3851
|
if (!de(e)) {
|
|
3850
|
-
const r = eo(e), n =
|
|
3852
|
+
const r = eo(e), n = k(e), a = ue(n);
|
|
3851
3853
|
if (r && a?.url !== void 0 && a.url !== null) {
|
|
3852
3854
|
const s = `${a.url}/${a.layerId}?f=json`;
|
|
3853
3855
|
try {
|
|
@@ -3886,25 +3888,25 @@ async function $o(t) {
|
|
|
3886
3888
|
fieldValue: h,
|
|
3887
3889
|
slopePropertyList: m,
|
|
3888
3890
|
interceptPropertyList: b,
|
|
3889
|
-
r2PropertyList:
|
|
3890
|
-
} = Do,
|
|
3891
|
+
r2PropertyList: S
|
|
3892
|
+
} = Do, x = `[{"${u}": "${f}", "${h}":"${s},${o}"}]`, v = await ao({
|
|
3891
3893
|
queryObject: i,
|
|
3892
3894
|
queryConfig: n,
|
|
3893
3895
|
outputFormat: p,
|
|
3894
3896
|
dataFormat: c,
|
|
3895
|
-
outAnalytics:
|
|
3897
|
+
outAnalytics: x
|
|
3896
3898
|
});
|
|
3897
3899
|
if (v !== void 0) {
|
|
3898
|
-
let F = Number.NaN,
|
|
3899
|
-
const { expr:
|
|
3900
|
-
|
|
3901
|
-
const { dataContextXMinField:
|
|
3900
|
+
let F = Number.NaN, T = Number.NaN;
|
|
3901
|
+
const { expr: w } = ei(v, m), { expr: A } = ei(v, b), { expr: P } = ei(v, S);
|
|
3902
|
+
w !== void 0 && Number.isFinite(v[w]) && (F = v[w]), A !== void 0 && Number.isFinite(v[A]) && (T = v[A]), P !== void 0 && Number.isFinite(v[P]) && (d = v[P]);
|
|
3903
|
+
const { dataContextXMinField: D, dataContextXMaxField: B, dataContextYMinField: M, dataContextYMaxField: L } = C.scatterplotAggregationFields, R = e.get(D) ?? Number.NaN, G = e.get(B) ?? Number.NaN, z = e.get(M) ?? Number.NaN, N = e.get(L) ?? Number.NaN, we = (G - R) / 100;
|
|
3902
3904
|
let Pe = R - we, U = Number.NaN;
|
|
3903
|
-
for (; !(U >=
|
|
3904
|
-
Pe += we, U = F * Pe +
|
|
3905
|
-
let Me =
|
|
3906
|
-
for (; !(Se >=
|
|
3907
|
-
Me -= we, Se = F * Me +
|
|
3905
|
+
for (; !(U >= z && U <= N) && Pe <= G; )
|
|
3906
|
+
Pe += we, U = F * Pe + T;
|
|
3907
|
+
let Me = G + we, Se = Number.NaN;
|
|
3908
|
+
for (; !(Se >= z && Se <= N) && Me >= R; )
|
|
3909
|
+
Me -= we, Se = F * Me + T;
|
|
3908
3910
|
l = [
|
|
3909
3911
|
{ [s]: Pe, [o]: U },
|
|
3910
3912
|
{ [s]: Me, [o]: Se }
|
|
@@ -3996,7 +3998,7 @@ function zo(t) {
|
|
|
3996
3998
|
const { chartConfig: e, layer: i, selectionDataItems: r } = t;
|
|
3997
3999
|
let n;
|
|
3998
4000
|
if (r.length > 0) {
|
|
3999
|
-
const { x: a, y: s } = jo(e), o =
|
|
4001
|
+
const { x: a, y: s } = jo(e), o = Li(i, a), d = Li(i, s);
|
|
4000
4002
|
if (o !== void 0 && d !== void 0) {
|
|
4001
4003
|
let l = r[0]?.[a], c = r[0]?.[s], p = l, u = c;
|
|
4002
4004
|
r.forEach((f) => {
|
|
@@ -4110,7 +4112,7 @@ const tn = qi(
|
|
|
4110
4112
|
},
|
|
4111
4113
|
(t) => JSON.stringify(t, Object.keys(t).sort())
|
|
4112
4114
|
// stringify with sorted keys
|
|
4113
|
-
),
|
|
4115
|
+
), Li = (t, e) => {
|
|
4114
4116
|
let i;
|
|
4115
4117
|
const r = t.serviceRasterInfo?.bandInfos;
|
|
4116
4118
|
if (e && r && r.length > 0) {
|
|
@@ -4147,7 +4149,7 @@ async function Ho(t) {
|
|
|
4147
4149
|
let s = [];
|
|
4148
4150
|
if (e !== void 0)
|
|
4149
4151
|
try {
|
|
4150
|
-
const o =
|
|
4152
|
+
const o = k(e);
|
|
4151
4153
|
o.loaded || await o.load();
|
|
4152
4154
|
const l = {
|
|
4153
4155
|
geometry: Ot(i.geometry) ?? o.fullExtent,
|
|
@@ -4246,13 +4248,13 @@ async function Hu(t) {
|
|
|
4246
4248
|
if (s)
|
|
4247
4249
|
o = await Go(t);
|
|
4248
4250
|
else {
|
|
4249
|
-
const d =
|
|
4251
|
+
const d = k(e), l = ue(d);
|
|
4250
4252
|
l !== void 0 ? n && i !== void 0 && !l.isTable ? (l.outFields = ["*"], o = await i.whenLayerView(l)) : o = e : r?.iLayer && r.iLayer?.layerType === "ArcGISFeatureLayer" && (o = await ji(r.iLayer, a));
|
|
4251
4253
|
}
|
|
4252
4254
|
return o;
|
|
4253
4255
|
}
|
|
4254
4256
|
function Fe(t, e) {
|
|
4255
|
-
const i =
|
|
4257
|
+
const i = k(t);
|
|
4256
4258
|
let r = [];
|
|
4257
4259
|
if (i !== void 0) {
|
|
4258
4260
|
const n = e === !0 && i?.popupTemplate?.fieldInfos !== void 0;
|
|
@@ -4272,7 +4274,7 @@ function Fe(t, e) {
|
|
|
4272
4274
|
function nn(t, e = []) {
|
|
4273
4275
|
return e.find((i) => i.name === t);
|
|
4274
4276
|
}
|
|
4275
|
-
function
|
|
4277
|
+
function fi(t) {
|
|
4276
4278
|
let e, i = !1;
|
|
4277
4279
|
if (de(t))
|
|
4278
4280
|
e = [Zr(t)];
|
|
@@ -4287,7 +4289,7 @@ function Oe(t) {
|
|
|
4287
4289
|
if (de(t))
|
|
4288
4290
|
e = Zr(t);
|
|
4289
4291
|
else if (t) {
|
|
4290
|
-
const r =
|
|
4292
|
+
const r = fi(t);
|
|
4291
4293
|
i = r.isTraditionalTypeOID, r.idFields && (e = r.idFields[0]);
|
|
4292
4294
|
}
|
|
4293
4295
|
return { idField: e, isTraditionalTypeOID: i };
|
|
@@ -4325,21 +4327,21 @@ function Ko(t) {
|
|
|
4325
4327
|
function Ku(t) {
|
|
4326
4328
|
return t.filter((e) => Lt(e)).map((e) => e.name);
|
|
4327
4329
|
}
|
|
4328
|
-
function
|
|
4330
|
+
function Di(t, e) {
|
|
4329
4331
|
let i;
|
|
4330
4332
|
if (e) {
|
|
4331
|
-
const n =
|
|
4333
|
+
const n = k(t).getFieldDomain(e);
|
|
4332
4334
|
n instanceof pa && (i = n);
|
|
4333
4335
|
}
|
|
4334
4336
|
return i;
|
|
4335
4337
|
}
|
|
4336
|
-
function
|
|
4338
|
+
function Ni(t, e) {
|
|
4337
4339
|
let i = e?.getName(t?.toString()) ?? e?.getName(t) ?? e?.getName(Number(t));
|
|
4338
4340
|
return i === null && (i = void 0), i;
|
|
4339
4341
|
}
|
|
4340
4342
|
function nr(t) {
|
|
4341
4343
|
const { queryObject: e, fieldName: i, fieldValue: r } = t;
|
|
4342
|
-
return de(e) ? void 0 :
|
|
4344
|
+
return de(e) ? void 0 : Ni(r, Di(e, i));
|
|
4343
4345
|
}
|
|
4344
4346
|
async function an(t) {
|
|
4345
4347
|
let e = [];
|
|
@@ -4397,15 +4399,15 @@ function on(t) {
|
|
|
4397
4399
|
spatialRelationship: m
|
|
4398
4400
|
} = o ?? {}, {
|
|
4399
4401
|
where: b,
|
|
4400
|
-
gdbVersion:
|
|
4401
|
-
timeExtent:
|
|
4402
|
+
gdbVersion: S,
|
|
4403
|
+
timeExtent: x,
|
|
4402
4404
|
geometry: v,
|
|
4403
4405
|
distance: F,
|
|
4404
|
-
units:
|
|
4405
|
-
objectIds:
|
|
4406
|
+
units: T,
|
|
4407
|
+
objectIds: w,
|
|
4406
4408
|
spatialRelationship: A
|
|
4407
|
-
} = r ?? {},
|
|
4408
|
-
return
|
|
4409
|
+
} = r ?? {}, P = s[0], { query: D } = P, { where: B } = D ?? {}, M = E(s), L = { ...D };
|
|
4410
|
+
return L.where = Z([d, b]), M !== g.BarAndLineSplitBy && M !== g.BoxPlotMonoFieldAndSplitBy && M !== g.BoxPlotMonoFieldAndCategoryAndSplitBy && M !== g.BoxPlotMultiFieldsAndSplitBy && M !== g.BarAndLineSplitByNoAggregation && (L.where = Z([L.where, B])), i.orderOptions?.orderByFields !== void 0 && (L.orderByFields = i.orderOptions.orderByFields), L.gdbVersion = S ?? l, L.timeExtent = ho(e, x ?? c), L.geometry = de(e) ? Qo({
|
|
4409
4411
|
queryObject: e,
|
|
4410
4412
|
defaultGeometry: v ?? p,
|
|
4411
4413
|
ignoreViewExtent: n,
|
|
@@ -4414,7 +4416,7 @@ function on(t) {
|
|
|
4414
4416
|
queryObject: e,
|
|
4415
4417
|
defaultGeometry: v ?? p,
|
|
4416
4418
|
ignoreViewExtent: n
|
|
4417
|
-
}),
|
|
4419
|
+
}), L.distance = F ?? u, L.units = T ?? f, L.objectIds = w ?? h, L.spatialRelationship = A ?? m, D?.outStatistics?.[0]?.statisticType === I.Count && (L.returnDistinctValues = D?.returnDistinctValues ?? !1), L;
|
|
4418
4420
|
}
|
|
4419
4421
|
async function Xu(t) {
|
|
4420
4422
|
let e = [];
|
|
@@ -4561,7 +4563,7 @@ const ef = {
|
|
|
4561
4563
|
y.ComboLineAndBarSeries,
|
|
4562
4564
|
y.RadarSeries
|
|
4563
4565
|
];
|
|
4564
|
-
function
|
|
4566
|
+
function vi(t, e) {
|
|
4565
4567
|
let i = 0;
|
|
4566
4568
|
if (t !== e) {
|
|
4567
4569
|
const r = t.split("."), n = e.split(".");
|
|
@@ -4585,13 +4587,13 @@ function ll(t) {
|
|
|
4585
4587
|
function dl(t) {
|
|
4586
4588
|
let e = dt.Same, i = [];
|
|
4587
4589
|
if (ll(t) && t !== void 0) {
|
|
4588
|
-
lt.sort(
|
|
4589
|
-
const n =
|
|
4590
|
+
lt.sort(vi);
|
|
4591
|
+
const n = vi(t, lt[lt.length - 1]);
|
|
4590
4592
|
if (n === 1 ? e = dt.Newer : n === -1 && (e = dt.Older), e === dt.Newer || e === dt.Same)
|
|
4591
4593
|
i.push(t);
|
|
4592
4594
|
else {
|
|
4593
4595
|
for (let a = lt.length - 2; a >= 0; a -= 1)
|
|
4594
|
-
if (
|
|
4596
|
+
if (vi(t, lt[a]) >= 0) {
|
|
4595
4597
|
i = lt.slice(a, lt.length);
|
|
4596
4598
|
break;
|
|
4597
4599
|
}
|
|
@@ -4617,7 +4619,7 @@ function le(t, e) {
|
|
|
4617
4619
|
function be(t) {
|
|
4618
4620
|
const { where: e, normalize: i, keepSurroundingQuotes: r, escape: n } = t;
|
|
4619
4621
|
let a = "";
|
|
4620
|
-
return e !== void 0 && e.includes("=") && (a = e.split("=").slice(1).join("=").trim(), a === "null" ? a = null : a.trim() !== "" && !Number.isNaN(Number(a)) ? a = Number(a) : i === !1 ? n === !0 && (a =
|
|
4622
|
+
return e !== void 0 && e.includes("=") && (a = e.split("=").slice(1).join("=").trim(), a === "null" ? a = null : a.trim() !== "" && !Number.isNaN(Number(a)) ? a = Number(a) : i === !1 ? n === !0 && (a = Ai(a)) : a = Mr({ value: a, keepSurroundingQuotes: r, escape: n })), a;
|
|
4621
4623
|
}
|
|
4622
4624
|
function Ue(t) {
|
|
4623
4625
|
let e = !1;
|
|
@@ -4675,7 +4677,7 @@ function E(t) {
|
|
|
4675
4677
|
function st(t) {
|
|
4676
4678
|
const { seriesConfig: e, xAxisValueFormatType: i, setTimeBinningInfoWhenNotProvided: r, queryObject: n } = t;
|
|
4677
4679
|
let a = !1;
|
|
4678
|
-
if (!de(n) && !(
|
|
4680
|
+
if (!de(n) && !(k(n)?.fields?.find((o) => o.name === e.x)?.type === "time-only") && Ne(e) && e.binTemporalData !== !1 && i === y.DateAxisFormat) {
|
|
4679
4681
|
const o = E([e]);
|
|
4680
4682
|
if (e.temporalBinning && o !== g.BarAndLineNoAggregation && o !== g.BarAndLineSplitByNoAggregation) {
|
|
4681
4683
|
const { unit: d, size: l } = e.temporalBinning;
|
|
@@ -4831,7 +4833,7 @@ function pf(t, e) {
|
|
|
4831
4833
|
}
|
|
4832
4834
|
function uf(t, e) {
|
|
4833
4835
|
let i, r, n, a;
|
|
4834
|
-
return Ne(t.series[0]) && (i = t.series[0].temporalBinning?.unit, n = t.series[0].temporalBinning?.size), Ne(e.series[0]) && (r = e.series[0].temporalBinning?.unit, a = e.series[0].temporalBinning?.size),
|
|
4836
|
+
return Ne(t.series[0]) && (i = t.series[0].temporalBinning?.unit, n = t.series[0].temporalBinning?.size), Ne(e.series[0]) && (r = e.series[0].temporalBinning?.unit, a = e.series[0].temporalBinning?.size), Ti(i, n) && !Ti(r, a);
|
|
4835
4837
|
}
|
|
4836
4838
|
function ff(t, e) {
|
|
4837
4839
|
return t.axes?.length === 3 && e.axes?.length === 2 || t.axes?.length === 2 && e.axes?.length === 3;
|
|
@@ -4994,10 +4996,10 @@ function gn(t) {
|
|
|
4994
4996
|
let e;
|
|
4995
4997
|
const i = t?.orderOptions?.data;
|
|
4996
4998
|
return t.series?.length > 0 && i?.orderType === ve.MultiAxes && (e = [], e.push({
|
|
4997
|
-
sortingField:
|
|
4999
|
+
sortingField: V.xField,
|
|
4998
5000
|
orderBy: i.orderByX ?? ne.Ascending
|
|
4999
5001
|
}), e.push({
|
|
5000
|
-
sortingField: i.orderByY !== void 0 ?
|
|
5002
|
+
sortingField: i.orderByY !== void 0 ? V.yField : "",
|
|
5001
5003
|
orderBy: i.orderByY
|
|
5002
5004
|
})), e;
|
|
5003
5005
|
}
|
|
@@ -5009,7 +5011,7 @@ function bn(t) {
|
|
|
5009
5011
|
if (r === ve.Category)
|
|
5010
5012
|
r = t.series[0].x;
|
|
5011
5013
|
else {
|
|
5012
|
-
r === ve.Mean ? r =
|
|
5014
|
+
r === ve.Mean ? r = O.Average : r === ve.Median && (r = O.Median);
|
|
5013
5015
|
const a = e === g.BoxPlotMultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = le(t.series[0].query?.where), o = be({
|
|
5014
5016
|
where: t.series[0].query?.where
|
|
5015
5017
|
});
|
|
@@ -5061,7 +5063,7 @@ function Sn(t) {
|
|
|
5061
5063
|
}));
|
|
5062
5064
|
return s;
|
|
5063
5065
|
}
|
|
5064
|
-
function
|
|
5066
|
+
function Oi(t) {
|
|
5065
5067
|
let e;
|
|
5066
5068
|
const i = q(t.series);
|
|
5067
5069
|
if (t.series?.length > 0) {
|
|
@@ -5088,7 +5090,7 @@ function wf(t) {
|
|
|
5088
5090
|
const { oldConfig: e, newConfig: i, dataWasUpdated: r } = t, n = q(i.series), a = E(i.series);
|
|
5089
5091
|
let s = !1, o = !1;
|
|
5090
5092
|
if (a !== g.BoxPlotMonoField && a !== g.BoxPlotMonoFieldAndSplitBy && i.orderOptions?.data !== void 0) {
|
|
5091
|
-
const d =
|
|
5093
|
+
const d = Oi(e), l = Oi(i);
|
|
5092
5094
|
if (n === y.HeatSeries) {
|
|
5093
5095
|
const c = d ? d[0] : void 0, p = l ? l[0] : void 0, u = d ? d[1] : void 0, f = l ? l[1] : void 0;
|
|
5094
5096
|
o = e.orderOptions?.data?.orderType !== i.orderOptions?.data?.orderType || c?.sortingField !== p?.sortingField || c?.orderBy !== p?.orderBy || u?.sortingField !== f?.sortingField || u?.orderBy !== f?.orderBy, s = o || r;
|
|
@@ -5118,7 +5120,7 @@ function Sl(t = ee.None, e) {
|
|
|
5118
5120
|
}
|
|
5119
5121
|
function xn(t, e) {
|
|
5120
5122
|
const i = { valid: !1 };
|
|
5121
|
-
return e === !0 ? i.invalidType =
|
|
5123
|
+
return e === !0 ? i.invalidType = W.HistogramEmptyField : t === ee.Log ? i.invalidType = W.NegativeValueInLogCalculation : t === ee.Sqrt && (i.invalidType = W.NegativeValueInSqrtCalculation), i;
|
|
5122
5124
|
}
|
|
5123
5125
|
function xl(t, e) {
|
|
5124
5126
|
let i = t;
|
|
@@ -5157,7 +5159,7 @@ function vn(t) {
|
|
|
5157
5159
|
return e;
|
|
5158
5160
|
}
|
|
5159
5161
|
async function Cl(t) {
|
|
5160
|
-
const { queryObject: e, fieldName: i, queryConfig: r, abortKey: n } = t, a =
|
|
5162
|
+
const { queryObject: e, fieldName: i, queryConfig: r, abortKey: n } = t, a = k(e), { idField: s, isTraditionalTypeOID: o } = Oe(a), d = o ? s : "*", l = `${I.Count}_${s}`, c = `${I.Count}_${i}`, p = `${I.Minimum}_${i}`, u = `${I.Maximum}_${i}`, f = {
|
|
5161
5163
|
...r,
|
|
5162
5164
|
outStatistics: [
|
|
5163
5165
|
{
|
|
@@ -5185,8 +5187,8 @@ async function Cl(t) {
|
|
|
5185
5187
|
queryObject: e,
|
|
5186
5188
|
queryConfig: f,
|
|
5187
5189
|
abortKey: n
|
|
5188
|
-
}), m = h.get(l) ?? Number.NaN, b = h.get(c) ?? Number.NaN,
|
|
5189
|
-
return { countExcludingNulls: b, countIncludingNulls: m, min:
|
|
5190
|
+
}), m = h.get(l) ?? Number.NaN, b = h.get(c) ?? Number.NaN, S = h.get(p) ?? Number.NaN, x = h.get(u) ?? Number.NaN;
|
|
5191
|
+
return { countExcludingNulls: b, countIncludingNulls: m, min: S, max: x };
|
|
5190
5192
|
}
|
|
5191
5193
|
async function Fl(t) {
|
|
5192
5194
|
const { queryConfig: e, chartConfig: i, queryObject: r, abortKey: n } = t, a = i.series[0], { x: s, dataTransformationType: o } = a;
|
|
@@ -5258,7 +5260,7 @@ async function Bl(t) {
|
|
|
5258
5260
|
errorStrings: o
|
|
5259
5261
|
} = t, d = e.series[0], { dataTransformationType: l } = d;
|
|
5260
5262
|
let c = { valid: !0 };
|
|
5261
|
-
const p =
|
|
5263
|
+
const p = k(r), f = Ot(i?.geometry)?.extent?.toJSON() !== void 0, h = s?.view, m = Tl({
|
|
5262
5264
|
seriesConfig: d,
|
|
5263
5265
|
layer: p,
|
|
5264
5266
|
view: h,
|
|
@@ -5269,61 +5271,61 @@ async function Bl(t) {
|
|
|
5269
5271
|
if (h !== void 0 && (b = new Ki({
|
|
5270
5272
|
geometry: h.extent
|
|
5271
5273
|
}), h.extent !== void 0 && zr(p))) {
|
|
5272
|
-
const { distance:
|
|
5273
|
-
|
|
5274
|
+
const { distance: D, units: B } = i;
|
|
5275
|
+
D !== void 0 && (b.distance = D), B !== void 0 && (b.units = B);
|
|
5274
5276
|
}
|
|
5275
5277
|
if (i.timeExtent) {
|
|
5276
|
-
const
|
|
5277
|
-
b === void 0 ? b = new Ki({ timeExtent:
|
|
5278
|
+
const D = { start: i.timeExtent[0], end: i.timeExtent[1] };
|
|
5279
|
+
b === void 0 ? b = new Ki({ timeExtent: D }) : b.timeExtent = D;
|
|
5278
5280
|
}
|
|
5279
5281
|
m.filter = b;
|
|
5280
|
-
let
|
|
5282
|
+
let S;
|
|
5281
5283
|
m.outStatisticTypes = { exclude: ["median"] };
|
|
5282
5284
|
try {
|
|
5283
|
-
|
|
5284
|
-
} catch (
|
|
5285
|
-
throw new pe(oe.QueryFeaturesError, o.errors.queryError,
|
|
5285
|
+
S = await Xi(m);
|
|
5286
|
+
} catch (D) {
|
|
5287
|
+
throw new pe(oe.QueryFeaturesError, o.errors.queryError, D);
|
|
5286
5288
|
}
|
|
5287
5289
|
m.outStatisticTypes = { include: ["median"] };
|
|
5288
5290
|
try {
|
|
5289
|
-
const
|
|
5290
|
-
|
|
5291
|
+
const D = await Xi(m);
|
|
5292
|
+
D?.median && (S.median = D.median);
|
|
5291
5293
|
} catch {
|
|
5292
5294
|
}
|
|
5293
|
-
|
|
5294
|
-
const { avg:
|
|
5295
|
+
S = wl(S);
|
|
5296
|
+
const { avg: x, count: v, stddev: F, min: T, max: w, sum: A, median: P } = S;
|
|
5295
5297
|
if (v === 0)
|
|
5296
5298
|
c = {
|
|
5297
5299
|
...xn(l)
|
|
5298
5300
|
};
|
|
5299
5301
|
else {
|
|
5300
|
-
const
|
|
5302
|
+
const D = Il({
|
|
5301
5303
|
seriesConfig: d,
|
|
5302
5304
|
layer: p,
|
|
5303
5305
|
view: h,
|
|
5304
5306
|
useFeaturesInView: f,
|
|
5305
|
-
minValue: vl(
|
|
5306
|
-
maxValue:
|
|
5307
|
+
minValue: vl(T),
|
|
5308
|
+
maxValue: w,
|
|
5307
5309
|
valueExpression: m.valueExpression,
|
|
5308
5310
|
queryConfig: i
|
|
5309
5311
|
});
|
|
5310
|
-
|
|
5311
|
-
let
|
|
5312
|
+
D.filter = b;
|
|
5313
|
+
let B;
|
|
5312
5314
|
try {
|
|
5313
|
-
|
|
5314
|
-
} catch (
|
|
5315
|
-
throw new pe(oe.QueryFeaturesError, o.errors.queryError,
|
|
5315
|
+
B = await ba(D);
|
|
5316
|
+
} catch (L) {
|
|
5317
|
+
throw new pe(oe.QueryFeaturesError, o.errors.queryError, L);
|
|
5316
5318
|
}
|
|
5317
|
-
const
|
|
5319
|
+
const M = Al(a, n);
|
|
5318
5320
|
c.data = {
|
|
5319
|
-
mean:
|
|
5321
|
+
mean: x,
|
|
5320
5322
|
stddev: F,
|
|
5321
|
-
min:
|
|
5322
|
-
max:
|
|
5323
|
-
median: Number(
|
|
5324
|
-
bins:
|
|
5323
|
+
min: T,
|
|
5324
|
+
max: w,
|
|
5325
|
+
median: Number(P),
|
|
5326
|
+
bins: B?.bins,
|
|
5325
5327
|
count: n,
|
|
5326
|
-
nulls:
|
|
5328
|
+
nulls: M,
|
|
5327
5329
|
sum: A ?? void 0
|
|
5328
5330
|
}, c.data.bins.length > 0 && (c.data.bins[c.data.bins.length - 1].isLastBin = !0);
|
|
5329
5331
|
}
|
|
@@ -5411,22 +5413,22 @@ function si(t) {
|
|
|
5411
5413
|
switch (e.valid = !1, i) {
|
|
5412
5414
|
case y.BarSeries:
|
|
5413
5415
|
case y.ComboLineAndBarSeries:
|
|
5414
|
-
e.invalidType =
|
|
5416
|
+
e.invalidType = W.BarElementExceedsLimit;
|
|
5415
5417
|
break;
|
|
5416
5418
|
case y.LineSeries:
|
|
5417
|
-
e.invalidType =
|
|
5419
|
+
e.invalidType = W.LineChartExceedsLimit;
|
|
5418
5420
|
break;
|
|
5419
5421
|
case y.PieSeries:
|
|
5420
|
-
e.invalidType =
|
|
5422
|
+
e.invalidType = W.PieChartExceedsLimit;
|
|
5421
5423
|
break;
|
|
5422
5424
|
case y.GaugeSeries:
|
|
5423
|
-
e.invalidType =
|
|
5425
|
+
e.invalidType = W.GaugeExceedsLimit;
|
|
5424
5426
|
break;
|
|
5425
5427
|
case y.BoxPlotSeries:
|
|
5426
|
-
r?.outlierLimit === !0 ? e.invalidType =
|
|
5428
|
+
r?.outlierLimit === !0 ? e.invalidType = W.BoxPlotOutliersExceedsLimit : e.invalidType = W.BoxPlotExceedsLimit;
|
|
5427
5429
|
break;
|
|
5428
5430
|
case y.HeatSeries:
|
|
5429
|
-
e.invalidType =
|
|
5431
|
+
e.invalidType = W.HeatChartExceedsLimit;
|
|
5430
5432
|
break;
|
|
5431
5433
|
}
|
|
5432
5434
|
}
|
|
@@ -5449,136 +5451,136 @@ function Lf(t) {
|
|
|
5449
5451
|
const u = new Intl.NumberFormat(o), f = yt(i), { maxCategoryCount: h } = f;
|
|
5450
5452
|
let m = l.modalHeaders.invalidChart;
|
|
5451
5453
|
switch (e) {
|
|
5452
|
-
case
|
|
5454
|
+
case W.BarElementExceedsLimit: {
|
|
5453
5455
|
m = l.modalHeaders.tooManyFeatures;
|
|
5454
|
-
let
|
|
5455
|
-
n !== void 0 && (n <= f.maxBarChartSeriesCount ? n === 1 ? (v = l.errors.uniqueSeriesBarCountCannotExceedLimit,
|
|
5456
|
-
const F = u.format(
|
|
5456
|
+
let S = Number.NaN, x = Number.NaN, v = "";
|
|
5457
|
+
n !== void 0 && (n <= f.maxBarChartSeriesCount ? n === 1 ? (v = l.errors.uniqueSeriesBarCountCannotExceedLimit, S = f.maxBarUniqueSeriesCountTotal) : n === 2 ? (v = l.errors.twoSeriesBarCountCannotExceedLimit, S = f.maxBarTwoSeriesCountTotal, x = f.maxBarTwoSeriesCountPerSeries) : n > 2 && (v = l.errors.threePlusSeriesBarCountCannotExceedLimit, S = f.maxBarThreePlusSeriesCountTotal, x = f.maxBarThreePlusSeriesCountPerSeries) : (v = l.errors.barSeriesCountCannotExceedLimit, x = f.maxBarChartSeriesCount));
|
|
5458
|
+
const F = u.format(S), T = u.format(x), w = r !== void 0 ? u.format(r) : "";
|
|
5457
5459
|
c = ie(v, {
|
|
5458
5460
|
totalLimit: F,
|
|
5459
|
-
seriesLimit:
|
|
5460
|
-
elementCount:
|
|
5461
|
+
seriesLimit: T,
|
|
5462
|
+
elementCount: w
|
|
5461
5463
|
}), p = {
|
|
5462
5464
|
actualCount: r ?? Number.NaN,
|
|
5463
|
-
totalLimit:
|
|
5464
|
-
seriesLimit:
|
|
5465
|
+
totalLimit: S,
|
|
5466
|
+
seriesLimit: x
|
|
5465
5467
|
};
|
|
5466
5468
|
break;
|
|
5467
5469
|
}
|
|
5468
|
-
case
|
|
5470
|
+
case W.LineChartExceedsLimit:
|
|
5469
5471
|
{
|
|
5470
5472
|
m = l.modalHeaders.tooManyFeatures;
|
|
5471
|
-
let
|
|
5472
|
-
n !== void 0 && (n <= f.maxLineChartSeriesCount ? n === 1 ? (v = d ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit,
|
|
5473
|
-
const F = u.format(
|
|
5473
|
+
let S = Number.NaN, x = Number.NaN, v = "";
|
|
5474
|
+
n !== void 0 && (n <= f.maxLineChartSeriesCount ? n === 1 ? (v = d ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, S = f.maxLineUniqueSeriesCountTotal) : n === 2 ? (v = d ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, S = f.maxLineTwoSeriesCountTotal, x = f.maxLineTwoSeriesCountPerSeries) : n > 2 && (v = d ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, S = f.maxLineThreePlusSeriesCountTotal, x = f.maxLineThreePlusSeriesCountPerSeries) : (v = l.errors.lineSeriesCountCannotExceedLimit, x = f.maxLineChartSeriesCount));
|
|
5475
|
+
const F = u.format(S), T = u.format(x), w = r !== void 0 ? u.format(r) : "";
|
|
5474
5476
|
c = ie(v, {
|
|
5475
|
-
elementCount:
|
|
5476
|
-
seriesLimit:
|
|
5477
|
+
elementCount: w,
|
|
5478
|
+
seriesLimit: T,
|
|
5477
5479
|
totalLimit: F
|
|
5478
5480
|
}), p = {
|
|
5479
5481
|
actualCount: r ?? Number.NaN,
|
|
5480
|
-
totalLimit:
|
|
5481
|
-
seriesLimit:
|
|
5482
|
+
totalLimit: S,
|
|
5483
|
+
seriesLimit: x
|
|
5482
5484
|
};
|
|
5483
5485
|
}
|
|
5484
5486
|
break;
|
|
5485
|
-
case
|
|
5487
|
+
case W.BoxPlotExceedsLimit:
|
|
5486
5488
|
{
|
|
5487
5489
|
m = l.modalHeaders.tooManyFeatures;
|
|
5488
|
-
let
|
|
5489
|
-
n !== void 0 && (n <= f.maxBoxPlotSeriesCount ? n === 1 ? (v = l.errors.uniqueSeriesBoxCountCannotExceedLimit,
|
|
5490
|
-
const F = u.format(
|
|
5490
|
+
let S = Number.NaN, x = Number.NaN, v = "";
|
|
5491
|
+
n !== void 0 && (n <= f.maxBoxPlotSeriesCount ? n === 1 ? (v = l.errors.uniqueSeriesBoxCountCannotExceedLimit, S = f.maxBoxUniqueSeriesCountTotal) : n === 2 ? (v = l.errors.twoSeriesBoxCountCannotExceedLimit, S = f.maxBoxTwoSeriesCountTotal, x = f.maxBoxTwoSeriesCountPerSeries) : n > 2 && (v = l.errors.threePlusBoxLineCountCannotExceedLimit, S = f.maxBoxThreePlusSeriesCountTotal, x = f.maxBoxThreePlusSeriesCountPerSeries) : (v = l.errors.boxSeriesCountCannotExceedLimit, x = f.maxBoxPlotSeriesCount));
|
|
5492
|
+
const F = u.format(S), T = u.format(x), w = r !== void 0 ? u.format(r) : "";
|
|
5491
5493
|
c = ie(v, {
|
|
5492
|
-
elementCount:
|
|
5493
|
-
seriesLimit:
|
|
5494
|
+
elementCount: w,
|
|
5495
|
+
seriesLimit: T,
|
|
5494
5496
|
totalLimit: F
|
|
5495
5497
|
}), p = {
|
|
5496
5498
|
actualCount: r ?? Number.NaN,
|
|
5497
|
-
totalLimit:
|
|
5498
|
-
seriesLimit:
|
|
5499
|
+
totalLimit: S,
|
|
5500
|
+
seriesLimit: x
|
|
5499
5501
|
};
|
|
5500
5502
|
}
|
|
5501
5503
|
break;
|
|
5502
|
-
case
|
|
5504
|
+
case W.BoxPlotOutliersExceedsLimit:
|
|
5503
5505
|
{
|
|
5504
5506
|
m = l.modalHeaders.tooManyFeatures;
|
|
5505
|
-
const
|
|
5506
|
-
c = ie(
|
|
5507
|
+
const S = l.errors.boxSeriesOutlierCannotExceedLimit, x = f.maxBoxPlotOutlierLimit, v = u.format(x);
|
|
5508
|
+
c = ie(S, {
|
|
5507
5509
|
totalLimit: v
|
|
5508
|
-
}), p = { actualCount: r ?? Number.NaN, totalLimit:
|
|
5510
|
+
}), p = { actualCount: r ?? Number.NaN, totalLimit: x };
|
|
5509
5511
|
}
|
|
5510
5512
|
break;
|
|
5511
|
-
case
|
|
5513
|
+
case W.HeatChartExceedsLimit:
|
|
5512
5514
|
{
|
|
5513
5515
|
m = l.modalHeaders.tooManyFeatures;
|
|
5514
|
-
const
|
|
5515
|
-
c = ie(
|
|
5516
|
+
const S = l.errors.heatChartCannotExceedLimit, x = f.maxHeatChartCellLimit, v = u.format(x), F = r !== void 0 ? u.format(r) : "";
|
|
5517
|
+
c = ie(S, {
|
|
5516
5518
|
featureCount: F,
|
|
5517
5519
|
totalLimit: v
|
|
5518
5520
|
}), p = {
|
|
5519
5521
|
actualCount: r ?? Number.NaN,
|
|
5520
|
-
totalLimit:
|
|
5522
|
+
totalLimit: x
|
|
5521
5523
|
};
|
|
5522
5524
|
}
|
|
5523
5525
|
break;
|
|
5524
|
-
case
|
|
5526
|
+
case W.PieChartExceedsLimit:
|
|
5525
5527
|
{
|
|
5526
5528
|
m = l.modalHeaders.tooManyFeatures;
|
|
5527
|
-
const
|
|
5528
|
-
c = ie(
|
|
5529
|
+
const S = l.errors.pieChartSlicesCannotExceedLimit, x = f.maxPieChartSliceCountTotal, v = u.format(x), F = r !== void 0 ? u.format(r) : "";
|
|
5530
|
+
c = ie(S, {
|
|
5529
5531
|
sliceCount: F,
|
|
5530
5532
|
totalLimit: v
|
|
5531
5533
|
}), p = {
|
|
5532
5534
|
actualCount: r ?? Number.NaN,
|
|
5533
|
-
totalLimit:
|
|
5535
|
+
totalLimit: x
|
|
5534
5536
|
};
|
|
5535
5537
|
}
|
|
5536
5538
|
break;
|
|
5537
|
-
case
|
|
5539
|
+
case W.GaugeExceedsLimit:
|
|
5538
5540
|
{
|
|
5539
5541
|
m = l.modalHeaders.tooManyFeatures;
|
|
5540
|
-
const
|
|
5541
|
-
c = ie(
|
|
5542
|
+
const S = l.errors.gaugeCannotExceedLimit, x = f.maxGaugeByFeaturesLimit, v = u.format(x), F = r !== void 0 ? u.format(r) : "";
|
|
5543
|
+
c = ie(S, {
|
|
5542
5544
|
featureCount: F,
|
|
5543
5545
|
totalLimit: v
|
|
5544
5546
|
}), p = {
|
|
5545
5547
|
actualCount: r ?? Number.NaN,
|
|
5546
|
-
totalLimit:
|
|
5548
|
+
totalLimit: x
|
|
5547
5549
|
};
|
|
5548
5550
|
}
|
|
5549
5551
|
break;
|
|
5550
|
-
case
|
|
5552
|
+
case W.PieChartMixOfNegativePositiveSlices:
|
|
5551
5553
|
m = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, c = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
|
|
5552
5554
|
break;
|
|
5553
|
-
case
|
|
5555
|
+
case W.NegativeValueInSqrtCalculation:
|
|
5554
5556
|
m = l.modalHeaders.invalidData, c = l.errors.negativeValueInDataForSqrtTransformation;
|
|
5555
5557
|
break;
|
|
5556
|
-
case
|
|
5558
|
+
case W.NegativeValueInLogCalculation:
|
|
5557
5559
|
m = l.modalHeaders.invalidData, c = l.errors.negativeValueInDataForLogTransformation;
|
|
5558
5560
|
break;
|
|
5559
|
-
case
|
|
5561
|
+
case W.HistogramEmptyField:
|
|
5560
5562
|
s === !0 ? (m = l.modalHeaders.noDataAvailable, c = l.errors.noDataFBSMessage) : Ee(a) ? (m = l.modalHeaders.noDataAvailable, c = l.errors.noDataFBEMessage) : (m = l.modalHeaders.invalidChart, c = l.errors.histogramEmptyField);
|
|
5561
5563
|
break;
|
|
5562
|
-
case
|
|
5564
|
+
case W.EmptyDataSet:
|
|
5563
5565
|
m = l.modalHeaders.noDataAvailable, s === !0 ? c = l.errors.noDataFBSMessage : Ee(a) ? c = l.errors.noDataFBEMessage : c = l.errors.noDataMessage;
|
|
5564
5566
|
break;
|
|
5565
|
-
case
|
|
5567
|
+
case W.NegativeValueInXAxisLogScale:
|
|
5566
5568
|
c = l.errors.logarithmicXAxisNotPossible;
|
|
5567
5569
|
break;
|
|
5568
|
-
case
|
|
5570
|
+
case W.NegativeValueInYAxisLogScale:
|
|
5569
5571
|
c = l.errors.logarithmicYAxisNotPossible;
|
|
5570
5572
|
break;
|
|
5571
|
-
case
|
|
5573
|
+
case W.BadData:
|
|
5572
5574
|
}
|
|
5573
|
-
if (c === l.errors.defaultInvalidChart && (e ===
|
|
5574
|
-
const
|
|
5575
|
+
if (c === l.errors.defaultInvalidChart && (e === W.BarElementExceedsLimit || e === W.LineChartExceedsLimit || e === W.HeatChartExceedsLimit || e === W.PieChartExceedsLimit || e === W.GaugeExceedsLimit || e === W.BoxPlotExceedsLimit) && typeof r == "number" && typeof n == "number" && r / n > h) {
|
|
5576
|
+
const S = r / n;
|
|
5575
5577
|
c = ie(l.errors.categoryCountCannotExceedLimit, {
|
|
5576
|
-
categoryCount: u.format(
|
|
5578
|
+
categoryCount: u.format(S),
|
|
5577
5579
|
maxCategoryCount: u.format(h)
|
|
5578
5580
|
});
|
|
5579
5581
|
}
|
|
5580
5582
|
return {
|
|
5581
|
-
keyword: e ??
|
|
5583
|
+
keyword: e ?? W.BadData,
|
|
5582
5584
|
header: m,
|
|
5583
5585
|
message: c,
|
|
5584
5586
|
params: p
|
|
@@ -5587,7 +5589,7 @@ function Lf(t) {
|
|
|
5587
5589
|
function Dt(t, e) {
|
|
5588
5590
|
return `${e}_${t}`;
|
|
5589
5591
|
}
|
|
5590
|
-
function
|
|
5592
|
+
function Pi(t) {
|
|
5591
5593
|
const { value: e, mean: i, stdDev: r } = t;
|
|
5592
5594
|
return (e - i) / r;
|
|
5593
5595
|
}
|
|
@@ -5600,12 +5602,12 @@ function zi(t) {
|
|
|
5600
5602
|
};
|
|
5601
5603
|
const l = se({
|
|
5602
5604
|
...d,
|
|
5603
|
-
key:
|
|
5605
|
+
key: O.Average
|
|
5604
5606
|
}), c = se({
|
|
5605
5607
|
...d,
|
|
5606
|
-
key:
|
|
5608
|
+
key: O.StandardDeviation
|
|
5607
5609
|
}), p = a ?? Number(e[l]), u = s ?? Number(e[c]);
|
|
5608
|
-
return Number.isFinite(p) && Number.isFinite(u) && Object.values(
|
|
5610
|
+
return Number.isFinite(p) && Number.isFinite(u) && Object.values(O).forEach((f) => {
|
|
5609
5611
|
const h = se({
|
|
5610
5612
|
key: f,
|
|
5611
5613
|
y: r,
|
|
@@ -5621,20 +5623,20 @@ function zi(t) {
|
|
|
5621
5623
|
showOutliers: !1,
|
|
5622
5624
|
standardizeValues: !0
|
|
5623
5625
|
};
|
|
5624
|
-
let
|
|
5625
|
-
if (o[
|
|
5626
|
+
let S = se(d);
|
|
5627
|
+
if (o[S] = Pi({ mean: p, stdDev: u, value: b }), f === O.Min || f === O.Max) {
|
|
5626
5628
|
d = {
|
|
5627
5629
|
...d,
|
|
5628
5630
|
key: f,
|
|
5629
5631
|
showOutliers: !0,
|
|
5630
5632
|
standardizeValues: !0
|
|
5631
|
-
},
|
|
5633
|
+
}, S = se(d), d = {
|
|
5632
5634
|
...d,
|
|
5633
5635
|
standardizeValues: !1,
|
|
5634
5636
|
splitByValue: n
|
|
5635
5637
|
};
|
|
5636
|
-
const
|
|
5637
|
-
b = Number(e[
|
|
5638
|
+
const x = se(d);
|
|
5639
|
+
b = Number(e[x]), Number.isFinite(b) && (o[S] = Pi({
|
|
5638
5640
|
mean: p,
|
|
5639
5641
|
stdDev: u,
|
|
5640
5642
|
value: b
|
|
@@ -5740,19 +5742,19 @@ function ql(t, e) {
|
|
|
5740
5742
|
s.splitByValue = l;
|
|
5741
5743
|
const c = se({
|
|
5742
5744
|
...s,
|
|
5743
|
-
key:
|
|
5745
|
+
key: O.Min,
|
|
5744
5746
|
showOutliers: !0
|
|
5745
5747
|
}), p = se({
|
|
5746
5748
|
...s,
|
|
5747
|
-
key:
|
|
5749
|
+
key: O.Min,
|
|
5748
5750
|
showOutliers: !1
|
|
5749
5751
|
}), u = se({
|
|
5750
5752
|
...s,
|
|
5751
|
-
key:
|
|
5753
|
+
key: O.Max,
|
|
5752
5754
|
showOutliers: !0
|
|
5753
5755
|
}), f = se({
|
|
5754
5756
|
...s,
|
|
5755
|
-
key:
|
|
5757
|
+
key: O.Max,
|
|
5756
5758
|
showOutliers: !1
|
|
5757
5759
|
});
|
|
5758
5760
|
d[u] === void 0 && d[f] !== void 0 && (d[u] = d[f]), d[c] === void 0 && d[p] !== void 0 && (d[c] = d[p]);
|
|
@@ -5761,40 +5763,40 @@ function ql(t, e) {
|
|
|
5761
5763
|
}
|
|
5762
5764
|
function El(t, e) {
|
|
5763
5765
|
let i, r;
|
|
5764
|
-
const n = t[e[
|
|
5766
|
+
const n = t[e[O.IQR]], a = t[e[O.FirstQuartile]], s = t[e[O.ThirdQuartile]];
|
|
5765
5767
|
return Number.isFinite(n) && Number.isFinite(a) && Number.isFinite(s) && (i = a - n * 1.5, r = s + n * 1.5), { outlierMinThreshold: i, outlierMaxThreshold: r };
|
|
5766
5768
|
}
|
|
5767
5769
|
function sr(t) {
|
|
5768
5770
|
const { yField: e, xField: i, xValue: r, splitByField: n, splitByValue: a, outlierMaxThreshold: s, outlierMinThreshold: o, target: d } = t;
|
|
5769
5771
|
let l;
|
|
5770
5772
|
if (i !== void 0 && r !== void 0) {
|
|
5771
|
-
const f = typeof r != "string" ? r : `'${
|
|
5773
|
+
const f = typeof r != "string" ? r : `'${Ai(r)}'`;
|
|
5772
5774
|
l = `${i}=${f.toString()}`;
|
|
5773
5775
|
}
|
|
5774
5776
|
let c;
|
|
5775
5777
|
if (n !== void 0 && a !== void 0) {
|
|
5776
|
-
const f = typeof a != "string" ? a : `'${
|
|
5778
|
+
const f = typeof a != "string" ? a : `'${Ai(a)}'`;
|
|
5777
5779
|
c = `${n}=${f.toString()}`;
|
|
5778
5780
|
}
|
|
5779
5781
|
let p;
|
|
5780
5782
|
return d === "outliers" && o !== s ? p = `(${e}<${o} OR ${e}>${s})` : d === "alternativeData" && (o === s ? p = `(${e}=${o})` : p = `(${e}>=${o} AND ${e}<=${s})`), [l, c, p].filter((f) => f !== void 0).join(" AND ");
|
|
5781
5783
|
}
|
|
5782
5784
|
function wn(t) {
|
|
5783
|
-
const { data: e, yField: i, x: r, chartSubType: n, splitByField: a } = t, s = n === g.BoxPlotMonoField || n === g.BoxPlotMonoFieldAndCategory || n === g.BoxPlotMonoFieldAndSplitBy || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = Ft(s), d = [], l = [], { maxOperandsPerWhereClause: c } =
|
|
5785
|
+
const { data: e, yField: i, x: r, chartSubType: n, splitByField: a } = t, s = n === g.BoxPlotMonoField || n === g.BoxPlotMonoFieldAndCategory || n === g.BoxPlotMonoFieldAndSplitBy || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = Ft(s), d = [], l = [], { maxOperandsPerWhereClause: c } = ci();
|
|
5784
5786
|
let p = [], u = [], f = 1;
|
|
5785
5787
|
return e.forEach((h, m) => {
|
|
5786
|
-
const { outlierMinThreshold: b, outlierMaxThreshold:
|
|
5787
|
-
if (typeof b == "number" && typeof
|
|
5788
|
-
const
|
|
5788
|
+
const { outlierMinThreshold: b, outlierMaxThreshold: S } = El(h, o);
|
|
5789
|
+
if (typeof b == "number" && typeof S == "number") {
|
|
5790
|
+
const x = {
|
|
5789
5791
|
yField: i,
|
|
5790
5792
|
outlierMinThreshold: b,
|
|
5791
|
-
outlierMaxThreshold:
|
|
5793
|
+
outlierMaxThreshold: S
|
|
5792
5794
|
};
|
|
5793
|
-
(n === g.BoxPlotMonoFieldAndCategory || n === g.BoxPlotMultiFieldsAndCategory || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in h && (
|
|
5795
|
+
(n === g.BoxPlotMonoFieldAndCategory || n === g.BoxPlotMultiFieldsAndCategory || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in h && (x.xField = r, x.xValue = Rt({
|
|
5794
5796
|
value: h[r],
|
|
5795
5797
|
dataContext: h,
|
|
5796
5798
|
keepNullValues: !0
|
|
5797
|
-
})), (n === g.BoxPlotMonoFieldAndSplitBy || n === g.BoxPlotMultiFieldsAndSplitBy || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in h && (
|
|
5799
|
+
})), (n === g.BoxPlotMonoFieldAndSplitBy || n === g.BoxPlotMultiFieldsAndSplitBy || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in h && (x.splitByField = a, x.splitByValue = h[a]), p.push(sr({ ...x, target: "outliers" })), u.push(sr({ ...x, target: "alternativeData" })), (f % c === 0 || m === e.length - 1) && (d.push(Z(p, "OR")), l.push(Z(u, "OR")), p = [], u = []);
|
|
5798
5800
|
}
|
|
5799
5801
|
f += 1;
|
|
5800
5802
|
}), { outliersFilterBatches: d, dataWithoutOutliersFilterBatches: l };
|
|
@@ -5806,14 +5808,14 @@ function kl(t) {
|
|
|
5806
5808
|
switch (r) {
|
|
5807
5809
|
case g.BoxPlotMultiFields: {
|
|
5808
5810
|
const c = Ft(a), p = e[0];
|
|
5809
|
-
d = Number(p[c[
|
|
5811
|
+
d = Number(p[c[O.Average]]), l = Number(p[c[O.StandardDeviation]]);
|
|
5810
5812
|
break;
|
|
5811
5813
|
}
|
|
5812
5814
|
case g.BoxPlotMultiFieldsAndCategory: {
|
|
5813
5815
|
const c = e.find((p) => p[n] === i[n]);
|
|
5814
5816
|
if (c !== void 0) {
|
|
5815
5817
|
const p = Ft(a);
|
|
5816
|
-
d = Number(c[p[
|
|
5818
|
+
d = Number(c[p[O.Average]]), l = Number(c[p[O.StandardDeviation]]);
|
|
5817
5819
|
}
|
|
5818
5820
|
break;
|
|
5819
5821
|
}
|
|
@@ -5821,7 +5823,7 @@ function kl(t) {
|
|
|
5821
5823
|
const c = e.find((p) => p[o] === i[o]);
|
|
5822
5824
|
if (c !== void 0) {
|
|
5823
5825
|
const p = Ft(a);
|
|
5824
|
-
d = Number(c[p[
|
|
5826
|
+
d = Number(c[p[O.Average]]), l = Number(c[p[O.StandardDeviation]]);
|
|
5825
5827
|
}
|
|
5826
5828
|
break;
|
|
5827
5829
|
}
|
|
@@ -5829,28 +5831,28 @@ function kl(t) {
|
|
|
5829
5831
|
return { mean: d, stdDev: l };
|
|
5830
5832
|
}
|
|
5831
5833
|
async function Wl(t) {
|
|
5832
|
-
const { seriesConfig: e, data: i, uniqueQuery: r, queryObject: n, meanAndStdDevPerField: a, abortKey: s } = t, o = E(e), d = e[0], { x: l } = d, c = le(d.query?.where), p =
|
|
5833
|
-
for (let
|
|
5834
|
-
const
|
|
5834
|
+
const { seriesConfig: e, data: i, uniqueQuery: r, queryObject: n, meanAndStdDevPerField: a, abortKey: s } = t, o = E(e), d = e[0], { x: l } = d, c = le(d.query?.where), p = k(n), u = Oe(p).idField, f = he(e), h = [];
|
|
5835
|
+
for (let S = 0; S < f.length; S += 1) {
|
|
5836
|
+
const x = f[S], { outliersFilterBatches: v } = wn({
|
|
5835
5837
|
data: i,
|
|
5836
|
-
yField:
|
|
5838
|
+
yField: x,
|
|
5837
5839
|
x: l,
|
|
5838
5840
|
chartSubType: o,
|
|
5839
5841
|
splitByField: c
|
|
5840
5842
|
});
|
|
5841
5843
|
for (let F = 0; F < v.length; F += 1) {
|
|
5842
|
-
const
|
|
5843
|
-
if (
|
|
5844
|
-
const
|
|
5845
|
-
l !== C.boxPlot.boxPlotCategory &&
|
|
5844
|
+
const T = v[F];
|
|
5845
|
+
if (T !== "") {
|
|
5846
|
+
const w = [];
|
|
5847
|
+
l !== C.boxPlot.boxPlotCategory && w.push(l), w.push(x), c !== "" && w.push(c), w.push(u);
|
|
5846
5848
|
const A = {
|
|
5847
5849
|
...r,
|
|
5848
|
-
where: Z([r.where,
|
|
5850
|
+
where: Z([r.where, T]),
|
|
5849
5851
|
groupByFieldsForStatistics: void 0,
|
|
5850
5852
|
outStatistics: void 0,
|
|
5851
5853
|
orderByFields: void 0,
|
|
5852
5854
|
num: void 0,
|
|
5853
|
-
outFields:
|
|
5855
|
+
outFields: w
|
|
5854
5856
|
};
|
|
5855
5857
|
h.push(
|
|
5856
5858
|
Le({
|
|
@@ -5865,58 +5867,58 @@ async function Wl(t) {
|
|
|
5865
5867
|
}
|
|
5866
5868
|
}
|
|
5867
5869
|
const m = await Promise.all(h), b = /* @__PURE__ */ new Map();
|
|
5868
|
-
for (let
|
|
5869
|
-
const
|
|
5870
|
-
|
|
5871
|
-
const
|
|
5872
|
-
if (
|
|
5873
|
-
l === C.boxPlot.boxPlotCategory && (
|
|
5874
|
-
let
|
|
5875
|
-
key:
|
|
5870
|
+
for (let S = 0; S < m.length; S += 1) {
|
|
5871
|
+
const x = m[S], v = f[S];
|
|
5872
|
+
x.forEach((F) => {
|
|
5873
|
+
const T = { ...F.attributes };
|
|
5874
|
+
if (T[v] !== void 0) {
|
|
5875
|
+
l === C.boxPlot.boxPlotCategory && (T[C.boxPlot.boxPlotCategory] = v);
|
|
5876
|
+
let w = {
|
|
5877
|
+
key: O.Outlier,
|
|
5876
5878
|
chartSubType: o
|
|
5877
5879
|
};
|
|
5878
5880
|
switch (o) {
|
|
5879
5881
|
case g.BoxPlotMonoFieldAndSplitBy:
|
|
5880
5882
|
case g.BoxPlotMultiFieldsAndSplitBy:
|
|
5881
5883
|
case g.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
5882
|
-
|
|
5883
|
-
...
|
|
5884
|
-
splitByValue:
|
|
5884
|
+
w = {
|
|
5885
|
+
...w,
|
|
5886
|
+
splitByValue: T[c]
|
|
5885
5887
|
};
|
|
5886
5888
|
break;
|
|
5887
5889
|
case g.BoxPlotMultiFieldsAndCategory:
|
|
5888
|
-
|
|
5889
|
-
...
|
|
5890
|
+
w = {
|
|
5891
|
+
...w,
|
|
5890
5892
|
y: v
|
|
5891
5893
|
};
|
|
5892
5894
|
break;
|
|
5893
5895
|
}
|
|
5894
|
-
const A = se(
|
|
5895
|
-
|
|
5896
|
-
const
|
|
5897
|
-
if (
|
|
5898
|
-
...
|
|
5899
|
-
|
|
5900
|
-
], delete
|
|
5901
|
-
const
|
|
5902
|
-
...
|
|
5896
|
+
const A = se(w), P = T[v];
|
|
5897
|
+
T[A] = P;
|
|
5898
|
+
const D = `${T[l]}-${T[c]}-${P}`, B = b.get(D);
|
|
5899
|
+
if (T[Q.uniqueIdsName] = [
|
|
5900
|
+
...B?.[Q.uniqueIdsName] ?? [],
|
|
5901
|
+
T[u]
|
|
5902
|
+
], delete T[u], Wn(o)) {
|
|
5903
|
+
const M = se({
|
|
5904
|
+
...w,
|
|
5903
5905
|
standardizeValues: !0
|
|
5904
|
-
}), { mean:
|
|
5906
|
+
}), { mean: L, stdDev: R } = kl({
|
|
5905
5907
|
data: i,
|
|
5906
|
-
outlierDataItem:
|
|
5908
|
+
outlierDataItem: T,
|
|
5907
5909
|
chartSubType: o,
|
|
5908
5910
|
x: l,
|
|
5909
5911
|
y: v,
|
|
5910
5912
|
splitByField: c,
|
|
5911
5913
|
meanAndStdDevPerField: a
|
|
5912
5914
|
});
|
|
5913
|
-
|
|
5914
|
-
value:
|
|
5915
|
-
mean:
|
|
5915
|
+
L !== void 0 && R !== void 0 && (T[M] = Pi({
|
|
5916
|
+
value: P,
|
|
5917
|
+
mean: L,
|
|
5916
5918
|
stdDev: R
|
|
5917
5919
|
}));
|
|
5918
5920
|
}
|
|
5919
|
-
delete
|
|
5921
|
+
delete T[v], T[C.boxPlot.boxPlotOutlierId] = !0, b.set(D, T);
|
|
5920
5922
|
}
|
|
5921
5923
|
});
|
|
5922
5924
|
}
|
|
@@ -5925,27 +5927,27 @@ async function Wl(t) {
|
|
|
5925
5927
|
async function Vl(t) {
|
|
5926
5928
|
const { data: e, queryObject: i, uniqueQuery: r, elementCount: n, chartConfig: a, chartLimits: s, abortKey: o } = t;
|
|
5927
5929
|
let d = [];
|
|
5928
|
-
const { series: l, showMean: c } = a, p =
|
|
5929
|
-
for (let
|
|
5930
|
-
const v = p[
|
|
5930
|
+
const { series: l, showMean: c } = a, p = hi({ showMean: c, seriesConfig: l }), u = E(l), f = Ke(a), { x: h } = f, m = le(f.query?.where), b = [];
|
|
5931
|
+
for (let x = 0; x < p.length; x += 1) {
|
|
5932
|
+
const v = p[x], { dataWithoutOutliersFilterBatches: F } = wn({
|
|
5931
5933
|
data: e,
|
|
5932
5934
|
yField: v,
|
|
5933
5935
|
x: h,
|
|
5934
5936
|
chartSubType: u,
|
|
5935
5937
|
splitByField: m
|
|
5936
5938
|
});
|
|
5937
|
-
for (let
|
|
5938
|
-
const
|
|
5939
|
+
for (let T = 0; T < F.length; T += 1) {
|
|
5940
|
+
const w = F[T], A = {
|
|
5939
5941
|
...r,
|
|
5940
|
-
where: Z([r.where,
|
|
5942
|
+
where: Z([r.where, w])
|
|
5941
5943
|
};
|
|
5942
5944
|
A.outStatistics !== void 0 && (A.outStatistics = A.outStatistics?.filter(
|
|
5943
|
-
(
|
|
5944
|
-
).map((
|
|
5945
|
-
...
|
|
5946
|
-
outStatisticFieldName: `${
|
|
5945
|
+
(P) => (P.statisticType === I.Minimum || P.statisticType === I.Maximum) && P.onStatisticField === v
|
|
5946
|
+
).map((P) => ({
|
|
5947
|
+
...P,
|
|
5948
|
+
outStatisticFieldName: `${P.outStatisticFieldName}${C.boxPlot.boxPlotOutliersSuffix}`
|
|
5947
5949
|
}))), b.push(
|
|
5948
|
-
|
|
5950
|
+
yi({
|
|
5949
5951
|
queryObject: i,
|
|
5950
5952
|
uniqueQuery: A,
|
|
5951
5953
|
chartConfig: a,
|
|
@@ -5958,9 +5960,9 @@ async function Vl(t) {
|
|
|
5958
5960
|
);
|
|
5959
5961
|
}
|
|
5960
5962
|
}
|
|
5961
|
-
const
|
|
5962
|
-
for (let
|
|
5963
|
-
d.push(...x
|
|
5963
|
+
const S = await Promise.all(b);
|
|
5964
|
+
for (let x = 0; x < S.length; x += 1)
|
|
5965
|
+
d.push(...S[x]);
|
|
5964
5966
|
return u !== g.BoxPlotMonoFieldAndCategoryAndSplitBy && (d = kt({
|
|
5965
5967
|
data: d,
|
|
5966
5968
|
x: m !== void 0 && m !== "" ? m : h
|
|
@@ -5971,7 +5973,7 @@ async function jl(t) {
|
|
|
5971
5973
|
let a;
|
|
5972
5974
|
const { series: s, showMean: o } = r, d = E(s);
|
|
5973
5975
|
if (d === g.BoxPlotMultiFieldsAndCategory || d === g.BoxPlotMultiFieldsAndSplitBy) {
|
|
5974
|
-
const l =
|
|
5976
|
+
const l = hi({ showMean: o, seriesConfig: s }), c = {
|
|
5975
5977
|
...i
|
|
5976
5978
|
};
|
|
5977
5979
|
delete c.outStatistics, delete c.groupByFieldsForStatistics, delete c.orderByFields;
|
|
@@ -6013,7 +6015,7 @@ function zl(t) {
|
|
|
6013
6015
|
});
|
|
6014
6016
|
}
|
|
6015
6017
|
function Tn(t) {
|
|
6016
|
-
const { chartConfig: e, data: i, calculateZScore: r = !1, meanAndStdDevPerField: n } = t, { series: a, showMean: s } = e, o = Ke(e), d = E(e.series), { x: l } = o, c =
|
|
6018
|
+
const { chartConfig: e, data: i, calculateZScore: r = !1, meanAndStdDevPerField: n } = t, { series: a, showMean: s } = e, o = Ke(e), d = E(e.series), { x: l } = o, c = hi({ showMean: s, seriesConfig: a });
|
|
6017
6019
|
let p = i;
|
|
6018
6020
|
if (i?.[0] !== void 0) {
|
|
6019
6021
|
const u = le(o.query?.where);
|
|
@@ -6163,7 +6165,7 @@ function Ql(t) {
|
|
|
6163
6165
|
});
|
|
6164
6166
|
}
|
|
6165
6167
|
} else {
|
|
6166
|
-
const c =
|
|
6168
|
+
const c = k(n), { idField: p, isTraditionalTypeOID: u } = Oe(c), f = u ? p : "*";
|
|
6167
6169
|
e.outStatistics = [
|
|
6168
6170
|
{
|
|
6169
6171
|
statisticType: l.statisticType,
|
|
@@ -6177,28 +6179,28 @@ function Ql(t) {
|
|
|
6177
6179
|
function Yl(t) {
|
|
6178
6180
|
const { chartConfig: e, fetchFullBoxPlotData: i } = t, { series: r } = e, n = Bt(e);
|
|
6179
6181
|
let a = [
|
|
6180
|
-
{ statisticType: I.Average, suffix:
|
|
6182
|
+
{ statisticType: I.Average, suffix: O.Average }
|
|
6181
6183
|
];
|
|
6182
6184
|
i === !0 && (a = [
|
|
6183
6185
|
...a,
|
|
6184
|
-
{ statisticType: I.Minimum, suffix:
|
|
6186
|
+
{ statisticType: I.Minimum, suffix: O.Min },
|
|
6185
6187
|
{
|
|
6186
6188
|
statisticType: I.ContinuousPercentile,
|
|
6187
6189
|
statisticParameters: { value: 0.25 },
|
|
6188
|
-
suffix:
|
|
6190
|
+
suffix: O.FirstQuartile
|
|
6189
6191
|
},
|
|
6190
6192
|
{
|
|
6191
6193
|
statisticType: I.ContinuousPercentile,
|
|
6192
6194
|
statisticParameters: { value: 0.5 },
|
|
6193
|
-
suffix:
|
|
6195
|
+
suffix: O.Median
|
|
6194
6196
|
},
|
|
6195
6197
|
{
|
|
6196
6198
|
statisticType: I.ContinuousPercentile,
|
|
6197
6199
|
statisticParameters: { value: 0.75 },
|
|
6198
|
-
suffix:
|
|
6200
|
+
suffix: O.ThirdQuartile
|
|
6199
6201
|
},
|
|
6200
|
-
{ statisticType: I.Maximum, suffix:
|
|
6201
|
-
{ statisticType: I.StandardDeviation, suffix:
|
|
6202
|
+
{ statisticType: I.Maximum, suffix: O.Max },
|
|
6203
|
+
{ statisticType: I.StandardDeviation, suffix: O.StandardDeviation }
|
|
6202
6204
|
]);
|
|
6203
6205
|
const s = /* @__PURE__ */ new Set();
|
|
6204
6206
|
return n && "y" in r[0] ? [r[0].y].flat().forEach((d) => s.add(d)) : r.forEach((d) => {
|
|
@@ -6260,59 +6262,59 @@ function _i(t) {
|
|
|
6260
6262
|
seriesConfig: p,
|
|
6261
6263
|
queryObject: n
|
|
6262
6264
|
});
|
|
6263
|
-
let b = /* @__PURE__ */ new Map(),
|
|
6265
|
+
let b = /* @__PURE__ */ new Map(), S = !1, x = !1, v = !1, F = !1, T = !1, w = {};
|
|
6264
6266
|
if (u !== void 0) {
|
|
6265
|
-
|
|
6266
|
-
const
|
|
6267
|
-
let
|
|
6268
|
-
switch (i.fetchNullValues !== !0 && (f !== C.boxPlot.boxPlotCategory && (
|
|
6267
|
+
w = wt(u);
|
|
6268
|
+
const z = le(u.where);
|
|
6269
|
+
let N = "";
|
|
6270
|
+
switch (i.fetchNullValues !== !0 && (f !== C.boxPlot.boxPlotCategory && (N = `${f} IS NOT NULL`), z.trim() !== "" && z !== f && !Ue(u.where) && (N = Z([N, `${z} IS NOT NULL`]))), c) {
|
|
6269
6271
|
case g.BarAndLineSplitBy: {
|
|
6270
|
-
b = Ul(l), F = !0,
|
|
6272
|
+
b = Ul(l), F = !0, S = !0, x = !0;
|
|
6271
6273
|
break;
|
|
6272
6274
|
}
|
|
6273
6275
|
case g.BarAndLineMultiFields:
|
|
6274
|
-
Jl(
|
|
6276
|
+
Jl(w, l), x = !0;
|
|
6275
6277
|
break;
|
|
6276
6278
|
case g.PieFromFields:
|
|
6277
6279
|
case g.BarAndLineFromFields:
|
|
6278
|
-
|
|
6280
|
+
N = "", v = !0, x = !0;
|
|
6279
6281
|
break;
|
|
6280
6282
|
case g.BarAndLineMonoField:
|
|
6281
6283
|
case g.PieFromCategory:
|
|
6282
|
-
|
|
6284
|
+
x = !0;
|
|
6283
6285
|
break;
|
|
6284
6286
|
case g.BoxPlotMonoField:
|
|
6285
6287
|
case g.BoxPlotMultiFields:
|
|
6286
|
-
v = !0,
|
|
6288
|
+
v = !0, T = !0;
|
|
6287
6289
|
break;
|
|
6288
6290
|
case g.BoxPlotMonoFieldAndCategory:
|
|
6289
6291
|
case g.BoxPlotMultiFieldsAndCategory:
|
|
6290
6292
|
case g.BoxPlotMonoFieldAndSplitBy:
|
|
6291
6293
|
case g.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
6292
6294
|
case g.BoxPlotMultiFieldsAndSplitBy: {
|
|
6293
|
-
|
|
6295
|
+
T = !0, F = !0, v = !0;
|
|
6294
6296
|
break;
|
|
6295
6297
|
}
|
|
6296
6298
|
case g.PieNoAggregation:
|
|
6297
6299
|
case g.BarAndLineNoAggregation:
|
|
6298
6300
|
case g.BarAndLineSplitByNoAggregation:
|
|
6299
6301
|
}
|
|
6300
|
-
if (
|
|
6301
|
-
uniqueQuery:
|
|
6302
|
+
if (x && Ql({
|
|
6303
|
+
uniqueQuery: w,
|
|
6302
6304
|
y: h,
|
|
6303
|
-
useGenericOutStatFieldName:
|
|
6305
|
+
useGenericOutStatFieldName: S,
|
|
6304
6306
|
queryObject: n,
|
|
6305
6307
|
chartSubType: c,
|
|
6306
6308
|
isTimeBinningSeries: m,
|
|
6307
6309
|
returnFeaturesExtent: d,
|
|
6308
|
-
splitByField:
|
|
6309
|
-
}), F && Hl({ uniqueQuery:
|
|
6310
|
+
splitByField: z
|
|
6311
|
+
}), F && Hl({ uniqueQuery: w, splitByField: z, x: f }), ye(e) && T && (w.outStatistics = Yl({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete w.orderByFields : i.orderByFields !== void 0 && (w.orderByFields = i.orderByFields.filter((J) => {
|
|
6310
6312
|
const we = J.split(" ");
|
|
6311
6313
|
return !ae(we[0]);
|
|
6312
6314
|
})), m && Ne(l[0])) {
|
|
6313
|
-
const J =
|
|
6315
|
+
const J = k(n), { idFields: we } = fi(J);
|
|
6314
6316
|
Fe(n).find((Me) => Me.name === f)?.type !== H.DateOnly && we && Kl({
|
|
6315
|
-
uniqueQuery:
|
|
6317
|
+
uniqueQuery: w,
|
|
6316
6318
|
x: f,
|
|
6317
6319
|
splitByField: le(u.where),
|
|
6318
6320
|
unit: a?.unit ?? l[0].temporalBinning?.unit,
|
|
@@ -6321,11 +6323,11 @@ function _i(t) {
|
|
|
6321
6323
|
runsOnClientQueryEngine: Ee(n)
|
|
6322
6324
|
});
|
|
6323
6325
|
}
|
|
6324
|
-
|
|
6326
|
+
w.where = N;
|
|
6325
6327
|
}
|
|
6326
|
-
An({ chartConfig: e, options: r, uniqueQuery:
|
|
6327
|
-
const { gdbVersion: A, geometry:
|
|
6328
|
-
return A !== void 0 && (
|
|
6328
|
+
An({ chartConfig: e, options: r, uniqueQuery: w });
|
|
6329
|
+
const { gdbVersion: A, geometry: P, distance: D, units: B, timeExtent: M, where: L, objectIds: R, spatialRelationship: G } = i;
|
|
6330
|
+
return A !== void 0 && (w.gdbVersion = A), P !== void 0 && (w.geometry = P), D !== void 0 && (w.distance = D), B !== void 0 && (w.units = B), M !== void 0 && (w.timeExtent = M), R !== void 0 && (w.objectIds = R), G !== void 0 && (w.spatialRelationship = G), L !== void 0 && (w.where = Z([w.where, L])), { uniqueQuery: w, mapToStatField: b };
|
|
6329
6331
|
}
|
|
6330
6332
|
async function Xl(t) {
|
|
6331
6333
|
const { queryObject: e, queryConfig: i, chartConfig: r, abortKey: n } = t, a = r.series[0], { x: s, valueConversion: o } = a, d = Qi(r), l = await Le({
|
|
@@ -6455,7 +6457,7 @@ function ed(t) {
|
|
|
6455
6457
|
function oi(t) {
|
|
6456
6458
|
const { arrayToSort: e, chartConfig: i, fieldList: r, isTimeBinningSeries: n } = t;
|
|
6457
6459
|
if (n !== !0 && e[0] !== void 0) {
|
|
6458
|
-
const { series: a } = i, s = E(a), o = q(a), d = ke(i), l =
|
|
6460
|
+
const { series: a } = i, s = E(a), o = q(a), d = ke(i), l = Oi(i);
|
|
6459
6461
|
if (At(i) && e !== void 0)
|
|
6460
6462
|
ed({ arrayToSort: e, chartConfig: i, dataOrderParameters: l });
|
|
6461
6463
|
else if (l?.[0] !== void 0 && e !== void 0 && e.length > 1) {
|
|
@@ -6472,12 +6474,12 @@ function oi(t) {
|
|
|
6472
6474
|
preferLabel: f
|
|
6473
6475
|
});
|
|
6474
6476
|
else {
|
|
6475
|
-
const
|
|
6477
|
+
const S = d === y.DateAxisFormat && u;
|
|
6476
6478
|
$t({
|
|
6477
6479
|
arrayToSort: e,
|
|
6478
6480
|
orderBy: c,
|
|
6479
6481
|
sortingField: p,
|
|
6480
|
-
forceAscendingOrder:
|
|
6482
|
+
forceAscendingOrder: S,
|
|
6481
6483
|
isNonAggregated: b,
|
|
6482
6484
|
sortByCategory: u,
|
|
6483
6485
|
preferLabel: f,
|
|
@@ -6555,28 +6557,28 @@ async function Pf(t) {
|
|
|
6555
6557
|
const { data: e, queryObject: i, chartConfig: r, allowColorMatch: n } = t;
|
|
6556
6558
|
let a = !1, s = [];
|
|
6557
6559
|
if (n && !de(i)) {
|
|
6558
|
-
const { series: o, chartRenderer: d } = r, l = td(d), c = l ? Ct.ChartRenderer : Ct.LayerRenderer, p = i ?
|
|
6560
|
+
const { series: o, chartRenderer: d } = r, l = td(d), c = l ? Ct.ChartRenderer : Ct.LayerRenderer, p = i ? k(i) : void 0, u = l ?? p?.renderer;
|
|
6559
6561
|
let f;
|
|
6560
6562
|
p && c === Ct.LayerRenderer ? s = await an(p) : c === Ct.ChartRenderer && (s = Es(u));
|
|
6561
6563
|
const h = Ls(l, p?.renderer), m = Ms({
|
|
6562
6564
|
chartRenderer: d,
|
|
6563
6565
|
queryObject: i
|
|
6564
|
-
}), b = q(o),
|
|
6566
|
+
}), b = q(o), S = E(o), x = Ke(r), v = le(x.query?.where);
|
|
6565
6567
|
f = /* @__PURE__ */ new Map();
|
|
6566
6568
|
for (let F = 0; F < (b === y.HistogramSeries && e.length > 0 ? 1 : e.length); F += 1) {
|
|
6567
|
-
const
|
|
6569
|
+
const T = e[F], w = await Rs({
|
|
6568
6570
|
seriesConfig: r.series,
|
|
6569
|
-
dataItem:
|
|
6571
|
+
dataItem: T,
|
|
6570
6572
|
renderer: u,
|
|
6571
6573
|
rendererType: h,
|
|
6572
6574
|
rendererOrigin: c,
|
|
6573
|
-
chartSubType:
|
|
6575
|
+
chartSubType: S,
|
|
6574
6576
|
splitByField: v,
|
|
6575
6577
|
graphicTemplate: m,
|
|
6576
6578
|
mapAttributesToSymbol: f,
|
|
6577
6579
|
rendererFieldNames: s
|
|
6578
6580
|
});
|
|
6579
|
-
a = a ||
|
|
6581
|
+
a = a || w.colorMatchApplied;
|
|
6580
6582
|
}
|
|
6581
6583
|
}
|
|
6582
6584
|
return { dataItems: e, colorMatchApplied: a, rendererFieldNames: s };
|
|
@@ -6601,13 +6603,13 @@ function id(t) {
|
|
|
6601
6603
|
C.lastTemporalBin,
|
|
6602
6604
|
C.technicalFieldSplitByField,
|
|
6603
6605
|
Q.uniqueIdsName,
|
|
6604
|
-
|
|
6606
|
+
V.valueField,
|
|
6605
6607
|
...Tr
|
|
6606
6608
|
], p = (m, b) => {
|
|
6607
|
-
const
|
|
6608
|
-
|
|
6609
|
-
const
|
|
6610
|
-
|
|
6609
|
+
const S = b[C.originalCategoryValue];
|
|
6610
|
+
S !== void 0 && n && (b[n] = S);
|
|
6611
|
+
const x = b[C.originalYCategoryValue];
|
|
6612
|
+
x !== void 0 && a && (b[a] = x), n && b[V.xField] !== void 0 && (b[n] = b[C.originalCategoryValue] !== void 0 ? b[C.originalCategoryValue] : b[V.xField], delete b[V.xField]), a && b[V.yField] !== void 0 && (b[a] = b[C.originalYCategoryValue] !== void 0 ? b[C.originalYCategoryValue] : b[V.yField], delete b[V.yField]), s && b[V.valueField] !== void 0 && (b[s] = b[V.valueField], delete b[V.valueField]);
|
|
6611
6613
|
const v = {};
|
|
6612
6614
|
return Object.keys(b).forEach((F) => {
|
|
6613
6615
|
!c.includes(F) && !F.includes(C.rendererSymbolField) && (v[F] = b[F]);
|
|
@@ -6681,7 +6683,7 @@ function Bn(t) {
|
|
|
6681
6683
|
let [s, o] = a, d = !0;
|
|
6682
6684
|
const l = Ee(r);
|
|
6683
6685
|
if (l) {
|
|
6684
|
-
const c =
|
|
6686
|
+
const c = k(r), { fieldsIndex: p } = c;
|
|
6685
6687
|
s = dr({ fieldsIndex: p, fieldName: e, inputDate: s }), o = dr({ fieldsIndex: p, fieldName: e, inputDate: o });
|
|
6686
6688
|
} else
|
|
6687
6689
|
typeof s == "number" && typeof o == "number" ? Number.isFinite(s) && Number.isFinite(o) ? (s = It(s), o = It(o)) : d = !1 : typeof s == "string" && typeof o == "string" && (s = new Date(s).toISOString(), o = new Date(o).toISOString());
|
|
@@ -6719,12 +6721,12 @@ function Dn(t) {
|
|
|
6719
6721
|
let l = "";
|
|
6720
6722
|
if (js(s)) {
|
|
6721
6723
|
const p = E(s.series) === g.BoxPlotMultiFieldsAndCategory ? i : void 0, u = se({
|
|
6722
|
-
key:
|
|
6724
|
+
key: O.Min,
|
|
6723
6725
|
showOutliers: !0,
|
|
6724
6726
|
splitBy: r,
|
|
6725
6727
|
y: p
|
|
6726
6728
|
}), f = se({
|
|
6727
|
-
key:
|
|
6729
|
+
key: O.Max,
|
|
6728
6730
|
showOutliers: !0,
|
|
6729
6731
|
splitBy: r,
|
|
6730
6732
|
y: p
|
|
@@ -6792,7 +6794,7 @@ function od(t) {
|
|
|
6792
6794
|
let l = "";
|
|
6793
6795
|
if (d.type === y.HeatSeries) {
|
|
6794
6796
|
let c, p;
|
|
6795
|
-
const u = r[
|
|
6797
|
+
const u = r[V.xField], f = r[C.originalCategoryValue], h = r[V.yField], m = r[C.originalYCategoryValue], b = n.axes?.[0]?.valueFormat?.type, S = n.axes?.[1]?.valueFormat?.type;
|
|
6796
6798
|
b === y.CategoryAxisFormat ? c = Qe({
|
|
6797
6799
|
where: tt(d.x, f ?? u),
|
|
6798
6800
|
normalize: !1,
|
|
@@ -6805,7 +6807,7 @@ function od(t) {
|
|
|
6805
6807
|
outTimeZone: a,
|
|
6806
6808
|
dataTimeZone: s,
|
|
6807
6809
|
runsOnClientQueryEngine: o
|
|
6808
|
-
}),
|
|
6810
|
+
}), S === y.CategoryAxisFormat ? p = Qe({
|
|
6809
6811
|
where: tt(d.y, m ?? h),
|
|
6810
6812
|
normalize: !1,
|
|
6811
6813
|
escape: !0
|
|
@@ -6867,53 +6869,53 @@ async function dd(t) {
|
|
|
6867
6869
|
let l = { valid: !0, data: { dataItems: [] } };
|
|
6868
6870
|
if (n !== void 0 && n.length > 0) {
|
|
6869
6871
|
const c = Ke(r), { x: p } = c, u = "y" in c ? c.y : "", h = Fe(e).find((F) => F.name === p)?.type, m = [], b = n.reduce(
|
|
6870
|
-
(F,
|
|
6871
|
-
const
|
|
6872
|
-
if (Q.uniqueIdsName in
|
|
6873
|
-
m.push(
|
|
6872
|
+
(F, T) => {
|
|
6873
|
+
const w = [];
|
|
6874
|
+
if (Q.uniqueIdsName in T)
|
|
6875
|
+
m.push(T[Q.uniqueIdsName]);
|
|
6874
6876
|
else {
|
|
6875
6877
|
switch (d) {
|
|
6876
6878
|
case g.BoxPlotMonoFieldAndSplitBy:
|
|
6877
6879
|
case g.BoxPlotMultiFieldsAndSplitBy:
|
|
6878
6880
|
case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
6879
|
-
const
|
|
6880
|
-
Object.keys(
|
|
6881
|
-
if (
|
|
6882
|
-
const
|
|
6883
|
-
|
|
6881
|
+
const D = le(c.query?.where ?? ""), B = `_${O.Average}`;
|
|
6882
|
+
Object.keys(T).forEach((M) => {
|
|
6883
|
+
if (M.includes(B)) {
|
|
6884
|
+
const L = M.replace(B, "");
|
|
6885
|
+
L.trim() !== "" && w.push(tt(D, L));
|
|
6884
6886
|
}
|
|
6885
6887
|
});
|
|
6886
6888
|
break;
|
|
6887
6889
|
}
|
|
6888
6890
|
}
|
|
6889
6891
|
const A = [u].flat();
|
|
6890
|
-
let
|
|
6892
|
+
let P = A.length === 1 ? A[0] : "";
|
|
6891
6893
|
if (d === g.BoxPlotMultiFieldsAndCategory) {
|
|
6892
|
-
const
|
|
6893
|
-
|
|
6894
|
+
const D = `_${O.FirstQuartile}`, B = Object.keys(T).find((M) => M.includes(D));
|
|
6895
|
+
B !== void 0 && (P = B.replace(D, ""));
|
|
6894
6896
|
}
|
|
6895
|
-
|
|
6896
|
-
const
|
|
6897
|
+
w.length === 0 && w.push(""), w.forEach((D) => {
|
|
6898
|
+
const B = Dn({
|
|
6897
6899
|
chartConfig: r,
|
|
6898
6900
|
xAxisField: p,
|
|
6899
|
-
yAxisField:
|
|
6900
|
-
splitBy:
|
|
6901
|
-
dataContext:
|
|
6901
|
+
yAxisField: P,
|
|
6902
|
+
splitBy: D,
|
|
6903
|
+
dataContext: T,
|
|
6902
6904
|
xAxisFieldType: h
|
|
6903
6905
|
});
|
|
6904
|
-
F.push(
|
|
6906
|
+
F.push(B);
|
|
6905
6907
|
});
|
|
6906
6908
|
}
|
|
6907
6909
|
return F;
|
|
6908
6910
|
},
|
|
6909
6911
|
[]
|
|
6910
|
-
),
|
|
6911
|
-
if (
|
|
6912
|
-
const F = Oe(
|
|
6912
|
+
), S = k(e);
|
|
6913
|
+
if (S !== void 0 && m.length > 0) {
|
|
6914
|
+
const F = Oe(S).idField;
|
|
6913
6915
|
b.push(`${F} IN (${m.join(",")})`);
|
|
6914
6916
|
}
|
|
6915
|
-
const
|
|
6916
|
-
v.where = Z([v.where,
|
|
6917
|
+
const x = b.join(" OR "), v = { ...i };
|
|
6918
|
+
v.where = Z([v.where, x]), l = await Gi({
|
|
6917
6919
|
queryObject: e,
|
|
6918
6920
|
chartConfig: r,
|
|
6919
6921
|
queryConfig: v,
|
|
@@ -6946,10 +6948,10 @@ async function cd(t) {
|
|
|
6946
6948
|
break;
|
|
6947
6949
|
case y.PieSeries:
|
|
6948
6950
|
if (E(r.series) === g.PieFromFields) {
|
|
6949
|
-
const { x: m, y: b } = r.series[0],
|
|
6950
|
-
|
|
6951
|
-
m in
|
|
6952
|
-
}), u.data = { dataItems:
|
|
6951
|
+
const { x: m, y: b } = r.series[0], S = wt(f);
|
|
6952
|
+
S.forEach((x) => {
|
|
6953
|
+
m in x && (x[me] = x[m], delete x[m]), b in x && (x[De] = x[b], delete x[b]);
|
|
6954
|
+
}), u.data = { dataItems: S };
|
|
6953
6955
|
} else
|
|
6954
6956
|
u.data = { dataItems: f };
|
|
6955
6957
|
u.count = f.length, h = !0;
|
|
@@ -6979,14 +6981,14 @@ async function cd(t) {
|
|
|
6979
6981
|
else {
|
|
6980
6982
|
const m = { ...i };
|
|
6981
6983
|
if (n !== void 0 && n.length > 0) {
|
|
6982
|
-
const
|
|
6984
|
+
const S = n.map(
|
|
6983
6985
|
(v) => Bn({
|
|
6984
6986
|
xAxisField: l[0].x,
|
|
6985
6987
|
dataContext: v,
|
|
6986
6988
|
queryObject: e
|
|
6987
6989
|
})
|
|
6988
|
-
),
|
|
6989
|
-
m.where = Z([m.where,
|
|
6990
|
+
), x = Z(S, "OR");
|
|
6991
|
+
m.where = Z([m.where, x]);
|
|
6990
6992
|
}
|
|
6991
6993
|
u = await Hi({
|
|
6992
6994
|
queryObject: e,
|
|
@@ -7008,13 +7010,13 @@ async function cd(t) {
|
|
|
7008
7010
|
}, u.count = 0;
|
|
7009
7011
|
else {
|
|
7010
7012
|
const { x: m } = l[0], b = f.map((v, F) => {
|
|
7011
|
-
const { minValue:
|
|
7012
|
-
return `${m} >= ${
|
|
7013
|
-
}),
|
|
7014
|
-
|
|
7013
|
+
const { minValue: T, maxValue: w } = v, A = F === f.length - 1 ? "<=" : "<";
|
|
7014
|
+
return `${m} >= ${T} AND ${m} ${A} ${w}`;
|
|
7015
|
+
}), S = Z(b, "OR"), x = { ...i };
|
|
7016
|
+
x.where = Z([x.where, S]), u = await Cn({
|
|
7015
7017
|
queryObject: e,
|
|
7016
7018
|
chartConfig: r,
|
|
7017
|
-
queryConfig:
|
|
7019
|
+
queryConfig: x,
|
|
7018
7020
|
options: s,
|
|
7019
7021
|
errorStrings: o,
|
|
7020
7022
|
abortKey: d
|
|
@@ -7044,7 +7046,7 @@ async function cd(t) {
|
|
|
7044
7046
|
async function Gi(t) {
|
|
7045
7047
|
const { queryObject: e, chartConfig: i, queryConfig: r, options: n, errorStrings: a, abortKey: s } = t;
|
|
7046
7048
|
let o = { valid: !0 };
|
|
7047
|
-
const d = Bt(i), l = await
|
|
7049
|
+
const d = Bt(i), l = await Mi({
|
|
7048
7050
|
queryObject: e,
|
|
7049
7051
|
queryConfig: r,
|
|
7050
7052
|
fetchFullBoxPlotData: !d,
|
|
@@ -7057,7 +7059,7 @@ async function Gi(t) {
|
|
|
7057
7059
|
else {
|
|
7058
7060
|
const c = { dataItems: [] };
|
|
7059
7061
|
c.meanLines = l.data.dataItems;
|
|
7060
|
-
const p = Dl(i), u = (await
|
|
7062
|
+
const p = Dl(i), u = (await Mi({
|
|
7061
7063
|
queryObject: e,
|
|
7062
7064
|
queryConfig: r,
|
|
7063
7065
|
fetchFullBoxPlotData: !0,
|
|
@@ -7137,7 +7139,7 @@ async function pd(t) {
|
|
|
7137
7139
|
setTimeBinningInfoWhenNotProvided: n?.setTimeBinningInfoWhenNotProvided,
|
|
7138
7140
|
seriesConfig: p[0],
|
|
7139
7141
|
queryObject: e
|
|
7140
|
-
}) ? h = await Hi(m) : h = await
|
|
7142
|
+
}) ? h = await Hi(m) : h = await Mi(m);
|
|
7141
7143
|
break;
|
|
7142
7144
|
}
|
|
7143
7145
|
case y.ScatterSeries:
|
|
@@ -7374,32 +7376,32 @@ function Sd(t) {
|
|
|
7374
7376
|
const { unit: o } = r, d = r.size ?? 1, l = i[0], { x: c } = l;
|
|
7375
7377
|
let p, u;
|
|
7376
7378
|
if (Ne(l) && (u = l.temporalBinning?.nullPolicy, p = l.temporalBinning?.timeAggregationType), d > 1 || o === $.Week || o === $.Month || o === $.Year) {
|
|
7377
|
-
const { query: f } = i[0], h = he(i), { statisticType: m } = f?.outStatistics?.[0] ??
|
|
7378
|
-
let b = !1,
|
|
7379
|
-
const
|
|
7380
|
-
binFirstOrLastIndex:
|
|
7379
|
+
const { query: f } = i[0], h = he(i), { statisticType: m } = f?.outStatistics?.[0] ?? $i;
|
|
7380
|
+
let b = !1, S = p === re.End ? e.length - 1 : 0;
|
|
7381
|
+
const x = {
|
|
7382
|
+
binFirstOrLastIndex: S,
|
|
7381
7383
|
data: e,
|
|
7382
7384
|
x: c,
|
|
7383
7385
|
timeIntervalInfo: r
|
|
7384
7386
|
};
|
|
7385
7387
|
for (; !b; ) {
|
|
7386
7388
|
let v = {};
|
|
7387
|
-
const { binStartDate: F, binEndDate:
|
|
7389
|
+
const { binStartDate: F, binEndDate: T, last: w, nextBinFirstOrLastIndex: A, sliceStartIndex: P, sliceEndIndex: D } = p === re.End ? (
|
|
7388
7390
|
// When grouping from the end we'll start from the last date and move backward to create the bins
|
|
7389
|
-
gd(
|
|
7391
|
+
gd(x)
|
|
7390
7392
|
) : (
|
|
7391
7393
|
// When grouping from the start we'll start from the first date and move forward to create the bins
|
|
7392
|
-
md(
|
|
7394
|
+
md(x)
|
|
7393
7395
|
);
|
|
7394
|
-
if (b =
|
|
7395
|
-
const
|
|
7396
|
+
if (b = w, v = p === re.End ? v = e[D - 1] : v = e[S], T > a && F < a || F < n && T > n || F >= n && T <= a) {
|
|
7397
|
+
const B = e.slice(P, D).filter((R) => !(C.dateBinModel in R));
|
|
7396
7398
|
h.forEach((R) => {
|
|
7397
|
-
v[R] = bd({ binsToRegroup:
|
|
7399
|
+
v[R] = bd({ binsToRegroup: B, statisticType: m, y: R, nullPolicy: u });
|
|
7398
7400
|
});
|
|
7399
|
-
const
|
|
7400
|
-
|
|
7401
|
-
} else
|
|
7402
|
-
|
|
7401
|
+
const M = B.map((R) => R[_e]).filter((R) => R !== void 0), L = hs(M);
|
|
7402
|
+
L !== void 0 && (v[_e] = L), v[c] = F, v[C.xAxisField] = F, v[C.dateBinningRange] = [F, T], delete v[C.dateBinModel], s.push(v);
|
|
7403
|
+
} else w && p !== re.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
|
|
7404
|
+
S = A, x.binFirstOrLastIndex = A;
|
|
7403
7405
|
}
|
|
7404
7406
|
p === re.End && (s = s.reverse());
|
|
7405
7407
|
} else d === 1 ? s = e.map((f, h) => {
|
|
@@ -7473,7 +7475,7 @@ function xd(t) {
|
|
|
7473
7475
|
const m = Mn(a);
|
|
7474
7476
|
if (c === re.End) {
|
|
7475
7477
|
let b = n[0][l];
|
|
7476
|
-
for (let
|
|
7478
|
+
for (let S = 0; S < h; S += 1)
|
|
7477
7479
|
b = it({
|
|
7478
7480
|
date: b,
|
|
7479
7481
|
unit: d,
|
|
@@ -7487,7 +7489,7 @@ function xd(t) {
|
|
|
7487
7489
|
h > 0 && (p = n[n.length - 1][l]);
|
|
7488
7490
|
} else {
|
|
7489
7491
|
let b = n[n.length - 1][l];
|
|
7490
|
-
for (let
|
|
7492
|
+
for (let S = 0; S < h; S += 1)
|
|
7491
7493
|
b = it({
|
|
7492
7494
|
date: b,
|
|
7493
7495
|
unit: d,
|
|
@@ -7612,10 +7614,10 @@ function* Id(t) {
|
|
|
7612
7614
|
];
|
|
7613
7615
|
let u = ut.groupByCaseBegin;
|
|
7614
7616
|
for (let h = 0; h < n.length; h += 1) {
|
|
7615
|
-
const m = n[h], [b,
|
|
7617
|
+
const m = n[h], [b, S] = m[C.dateBinningRange], x = It(b), v = It(S);
|
|
7616
7618
|
u = Td({
|
|
7617
7619
|
groupByFieldsForStatistics: u,
|
|
7618
|
-
queryStartDate:
|
|
7620
|
+
queryStartDate: x,
|
|
7619
7621
|
queryEndDate: v,
|
|
7620
7622
|
dateField: d,
|
|
7621
7623
|
y: [l].flat()[0],
|
|
@@ -7638,7 +7640,7 @@ function* Id(t) {
|
|
|
7638
7640
|
}
|
|
7639
7641
|
}
|
|
7640
7642
|
async function Ad(t) {
|
|
7641
|
-
const { queryObject: e, data: i, seriesConfig: r, queryConfig: n } = t, a = i, { statisticType: s } = r[0].query?.outStatistics?.[0] ??
|
|
7643
|
+
const { queryObject: e, data: i, seriesConfig: r, queryConfig: n } = t, a = i, { statisticType: s } = r[0].query?.outStatistics?.[0] ?? $i;
|
|
7642
7644
|
if (s === I.ContinuousPercentile && a.length > 0) {
|
|
7643
7645
|
const o = Id({
|
|
7644
7646
|
queryObject: e,
|
|
@@ -7647,7 +7649,7 @@ async function Ad(t) {
|
|
|
7647
7649
|
queryConfig: n
|
|
7648
7650
|
}), d = (await Promise.all(o)).flat();
|
|
7649
7651
|
if (d.length > 0) {
|
|
7650
|
-
const { isInItem: l, expr: c } =
|
|
7652
|
+
const { isInItem: l, expr: c } = pi(d[0].attributes);
|
|
7651
7653
|
l && d.forEach((p) => {
|
|
7652
7654
|
const u = p.attributes[`${c}`];
|
|
7653
7655
|
if (u !== void 0) {
|
|
@@ -7663,10 +7665,10 @@ async function Ad(t) {
|
|
|
7663
7665
|
return a;
|
|
7664
7666
|
}
|
|
7665
7667
|
function pr(t) {
|
|
7666
|
-
const { dataItem: e, nullPolicy: i, statField: r
|
|
7668
|
+
const { dataItem: e, nullPolicy: i, statField: r } = t;
|
|
7667
7669
|
if (r) {
|
|
7668
|
-
const
|
|
7669
|
-
if (n
|
|
7670
|
+
const n = e[r];
|
|
7671
|
+
if (n == null)
|
|
7670
7672
|
switch (!0) {
|
|
7671
7673
|
case i === Ce.Zero:
|
|
7672
7674
|
e[r] = 0;
|
|
@@ -7682,39 +7684,37 @@ function pr(t) {
|
|
|
7682
7684
|
}
|
|
7683
7685
|
function Bd(t) {
|
|
7684
7686
|
const { chartConfig: e, queryResults: i, mapToStatField: r, splitByField: n, x: a, y: s, nullPolicy: o, queryObject: d } = t, l = Ur(a), p = Fe(d).find((b) => b.name === a)?.type, u = [], f = e.series[0], h = "temporalBinning" in f ? f.temporalBinning?.trimIncompleteTimeInterval : !1, m = "temporalBinning" in f ? f.temporalBinning?.timeAggregationType : !1;
|
|
7685
|
-
return i.forEach((b,
|
|
7686
|
-
if (!(h && (
|
|
7687
|
+
return i.forEach((b, S) => {
|
|
7688
|
+
if (!(h && (S === 0 && m === re.End || S === i.length - 1 && m === re.Start))) {
|
|
7687
7689
|
const { attributes: v, stackedAttributes: F } = b;
|
|
7688
|
-
let
|
|
7689
|
-
const A =
|
|
7690
|
-
let
|
|
7691
|
-
if (
|
|
7690
|
+
let T = v[l.lowerBoundaryAlias], w = v[l.upperBoundaryAlias];
|
|
7691
|
+
const A = T, P = w, D = (B, M) => {
|
|
7692
|
+
let L = B;
|
|
7693
|
+
if (M === H.DateOnly && (typeof B == "string" && B.length === 10 || typeof B == "number"))
|
|
7692
7694
|
if (typeof B == "string") {
|
|
7693
|
-
const
|
|
7694
|
-
|
|
7695
|
+
const R = B.split("-");
|
|
7696
|
+
R.length === 3 && (L = xe.local(Number(R[0]), Number(R[1]), Number(R[2])).valueOf());
|
|
7695
7697
|
} else
|
|
7696
|
-
|
|
7697
|
-
else typeof B == "string" && ["+", "-"].forEach((
|
|
7698
|
-
|
|
7698
|
+
L = new Date(B), L = new Date(L.valueOf() + L.getTimezoneOffset() * 6e4), L = xe.local(L.getFullYear(), L.getMonth() + 1, L.getDate()).valueOf();
|
|
7699
|
+
else typeof B == "string" && ["+", "-"].forEach((R) => {
|
|
7700
|
+
R && B.lastIndexOf(R) === B.length - 6 && (L = new Date(B.slice(0, B.lastIndexOf(R))).valueOf());
|
|
7699
7701
|
});
|
|
7700
|
-
return
|
|
7702
|
+
return L;
|
|
7701
7703
|
};
|
|
7702
|
-
|
|
7703
|
-
const M = f.query?.outStatistics?.[0].statisticType ?? di.statisticType;
|
|
7704
|
-
if (typeof w == "number" && typeof T == "number") {
|
|
7704
|
+
if (T = D(T, p), w = D(w, p), typeof T == "number" && typeof w == "number") {
|
|
7705
7705
|
const B = { ...v };
|
|
7706
|
-
B[C.originalServerBinningRange] = [A,
|
|
7707
|
-
const
|
|
7708
|
-
if (
|
|
7709
|
-
const
|
|
7710
|
-
|
|
7706
|
+
B[C.originalServerBinningRange] = [A, P], B[a] = T, B[C.xAxisField] = T, B[C.dateBinningRange] = [T, w], delete B[l.lowerBoundaryAlias], delete B[l.upperBoundaryAlias], F && n && !ae(n) && r ? F.forEach((R) => {
|
|
7707
|
+
const G = R[n];
|
|
7708
|
+
if (G === null || typeof G == "string" || typeof G == "number") {
|
|
7709
|
+
const z = r?.get(G);
|
|
7710
|
+
z !== void 0 && (B[z] = R[Q.outStatistics?.outStatisticFieldName ?? ""], pr({ dataItem: B, statField: z, nullPolicy: o }));
|
|
7711
7711
|
}
|
|
7712
|
-
}) : typeof s == "string" && pr({ dataItem: B, statField: s, nullPolicy: o
|
|
7713
|
-
const { featureExtent:
|
|
7712
|
+
}) : typeof s == "string" && pr({ dataItem: B, statField: s, nullPolicy: o });
|
|
7713
|
+
const { featureExtent: M, featureExtentKey: L } = Rn({
|
|
7714
7714
|
feature: b,
|
|
7715
7715
|
splitByField: n
|
|
7716
7716
|
});
|
|
7717
|
-
|
|
7717
|
+
M && (B[L] = M), u.push(B);
|
|
7718
7718
|
}
|
|
7719
7719
|
}
|
|
7720
7720
|
}), u;
|
|
@@ -7776,10 +7776,10 @@ function Nd(t) {
|
|
|
7776
7776
|
let r, n, { dateMinTimestamp: a, dateMaxTimestamp: s } = e;
|
|
7777
7777
|
if (a && s) {
|
|
7778
7778
|
typeof a == "string" && (a = new Date(a).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
|
|
7779
|
-
const o = Dd(i), d = (s - a) / o, l = hr.findIndex((
|
|
7779
|
+
const o = Dd(i), d = (s - a) / o, l = hr.findIndex((S) => S.threshold > d), c = hr[l], { unitMs: p, preferredIntervalSize: u } = c;
|
|
7780
7780
|
({ unit: r } = c);
|
|
7781
7781
|
const f = d / p, h = u.findIndex(
|
|
7782
|
-
(
|
|
7782
|
+
(S) => S >= f
|
|
7783
7783
|
), m = u[h], b = h === 0 ? u[0] : u[h - 1];
|
|
7784
7784
|
n = m - f < f - b ? m : b;
|
|
7785
7785
|
}
|
|
@@ -7790,7 +7790,7 @@ function Od(t) {
|
|
|
7790
7790
|
let n = !1;
|
|
7791
7791
|
if (Ne(e) && i) {
|
|
7792
7792
|
const { unit: a, size: s } = e.temporalBinning ?? {};
|
|
7793
|
-
n = !
|
|
7793
|
+
n = !Ti(a, s) && r === !0;
|
|
7794
7794
|
}
|
|
7795
7795
|
return n;
|
|
7796
7796
|
}
|
|
@@ -7865,17 +7865,17 @@ function Rd(t, e) {
|
|
|
7865
7865
|
function $d(t, e) {
|
|
7866
7866
|
const i = e, r = he(t), n = r.length === 1;
|
|
7867
7867
|
return r.forEach((a) => {
|
|
7868
|
-
const s = Ft(n ? void 0 : a), o = i[s[
|
|
7869
|
-
Number.isFinite(o) && Number.isFinite(d) && d >= o && (i[s[
|
|
7868
|
+
const s = Ft(n ? void 0 : a), o = i[s[O.FirstQuartile]], d = i[s[O.ThirdQuartile]];
|
|
7869
|
+
Number.isFinite(o) && Number.isFinite(d) && d >= o && (i[s[O.IQR]] = d - o);
|
|
7870
7870
|
}), i;
|
|
7871
7871
|
}
|
|
7872
7872
|
function qd(t, e) {
|
|
7873
7873
|
const i = e.series[0], r = t;
|
|
7874
7874
|
if (i.type === y.HeatSeries) {
|
|
7875
7875
|
const { x: n, y: a } = i;
|
|
7876
|
-
r[
|
|
7876
|
+
r[V.xField] = r[n]?.toString(), delete r[n], r[V.yField] = r[a]?.toString(), delete r[a];
|
|
7877
7877
|
const s = i.query?.outStatistics?.[0]?.outStatisticFieldName;
|
|
7878
|
-
s && (r[
|
|
7878
|
+
s && (r[V.valueField] = r[s], delete r[s]);
|
|
7879
7879
|
}
|
|
7880
7880
|
return r;
|
|
7881
7881
|
}
|
|
@@ -7980,7 +7980,7 @@ function Ud(t) {
|
|
|
7980
7980
|
yAxisValueFormat: p
|
|
7981
7981
|
} = t;
|
|
7982
7982
|
let u, f;
|
|
7983
|
-
l !== g.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (u =
|
|
7983
|
+
l !== g.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (u = Ni(i, s)), o && d === y.HeatSeries && typeof a == "string" && (typeof r == "string" || typeof r == "number") && (f = Ni(r, o)), u !== void 0 && u !== i && (typeof u != "string" || !ce(c)) && (e[C.originalCategoryValue] = e[n], e[n] = u), typeof a == "string" && !ce(p) && f !== void 0 && f !== r && (e[C.originalYCategoryValue] = e[a], e[a] = f));
|
|
7984
7984
|
}
|
|
7985
7985
|
function Hd(t) {
|
|
7986
7986
|
let e;
|
|
@@ -7999,50 +7999,50 @@ function $n(t) {
|
|
|
7999
7999
|
showMean: d,
|
|
8000
8000
|
chartLimits: l,
|
|
8001
8001
|
fieldList: c
|
|
8002
|
-
} = t, { series: p } = r, u = E(p), f = q(p), { x: h } = p[0], m = "y" in p[0] ? p[0].y : void 0, b = p[0].query?.outStatistics ?? [],
|
|
8003
|
-
let
|
|
8004
|
-
const
|
|
8005
|
-
for (let
|
|
8006
|
-
|
|
8007
|
-
const
|
|
8008
|
-
let
|
|
8009
|
-
if (Gd({ attributes:
|
|
8002
|
+
} = t, { series: p } = r, u = E(p), f = q(p), { x: h } = p[0], m = "y" in p[0] ? p[0].y : void 0, b = p[0].query?.outStatistics ?? [], S = ze(r?.axes?.[0]?.valueFormat), { originalYCategoryValue: x, originalCategoryValue: v, originalDateValue: F } = C, T = Di(e, h), w = typeof m == "string" ? Di(e, m) : void 0, P = Ko(c ?? []).includes(h), D = [];
|
|
8003
|
+
let B = 0;
|
|
8004
|
+
const M = /* @__PURE__ */ new Set(), { maxCategoryCount: L } = yt(l), R = _d({ queryResponse: i, chartConfig: r, maxCategoryCount: L });
|
|
8005
|
+
for (let G = 0; R[G] && G < R.length && !(o !== void 0 && B >= o); G += 1) {
|
|
8006
|
+
B += jd(u, r);
|
|
8007
|
+
const z = R[G];
|
|
8008
|
+
let N = { ...z.attributes };
|
|
8009
|
+
if (Gd({ attributes: N, uniqueCategoryList: M, maxCategoryCount: L, x: h, chartSubType: u }))
|
|
8010
8010
|
continue;
|
|
8011
|
-
if (Ed(
|
|
8012
|
-
|
|
8011
|
+
if (Ed(N, p), u === g.PieFromFields || u === g.BarAndLineFromFields)
|
|
8012
|
+
N = kd(N, b);
|
|
8013
8013
|
else if (typeof m == "string" && u === g.BarAndLineSplitByNoAggregation) {
|
|
8014
|
-
const Se =
|
|
8015
|
-
Wd({ dataItem:
|
|
8014
|
+
const Se = k(e), { idField: gt, isTraditionalTypeOID: mi } = Oe(Se);
|
|
8015
|
+
Wd({ dataItem: N, splitByField: a, y: m, fieldOID: mi ? gt : void 0 });
|
|
8016
8016
|
} else m && (u === g.BoxPlotMonoField || u === g.BoxPlotMonoFieldAndCategory || u === g.BoxPlotMonoFieldAndSplitBy || u === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && Vd(
|
|
8017
|
-
|
|
8017
|
+
N,
|
|
8018
8018
|
typeof m == "string" ? m : m[0]
|
|
8019
8019
|
);
|
|
8020
|
-
zd({ attributes:
|
|
8021
|
-
let J =
|
|
8022
|
-
const we = typeof m == "string" ?
|
|
8023
|
-
J === null && p[0]?.query?.fetchNullValues === !0 && u !== g.PieFromFields && (
|
|
8024
|
-
const { outStatisticFieldName: Pe } = Q.outStatistics ?? {}, { featureExtent: U, featureExtentKey: Me } = Rn({ feature:
|
|
8025
|
-
if (U && (
|
|
8026
|
-
const Se =
|
|
8027
|
-
gt !== void 0 && (Se === a && (
|
|
8028
|
-
} else (u === g.PieNoAggregation || u === g.BarAndLineNoAggregation || u === g.BarAndLineSplitByNoAggregation) && (
|
|
8029
|
-
f === y.BoxPlotSeries && (
|
|
8030
|
-
attributes:
|
|
8020
|
+
zd({ attributes: N, showMean: d, chartSubType: u });
|
|
8021
|
+
let J = N[h];
|
|
8022
|
+
const we = typeof m == "string" ? N[m] : void 0;
|
|
8023
|
+
J === null && p[0]?.query?.fetchNullValues === !0 && u !== g.PieFromFields && (N[v] = null, J = C.nullValue), S || (P && typeof J == "string" ? J = new Date(J).valueOf() : s && (J = Pd(N))), typeof J == "string" && c?.find((Se) => Se.name === h)?.type === H.TimeOnly && (N[v] = J, J = Hd(J));
|
|
8024
|
+
const { outStatisticFieldName: Pe } = Q.outStatistics ?? {}, { featureExtent: U, featureExtentKey: Me } = Rn({ feature: z, splitByField: a, chartSubType: u });
|
|
8025
|
+
if (U && (N[Me] = U), u === g.BarAndLineSplitBy && Pe !== void 0) {
|
|
8026
|
+
const Se = N[a], gt = n?.get(Se);
|
|
8027
|
+
gt !== void 0 && (Se === a && (N[C.technicalFieldSplitByField] = N[gt]), N[gt] = N[Pe]), delete N[Pe];
|
|
8028
|
+
} else (u === g.PieNoAggregation || u === g.BarAndLineNoAggregation || u === g.BarAndLineSplitByNoAggregation) && (P ? N[F] = J : J !== C.nullValue && (N[v] = J), Wa({ isXAxis: !0, chartType: f, valueFormat: r.axes?.[0]?.valueFormat }) && (N[C.xAxisField] = `${J}-${G}`), N[Q.uniqueIdsName] = z.getObjectId());
|
|
8029
|
+
f === y.BoxPlotSeries && (N = $d(p, N)), f === y.PieSeries && typeof J == "number" && (N[v] === void 0 && (N[v] = N[h]), J = `${J}`), J !== void 0 && (N[v] === void 0 && (N[v] = N[h]), N[h] === null ? N[h] = f === y.HeatSeries ? "null" : C.nullValue : N[h] = J, Ud({
|
|
8030
|
+
attributes: N,
|
|
8031
8031
|
xValue: J,
|
|
8032
8032
|
yValue: we,
|
|
8033
8033
|
x: h,
|
|
8034
8034
|
y: m,
|
|
8035
|
-
xFieldDomain:
|
|
8036
|
-
yFieldDomain:
|
|
8035
|
+
xFieldDomain: T,
|
|
8036
|
+
yFieldDomain: w,
|
|
8037
8037
|
chartType: f,
|
|
8038
8038
|
chartSubType: u,
|
|
8039
8039
|
xAxisValueFormat: r.axes?.[0].valueFormat,
|
|
8040
8040
|
yAxisValueFormat: r.axes?.[1]?.valueFormat
|
|
8041
|
-
}), f === y.HeatSeries && typeof m == "string" &&
|
|
8041
|
+
}), f === y.HeatSeries && typeof m == "string" && N[m] === null && (N[m] = "null", N[x] = null), N[C.xAxisField] === void 0 && (N[C.xAxisField] = N[h])), N = qd(N, r), D.push(N);
|
|
8042
8042
|
}
|
|
8043
|
-
return
|
|
8043
|
+
return D;
|
|
8044
8044
|
}
|
|
8045
|
-
async function
|
|
8045
|
+
async function yi(t) {
|
|
8046
8046
|
const {
|
|
8047
8047
|
queryObject: e,
|
|
8048
8048
|
uniqueQuery: i,
|
|
@@ -8062,7 +8062,7 @@ async function hi(t) {
|
|
|
8062
8062
|
queryConfig: i,
|
|
8063
8063
|
featureCount: s,
|
|
8064
8064
|
abortKey: a
|
|
8065
|
-
}),
|
|
8065
|
+
}), S = Fe(e, c), { x } = u[0];
|
|
8066
8066
|
return h = $n({
|
|
8067
8067
|
queryObject: e,
|
|
8068
8068
|
queryResponse: b,
|
|
@@ -8070,11 +8070,11 @@ async function hi(t) {
|
|
|
8070
8070
|
mapToStatField: n,
|
|
8071
8071
|
splitByField: m,
|
|
8072
8072
|
isTimeBinningSeries: o,
|
|
8073
|
-
fieldList:
|
|
8073
|
+
fieldList: S,
|
|
8074
8074
|
resultLimit: i.num,
|
|
8075
8075
|
showMean: d,
|
|
8076
8076
|
chartLimits: l
|
|
8077
|
-
}), f !== g.BarAndLineSplitByNoAggregation && f !== g.BarAndLineFromFields && (m !== "" && (h = kt({ data: h, x
|
|
8077
|
+
}), f !== g.BarAndLineSplitByNoAggregation && f !== g.BarAndLineFromFields && (m !== "" && (h = kt({ data: h, x, splitByField: m })), h = Rd(
|
|
8078
8078
|
h,
|
|
8079
8079
|
u
|
|
8080
8080
|
)), h;
|
|
@@ -8086,11 +8086,11 @@ async function qn(t) {
|
|
|
8086
8086
|
(f) => f.statisticType !== I.EnvelopeAggregate
|
|
8087
8087
|
).length ?? 0, p = u) : p = await co({ queryObject: i, x: l, chartSubType: d, queryConfig: r, isGaugeByFeature: s }), p !== void 0) {
|
|
8088
8088
|
const f = d === g.BoxPlotMonoField || d === g.BoxPlotMonoFieldAndCategory || d === g.BoxPlotMonoFieldAndSplitBy;
|
|
8089
|
-
u =
|
|
8089
|
+
u = Ii(d) && !f ? p * c : p;
|
|
8090
8090
|
}
|
|
8091
8091
|
return a === rt.RenderUpToTheLimit && u !== void 0 && n !== void 0 && n < u && (u = n, p = Math.ceil(u / c)), { categoryOrDateCount: p, elementCount: u };
|
|
8092
8092
|
}
|
|
8093
|
-
async function
|
|
8093
|
+
async function Mi(t) {
|
|
8094
8094
|
const {
|
|
8095
8095
|
chartConfig: e,
|
|
8096
8096
|
queryConfig: i,
|
|
@@ -8100,109 +8100,109 @@ async function Ri(t) {
|
|
|
8100
8100
|
abortKey: s,
|
|
8101
8101
|
fieldList: o,
|
|
8102
8102
|
preFetchedQueryResponse: d
|
|
8103
|
-
} = t, l = Bt(e), { chartLimits: c, usePopupTemplateFieldsInfo: p } = n ?? {}, u = n?.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, { behaviorAfterLimit:
|
|
8104
|
-
let
|
|
8105
|
-
const
|
|
8106
|
-
let
|
|
8107
|
-
const
|
|
8103
|
+
} = t, l = Bt(e), { chartLimits: c, usePopupTemplateFieldsInfo: p } = n ?? {}, u = n?.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, f = !(n?.hideZeroCountCategories ?? !u), { behaviorAfterLimit: h } = c ?? {};
|
|
8104
|
+
let m;
|
|
8105
|
+
const b = { valid: !0 };
|
|
8106
|
+
let S, x = !1;
|
|
8107
|
+
const v = e.series, F = v[0], T = E(e.series);
|
|
8108
8108
|
if (de(a))
|
|
8109
|
-
|
|
8109
|
+
m = q(v) === y.BarSeries ? await Dc(t) : b;
|
|
8110
8110
|
else {
|
|
8111
|
-
if (
|
|
8112
|
-
const w = q(
|
|
8111
|
+
if (F !== void 0) {
|
|
8112
|
+
const w = q(v), { uniqueQuery: A, mapToStatField: P } = _i({
|
|
8113
8113
|
chartConfig: e,
|
|
8114
8114
|
queryObject: a,
|
|
8115
8115
|
queryConfig: i,
|
|
8116
8116
|
fetchFullBoxPlotData: r,
|
|
8117
8117
|
options: n
|
|
8118
8118
|
});
|
|
8119
|
-
let { categoryOrDateCount:
|
|
8119
|
+
let { categoryOrDateCount: D, elementCount: B } = await qn({
|
|
8120
8120
|
chartConfig: e,
|
|
8121
8121
|
queryObject: a,
|
|
8122
8122
|
queryConfig: i,
|
|
8123
|
-
behaviorAfterLimit:
|
|
8124
|
-
numberMaxOfFeaturesToFetch:
|
|
8123
|
+
behaviorAfterLimit: h,
|
|
8124
|
+
numberMaxOfFeaturesToFetch: A.num
|
|
8125
8125
|
});
|
|
8126
|
-
const M = !Number.isFinite(
|
|
8127
|
-
let
|
|
8128
|
-
count:
|
|
8129
|
-
seriesCount:
|
|
8126
|
+
const M = !Number.isFinite(B);
|
|
8127
|
+
let L = M || Ge({
|
|
8128
|
+
count: B ?? 0,
|
|
8129
|
+
seriesCount: v.length,
|
|
8130
8130
|
chartType: w,
|
|
8131
8131
|
chartLimits: c
|
|
8132
8132
|
});
|
|
8133
|
-
if (
|
|
8133
|
+
if (L && (S = await yi({
|
|
8134
8134
|
queryObject: a,
|
|
8135
|
-
uniqueQuery:
|
|
8135
|
+
uniqueQuery: A,
|
|
8136
8136
|
chartConfig: e,
|
|
8137
8137
|
preFetchedQueryResponse: d,
|
|
8138
|
-
mapToStatField:
|
|
8139
|
-
elementCount:
|
|
8138
|
+
mapToStatField: P,
|
|
8139
|
+
elementCount: B,
|
|
8140
8140
|
isTimeBinningSeries: !1,
|
|
8141
8141
|
showMean: l,
|
|
8142
8142
|
chartLimits: c,
|
|
8143
8143
|
usePopupTemplateFieldsInfo: p,
|
|
8144
8144
|
abortKey: s
|
|
8145
|
-
}), ye(e) &&
|
|
8146
|
-
data:
|
|
8145
|
+
}), ye(e) && S !== void 0 && (b.data = await _l({
|
|
8146
|
+
data: S,
|
|
8147
8147
|
queryObject: a,
|
|
8148
8148
|
fetchFullBoxPlotData: r,
|
|
8149
|
-
uniqueQuery:
|
|
8149
|
+
uniqueQuery: A,
|
|
8150
8150
|
chartConfig: e,
|
|
8151
|
-
elementCount:
|
|
8151
|
+
elementCount: B,
|
|
8152
8152
|
chartLimits: c,
|
|
8153
8153
|
abortKey: s
|
|
8154
|
-
}), c?.maxBoxPlotOutlierLimit !== void 0 && (
|
|
8155
|
-
count:
|
|
8156
|
-
seriesCount:
|
|
8154
|
+
}), c?.maxBoxPlotOutlierLimit !== void 0 && (L = (b.data.outliers ?? []).length <= c.maxBoxPlotOutlierLimit, x = !L)), M && (D = S.length, B = Ii(T) ? D * v.length : D, L = Ge({
|
|
8155
|
+
count: B,
|
|
8156
|
+
seriesCount: v.length,
|
|
8157
8157
|
chartType: w,
|
|
8158
8158
|
chartLimits: c
|
|
8159
|
-
})),
|
|
8159
|
+
})), L)) {
|
|
8160
8160
|
if (w === y.PieSeries) {
|
|
8161
|
-
|
|
8162
|
-
dataToConvert:
|
|
8161
|
+
T === g.PieFromFields && (S = ri({
|
|
8162
|
+
dataToConvert: S[0],
|
|
8163
8163
|
x: me,
|
|
8164
8164
|
y: De,
|
|
8165
8165
|
fieldList: o
|
|
8166
8166
|
}));
|
|
8167
|
-
let
|
|
8168
|
-
|
|
8169
|
-
} else if ((w === y.RadarSeries || w === y.BarSeries || w === y.LineSeries || w === y.ComboLineAndBarSeries) && (
|
|
8170
|
-
dataToConvert:
|
|
8171
|
-
x:
|
|
8172
|
-
y:
|
|
8167
|
+
let R = "";
|
|
8168
|
+
T === g.PieFromFields ? R = De : "y" in F && typeof F.y == "string" && (R = F.y), Cs(S, R) ? b.data = { dataItems: S } : Nl(b, W.PieChartMixOfNegativePositiveSlices);
|
|
8169
|
+
} else if ((w === y.RadarSeries || w === y.BarSeries || w === y.LineSeries || w === y.ComboLineAndBarSeries) && (T === g.BarAndLineFromFields && "y" in F && typeof F.y == "string" ? S = ri({
|
|
8170
|
+
dataToConvert: S[0],
|
|
8171
|
+
x: F.x,
|
|
8172
|
+
y: F.y,
|
|
8173
8173
|
fieldList: o
|
|
8174
|
-
}) :
|
|
8174
|
+
}) : S = await fd({
|
|
8175
8175
|
queryObject: a,
|
|
8176
|
-
seriesData:
|
|
8176
|
+
seriesData: S,
|
|
8177
8177
|
chartConfig: e,
|
|
8178
8178
|
queryConfig: i,
|
|
8179
|
-
categoryOrDateCount:
|
|
8180
|
-
behaviorAfterLimit:
|
|
8179
|
+
categoryOrDateCount: D,
|
|
8180
|
+
behaviorAfterLimit: h,
|
|
8181
8181
|
abortKey: s
|
|
8182
|
-
}),
|
|
8183
|
-
count:
|
|
8184
|
-
seriesCount:
|
|
8182
|
+
}), B = Ii(T) ? S.length * v.length : S.length, L = Ge({
|
|
8183
|
+
count: B,
|
|
8184
|
+
seriesCount: v.length,
|
|
8185
8185
|
chartType: w,
|
|
8186
8186
|
chartLimits: c
|
|
8187
|
-
}),
|
|
8188
|
-
|
|
8189
|
-
let
|
|
8190
|
-
if (Ne(
|
|
8191
|
-
const { size:
|
|
8192
|
-
|
|
8187
|
+
}), L)) {
|
|
8188
|
+
f && (S = yd(S, e));
|
|
8189
|
+
let R = {};
|
|
8190
|
+
if (Ne(F)) {
|
|
8191
|
+
const { size: G, unit: z } = F.temporalBinning ?? {};
|
|
8192
|
+
G !== void 0 && z !== void 0 && (R = { size: G, unit: z });
|
|
8193
8193
|
}
|
|
8194
|
-
|
|
8194
|
+
b.data = { dataItems: S, timeIntervalInfo: R };
|
|
8195
8195
|
}
|
|
8196
8196
|
}
|
|
8197
|
-
|
|
8198
|
-
dataInfo:
|
|
8197
|
+
L || si({
|
|
8198
|
+
dataInfo: b,
|
|
8199
8199
|
chartType: w,
|
|
8200
8200
|
subError: { outlierLimit: x }
|
|
8201
|
-
}),
|
|
8201
|
+
}), b.count = B;
|
|
8202
8202
|
}
|
|
8203
|
-
|
|
8203
|
+
m = b;
|
|
8204
8204
|
}
|
|
8205
|
-
return
|
|
8205
|
+
return m;
|
|
8206
8206
|
}
|
|
8207
8207
|
function Qd(t) {
|
|
8208
8208
|
let e;
|
|
@@ -8220,18 +8220,18 @@ function Jd(t) {
|
|
|
8220
8220
|
const { dataItems: e, valueField: i, filterOutZero: r } = t, n = [null];
|
|
8221
8221
|
r && n.push(0);
|
|
8222
8222
|
const a = new Set(
|
|
8223
|
-
e.filter((o) => !n.includes(o[i])).map((o) => o[
|
|
8223
|
+
e.filter((o) => !n.includes(o[i])).map((o) => o[V.xField])
|
|
8224
8224
|
), s = new Set(
|
|
8225
|
-
e.filter((o) => !n.includes(o[i])).map((o) => o[
|
|
8225
|
+
e.filter((o) => !n.includes(o[i])).map((o) => o[V.yField])
|
|
8226
8226
|
);
|
|
8227
8227
|
return e.filter(
|
|
8228
|
-
(o) => a.has(o[
|
|
8228
|
+
(o) => a.has(o[V.xField]) && s.has(o[V.yField])
|
|
8229
8229
|
);
|
|
8230
8230
|
}
|
|
8231
8231
|
function Kd(t) {
|
|
8232
8232
|
const { dataItems: e, xUniqueValues: i, yUniqueValues: r, valueField: n, emptyCellValue: a, x: s, y: o, queryObject: d } = t, l = [], c = /* @__PURE__ */ new Set();
|
|
8233
8233
|
for (const p of e) {
|
|
8234
|
-
const u = p[C.originalCategoryValue] !== void 0 ? p[C.originalCategoryValue] : p[
|
|
8234
|
+
const u = p[C.originalCategoryValue] !== void 0 ? p[C.originalCategoryValue] : p[V.xField], f = p[C.originalYCategoryValue] !== void 0 ? p[C.originalYCategoryValue] : p[V.yField];
|
|
8235
8235
|
c.add(`${u}|${f}`);
|
|
8236
8236
|
}
|
|
8237
8237
|
for (const p of i) {
|
|
@@ -8251,8 +8251,8 @@ function Kd(t) {
|
|
|
8251
8251
|
l.push({
|
|
8252
8252
|
[C.originalCategoryValue]: p === null ? null : p,
|
|
8253
8253
|
[C.originalYCategoryValue]: f === null ? null : f,
|
|
8254
|
-
[
|
|
8255
|
-
[
|
|
8254
|
+
[V.xField]: p === null ? "null" : m,
|
|
8255
|
+
[V.yField]: f === null ? "null" : b,
|
|
8256
8256
|
[n]: a
|
|
8257
8257
|
});
|
|
8258
8258
|
}
|
|
@@ -8276,13 +8276,13 @@ async function En(t) {
|
|
|
8276
8276
|
} = t, d = { valid: !0 };
|
|
8277
8277
|
let l;
|
|
8278
8278
|
if (At(e)) {
|
|
8279
|
-
const { nullPolicy: c } = e, p = e.series[0], { x: u, y: f, query: h, xTemporalBinning: m, yTemporalBinning: b } = p,
|
|
8279
|
+
const { nullPolicy: c } = e, p = e.series[0], { x: u, y: f, query: h, xTemporalBinning: m, yTemporalBinning: b } = p, S = h?.outStatistics?.[0]?.outStatisticFieldName ?? "", x = h?.outStatistics?.[0]?.statisticType ?? I.Count;
|
|
8280
8280
|
i?.outStatistics?.[0] && In(i.outStatistics[0]) && !("statisticParameters" in i?.outStatistics[0]) && (i.outStatistics[0].statisticParameters = {
|
|
8281
8281
|
value: C.defaultStatParameterValue
|
|
8282
8282
|
});
|
|
8283
|
-
const v = Yd(e), F =
|
|
8283
|
+
const v = Yd(e), F = V.valueField, T = c === Ce.Zero ? 0 : null;
|
|
8284
8284
|
if (Fn(e)) {
|
|
8285
|
-
const
|
|
8285
|
+
const w = await oo({
|
|
8286
8286
|
chartConfig: e,
|
|
8287
8287
|
queryObject: r,
|
|
8288
8288
|
queryConfig: i,
|
|
@@ -8291,17 +8291,17 @@ async function En(t) {
|
|
|
8291
8291
|
abortKey: o
|
|
8292
8292
|
});
|
|
8293
8293
|
if (!Ge({
|
|
8294
|
-
count:
|
|
8294
|
+
count: w?.length ?? 0,
|
|
8295
8295
|
seriesCount: 1,
|
|
8296
8296
|
chartType: y.HeatSeries,
|
|
8297
8297
|
chartLimits: s?.chartLimits
|
|
8298
8298
|
}))
|
|
8299
8299
|
si({ dataInfo: d, chartType: y.HeatSeries });
|
|
8300
|
-
else if (typeof
|
|
8300
|
+
else if (typeof w?.[0] == "object") {
|
|
8301
8301
|
const A = Fe(r, s?.usePopupTemplateFieldsInfo);
|
|
8302
8302
|
l = $n({
|
|
8303
8303
|
queryObject: r,
|
|
8304
|
-
queryResponse:
|
|
8304
|
+
queryResponse: w,
|
|
8305
8305
|
chartConfig: e,
|
|
8306
8306
|
splitByField: "",
|
|
8307
8307
|
isTimeBinningSeries: !1,
|
|
@@ -8309,15 +8309,15 @@ async function En(t) {
|
|
|
8309
8309
|
resultLimit: i.num,
|
|
8310
8310
|
fieldList: A
|
|
8311
8311
|
});
|
|
8312
|
-
const
|
|
8313
|
-
l.length !==
|
|
8312
|
+
const P = await Fi({ queryObject: r, queryConfig: i, category: u, abortKey: o }), D = await Fi({ queryObject: r, queryConfig: i, category: f, abortKey: o });
|
|
8313
|
+
l.length !== P?.length * D?.length && (l = [
|
|
8314
8314
|
...l,
|
|
8315
8315
|
...Kd({
|
|
8316
8316
|
dataItems: l,
|
|
8317
|
-
xUniqueValues:
|
|
8318
|
-
yUniqueValues:
|
|
8317
|
+
xUniqueValues: P,
|
|
8318
|
+
yUniqueValues: D,
|
|
8319
8319
|
valueField: F,
|
|
8320
|
-
emptyCellValue:
|
|
8320
|
+
emptyCellValue: T,
|
|
8321
8321
|
x: u,
|
|
8322
8322
|
y: f,
|
|
8323
8323
|
queryObject: r
|
|
@@ -8325,48 +8325,48 @@ async function En(t) {
|
|
|
8325
8325
|
], v && (l = Jd({
|
|
8326
8326
|
dataItems: l,
|
|
8327
8327
|
valueField: F,
|
|
8328
|
-
filterOutZero:
|
|
8328
|
+
filterOutZero: x === I.Count
|
|
8329
8329
|
})));
|
|
8330
8330
|
}
|
|
8331
8331
|
} else {
|
|
8332
|
-
const
|
|
8332
|
+
const w = await so({
|
|
8333
8333
|
chartConfig: e,
|
|
8334
8334
|
queryObject: r,
|
|
8335
8335
|
queryConfig: i,
|
|
8336
8336
|
options: s,
|
|
8337
8337
|
errorStrings: a
|
|
8338
|
-
}), A = b ? Qd(b.unit) : await
|
|
8339
|
-
let
|
|
8340
|
-
l =
|
|
8341
|
-
const
|
|
8342
|
-
if (
|
|
8343
|
-
const
|
|
8344
|
-
R.push(
|
|
8345
|
-
[
|
|
8346
|
-
[
|
|
8347
|
-
[F]:
|
|
8338
|
+
}), A = b ? Qd(b.unit) : await Fi({ queryObject: r, queryConfig: i, category: f, abortKey: o });
|
|
8339
|
+
let P = 0;
|
|
8340
|
+
l = w?.features.flatMap((D) => {
|
|
8341
|
+
const B = [], { attributes: M, stackedAttributes: L } = D, R = [];
|
|
8342
|
+
if (L?.forEach((G) => {
|
|
8343
|
+
const z = `${G[f]}`;
|
|
8344
|
+
R.push(z), B.push({
|
|
8345
|
+
[V.xField]: `${M[Q.heatChartLowerBoundaryAlias]}`,
|
|
8346
|
+
[V.yField]: z,
|
|
8347
|
+
[F]: G[S]
|
|
8348
8348
|
});
|
|
8349
8349
|
}), n && A && R.length !== A?.length) {
|
|
8350
|
-
const
|
|
8351
|
-
v && (
|
|
8352
|
-
Number.isFinite(Number(
|
|
8353
|
-
day: Number(
|
|
8354
|
-
month: Number(
|
|
8350
|
+
const G = A.filter((z) => !R.includes(z.toString()));
|
|
8351
|
+
v && (G.length !== A.length || R.length === 0) || G.forEach((z) => {
|
|
8352
|
+
Number.isFinite(Number(M[Q.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(z)) && (m?.unit === Te.DayOfMonth && b?.unit === Te.MonthOfYear && ur({
|
|
8353
|
+
day: Number(M[Q.heatChartLowerBoundaryAlias]),
|
|
8354
|
+
month: Number(z),
|
|
8355
8355
|
includeLeapDay: e.includeLeapDay
|
|
8356
8356
|
}) || b?.unit === Te.DayOfMonth && m?.unit === Te.MonthOfYear && ur({
|
|
8357
|
-
day: Number(
|
|
8358
|
-
month: Number(
|
|
8357
|
+
day: Number(z),
|
|
8358
|
+
month: Number(M[Q.heatChartLowerBoundaryAlias]),
|
|
8359
8359
|
includeLeapDay: e.includeLeapDay
|
|
8360
|
-
})) ||
|
|
8361
|
-
[
|
|
8362
|
-
[
|
|
8360
|
+
})) || B.push({
|
|
8361
|
+
[V.xField]: `${M[Q.heatChartLowerBoundaryAlias]}`,
|
|
8362
|
+
[V.yField]: z,
|
|
8363
8363
|
[F]: c === Ce.Zero ? 0 : null
|
|
8364
8364
|
});
|
|
8365
8365
|
});
|
|
8366
8366
|
}
|
|
8367
|
-
return
|
|
8367
|
+
return P += B.length, B;
|
|
8368
8368
|
}), Ge({
|
|
8369
|
-
count:
|
|
8369
|
+
count: P,
|
|
8370
8370
|
seriesCount: 1,
|
|
8371
8371
|
chartType: y.HeatSeries,
|
|
8372
8372
|
chartLimits: s?.chartLimits
|
|
@@ -8408,47 +8408,47 @@ async function Hi(t) {
|
|
|
8408
8408
|
if (Ne(p)) {
|
|
8409
8409
|
const { temporalBinning: b } = p;
|
|
8410
8410
|
if (r && b) {
|
|
8411
|
-
const { unit:
|
|
8412
|
-
let v = 1, F = { unit:
|
|
8413
|
-
const
|
|
8411
|
+
const { unit: S, size: x } = b;
|
|
8412
|
+
let v = 1, F = { unit: S, size: x }, T = !1;
|
|
8413
|
+
const w = Od({
|
|
8414
8414
|
series: p,
|
|
8415
8415
|
isTimeBinningSeries: !0,
|
|
8416
8416
|
setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided
|
|
8417
|
-
}), A = !qt(r) ||
|
|
8418
|
-
|
|
8417
|
+
}), A = !qt(r) || w ? await Cd({ queryObject: r, queryConfig: i, x: u }) : void 0;
|
|
8418
|
+
w && A && A.numberOfFeatures > 0 && A.dateRange.dateMaxTimestamp !== void 0 && A.dateRange.dateMinTimestamp !== void 0 && (F = Nd(A), Fe(r).find((R) => R.name === u)?.type === H.DateOnly && F.unit !== void 0 && [
|
|
8419
8419
|
$.Hour,
|
|
8420
8420
|
$.Minute,
|
|
8421
8421
|
$.Second
|
|
8422
8422
|
].includes(F.unit) && (F.unit = $.Day, F.size = 1), b.size = F.size, b.unit = F.unit);
|
|
8423
|
-
const { uniqueQuery:
|
|
8423
|
+
const { uniqueQuery: P, mapToStatField: D } = _i({
|
|
8424
8424
|
chartConfig: e,
|
|
8425
8425
|
queryConfig: i,
|
|
8426
8426
|
queryObject: r,
|
|
8427
8427
|
timeIntervalInfo: F,
|
|
8428
8428
|
options: a
|
|
8429
8429
|
});
|
|
8430
|
-
let
|
|
8430
|
+
let B = Ge({
|
|
8431
8431
|
count: v ?? 0,
|
|
8432
8432
|
seriesCount: c.length,
|
|
8433
8433
|
chartType: y.LineSeries,
|
|
8434
8434
|
chartLimits: o
|
|
8435
8435
|
});
|
|
8436
|
-
if (
|
|
8436
|
+
if (B) {
|
|
8437
8437
|
if (qt(r)) {
|
|
8438
|
-
const
|
|
8438
|
+
const M = s?.[0] instanceof Sa ? s : await fo({
|
|
8439
8439
|
queryObject: r,
|
|
8440
8440
|
dateField: u,
|
|
8441
8441
|
splitByField: f,
|
|
8442
|
-
queryConfig:
|
|
8442
|
+
queryConfig: P,
|
|
8443
8443
|
temporalBinning: b
|
|
8444
|
-
}),
|
|
8444
|
+
}), L = "y" in p && typeof p.y == "string" ? p.y : void 0;
|
|
8445
8445
|
if (m = Bd({
|
|
8446
8446
|
chartConfig: e,
|
|
8447
|
-
queryResults:
|
|
8448
|
-
mapToStatField:
|
|
8447
|
+
queryResults: M,
|
|
8448
|
+
mapToStatField: D,
|
|
8449
8449
|
splitByField: f,
|
|
8450
8450
|
x: u,
|
|
8451
|
-
y:
|
|
8451
|
+
y: L,
|
|
8452
8452
|
nullPolicy: b.nullPolicy,
|
|
8453
8453
|
queryObject: r
|
|
8454
8454
|
}), !Ge({
|
|
@@ -8457,27 +8457,27 @@ async function Hi(t) {
|
|
|
8457
8457
|
chartType: y.LineSeries,
|
|
8458
8458
|
chartLimits: o
|
|
8459
8459
|
})) {
|
|
8460
|
-
const R = he(c),
|
|
8461
|
-
(
|
|
8460
|
+
const R = he(c), G = m.filter(
|
|
8461
|
+
(z) => R.some((N) => N in z && Number.isFinite(z[N]))
|
|
8462
8462
|
).length;
|
|
8463
8463
|
Ge({
|
|
8464
|
-
count:
|
|
8464
|
+
count: G,
|
|
8465
8465
|
seriesCount: c.length,
|
|
8466
8466
|
chartType: y.LineSeries,
|
|
8467
8467
|
chartLimits: o
|
|
8468
|
-
}) || (
|
|
8468
|
+
}) || (B = !1);
|
|
8469
8469
|
}
|
|
8470
8470
|
} else if (A?.dateRange.dateMinTimestamp && A.dateRange.dateMaxTimestamp) {
|
|
8471
|
-
const { numberOfFinalBinsWithinDataRange:
|
|
8471
|
+
const { numberOfFinalBinsWithinDataRange: M } = Pn({
|
|
8472
8472
|
dateMinTimestamp: A.dateRange.dateMinTimestamp,
|
|
8473
8473
|
dateMaxTimestamp: A.dateRange.dateMaxTimestamp,
|
|
8474
8474
|
timeIntervalInfo: F
|
|
8475
8475
|
});
|
|
8476
|
-
v =
|
|
8476
|
+
v = M * c.length, v = On(v, F.unit), m = await yi({
|
|
8477
8477
|
queryObject: r,
|
|
8478
|
-
uniqueQuery:
|
|
8478
|
+
uniqueQuery: P,
|
|
8479
8479
|
chartConfig: e,
|
|
8480
|
-
mapToStatField:
|
|
8480
|
+
mapToStatField: D,
|
|
8481
8481
|
elementCount: v,
|
|
8482
8482
|
chartLimits: o,
|
|
8483
8483
|
isTimeBinningSeries: !0,
|
|
@@ -8493,9 +8493,9 @@ async function Hi(t) {
|
|
|
8493
8493
|
timeIntervalInfo: F
|
|
8494
8494
|
});
|
|
8495
8495
|
}
|
|
8496
|
-
Vr(r) && m && m?.length === hd && (
|
|
8496
|
+
Vr(r) && m && m?.length === hd && (T = !0), l === rt.RenderUpToTheLimit && m && (m = Xd({ chartConfig: e, options: a, data: m }));
|
|
8497
8497
|
}
|
|
8498
|
-
|
|
8498
|
+
B || (h.valid = !1, h.invalidType = W.LineChartExceedsLimit), m && m.length > 0 && (m[m.length - 1][C.lastTemporalBin] = !0), h.data = { dataItems: m, timeIntervalInfo: F, serverLimitReached: T }, h.count = v;
|
|
8499
8499
|
}
|
|
8500
8500
|
}
|
|
8501
8501
|
return h;
|
|
@@ -8513,7 +8513,7 @@ async function Zd(t) {
|
|
|
8513
8513
|
fetchFullBoxPlotData: !s,
|
|
8514
8514
|
options: a
|
|
8515
8515
|
});
|
|
8516
|
-
let m = await
|
|
8516
|
+
let m = await yi({
|
|
8517
8517
|
queryObject: r,
|
|
8518
8518
|
uniqueQuery: f,
|
|
8519
8519
|
elementCount: 1,
|
|
@@ -8578,16 +8578,16 @@ async function rc(t) {
|
|
|
8578
8578
|
dataContextCountDistinctX: p,
|
|
8579
8579
|
dataContextCountDistinctY: u
|
|
8580
8580
|
} = C.scatterplotAggregationFields;
|
|
8581
|
-
let f, h, m, b,
|
|
8582
|
-
const
|
|
8583
|
-
if (
|
|
8584
|
-
const { maxScatterPointsAfterAggregation:
|
|
8581
|
+
let f, h, m, b, S;
|
|
8582
|
+
const x = e.get(o), v = e.get(d), F = e.get(l), T = e.get(c);
|
|
8583
|
+
if (x != null && F !== void 0 && F !== null && v !== void 0 && v !== null && T !== void 0 && T !== null && !Number.isNaN(x + v + F + T)) {
|
|
8584
|
+
const { maxScatterPointsAfterAggregation: w } = yt(n?.chartLimits), P = Math.floor(Math.sqrt(w)), D = await ic({
|
|
8585
8585
|
queryObject: r,
|
|
8586
8586
|
chartConfig: i,
|
|
8587
8587
|
queryConfig: a,
|
|
8588
8588
|
abortKey: s
|
|
8589
8589
|
});
|
|
8590
|
-
m = Math.min(
|
|
8590
|
+
m = Math.min(D.get(u) ?? Number.NaN, P), b = Math.min(D.get(p) ?? Number.NaN, P), S = b * m, f = v === x ? 0 : (v - x) / (b - 1), h = T === F ? 0 : (T - F) / (m - 1), e.set(C.scatterplotAggregationFields.xStep, f), e.set(C.scatterplotAggregationFields.yStep, h), e.set(C.scatterplotAggregationFields.rowCount, m), e.set(C.scatterplotAggregationFields.columnCount, b), e.set(C.scatterplotAggregationFields.realGridSize, S);
|
|
8591
8591
|
}
|
|
8592
8592
|
}
|
|
8593
8593
|
function nc(t) {
|
|
@@ -8631,33 +8631,33 @@ async function sc(t) {
|
|
|
8631
8631
|
queryNumberOfFeatures: m,
|
|
8632
8632
|
queryNumberOfAggregatedFeatures: b
|
|
8633
8633
|
} = C.scatterplotAggregationFields;
|
|
8634
|
-
let
|
|
8635
|
-
const
|
|
8636
|
-
if (
|
|
8637
|
-
const A =
|
|
8634
|
+
let S;
|
|
8635
|
+
const x = e?.get(p) ?? Number.NaN, v = e?.get(u) ?? Number.NaN, F = e?.get(m) ?? Number.NaN, T = e?.get(f) ?? x, w = e?.get(h) ?? v;
|
|
8636
|
+
if (x != null && T !== void 0 && T !== null && v !== void 0 && v !== null && w !== void 0 && w !== null && !Number.isNaN(x + v + T + w)) {
|
|
8637
|
+
const A = k(r), { idField: P, isTraditionalTypeOID: D } = Oe(A), B = D ? P : "*", M = e?.get(C.scatterplotAggregationFields.xStep), L = e?.get(C.scatterplotAggregationFields.yStep), R = e?.get(C.scatterplotAggregationFields.realGridSize), G = e?.get(C.scatterplotAggregationFields.rowCount), z = e?.get(C.scatterplotAggregationFields.columnCount), N = /* @__PURE__ */ new Map(), J = Fe(r);
|
|
8638
8638
|
if (J?.forEach((U) => {
|
|
8639
|
-
Lt(U) &&
|
|
8639
|
+
Lt(U) && N.set(U.name, {
|
|
8640
8640
|
onStatisticField: U.name,
|
|
8641
8641
|
outStatisticFieldName: U.name,
|
|
8642
8642
|
statisticType: I.Maximum
|
|
8643
8643
|
});
|
|
8644
8644
|
}), (J.filter((U) => d?.additionalTooltipFields?.includes(U.name)) ?? [])?.forEach((U) => {
|
|
8645
|
-
Lt(U) ||
|
|
8645
|
+
Lt(U) || N.set(U.name, {
|
|
8646
8646
|
onStatisticField: U.name,
|
|
8647
8647
|
outStatisticFieldName: U.name,
|
|
8648
8648
|
statisticType: I.Maximum
|
|
8649
8649
|
});
|
|
8650
8650
|
}), (await an(A)).forEach((U) => {
|
|
8651
|
-
|
|
8651
|
+
N.set(U, {
|
|
8652
8652
|
onStatisticField: U,
|
|
8653
8653
|
outStatisticFieldName: U,
|
|
8654
8654
|
statisticType: I.Maximum
|
|
8655
8655
|
});
|
|
8656
|
-
}),
|
|
8657
|
-
onStatisticField:
|
|
8656
|
+
}), P !== "" && N.set(P, {
|
|
8657
|
+
onStatisticField: B,
|
|
8658
8658
|
outStatisticFieldName: b,
|
|
8659
8659
|
statisticType: I.Count
|
|
8660
|
-
}),
|
|
8660
|
+
}), N.set(l, {
|
|
8661
8661
|
onStatisticField: l,
|
|
8662
8662
|
outStatisticFieldName: l,
|
|
8663
8663
|
statisticType: I.Maximum
|
|
@@ -8665,47 +8665,47 @@ async function sc(t) {
|
|
|
8665
8665
|
onStatisticField: c,
|
|
8666
8666
|
outStatisticFieldName: c,
|
|
8667
8667
|
statisticType: I.Maximum
|
|
8668
|
-
}),
|
|
8668
|
+
}), M !== void 0 && L !== void 0) {
|
|
8669
8669
|
if (a) {
|
|
8670
8670
|
const U = {
|
|
8671
8671
|
...n,
|
|
8672
|
-
outStatistics: [...
|
|
8672
|
+
outStatistics: [...N.values()]
|
|
8673
8673
|
};
|
|
8674
|
-
|
|
8674
|
+
S = await lo({
|
|
8675
8675
|
queryObject: r,
|
|
8676
8676
|
queryConfig: U,
|
|
8677
|
-
xStep:
|
|
8678
|
-
xMin:
|
|
8677
|
+
xStep: M,
|
|
8678
|
+
xMin: x,
|
|
8679
8679
|
xMax: v,
|
|
8680
8680
|
x: l,
|
|
8681
8681
|
y: c,
|
|
8682
|
-
yStep:
|
|
8682
|
+
yStep: L,
|
|
8683
8683
|
errorStrings: s
|
|
8684
8684
|
});
|
|
8685
|
-
} else if (
|
|
8685
|
+
} else if (G !== void 0 && z !== void 0) {
|
|
8686
8686
|
let U = 0;
|
|
8687
|
-
const { maxScatterCellsPerQuery: Me, maxScatterCellsPerQueryForStandard: Se } =
|
|
8688
|
-
let
|
|
8689
|
-
for (;
|
|
8690
|
-
for (ot =
|
|
8687
|
+
const { maxScatterCellsPerQuery: Me, maxScatterCellsPerQueryForStandard: Se } = ci(), mi = await Xo(A) ? Se : Me, gi = [];
|
|
8688
|
+
let bi = !0, bt = x, ot = T, St = "", jt = 1, Si = 1, zt = Number.MAX_SAFE_INTEGER, _t = Number.MIN_SAFE_INTEGER, Gt = Number.MAX_SAFE_INTEGER, Ut = Number.MIN_SAFE_INTEGER;
|
|
8689
|
+
for (; Si <= z && bi; ) {
|
|
8690
|
+
for (ot = T, jt = 1; jt <= G && bi; ) {
|
|
8691
8691
|
if (St = nc({
|
|
8692
8692
|
groupByFieldsForStatistics: St,
|
|
8693
8693
|
x: l,
|
|
8694
8694
|
y: c,
|
|
8695
8695
|
xValue: bt,
|
|
8696
8696
|
yValue: ot,
|
|
8697
|
-
xStep:
|
|
8698
|
-
yStep:
|
|
8699
|
-
endOfRow: jt ===
|
|
8700
|
-
endOfColumn:
|
|
8701
|
-
}), bt < zt && (zt = bt), bt +
|
|
8697
|
+
xStep: M,
|
|
8698
|
+
yStep: L,
|
|
8699
|
+
endOfRow: jt === G,
|
|
8700
|
+
endOfColumn: Si === z
|
|
8701
|
+
}), bt < zt && (zt = bt), bt + M > _t && (_t = bt + M), ot < Gt && (Gt = ot), ot + M > Ut && (Ut = ot + L), U += 1, U % mi === 0 || U === R || U === F) {
|
|
8702
8702
|
St = `${St} ${ut.groupByCaseEnd}`;
|
|
8703
8703
|
const Zn = {
|
|
8704
8704
|
...n,
|
|
8705
8705
|
groupByFieldsForStatistics: [St],
|
|
8706
|
-
outStatistics: [...
|
|
8706
|
+
outStatistics: [...N.values()]
|
|
8707
8707
|
};
|
|
8708
|
-
|
|
8708
|
+
gi.push(
|
|
8709
8709
|
ac({
|
|
8710
8710
|
chartConfig: i,
|
|
8711
8711
|
queryConfig: Zn,
|
|
@@ -8716,17 +8716,17 @@ async function sc(t) {
|
|
|
8716
8716
|
yMax: Ut,
|
|
8717
8717
|
abortKey: o
|
|
8718
8718
|
})
|
|
8719
|
-
), zt = Number.MAX_SAFE_INTEGER, _t = Number.MIN_SAFE_INTEGER, Gt = Number.MAX_SAFE_INTEGER, Ut = Number.MIN_SAFE_INTEGER, St = "", U === R && (
|
|
8719
|
+
), zt = Number.MAX_SAFE_INTEGER, _t = Number.MIN_SAFE_INTEGER, Gt = Number.MAX_SAFE_INTEGER, Ut = Number.MIN_SAFE_INTEGER, St = "", U === R && (bi = !1);
|
|
8720
8720
|
}
|
|
8721
|
-
ot +=
|
|
8721
|
+
ot += L, jt += 1;
|
|
8722
8722
|
}
|
|
8723
|
-
bt +=
|
|
8723
|
+
bt += M, Si += 1;
|
|
8724
8724
|
}
|
|
8725
|
-
|
|
8725
|
+
S = (await Promise.all(gi)).flat();
|
|
8726
8726
|
}
|
|
8727
8727
|
}
|
|
8728
8728
|
}
|
|
8729
|
-
return
|
|
8729
|
+
return S;
|
|
8730
8730
|
}
|
|
8731
8731
|
async function oc(t) {
|
|
8732
8732
|
const { chartConfig: e, queryConfig: i, queryObject: r, abortKey: n } = t, a = e.series[0], { x: s, y: o } = a;
|
|
@@ -8737,7 +8737,7 @@ async function oc(t) {
|
|
|
8737
8737
|
dataContextYMinField: p,
|
|
8738
8738
|
dataContextYMaxField: u,
|
|
8739
8739
|
queryNumberOfFeatures: f
|
|
8740
|
-
} = C.scatterplotAggregationFields, { idField: h, isTraditionalTypeOID: m } = Oe(
|
|
8740
|
+
} = C.scatterplotAggregationFields, { idField: h, isTraditionalTypeOID: m } = Oe(k(r)), b = m ? h : "*", S = [
|
|
8741
8741
|
{
|
|
8742
8742
|
statisticType: I.Count,
|
|
8743
8743
|
onStatisticField: b,
|
|
@@ -8754,7 +8754,7 @@ async function oc(t) {
|
|
|
8754
8754
|
onStatisticField: s
|
|
8755
8755
|
}
|
|
8756
8756
|
];
|
|
8757
|
-
s !== o &&
|
|
8757
|
+
s !== o && S.push(
|
|
8758
8758
|
{
|
|
8759
8759
|
statisticType: I.Minimum,
|
|
8760
8760
|
outStatisticFieldName: p,
|
|
@@ -8766,10 +8766,10 @@ async function oc(t) {
|
|
|
8766
8766
|
onStatisticField: o
|
|
8767
8767
|
}
|
|
8768
8768
|
);
|
|
8769
|
-
const
|
|
8770
|
-
return
|
|
8769
|
+
const x = { ...i };
|
|
8770
|
+
return x.outStatistics = S, d = await Vt({
|
|
8771
8771
|
queryObject: r,
|
|
8772
|
-
queryConfig:
|
|
8772
|
+
queryConfig: x,
|
|
8773
8773
|
abortKey: n
|
|
8774
8774
|
}), s === o && (d.set(p, d.get(l) ?? Number.NaN), d.set(u, d.get(c) ?? Number.NaN)), d;
|
|
8775
8775
|
}
|
|
@@ -8783,40 +8783,40 @@ function lc(t) {
|
|
|
8783
8783
|
if (e && "stackedAttributes" in i && i.stackedAttributes) {
|
|
8784
8784
|
const u = _r(r, n), f = i.attributes[u.lowerBoundaryAlias], h = i.attributes[u.upperBoundaryAlias];
|
|
8785
8785
|
i.stackedAttributes.forEach((m) => {
|
|
8786
|
-
let b = m[u.stackAlias],
|
|
8787
|
-
typeof b == "number" && typeof a == "number" && (b *= a), typeof b == "number" && typeof a == "number" && (
|
|
8788
|
-
const
|
|
8789
|
-
typeof b == "number" && typeof
|
|
8786
|
+
let b = m[u.stackAlias], S;
|
|
8787
|
+
typeof b == "number" && typeof a == "number" && (b *= a), typeof b == "number" && typeof a == "number" && (S = b + a);
|
|
8788
|
+
const x = m[r], v = m[n];
|
|
8789
|
+
typeof b == "number" && typeof S == "number" && typeof x == "number" && typeof v == "number" && p.push({
|
|
8790
8790
|
...m,
|
|
8791
|
-
[r]: Jt({ value:
|
|
8792
|
-
[n]: Jt({ value: v, valueMin: b, valueMax:
|
|
8791
|
+
[r]: Jt({ value: x, valueMin: f, valueMax: h }),
|
|
8792
|
+
[n]: Jt({ value: v, valueMin: b, valueMax: S }),
|
|
8793
8793
|
[o]: Math.min(f, h),
|
|
8794
8794
|
[d]: Math.max(f, h),
|
|
8795
8795
|
[l]: b,
|
|
8796
|
-
[c]:
|
|
8796
|
+
[c]: S
|
|
8797
8797
|
});
|
|
8798
8798
|
});
|
|
8799
8799
|
} else {
|
|
8800
|
-
const { expr: u, isInItem: f } =
|
|
8800
|
+
const { expr: u, isInItem: f } = pi(i.attributes);
|
|
8801
8801
|
if (f && u && i.attributes[u] !== s) {
|
|
8802
|
-
let [h, m, b,
|
|
8803
|
-
h = Math.min(h, m), m = Math.max(h, m), b = Math.min(b,
|
|
8804
|
-
const
|
|
8802
|
+
let [h, m, b, S] = i.attributes[u].split("|");
|
|
8803
|
+
h = Math.min(h, m), m = Math.max(h, m), b = Math.min(b, S), S = Math.max(b, S);
|
|
8804
|
+
const x = {
|
|
8805
8805
|
...i.attributes,
|
|
8806
8806
|
[o]: h,
|
|
8807
8807
|
[d]: m,
|
|
8808
8808
|
[l]: b,
|
|
8809
|
-
[c]:
|
|
8809
|
+
[c]: S
|
|
8810
8810
|
};
|
|
8811
|
-
|
|
8812
|
-
value:
|
|
8811
|
+
x[r] = Jt({
|
|
8812
|
+
value: x[r],
|
|
8813
8813
|
valueMin: h,
|
|
8814
8814
|
valueMax: m
|
|
8815
|
-
}),
|
|
8816
|
-
value:
|
|
8815
|
+
}), x[n] = Jt({
|
|
8816
|
+
value: x[n],
|
|
8817
8817
|
valueMin: b,
|
|
8818
|
-
valueMax:
|
|
8819
|
-
}), p = [
|
|
8818
|
+
valueMax: S
|
|
8819
|
+
}), p = [x];
|
|
8820
8820
|
}
|
|
8821
8821
|
}
|
|
8822
8822
|
return p;
|
|
@@ -8834,30 +8834,30 @@ function dc(t) {
|
|
|
8834
8834
|
}) : u[0][Q.uniqueIdsName] = p.getObjectId(), u;
|
|
8835
8835
|
});
|
|
8836
8836
|
return c = c?.filter((p) => {
|
|
8837
|
-
const { expr: u } =
|
|
8837
|
+
const { expr: u } = pi(p);
|
|
8838
8838
|
return Number.isFinite(p[o]) && Number.isFinite(p[d]) && (u === void 0 || p[u] !== ut.groupByOutKeyword);
|
|
8839
8839
|
}), c ?? [];
|
|
8840
8840
|
}
|
|
8841
8841
|
async function cc(t) {
|
|
8842
|
-
const { queryObject: e, queryConfig: i, chartConfig: r, featureCount: n, abortKey: a } = t, s = r.series[0], { x: o, y: d } = s, l =
|
|
8842
|
+
const { queryObject: e, queryConfig: i, chartConfig: r, featureCount: n, abortKey: a } = t, s = r.series[0], { x: o, y: d } = s, l = k(e);
|
|
8843
8843
|
let c = [];
|
|
8844
|
-
const p = Fe(e), u =
|
|
8845
|
-
(
|
|
8844
|
+
const p = Fe(e), u = fi(l).idFields, f = (p?.filter((x) => Lt(x) && x.name !== o && x.name !== d) ?? []).map(
|
|
8845
|
+
(x) => x.name
|
|
8846
8846
|
) ?? [], h = s?.additionalTooltipFields ?? [], m = Array.from(
|
|
8847
8847
|
/* @__PURE__ */ new Set([o, d, ...u ?? [], ...f, ...h])
|
|
8848
8848
|
), b = ue(l);
|
|
8849
8849
|
if (b && !b.isTable) {
|
|
8850
|
-
const { rendererField:
|
|
8851
|
-
ae(
|
|
8850
|
+
const { rendererField: x, rendererNormalizationField: v } = Yo(l?.renderer ?? void 0);
|
|
8851
|
+
ae(x) || m.push(x), ae(v) || m.push(v);
|
|
8852
8852
|
}
|
|
8853
|
-
const
|
|
8853
|
+
const S = {
|
|
8854
8854
|
...i,
|
|
8855
8855
|
orderByFields: [`${o} ${ne.Ascending}`],
|
|
8856
8856
|
outFields: m
|
|
8857
8857
|
};
|
|
8858
8858
|
return c = await Le({
|
|
8859
8859
|
queryObject: e,
|
|
8860
|
-
queryConfig:
|
|
8860
|
+
queryConfig: S,
|
|
8861
8861
|
featureCount: n,
|
|
8862
8862
|
abortKey: a
|
|
8863
8863
|
}), c;
|
|
@@ -8922,7 +8922,7 @@ async function kn(t) {
|
|
|
8922
8922
|
numberOfFeatures: f,
|
|
8923
8923
|
isAggregationMode: h,
|
|
8924
8924
|
useQueryAttributeBins: m
|
|
8925
|
-
}),
|
|
8925
|
+
}), S = dc({
|
|
8926
8926
|
chartConfig: e,
|
|
8927
8927
|
rawData: b,
|
|
8928
8928
|
isAggregationMode: h,
|
|
@@ -8930,34 +8930,34 @@ async function kn(t) {
|
|
|
8930
8930
|
useQueryAttributeBins: m
|
|
8931
8931
|
});
|
|
8932
8932
|
n !== !1 && $t({
|
|
8933
|
-
arrayToSort:
|
|
8933
|
+
arrayToSort: S,
|
|
8934
8934
|
sortingField: e.series[0].x,
|
|
8935
8935
|
orderBy: ne.Ascending
|
|
8936
8936
|
});
|
|
8937
|
-
const { r2:
|
|
8938
|
-
data:
|
|
8937
|
+
const { r2: x, trendLinePoints: v } = a !== !1 ? await Kr({
|
|
8938
|
+
data: S,
|
|
8939
8939
|
statsMap: l,
|
|
8940
8940
|
queryConfig: i,
|
|
8941
8941
|
options: s,
|
|
8942
8942
|
queryObject: r,
|
|
8943
8943
|
chartConfig: e
|
|
8944
8944
|
}) : C.scatterplotSeries;
|
|
8945
|
-
d = { dataItems:
|
|
8945
|
+
d = { dataItems: S, r2: x, trendLinePoints: v, aggregated: h };
|
|
8946
8946
|
}
|
|
8947
8947
|
return d;
|
|
8948
8948
|
}
|
|
8949
8949
|
function Ft(t) {
|
|
8950
8950
|
const e = t === void 0 || t === "";
|
|
8951
8951
|
return {
|
|
8952
|
-
[
|
|
8953
|
-
[
|
|
8954
|
-
[
|
|
8955
|
-
[
|
|
8956
|
-
[
|
|
8957
|
-
[
|
|
8958
|
-
[
|
|
8959
|
-
[
|
|
8960
|
-
[
|
|
8952
|
+
[O.Average]: `${e ? "" : `${t}_`}${O.Average}`,
|
|
8953
|
+
[O.Min]: `${e ? "" : `${t}_`}${O.Min}`,
|
|
8954
|
+
[O.Max]: `${e ? "" : `${t}_`}${O.Max}`,
|
|
8955
|
+
[O.FirstQuartile]: `${e ? "" : `${t}_`}${O.FirstQuartile}`,
|
|
8956
|
+
[O.Median]: `${e ? "" : `${t}_`}${O.Median}`,
|
|
8957
|
+
[O.ThirdQuartile]: `${e ? "" : `${t}_`}${O.ThirdQuartile}`,
|
|
8958
|
+
[O.IQR]: `${e ? "" : `${t}_`}${O.IQR}`,
|
|
8959
|
+
[O.Outlier]: `${e ? "" : `${t}_`}${O.Outlier}`,
|
|
8960
|
+
[O.StandardDeviation]: `${e ? "" : `${t}_`}${O.StandardDeviation}`
|
|
8961
8961
|
};
|
|
8962
8962
|
}
|
|
8963
8963
|
function Qi(t) {
|
|
@@ -8973,10 +8973,10 @@ function Wn(t) {
|
|
|
8973
8973
|
function se(t) {
|
|
8974
8974
|
const { key: e, y: i, chartSubType: r, splitBy: n, splitByValue: a, showOutliers: s, standardizeValues: o } = t;
|
|
8975
8975
|
let d = a, c = Ft(i)[e];
|
|
8976
|
-
return s === !0 && (e ===
|
|
8976
|
+
return s === !0 && (e === O.Min || e === O.Max) && (c = `${c}${ps}`), o === !0 && (Wn(r) || e === O.Outlier) && (c = `${c}${us}`), (a === void 0 || `${a}`.trim() === "") && (d = be({ where: n, normalize: !0, escape: !1 })), d !== void 0 && `${d}`.trim() !== "" && (c = `${d}${c !== "" ? `_${c}` : ""}`), c;
|
|
8977
8977
|
}
|
|
8978
|
-
function
|
|
8979
|
-
const { dataItem: e, y: i, splitBy: r, showOutliers: n } = t, a = se({ key:
|
|
8978
|
+
function Ci(t) {
|
|
8979
|
+
const { dataItem: e, y: i, splitBy: r, showOutliers: n } = t, a = se({ key: O.FirstQuartile, y: i, splitBy: r, showOutliers: n }), s = se({ key: O.ThirdQuartile, y: i, splitBy: r, showOutliers: n });
|
|
8980
8980
|
return Number.isFinite(e[a]) || Number.isFinite(e[s]);
|
|
8981
8981
|
}
|
|
8982
8982
|
function uc(t) {
|
|
@@ -8986,18 +8986,18 @@ function uc(t) {
|
|
|
8986
8986
|
case g.BoxPlotMonoField:
|
|
8987
8987
|
case g.BoxPlotMultiFields:
|
|
8988
8988
|
case g.BoxPlotMonoFieldAndCategory:
|
|
8989
|
-
s =
|
|
8989
|
+
s = Ci({ dataItem: i, showOutliers: n });
|
|
8990
8990
|
break;
|
|
8991
8991
|
case g.BoxPlotMultiFieldsAndCategory:
|
|
8992
8992
|
s = r.some(
|
|
8993
|
-
(o) =>
|
|
8993
|
+
(o) => Ci({ dataItem: i, y: o, showOutliers: n })
|
|
8994
8994
|
);
|
|
8995
8995
|
break;
|
|
8996
8996
|
case g.BoxPlotMonoFieldAndSplitBy:
|
|
8997
8997
|
case g.BoxPlotMultiFieldsAndSplitBy:
|
|
8998
8998
|
case g.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
8999
8999
|
s = e.some(
|
|
9000
|
-
(o) =>
|
|
9000
|
+
(o) => Ci({
|
|
9001
9001
|
dataItem: i,
|
|
9002
9002
|
splitBy: o.query?.where,
|
|
9003
9003
|
showOutliers: n
|
|
@@ -9021,7 +9021,7 @@ function he(t, e) {
|
|
|
9021
9021
|
return s !== void 0 && n === g.BarAndLineSplitByNoAggregation && (s = `${s.toString()}_${be({ where: a.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), s;
|
|
9022
9022
|
}).filter((a) => a !== void 0), Array.from(new Set(i.flat()));
|
|
9023
9023
|
}
|
|
9024
|
-
function
|
|
9024
|
+
function hi(t) {
|
|
9025
9025
|
const { seriesConfig: e, filteredSeriesIds: i, showMean: r } = t;
|
|
9026
9026
|
let n = [];
|
|
9027
9027
|
if (r === !0) {
|
|
@@ -9101,7 +9101,7 @@ function $f(t) {
|
|
|
9101
9101
|
break;
|
|
9102
9102
|
case y.HeatSeries:
|
|
9103
9103
|
d = r.some(
|
|
9104
|
-
(l) => Ze(l[
|
|
9104
|
+
(l) => Ze(l[V.valueField], i)
|
|
9105
9105
|
);
|
|
9106
9106
|
break;
|
|
9107
9107
|
}
|
|
@@ -9146,7 +9146,7 @@ function hc(t) {
|
|
|
9146
9146
|
}), { stackedMinY: o, stackedMaxY: s, dataHasNegativeValues: d };
|
|
9147
9147
|
}
|
|
9148
9148
|
function mc(t) {
|
|
9149
|
-
const { dataItem: e, ...i } = t, r = se({ key:
|
|
9149
|
+
const { dataItem: e, ...i } = t, r = se({ key: O.Min, ...i }), n = se({ key: O.Max, ...i }), a = e[r], s = e[n];
|
|
9150
9150
|
return { min: a, max: s };
|
|
9151
9151
|
}
|
|
9152
9152
|
function fr(t) {
|
|
@@ -9162,21 +9162,21 @@ function fr(t) {
|
|
|
9162
9162
|
if ({ min: r, max: n } = Et(p, (f) => f[l]), a.axes?.[0]?.valueFormat.type === y.DateAxisFormat && r !== void 0 && n !== void 0 && ([r, n] = [new Date(r).valueOf(), new Date(n).valueOf()]), c === y.BoxPlotSeries) {
|
|
9163
9163
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
9164
9164
|
const f = he(d, o), h = E(d), m = "standardizeValues" in a ? a.standardizeValues === !0 : void 0, b = a.series.map(
|
|
9165
|
-
(
|
|
9165
|
+
(S) => S.visible !== !1 ? be({ where: S.query?.where }) : ""
|
|
9166
9166
|
);
|
|
9167
|
-
b.length === 0 && b.push(" "), p.forEach((
|
|
9168
|
-
f.forEach((
|
|
9169
|
-
const v = h === g.BoxPlotMultiFieldsAndCategory ?
|
|
9167
|
+
b.length === 0 && b.push(" "), p.forEach((S) => {
|
|
9168
|
+
f.forEach((x) => {
|
|
9169
|
+
const v = h === g.BoxPlotMultiFieldsAndCategory ? x : void 0;
|
|
9170
9170
|
b.forEach((F) => {
|
|
9171
|
-
const { min:
|
|
9171
|
+
const { min: T, max: w } = mc({
|
|
9172
9172
|
y: v,
|
|
9173
9173
|
splitByValue: F,
|
|
9174
9174
|
chartSubType: h,
|
|
9175
9175
|
showOutliers: !1,
|
|
9176
9176
|
standardizeValues: m,
|
|
9177
|
-
dataItem:
|
|
9177
|
+
dataItem: S
|
|
9178
9178
|
});
|
|
9179
|
-
|
|
9179
|
+
T != null && T < e && (e = T), w != null && w > i && (i = w);
|
|
9180
9180
|
});
|
|
9181
9181
|
});
|
|
9182
9182
|
});
|
|
@@ -9196,11 +9196,11 @@ function fr(t) {
|
|
|
9196
9196
|
case Ie.Side:
|
|
9197
9197
|
default: {
|
|
9198
9198
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, he(d, o).forEach((m) => {
|
|
9199
|
-
const { min: b, max:
|
|
9199
|
+
const { min: b, max: S } = Et(
|
|
9200
9200
|
p,
|
|
9201
|
-
(
|
|
9201
|
+
(x) => x[m]
|
|
9202
9202
|
);
|
|
9203
|
-
b !== void 0 && b < e && (e = b),
|
|
9203
|
+
b !== void 0 && b < e && (e = b), S !== void 0 && S > i && (i = S);
|
|
9204
9204
|
});
|
|
9205
9205
|
break;
|
|
9206
9206
|
}
|
|
@@ -9225,7 +9225,7 @@ function jn(t) {
|
|
|
9225
9225
|
}
|
|
9226
9226
|
return e;
|
|
9227
9227
|
}
|
|
9228
|
-
function
|
|
9228
|
+
function Ri(t, e) {
|
|
9229
9229
|
let i = !1;
|
|
9230
9230
|
return Number.isFinite(t) && t !== Number.MAX_SAFE_INTEGER && Number.isFinite(e) && e !== Number.MIN_SAFE_INTEGER && (i = t <= 0 || e <= 0), i;
|
|
9231
9231
|
}
|
|
@@ -9238,7 +9238,7 @@ function zn(t) {
|
|
|
9238
9238
|
chartConfig: e,
|
|
9239
9239
|
chartData: i
|
|
9240
9240
|
});
|
|
9241
|
-
n =
|
|
9241
|
+
n = Ri(a, s);
|
|
9242
9242
|
}
|
|
9243
9243
|
} else {
|
|
9244
9244
|
const a = gc({
|
|
@@ -9249,7 +9249,7 @@ function zn(t) {
|
|
|
9249
9249
|
chartData: i,
|
|
9250
9250
|
filteredSeriesIds: a
|
|
9251
9251
|
});
|
|
9252
|
-
n =
|
|
9252
|
+
n = Ri(s, o);
|
|
9253
9253
|
}
|
|
9254
9254
|
return n;
|
|
9255
9255
|
}
|
|
@@ -9275,7 +9275,7 @@ function Sc(t, e) {
|
|
|
9275
9275
|
const a = Ei(t);
|
|
9276
9276
|
let s = a ? t : t.dataItems;
|
|
9277
9277
|
if (t !== void 0) {
|
|
9278
|
-
const { originalCategoryValue: o, originalYCategoryValue: d, originalDateValue: l, xAxisField: c } = C, p = i === y.HeatSeries ?
|
|
9278
|
+
const { originalCategoryValue: o, originalYCategoryValue: d, originalDateValue: l, xAxisField: c } = C, p = i === y.HeatSeries ? V.xField : n.x, u = i === y.HeatSeries ? V.yField : void 0;
|
|
9279
9279
|
s = s.map((f) => {
|
|
9280
9280
|
let h = f[p];
|
|
9281
9281
|
f[l] !== void 0 ? h = f[l] : f[o] !== void 0 && (h = f[o]);
|
|
@@ -9295,7 +9295,7 @@ function yr(t) {
|
|
|
9295
9295
|
delete e[C.technicalSortingFieldBySum], delete e[C.technicalSortingFieldByPercent], delete e[C.pieChart.technicalFieldSlicePercent], delete e[C.pieChart.technicalFieldGroupedSlices], delete e[C.lastTemporalBin], delete e[C.originalServerBinningRange], delete e[C.technicalFieldSplitByField], delete e[Q.uniqueIdsName], Object.keys(e).filter(
|
|
9296
9296
|
(n) => n.includes(C.rendererSymbolField)
|
|
9297
9297
|
).forEach((n) => delete e[n]);
|
|
9298
|
-
const r =
|
|
9298
|
+
const r = pi(e);
|
|
9299
9299
|
return r.isInItem && delete e[r.expr ?? ""], e;
|
|
9300
9300
|
}
|
|
9301
9301
|
function xc(t, e) {
|
|
@@ -9351,7 +9351,7 @@ function vc(t) {
|
|
|
9351
9351
|
if (r[0].type === y.HeatSeries)
|
|
9352
9352
|
i > 0 && c.forEach((p) => {
|
|
9353
9353
|
o.set(
|
|
9354
|
-
`${p[
|
|
9354
|
+
`${p[V.xField]}-${p[V.yField]}`,
|
|
9355
9355
|
p
|
|
9356
9356
|
);
|
|
9357
9357
|
});
|
|
@@ -9377,17 +9377,17 @@ function vc(t) {
|
|
|
9377
9377
|
return o.size > 0 && (s = Array.from(o.values())), s;
|
|
9378
9378
|
}
|
|
9379
9379
|
async function Cc(t) {
|
|
9380
|
-
const { numberOfQueries: e, selectionOIDs: i, chartConfig: r, queryConfig: n, options: a, errorStrings: s, queryObject: o } = t, { setTimeBinningInfoWhenNotProvided: d } = a ?? {}, { series: l } = r, c = q(l), p = [], { maxOIDsPerSelectionQuery: u } =
|
|
9380
|
+
const { numberOfQueries: e, selectionOIDs: i, chartConfig: r, queryConfig: n, options: a, errorStrings: s, queryObject: o } = t, { setTimeBinningInfoWhenNotProvided: d } = a ?? {}, { series: l } = r, c = q(l), p = [], { maxOIDsPerSelectionQuery: u } = ci();
|
|
9381
9381
|
for (let h = 0; h < e; h += 1) {
|
|
9382
|
-
const m = h * u, b = (h + 1) * u - 1,
|
|
9383
|
-
switch (
|
|
9382
|
+
const m = h * u, b = (h + 1) * u - 1, S = i.slice(m === 0 ? 0 : m - 1, b), x = { ...n };
|
|
9383
|
+
switch (x.objectIds = S, c) {
|
|
9384
9384
|
case y.HeatSeries:
|
|
9385
9385
|
p.push(
|
|
9386
9386
|
En({
|
|
9387
9387
|
completeHeatChartDataset: !1,
|
|
9388
9388
|
// we do not want the empty bins to be added for the selection
|
|
9389
9389
|
chartConfig: r,
|
|
9390
|
-
queryConfig:
|
|
9390
|
+
queryConfig: x,
|
|
9391
9391
|
queryObject: o,
|
|
9392
9392
|
errorStrings: s,
|
|
9393
9393
|
options: a
|
|
@@ -9409,7 +9409,7 @@ async function Cc(t) {
|
|
|
9409
9409
|
"temporalBinning" in v.series[0] && v.series[0].temporalBinning && (v.series[0].temporalBinning.trimIncompleteTimeInterval = !1, qt(o) && (delete v.series[0].temporalBinning.start, delete v.series[0].temporalBinning.end)), p.push(
|
|
9410
9410
|
Hi({
|
|
9411
9411
|
chartConfig: v,
|
|
9412
|
-
queryConfig:
|
|
9412
|
+
queryConfig: x,
|
|
9413
9413
|
queryObject: o,
|
|
9414
9414
|
options: a
|
|
9415
9415
|
})
|
|
@@ -9420,7 +9420,7 @@ async function Cc(t) {
|
|
|
9420
9420
|
queryObject: o,
|
|
9421
9421
|
chartConfig: r,
|
|
9422
9422
|
options: a,
|
|
9423
|
-
queryConfig:
|
|
9423
|
+
queryConfig: x
|
|
9424
9424
|
})
|
|
9425
9425
|
);
|
|
9426
9426
|
break;
|
|
@@ -9431,7 +9431,7 @@ async function Cc(t) {
|
|
|
9431
9431
|
chartConfig: r,
|
|
9432
9432
|
options: a,
|
|
9433
9433
|
errorStrings: s,
|
|
9434
|
-
queryConfig:
|
|
9434
|
+
queryConfig: x
|
|
9435
9435
|
})
|
|
9436
9436
|
);
|
|
9437
9437
|
break;
|
|
@@ -9440,7 +9440,7 @@ async function Cc(t) {
|
|
|
9440
9440
|
kn({
|
|
9441
9441
|
queryObject: o,
|
|
9442
9442
|
chartConfig: r,
|
|
9443
|
-
queryConfig:
|
|
9443
|
+
queryConfig: x,
|
|
9444
9444
|
options: a,
|
|
9445
9445
|
errorStrings: s,
|
|
9446
9446
|
sortData: !1,
|
|
@@ -9454,7 +9454,7 @@ async function Cc(t) {
|
|
|
9454
9454
|
p.push(
|
|
9455
9455
|
Ll({
|
|
9456
9456
|
queryObject: o,
|
|
9457
|
-
queryConfig:
|
|
9457
|
+
queryConfig: x,
|
|
9458
9458
|
chartConfig: r,
|
|
9459
9459
|
x: l[0].x
|
|
9460
9460
|
})
|
|
@@ -9468,14 +9468,14 @@ async function Wf(t) {
|
|
|
9468
9468
|
const { updatedPropsSnapshot: e, chartConfig: i, chartData: r, dataWasUpdated: n, queryObject: a, options: s, errorStrings: o } = t, { series: d } = i, { selectionData: l, viewExtentUpdated: c, returnSelectionOIDs: p, chartLimits: u } = s ?? {}, { selectionItems: f, selectionOIDs: h } = l ?? {};
|
|
9469
9469
|
let m;
|
|
9470
9470
|
const b = q(d);
|
|
9471
|
-
let
|
|
9471
|
+
let S = !1;
|
|
9472
9472
|
if (e.has("selectionData")) {
|
|
9473
|
-
const { oldValue: F, newValue:
|
|
9474
|
-
|
|
9473
|
+
const { oldValue: F, newValue: T } = e.get("selectionData");
|
|
9474
|
+
S = !Re(F?.selectionOIDs, T?.selectionOIDs);
|
|
9475
9475
|
}
|
|
9476
|
-
const
|
|
9477
|
-
if (c !== !0 && p !== !1 && h !== void 0 && h.length > 0 && (n === !0 ||
|
|
9478
|
-
const F = Yi(r),
|
|
9476
|
+
const x = b !== y.HistogramSeries && b !== y.HeatSeries && f !== void 0 && f.length > 0 && !(d[0].x in f[0]) && !(me in f[0]) && !(C.boxPlot.boxPlotCategory in f[0]);
|
|
9477
|
+
if (c !== !0 && p !== !1 && h !== void 0 && h.length > 0 && (n === !0 || x || S)) {
|
|
9478
|
+
const F = Yi(r), T = on({
|
|
9479
9479
|
queryObject: a,
|
|
9480
9480
|
chartConfig: i,
|
|
9481
9481
|
runtimeDataFilters: s?.runtimeDataFilters,
|
|
@@ -9483,22 +9483,22 @@ async function Wf(t) {
|
|
|
9483
9483
|
viewExtent: s?.view?.extent
|
|
9484
9484
|
});
|
|
9485
9485
|
if (F !== void 0 && !xs({ dataContext: F[0], chartConfig: i, chartLimits: u }))
|
|
9486
|
-
m = F.filter((
|
|
9487
|
-
const A =
|
|
9486
|
+
m = F.filter((w) => {
|
|
9487
|
+
const A = w[Q.uniqueIdsName];
|
|
9488
9488
|
return typeof A == "number" || typeof A == "string" ? h?.includes(A) : !1;
|
|
9489
9489
|
});
|
|
9490
|
-
else if (h?.[0] !== void 0 &&
|
|
9491
|
-
const { maxOIDsPerSelectionQuery:
|
|
9490
|
+
else if (h?.[0] !== void 0 && T !== void 0) {
|
|
9491
|
+
const { maxOIDsPerSelectionQuery: w } = ci(), A = Math.ceil(h.length / w), P = await Cc({
|
|
9492
9492
|
numberOfQueries: A,
|
|
9493
9493
|
selectionOIDs: h,
|
|
9494
|
-
queryConfig:
|
|
9494
|
+
queryConfig: T,
|
|
9495
9495
|
queryObject: a,
|
|
9496
9496
|
options: s,
|
|
9497
9497
|
errorStrings: o,
|
|
9498
9498
|
chartConfig: i
|
|
9499
9499
|
});
|
|
9500
9500
|
m = vc({
|
|
9501
|
-
dataFetchingResults:
|
|
9501
|
+
dataFetchingResults: P,
|
|
9502
9502
|
numberOfQueries: A,
|
|
9503
9503
|
series: d
|
|
9504
9504
|
});
|
|
@@ -9508,7 +9508,7 @@ async function Wf(t) {
|
|
|
9508
9508
|
}
|
|
9509
9509
|
const Vf = {
|
|
9510
9510
|
shouldCheckDataMinMaxForLogScaleOnXAxis: jn,
|
|
9511
|
-
minMaxHasZeroOrNegativeValues:
|
|
9511
|
+
minMaxHasZeroOrNegativeValues: Ri,
|
|
9512
9512
|
isChartWithZeroOrNegativeValues: zn
|
|
9513
9513
|
}, vt = {
|
|
9514
9514
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -19745,7 +19745,7 @@ async function Un(t) {
|
|
|
19745
19745
|
Ae(document.documentElement).t9nLocale,
|
|
19746
19746
|
qe("./assets/common/t9n"),
|
|
19747
19747
|
"messages."
|
|
19748
|
-
)).errorStrings, r =
|
|
19748
|
+
)).errorStrings, r = k(t);
|
|
19749
19749
|
try {
|
|
19750
19750
|
await r.load();
|
|
19751
19751
|
} catch {
|
|
@@ -19853,7 +19853,7 @@ function Yn(t) {
|
|
|
19853
19853
|
Q.outStatistics.outStatisticFieldName ?? ""
|
|
19854
19854
|
];
|
|
19855
19855
|
let l = [];
|
|
19856
|
-
ye(t) ? l =
|
|
19856
|
+
ye(t) ? l = hi({
|
|
19857
19857
|
showMean: t.showMean,
|
|
19858
19858
|
seriesConfig: t.series
|
|
19859
19859
|
}) : l = t.series.map((p) => "y" in p ? p.y : void 0).filter((p) => p !== void 0).flat(), o ? l.forEach((p) => e.add(p)) : d.push(...l), t.series.forEach((p) => {
|
|
@@ -19985,10 +19985,10 @@ const _f = {
|
|
|
19985
19985
|
getRequiredFieldNamesFromChartConfig: Yn,
|
|
19986
19986
|
customizeValidationErrors: Gn
|
|
19987
19987
|
};
|
|
19988
|
-
async function
|
|
19988
|
+
async function Fi(t) {
|
|
19989
19989
|
const { queryObject: e, queryConfig: i, category: r, splitByField: n, chartLimits: a, abortKey: s } = t, o = n !== void 0, d = r !== Nt ? [r] : [];
|
|
19990
19990
|
o && d.push(n);
|
|
19991
|
-
const l =
|
|
19991
|
+
const l = k(e), { idField: c, isTraditionalTypeOID: p } = Oe(l), u = p ? c : "*", f = {
|
|
19992
19992
|
...i,
|
|
19993
19993
|
groupByFieldsForStatistics: Array.from(new Set(d)),
|
|
19994
19994
|
outStatistics: [
|
|
@@ -20017,7 +20017,7 @@ async function wi(t) {
|
|
|
20017
20017
|
new Set(
|
|
20018
20018
|
h.map((b) => b.attributes[o ? n : r])
|
|
20019
20019
|
)
|
|
20020
|
-
).sort((b,
|
|
20020
|
+
).sort((b, S) => typeof b == "string" && typeof S == "string" ? b.localeCompare(S) : Number(b) - Number(S));
|
|
20021
20021
|
}
|
|
20022
20022
|
const hr = [
|
|
20023
20023
|
{
|
|
@@ -20184,7 +20184,7 @@ async function Dc(t) {
|
|
|
20184
20184
|
let a;
|
|
20185
20185
|
if (r === void 0)
|
|
20186
20186
|
throw new Error("QueryObject is undefined!");
|
|
20187
|
-
const s =
|
|
20187
|
+
const s = k(r);
|
|
20188
20188
|
if (!de(s))
|
|
20189
20189
|
throw new pe(oe.LayerNotSupported);
|
|
20190
20190
|
const o = await Lc({
|
|
@@ -20195,7 +20195,7 @@ async function Dc(t) {
|
|
|
20195
20195
|
if (!o || !d)
|
|
20196
20196
|
a = {
|
|
20197
20197
|
valid: !1,
|
|
20198
|
-
invalidType:
|
|
20198
|
+
invalidType: W.BadData
|
|
20199
20199
|
};
|
|
20200
20200
|
else {
|
|
20201
20201
|
const l = e.series;
|
|
@@ -20211,22 +20211,22 @@ async function Dc(t) {
|
|
|
20211
20211
|
}
|
|
20212
20212
|
const f = [];
|
|
20213
20213
|
u.forEach((h) => {
|
|
20214
|
-
const m = {}, b = h[0][c], { display:
|
|
20215
|
-
m[c] =
|
|
20214
|
+
const m = {}, b = h[0][c], { display: S, original: x } = mr(b, p);
|
|
20215
|
+
m[c] = S, m[C.xAxisField] = S, m[C.originalCategoryValue] = x, l.forEach((v) => {
|
|
20216
20216
|
const F = v.query?.outStatistics?.[0];
|
|
20217
20217
|
if (!F) {
|
|
20218
|
-
const { name:
|
|
20219
|
-
m[
|
|
20218
|
+
const { name: B } = v;
|
|
20219
|
+
m[B] = h[0][B];
|
|
20220
20220
|
return;
|
|
20221
20221
|
}
|
|
20222
|
-
let
|
|
20223
|
-
const
|
|
20224
|
-
|
|
20225
|
-
const A = F.statisticType,
|
|
20226
|
-
m[
|
|
20227
|
-
features:
|
|
20222
|
+
let T = h;
|
|
20223
|
+
const w = v.query?.where;
|
|
20224
|
+
w && (T = h.filter((B) => Ac(B, w)));
|
|
20225
|
+
const A = F.statisticType, P = F.onStatisticField, D = F.outStatisticFieldName;
|
|
20226
|
+
m[D] = Bc({
|
|
20227
|
+
features: T,
|
|
20228
20228
|
aggregationType: A,
|
|
20229
|
-
onField:
|
|
20229
|
+
onField: P
|
|
20230
20230
|
});
|
|
20231
20231
|
}), f.push(m);
|
|
20232
20232
|
}), a = {
|
|
@@ -20304,13 +20304,13 @@ function Xn(t) {
|
|
|
20304
20304
|
export {
|
|
20305
20305
|
Ne as $,
|
|
20306
20306
|
Va as A,
|
|
20307
|
-
|
|
20307
|
+
O as B,
|
|
20308
20308
|
g as C,
|
|
20309
|
-
|
|
20309
|
+
W as D,
|
|
20310
20310
|
oe as E,
|
|
20311
20311
|
Kp as F,
|
|
20312
20312
|
za as G,
|
|
20313
|
-
|
|
20313
|
+
V as H,
|
|
20314
20314
|
xp as I,
|
|
20315
20315
|
bp as J,
|
|
20316
20316
|
Sp as K,
|
|
@@ -20320,9 +20320,9 @@ export {
|
|
|
20320
20320
|
je as O,
|
|
20321
20321
|
_a as P,
|
|
20322
20322
|
Cf as Q,
|
|
20323
|
-
|
|
20323
|
+
Ci as R,
|
|
20324
20324
|
xu as S,
|
|
20325
|
-
|
|
20325
|
+
j as T,
|
|
20326
20326
|
bl as U,
|
|
20327
20327
|
zr as V,
|
|
20328
20328
|
Ye as W,
|
|
@@ -20332,7 +20332,7 @@ export {
|
|
|
20332
20332
|
qt as _,
|
|
20333
20333
|
pe as a,
|
|
20334
20334
|
Jp as a$,
|
|
20335
|
-
|
|
20335
|
+
Ai as a0,
|
|
20336
20336
|
Yi as a1,
|
|
20337
20337
|
rl as a2,
|
|
20338
20338
|
il as a3,
|
|
@@ -20350,7 +20350,7 @@ export {
|
|
|
20350
20350
|
$p as aF,
|
|
20351
20351
|
Ha as aG,
|
|
20352
20352
|
Mt as aH,
|
|
20353
|
-
|
|
20353
|
+
_ as aI,
|
|
20354
20354
|
Ar as aJ,
|
|
20355
20355
|
Bp as aK,
|
|
20356
20356
|
Lp as aL,
|
|
@@ -20376,28 +20376,28 @@ export {
|
|
|
20376
20376
|
Zu as ae,
|
|
20377
20377
|
al as af,
|
|
20378
20378
|
gp as ag,
|
|
20379
|
-
|
|
20379
|
+
di as ah,
|
|
20380
20380
|
gc as ai,
|
|
20381
20381
|
cl as aj,
|
|
20382
20382
|
Ft as ak,
|
|
20383
|
-
|
|
20383
|
+
hi as al,
|
|
20384
20384
|
se as am,
|
|
20385
20385
|
Wi as an,
|
|
20386
20386
|
yt as ao,
|
|
20387
20387
|
E as ap,
|
|
20388
|
-
|
|
20388
|
+
ci as aq,
|
|
20389
20389
|
dl as ar,
|
|
20390
20390
|
Pr as as,
|
|
20391
20391
|
fr as at,
|
|
20392
20392
|
hc as au,
|
|
20393
|
-
|
|
20393
|
+
Oi as av,
|
|
20394
20394
|
Qf as aw,
|
|
20395
20395
|
Qp as ax,
|
|
20396
20396
|
ft as ay,
|
|
20397
20397
|
at as az,
|
|
20398
20398
|
Xe as b,
|
|
20399
20399
|
Yo as b$,
|
|
20400
|
-
|
|
20400
|
+
wi as b0,
|
|
20401
20401
|
Ht as b1,
|
|
20402
20402
|
Np as b2,
|
|
20403
20403
|
zp as b3,
|
|
@@ -20407,10 +20407,10 @@ export {
|
|
|
20407
20407
|
jp as b7,
|
|
20408
20408
|
Mp as b8,
|
|
20409
20409
|
Gp as b9,
|
|
20410
|
-
|
|
20410
|
+
k as bA,
|
|
20411
20411
|
Ku as bB,
|
|
20412
20412
|
ro as bC,
|
|
20413
|
-
|
|
20413
|
+
fi as bD,
|
|
20414
20414
|
Uf as bE,
|
|
20415
20415
|
ue as bF,
|
|
20416
20416
|
Co as bG,
|
|
@@ -20425,7 +20425,7 @@ export {
|
|
|
20425
20425
|
mo as bP,
|
|
20426
20426
|
Hu as bQ,
|
|
20427
20427
|
ho as bR,
|
|
20428
|
-
|
|
20428
|
+
Li as bS,
|
|
20429
20429
|
Lo as bT,
|
|
20430
20430
|
en as bU,
|
|
20431
20431
|
Zr as bV,
|
|
@@ -20446,9 +20446,9 @@ export {
|
|
|
20446
20446
|
Nu as bj,
|
|
20447
20447
|
Xn as bk,
|
|
20448
20448
|
ji as bl,
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20449
|
+
Bi as bm,
|
|
20450
|
+
Di as bn,
|
|
20451
|
+
Ni as bo,
|
|
20452
20452
|
nr as bp,
|
|
20453
20453
|
nn as bq,
|
|
20454
20454
|
Cu as br,
|
|
@@ -20495,7 +20495,7 @@ export {
|
|
|
20495
20495
|
zf as cU,
|
|
20496
20496
|
ei as cV,
|
|
20497
20497
|
yo as cW,
|
|
20498
|
-
|
|
20498
|
+
pi as cX,
|
|
20499
20499
|
zu as cY,
|
|
20500
20500
|
Lu as cZ,
|
|
20501
20501
|
st as c_,
|
|
@@ -20559,7 +20559,7 @@ export {
|
|
|
20559
20559
|
_o as dT,
|
|
20560
20560
|
hr as dU,
|
|
20561
20561
|
Gf as dV,
|
|
20562
|
-
|
|
20562
|
+
Fi as dW,
|
|
20563
20563
|
sl as dX,
|
|
20564
20564
|
Iu as dY,
|
|
20565
20565
|
Zp as dZ,
|
|
@@ -20620,7 +20620,7 @@ export {
|
|
|
20620
20620
|
Bf as eQ,
|
|
20621
20621
|
hp as eR,
|
|
20622
20622
|
bu as eS,
|
|
20623
|
-
|
|
20623
|
+
Ii as eT,
|
|
20624
20624
|
Tt as eU,
|
|
20625
20625
|
ys as eV,
|
|
20626
20626
|
ju as eW,
|