@arcgis/charts-components 5.2.0-next.30 → 5.2.0-next.32
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/{3QO6REDF.js → 25W6T5FX.js} +8 -8
- package/dist/cdn/{JBR6IJMK.js → 2HG3BPPY.js} +1 -1
- package/dist/cdn/2Y7PYCI7.js +2 -0
- package/dist/cdn/{HIW5WRHR.js → 46DNECVM.js} +1 -1
- package/dist/cdn/{HBS6O3P3.js → 4LKQOIJR.js} +1 -1
- package/dist/cdn/{X7Z4LEZH.js → 4N7Q4USI.js} +1 -1
- package/dist/cdn/{6ANVHVX4.js → 4T3YFJA6.js} +1 -1
- package/dist/cdn/{BI54CNMR.js → 4WISIBCY.js} +1 -1
- package/dist/cdn/{6CB5R4QQ.js → 4XYMN2CV.js} +1 -1
- package/dist/cdn/{AZR6HVRW.js → 575YVIX7.js} +1 -1
- package/dist/cdn/{7VQXBQMZ.js → 5Y5QG6LJ.js} +1 -1
- package/dist/cdn/{YQIFZJTZ.js → 6GQLATNT.js} +1 -1
- package/dist/cdn/{XRLVJJBT.js → 6LH7Y7PU.js} +1 -1
- package/dist/cdn/{6VK54DG5.js → 7HSE4SIZ.js} +1 -1
- package/dist/cdn/{C4TQOUPO.js → 7ISSUJ2D.js} +1 -1
- package/dist/cdn/7NHOA7QL.js +3 -0
- package/dist/cdn/{SSKHF7PO.js → AGY2UGFW.js} +1 -1
- package/dist/cdn/{IWMWJN7M.js → B7TOZQEW.js} +1 -1
- package/dist/cdn/{X7YEBHBF.js → BECNHOTD.js} +1 -1
- package/dist/cdn/{T5TFLMQL.js → BNNTNT7S.js} +1 -1
- package/dist/cdn/{REZ2QR42.js → BXCX7QFT.js} +1 -1
- package/dist/cdn/{BZFGE4LO.js → BXYUDSWF.js} +1 -1
- package/dist/cdn/{PEYVSFSE.js → CXMIIYBK.js} +36 -36
- package/dist/cdn/{4BEGCEGA.js → D7N4VK2S.js} +3 -3
- package/dist/cdn/{KFPJI52X.js → DTG42E2P.js} +1 -1
- package/dist/cdn/{K27GKXGP.js → DWIKPTKJ.js} +1 -1
- package/dist/cdn/{QV3NMKKZ.js → EAJBDT2X.js} +1 -1
- package/dist/cdn/{Q2GW5LB7.js → ESUNC3JW.js} +1 -1
- package/dist/cdn/{2SPGX6AF.js → EXJWV5I4.js} +1 -1
- package/dist/cdn/{YFHB2EFH.js → G5KG5GU4.js} +1 -1
- package/dist/cdn/{VY3KBD6N.js → G6EAXNDR.js} +1 -1
- package/dist/cdn/{YWKPGNHB.js → GRPZ65P4.js} +1 -1
- package/dist/cdn/{BKU72IQC.js → GXXY6NI7.js} +1 -1
- package/dist/cdn/{G5EGTXMY.js → HWYXGOUR.js} +1 -1
- package/dist/cdn/{AICTKGE3.js → IAVYR2KG.js} +1 -1
- package/dist/cdn/{4P7URPRQ.js → IDDJVOHS.js} +1 -1
- package/dist/cdn/IFYT2GHB.js +2 -0
- package/dist/cdn/{TSA7UMSZ.js → ILZCAXS5.js} +1 -1
- package/dist/cdn/{Y3CXVO2M.js → J2YNPNIL.js} +1 -1
- package/dist/cdn/JAN3QW7E.js +2 -0
- package/dist/cdn/{5UO6L27Q.js → JOJIT55L.js} +1 -1
- package/dist/cdn/{LFXRCL7K.js → JXPTGJSF.js} +1 -1
- package/dist/cdn/{3NKDMMC2.js → K2V7HVU3.js} +1 -1
- package/dist/cdn/{5XCU5SR2.js → K3FOMGX7.js} +1 -1
- package/dist/cdn/{WHVW3P3O.js → K6PPZIL5.js} +1 -1
- package/dist/cdn/{THTYR6IL.js → KHT4LCWN.js} +1 -1
- package/dist/cdn/{CLN32L2L.js → KU55QTV5.js} +1 -1
- package/dist/cdn/{CRCAJAFA.js → KZ2OB6RV.js} +1 -1
- package/dist/cdn/{3YN4EKSJ.js → L2OJXJD4.js} +1 -1
- package/dist/cdn/{3UTF2CB3.js → L5CT3KCS.js} +1 -1
- package/dist/cdn/{6GV2QPKV.js → LAPPRAQF.js} +1 -1
- package/dist/cdn/{MVUIKY5Y.js → LHLM6RMX.js} +1 -1
- package/dist/cdn/{KQLAAGKI.js → LKEHGBEV.js} +1 -1
- package/dist/cdn/{ADYDCO3M.js → LKLFDY3E.js} +1 -1
- package/dist/cdn/{PAIRUVLU.js → LLUS6VGO.js} +1 -1
- package/dist/cdn/{TCS4HOSG.js → LLYDWCNL.js} +1 -1
- package/dist/cdn/{DAF2U7TN.js → LQQJXKY7.js} +1 -1
- package/dist/cdn/{3TBK72EK.js → LV3T5QZF.js} +1 -1
- package/dist/cdn/{O5NKLK7V.js → MA2J6LRE.js} +1 -1
- package/dist/cdn/{BQXXD2HU.js → MTYZHHDS.js} +1 -1
- package/dist/cdn/{MBPFBE3E.js → N72PRHWL.js} +1 -1
- package/dist/cdn/{Y7HBWU3M.js → NKUXUCUP.js} +1 -1
- package/dist/cdn/{6XIDALQU.js → NX4OLIXG.js} +1 -1
- package/dist/cdn/{M7QZTQSD.js → OCRAZDQR.js} +1 -1
- package/dist/cdn/OEBQA6SR.js +2 -0
- package/dist/cdn/{XRP6IFM4.js → OKPUFIIU.js} +1 -1
- package/dist/cdn/{DRFJC64L.js → P2KW76YO.js} +1 -1
- package/dist/cdn/{YWCIV7ZZ.js → PCBE7IEQ.js} +1 -1
- package/dist/cdn/{M4ZJRIYM.js → PRGGOOYS.js} +1 -1
- package/dist/cdn/{N673JFHK.js → PXGQGJAV.js} +1 -1
- package/dist/cdn/{6OCDFMFB.js → Q7XQPRE5.js} +1 -1
- package/dist/cdn/{SOGVYNPI.js → QGLWN3TS.js} +1 -1
- package/dist/cdn/{2ODYZG66.js → QH2YJ3TT.js} +1 -1
- package/dist/cdn/{Y6CFEFZM.js → RA7EKGRW.js} +1 -1
- package/dist/cdn/{WU62O2AU.js → RJFIQORK.js} +1 -1
- package/dist/cdn/{MEA74C44.js → RVFD5Z7L.js} +1 -1
- package/dist/cdn/{WJHIJTWS.js → SWJIRHQQ.js} +1 -1
- package/dist/cdn/{3SBYV6BW.js → TYDIOOT2.js} +1 -1
- package/dist/cdn/{4TRUG37X.js → U53OVQF2.js} +1 -1
- package/dist/cdn/{RKG6CXUU.js → WNH47TQQ.js} +1 -1
- package/dist/cdn/{Z43DVT6G.js → WPHYJV72.js} +1 -1
- package/dist/cdn/{GCRQHIGQ.js → WSSYOOMW.js} +1 -1
- package/dist/cdn/{35NSJ3NJ.js → WYU56MVP.js} +1 -1
- package/dist/cdn/{TOFVWGTG.js → XQ2CVQJW.js} +1 -1
- package/dist/cdn/{7Z7NOIH2.js → XRTGYEKU.js} +1 -1
- package/dist/cdn/{IPALCXFF.js → YHFANXPC.js} +1 -1
- package/dist/cdn/{PKQOLKTW.js → YTV5MFKS.js} +1 -1
- package/dist/cdn/{ZW4PF3UK.js → Z2NN43OK.js} +1 -1
- package/dist/cdn/{QGEFY4ND.js → Z2YPKIRL.js} +1 -1
- package/dist/cdn/{NKVZYKL5.js → ZK3QFPDP.js} +1 -1
- package/dist/cdn/{JIV6BQKG.js → ZKZGO5WD.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +39 -36
- package/dist/chunks/box-plot-data.js +36 -36
- package/dist/chunks/box-plot-model.js +5 -5
- package/dist/chunks/chart-model.js +38 -38
- package/dist/chunks/class-breaks.js +7 -7
- package/dist/chunks/combo-bar-line-chart-model.js +27 -27
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +22 -22
- package/dist/chunks/data.js +18 -18
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/generate-x-axis-title.js +9 -9
- package/dist/chunks/heat-chart-model.js +5 -5
- package/dist/chunks/histogram-data.js +15 -15
- package/dist/chunks/histogram-model.js +4 -4
- package/dist/chunks/index.js +84 -83
- package/dist/chunks/index2.js +989 -973
- package/dist/chunks/index3.js +13 -13
- package/dist/chunks/index4.js +149 -49
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/model-with-y-guides.js +6 -6
- package/dist/chunks/negative-values-stacked-to-baseline.js +3 -3
- package/dist/chunks/pie-chart-data.js +16 -16
- package/dist/chunks/pie-chart-model.js +20 -20
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rounded-corners.js +73 -0
- package/dist/chunks/scatterplot-model.js +3 -3
- package/dist/chunks/serial-chart-data.js +73 -73
- package/dist/chunks/serial-chart-model.js +13 -13
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards2.js +24 -20
- package/dist/chunks/utils.js +14 -14
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +41 -41
- package/dist/chunks/x-bounds.js +16 -16
- package/dist/components/arcgis-chart/customElement.js +6354 -6174
- 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-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +16 -16
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- 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-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +446 -444
- package/dist/json-schema/index.d.ts +92 -2
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +3 -2
- package/dist/model/properties/rounded-corners.d.ts +18 -0
- package/dist/model/shared/type-guards.d.ts +7 -0
- package/dist/spec/web-chart.d.ts +8 -0
- package/dist/utils/chart-config/converter/index.js +15 -15
- package/dist/utils/defaults/index.d.ts +4 -1
- package/package.json +3 -3
- package/dist/cdn/BJBNELDD.js +0 -3
- package/dist/cdn/SAYLTYWY.js +0 -2
- package/dist/cdn/U3MRRFML.js +0 -2
- package/dist/cdn/VWTJHXHI.js +0 -2
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/chunks/bar-chart-series.js +0 -15
package/dist/chunks/utils.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as b } from "@arcgis/core/intl.js";
|
|
3
|
-
import {
|
|
4
|
-
import { g as
|
|
5
|
-
import { l as
|
|
3
|
+
import { u as j, F as q, J as w, T as k, D as M, v as $ } from "./index.js";
|
|
4
|
+
import { g as W } from "./series-types.js";
|
|
5
|
+
import { l as E, d as S, q as U, D as H } from "./index3.js";
|
|
6
6
|
import { an as I, ag as K, h as O, c0 as L, a6 as h, b$ as V, aH as P } from "./index2.js";
|
|
7
7
|
import { k as X } from "./index5.js";
|
|
8
8
|
import { q as R, u as f, r as A, p as G } from "./chart-object-literals.js";
|
|
@@ -19,7 +19,7 @@ function re(s) {
|
|
|
19
19
|
const { config: e, layerInfo: i, commonStrings: t, numericFields: a, aggregationType: r } = s;
|
|
20
20
|
let o = "";
|
|
21
21
|
if (e)
|
|
22
|
-
if (
|
|
22
|
+
if (E(e) === R.Stacked100)
|
|
23
23
|
o = t.utilsStrings.statistics.percent;
|
|
24
24
|
else {
|
|
25
25
|
const d = j(r, t);
|
|
@@ -37,7 +37,7 @@ function re(s) {
|
|
|
37
37
|
}
|
|
38
38
|
return o;
|
|
39
39
|
}
|
|
40
|
-
const B = (s, e, i) => s.axes?.[e] ?? $(i, s.type)[e],
|
|
40
|
+
const B = (s, e, i) => s.axes?.[e] ?? $(i, s.type)[e], D = (s) => {
|
|
41
41
|
const { config: e, axis: i, axisIndex: t } = s;
|
|
42
42
|
e.axes !== void 0 && (e.axes[t] = i);
|
|
43
43
|
}, oe = (s) => {
|
|
@@ -54,21 +54,21 @@ const B = (s, e, i) => s.axes?.[e] ?? $(i, s.type)[e], C = (s) => {
|
|
|
54
54
|
...t,
|
|
55
55
|
valueFormat: i
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
D({ config: s, axis: a, axisIndex: 0 });
|
|
58
58
|
}
|
|
59
59
|
}, ce = (s, e, i) => {
|
|
60
60
|
const t = s.axes?.[e];
|
|
61
61
|
t !== void 0 && (t.integerOnlyValues = i);
|
|
62
|
-
},
|
|
63
|
-
const e =
|
|
62
|
+
}, J = (s) => {
|
|
63
|
+
const e = W(s.series);
|
|
64
64
|
return e === f.BarSeries || e === f.ComboLineAndBarSeries || e === f.LineSeries;
|
|
65
|
-
},
|
|
65
|
+
}, Q = (s) => {
|
|
66
66
|
const { axisIndex: e, config: i, isMultiAxis: t } = s;
|
|
67
67
|
let a = !1;
|
|
68
|
-
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a =
|
|
68
|
+
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a = J(i)), a;
|
|
69
69
|
}, ue = (s) => {
|
|
70
70
|
const { axisIndex: e, func: i, config: t } = s;
|
|
71
|
-
return
|
|
71
|
+
return Q({ axisIndex: e, config: t, isMultiAxis: !0 }) ? i(e) : void 0;
|
|
72
72
|
}, v = (s, e) => {
|
|
73
73
|
let i;
|
|
74
74
|
const t = e.axes?.[s]?.valueFormat;
|
|
@@ -80,7 +80,7 @@ const B = (s, e, i) => s.axes?.[e] ?? $(i, s.type)[e], C = (s) => {
|
|
|
80
80
|
...r,
|
|
81
81
|
valueFormat: t
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
D({
|
|
84
84
|
config: e,
|
|
85
85
|
axis: o,
|
|
86
86
|
axisIndex: a
|
|
@@ -94,7 +94,7 @@ const B = (s, e, i) => s.axes?.[e] ?? $(i, s.type)[e], C = (s) => {
|
|
|
94
94
|
e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = i);
|
|
95
95
|
};
|
|
96
96
|
async function ye(s) {
|
|
97
|
-
const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u, errorStrings: d } = s, n = r.filter((F) => F.name === a)[0]?.type, x = u !== !0 ? `${a} IS NOT NULL` : "", l = t && u !== !0 ? `${t} IS NOT NULL` : "", { where: m } = e?.dataFilters ?? {},
|
|
97
|
+
const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u, errorStrings: d } = s, n = r.filter((F) => F.name === a)[0]?.type, x = u !== !0 ? `${a} IS NOT NULL` : "", l = t && u !== !0 ? `${t} IS NOT NULL` : "", { where: m } = e?.dataFilters ?? {}, C = {
|
|
98
98
|
where: O([m, x, l]),
|
|
99
99
|
// excluding the null values from the list
|
|
100
100
|
orderByFields: U(a) ? [] : [`${a} ${G.Ascending}`],
|
|
@@ -111,7 +111,7 @@ async function ye(s) {
|
|
|
111
111
|
queryObject: i,
|
|
112
112
|
category: e?.series[0].x ?? "",
|
|
113
113
|
splitByField: a,
|
|
114
|
-
queryConfig:
|
|
114
|
+
queryConfig: C,
|
|
115
115
|
errorStrings: d
|
|
116
116
|
}) : [];
|
|
117
117
|
if (y = y.slice(0, 500), e) {
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { F as x, J as a, T as o } from "./index.js";
|
|
3
3
|
const v = (e, i) => i.axes?.[e]?.labels?.visible ?? !0, f = (e, i, s) => {
|
|
4
4
|
const t = s.axes?.[i];
|
|
5
5
|
t?.labels !== void 0 ? t.labels.visible = e : t !== void 0 && t?.labels === void 0 && (t.labels = x({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as ue, capitalize as
|
|
2
|
+
import { isEqual as ue, capitalize as B, isNumber as W, zip as ae } from "lodash-es";
|
|
3
3
|
import { d as Y } from "./interfaces.js";
|
|
4
|
-
import { g as ce, a as
|
|
4
|
+
import { g as ce, a as H, b as oe, c as _ } from "./box-plot-data.js";
|
|
5
5
|
import { g as fe } from "./histogram-data.js";
|
|
6
6
|
import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
7
7
|
import { g as ie } from "./series-length.js";
|
|
8
8
|
import { g as re, d as le, e as ge } from "./serial-chart-data.js";
|
|
9
9
|
import { g as z, a as pe } from "./data.js";
|
|
10
|
-
import { Y as U, an as be, af as xe, aK as E, cj as Fe, B as V, a6 as De, bb as Se,
|
|
11
|
-
import {
|
|
10
|
+
import { Y as U, an as be, af as xe, aK as E, cj as Fe, B as V, a6 as De, bb as Se, d4 as Be } from "./index2.js";
|
|
11
|
+
import { k as q, aw as $, g as R, aq as ve, b as he, a as Q } from "./index.js";
|
|
12
12
|
import { q as K, C as g, F as A } from "./index3.js";
|
|
13
13
|
import { g as Pe } from "./series-types.js";
|
|
14
14
|
import { V as Ve } from "./index6.js";
|
|
@@ -56,7 +56,7 @@ function G(l) {
|
|
|
56
56
|
label: i.heatChartCalendarDatePartsUnits.dayOfWeek,
|
|
57
57
|
value: Ae({
|
|
58
58
|
weekdayNumber: e,
|
|
59
|
-
firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek :
|
|
59
|
+
firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek : ve,
|
|
60
60
|
locale: t
|
|
61
61
|
})
|
|
62
62
|
};
|
|
@@ -153,11 +153,11 @@ function ct(l, e = {}) {
|
|
|
153
153
|
const f = t ?? Object.keys(l[0]), u = [], p = a ?? we(r ?? "en");
|
|
154
154
|
if (r !== void 0 && p !== "," && (c += `sep=${p}\r
|
|
155
155
|
`), o) {
|
|
156
|
-
const
|
|
157
|
-
u.push(
|
|
156
|
+
const v = f.map((b) => J({ value: b, quoteAll: i, locale: r, roundDecimals: n }));
|
|
157
|
+
u.push(v.join(p));
|
|
158
158
|
}
|
|
159
|
-
l.forEach((
|
|
160
|
-
const b = f.map((x) => J({ value:
|
|
159
|
+
l.forEach((v) => {
|
|
160
|
+
const b = f.map((x) => J({ value: v[x], quoteAll: i, locale: r, roundDecimals: n }));
|
|
161
161
|
u.push(b.join(p));
|
|
162
162
|
}), c += u.join(`\r
|
|
163
163
|
`);
|
|
@@ -269,7 +269,7 @@ function $e(l, e) {
|
|
|
269
269
|
}
|
|
270
270
|
function Ne(l) {
|
|
271
271
|
const { fieldName: e, dataContext: t } = l, a = A.rendererSymbolField;
|
|
272
|
-
return e === a && t !== void 0 ?
|
|
272
|
+
return e === a && t !== void 0 ? Be(t) : void 0;
|
|
273
273
|
}
|
|
274
274
|
function ee(l) {
|
|
275
275
|
const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r, timeZone: n } = l;
|
|
@@ -293,11 +293,11 @@ function Te(l) {
|
|
|
293
293
|
fieldList: o
|
|
294
294
|
});
|
|
295
295
|
return t.map((p) => {
|
|
296
|
-
const
|
|
297
|
-
let m = { label: n.x, value:
|
|
296
|
+
const v = p[q.xField], b = p[q.yField], x = p[q.valueField], D = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
|
|
297
|
+
let m = { label: n.x, value: v }, d = { label: n.y, value: b };
|
|
298
298
|
if (n.xTemporalBinning !== void 0) {
|
|
299
299
|
const { label: F, value: S } = G({
|
|
300
|
-
value: Number(
|
|
300
|
+
value: Number(v),
|
|
301
301
|
config: e,
|
|
302
302
|
formatLocale: i,
|
|
303
303
|
unit: n.xTemporalBinning.unit,
|
|
@@ -323,9 +323,9 @@ function Te(l) {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
function Re(l, e, t) {
|
|
326
|
-
const a = fe(l), o = `${
|
|
326
|
+
const a = fe(l), o = `${B(Y.Min)} of ${a}`, i = `${B(Y.Max)} of ${a}`, r = `${B(Y.Count)} of ${a}`;
|
|
327
327
|
return e.map((n) => {
|
|
328
|
-
const { minValue: s, maxValue: c, count: f } = n, u = W(s), p = W(c),
|
|
328
|
+
const { minValue: s, maxValue: c, count: f } = n, u = W(s), p = W(c), v = W(f), b = {};
|
|
329
329
|
if (u && (b[o] = h({
|
|
330
330
|
value: s,
|
|
331
331
|
originalValue: s,
|
|
@@ -346,7 +346,7 @@ function Re(l, e, t) {
|
|
|
346
346
|
});
|
|
347
347
|
b.Label = `${String(x ?? "")} - ${String(D ?? "")}`;
|
|
348
348
|
}
|
|
349
|
-
return
|
|
349
|
+
return v && (b[r] = f), b;
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
function Ie(l, e, t) {
|
|
@@ -355,7 +355,7 @@ function Ie(l, e, t) {
|
|
|
355
355
|
return t ? o = t.map((i) => a.find((r) => r.toLowerCase().includes(i.toLowerCase())) || "") : o = a.filter((r) => r.toLowerCase().includes(e.toLowerCase())), o.filter((i) => i.trim() !== "");
|
|
356
356
|
}
|
|
357
357
|
function Ke(l) {
|
|
358
|
-
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = pe(e), c = re(e), f =
|
|
358
|
+
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = pe(e), c = re(e), f = B(c), u = le(e), p = U(e.series), v = ie(e), b = ge(e), { idField: x, isTraditionalTypeOID: D } = be(xe(a)), m = D && u.length === 1 && u[0] === x;
|
|
359
359
|
let d;
|
|
360
360
|
switch (p) {
|
|
361
361
|
case g.BarAndLineNoAggregation:
|
|
@@ -434,7 +434,7 @@ function Ke(l) {
|
|
|
434
434
|
useRendererLabel: r,
|
|
435
435
|
timeZone: n
|
|
436
436
|
});
|
|
437
|
-
return
|
|
437
|
+
return v.map((P, C) => {
|
|
438
438
|
const w = ee({
|
|
439
439
|
config: e,
|
|
440
440
|
splitByField: b,
|
|
@@ -462,7 +462,7 @@ function Ke(l) {
|
|
|
462
462
|
formatter: i?.xAxisLabelFormatter,
|
|
463
463
|
useRendererLabel: r,
|
|
464
464
|
timeZone: n
|
|
465
|
-
}), S = Ie(y, u[0],
|
|
465
|
+
}), S = Ie(y, u[0], v), P = y[b], C = v.findIndex((I) => $e(I, P)), w = ee({
|
|
466
466
|
config: e,
|
|
467
467
|
splitByField: b,
|
|
468
468
|
splitByValue: P,
|
|
@@ -504,11 +504,11 @@ function je(l) {
|
|
|
504
504
|
function Ee(l) {
|
|
505
505
|
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = me(e), c = U(e.series);
|
|
506
506
|
let f = je(t);
|
|
507
|
-
const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields,
|
|
507
|
+
const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields, v = ye(e, p), b = z({
|
|
508
508
|
config: e,
|
|
509
509
|
xAxisField: s,
|
|
510
510
|
numericFields: u,
|
|
511
|
-
aggregationType:
|
|
511
|
+
aggregationType: v,
|
|
512
512
|
mode: p,
|
|
513
513
|
layer: a,
|
|
514
514
|
fieldList: o
|
|
@@ -527,7 +527,7 @@ function Ee(l) {
|
|
|
527
527
|
return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] = h({
|
|
528
528
|
value: D[F],
|
|
529
529
|
originalValue: D[F]
|
|
530
|
-
}), d[
|
|
530
|
+
}), d[B($.trim())] = h({
|
|
531
531
|
value: D[`${F}${$}`],
|
|
532
532
|
originalValue: D[`${F}${$}`]
|
|
533
533
|
}), d;
|
|
@@ -540,7 +540,7 @@ function Ee(l) {
|
|
|
540
540
|
}), d.Value = h({
|
|
541
541
|
value: m[x],
|
|
542
542
|
originalValue: m[x]
|
|
543
|
-
}), d[
|
|
543
|
+
}), d[B($.trim())] = h({
|
|
544
544
|
value: m[`${x}${$}`],
|
|
545
545
|
originalValue: m[`${x}${$}`]
|
|
546
546
|
})), d;
|
|
@@ -558,7 +558,7 @@ function j(l) {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function T(l) {
|
|
561
|
-
const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r, timeZone: n } = l, s =
|
|
561
|
+
const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r, timeZone: n } = l, s = H(a), c = oe(a), f = _(a);
|
|
562
562
|
let u = V.Outlier;
|
|
563
563
|
const p = R;
|
|
564
564
|
switch (o) {
|
|
@@ -569,13 +569,13 @@ function T(l) {
|
|
|
569
569
|
fieldList: r,
|
|
570
570
|
timeZone: n
|
|
571
571
|
});
|
|
572
|
-
t[s] = x, t[
|
|
572
|
+
t[s] = x, t[B(V.Outlier)] = e[u];
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
case g.BoxPlotMultiFieldsAndCategory: {
|
|
576
|
-
t[
|
|
576
|
+
t[B(s)] = e[s], u = `${c.find(
|
|
577
577
|
(D) => Object.keys(e).some((m) => m.toLowerCase().includes(D.toLowerCase()))
|
|
578
|
-
) ?? ""}_${u}`, t[
|
|
578
|
+
) ?? ""}_${u}`, t[B(V.Outlier)] = e[u];
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
581
|
case g.BoxPlotMonoFieldAndSplitBy:
|
|
@@ -587,7 +587,7 @@ function T(l) {
|
|
|
587
587
|
fieldList: r,
|
|
588
588
|
timeZone: n
|
|
589
589
|
});
|
|
590
|
-
u = `${x}_${u}`, t.Field = e[p], t[
|
|
590
|
+
u = `${x}_${u}`, t.Field = e[p], t[B(f)] = D, t[B(V.Outlier)] = e[u];
|
|
591
591
|
break;
|
|
592
592
|
}
|
|
593
593
|
case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
@@ -598,25 +598,25 @@ function T(l) {
|
|
|
598
598
|
fieldList: r,
|
|
599
599
|
timeZone: n
|
|
600
600
|
});
|
|
601
|
-
u = `${x}_${u}`, t[
|
|
601
|
+
u = `${x}_${u}`, t[B(s)] = e[s], t[B(f)] = D, t[B(V.Outlier)] = e[u];
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
604
|
case g.BoxPlotMonoField:
|
|
605
605
|
case g.BoxPlotMultiFields:
|
|
606
606
|
default: {
|
|
607
|
-
t.Field = e[p], t[
|
|
607
|
+
t.Field = e[p], t[B(V.Outlier)] = e[u];
|
|
608
608
|
break;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
const
|
|
612
|
-
b !== void 0 && (t[`${
|
|
611
|
+
const v = `${u}${Q}`, b = e[v];
|
|
612
|
+
b !== void 0 && (t[`${B(V.Outlier)} Z-Score`] = b);
|
|
613
613
|
}
|
|
614
614
|
function Ue(l) {
|
|
615
|
-
const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${V.Average}`], f = _(a), u =
|
|
615
|
+
const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${V.Average}`], f = _(a), u = H(a);
|
|
616
616
|
let p = "";
|
|
617
617
|
switch (s) {
|
|
618
618
|
case g.BoxPlotMonoFieldAndSplitBy: {
|
|
619
|
-
p = `${o}_${f}`, t.Field = e[R], t[
|
|
619
|
+
p = `${o}_${f}`, t.Field = e[R], t[B(f)] = M({
|
|
620
620
|
field: f,
|
|
621
621
|
value: e[p],
|
|
622
622
|
layer: i,
|
|
@@ -626,7 +626,7 @@ function Ue(l) {
|
|
|
626
626
|
break;
|
|
627
627
|
}
|
|
628
628
|
case g.BoxPlotMultiFieldsAndSplitBy: {
|
|
629
|
-
p = `${o}_${V.Average}`, t.Field = e[R], t[
|
|
629
|
+
p = `${o}_${V.Average}`, t.Field = e[R], t[B(f)] = M({
|
|
630
630
|
field: f,
|
|
631
631
|
value: e[p],
|
|
632
632
|
layer: i,
|
|
@@ -636,7 +636,7 @@ function Ue(l) {
|
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
638
|
case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
639
|
-
p = `${o}_${V.Average}`, t[u] = e[u], t[
|
|
639
|
+
p = `${o}_${V.Average}`, t[u] = e[u], t[B(f)] = M({
|
|
640
640
|
field: f,
|
|
641
641
|
value: o,
|
|
642
642
|
layer: i,
|
|
@@ -646,16 +646,16 @@ function Ue(l) {
|
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
t[
|
|
650
|
-
const
|
|
651
|
-
b !== void 0 && (t[`${
|
|
649
|
+
t[B(V.Average)] = c;
|
|
650
|
+
const v = `${String(c)}${Q}`, b = e[v];
|
|
651
|
+
b !== void 0 && (t[`${B(V.Average)} Z-Score`] = b);
|
|
652
652
|
}
|
|
653
653
|
function Ze(l) {
|
|
654
654
|
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = U(e.series);
|
|
655
655
|
let c = s;
|
|
656
656
|
const f = ce(e), u = Array.isArray(t) && t.length > 0 && t.every((m) => m[A.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
|
|
657
657
|
f && !u && (s === g.BoxPlotMonoFieldAndSplitBy ? c = g.BoxPlotMonoField : s === g.BoxPlotMultiFieldsAndSplitBy ? c = g.BoxPlotMultiFields : s === g.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = g.BoxPlotMonoFieldAndCategory));
|
|
658
|
-
const p =
|
|
658
|
+
const p = H(e), v = oe(e), b = ie(e), x = _(e);
|
|
659
659
|
let D;
|
|
660
660
|
switch (c) {
|
|
661
661
|
case g.BoxPlotMonoField:
|
|
@@ -708,7 +708,7 @@ function Ze(l) {
|
|
|
708
708
|
}
|
|
709
709
|
case g.BoxPlotMultiFieldsAndCategory: {
|
|
710
710
|
D = t.flatMap(
|
|
711
|
-
(m) =>
|
|
711
|
+
(m) => v.map((d) => {
|
|
712
712
|
const y = {};
|
|
713
713
|
let F = "";
|
|
714
714
|
if (y.Field = d, m[A.boxPlot.boxPlotOutlierId])
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -4,7 +4,7 @@ import { cloneDeep as h } from "lodash-es";
|
|
|
4
4
|
import { G as g } from "./common.js";
|
|
5
5
|
import { i as c } from "./rest-js-object-literals.js";
|
|
6
6
|
import { u as x } from "./chart-object-literals.js";
|
|
7
|
-
import {
|
|
7
|
+
import { ag as S, J as L, T as b, _ as T } from "./index.js";
|
|
8
8
|
import { M as C } from "./index2.js";
|
|
9
9
|
import { q as X, p as B } from "./index5.js";
|
|
10
10
|
import { m as a, C as f } from "./model-setter.js";
|
|
@@ -57,22 +57,22 @@ const V = (t) => {
|
|
|
57
57
|
}, $ = (t) => {
|
|
58
58
|
const { name: e, axis: i, index: s } = d(t);
|
|
59
59
|
i?.guides?.[s] !== void 0 && (i.guides[s].name = e);
|
|
60
|
-
},
|
|
60
|
+
}, N = (t) => {
|
|
61
61
|
const { axis: e, index: i } = d(t);
|
|
62
62
|
return e?.guides?.[i]?.label?.text;
|
|
63
|
-
},
|
|
63
|
+
}, I = (t) => {
|
|
64
64
|
const { labelText: e, axis: i, index: s } = d(t), o = i?.guides?.[s]?.label ?? S(e, L(b.GuideLabel), b.GuideLabel);
|
|
65
65
|
i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...o, text: e });
|
|
66
66
|
}, q = (t) => {
|
|
67
67
|
const { axis: e, index: i } = d(t);
|
|
68
68
|
return e?.guides?.[i]?.above ?? !1;
|
|
69
|
-
},
|
|
69
|
+
}, J = (t) => {
|
|
70
70
|
const { above: e, axis: i, index: s } = d(t);
|
|
71
71
|
i?.guides?.[s] !== void 0 && (i.guides[s].above = e);
|
|
72
|
-
},
|
|
72
|
+
}, U = (t) => {
|
|
73
73
|
const { axis: e, index: i } = d(t);
|
|
74
74
|
return e?.guides?.[i]?.style;
|
|
75
|
-
},
|
|
75
|
+
}, Y = (t) => {
|
|
76
76
|
const { style: e, axis: i, index: s } = d(t);
|
|
77
77
|
i?.guides?.[s] !== void 0 && (i.guides[s].style = e);
|
|
78
78
|
}, Ge = (t) => {
|
|
@@ -97,10 +97,10 @@ const V = (t) => {
|
|
|
97
97
|
const { reverseColor: e, axis: i, index: s } = d(t);
|
|
98
98
|
i?.guides?.[s] !== void 0 && (i.guides[s].tooltipReverseColor = e);
|
|
99
99
|
};
|
|
100
|
-
var
|
|
101
|
-
for (var o =
|
|
100
|
+
var K = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, u = (t, e, i, s) => {
|
|
101
|
+
for (var o = Q(e, i), n = t.length - 1, r; n >= 0; n--)
|
|
102
102
|
(r = t[n]) && (o = r(e, i, o) || o);
|
|
103
|
-
return o &&
|
|
103
|
+
return o && K(e, i, o), o;
|
|
104
104
|
};
|
|
105
105
|
class l extends _ {
|
|
106
106
|
/**
|
|
@@ -167,10 +167,10 @@ class l extends _ {
|
|
|
167
167
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
168
168
|
*/
|
|
169
169
|
getGuideLabelText(e, i) {
|
|
170
|
-
return
|
|
170
|
+
return N({ config: this._config, index: e, orientation: i });
|
|
171
171
|
}
|
|
172
172
|
setGuideLabelText(e, i, s) {
|
|
173
|
-
|
|
173
|
+
I({ labelText: e, config: this._config, index: i, orientation: s });
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
176
|
* Gets whether the guide should be rendered above the other chart elements.
|
|
@@ -182,7 +182,7 @@ class l extends _ {
|
|
|
182
182
|
return q({ config: this._config, index: e, orientation: i });
|
|
183
183
|
}
|
|
184
184
|
setGuideAbove(e, i, s) {
|
|
185
|
-
|
|
185
|
+
J({ above: e, config: this._config, index: i, orientation: s });
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
188
|
* Gets the guide style.
|
|
@@ -191,10 +191,10 @@ class l extends _ {
|
|
|
191
191
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
192
192
|
*/
|
|
193
193
|
getGuideStyle(e, i) {
|
|
194
|
-
return
|
|
194
|
+
return U({ config: this._config, index: e, orientation: i });
|
|
195
195
|
}
|
|
196
196
|
setGuideStyle(e, i, s) {
|
|
197
|
-
|
|
197
|
+
Y({ style: e, config: this._config, index: i, orientation: s });
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
200
|
* Gets whether the tooltip text color should be reversed for a guide.
|
|
@@ -249,10 +249,10 @@ class he extends f {
|
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
var
|
|
252
|
+
var Z = Object.defineProperty, k = Object.getOwnPropertyDescriptor, ee = (t, e, i, s) => {
|
|
253
253
|
for (var o = k(e, i), n = t.length - 1, r; n >= 0; n--)
|
|
254
254
|
(r = t[n]) && (o = r(e, i, o) || o);
|
|
255
|
-
return o &&
|
|
255
|
+
return o && Z(e, i, o), o;
|
|
256
256
|
};
|
|
257
257
|
const ie = (t) => p({ config: t, axisIndex: 0, isMax: !0 }), te = (t, e) => {
|
|
258
258
|
y({ config: t, value: e, axisIndex: 0, isMax: !0 });
|