@arcgis/charts-components 5.2.0-next.147 → 5.2.0-next.149
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/{GZAROP4P.js → 257PEDYJ.js} +1 -1
- package/dist/cdn/{IPPQ6AYM.js → 25NUJ5YH.js} +1 -1
- package/dist/cdn/{QGC2DLQ4.js → 3E7JBKUK.js} +1 -1
- package/dist/cdn/{AKG64YBZ.js → 4I2I5IVQ.js} +1 -1
- package/dist/cdn/{3RI6PWDI.js → 4P7L6R6R.js} +1 -1
- package/dist/cdn/{4XK5YE6C.js → 4QXXXWA6.js} +1 -1
- package/dist/cdn/{ZGGFAHQL.js → 5FHRHVMR.js} +1 -1
- package/dist/cdn/{3BRUUROM.js → 5KS2PX57.js} +1 -1
- package/dist/cdn/{FIFXR6OH.js → 5TXHUDP4.js} +1 -1
- package/dist/cdn/{HDUMEWQL.js → 5U44JITQ.js} +1 -1
- package/dist/cdn/{TRTVGVQR.js → 6IOXNE24.js} +1 -1
- package/dist/cdn/{6JSWJHZB.js → 6IYV7IV4.js} +1 -1
- package/dist/cdn/{FM6AHBVU.js → 6OLJQWVE.js} +1 -1
- package/dist/cdn/{MVVC6PKQ.js → 72UQY733.js} +1 -1
- package/dist/cdn/{QFFPKVJF.js → 73GS7B7G.js} +1 -1
- package/dist/cdn/7Q7ES4BZ.js +2 -0
- package/dist/cdn/{Z73I4R5C.js → 7TMJU2RX.js} +1 -1
- package/dist/cdn/{INYPNEFZ.js → ACXDPMZD.js} +1 -1
- package/dist/cdn/{K5H4XE7T.js → AGKYRKW5.js} +1 -1
- package/dist/cdn/{QN2JEZ5D.js → AKOQC2SC.js} +1 -1
- package/dist/cdn/{KUGVL62E.js → B2LCOSXO.js} +1 -1
- package/dist/cdn/{46LRKKNP.js → BH2DGNXG.js} +1 -1
- package/dist/cdn/{GBL2FACR.js → BTDPI3AR.js} +1 -1
- package/dist/cdn/{AQOVEDUP.js → E2IXXH5R.js} +1 -1
- package/dist/cdn/{M7PFJOW7.js → F7VQ6K7S.js} +1 -1
- package/dist/cdn/{MVXG6N2M.js → FAFM7HRN.js} +1 -1
- package/dist/cdn/{HRZK3GLD.js → G63T5MU4.js} +1 -1
- package/dist/cdn/{7IJMKD5M.js → GHAC6H6F.js} +1 -1
- package/dist/cdn/{UUXIIGCK.js → GJUNAKKB.js} +1 -1
- package/dist/cdn/{YB4ZDSSI.js → GQ5T4JIV.js} +1 -1
- package/dist/cdn/H4HQBS46.js +4 -0
- package/dist/cdn/{TQS3LLJX.js → HL3H6U7M.js} +1 -1
- package/dist/cdn/IIYJJRMN.js +2 -0
- package/dist/cdn/{YIYP2ECR.js → IRYTXVTM.js} +1 -1
- package/dist/cdn/{65I7BUS4.js → ITTVEYZH.js} +1 -1
- package/dist/cdn/{N3YF4TVT.js → IVUICF2P.js} +1 -1
- package/dist/cdn/{E66QO3GL.js → JASVY2S5.js} +1 -1
- package/dist/cdn/{YUOEB6DF.js → JIANMLCP.js} +1 -1
- package/dist/cdn/{4VSBIIP2.js → JX7NTVFL.js} +1 -1
- package/dist/cdn/{JMYVXU4O.js → KJFL57RE.js} +1 -1
- package/dist/cdn/{MTAGYPDJ.js → LBMIXS7P.js} +1 -1
- package/dist/cdn/{EU5EYFH2.js → LJ3IPYWK.js} +1 -1
- package/dist/cdn/{VZ64E76N.js → M3EQKFST.js} +1 -1
- package/dist/cdn/{P5RPGI3P.js → MCY2C5IV.js} +1 -1
- package/dist/cdn/{4752WHSR.js → MMPVO6UX.js} +13 -13
- package/dist/cdn/{7DWJIEIJ.js → MOSYGTYS.js} +1 -1
- package/dist/cdn/{CZVLHPR7.js → MSFQI34M.js} +1 -1
- package/dist/cdn/{PNVMXN36.js → NDBNHEEZ.js} +1 -1
- package/dist/cdn/{BOGEJ7J7.js → NVPRRSLO.js} +1 -1
- package/dist/cdn/{C3XMGCU5.js → OKB4GB4J.js} +1 -1
- package/dist/cdn/{ZUYZHJTU.js → OPLY5TWI.js} +1 -1
- package/dist/cdn/{FGNSVA6W.js → PFAQRCVD.js} +1 -1
- package/dist/cdn/{IMSN4JMC.js → PFIVTH6Z.js} +1 -1
- package/dist/cdn/{S2PIPJCQ.js → QAN2SQN2.js} +1 -1
- package/dist/cdn/{7PW4JAXI.js → QBP5QHM5.js} +1 -1
- package/dist/cdn/{2GE65C6S.js → QGHGUVWE.js} +1 -1
- package/dist/cdn/{PU63PVCT.js → QJJRZHVE.js} +1 -1
- package/dist/cdn/{3JVIX4TL.js → QYMY2RNU.js} +1 -1
- package/dist/cdn/{JWGHSOOD.js → R2R6S5K6.js} +1 -1
- package/dist/cdn/{I2FZ2KUR.js → SDMBKMSY.js} +1 -1
- package/dist/cdn/{B3V4VZYM.js → SHG5B5EO.js} +1 -1
- package/dist/cdn/{OOFDTNBW.js → SKN5OMXV.js} +1 -1
- package/dist/cdn/{V32BIR37.js → SLH66QHH.js} +1 -1
- package/dist/cdn/{C2GHXSU5.js → TLCAHGNK.js} +1 -1
- package/dist/cdn/{5JERAZSG.js → TQW7WM4O.js} +1 -1
- package/dist/cdn/{SHQXINAI.js → TRI6WAGM.js} +1 -1
- package/dist/cdn/{BKABNAQM.js → UK2ILVTG.js} +1 -1
- package/dist/cdn/{5PTMLDOB.js → VCKFHB4U.js} +1 -1
- package/dist/cdn/{KMMYG2QX.js → VRVLAPPS.js} +1 -1
- package/dist/cdn/{D3Z4NVKQ.js → VSRAB3LY.js} +1 -1
- package/dist/cdn/{N2DHNIDT.js → VVHVHDWG.js} +1 -1
- package/dist/cdn/W2XIAHGG.js +2 -0
- package/dist/cdn/{7ZDSUAN6.js → WQQUCFW5.js} +1 -1
- package/dist/cdn/{7MBF4226.js → WZIPMTG5.js} +1 -1
- package/dist/cdn/{BDUTHXO4.js → XKKO432P.js} +1 -1
- package/dist/cdn/{KVHAU3R7.js → XOZZXRKR.js} +1 -1
- package/dist/cdn/{4BM25G3S.js → XWYYPCI6.js} +1 -1
- package/dist/cdn/YOAS5HJU.js +2 -0
- package/dist/cdn/{YM5SNR26.js → YR2QJZ5S.js} +1 -1
- package/dist/cdn/{HMHWVIF2.js → YRHDWCLS.js} +1 -1
- package/dist/cdn/{WK4FA5IO.js → ZP2Y7KD7.js} +1 -1
- package/dist/cdn/{CEZ2VRFW.js → ZUMDTFHS.js} +1 -1
- package/dist/cdn/{H4GILMDJ.js → ZY2X4X6T.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +68 -67
- package/dist/chunks/box-plot-model.js +4 -1
- package/dist/chunks/index.js +955 -943
- package/dist/chunks/pie-chart-model.js +9 -6
- package/dist/chunks/serial-chart-data.js +283 -282
- package/dist/chunks/serial-chart-model.js +4 -1
- package/dist/components/arcgis-chart/customElement.js +1292 -1291
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +54 -52
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +105 -103
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/model/box-plot-model/box-plot-model.d.ts +6 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +6 -2
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +6 -2
- package/dist/utils/data/categorical-data/index.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cdn/2CZEJ5DR.js +0 -2
- package/dist/cdn/EEN4U5XM.js +0 -2
- package/dist/cdn/EYEWINUB.js +0 -4
- package/dist/cdn/VPADWNW7.js +0 -2
- package/dist/cdn/YOUVPC2K.js +0 -2
|
@@ -56,9 +56,9 @@ const Vi = (i) => {
|
|
|
56
56
|
}, Ht = (i) => {
|
|
57
57
|
$t(0, i);
|
|
58
58
|
};
|
|
59
|
-
var Wt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, jt = (i, e, t,
|
|
60
|
-
for (var s = Ut(e, t),
|
|
61
|
-
(n = i[
|
|
59
|
+
var Wt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, jt = (i, e, t, r) => {
|
|
60
|
+
for (var s = Ut(e, t), a = i.length - 1, n; a >= 0; a--)
|
|
61
|
+
(n = i[a]) && (s = n(e, t, s) || s);
|
|
62
62
|
return s && Wt(e, t, s), s;
|
|
63
63
|
};
|
|
64
64
|
const Zt = (i) => {
|
|
@@ -68,8 +68,8 @@ const Zt = (i) => {
|
|
|
68
68
|
}), e || (e = i?.axes?.[0]?.valueFormat.type === x.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
|
|
69
69
|
}, we = (i, e) => {
|
|
70
70
|
const t = Ze(i);
|
|
71
|
-
X(e) ? i ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((
|
|
72
|
-
(
|
|
71
|
+
X(e) ? i ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
|
|
72
|
+
(r.type === x.BarSeries || r.type === x.RadarSeries || r.type === x.LineSeries) && (i ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = t) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
|
|
73
73
|
}), e?.axes?.[0]?.valueFormat.type === x.DateAxisFormat && (i ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
|
|
74
74
|
};
|
|
75
75
|
class Kt extends kt {
|
|
@@ -106,61 +106,61 @@ function Xi(i, e) {
|
|
|
106
106
|
return e != null || Ne(i);
|
|
107
107
|
}
|
|
108
108
|
async function Hi(i) {
|
|
109
|
-
const { config: e, layer: t, abortSignal:
|
|
109
|
+
const { config: e, layer: t, abortSignal: r } = i;
|
|
110
110
|
let s = !1;
|
|
111
|
-
return ue(t) || _e(e) ? e && ue(t) && (s = await Qe({ config: e, layer: t, abortSignal:
|
|
111
|
+
return ue(t) || _e(e) ? e && ue(t) && (s = await Qe({ config: e, layer: t, abortSignal: r })) : s = !0, s;
|
|
112
112
|
}
|
|
113
113
|
async function Qt(i) {
|
|
114
114
|
const {
|
|
115
115
|
queryObject: e,
|
|
116
116
|
chartConfig: t,
|
|
117
|
-
splitByField:
|
|
117
|
+
splitByField: r,
|
|
118
118
|
errorStrings: s,
|
|
119
|
-
abortSignal:
|
|
119
|
+
abortSignal: a,
|
|
120
120
|
runtimeDataFilters: n,
|
|
121
121
|
ignoreViewExtent: o,
|
|
122
|
-
setTimeBinningInfoWhenNotProvided:
|
|
123
|
-
returnFeaturesExtent:
|
|
124
|
-
returnStatisticsAggregatedIds:
|
|
122
|
+
setTimeBinningInfoWhenNotProvided: c,
|
|
123
|
+
returnFeaturesExtent: l,
|
|
124
|
+
returnStatisticsAggregatedIds: m,
|
|
125
125
|
chartLimits: f
|
|
126
126
|
} = i;
|
|
127
127
|
let p = [], u;
|
|
128
|
-
const d = te(t), y = d.series[0],
|
|
128
|
+
const d = te(t), y = d.series[0], g = lt({
|
|
129
129
|
queryObject: e,
|
|
130
130
|
chartConfig: d,
|
|
131
131
|
runtimeDataFilters: n,
|
|
132
132
|
ignoreViewExtent: o
|
|
133
133
|
});
|
|
134
|
-
if (
|
|
134
|
+
if (g.outStatistics?.[0]?.outStatisticFieldName && (g.outStatistics[0].outStatisticFieldName = It.outStatistics.outStatisticFieldName), L(y) && ct({
|
|
135
135
|
xAxisValueFormatType: ut(d),
|
|
136
|
-
setTimeBinningInfoWhenNotProvided:
|
|
136
|
+
setTimeBinningInfoWhenNotProvided: c,
|
|
137
137
|
seriesConfig: y,
|
|
138
138
|
queryObject: e
|
|
139
|
-
}) && dt(
|
|
139
|
+
}) && dt(r, e)) {
|
|
140
140
|
const { temporalBinning: F, x: S } = y, { uniqueQuery: h } = Se({
|
|
141
141
|
chartConfig: d,
|
|
142
|
-
queryConfig:
|
|
142
|
+
queryConfig: g,
|
|
143
143
|
queryObject: e,
|
|
144
|
-
setTimeBinningInfoWhenNotProvided:
|
|
145
|
-
returnFeaturesExtent:
|
|
144
|
+
setTimeBinningInfoWhenNotProvided: c,
|
|
145
|
+
returnFeaturesExtent: l,
|
|
146
146
|
chartLimits: f
|
|
147
147
|
}), A = t.axes?.[0].valueFormat.type === x.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
148
148
|
u = await yt({
|
|
149
149
|
queryObject: e,
|
|
150
150
|
dateField: S,
|
|
151
|
-
splitByField:
|
|
151
|
+
splitByField: r,
|
|
152
152
|
queryConfig: h,
|
|
153
153
|
axisTimeZone: A,
|
|
154
154
|
temporalBinning: F,
|
|
155
|
-
returnStatisticsAggregatedIds:
|
|
155
|
+
returnStatisticsAggregatedIds: m,
|
|
156
156
|
errorStrings: s,
|
|
157
|
-
abortSignal:
|
|
157
|
+
abortSignal: a
|
|
158
158
|
}), p = Array.from(
|
|
159
159
|
new Set(
|
|
160
160
|
u.flatMap((C) => {
|
|
161
161
|
const { stackedAttributes: T } = C;
|
|
162
162
|
let b = [];
|
|
163
|
-
return T && (b = T.map((v) => v[
|
|
163
|
+
return T && (b = T.map((v) => v[r]).filter((v) => v !== void 0)), b;
|
|
164
164
|
})
|
|
165
165
|
).values()
|
|
166
166
|
);
|
|
@@ -168,28 +168,28 @@ async function Qt(i) {
|
|
|
168
168
|
const { uniqueQuery: F } = Se({
|
|
169
169
|
chartConfig: d,
|
|
170
170
|
queryObject: e,
|
|
171
|
-
queryConfig:
|
|
172
|
-
setTimeBinningInfoWhenNotProvided:
|
|
173
|
-
returnFeaturesExtent:
|
|
171
|
+
queryConfig: g,
|
|
172
|
+
setTimeBinningInfoWhenNotProvided: c,
|
|
173
|
+
returnFeaturesExtent: l,
|
|
174
174
|
chartLimits: f
|
|
175
175
|
}), { elementCount: S } = await mt({
|
|
176
176
|
chartConfig: d,
|
|
177
177
|
queryObject: e,
|
|
178
|
-
queryConfig:
|
|
178
|
+
queryConfig: g,
|
|
179
179
|
behaviorAfterLimit: f?.behaviorAfterLimit,
|
|
180
180
|
numberMaxOfFeaturesToFetch: F.num,
|
|
181
|
-
abortSignal:
|
|
181
|
+
abortSignal: a
|
|
182
182
|
});
|
|
183
183
|
u = await gt({
|
|
184
184
|
queryObject: e,
|
|
185
185
|
queryConfig: F,
|
|
186
186
|
featureCount: S,
|
|
187
|
-
returnStatisticsAggregatedIds:
|
|
187
|
+
returnStatisticsAggregatedIds: m,
|
|
188
188
|
errorStrings: s,
|
|
189
|
-
abortSignal:
|
|
189
|
+
abortSignal: a
|
|
190
190
|
}), p = Array.from(
|
|
191
191
|
new Set(
|
|
192
|
-
u.map((h) => h.attributes[
|
|
192
|
+
u.map((h) => h.attributes[r]).filter((h) => h !== void 0)
|
|
193
193
|
).values()
|
|
194
194
|
);
|
|
195
195
|
}
|
|
@@ -197,9 +197,9 @@ async function Qt(i) {
|
|
|
197
197
|
}
|
|
198
198
|
function zt(i, e) {
|
|
199
199
|
const t = /* @__PURE__ */ new Map();
|
|
200
|
-
return i.series.forEach((
|
|
200
|
+
return i.series.forEach((r) => {
|
|
201
201
|
let s = ge({
|
|
202
|
-
where:
|
|
202
|
+
where: r.query?.where,
|
|
203
203
|
// normalize the value so it matches what we get from getAllValues()
|
|
204
204
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
205
205
|
normalize: !0,
|
|
@@ -208,70 +208,70 @@ function zt(i, e) {
|
|
|
208
208
|
escape: !1
|
|
209
209
|
});
|
|
210
210
|
e && s !== null && (s = Number(s));
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
...t.get(
|
|
211
|
+
const a = ke([r]);
|
|
212
|
+
a !== void 0 && t.set(a, [
|
|
213
|
+
...t.get(a) ?? [],
|
|
214
214
|
s
|
|
215
215
|
]);
|
|
216
216
|
}), t;
|
|
217
217
|
}
|
|
218
218
|
function Gt(i) {
|
|
219
|
-
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty:
|
|
220
|
-
return Array.from(t.keys()).forEach((
|
|
221
|
-
const n = t.get(
|
|
219
|
+
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = i, s = /* @__PURE__ */ new Map();
|
|
220
|
+
return Array.from(t.keys()).forEach((a) => {
|
|
221
|
+
const n = t.get(a) ?? [];
|
|
222
222
|
let o = [];
|
|
223
|
-
|
|
224
|
-
n.includes(
|
|
225
|
-
}), s.set(
|
|
223
|
+
r ? o = e : e.forEach((c) => {
|
|
224
|
+
n.includes(c) || o.push(c);
|
|
225
|
+
}), s.set(a, o);
|
|
226
226
|
}), s;
|
|
227
227
|
}
|
|
228
228
|
function Jt(i) {
|
|
229
|
-
const { chartConfig: e, missingValue: t, splitByField:
|
|
229
|
+
const { chartConfig: e, missingValue: t, splitByField: r, seriesTemplate: s } = i, a = JSON.parse(
|
|
230
230
|
JSON.stringify({
|
|
231
231
|
...e.series[0],
|
|
232
232
|
...s
|
|
233
233
|
})
|
|
234
234
|
);
|
|
235
|
-
if (
|
|
236
|
-
if (t === null ?
|
|
237
|
-
const o =
|
|
238
|
-
|
|
235
|
+
if (a.query) {
|
|
236
|
+
if (t === null ? a.id = Fe.nullValue : t === "" ? a.id = Fe.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
|
|
237
|
+
const o = a.id;
|
|
238
|
+
a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
|
|
239
239
|
}
|
|
240
240
|
const n = typeof t == "number" || t === null ? t : `'${t}'`;
|
|
241
|
-
|
|
241
|
+
a.query.where = `${r}=${n}`;
|
|
242
242
|
}
|
|
243
|
-
return
|
|
243
|
+
return a;
|
|
244
244
|
}
|
|
245
245
|
async function ei(i) {
|
|
246
246
|
const {
|
|
247
247
|
updateSplitBySeries: e,
|
|
248
248
|
config: t,
|
|
249
|
-
queryObject:
|
|
249
|
+
queryObject: r,
|
|
250
250
|
errorStrings: s,
|
|
251
|
-
abortSignal:
|
|
251
|
+
abortSignal: a,
|
|
252
252
|
runtimeDataFilters: n,
|
|
253
253
|
ignoreViewExtent: o,
|
|
254
|
-
setTimeBinningInfoWhenNotProvided:
|
|
255
|
-
returnFeaturesExtent:
|
|
256
|
-
returnStatisticsAggregatedIds:
|
|
254
|
+
setTimeBinningInfoWhenNotProvided: c,
|
|
255
|
+
returnFeaturesExtent: l,
|
|
256
|
+
returnStatisticsAggregatedIds: m,
|
|
257
257
|
chartLimits: f
|
|
258
258
|
} = i, { seriesTemplate: p } = e ?? {};
|
|
259
259
|
let u;
|
|
260
|
-
if (
|
|
260
|
+
if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || p !== void 0) && e.addMissingSeries) {
|
|
261
261
|
const d = t.series.length === 0;
|
|
262
262
|
t.series.length === 0 && p !== void 0 && t.series.push(p);
|
|
263
263
|
const y = ie(t.series);
|
|
264
264
|
if (y === w.BoxPlotC5MonoFieldAndSplitBy || y === w.BoxPlotC6MultiFieldsAndSplitBy || y === w.BoxPlotC7MonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
|
|
265
|
-
const
|
|
266
|
-
queryObject:
|
|
265
|
+
const g = st(t.series[0]?.query?.where), F = at(r), S = rt(g, F), h = S ? nt(S) : !1, A = await Qt({
|
|
266
|
+
queryObject: r,
|
|
267
267
|
chartConfig: t,
|
|
268
|
-
splitByField:
|
|
269
|
-
abortSignal:
|
|
268
|
+
splitByField: g,
|
|
269
|
+
abortSignal: a,
|
|
270
270
|
runtimeDataFilters: n,
|
|
271
271
|
ignoreViewExtent: o,
|
|
272
|
-
setTimeBinningInfoWhenNotProvided:
|
|
273
|
-
returnFeaturesExtent:
|
|
274
|
-
returnStatisticsAggregatedIds:
|
|
272
|
+
setTimeBinningInfoWhenNotProvided: c,
|
|
273
|
+
returnFeaturesExtent: l,
|
|
274
|
+
returnStatisticsAggregatedIds: m,
|
|
275
275
|
chartLimits: f,
|
|
276
276
|
errorStrings: s
|
|
277
277
|
}), { allValues: C } = A;
|
|
@@ -288,7 +288,7 @@ async function ei(i) {
|
|
|
288
288
|
chartConfig: t,
|
|
289
289
|
seriesTemplate: p,
|
|
290
290
|
missingValue: D,
|
|
291
|
-
splitByField:
|
|
291
|
+
splitByField: g
|
|
292
292
|
})
|
|
293
293
|
);
|
|
294
294
|
}), d && t.series.shift();
|
|
@@ -305,64 +305,64 @@ async function Wi(i) {
|
|
|
305
305
|
const {
|
|
306
306
|
configToAlter: e,
|
|
307
307
|
layer: t,
|
|
308
|
-
addMissingSeries:
|
|
308
|
+
addMissingSeries: r,
|
|
309
309
|
updateSplitBySeries: s,
|
|
310
|
-
chartContainer:
|
|
310
|
+
chartContainer: a,
|
|
311
311
|
queryObject: n,
|
|
312
312
|
abortSignal: o,
|
|
313
|
-
runtimeDataFilters:
|
|
314
|
-
ignoreViewExtent:
|
|
315
|
-
setTimeBinningInfoWhenNotProvided:
|
|
313
|
+
runtimeDataFilters: c,
|
|
314
|
+
ignoreViewExtent: l,
|
|
315
|
+
setTimeBinningInfoWhenNotProvided: m,
|
|
316
316
|
returnFeaturesExtent: f,
|
|
317
317
|
returnStatisticsAggregatedIds: p,
|
|
318
318
|
chartLimits: u,
|
|
319
319
|
timeZone: d,
|
|
320
320
|
errorStrings: y
|
|
321
321
|
} = i;
|
|
322
|
-
let
|
|
323
|
-
return
|
|
322
|
+
let g = e, F;
|
|
323
|
+
return g && (ti(t, g), g = await Pt(g, t, void 0, o), r && n && (F = await ei({
|
|
324
324
|
updateSplitBySeries: s,
|
|
325
|
-
config:
|
|
325
|
+
config: g,
|
|
326
326
|
queryObject: n,
|
|
327
327
|
errorStrings: y,
|
|
328
328
|
abortSignal: o,
|
|
329
|
-
runtimeDataFilters:
|
|
330
|
-
ignoreViewExtent:
|
|
331
|
-
setTimeBinningInfoWhenNotProvided:
|
|
329
|
+
runtimeDataFilters: c,
|
|
330
|
+
ignoreViewExtent: l,
|
|
331
|
+
setTimeBinningInfoWhenNotProvided: m,
|
|
332
332
|
returnFeaturesExtent: f,
|
|
333
333
|
returnStatisticsAggregatedIds: p,
|
|
334
334
|
chartLimits: u
|
|
335
|
-
})),
|
|
335
|
+
})), g = Ke(g, a), we(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
|
|
336
336
|
}
|
|
337
337
|
function ii(i, e) {
|
|
338
338
|
let t = !1;
|
|
339
339
|
if (e !== void 0) {
|
|
340
|
-
const
|
|
341
|
-
t = Number.isFinite(i[
|
|
340
|
+
const r = ot({ key: pt.Average, splitBy: e });
|
|
341
|
+
t = Number.isFinite(i[r]);
|
|
342
342
|
}
|
|
343
343
|
return t;
|
|
344
344
|
}
|
|
345
345
|
function Ui(i) {
|
|
346
|
-
const { data: e, config: t, showEmptySeries:
|
|
346
|
+
const { data: e, config: t, showEmptySeries: r } = i, s = t.series.length, a = te(t);
|
|
347
347
|
let n = !1;
|
|
348
|
-
if (!
|
|
349
|
-
const o = ze(e),
|
|
350
|
-
switch (
|
|
348
|
+
if (!r && s > 1 && e) {
|
|
349
|
+
const o = ze(e), c = ke(t?.series), l = ie(t?.series), m = /* @__PURE__ */ new Set();
|
|
350
|
+
switch (c) {
|
|
351
351
|
case x.ComboLineAndBarSeries:
|
|
352
352
|
case x.BarSeries:
|
|
353
353
|
case x.RadarSeries:
|
|
354
354
|
case x.LineSeries: {
|
|
355
|
-
|
|
355
|
+
a.series.forEach((p) => {
|
|
356
356
|
if (Array.isArray(o)) {
|
|
357
357
|
let u = "";
|
|
358
|
-
"y" in p && (u = Array.isArray(p.y) ? p.y[0] : p.y,
|
|
358
|
+
"y" in p && (u = Array.isArray(p.y) ? p.y[0] : p.y, l === w.BarAndLineSplitByNoAggregation && (u = `${u}_${ge({ where: p.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
359
359
|
(y) => tt({
|
|
360
360
|
dataItem: y,
|
|
361
361
|
x: p.x,
|
|
362
362
|
y: u,
|
|
363
363
|
aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
|
|
364
364
|
})
|
|
365
|
-
) &&
|
|
365
|
+
) && m.add(p));
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
368
|
break;
|
|
@@ -373,23 +373,23 @@ function Ui(i) {
|
|
|
373
373
|
t.series.forEach((u) => {
|
|
374
374
|
let d, y;
|
|
375
375
|
u.type === x.BoxPlotSeries ? (d = e.dataItems, y = d?.some(
|
|
376
|
-
(
|
|
377
|
-
dataItem:
|
|
376
|
+
(g) => et({
|
|
377
|
+
dataItem: g,
|
|
378
378
|
splitBy: u.query?.where,
|
|
379
379
|
showOutliers: p
|
|
380
380
|
})
|
|
381
381
|
)) : u.type === x.LineSeries && (d = e.meanLines, y = d?.some(
|
|
382
|
-
(
|
|
383
|
-
)), y &&
|
|
382
|
+
(g) => ii(g, u.query?.where)
|
|
383
|
+
)), y && m.add(u);
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
break;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
const f = Array.from(
|
|
390
|
-
n = f.length > 0 && f.length < s, n && (
|
|
389
|
+
const f = Array.from(m.values());
|
|
390
|
+
n = f.length > 0 && f.length < s, n && (a.series = f);
|
|
391
391
|
}
|
|
392
|
-
return { seriesFilteredOut: n, filteredConfig:
|
|
392
|
+
return { seriesFilteredOut: n, filteredConfig: a };
|
|
393
393
|
}
|
|
394
394
|
const ji = (i) => i.hideEmptyRowsAndColumns, Zi = (i, e) => {
|
|
395
395
|
i.hideEmptyRowsAndColumns = e;
|
|
@@ -400,47 +400,47 @@ const ji = (i) => i.hideEmptyRowsAndColumns, Zi = (i, e) => {
|
|
|
400
400
|
const t = i.series[0];
|
|
401
401
|
t.gradientRules = e;
|
|
402
402
|
}, zi = (i) => i.series[0].gradientRules, Gi = (i) => {
|
|
403
|
-
const { yField: e, config: t, layerInfo:
|
|
404
|
-
if (typeof e == "string" && o !== e &&
|
|
405
|
-
if (
|
|
406
|
-
const
|
|
407
|
-
$(t, 1,
|
|
403
|
+
const { yField: e, config: t, layerInfo: r, commonStrings: s } = i, { layerFieldsInfo: a } = r, n = se(1, t), o = si(t), c = re(t), l = t.series[0];
|
|
404
|
+
if (typeof e == "string" && o !== e && l) {
|
|
405
|
+
if (l.y = e, _t(t), o === n || c) {
|
|
406
|
+
const m = k(a, e);
|
|
407
|
+
$(t, 1, m);
|
|
408
408
|
}
|
|
409
|
-
Pe({ commonStrings: s, config: t, layerInfo:
|
|
409
|
+
Pe({ commonStrings: s, config: t, layerInfo: r });
|
|
410
410
|
}
|
|
411
411
|
}, si = (i) => i.series[0].y ?? "", Ji = (i) => {
|
|
412
|
-
const { binning: e, config: t, commonStrings:
|
|
413
|
-
if (s.xTemporalBinning = e, e?.unit !== void 0 && e.unit in
|
|
414
|
-
const
|
|
415
|
-
$(t, 0,
|
|
412
|
+
const { binning: e, config: t, commonStrings: r } = i, s = t.series[0];
|
|
413
|
+
if (s.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
414
|
+
const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
415
|
+
$(t, 0, a);
|
|
416
416
|
}
|
|
417
|
-
ee({ axisIndex: 0, commonStrings:
|
|
417
|
+
ee({ axisIndex: 0, commonStrings: r, config: t });
|
|
418
418
|
}, ai = (i) => i.series[0].xTemporalBinning, es = (i) => {
|
|
419
|
-
const { binning: e, config: t, commonStrings:
|
|
420
|
-
if (s.yTemporalBinning = e, e?.unit !== void 0 && e.unit in
|
|
421
|
-
const
|
|
422
|
-
$(t, 1,
|
|
419
|
+
const { binning: e, config: t, commonStrings: r } = i, s = t.series[0];
|
|
420
|
+
if (s.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
421
|
+
const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
422
|
+
$(t, 1, a);
|
|
423
423
|
}
|
|
424
|
-
ee({ axisIndex: 1, commonStrings:
|
|
424
|
+
ee({ axisIndex: 1, commonStrings: r, config: t });
|
|
425
425
|
}, ri = (i) => i.series[0].yTemporalBinning, ni = (i, e) => {
|
|
426
426
|
e.orderOptions ??= {};
|
|
427
|
-
const t = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue,
|
|
427
|
+
const t = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = me(e)[0], s = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, a = me(e)[1], n = {
|
|
428
428
|
...e.orderOptions.data ?? {},
|
|
429
429
|
orderType: N.MultiAxes
|
|
430
430
|
};
|
|
431
|
-
|
|
431
|
+
r === ce.customSort && t === N.Category && (n.orderByX = [...i]), a === ce.customSort && s === N.Category && (n.orderByY = [...i]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
432
432
|
}, ts = (i, e) => {
|
|
433
433
|
const t = e.series[0];
|
|
434
434
|
t.gridLine && (t.gridLine.width = i);
|
|
435
435
|
}, is = (i) => i.series[0].gridLine?.width, ss = (i, e) => {
|
|
436
|
-
const t = e.series[0],
|
|
437
|
-
t.gridLine &&
|
|
436
|
+
const t = e.series[0], r = i?.length === 4 && i.every((s) => typeof s == "number");
|
|
437
|
+
t.gridLine && r && (t.gridLine.color = i);
|
|
438
438
|
}, as = (i) => i.series[0].gridLine?.color, rs = (i, e) => {
|
|
439
439
|
const t = e.legend;
|
|
440
440
|
t && (t.position = i);
|
|
441
441
|
}, ns = (i) => i.legend?.position ?? Ct.Bottom, os = (i) => i.series[0].query?.outStatistics?.[0]?.onStatisticField, ls = (i) => {
|
|
442
|
-
const { field: e, config: t, layerInfo:
|
|
443
|
-
|
|
442
|
+
const { field: e, config: t, layerInfo: r, commonStrings: s } = i, a = t.series[0].query?.outStatistics?.[0], n = le(t, r, s);
|
|
443
|
+
a ? (a.onStatisticField = e, a.outStatisticFieldName = `${a.statisticType}_${e}`) : t.series[0].query = {
|
|
444
444
|
outStatistics: [
|
|
445
445
|
{
|
|
446
446
|
onStatisticField: e,
|
|
@@ -448,10 +448,10 @@ const ji = (i) => i.hideEmptyRowsAndColumns, Zi = (i, e) => {
|
|
|
448
448
|
statisticType: I.Count
|
|
449
449
|
}
|
|
450
450
|
]
|
|
451
|
-
}, n && t.title && (t.title.content.text = Z(t,
|
|
451
|
+
}, n && t.title && (t.title.content.text = Z(t, r, s));
|
|
452
452
|
}, cs = (i) => i.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, us = (i) => {
|
|
453
|
-
const { aggregationType: e, config: t, layerInfo:
|
|
454
|
-
|
|
453
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: s } = i, a = t.series[0]?.query?.outStatistics?.[0], n = le(t, r, s);
|
|
454
|
+
a && e !== I.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === I.Count || e === I.Sum) && oi(H.Zero, t), n && t.title && (t.title.content.text = Z(t, r, s));
|
|
455
455
|
}, ds = (i) => i.nullPolicy, oi = (i, e) => {
|
|
456
456
|
e.nullPolicy = i;
|
|
457
457
|
}, ys = (i) => i.series[0].emptyCells, ms = (i, e) => {
|
|
@@ -525,8 +525,8 @@ const li = [
|
|
|
525
525
|
let e;
|
|
526
526
|
return _(i) ? e = ye() : (q(i) || Q(i)) && (e = J()), e;
|
|
527
527
|
}, be = (i) => q(i) || Q(i), ve = (i) => {
|
|
528
|
-
const { axisIndex: e, commonStrings: t, config:
|
|
529
|
-
s !== void 0 &&
|
|
528
|
+
const { axisIndex: e, commonStrings: t, config: r, valueFormat: s } = i, a = r.axes?.[e]?.valueFormat;
|
|
529
|
+
s !== void 0 && a?.type !== s.type && Ve({ config: r, commonStrings: t, valueFormat: s, axisIndex: e });
|
|
530
530
|
}, ci = (i, e) => {
|
|
531
531
|
let t;
|
|
532
532
|
return e === 0 ? t = i.series[0]?.xTemporalBinning : e === 1 && (t = i.series[0]?.yTemporalBinning), t;
|
|
@@ -560,14 +560,14 @@ const li = [
|
|
|
560
560
|
intlOptions: e
|
|
561
561
|
};
|
|
562
562
|
}, De = (i) => {
|
|
563
|
-
const { axisIndex: e, binning: t, commonStrings:
|
|
564
|
-
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (
|
|
563
|
+
const { axisIndex: e, binning: t, commonStrings: r, config: s, fieldName: a, layerInfo: n } = i, o = s.series[0], c = se(e, s), l = k(n.layerFieldsInfo, a);
|
|
564
|
+
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (c === "" || c === l || c === Ie(r, t.unit) || c === r.xAxis) && $(s, e, Ie(r, t.unit));
|
|
565
565
|
}, ee = (i) => {
|
|
566
|
-
const { axisIndex: e, commonStrings: t, config:
|
|
567
|
-
Ve({ config:
|
|
566
|
+
const { axisIndex: e, commonStrings: t, config: r } = i, s = ci(r, e), a = s ? ui(s) : void 0;
|
|
567
|
+
Ve({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
|
|
568
568
|
}, Pe = (i) => {
|
|
569
|
-
const { commonStrings: e, config: t, layerInfo:
|
|
570
|
-
if (ve({ axisIndex: 0, commonStrings: e, config: t, valueFormat:
|
|
569
|
+
const { commonStrings: e, config: t, layerInfo: r } = i, s = t.series[0]?.x ?? "", a = t.series[0]?.y ?? "", n = he(r.layerFieldsInfo, s), o = he(r.layerFieldsInfo, a), c = Ae(n), l = Ae(o), m = be(n) && be(o), f = _(n) && _(o);
|
|
570
|
+
if (ve({ axisIndex: 0, commonStrings: e, config: t, valueFormat: c }), ve({ axisIndex: 1, commonStrings: e, config: t, valueFormat: l }), m) {
|
|
571
571
|
const p = ai(t) === void 0, u = ri(t) === void 0;
|
|
572
572
|
p && (De({
|
|
573
573
|
axisIndex: 0,
|
|
@@ -575,7 +575,7 @@ const li = [
|
|
|
575
575
|
commonStrings: e,
|
|
576
576
|
config: t,
|
|
577
577
|
fieldName: s,
|
|
578
|
-
layerInfo:
|
|
578
|
+
layerInfo: r
|
|
579
579
|
}), ee({
|
|
580
580
|
axisIndex: 0,
|
|
581
581
|
commonStrings: e,
|
|
@@ -585,8 +585,8 @@ const li = [
|
|
|
585
585
|
binning: Le(1, t.series[0].xTemporalBinning),
|
|
586
586
|
commonStrings: e,
|
|
587
587
|
config: t,
|
|
588
|
-
fieldName:
|
|
589
|
-
layerInfo:
|
|
588
|
+
fieldName: a,
|
|
589
|
+
layerInfo: r
|
|
590
590
|
}), ee({
|
|
591
591
|
axisIndex: 1,
|
|
592
592
|
commonStrings: e,
|
|
@@ -602,41 +602,41 @@ function di(i) {
|
|
|
602
602
|
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
603
603
|
}
|
|
604
604
|
function ne(i) {
|
|
605
|
-
const { seriesIndex: e, xAxisField: t, aggregationType:
|
|
606
|
-
let
|
|
607
|
-
const
|
|
608
|
-
let
|
|
609
|
-
if (
|
|
605
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: r, config: s, layerInfo: a, commonStrings: n } = i, o = j(a?.layer).idField;
|
|
606
|
+
let c;
|
|
607
|
+
const l = s.series[e ?? 0];
|
|
608
|
+
let m = !1, f = !1, p = !1;
|
|
609
|
+
if (l === void 0) {
|
|
610
610
|
const T = s.series;
|
|
611
|
-
|
|
611
|
+
m = T.slice(0, e).every((b) => O(b)), f = T.slice(0, e).every((b) => V(b)), p = T.slice(0, e).every((b) => Te(b));
|
|
612
612
|
} else
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
m = O(l), f = V(l), p = Te(l);
|
|
614
|
+
m ? c = Dt({
|
|
615
615
|
commonStrings: n,
|
|
616
616
|
seriesIndex: e,
|
|
617
617
|
objectIDField: o
|
|
618
|
-
}) : f ?
|
|
618
|
+
}) : f ? c = Nt({
|
|
619
619
|
commonStrings: n,
|
|
620
620
|
seriesIndex: e,
|
|
621
621
|
objectIDField: o
|
|
622
|
-
}) : p ?
|
|
622
|
+
}) : p ? c = Ot(n, o) : c = Vt({
|
|
623
623
|
seriesIndex: e,
|
|
624
624
|
objectIDField: o,
|
|
625
625
|
commonStrings: n
|
|
626
626
|
});
|
|
627
|
-
const u = s.series[0]?.dataLabels, d = "nullCategory" in s.series[0] ? di(s) : void 0, y = "binTemporalData" in s.series[0] ? s.series[0].binTemporalData : void 0,
|
|
628
|
-
...
|
|
627
|
+
const u = s.series[0]?.dataLabels, d = "nullCategory" in s.series[0] ? di(s) : void 0, y = "binTemporalData" in s.series[0] ? s.series[0].binTemporalData : void 0, g = "classBreakRules" in s.series[0] ? s.series[0].classBreakRules : void 0, F = "xTemporalBinning" in s.series[0] ? s.series[0].xTemporalBinning : void 0, S = "yTemporalBinning" in s.series[0] ? s.series[0].yTemporalBinning : void 0, h = "emptyCells" in s.series[0] ? s.series[0].emptyCells : void 0, A = s.series[0].query && "fetchNullValues" in s.series[0].query ? s.series[0].query?.fetchNullValues : void 0, C = {
|
|
628
|
+
...c,
|
|
629
629
|
x: t,
|
|
630
630
|
y: "",
|
|
631
631
|
dataLabels: {
|
|
632
|
-
...
|
|
633
|
-
type:
|
|
634
|
-
content: { ...
|
|
632
|
+
...c.dataLabels,
|
|
633
|
+
type: c.dataLabels?.type ?? x.Text,
|
|
634
|
+
content: { ...c.dataLabels?.content, ...u?.content, type: vt.TS },
|
|
635
635
|
visible: u?.visible ?? !1
|
|
636
636
|
},
|
|
637
637
|
...d !== void 0 ? { nullCategory: d } : {},
|
|
638
638
|
...y !== void 0 ? { binTemporalData: y } : {},
|
|
639
|
-
...
|
|
639
|
+
...g !== void 0 ? { classBreakRules: g } : {},
|
|
640
640
|
...F !== void 0 ? { xTemporalBinning: F } : {},
|
|
641
641
|
...S !== void 0 ? { yTemporalBinning: S } : {},
|
|
642
642
|
...h !== void 0 ? { emptyCells: h } : {}
|
|
@@ -644,11 +644,11 @@ function ne(i) {
|
|
|
644
644
|
if (C.query = {
|
|
645
645
|
groupByFieldsForStatistics: [t],
|
|
646
646
|
...A !== void 0 ? { fetchNullValues: A } : {}
|
|
647
|
-
},
|
|
648
|
-
const T = `${
|
|
647
|
+
}, r !== I.NoAggregation && o !== void 0) {
|
|
648
|
+
const T = `${r}_${o}_0`.toUpperCase();
|
|
649
649
|
C.y = T, C.query.outStatistics = [
|
|
650
650
|
{
|
|
651
|
-
statisticType:
|
|
651
|
+
statisticType: r,
|
|
652
652
|
onStatisticField: o,
|
|
653
653
|
outStatisticFieldName: T
|
|
654
654
|
}
|
|
@@ -664,54 +664,54 @@ function ne(i) {
|
|
|
664
664
|
return te(C);
|
|
665
665
|
}
|
|
666
666
|
function Z(i, e, t) {
|
|
667
|
-
const { layerFieldsInfo:
|
|
667
|
+
const { layerFieldsInfo: r } = e, { idField: s, isTraditionalTypeOID: a } = j(e.layer), n = P(i), o = W(i), c = oe(i), l = K(i), m = a && (o.length === 0 || o.includes(s)), f = Lt(c, t), p = m ? "" : o.map((h) => k(r ?? [], h)).join(", "), u = k(r ?? [], n), d = k(r ?? [], l), y = i.series.some((h) => Y(h)), g = y ? "category" : "xAxisField", F = u;
|
|
668
668
|
let S = "";
|
|
669
669
|
if (fe({
|
|
670
670
|
fieldName: n,
|
|
671
671
|
numericFields: o,
|
|
672
|
-
fieldList:
|
|
672
|
+
fieldList: r
|
|
673
673
|
}))
|
|
674
674
|
S = M(t.titleLabels.aggrTypeOfAggrFields, {
|
|
675
675
|
aggregationType: f,
|
|
676
676
|
aggregationFields: p
|
|
677
677
|
});
|
|
678
|
-
else if (
|
|
679
|
-
const h =
|
|
680
|
-
if (
|
|
678
|
+
else if (c === I.NoAggregation) {
|
|
679
|
+
const h = m ? s : p;
|
|
680
|
+
if (l === "") {
|
|
681
681
|
const A = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
682
682
|
S = M(t.titleLabels[A], {
|
|
683
683
|
aggregationType: h,
|
|
684
|
-
[
|
|
684
|
+
[g]: F
|
|
685
685
|
});
|
|
686
686
|
} else {
|
|
687
687
|
const A = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
688
688
|
S = M(t.titleLabels[A], {
|
|
689
689
|
aggregationType: h,
|
|
690
|
-
[
|
|
690
|
+
[g]: F,
|
|
691
691
|
splitByField: d
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
} else if (
|
|
695
|
-
if (
|
|
694
|
+
} else if (c === I.Count)
|
|
695
|
+
if (l === "") {
|
|
696
696
|
const h = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
697
697
|
S = M(t.titleLabels[h], {
|
|
698
698
|
aggregationType: f,
|
|
699
|
-
[
|
|
699
|
+
[g]: F
|
|
700
700
|
});
|
|
701
701
|
} else {
|
|
702
702
|
const h = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
703
703
|
S = M(t.titleLabels[h], {
|
|
704
704
|
aggregationType: f,
|
|
705
|
-
[
|
|
705
|
+
[g]: F,
|
|
706
706
|
splitByField: d
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
|
-
else if (
|
|
709
|
+
else if (l !== "") {
|
|
710
710
|
const h = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
711
711
|
S = M(t.titleLabels[h], {
|
|
712
712
|
aggregationType: f,
|
|
713
713
|
aggregationField: p,
|
|
714
|
-
[
|
|
714
|
+
[g]: F,
|
|
715
715
|
splitByField: d
|
|
716
716
|
});
|
|
717
717
|
} else if (o.length > 0) {
|
|
@@ -719,7 +719,7 @@ function Z(i, e, t) {
|
|
|
719
719
|
S = M(t.titleLabels[h], {
|
|
720
720
|
aggregationType: f,
|
|
721
721
|
aggregationFields: p,
|
|
722
|
-
[
|
|
722
|
+
[g]: F
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
725
|
return S;
|
|
@@ -738,30 +738,30 @@ const Ee = (i) => ge({
|
|
|
738
738
|
let e = [];
|
|
739
739
|
if (K(i) === "")
|
|
740
740
|
e = i?.series.map((t) => {
|
|
741
|
-
const
|
|
742
|
-
return
|
|
741
|
+
const r = t.query?.outStatistics?.map((s) => s.onStatisticField) ?? [];
|
|
742
|
+
return r?.length > 0 ? r : t.y;
|
|
743
743
|
}).flat() ?? [];
|
|
744
744
|
else {
|
|
745
|
-
const t = i?.series?.[0],
|
|
746
|
-
e =
|
|
745
|
+
const t = i?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
|
|
746
|
+
e = r !== void 0 ? [r] : [];
|
|
747
747
|
}
|
|
748
748
|
return e.filter((t) => t !== "");
|
|
749
749
|
};
|
|
750
750
|
function Me(i) {
|
|
751
|
-
const { splitByField: e, numericFields: t, layer:
|
|
752
|
-
return e === "" ? t[s] ??
|
|
751
|
+
const { splitByField: e, numericFields: t, layer: r, seriesIndex: s } = i, a = j(r).idField ?? "";
|
|
752
|
+
return e === "" ? t[s] ?? a : t[0] ?? a;
|
|
753
753
|
}
|
|
754
754
|
function yi(i) {
|
|
755
|
-
const { numericFields: e, aggregationType: t, config:
|
|
756
|
-
let
|
|
757
|
-
t === I.Count ?
|
|
758
|
-
const
|
|
759
|
-
return
|
|
760
|
-
})), Be(
|
|
761
|
-
const n =
|
|
755
|
+
const { numericFields: e, aggregationType: t, config: r, layerInfo: s } = i;
|
|
756
|
+
let a = !1;
|
|
757
|
+
t === I.Count ? a = !0 : t === I.NoAggregation && (a = e.every((c) => {
|
|
758
|
+
const l = s.layerFieldsInfo.find((m) => m.name === c);
|
|
759
|
+
return l !== void 0 ? xe(l) : !1;
|
|
760
|
+
})), Be(r, 1, a);
|
|
761
|
+
const n = r.series.some((c) => O(c)), o = r.series.some((c) => V(c));
|
|
762
762
|
if (n || o) {
|
|
763
|
-
const
|
|
764
|
-
Be(
|
|
763
|
+
const c = P(r), l = s.layerFieldsInfo.find((f) => f.name === c), m = l !== void 0 && xe(l);
|
|
764
|
+
Be(r, 0, m);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
function Ye(i) {
|
|
@@ -771,111 +771,111 @@ function Ye(i) {
|
|
|
771
771
|
const me = (i) => {
|
|
772
772
|
let e;
|
|
773
773
|
if (X(i)) {
|
|
774
|
-
const t = i.orderOptions?.data?.orderByX ?? [""],
|
|
775
|
-
e = [Ce(t, s), Ce(
|
|
774
|
+
const t = i.orderOptions?.data?.orderByX ?? [""], r = i.orderOptions?.data?.orderByY ?? [""], s = i.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, a = i.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue;
|
|
775
|
+
e = [Ce(t, s), Ce(r, a)];
|
|
776
776
|
} else {
|
|
777
|
-
const t = i.orderOptions?.data?.orderType ?? N.Category,
|
|
778
|
-
e = [Bt(
|
|
777
|
+
const t = i.orderOptions?.data?.orderType ?? N.Category, r = i.orderOptions?.data && "orderBy" in i.orderOptions.data ? i.orderOptions.data.orderBy : At.Ascending;
|
|
778
|
+
e = [Bt(r, t)];
|
|
779
779
|
}
|
|
780
780
|
return e;
|
|
781
781
|
};
|
|
782
782
|
function mi(i) {
|
|
783
|
-
const { xAxisField: e, numericFields: t, aggregationType:
|
|
783
|
+
const { xAxisField: e, numericFields: t, aggregationType: r, config: s, layerInfo: a, commonStrings: n } = i, { layerFieldsInfo: o } = a, c = ne({
|
|
784
784
|
config: s,
|
|
785
785
|
xAxisField: e,
|
|
786
|
-
aggregationType:
|
|
787
|
-
layerInfo:
|
|
786
|
+
aggregationType: r,
|
|
787
|
+
layerInfo: a,
|
|
788
788
|
seriesIndex: 0,
|
|
789
789
|
commonStrings: n
|
|
790
|
-
}),
|
|
790
|
+
}), l = ae({
|
|
791
791
|
config: s,
|
|
792
792
|
xAxisField: e,
|
|
793
793
|
numericFields: t,
|
|
794
|
-
aggregationType:
|
|
795
|
-
layer:
|
|
794
|
+
aggregationType: r,
|
|
795
|
+
layer: a.layer,
|
|
796
796
|
fieldList: o
|
|
797
|
-
}).name,
|
|
798
|
-
fieldName:
|
|
797
|
+
}).name, m = P(s), f = W(s), p = fe({
|
|
798
|
+
fieldName: m,
|
|
799
799
|
numericFields: f,
|
|
800
800
|
fieldList: o
|
|
801
801
|
}) ? s.series[0] : void 0, u = `series_${Date.now()}`, d = p?.id ?? u, y = p?.name ?? n.axisLabels.values, F = {
|
|
802
|
-
...p ??
|
|
802
|
+
...p ?? c,
|
|
803
803
|
id: d,
|
|
804
804
|
name: y,
|
|
805
805
|
x: U,
|
|
806
|
-
y:
|
|
806
|
+
y: l
|
|
807
807
|
}, S = [];
|
|
808
808
|
for (const h of t)
|
|
809
809
|
S.push({
|
|
810
810
|
onStatisticField: h,
|
|
811
811
|
outStatisticFieldName: `${h}_0`.toUpperCase(),
|
|
812
|
-
statisticType:
|
|
812
|
+
statisticType: r
|
|
813
813
|
});
|
|
814
814
|
return F.query = { outStatistics: S }, s.series.length === 1 && ((O(F) || V(F)) && Xe(F, s.series[0]), Y(F) ? F.fillSymbol = s.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = s.series[0].lineSymbol, F.markerSymbol = s.series[0].markerSymbol)), [F];
|
|
815
815
|
}
|
|
816
816
|
function $e(i) {
|
|
817
|
-
const { xAxisField: e, numericFields: t, aggregationType:
|
|
817
|
+
const { xAxisField: e, numericFields: t, aggregationType: r, config: s, layerInfo: a, commonStrings: n } = i, { layerFieldsInfo: o } = a, c = j(a.layer).idField, l = [];
|
|
818
818
|
for (let d = 0; d < t.length; d += 1) {
|
|
819
819
|
const y = ne({
|
|
820
820
|
config: s,
|
|
821
821
|
xAxisField: e,
|
|
822
|
-
aggregationType:
|
|
823
|
-
layerInfo:
|
|
822
|
+
aggregationType: r,
|
|
823
|
+
layerInfo: a,
|
|
824
824
|
seriesIndex: d,
|
|
825
825
|
commonStrings: n
|
|
826
|
-
}),
|
|
826
|
+
}), g = s.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((D) => D.name === g) ? g : ae({
|
|
827
827
|
config: s,
|
|
828
828
|
xAxisField: e,
|
|
829
829
|
numericFields: t,
|
|
830
|
-
aggregationType:
|
|
831
|
-
layer:
|
|
830
|
+
aggregationType: r,
|
|
831
|
+
layer: a.layer,
|
|
832
832
|
numericFieldIndex: d,
|
|
833
833
|
fieldList: o
|
|
834
834
|
}).name, S = t[d], h = s.series.find(
|
|
835
835
|
(D) => D.query?.where === void 0 && (D.query?.outStatistics?.length === 1 && D.query?.outStatistics?.[0]?.onStatisticField === S || D.query?.outStatistics === void 0 && (D.y === S || D.x === S))
|
|
836
|
-
), A = S !==
|
|
836
|
+
), A = S !== c ? S : y.id, C = h?.id ?? A, T = h?.name ?? k(o, S) ?? C, b = h ?? y, v = {
|
|
837
837
|
...b,
|
|
838
838
|
id: C,
|
|
839
839
|
name: T
|
|
840
840
|
};
|
|
841
841
|
let E = S;
|
|
842
|
-
v.query !== void 0 && (
|
|
842
|
+
v.query !== void 0 && (r !== I.NoAggregation ? (E = v.type === x.HeatSeries && h?.type === x.HeatSeries ? S : F, v.query.outStatistics = [
|
|
843
843
|
{
|
|
844
844
|
...b.query?.outStatistics?.[0] ?? {},
|
|
845
845
|
onStatisticField: S,
|
|
846
846
|
outStatisticFieldName: F,
|
|
847
|
-
statisticType:
|
|
847
|
+
statisticType: r
|
|
848
848
|
}
|
|
849
|
-
]) : delete v.query.outStatistics), v.y = E,
|
|
849
|
+
]) : delete v.query.outStatistics), v.y = E, l.push(v);
|
|
850
850
|
}
|
|
851
|
-
const
|
|
851
|
+
const m = l.filter((d) => Y(d)), f = l.filter(
|
|
852
852
|
(d) => O(d) || V(d)
|
|
853
853
|
), p = s.series.filter((d) => Y(d)), u = s.series.filter(
|
|
854
854
|
(d) => O(d) || V(d)
|
|
855
855
|
);
|
|
856
|
-
return p.length === 1 &&
|
|
856
|
+
return p.length === 1 && m.length === 1 && Y(p[0]) && Y(m[0]) && (m[0].fillSymbol = p[0].fillSymbol), u.length === 1 && f.length === 1 && ((O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && Xe(f[0], u[0]), (O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && (f[0].lineSymbol = u[0].lineSymbol, f[0].markerSymbol = u[0].markerSymbol)), l;
|
|
857
857
|
}
|
|
858
858
|
function Vs(i) {
|
|
859
|
-
const { aggregationType: e, config: t, layerInfo:
|
|
859
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: s } = i, { layerFieldsInfo: a, layer: n } = r, o = P(t), c = W(t), l = K(t), m = oe(t), f = le(t, r, s), p = He(t, r, s);
|
|
860
860
|
if (t.series.forEach((u, d) => {
|
|
861
861
|
const y = ae({
|
|
862
862
|
config: t,
|
|
863
863
|
xAxisField: o,
|
|
864
|
-
numericFields:
|
|
864
|
+
numericFields: c,
|
|
865
865
|
aggregationType: e,
|
|
866
|
-
splitByField:
|
|
866
|
+
splitByField: l,
|
|
867
867
|
layer: n,
|
|
868
868
|
seriesIndex: d,
|
|
869
869
|
numericFieldIndex: d,
|
|
870
|
-
fieldList:
|
|
870
|
+
fieldList: a
|
|
871
871
|
}).name;
|
|
872
872
|
u.y = y;
|
|
873
|
-
const
|
|
874
|
-
splitByField:
|
|
875
|
-
numericFields:
|
|
873
|
+
const g = Me({
|
|
874
|
+
splitByField: l,
|
|
875
|
+
numericFields: c,
|
|
876
876
|
layer: n,
|
|
877
877
|
seriesIndex: d
|
|
878
|
-
}), F = u.query?.outStatistics?.[0]?.onStatisticField ??
|
|
878
|
+
}), F = u.query?.outStatistics?.[0]?.onStatisticField ?? g;
|
|
879
879
|
u.query = {
|
|
880
880
|
...u.query,
|
|
881
881
|
outStatistics: e === I.NoAggregation ? void 0 : [
|
|
@@ -887,41 +887,41 @@ function Vs(i) {
|
|
|
887
887
|
}
|
|
888
888
|
]
|
|
889
889
|
}, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? H.Interpolate : H.Null), e === I.NoAggregation && Ht(t);
|
|
890
|
-
}), f && t.title && (t.title.content.text = Z(t,
|
|
890
|
+
}), f && t.title && (t.title.content.text = Z(t, r, s)), p && t.series[0].type !== x.HeatSeries) {
|
|
891
891
|
const u = pe({
|
|
892
892
|
config: t,
|
|
893
|
-
layerInfo:
|
|
893
|
+
layerInfo: r,
|
|
894
894
|
commonStrings: s,
|
|
895
|
-
numericFields:
|
|
895
|
+
numericFields: c,
|
|
896
896
|
aggregationType: e
|
|
897
897
|
});
|
|
898
898
|
$(t, 1, u);
|
|
899
899
|
}
|
|
900
|
-
|
|
900
|
+
m !== e && Ye(t);
|
|
901
901
|
}
|
|
902
902
|
function gi(i) {
|
|
903
903
|
const {
|
|
904
904
|
splitByField: e,
|
|
905
905
|
xAxisField: t,
|
|
906
|
-
numericFields:
|
|
906
|
+
numericFields: r,
|
|
907
907
|
aggregationType: s,
|
|
908
|
-
config:
|
|
908
|
+
config: a,
|
|
909
909
|
layerInfo: n,
|
|
910
910
|
commonStrings: o,
|
|
911
|
-
splitByFieldInfos:
|
|
912
|
-
} = i, { layer:
|
|
911
|
+
splitByFieldInfos: c
|
|
912
|
+
} = i, { layer: l, layerFieldsInfo: m } = n, { categoriesArray: f, splitByFieldType: p } = c, u = Me({
|
|
913
913
|
splitByField: e,
|
|
914
|
-
numericFields:
|
|
915
|
-
layer:
|
|
914
|
+
numericFields: r,
|
|
915
|
+
layer: l,
|
|
916
916
|
seriesIndex: 0
|
|
917
917
|
});
|
|
918
918
|
let d = [];
|
|
919
919
|
if (f.length === 0) {
|
|
920
920
|
d = $e({
|
|
921
921
|
xAxisField: t,
|
|
922
|
-
numericFields:
|
|
922
|
+
numericFields: r,
|
|
923
923
|
aggregationType: s,
|
|
924
|
-
config:
|
|
924
|
+
config: a,
|
|
925
925
|
layerInfo: n,
|
|
926
926
|
commonStrings: o
|
|
927
927
|
});
|
|
@@ -929,17 +929,17 @@ function gi(i) {
|
|
|
929
929
|
y.query && (y.query.where = `${e}=''`);
|
|
930
930
|
} else
|
|
931
931
|
for (let y = 0; y < f.length; y += 1) {
|
|
932
|
-
const
|
|
933
|
-
config:
|
|
932
|
+
const g = f[y], F = ae({
|
|
933
|
+
config: a,
|
|
934
934
|
xAxisField: t,
|
|
935
|
-
numericFields:
|
|
935
|
+
numericFields: r,
|
|
936
936
|
aggregationType: s,
|
|
937
937
|
layer: n.layer,
|
|
938
938
|
seriesIndex: y,
|
|
939
939
|
splitByField: e,
|
|
940
|
-
fieldList:
|
|
940
|
+
fieldList: m
|
|
941
941
|
}).name, S = ne({
|
|
942
|
-
config:
|
|
942
|
+
config: a,
|
|
943
943
|
xAxisField: t,
|
|
944
944
|
aggregationType: s,
|
|
945
945
|
layerInfo: n,
|
|
@@ -948,8 +948,8 @@ function gi(i) {
|
|
|
948
948
|
}), h = Oe({
|
|
949
949
|
queryObject: n.layer,
|
|
950
950
|
fieldName: e,
|
|
951
|
-
fieldValue:
|
|
952
|
-
}), A = `${
|
|
951
|
+
fieldValue: g ?? ""
|
|
952
|
+
}), A = `${g}`, C = a.series.find(
|
|
953
953
|
(D) => String(Ee(D)).trim().replace(/'/gu, "") === A
|
|
954
954
|
), T = C?.id ?? A, b = C?.name ?? h ?? T, v = C ?? S, E = {
|
|
955
955
|
...v,
|
|
@@ -958,7 +958,7 @@ function gi(i) {
|
|
|
958
958
|
y: F,
|
|
959
959
|
query: {
|
|
960
960
|
...v.query,
|
|
961
|
-
where: `${e}=${p === Re.String &&
|
|
961
|
+
where: `${e}=${p === Re.String && g !== null ? `'${g}'` : g}`,
|
|
962
962
|
outStatistics: s !== I.NoAggregation ? [
|
|
963
963
|
{
|
|
964
964
|
...v.query?.outStatistics?.[0] ?? {},
|
|
@@ -977,66 +977,66 @@ const qs = (i) => {
|
|
|
977
977
|
const {
|
|
978
978
|
xAxisFieldName: e,
|
|
979
979
|
splitByField: t,
|
|
980
|
-
numericFields:
|
|
980
|
+
numericFields: r,
|
|
981
981
|
aggregationType: s,
|
|
982
|
-
config:
|
|
982
|
+
config: a,
|
|
983
983
|
layerInfo: n,
|
|
984
984
|
commonStrings: o,
|
|
985
|
-
splitByFieldInfos:
|
|
986
|
-
} = i, { layerFieldsInfo:
|
|
987
|
-
let T = qe(
|
|
988
|
-
const b =
|
|
989
|
-
if (_(S) ? T = ye() : !Q(y) && Q(S) ? T = J() : !q(y) && q(S) ? T = J() : q(y) && !q(S) && (b ? T = ye() : T = qt()), T !== void 0 && xt(
|
|
990
|
-
ne({ config:
|
|
991
|
-
]),
|
|
985
|
+
splitByFieldInfos: c
|
|
986
|
+
} = i, { layerFieldsInfo: l } = n ?? {}, m = te(a), f = Et(a), p = P(m), u = K(m), d = oe(m), y = l.find((B) => B.name === p), g = a.series[0]?.query === void 0, F = W(m), S = l.find((B) => B.name === e), h = le(m, n, o), A = He(m, n, o), C = pi({ config: m, layerInfo: n, commonStrings: o });
|
|
987
|
+
let T = qe(a);
|
|
988
|
+
const b = m.series.some((B) => Y(B)), v = ht(m.series), E = Tt(m.series), D = q(y) || q(S);
|
|
989
|
+
if (_(S) ? T = ye() : !Q(y) && Q(S) ? T = J() : !q(y) && q(S) ? T = J() : q(y) && !q(S) && (b ? T = ye() : T = qt()), T !== void 0 && xt(a, o, T), f === 0 && (a.series = [
|
|
990
|
+
ne({ config: a, xAxisField: e, aggregationType: s, layerInfo: n, commonStrings: o })
|
|
991
|
+
]), a.series.forEach((B) => {
|
|
992
992
|
B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
|
|
993
|
-
}), t === "" ||
|
|
993
|
+
}), t === "" || r.length > 1 ? fe({
|
|
994
994
|
fieldName: e,
|
|
995
|
-
numericFields:
|
|
996
|
-
fieldList:
|
|
997
|
-
}) ?
|
|
998
|
-
config:
|
|
995
|
+
numericFields: r,
|
|
996
|
+
fieldList: l
|
|
997
|
+
}) ? a.series = mi({
|
|
998
|
+
config: a,
|
|
999
999
|
layerInfo: n,
|
|
1000
1000
|
xAxisField: e,
|
|
1001
|
-
numericFields:
|
|
1001
|
+
numericFields: r,
|
|
1002
1002
|
aggregationType: s,
|
|
1003
1003
|
commonStrings: o
|
|
1004
|
-
}) :
|
|
1005
|
-
config:
|
|
1004
|
+
}) : a.series = $e({
|
|
1005
|
+
config: a,
|
|
1006
1006
|
layerInfo: n,
|
|
1007
1007
|
xAxisField: e,
|
|
1008
|
-
numericFields:
|
|
1008
|
+
numericFields: r,
|
|
1009
1009
|
aggregationType: s,
|
|
1010
1010
|
commonStrings: o
|
|
1011
|
-
}) :
|
|
1012
|
-
config:
|
|
1011
|
+
}) : c && (a.series = gi({
|
|
1012
|
+
config: a,
|
|
1013
1013
|
layerInfo: n,
|
|
1014
1014
|
splitByField: t,
|
|
1015
1015
|
xAxisField: e,
|
|
1016
|
-
numericFields:
|
|
1016
|
+
numericFields: r,
|
|
1017
1017
|
aggregationType: s,
|
|
1018
1018
|
commonStrings: o,
|
|
1019
|
-
splitByFieldInfos:
|
|
1020
|
-
})), C && e !== U &&
|
|
1021
|
-
const B = k(
|
|
1022
|
-
$(
|
|
1019
|
+
splitByFieldInfos: c
|
|
1020
|
+
})), C && e !== U && a.series[0].type !== x.HeatSeries) {
|
|
1021
|
+
const B = k(l, e);
|
|
1022
|
+
$(a, 0, B);
|
|
1023
1023
|
}
|
|
1024
|
-
if (A &&
|
|
1024
|
+
if (A && a.series[0].type !== x.HeatSeries) {
|
|
1025
1025
|
const B = pe({
|
|
1026
|
-
config:
|
|
1026
|
+
config: a,
|
|
1027
1027
|
layerInfo: n,
|
|
1028
1028
|
commonStrings: o,
|
|
1029
|
-
numericFields:
|
|
1029
|
+
numericFields: r,
|
|
1030
1030
|
aggregationType: s
|
|
1031
1031
|
});
|
|
1032
|
-
$(
|
|
1032
|
+
$(a, 1, B);
|
|
1033
1033
|
}
|
|
1034
|
-
if (h &&
|
|
1034
|
+
if (h && a.title && (a.title.content.text = Z(a, n, o)), p === e && u === t && d === s && je(F, r) || Ye(a), yi({ numericFields: r, aggregationType: s, config: a, layerInfo: n }), (v || E) && (z({ config: a, value: null, axisIndex: 0, isMax: !1 }), z({ config: a, value: null, axisIndex: 0, isMax: !0 }), D && s !== I.NoAggregation && !X(m))) {
|
|
1035
1035
|
const B = q(S) ? H.Null : H.Interpolate;
|
|
1036
|
-
Xt(B,
|
|
1036
|
+
Xt(B, a);
|
|
1037
1037
|
}
|
|
1038
|
-
X(
|
|
1039
|
-
|
|
1038
|
+
X(a) && Pe({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((B) => {
|
|
1039
|
+
g && delete B.query, p !== e && L(B) && (S?.type === Re.TimeOnly ? B.binTemporalData = !1 : B.binTemporalData = B.type === x.LineSeries && q(S));
|
|
1040
1040
|
});
|
|
1041
1041
|
}, Xe = (i, e) => {
|
|
1042
1042
|
i.markerVisible = e.markerVisible, i.lineSmoothed = e.lineSmoothed, i.showArea = e.showArea, i.areaColor = e.areaColor, i.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (i.lineSymbol = { ...e.lineSymbol, color: i.lineSymbol?.color }), e.markerSymbol && (i.markerSymbol = {
|
|
@@ -1044,22 +1044,22 @@ const qs = (i) => {
|
|
|
1044
1044
|
color: i.markerSymbol?.color
|
|
1045
1045
|
});
|
|
1046
1046
|
}, Rs = (i) => {
|
|
1047
|
-
const { config: e, seriesIndex: t, layerInfo:
|
|
1047
|
+
const { config: e, seriesIndex: t, layerInfo: r, commonStrings: s } = i, a = e.series?.[t], n = K(e);
|
|
1048
1048
|
let o;
|
|
1049
1049
|
if (ie(e.series) === w.BarAndLineFromFields)
|
|
1050
1050
|
o = s.axisLabels.values;
|
|
1051
1051
|
else if (Ue(n)) {
|
|
1052
|
-
const
|
|
1053
|
-
|
|
1052
|
+
const l = a.query?.outStatistics?.[0]?.onStatisticField;
|
|
1053
|
+
l !== void 0 && l !== j(r.layer).idField && (o = k(r.layerFieldsInfo, l));
|
|
1054
1054
|
} else {
|
|
1055
|
-
const
|
|
1055
|
+
const l = String(Ee(a)).trim().replace(/'/gu, "");
|
|
1056
1056
|
o = Oe({
|
|
1057
|
-
queryObject:
|
|
1057
|
+
queryObject: r.layer,
|
|
1058
1058
|
fieldName: n,
|
|
1059
|
-
fieldValue:
|
|
1060
|
-
}) ??
|
|
1059
|
+
fieldValue: l ?? ""
|
|
1060
|
+
}) ?? l;
|
|
1061
1061
|
}
|
|
1062
|
-
return o ??
|
|
1062
|
+
return o ?? a.id;
|
|
1063
1063
|
}, ks = (i, e) => {
|
|
1064
1064
|
if (X(e))
|
|
1065
1065
|
ni(i, e);
|
|
@@ -1072,32 +1072,33 @@ const qs = (i) => {
|
|
|
1072
1072
|
});
|
|
1073
1073
|
}
|
|
1074
1074
|
}, ws = async (i) => {
|
|
1075
|
-
const { config: e, layerInfo: t, errorStrings:
|
|
1075
|
+
const { config: e, layerInfo: t, num: r, errorStrings: s } = i, a = P(e), n = qe(e)?.type, o = W(e), c = ie(e.series);
|
|
1076
1076
|
let l = [];
|
|
1077
|
-
return
|
|
1077
|
+
return n === x.CategoryAxisFormat && (c === w.BarAndLineFromFields || a === U ? l = o.map((m) => k(t?.layerFieldsInfo, m)) : a.trim() !== "" && a !== U && t !== void 0 && (l = await Ft({
|
|
1078
1078
|
layerInfo: t,
|
|
1079
1079
|
config: e,
|
|
1080
|
-
category:
|
|
1081
|
-
|
|
1080
|
+
category: a,
|
|
1081
|
+
num: r,
|
|
1082
|
+
errorStrings: s
|
|
1082
1083
|
}))), l;
|
|
1083
1084
|
};
|
|
1084
1085
|
function le(i, e, t) {
|
|
1085
|
-
const
|
|
1086
|
-
return
|
|
1086
|
+
const r = Z(i, e, t), s = Mt(i), a = re(i);
|
|
1087
|
+
return r === s || a;
|
|
1087
1088
|
}
|
|
1088
1089
|
function He(i, e, t) {
|
|
1089
|
-
const
|
|
1090
|
+
const r = pe({
|
|
1090
1091
|
config: i,
|
|
1091
1092
|
layerInfo: e,
|
|
1092
1093
|
commonStrings: t,
|
|
1093
1094
|
numericFields: W(i),
|
|
1094
1095
|
aggregationType: oe(i)
|
|
1095
|
-
}), s = se(1, i),
|
|
1096
|
-
return
|
|
1096
|
+
}), s = se(1, i), a = re(i);
|
|
1097
|
+
return r === s || a;
|
|
1097
1098
|
}
|
|
1098
1099
|
function pi(i) {
|
|
1099
|
-
const { config: e, layerInfo: t, commonStrings:
|
|
1100
|
-
return s ===
|
|
1100
|
+
const { config: e, layerInfo: t, commonStrings: r } = i, s = k(t.layerFieldsInfo, P(e)), a = se(0, e), n = re(e), o = P(e) === U && (a === "" || a === r.xAxis);
|
|
1101
|
+
return s === a || n || o;
|
|
1101
1102
|
}
|
|
1102
1103
|
function Ps(i) {
|
|
1103
1104
|
return L(i.series[0]) ? i.series[0].binTemporalData ?? !0 : !1;
|