@arcgis/charts-components 5.0.0-next.160 → 5.0.0-next.162
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/{RZ6R7MN4.js → 277KZ5EH.js} +1 -1
- package/dist/cdn/{ZNEO3KDO.js → 35FGLAKV.js} +1 -1
- package/dist/cdn/{F4YTYW5V.js → 37TWMIC2.js} +1 -1
- package/dist/cdn/{ZRXBS332.js → 3TCYZ5OB.js} +19 -19
- package/dist/cdn/3UBEHDWK.js +2 -0
- package/dist/cdn/{OPLYTZOK.js → 4L3ESTCL.js} +1 -1
- package/dist/cdn/{FTVGPPNT.js → 53QDB3IL.js} +1 -1
- package/dist/cdn/{PN64D75Z.js → 62OZB7FK.js} +1 -1
- package/dist/cdn/{SWT4YIO7.js → 64DXX3FX.js} +1 -1
- package/dist/cdn/{VDGG6FNJ.js → 6AP262U4.js} +1 -1
- package/dist/cdn/{67GFPMNP.js → 7HCS3J2W.js} +1 -1
- package/dist/cdn/{6CXURON6.js → 7HDTPUIY.js} +1 -1
- package/dist/cdn/{HHE4YHFC.js → 7KAPOFBN.js} +1 -1
- package/dist/cdn/{RDBJ4EAL.js → 7LRO7RMI.js} +1 -1
- package/dist/cdn/{LTTLQY6M.js → 7WZV7AE3.js} +1 -1
- package/dist/cdn/{GOTYA4RS.js → 7XUX4ZTI.js} +1 -1
- package/dist/cdn/{BQRMDGR3.js → B5LXWQRU.js} +1 -1
- package/dist/cdn/{PBRZV4IF.js → BYAYB5LF.js} +1 -1
- package/dist/cdn/{665XYLCG.js → C72B5RSG.js} +1 -1
- package/dist/cdn/{MJRULOQL.js → CAXYDF5R.js} +1 -1
- package/dist/cdn/{IYF5UHWL.js → CBTHS6I5.js} +1 -1
- package/dist/cdn/{FO26BDGS.js → CIW6WMFK.js} +3 -3
- package/dist/cdn/{XGWFSBK7.js → CTDG3FOZ.js} +1 -1
- package/dist/cdn/{IWZKNPYZ.js → D2HQHUZF.js} +1 -1
- package/dist/cdn/{UR26ITDF.js → DACWGPLL.js} +1 -1
- package/dist/cdn/{LG32FAGS.js → DB3UL5LX.js} +1 -1
- package/dist/cdn/{VAXL6P2J.js → DHBBU7AG.js} +1 -1
- package/dist/cdn/{L7PMTZK6.js → DKC6E3QZ.js} +1 -1
- package/dist/cdn/{BNTX3CFT.js → DLT5ZL25.js} +1 -1
- package/dist/cdn/{QTV7HK2M.js → EYXP4YQW.js} +1 -1
- package/dist/cdn/{6YNI4VGB.js → FGMU7G6T.js} +1 -1
- package/dist/cdn/{PDPZOXDT.js → G7UITT5F.js} +1 -1
- package/dist/cdn/{XQG5VGS4.js → GB223HFN.js} +1 -1
- package/dist/cdn/{RGUQ44HW.js → GKUTVRCP.js} +1 -1
- package/dist/cdn/{SLX36JI6.js → GRUDYKUK.js} +1 -1
- package/dist/cdn/{MEXLQN6D.js → HAAT4GZV.js} +1 -1
- package/dist/cdn/{RKQXTPOC.js → IBDFXE7F.js} +1 -1
- package/dist/cdn/{UVFZBFUX.js → IBMHE4HG.js} +1 -1
- package/dist/cdn/{UR4FYTBG.js → IDMPL6T7.js} +1 -1
- package/dist/cdn/{HAS5TLQ3.js → IL22JCIC.js} +1 -1
- package/dist/cdn/{XJUEF5CF.js → ISB65KPT.js} +1 -1
- package/dist/cdn/{JGXIWN67.js → IYGUWGB6.js} +1 -1
- package/dist/cdn/{KGZ4OZTE.js → JASXULGK.js} +1 -1
- package/dist/cdn/{D26O56MQ.js → JBHDZEVD.js} +1 -1
- package/dist/cdn/{PWNEQTL7.js → KDGGKNBV.js} +1 -1
- package/dist/cdn/{M6Z5DNZU.js → KF4ILYWV.js} +1 -1
- package/dist/cdn/KHPBPGZW.js +2 -0
- package/dist/cdn/{X4EAJDXE.js → KLOSKKEF.js} +1 -1
- package/dist/cdn/{R7BXDBMM.js → KOC7VWEQ.js} +1 -1
- package/dist/cdn/{3WRKA6FV.js → KPBKHH3V.js} +1 -1
- package/dist/cdn/LRATJMH3.js +2 -0
- package/dist/cdn/{MG7QVBU6.js → MMVZJQGM.js} +1 -1
- package/dist/cdn/{JCKTUCRW.js → MSNUKDFY.js} +1 -1
- package/dist/cdn/{YV3ZTJIM.js → NLNJYC2E.js} +1 -1
- package/dist/cdn/{44H6FBHJ.js → NNTJCO7Q.js} +1 -1
- package/dist/cdn/{PKZLBYM2.js → OMR6RCJW.js} +1 -1
- package/dist/cdn/{KY27HRBB.js → OR2MF4BU.js} +1 -1
- package/dist/cdn/{CH42B5JL.js → OWTDESPZ.js} +1 -1
- package/dist/cdn/{PAYHZG5C.js → P3XTRZL3.js} +1 -1
- package/dist/cdn/{4PBJ7FUT.js → PQRPDV2N.js} +1 -1
- package/dist/cdn/{PPNZMZXU.js → PUO6TAT3.js} +1 -1
- package/dist/cdn/{4UKLAJSH.js → PZ5VL76M.js} +1 -1
- package/dist/cdn/{GBKRQ677.js → R7TVVBB7.js} +1 -1
- package/dist/cdn/{O73BKEVY.js → RKJFJ3VI.js} +1 -1
- package/dist/cdn/{2KLSYRIH.js → S3MAP4NY.js} +1 -1
- package/dist/cdn/{NCTDUS4J.js → SAKNSC4M.js} +1 -1
- package/dist/cdn/{7743VKV6.js → SW62HLGO.js} +1 -1
- package/dist/cdn/{VVKJ7NJ6.js → SW6ENGEK.js} +1 -1
- package/dist/cdn/{2BMO22B2.js → SZ2BB7ZG.js} +1 -1
- package/dist/cdn/{GJAATA35.js → TBYLHPGX.js} +1 -1
- package/dist/cdn/{A6KHSTDR.js → TCKDCNZ6.js} +1 -1
- package/dist/cdn/{L4YLTTHZ.js → TQRAYSWN.js} +1 -1
- package/dist/cdn/{XSF4MZ74.js → TUTT6I7D.js} +1 -1
- package/dist/cdn/{WQIYKKB6.js → UHB77RAE.js} +1 -1
- package/dist/cdn/{FQHGUWNW.js → UUZWRA5G.js} +1 -1
- package/dist/cdn/{IFGO4IOP.js → V65HT7NA.js} +1 -1
- package/dist/cdn/{PXVGQP6X.js → VMSL4CWI.js} +1 -1
- package/dist/cdn/{TO45SJXS.js → WCBXBXTZ.js} +1 -1
- package/dist/cdn/WNZXN6Y2.js +2 -0
- package/dist/cdn/{C7TDDQQD.js → WORQWDJQ.js} +1 -1
- package/dist/cdn/{B2VQPKK2.js → WTZ23CRY.js} +1 -1
- package/dist/cdn/{2KSPR6GE.js → XIFLK5EG.js} +1 -1
- package/dist/cdn/XNTLXVQF.js +2 -0
- package/dist/cdn/{UGPLQMQT.js → XQAUA2KI.js} +1 -1
- package/dist/cdn/{GGMJJ64F.js → Y7OQUVXC.js} +1 -1
- package/dist/cdn/{LX4URLJD.js → YHIJMVJQ.js} +1 -1
- package/dist/cdn/{WF4C6C2Y.js → YHVWLHT7.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +5 -5
- package/dist/chunks/axis-lines-symbol.js +14 -14
- package/dist/chunks/bar-chart-model.js +3 -3
- package/dist/chunks/box-plot-data.js +20 -20
- package/dist/chunks/box-plot-model.js +19 -19
- package/dist/chunks/chart-model.js +43 -43
- package/dist/chunks/chart-ui-utils2.js +3 -3
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data.js +19 -19
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/generate-x-axis-title.js +1 -1
- package/dist/chunks/heat-chart-model.js +12 -12
- package/dist/chunks/histogram-data.js +7 -7
- package/dist/chunks/histogram-model.js +4 -4
- package/dist/chunks/index.js +320 -318
- package/dist/chunks/index2.js +51 -51
- package/dist/chunks/index3.js +12 -12
- package/dist/chunks/line-chart-model.js +6 -6
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-guides.js +12 -12
- package/dist/chunks/model-with-tooltips.js +16 -16
- package/dist/chunks/model-with-y-guides.js +11 -11
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +25 -25
- package/dist/chunks/pie-chart-model.js +33 -33
- package/dist/chunks/radar-chart-model.js +4 -4
- package/dist/chunks/rotated-state.js +3 -3
- package/dist/chunks/scatterplot-model.js +18 -18
- package/dist/chunks/serial-chart-data.js +306 -300
- package/dist/chunks/serial-chart-model.js +13 -13
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +7 -7
- package/dist/chunks/utils.js +36 -36
- package/dist/chunks/utils2.js +9 -9
- package/dist/chunks/web-component-utils.js +51 -51
- package/dist/components/arcgis-chart/customElement.js +1529 -1517
- package/dist/components/arcgis-charts-action-bar/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 +10 -10
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-box-plot-series/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 +10 -10
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +7 -7
- 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 +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/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/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/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 +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 +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- 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 +224 -223
- package/dist/utils/chart-config/utils/index.d.ts +8 -0
- package/package.json +3 -3
- package/dist/cdn/FIR7XZ4I.js +0 -2
- package/dist/cdn/GMI2B2TP.js +0 -2
- package/dist/cdn/IIQTQZRE.js +0 -2
- package/dist/cdn/V4BNMRTI.js +0 -2
- package/dist/cdn/YNDD5HWR.js +0 -2
package/dist/chunks/index2.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
2
|
import { getElementLocale as Ge } from "@arcgis/toolkit/intl";
|
|
3
|
-
import { cloneDeep as s, isEmpty as
|
|
4
|
-
import { DateTime as
|
|
5
|
-
import {
|
|
3
|
+
import { cloneDeep as s, isEmpty as h } from "lodash-es";
|
|
4
|
+
import { DateTime as je } from "luxon";
|
|
5
|
+
import { cG as _e, f as re, g as ze, dl as ie, dj as He, u as Re, W as $e, aw as Qe, bG as Ye, o as C, a6 as Xe, dh as c, bV as b, bX as Z, j as Ke, k as Je, ax as Ze, d9 as T, d as X, d1 as oe, bd as Ue, ch as et, bu as tt, q as rt } from "./index.js";
|
|
6
6
|
import { h as it, i as ot, a as st } from "./index4.js";
|
|
7
|
-
import { p as U, w as
|
|
7
|
+
import { p as U, w as B, W as l, a as F, t as f, g as S, c as nt, o as ee, i as g } from "./series-types.js";
|
|
8
8
|
var P = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER = "stagger", r.WRAP = "wrap", r))(P || {});
|
|
9
9
|
function se(r) {
|
|
10
10
|
const { configToUpdate: e, chartContainer: i, layer: t } = r, o = s(e);
|
|
11
11
|
if (t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
|
|
12
12
|
const { lang: n } = Ge(i ?? document.documentElement);
|
|
13
13
|
try {
|
|
14
|
-
o.firstDayOfWeek =
|
|
14
|
+
o.firstDayOfWeek = je.local().setLocale(n.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
|
|
15
15
|
} catch {
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -19,17 +19,17 @@ function se(r) {
|
|
|
19
19
|
}
|
|
20
20
|
function ne(r) {
|
|
21
21
|
const e = s(r);
|
|
22
|
-
return
|
|
22
|
+
return h(r.axes) || (e.axes = r.axes?.map((i) => {
|
|
23
23
|
const t = i;
|
|
24
24
|
return delete t.calculateAutomaticMaximum, delete t.calculateAutomaticMinimum, t.title?.content.font?.style !== void 0 && (t.title.content.font.style = t.title.content.font.style.toLowerCase()), t;
|
|
25
25
|
})), e;
|
|
26
26
|
}
|
|
27
27
|
function ae(r) {
|
|
28
28
|
const e = s(r);
|
|
29
|
-
return
|
|
29
|
+
return h(r.series) || (e.series = r.series.map((i, t) => {
|
|
30
30
|
const o = i;
|
|
31
31
|
i.id === void 0 && (o.id = `Series ${Date.now()}-${t}`);
|
|
32
|
-
const n =
|
|
32
|
+
const n = B(r.series, t);
|
|
33
33
|
return (n === l.BarSeries || n === l.LineSeries || n === l.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), n === l.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), n === l.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = Qe.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
|
|
34
34
|
...o.sliceGrouping,
|
|
35
35
|
label: o.sliceGrouping.groupName
|
|
@@ -66,7 +66,7 @@ async function de(r, e) {
|
|
|
66
66
|
o && (t = await Ye(o));
|
|
67
67
|
}
|
|
68
68
|
if (t) {
|
|
69
|
-
const o = C(i.series), n =
|
|
69
|
+
const o = C(i.series), n = B(i.series), u = i.series && i.series.length > 0 && i.series[0].x.trim() === "" || n === l.GaugeSeries && !Xe(r) || o === c.PieFromFields || o === c.BarAndLineFromFields || o === c.BoxPlotMonoField || o === c.BoxPlotMonoFieldAndSplitBy || o === c.BoxPlotMultiFields || o === c.BoxPlotMultiFieldsAndSplitBy, v = n === l.ScatterSeries || o === c.BarAndLineNoAggregation || o === c.BarAndLineSplitByNoAggregation || o === c.BoxPlotMonoField || o === c.BoxPlotMonoFieldAndSplitBy || o === c.BoxPlotMonoFieldAndCategory || o === c.BoxPlotMonoFieldAndCategoryAndSplitBy || o === c.PieNoAggregation;
|
|
70
70
|
if (i.series = await Promise.all(
|
|
71
71
|
r.series.map(async (a) => {
|
|
72
72
|
const d = { ...a };
|
|
@@ -91,7 +91,7 @@ async function de(r, e) {
|
|
|
91
91
|
}), O;
|
|
92
92
|
})
|
|
93
93
|
)), y !== void 0 && o === c.BarAndLineSplitBy) {
|
|
94
|
-
const x =
|
|
94
|
+
const x = Ke(a.query?.where), O = Je({
|
|
95
95
|
where: a.query?.where,
|
|
96
96
|
normalize: !1,
|
|
97
97
|
escape: !1
|
|
@@ -135,7 +135,7 @@ async function de(r, e) {
|
|
|
135
135
|
}
|
|
136
136
|
function le(r) {
|
|
137
137
|
const e = s(r);
|
|
138
|
-
if (!
|
|
138
|
+
if (!h(r.series) && B(r.series) === l.BoxPlotSeries) {
|
|
139
139
|
const t = e.series[0];
|
|
140
140
|
t && (t.showOutliers !== void 0 && (r.showOutliers === void 0 && (e.showOutliers = t.showOutliers), delete t.showOutliers), t.standardizeValues !== void 0 && (r.standardizeValues === void 0 && (e.standardizeValues = t.standardizeValues), delete t.standardizeValues), t.showMean !== void 0 && (r.showMean === void 0 && (e.showMean = t.showMean), delete t.showMean));
|
|
141
141
|
}
|
|
@@ -159,7 +159,7 @@ function ue(r) {
|
|
|
159
159
|
}
|
|
160
160
|
function fe(r) {
|
|
161
161
|
const e = s(r);
|
|
162
|
-
if (!
|
|
162
|
+
if (!h(e.series) && B(r.series) === l.BoxPlotSeries) {
|
|
163
163
|
if (e.orderOptions?.data === void 0) {
|
|
164
164
|
const t = ce(r.series[0]);
|
|
165
165
|
t.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
@@ -169,7 +169,7 @@ function fe(r) {
|
|
|
169
169
|
}
|
|
170
170
|
if (e.series = r.series.map((t) => {
|
|
171
171
|
const o = t;
|
|
172
|
-
return
|
|
172
|
+
return h(o.x?.trim()) && (o.x = Ze), delete o.query?.orderByFields, o;
|
|
173
173
|
}), ue(e)) {
|
|
174
174
|
e.showMean = !0;
|
|
175
175
|
const t = e.series.find(
|
|
@@ -217,20 +217,20 @@ function ve(r) {
|
|
|
217
217
|
let t = s(i);
|
|
218
218
|
return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (t = i.replace(
|
|
219
219
|
"arcgis_charts_pie_category_from_fields_name",
|
|
220
|
-
|
|
220
|
+
X
|
|
221
221
|
)), t;
|
|
222
222
|
}
|
|
223
223
|
)), e;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function he(r) {
|
|
226
226
|
const e = s(r);
|
|
227
|
-
if (!
|
|
227
|
+
if (!h(r.series) && e.axes?.[0] !== void 0 && B(r.series) === l.GaugeSeries && r.axes?.[0] !== void 0) {
|
|
228
228
|
const t = r.axes[0];
|
|
229
229
|
t.ticks !== void 0 && Object.hasOwn(t.ticks, "spacing") && delete t.ticks.spacing, e.axes[0] = t;
|
|
230
230
|
}
|
|
231
231
|
return e;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Be(r) {
|
|
234
234
|
const e = s(r), { extent: i } = e.series[0]?.query ?? {};
|
|
235
235
|
return i !== void 0 && (e.dataFilters = {
|
|
236
236
|
...e.dataFilters,
|
|
@@ -239,15 +239,15 @@ function ge(r) {
|
|
|
239
239
|
"query" in t && "extent" in t.query && delete t.query.extent;
|
|
240
240
|
})), e;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function K(r) {
|
|
243
243
|
const e = s(r);
|
|
244
|
-
return
|
|
244
|
+
return h(r.series) || (ot(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? Ue()), e.series.forEach((i) => {
|
|
245
245
|
i.rotated !== void 0 && delete i.rotated;
|
|
246
246
|
})), e;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function ge(r) {
|
|
249
249
|
const e = s(r), i = r.dataSource;
|
|
250
|
-
return "dataSource" in e && !
|
|
250
|
+
return "dataSource" in e && !h(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
|
|
251
251
|
}
|
|
252
252
|
function be(r) {
|
|
253
253
|
const e = s(r);
|
|
@@ -283,7 +283,7 @@ function J(r) {
|
|
|
283
283
|
}
|
|
284
284
|
function xe(r) {
|
|
285
285
|
const e = s(r);
|
|
286
|
-
if (!
|
|
286
|
+
if (!h(r.series) && B(r.series) === l.PieSeries) {
|
|
287
287
|
const t = e.series[0];
|
|
288
288
|
if (t) {
|
|
289
289
|
if (t.sortLabelsBy === "originalValue")
|
|
@@ -299,7 +299,7 @@ function xe(r) {
|
|
|
299
299
|
}
|
|
300
300
|
function Oe(r) {
|
|
301
301
|
const e = s(r);
|
|
302
|
-
return
|
|
302
|
+
return h(r.series) || (st(r) && r.stackedType === void 0 && (e.stackedType = r.series[0].stackedType ?? tt()), e.series.forEach((i) => {
|
|
303
303
|
"stackedType" in i && delete i.stackedType;
|
|
304
304
|
})), e;
|
|
305
305
|
}
|
|
@@ -346,7 +346,7 @@ function Le(r) {
|
|
|
346
346
|
if (i.length === 1) {
|
|
347
347
|
const { fieldToSort: o, orderBy: n } = T(i[0]);
|
|
348
348
|
let u;
|
|
349
|
-
o === r.series[0].x || o ===
|
|
349
|
+
o === r.series[0].x || o === X ? u = f.Category : "y" in r.series[0] && o === r.series[0].y && (u = f.YValue), u && u !== f.MultiAxes && (t = !1, e.orderOptions.data === void 0 && (e.orderOptions.data = {
|
|
350
350
|
orderType: u,
|
|
351
351
|
orderBy: n?.toUpperCase() === "DESC" ? S.Descending : S.Ascending
|
|
352
352
|
}));
|
|
@@ -360,11 +360,11 @@ function Le(r) {
|
|
|
360
360
|
function w(r) {
|
|
361
361
|
let e, i = r.orderOptions?.orderByFields?.[0];
|
|
362
362
|
if (r.series?.length > 0) {
|
|
363
|
-
const t =
|
|
363
|
+
const t = B(r.series), o = C(r.series);
|
|
364
364
|
if (t !== l.PieSeries && o !== c.BarAndLineFromFields && (i = i ?? r.series[0].x), i && !oe(i)) {
|
|
365
365
|
const { fieldToSort: n, orderBy: u } = T(i);
|
|
366
366
|
let v;
|
|
367
|
-
n === r.series[0].x || n ===
|
|
367
|
+
n === r.series[0].x || n === X ? v = f.Category : "y" in r.series[0] && n === r.series[0].y && (v = f.YValue), v && v !== f.MultiAxes && (e = {
|
|
368
368
|
orderType: v,
|
|
369
369
|
orderBy: u?.toUpperCase() === "DESC" ? S.Descending : S.Ascending
|
|
370
370
|
});
|
|
@@ -383,7 +383,7 @@ function ke(r) {
|
|
|
383
383
|
}), t.sortLabelsBy === "originalValue" || n.orderOptions?.data?.preferDataLabel === !1 || u.orderOptions?.data?.preferLabel === !1)
|
|
384
384
|
e.orderOptions?.data && delete e.orderOptions.data;
|
|
385
385
|
else if (e.orderOptions?.data === void 0)
|
|
386
|
-
if (
|
|
386
|
+
if (B(e.series) === l.BoxPlotSeries) {
|
|
387
387
|
if (t.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
|
|
388
388
|
const a = J(o.sortOptions?.sortDataBy?.sortType);
|
|
389
389
|
a && a !== f.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
@@ -421,25 +421,25 @@ function Me(r) {
|
|
|
421
421
|
let t;
|
|
422
422
|
switch (i.timeIntervalUnits) {
|
|
423
423
|
case "esriTimeUnitsSeconds":
|
|
424
|
-
t =
|
|
424
|
+
t = g.Second;
|
|
425
425
|
break;
|
|
426
426
|
case "esriTimeUnitsMinutes":
|
|
427
|
-
t =
|
|
427
|
+
t = g.Minute;
|
|
428
428
|
break;
|
|
429
429
|
case "esriTimeUnitsHours":
|
|
430
|
-
t =
|
|
430
|
+
t = g.Hour;
|
|
431
431
|
break;
|
|
432
432
|
case "esriTimeUnitsDays":
|
|
433
|
-
t =
|
|
433
|
+
t = g.Day;
|
|
434
434
|
break;
|
|
435
435
|
case "esriTimeUnitsWeeks":
|
|
436
|
-
t =
|
|
436
|
+
t = g.Week;
|
|
437
437
|
break;
|
|
438
438
|
case "esriTimeUnitsMonths":
|
|
439
|
-
t =
|
|
439
|
+
t = g.Month;
|
|
440
440
|
break;
|
|
441
441
|
case "esriTimeUnitsYears":
|
|
442
|
-
t =
|
|
442
|
+
t = g.Year;
|
|
443
443
|
break;
|
|
444
444
|
}
|
|
445
445
|
t !== void 0 && (i.temporalBinning.unit = t), delete i.timeIntervalUnits;
|
|
@@ -480,19 +480,19 @@ function Ee(r) {
|
|
|
480
480
|
}
|
|
481
481
|
function L(r) {
|
|
482
482
|
let e = s(r);
|
|
483
|
-
return e =
|
|
483
|
+
return e = he(e), e;
|
|
484
484
|
}
|
|
485
485
|
function k(r) {
|
|
486
486
|
let e = s(r);
|
|
487
|
-
return e =
|
|
487
|
+
return e = Be(e), e;
|
|
488
488
|
}
|
|
489
489
|
function A(r) {
|
|
490
490
|
let e = s(r);
|
|
491
|
-
return e =
|
|
491
|
+
return e = K(e), e;
|
|
492
492
|
}
|
|
493
493
|
function D(r) {
|
|
494
494
|
let e = s(r);
|
|
495
|
-
return e =
|
|
495
|
+
return e = ge(e), e;
|
|
496
496
|
}
|
|
497
497
|
function M(r) {
|
|
498
498
|
let e = s(r);
|
|
@@ -523,10 +523,10 @@ function V(r) {
|
|
|
523
523
|
function G(r) {
|
|
524
524
|
return ke(r);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function j(r) {
|
|
527
527
|
return pe(r);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function _(r) {
|
|
530
530
|
return Ae(r);
|
|
531
531
|
}
|
|
532
532
|
function z(r) {
|
|
@@ -540,7 +540,7 @@ function R(r) {
|
|
|
540
540
|
}
|
|
541
541
|
function $(r) {
|
|
542
542
|
let e = s(r);
|
|
543
|
-
return e =
|
|
543
|
+
return e = K(e), qe(e);
|
|
544
544
|
}
|
|
545
545
|
function Q(r) {
|
|
546
546
|
let e = s(r);
|
|
@@ -553,7 +553,7 @@ function Y(r) {
|
|
|
553
553
|
function Ve(r) {
|
|
554
554
|
const { versionsToConvert: e = [], configToUpdate: i } = r;
|
|
555
555
|
let t = s(i);
|
|
556
|
-
return e.length > 0 && t !== void 0 && (t = Le(t), e.includes(re) || e.includes(Re) ? (t = Ee(t), t = L(t), t = k(t), t = A(t), t = D(t), t = M(t), t = W(t), t = q(t), t = I(t), t = N(t), t = E(t), t = V(t), t = G(t), t =
|
|
556
|
+
return e.length > 0 && t !== void 0 && (t = Le(t), e.includes(re) || e.includes(Re) ? (t = Ee(t), t = L(t), t = k(t), t = A(t), t = D(t), t = M(t), t = W(t), t = q(t), t = I(t), t = N(t), t = E(t), t = V(t), t = G(t), t = j(t), t = _(t), t = z(t), t = H(t), t = R(t), t = $(t), t = Q(t), t = Y(t)) : e.forEach((o) => {
|
|
557
557
|
if (t !== void 0)
|
|
558
558
|
switch (o) {
|
|
559
559
|
case "1.0.1":
|
|
@@ -593,10 +593,10 @@ function Ve(r) {
|
|
|
593
593
|
t = G(t);
|
|
594
594
|
break;
|
|
595
595
|
case "16.0.0":
|
|
596
|
-
t =
|
|
596
|
+
t = j(t);
|
|
597
597
|
break;
|
|
598
598
|
case "16.1.0":
|
|
599
|
-
t =
|
|
599
|
+
t = _(t);
|
|
600
600
|
break;
|
|
601
601
|
case "18.1.3":
|
|
602
602
|
t = z(t);
|
|
@@ -622,7 +622,7 @@ function Ve(r) {
|
|
|
622
622
|
async function pt(r, e, i) {
|
|
623
623
|
let t = r;
|
|
624
624
|
if (r) {
|
|
625
|
-
const o =
|
|
625
|
+
const o = _e(e);
|
|
626
626
|
t = await Se({ configToUpdate: r, layer: o, chartContainer: i });
|
|
627
627
|
const n = r.version ?? re, { versionStatus: u, versions: v } = ze(n);
|
|
628
628
|
(u === U.Older || u === U.Unrecognized) && (t = Ve({
|
|
@@ -637,12 +637,12 @@ const mt = {
|
|
|
637
637
|
adjustSeries: ae,
|
|
638
638
|
matchChartFieldsToLayerFields: de,
|
|
639
639
|
resetLegendMaxHeight: ye,
|
|
640
|
-
moveSeriesQueryExtent:
|
|
641
|
-
moveSeriesRotatedPropToChart:
|
|
642
|
-
renameDataSourceProperties:
|
|
640
|
+
moveSeriesQueryExtent: Be,
|
|
641
|
+
moveSeriesRotatedPropToChart: K,
|
|
642
|
+
renameDataSourceProperties: ge,
|
|
643
643
|
copyDataSourceFilterToConfig: be,
|
|
644
644
|
adjustPieFromFieldsDefaultNameAndValue: ve,
|
|
645
|
-
removeSpacingPropertyFromGauge:
|
|
645
|
+
removeSpacingPropertyFromGauge: he,
|
|
646
646
|
moveBoxPlotSeriesPropsToChart: le,
|
|
647
647
|
movePieSeriesSortLabelsPropToChart: xe,
|
|
648
648
|
getProBoxPlotSortDataOption: ce,
|
|
@@ -678,8 +678,8 @@ const mt = {
|
|
|
678
678
|
convertTo11x0x0: E,
|
|
679
679
|
convertTo12x0x0: V,
|
|
680
680
|
convertTo15x0x0: G,
|
|
681
|
-
convertTo16x1x0:
|
|
682
|
-
convertTo16x1x1:
|
|
681
|
+
convertTo16x1x0: j,
|
|
682
|
+
convertTo16x1x1: _,
|
|
683
683
|
convertTo19x0x0: z,
|
|
684
684
|
convertTo20x2x0: H,
|
|
685
685
|
convertTo21x1x0: R,
|
package/dist/chunks/index3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
2
|
import { cloneDeep as w } from "lodash-es";
|
|
3
|
-
import {
|
|
4
|
-
import { f as
|
|
3
|
+
import { bG as V } from "./index.js";
|
|
4
|
+
import { f as D, c as y, a as p, R as $ } from "./rest-js-object-literals.js";
|
|
5
5
|
function L(i) {
|
|
6
6
|
let r;
|
|
7
7
|
switch (i.length) {
|
|
@@ -74,24 +74,24 @@ function W(i) {
|
|
|
74
74
|
if (a != null) {
|
|
75
75
|
let t = { value: a };
|
|
76
76
|
e.forEach((o) => {
|
|
77
|
-
const c = N(l[`${n.fillColor}_${o}`]), b = l[`${n.fillOpacity}_${o}`], S = l[`${n.fillStyle}_${o}`], m = l[`${n.markerSize}_${o}`],
|
|
77
|
+
const c = N(l[`${n.fillColor}_${o}`]), b = l[`${n.fillOpacity}_${o}`], S = l[`${n.fillStyle}_${o}`], m = l[`${n.markerSize}_${o}`], F = N(l[`${n.outlineColor}_${o}`]), O = l[`${n.outlineOpacity}_${o}`], h = l[`${n.outlineWidth}_${o}`], k = l[`${n.outlineStyle}_${o}`], g = N(l[`${n.lineColor}_${o}`]), v = l[`${n.lineOpacity}_${o}`], d = l[`${n.lineWidth}_${o}`], _ = l[`${n.lineStyle}_${o}`], C = l[`${n.displayLabel}_${o}`];
|
|
78
78
|
if (typeof C == "string" && (t = {
|
|
79
79
|
...t,
|
|
80
80
|
label: C
|
|
81
81
|
}), m != null) {
|
|
82
|
-
const f = { type:
|
|
82
|
+
const f = { type: D.SMS };
|
|
83
83
|
m && typeof m == "number" && (f.size = m), t.symbol = f;
|
|
84
84
|
}
|
|
85
85
|
if (c || R(S)) {
|
|
86
|
-
const f = t.symbol && t.symbol.type ===
|
|
87
|
-
type:
|
|
86
|
+
const f = t.symbol && t.symbol.type === D.SMS ? t.symbol : {
|
|
87
|
+
type: D.SFS
|
|
88
88
|
};
|
|
89
|
-
if (c && (b && typeof b == "number" && (c[3] = b), f.color = c), R(S) && (f.style = S), t.symbol = f,
|
|
90
|
-
const T = { type:
|
|
91
|
-
|
|
89
|
+
if (c && (b && typeof b == "number" && (c[3] = b), f.color = c), R(S) && (f.style = S), t.symbol = f, F || h != null || I(k)) {
|
|
90
|
+
const T = { type: D.SLS };
|
|
91
|
+
F && (O && typeof O == "number" && (F[3] = O), T.color = F), I(k) && (T.style = k), h && typeof h == "number" && (T.width = h), t.symbol.outline = T;
|
|
92
92
|
}
|
|
93
93
|
} else if (g || d != null || I(_)) {
|
|
94
|
-
const f = { type:
|
|
94
|
+
const f = { type: D.SLS };
|
|
95
95
|
g && (v && typeof v == "number" && (g[3] = v), f.color = g), I(_) && (f.style = _), d != null && typeof d == "number" && (f.width = d), t.symbol = f;
|
|
96
96
|
}
|
|
97
97
|
}), (t.label || t.symbol) && u.uniqueValueInfos.push(t);
|
|
@@ -172,7 +172,7 @@ async function B(i) {
|
|
|
172
172
|
});
|
|
173
173
|
return o && (a = await V(o)), { chartRenderer: l, iLayer: o, layer: a };
|
|
174
174
|
}
|
|
175
|
-
const
|
|
175
|
+
const G = {
|
|
176
176
|
hexToRGB: L,
|
|
177
177
|
convertColor: N,
|
|
178
178
|
removeConfigFieldsFromData: E
|
|
@@ -181,5 +181,5 @@ export {
|
|
|
181
181
|
j as a,
|
|
182
182
|
B as b,
|
|
183
183
|
W as c,
|
|
184
|
-
|
|
184
|
+
G as i
|
|
185
185
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { s as S, a as m, b as d, c, d as
|
|
2
|
+
import { s as S, a as m, b as d, c, d as g, W as y } from "./negative-values-stacked-to-baseline.js";
|
|
3
3
|
import { S as u, s as p, a as b } from "./serial-chart-model.js";
|
|
4
4
|
import { g as n } from "./serial-chart-data.js";
|
|
5
5
|
import { a as I } from "./utils.js";
|
|
6
6
|
import { m as v } from "./model-setter.js";
|
|
7
7
|
import { W as _ } from "./series-types.js";
|
|
8
|
-
import {
|
|
8
|
+
import { bg as L, b4 as f, bL as a, aD as C, aq as M } from "./index.js";
|
|
9
9
|
import { M as k } from "./model-with-line-marker-styling.js";
|
|
10
10
|
var D = Object.defineProperty, F = Object.getOwnPropertyDescriptor, x = (o, e, s, t) => {
|
|
11
11
|
for (var i = F(e, s), r = o.length - 1, l; r >= 0; r--)
|
|
@@ -25,7 +25,7 @@ class h extends u {
|
|
|
25
25
|
// ---------------------------------------------------------------------------------------------
|
|
26
26
|
/** @private */
|
|
27
27
|
generateDefaultConfig() {
|
|
28
|
-
const e =
|
|
28
|
+
const e = L(this.commonStrings);
|
|
29
29
|
return e.series = [
|
|
30
30
|
f({
|
|
31
31
|
commonStrings: this.commonStrings,
|
|
@@ -45,7 +45,7 @@ class h extends u {
|
|
|
45
45
|
}
|
|
46
46
|
resetSeriesStyling() {
|
|
47
47
|
for (let e = 0; e < this.seriesLength; e += 1) {
|
|
48
|
-
const s =
|
|
48
|
+
const s = C({
|
|
49
49
|
colorIndex: e,
|
|
50
50
|
opacity: M
|
|
51
51
|
});
|
|
@@ -58,7 +58,7 @@ class h extends u {
|
|
|
58
58
|
});
|
|
59
59
|
i !== a(this.layerInfo.layer).idField && b(i ?? t, e, this._config);
|
|
60
60
|
}
|
|
61
|
-
m(this.defaultSeries?.lineSymbol?.style, e, this._config), d(this.defaultSeries?.lineSymbol?.width, e, this._config), c(this.defaultSeries?.markerSymbol?.style, e, this._config),
|
|
61
|
+
m(this.defaultSeries?.lineSymbol?.style, e, this._config), d(this.defaultSeries?.lineSymbol?.width, e, this._config), c(this.defaultSeries?.markerSymbol?.style, e, this._config), g(this.defaultSeries?.markerSymbol?.size, e, this._config);
|
|
62
62
|
}
|
|
63
63
|
this._config.colorMatch = !0;
|
|
64
64
|
}
|
|
@@ -90,7 +90,7 @@ class h extends u {
|
|
|
90
90
|
x([
|
|
91
91
|
v
|
|
92
92
|
], h.prototype, "resetSeriesStyling");
|
|
93
|
-
const w = [
|
|
93
|
+
const w = [y, k];
|
|
94
94
|
I(h, w);
|
|
95
95
|
export {
|
|
96
96
|
h as LineChartModel
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
2
|
import { fetchT9nStringsBundle as p, getElementLocale as d } from "@arcgis/toolkit/intl";
|
|
3
3
|
import { g as h } from "./runtime.js";
|
|
4
|
-
import {
|
|
4
|
+
import { bG as r, bI as c, bL as g, aR as f } from "./index.js";
|
|
5
5
|
import { c as l } from "./index2.js";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "luxon";
|
|
@@ -110,7 +110,7 @@ class z extends EventTarget {
|
|
|
110
110
|
}
|
|
111
111
|
// #endregion
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function H(n, i, t) {
|
|
114
114
|
const s = t.set, a = t.value;
|
|
115
115
|
return s && (t.set = function(e) {
|
|
116
116
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
@@ -124,5 +124,5 @@ function G(n, i, t) {
|
|
|
124
124
|
}
|
|
125
125
|
export {
|
|
126
126
|
z as C,
|
|
127
|
-
|
|
127
|
+
H as m
|
|
128
128
|
};
|
|
@@ -10,7 +10,7 @@ import { f as c } from "./rest-js-object-literals.js";
|
|
|
10
10
|
import "@arcgis/toolkit/intl";
|
|
11
11
|
import "luxon";
|
|
12
12
|
import "d3-array";
|
|
13
|
-
import {
|
|
13
|
+
import { aI as C, aH as X, bC as p, aK as B, i as A } from "./index.js";
|
|
14
14
|
import "@esri/arcgis-html-sanitizer";
|
|
15
15
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
16
16
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
@@ -67,9 +67,9 @@ class v extends f {
|
|
|
67
67
|
F([
|
|
68
68
|
a
|
|
69
69
|
], v.prototype, "minXBound");
|
|
70
|
-
class
|
|
70
|
+
class I extends f {
|
|
71
71
|
}
|
|
72
|
-
_(
|
|
72
|
+
_(I, [y, v]);
|
|
73
73
|
class De extends f {
|
|
74
74
|
/**
|
|
75
75
|
* Whether the x-axis labels are visible.
|
|
@@ -83,7 +83,7 @@ class De extends f {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
const
|
|
86
|
+
const N = (t) => {
|
|
87
87
|
for (const e of t.axes ?? [])
|
|
88
88
|
for (const i of e?.guides ?? [])
|
|
89
89
|
if (i.label !== void 0)
|
|
@@ -103,7 +103,7 @@ function r(t) {
|
|
|
103
103
|
orientation: t.orientation ?? g.Y
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const K = (t) => {
|
|
107
107
|
const { axis: e, index: i } = r(t);
|
|
108
108
|
return e?.guides?.[i]?.visible ?? !0;
|
|
109
109
|
}, U = (t) => {
|
|
@@ -121,7 +121,7 @@ const J = (t) => {
|
|
|
121
121
|
}, z = (t) => {
|
|
122
122
|
const { axis: e, index: i } = r(t);
|
|
123
123
|
return e?.guides?.[i]?.end;
|
|
124
|
-
},
|
|
124
|
+
}, J = (t) => {
|
|
125
125
|
const { end: e, axis: i, index: s } = r(t);
|
|
126
126
|
i?.guides?.[s] !== void 0 && (i.guides[s].end = e, G(i.guides[s]));
|
|
127
127
|
}, Q = (t) => {
|
|
@@ -134,7 +134,7 @@ const J = (t) => {
|
|
|
134
134
|
const { axis: e, index: i } = r(t);
|
|
135
135
|
return e?.guides?.[i]?.label?.text;
|
|
136
136
|
}, ee = (t) => {
|
|
137
|
-
const { labelText: e, axis: i, index: s } = r(t), o = i?.guides?.[s]?.label ??
|
|
137
|
+
const { labelText: e, axis: i, index: s } = r(t), o = i?.guides?.[s]?.label ?? C(e, X(p.GuideLabel), p.GuideLabel);
|
|
138
138
|
i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...o, text: e });
|
|
139
139
|
}, ie = (t) => {
|
|
140
140
|
const { axis: e, index: i } = r(t);
|
|
@@ -156,7 +156,7 @@ const J = (t) => {
|
|
|
156
156
|
type: x.Guide,
|
|
157
157
|
name: i,
|
|
158
158
|
start: n.valueFormat.type === x.DateAxisFormat ? "" : 0,
|
|
159
|
-
style:
|
|
159
|
+
style: B()
|
|
160
160
|
};
|
|
161
161
|
s !== void 0 && s < n.guides.length ? n.guides.splice(s, 0, d) : n.guides.push(d);
|
|
162
162
|
}
|
|
@@ -180,7 +180,7 @@ class l extends L {
|
|
|
180
180
|
* The guide labels text symbol (font, color, style).
|
|
181
181
|
*/
|
|
182
182
|
get guideLabelsSymbol() {
|
|
183
|
-
return
|
|
183
|
+
return N(this._config);
|
|
184
184
|
}
|
|
185
185
|
set guideLabelsSymbol(e) {
|
|
186
186
|
H(e, this._config);
|
|
@@ -192,7 +192,7 @@ class l extends L {
|
|
|
192
192
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
193
193
|
*/
|
|
194
194
|
getGuideVisibility(e, i) {
|
|
195
|
-
return
|
|
195
|
+
return K({ config: this._config, index: e, orientation: i });
|
|
196
196
|
}
|
|
197
197
|
setGuideVisibility(e, i, s) {
|
|
198
198
|
U({ visible: e, config: this._config, index: i, orientation: s });
|
|
@@ -219,7 +219,7 @@ class l extends L {
|
|
|
219
219
|
return z({ config: this._config, index: e, orientation: i });
|
|
220
220
|
}
|
|
221
221
|
setGuideEnd(e, i, s) {
|
|
222
|
-
|
|
222
|
+
J({ end: e, config: this._config, index: i, orientation: s });
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
225
|
* Gets the name of a guide.
|
|
@@ -313,6 +313,6 @@ export {
|
|
|
313
313
|
l as M,
|
|
314
314
|
De as W,
|
|
315
315
|
Ve as a,
|
|
316
|
-
|
|
316
|
+
I as b,
|
|
317
317
|
Re as d
|
|
318
318
|
};
|
|
@@ -6,7 +6,7 @@ import "luxon";
|
|
|
6
6
|
import "d3-array";
|
|
7
7
|
import "@arcgis/toolkit/type";
|
|
8
8
|
import { d as y } from "./series-types.js";
|
|
9
|
-
import {
|
|
9
|
+
import { aJ as b, bC as r, aH as v, aR as d } from "./index.js";
|
|
10
10
|
import "@arcgis/core/Graphic.js";
|
|
11
11
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
12
12
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -52,8 +52,8 @@ class M extends h {
|
|
|
52
52
|
u([
|
|
53
53
|
s
|
|
54
54
|
], M.prototype, "colorMatch");
|
|
55
|
-
var V = Object.defineProperty,
|
|
56
|
-
for (var o =
|
|
55
|
+
var V = Object.defineProperty, C = Object.getOwnPropertyDescriptor, P = (t, e, i, p) => {
|
|
56
|
+
for (var o = C(e, i), l = t.length - 1, n; l >= 0; l--)
|
|
57
57
|
(n = t[l]) && (o = n(e, i, o) || o);
|
|
58
58
|
return o && V(e, i, o), o;
|
|
59
59
|
};
|
|
@@ -79,7 +79,7 @@ class w extends h {
|
|
|
79
79
|
R(e, this._config);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
P([
|
|
83
83
|
s
|
|
84
84
|
], w.prototype, "dataLabelsVisibility");
|
|
85
85
|
const S = (t) => {
|
|
@@ -127,22 +127,22 @@ const S = (t) => {
|
|
|
127
127
|
type: r.LegendTitle
|
|
128
128
|
}), e.legend = i;
|
|
129
129
|
}
|
|
130
|
-
},
|
|
130
|
+
}, J = (t) => t.legend?.position ?? y.Right, q = (t, e) => {
|
|
131
131
|
if (e.legend !== void 0)
|
|
132
132
|
e.legend.position = t;
|
|
133
133
|
else if (e.legend === void 0) {
|
|
134
134
|
const i = d();
|
|
135
135
|
i.position = t, e.legend = i;
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, z = (t) => t.legend?.roundMarkers ?? !1, A = (t, e) => {
|
|
138
138
|
e.legend === void 0 && (e.legend = d()), e.legend.roundMarkers = t;
|
|
139
|
-
},
|
|
139
|
+
}, G = (t) => t.legend?.maxHeight ?? void 0, K = (t, e) => {
|
|
140
140
|
e.legend === void 0 && (e.legend = d()), e.legend.maxHeight = t;
|
|
141
141
|
};
|
|
142
|
-
var
|
|
143
|
-
for (var o =
|
|
142
|
+
var N = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, a = (t, e, i, p) => {
|
|
143
|
+
for (var o = Q(e, i), l = t.length - 1, n; l >= 0; l--)
|
|
144
144
|
(n = t[l]) && (o = n(e, i, o) || o);
|
|
145
|
-
return o &&
|
|
145
|
+
return o && N(e, i, o), o;
|
|
146
146
|
};
|
|
147
147
|
class g extends f {
|
|
148
148
|
// ---------------------------------------------------------------------------------------------
|
|
@@ -190,10 +190,10 @@ class g extends f {
|
|
|
190
190
|
* Legend position: top, bottom, left, or right.
|
|
191
191
|
*/
|
|
192
192
|
get legendPosition() {
|
|
193
|
-
return
|
|
193
|
+
return J(this._config);
|
|
194
194
|
}
|
|
195
195
|
set legendPosition(e) {
|
|
196
|
-
|
|
196
|
+
q(e, this._config);
|
|
197
197
|
}
|
|
198
198
|
// ---------------------------------------------------------------------------------------------
|
|
199
199
|
// Format Props
|
|
@@ -220,19 +220,19 @@ class g extends f {
|
|
|
220
220
|
* Maximum legend height.
|
|
221
221
|
*/
|
|
222
222
|
get legendMaxHeight() {
|
|
223
|
-
return
|
|
223
|
+
return G(this._config);
|
|
224
224
|
}
|
|
225
225
|
set legendMaxHeight(e) {
|
|
226
|
-
e !== void 0 &&
|
|
226
|
+
e !== void 0 && K(e, this._config);
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* Whether legend markers are rounded.
|
|
230
230
|
*/
|
|
231
231
|
get legendRoundMarker() {
|
|
232
|
-
return
|
|
232
|
+
return z(this._config);
|
|
233
233
|
}
|
|
234
234
|
set legendRoundMarker(e) {
|
|
235
|
-
|
|
235
|
+
A(e, this._config);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
a([
|