@arcgis/charts-components 5.2.0-next.54 → 5.2.0-next.55
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/{7RRVJPTW.js → 2IKZFZUE.js} +1 -1
- package/dist/cdn/{FZUKEGI7.js → 2X3OAYNV.js} +1 -1
- package/dist/cdn/{KNN4G3JB.js → 35POTOZQ.js} +1 -1
- package/dist/cdn/{AV73HH5X.js → 3DIYOKPZ.js} +1 -1
- package/dist/cdn/{EXCIMJOH.js → 3GSTHSH7.js} +1 -1
- package/dist/cdn/{ZZOKDSTD.js → 3GU4G523.js} +1 -1
- package/dist/cdn/{2BGSZGPZ.js → 3LMD4KUV.js} +1 -1
- package/dist/cdn/43ZZWFUB.js +2 -0
- package/dist/cdn/{UWAFXDFW.js → 47ZP4C6W.js} +1 -1
- package/dist/cdn/{OYWI5PAE.js → 4JIJUMOJ.js} +1 -1
- package/dist/cdn/{EKBZUXYB.js → 5IVUWORQ.js} +1 -1
- package/dist/cdn/{JT5VM5N6.js → 6EEZMNAM.js} +1 -1
- package/dist/cdn/{HFPPW74G.js → 6L6HZOZD.js} +1 -1
- package/dist/cdn/{W6FPVGPJ.js → 7FUBB222.js} +1 -1
- package/dist/cdn/{4WTYDOTA.js → AB6TCMRN.js} +1 -1
- package/dist/cdn/{KNP746RO.js → AMXNDR4I.js} +1 -1
- package/dist/cdn/{IL4TO3HW.js → B45AW3O4.js} +1 -1
- package/dist/cdn/{OQ56CBAK.js → B7UPRHNP.js} +1 -1
- package/dist/cdn/{LDMINI6S.js → BJJJ62EE.js} +1 -1
- package/dist/cdn/{HQ4XATLY.js → BPBAOPSD.js} +1 -1
- package/dist/cdn/{JI3UI5FQ.js → BSZZXXQG.js} +1 -1
- package/dist/cdn/{WLMD3CUK.js → DMRE2GYB.js} +1 -1
- package/dist/cdn/{IIRJV7HP.js → DY5EFYIC.js} +1 -1
- package/dist/cdn/{YUZVGY4R.js → F2LCVAD2.js} +1 -1
- package/dist/cdn/{4S3UBB4K.js → FIL44WXR.js} +1 -1
- package/dist/cdn/{HZDQYG6D.js → FZNNCU2C.js} +1 -1
- package/dist/cdn/{W65LLW5X.js → GGJZNR3O.js} +1 -1
- package/dist/cdn/{KMJ2IQP7.js → GGKKUTRH.js} +1 -1
- package/dist/cdn/{LVGR5T3E.js → GGPWJTK3.js} +1 -1
- package/dist/cdn/{BUOEEUYK.js → INVFC7O3.js} +1 -1
- package/dist/cdn/{3UBK3J76.js → JR4SQQU4.js} +1 -1
- package/dist/cdn/{J7XMDEFX.js → KFHPKJAT.js} +1 -1
- package/dist/cdn/{LYGQJLFB.js → KLS66MBI.js} +1 -1
- package/dist/cdn/{LBPN3OKH.js → L3TXFMLX.js} +1 -1
- package/dist/cdn/{O3N5YFJC.js → LCDVDWAP.js} +1 -1
- package/dist/cdn/{OZ5I3KXC.js → LLIEB6MK.js} +1 -1
- package/dist/cdn/{UVHDF33O.js → LS6GKMWR.js} +1 -1
- package/dist/cdn/{6ZIFXUKN.js → LVOIKCIC.js} +23 -23
- package/dist/cdn/{EZNGHLSR.js → MQCPDAMM.js} +1 -1
- package/dist/cdn/{SX4X3IVG.js → MQYXT4ZE.js} +1 -1
- package/dist/cdn/{4UJL6VJ3.js → N5DFUGTU.js} +1 -1
- package/dist/cdn/{UFB3GU6S.js → N7NVDG4G.js} +1 -1
- package/dist/cdn/{ZO4IZDFT.js → NENBP3B4.js} +1 -1
- package/dist/cdn/{U274OJKG.js → OL47BPWN.js} +1 -1
- package/dist/cdn/PAN7QMBU.js +3 -0
- package/dist/cdn/{QM25LJL6.js → PBSYMRFA.js} +1 -1
- package/dist/cdn/{JKHGXCTI.js → PD73QWUT.js} +1 -1
- package/dist/cdn/{23WDH4FI.js → PLSATV5N.js} +1 -1
- package/dist/cdn/{STE7V4ZZ.js → PNV7XBIH.js} +1 -1
- package/dist/cdn/{H6B2SK7Y.js → Q4CX7PBA.js} +1 -1
- package/dist/cdn/{KTRSRC2A.js → QCVMEX4J.js} +1 -1
- package/dist/cdn/{JMV4L7WL.js → QUNHRC77.js} +1 -1
- package/dist/cdn/{VPREA6CX.js → R5FNLYC5.js} +1 -1
- package/dist/cdn/{CQRB56BW.js → REPRW5PP.js} +1 -1
- package/dist/cdn/{JOXPPBNA.js → RQTGZRZH.js} +1 -1
- package/dist/cdn/{KB5UMMBY.js → RSSVWJA5.js} +1 -1
- package/dist/cdn/{GJKX6UCH.js → RY5RNGN5.js} +1 -1
- package/dist/cdn/{54B66D3D.js → SEORO35X.js} +1 -1
- package/dist/cdn/{43DN7ID6.js → SOQRI6W2.js} +1 -1
- package/dist/cdn/{OK4I2WDK.js → SPQDPL7T.js} +1 -1
- package/dist/cdn/{4N76NKSQ.js → SY4SHDWL.js} +1 -1
- package/dist/cdn/{3WDEAWZX.js → TRSLIVPM.js} +1 -1
- package/dist/cdn/{4NKFXLHB.js → TUBHNDX5.js} +1 -1
- package/dist/cdn/{D6WL3G34.js → UUG5P5AP.js} +1 -1
- package/dist/cdn/{6EGZEBLQ.js → VQOWMMEN.js} +1 -1
- package/dist/cdn/{WV7XTPHK.js → VW22WSUU.js} +1 -1
- package/dist/cdn/{QIUSAIXS.js → WBEI523H.js} +1 -1
- package/dist/cdn/{RZRAOK3W.js → WCPUB3NR.js} +1 -1
- package/dist/cdn/{4CNIERJX.js → WFYCP7JZ.js} +1 -1
- package/dist/cdn/{IZMUEFG7.js → WXQ6S6Z3.js} +2 -2
- package/dist/cdn/{LMN4NECB.js → XXTJGAQH.js} +1 -1
- package/dist/cdn/{LGBVDWMK.js → Y3JE7LSY.js} +1 -1
- package/dist/cdn/{B5MGM6AD.js → YQS2EQHT.js} +1 -1
- package/dist/cdn/{DYCCUVNT.js → YST2TFPV.js} +1 -1
- package/dist/cdn/{BSQZDV2P.js → Z726E2GN.js} +1 -1
- package/dist/cdn/{CI7R2F5C.js → ZB7AKPZU.js} +1 -1
- package/dist/cdn/{WSHLYTT6.js → ZFN2VAFO.js} +1 -1
- package/dist/cdn/{LF3I5SMX.js → ZLUIQN7F.js} +1 -1
- package/dist/cdn/{PZZLUH6L.js → ZREU3AFM.js} +1 -1
- package/dist/cdn/{ORKE6J33.js → ZX2RKC3N.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/data.js +5 -5
- package/dist/chunks/index2.js +1739 -1734
- package/dist/chunks/index4.js +10 -1
- package/dist/chunks/serial-chart-data.js +1 -1
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +3603 -3616
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +113 -113
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/json-schema/index.d.ts +13 -4
- package/dist/spec/data-source.d.ts +1 -1
- package/dist/utils/chart-config/converter/index.js +1 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/cdn/2GEIEFIX.js +0 -2
- package/dist/cdn/35R7YJXM.js +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { repeat as
|
|
2
|
+
import { c as _ } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as V } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
|
-
import { createModel as
|
|
6
|
-
import { g as S, i as T, v as
|
|
5
|
+
import { createModel as U } from "../../model/shared/setup-utils.js";
|
|
6
|
+
import { g as S, i as T, v as R, k as v, m as I } from "../../chunks/type-guards2.js";
|
|
7
7
|
import { i as z } from "../../chunks/rotated-state.js";
|
|
8
8
|
import { substitute as H } from "@arcgis/core/intl.js";
|
|
9
9
|
import { C as n } from "../../chunks/interfaces.js";
|
|
@@ -14,14 +14,14 @@ import { LitElement as W, createEvent as f, renderElement as L, safeStyleMap as
|
|
|
14
14
|
import { css as X, html as h } from "lit";
|
|
15
15
|
import { createRef as Z, ref as K } from "lit/directives/ref.js";
|
|
16
16
|
import { u as P } from "../../chunks/useT9n.js";
|
|
17
|
-
import { c as j, a as
|
|
18
|
-
import {
|
|
17
|
+
import { c as j, a as $, g as q } from "../../chunks/store.js";
|
|
18
|
+
import { d2 as Y, _ as Q, d3 as J, K as ee, b$ as te } from "../../chunks/index2.js";
|
|
19
19
|
import { A as ae } from "../../chunks/axis-model-wrapper.js";
|
|
20
|
-
import { h as
|
|
21
|
-
import { a as
|
|
20
|
+
import { h as se, f as y } from "../../chunks/web-component-utils.js";
|
|
21
|
+
import { a as ie } from "../../chunks/chart-ui-utils2.js";
|
|
22
22
|
import { C as M } from "../../chunks/index6.js";
|
|
23
23
|
import { a as B } from "../../chunks/chart-ui-utils.js";
|
|
24
|
-
import { d as re, e as
|
|
24
|
+
import { d as re, e as x } from "../../chunks/type-guards.js";
|
|
25
25
|
import { r as oe } from "../../chunks/popover-ui-utils.js";
|
|
26
26
|
import { u as o, s as le } from "../../chunks/chart-object-literals.js";
|
|
27
27
|
const p = {
|
|
@@ -30,54 +30,54 @@ const p = {
|
|
|
30
30
|
tab: "tab"
|
|
31
31
|
};
|
|
32
32
|
function w(m, e) {
|
|
33
|
-
const
|
|
33
|
+
const s = /* @__PURE__ */ new Set();
|
|
34
34
|
let t = e;
|
|
35
|
-
return m?.forEach((a,
|
|
35
|
+
return m?.forEach((a, i) => {
|
|
36
36
|
const r = a.chartId;
|
|
37
|
-
(
|
|
37
|
+
(s.has(r) || r === void 0 || r === "") && (a.chartId = `Chart_${Date.now()}_${i}`, e === r && (t = a.chartId)), s.add(r);
|
|
38
38
|
}), t;
|
|
39
39
|
}
|
|
40
|
-
function ne(m, e,
|
|
41
|
-
return m?.filter((t) => E(
|
|
40
|
+
function ne(m, e, s) {
|
|
41
|
+
return m?.filter((t) => E(s, t.config) && t.layer?.id === e) ?? [];
|
|
42
42
|
}
|
|
43
43
|
function ce(m) {
|
|
44
|
-
const { modelList: e, layerList:
|
|
44
|
+
const { modelList: e, layerList: s, activeLayerId: t, disableEditing: a } = m, i = /* @__PURE__ */ new Map();
|
|
45
45
|
return e?.forEach((r) => {
|
|
46
46
|
const l = r.layer;
|
|
47
|
-
l &&
|
|
48
|
-
}), a ||
|
|
47
|
+
l && i.set(l.id, l);
|
|
48
|
+
}), a || s.forEach((r) => i.set(r.id, r)), Array.from(i.values()).filter((r) => !t || r.id === t);
|
|
49
49
|
}
|
|
50
50
|
function he(m, e) {
|
|
51
|
-
m.forEach((
|
|
51
|
+
m.forEach((s) => {
|
|
52
52
|
e.forEach((t) => {
|
|
53
|
-
|
|
53
|
+
s?.id === t.layer?.id && A(s, t);
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function A(m, e) {
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
const t = [...
|
|
61
|
-
let
|
|
62
|
-
a !== void 0 && a > -1 ? (
|
|
58
|
+
const s = m;
|
|
59
|
+
if (s) {
|
|
60
|
+
const t = [...s?.charts ?? []], a = t?.findIndex((r) => r.id === e.chartId);
|
|
61
|
+
let i = !1;
|
|
62
|
+
a !== void 0 && a > -1 ? (i = !D(t[a], e.config), t[a] = e.config) : s && !F(e.config) && (i = !0, t.push(e.config)), i && (s.charts = t);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
function de(m, e) {
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
const t = [...
|
|
69
|
-
a > -1 && (t.splice(a, 1),
|
|
66
|
+
const s = m;
|
|
67
|
+
if (s) {
|
|
68
|
+
const t = [...s.charts ?? []], a = t.findIndex((i) => i.id === e);
|
|
69
|
+
a > -1 && (t.splice(a, 1), s.charts = t);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
function pe(m, e) {
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
let t = [...
|
|
73
|
+
const s = m;
|
|
74
|
+
if (s) {
|
|
75
|
+
let t = [...s.charts ?? []];
|
|
76
76
|
t = k({
|
|
77
77
|
arrayA: t,
|
|
78
78
|
arrayB: e.map((a) => a.config),
|
|
79
79
|
getKey: (a) => a.id ?? a.title?.content.text ?? ""
|
|
80
|
-
}),
|
|
80
|
+
}), s.charts = t;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
const me = X`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
@@ -92,9 +92,9 @@ class ue extends W {
|
|
|
92
92
|
o.ScatterSeries,
|
|
93
93
|
o.HeatSeries
|
|
94
94
|
], this._messages = P(), this.commonStrings = P({ name: "common", blocking: !0 }), this.chartDataProcessComplete = (e) => {
|
|
95
|
-
const
|
|
96
|
-
if (a?.isSameChartAs(
|
|
97
|
-
switch (
|
|
95
|
+
const s = e, { chartData: t, model: a } = s.detail, i = this.getModel(this.selectedChartId);
|
|
96
|
+
if (a?.isSameChartAs(i))
|
|
97
|
+
switch (i?.chartType) {
|
|
98
98
|
case o.HistogramSeries:
|
|
99
99
|
if (this.chartData = t, a && (a.dataStore.chartData = t, re(a.layer))) {
|
|
100
100
|
const l = a, c = t?.bins?.length;
|
|
@@ -108,21 +108,21 @@ class ue extends W {
|
|
|
108
108
|
case o.ScatterSeries: {
|
|
109
109
|
const l = t, { dataItems: c, r2: g, aggregated: u } = l;
|
|
110
110
|
let C = g;
|
|
111
|
-
Number.isFinite(g) || (C = void 0), this.r2 = C,
|
|
111
|
+
Number.isFinite(g) || (C = void 0), this.r2 = C, R(a) && (a.dataStore.r2 = C, a.dataStore.aggregated = u, u && (a.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(c), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
case o.LineSeries:
|
|
115
115
|
case o.BarSeries: {
|
|
116
116
|
const { dataItems: l, timeIntervalInfo: c } = t;
|
|
117
|
-
if ((S(
|
|
118
|
-
const g =
|
|
119
|
-
u && C === void 0 && (
|
|
117
|
+
if ((S(i) || T(i) && i.binTemporalData) && (c?.size !== void 0 && i.temporalBinningSize !== c?.size && (i.temporalBinningSize = c?.size), c?.unit !== void 0 && i.temporalBinningUnit !== c?.unit && c?.unit !== le.Quarter && (i.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && j($, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(l), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds), T(i)) {
|
|
118
|
+
const g = i.xAxisField, u = l.some((N) => N[g] === null), C = i.nullCategory;
|
|
119
|
+
u && C === void 0 && (i.nullCategory = O.nullCategory);
|
|
120
120
|
}
|
|
121
121
|
break;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}, this.chartAxesMinMaxChange = (e) => {
|
|
125
|
-
const
|
|
125
|
+
const s = e, { bounds: t, model: a } = s.detail, i = this.getModel(this.selectedChartId), r = a?.isSameChartAs(i), l = i?.chartType;
|
|
126
126
|
if (r)
|
|
127
127
|
switch (l) {
|
|
128
128
|
case o.BarSeries:
|
|
@@ -134,9 +134,9 @@ class ue extends W {
|
|
|
134
134
|
break;
|
|
135
135
|
}
|
|
136
136
|
}, this.chartSeriesColorChange = (e) => {
|
|
137
|
-
const
|
|
138
|
-
if (a?.isSameChartAs(
|
|
139
|
-
switch (
|
|
137
|
+
const s = e, { data: t, model: a } = s.detail, i = this.getModel(this.selectedChartId);
|
|
138
|
+
if (a?.isSameChartAs(i))
|
|
139
|
+
switch (i?.chartType) {
|
|
140
140
|
case o.BarSeries:
|
|
141
141
|
case o.BoxPlotSeries:
|
|
142
142
|
case o.LineSeries:
|
|
@@ -151,7 +151,7 @@ class ue extends W {
|
|
|
151
151
|
case o.ScatterSeries:
|
|
152
152
|
}
|
|
153
153
|
}, this.chartNoRenderPropChange = (e) => {
|
|
154
|
-
const
|
|
154
|
+
const s = e, { propName: t, value: a, model: i } = s.detail, r = this.modelList.find((l) => i?.isSameChartAs(l));
|
|
155
155
|
if (r)
|
|
156
156
|
switch (t) {
|
|
157
157
|
case "rotation":
|
|
@@ -165,28 +165,28 @@ class ue extends W {
|
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
167
|
}, this.chartLegendItemVisibilityChange = (e) => {
|
|
168
|
-
const
|
|
169
|
-
|
|
168
|
+
const s = e, { legendItemVisibility: t, model: a } = s.detail, i = this.modelList.find((r) => a?.isSameChartAs(r));
|
|
169
|
+
i?.setSeriesVisibility(t), I(i) && ((i.getMinBound(1) === null || Number.isNaN(i.getMinBound(1))) && i.setMinBound(null, 1), (i.getMaxBound(1) === null || Number.isNaN(i.getMaxBound(1))) && i.setMaxBound(null, 1), S(i) && ((i.getMinBound(0) === null || Number.isNaN(i.getMinBound(0))) && i.setMinBound(null, 0), (i.getMaxBound(0) === null || Number.isNaN(i.getMaxBound(0))) && i.setMaxBound(null, 0)));
|
|
170
170
|
}, this.onSelectChartTypeChange = (e) => {
|
|
171
171
|
this.currentChartTypeText = "", this.calculatedDataMinMaxBounds = void 0, this.calculatedMinMaxBounds = void 0, this.removeSelectChartTypePopover();
|
|
172
|
-
const { selectedModelType:
|
|
173
|
-
|
|
172
|
+
const { selectedModelType: s, layerId: t } = e.target;
|
|
173
|
+
s !== void 0 && (this.allowChartSyncing = !0, this.arcgisChartsConfigNewChart.emit({
|
|
174
174
|
key: "key",
|
|
175
|
-
chartType:
|
|
175
|
+
chartType: s,
|
|
176
176
|
layerId: t
|
|
177
177
|
}));
|
|
178
178
|
}, this.onAddChartClose = () => {
|
|
179
179
|
this.removeSelectChartTypePopover();
|
|
180
180
|
}, this.onModelConfigChange = (e) => {
|
|
181
181
|
if (this.syncChartsToLayers && this.allowChartSyncing) {
|
|
182
|
-
const
|
|
183
|
-
A(
|
|
182
|
+
const s = e.target;
|
|
183
|
+
A(s?.layer, s);
|
|
184
184
|
}
|
|
185
185
|
this.requestUpdate();
|
|
186
186
|
}, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.close = !1, this.usePopupTemplateFieldsInfo = !1, this.panelNumber = 0, this.filterBySelection = !1, this.arcgisChartsConfigChartViewChartClose = f(), this.arcgisChartsConfigModelListChange = f(), this.arcgisChartsConfigNewChart = f(), this.arcgisChartsConfigPanelNumberChange = f(), this.arcgisChartsConfigSelectedChartChange = f(), this.addChartEventListeners(), this.listen("arcgisChartsConfigModelListReorder", this.modelListReorderChangeListener);
|
|
187
187
|
}
|
|
188
188
|
static {
|
|
189
|
-
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: y }], layerList: [0, { hasChanged: y }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1, close: 5, chartData: [0, { hasChanged: y }], r2: 9, calculatedDataMinMaxBounds: [0, { hasChanged: y }], calculatedMinMaxBounds: [0, { hasChanged: y }], seriesColor: [0, { hasChanged:
|
|
189
|
+
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: y }], layerList: [0, { hasChanged: y }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1, close: 5, chartData: [0, { hasChanged: y }], r2: 9, calculatedDataMinMaxBounds: [0, { hasChanged: y }], calculatedMinMaxBounds: [0, { hasChanged: y }], seriesColor: [0, { hasChanged: se }], popoverPlacement: 1, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5, panelNumber: 9, filterBySelection: 5 };
|
|
190
190
|
}
|
|
191
191
|
static {
|
|
192
192
|
this.styles = me;
|
|
@@ -206,22 +206,22 @@ class ue extends W {
|
|
|
206
206
|
super.disconnectedCallback(), this.clearPartialModels(), this.removeSelectChartTypePopover();
|
|
207
207
|
}
|
|
208
208
|
modelListReorderChangeListener(e) {
|
|
209
|
-
const { modelList:
|
|
209
|
+
const { modelList: s } = e.detail;
|
|
210
210
|
if (this.modelList = k({
|
|
211
211
|
arrayA: this.modelList,
|
|
212
|
-
arrayB:
|
|
212
|
+
arrayB: s,
|
|
213
213
|
getKey: (t) => t.chartId ?? t.titleText ?? ""
|
|
214
214
|
}), this.syncChartsToLayers) {
|
|
215
|
-
const t =
|
|
215
|
+
const t = s.find((a) => a.layer?.id !== void 0)?.layer?.id;
|
|
216
216
|
if (t) {
|
|
217
|
-
const a = this.layerList.find((
|
|
218
|
-
a && pe(a,
|
|
217
|
+
const a = this.layerList.find((i) => i.id.toString() === t);
|
|
218
|
+
a && pe(a, s);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
async layerListChange() {
|
|
223
|
-
const e = [],
|
|
224
|
-
let t = [...this.modelList.filter((a) =>
|
|
223
|
+
const e = [], s = this.layerList.map((a) => a.id.toString());
|
|
224
|
+
let t = [...this.modelList.filter((a) => s.includes(a.layer?.id ?? ""))];
|
|
225
225
|
for (let a of this.layerList ?? []) {
|
|
226
226
|
if (a.type === "sublayer") {
|
|
227
227
|
const l = await a.createFeatureLayer();
|
|
@@ -231,7 +231,7 @@ class ue extends W {
|
|
|
231
231
|
}
|
|
232
232
|
const r = a.charts;
|
|
233
233
|
for (const l of r ?? []) {
|
|
234
|
-
const c = await
|
|
234
|
+
const c = await U({
|
|
235
235
|
layer: a,
|
|
236
236
|
config: l,
|
|
237
237
|
commonStrings: this.commonStrings
|
|
@@ -243,8 +243,8 @@ class ue extends W {
|
|
|
243
243
|
t.find((r) => r.isSameChartAs(a)) === void 0 && t.push(a);
|
|
244
244
|
}), t = t.filter((a) => !Y(a.config)), this.modelList = t;
|
|
245
245
|
}
|
|
246
|
-
modelListChange(e,
|
|
247
|
-
this.selectedChartId = w(e, this.selectedChartId),
|
|
246
|
+
modelListChange(e, s) {
|
|
247
|
+
this.selectedChartId = w(e, this.selectedChartId), s?.forEach((a) => {
|
|
248
248
|
a.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
249
249
|
}), e.forEach((a) => {
|
|
250
250
|
a.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -258,14 +258,14 @@ class ue extends W {
|
|
|
258
258
|
}
|
|
259
259
|
selectedChartIdChange(e) {
|
|
260
260
|
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = n.Data;
|
|
261
|
-
const
|
|
262
|
-
this.setEventBasedPropsFromModelData(
|
|
263
|
-
chartType:
|
|
261
|
+
const s = this.getModel(e);
|
|
262
|
+
this.setEventBasedPropsFromModelData(s), this.currentChartTypeText = s?.chartType !== void 0 ? B({
|
|
263
|
+
chartType: s.chartType,
|
|
264
264
|
commonStrings: this.commonStrings,
|
|
265
|
-
config:
|
|
266
|
-
}) : "", e !== void 0 && e !==
|
|
265
|
+
config: s.config
|
|
266
|
+
}) : "", e !== void 0 && e !== $.selectedChartId && ($.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
267
267
|
key: "key",
|
|
268
|
-
model:
|
|
268
|
+
model: s
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
panelNumberChange(e) {
|
|
@@ -275,33 +275,33 @@ class ue extends W {
|
|
|
275
275
|
this.listenOn(document, M.DataProcessComplete, this.chartDataProcessComplete), this.listenOn(document, M.AxesMinMaxChange, this.chartAxesMinMaxChange), this.listenOn(document, M.SeriesColorChange, this.chartSeriesColorChange), this.listenOn(document, M.NoRenderPropChange, this.chartNoRenderPropChange), this.listenOn(document, M.LegendItemVisibilityChange, this.chartLegendItemVisibilityChange);
|
|
276
276
|
}
|
|
277
277
|
getDataExtent(e) {
|
|
278
|
-
const
|
|
278
|
+
const s = this.getModel(this.selectedChartId)?.config;
|
|
279
279
|
let t = [];
|
|
280
|
-
if (
|
|
280
|
+
if (s !== void 0 && e !== void 0) {
|
|
281
281
|
const a = Q({
|
|
282
|
-
chartConfig:
|
|
282
|
+
chartConfig: s,
|
|
283
283
|
chartData: e
|
|
284
|
-
}), { minY:
|
|
284
|
+
}), { minY: i, maxY: r, minX: l, maxX: c } = a;
|
|
285
285
|
t = [
|
|
286
286
|
{ isXAxis: !0, minimum: l, maximum: c },
|
|
287
|
-
{ isXAxis: !1, minimum:
|
|
287
|
+
{ isXAxis: !1, minimum: i, maximum: r }
|
|
288
288
|
];
|
|
289
289
|
}
|
|
290
290
|
return t;
|
|
291
291
|
}
|
|
292
292
|
updateAxesBoundsInAppState(e) {
|
|
293
|
-
e?.forEach((
|
|
294
|
-
const { isXAxis: t, maximum: a, minimum:
|
|
293
|
+
e?.forEach((s) => {
|
|
294
|
+
const { isXAxis: t, maximum: a, minimum: i } = s, r = this.getModel(this.selectedChartId);
|
|
295
295
|
if (r !== void 0 && I(r) && this.selectedChartId !== void 0) {
|
|
296
296
|
const l = new ae(r, t), c = q({
|
|
297
297
|
chartId: this.selectedChartId,
|
|
298
298
|
isXAxis: t,
|
|
299
299
|
isLogarithmic: l.getLogarithmic()
|
|
300
|
-
}), g =
|
|
300
|
+
}), g = $.chartAxesBoundDataMap;
|
|
301
301
|
g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
|
|
302
302
|
const u = g[this.selectedChartId]?.[c], C = {
|
|
303
|
-
defaultMinBound: u?.defaultMinBound === u?.currMinBound ?
|
|
304
|
-
currMinBound:
|
|
303
|
+
defaultMinBound: u?.defaultMinBound === u?.currMinBound ? i : u?.defaultMinBound,
|
|
304
|
+
currMinBound: i,
|
|
305
305
|
defaultMaxBound: u?.defaultMaxBound === u?.currMaxBound ? a : u?.defaultMaxBound,
|
|
306
306
|
currMaxBound: a
|
|
307
307
|
};
|
|
@@ -317,20 +317,20 @@ class ue extends W {
|
|
|
317
317
|
this.panelNumber -= 1;
|
|
318
318
|
}
|
|
319
319
|
async onAddChartClick(e) {
|
|
320
|
-
const { referenceElement:
|
|
321
|
-
let
|
|
322
|
-
if (
|
|
320
|
+
const { referenceElement: s, layerId: t, layerType: a } = e.detail;
|
|
321
|
+
let i = !0;
|
|
322
|
+
if (x(a) && t) {
|
|
323
323
|
const r = this.layerList.find((l) => l.id === t);
|
|
324
|
-
|
|
324
|
+
x(r?.type) && (i = !!(await ee(r))?.attributeTable);
|
|
325
325
|
}
|
|
326
|
-
this.setupSelectChartTypePopover(
|
|
326
|
+
this.setupSelectChartTypePopover(s, t, a, i);
|
|
327
327
|
}
|
|
328
|
-
setupSelectChartTypePopover(e,
|
|
329
|
-
const
|
|
330
|
-
this.removeSelectChartTypePopover(), this.selectChartTypePopover = L(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${
|
|
328
|
+
setupSelectChartTypePopover(e, s, t, a = !0) {
|
|
329
|
+
const i = this.getPlacement();
|
|
330
|
+
this.removeSelectChartTypePopover(), this.selectChartTypePopover = L(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${s} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${i} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`), !document.body.contains(this.selectChartTypePopover) && this.selectChartTypePopover !== null && document.body.appendChild(this.selectChartTypePopover);
|
|
331
331
|
}
|
|
332
332
|
getModel(e) {
|
|
333
|
-
return this.modelList?.find((
|
|
333
|
+
return this.modelList?.find((s) => s.chartId === e);
|
|
334
334
|
}
|
|
335
335
|
removeSelectChartTypePopover() {
|
|
336
336
|
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = oe(this.selectChartTypePopover));
|
|
@@ -339,10 +339,10 @@ class ue extends W {
|
|
|
339
339
|
this.modelList = this.modelList.filter((e) => !F(e.config));
|
|
340
340
|
}
|
|
341
341
|
onViewChartDelete(e) {
|
|
342
|
-
const { chartId:
|
|
343
|
-
if (
|
|
344
|
-
const t = this.modelList.find((
|
|
345
|
-
this.modelList = [...this.modelList.filter((
|
|
342
|
+
const { chartId: s } = e.detail;
|
|
343
|
+
if (s !== void 0) {
|
|
344
|
+
const t = this.modelList.find((i) => i.chartId === s), a = this.layerList.find((i) => i.id === t?.layer?.id);
|
|
345
|
+
this.modelList = [...this.modelList.filter((i) => i.chartId !== s)], a && this.syncChartsToLayers && this.allowChartSyncing && de(a, s);
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
onViewChartsSelect(e) {
|
|
@@ -361,9 +361,9 @@ class ue extends W {
|
|
|
361
361
|
this.chartData = e?.dataStore.chartData, this.r2 = e?.dataStore.r2, this.seriesColor = e?.dataStore.seriesColor, this.calculatedMinMaxBounds = e?.dataStore.calculatedMinMaxBounds, this.calculatedDataMinMaxBounds = e?.dataStore.calculatedDataMinMaxBounds;
|
|
362
362
|
}
|
|
363
363
|
createTooltip(e) {
|
|
364
|
-
const
|
|
364
|
+
const s = e.target;
|
|
365
365
|
let t = "";
|
|
366
|
-
switch (
|
|
366
|
+
switch (s.icon) {
|
|
367
367
|
case "configure":
|
|
368
368
|
t = this._messages.data ?? "";
|
|
369
369
|
break;
|
|
@@ -391,10 +391,10 @@ class ue extends W {
|
|
|
391
391
|
t = "";
|
|
392
392
|
break;
|
|
393
393
|
}
|
|
394
|
-
this.tooltip = L(h`<calcite-tooltip style=${G({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${
|
|
394
|
+
this.tooltip = L(h`<calcite-tooltip style=${G({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${s} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
395
395
|
}
|
|
396
396
|
destroyTooltip() {
|
|
397
|
-
|
|
397
|
+
ie(this.tooltip);
|
|
398
398
|
}
|
|
399
399
|
renderViewCharts() {
|
|
400
400
|
const e = ce({
|
|
@@ -403,7 +403,7 @@ class ue extends W {
|
|
|
403
403
|
activeLayerId: this.activeLayerId,
|
|
404
404
|
disableEditing: this.disableEditing
|
|
405
405
|
});
|
|
406
|
-
return
|
|
406
|
+
return V(e, (s) => s.id, (s) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ne(this.modelList, s.id.toString(), x(s.type) ? te : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${s} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
407
407
|
}
|
|
408
408
|
render() {
|
|
409
409
|
return this.close ? null : h`<calcite-flow>${b("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${K(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
@@ -417,53 +417,53 @@ class ue extends W {
|
|
|
417
417
|
this.selectedPanel = n.Data;
|
|
418
418
|
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
419
419
|
this.selectedPanel = n.Series;
|
|
420
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
420
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
421
421
|
this.selectedPanel = n.Series;
|
|
422
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(p.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
422
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(p.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
423
423
|
this.selectedPanel = n.Series;
|
|
424
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === n.Slices} @click=${() => {
|
|
424
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === n.Slices} @click=${() => {
|
|
425
425
|
this.selectedPanel = n.Slices;
|
|
426
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === n.Axes} @click=${() => {
|
|
426
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices ?? ""}></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === n.Axes} @click=${() => {
|
|
427
427
|
this.selectedPanel = n.Axes;
|
|
428
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === n.Guides} @click=${() => {
|
|
428
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes ?? ""}></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === n.Guides} @click=${() => {
|
|
429
429
|
this.selectedPanel = n.Guides;
|
|
430
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}<calcite-action class=${d(p.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === n.Format} @click=${() => {
|
|
430
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides ?? ""}></calcite-action>` : null}<calcite-action class=${d(p.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === n.Format} @click=${() => {
|
|
431
431
|
this.selectedPanel = n.Format;
|
|
432
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${d(p.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === n.General} @click=${() => {
|
|
432
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format ?? ""}></calcite-action><calcite-action class=${d(p.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === n.General} @click=${() => {
|
|
433
433
|
this.selectedPanel = n.General;
|
|
434
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
434
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general ?? ""}></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
435
435
|
}
|
|
436
436
|
renderChartUIComponent() {
|
|
437
|
-
const e = this.getModel(this.selectedChartId),
|
|
437
|
+
const e = this.getModel(this.selectedChartId), s = e?.layer;
|
|
438
438
|
let t = null;
|
|
439
439
|
if (e !== void 0 && !this.disableEditing)
|
|
440
440
|
switch (e?.chartType) {
|
|
441
441
|
case o.BarSeries:
|
|
442
|
-
t = h`<arcgis-charts-config-bar-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
442
|
+
t = h`<arcgis-charts-config-bar-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
|
|
443
443
|
break;
|
|
444
444
|
case o.LineSeries:
|
|
445
|
-
t = h`<arcgis-charts-config-line-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
445
|
+
t = h`<arcgis-charts-config-line-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
|
|
446
446
|
break;
|
|
447
447
|
case o.PieSeries:
|
|
448
|
-
t = h`<arcgis-charts-config-pie-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
448
|
+
t = h`<arcgis-charts-config-pie-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .chartData=${this.chartData} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
|
|
449
449
|
break;
|
|
450
450
|
case o.HistogramSeries:
|
|
451
|
-
t = h`<arcgis-charts-config-histogram class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
451
|
+
t = h`<arcgis-charts-config-histogram class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
|
|
452
452
|
break;
|
|
453
453
|
case o.ScatterSeries:
|
|
454
|
-
t = h`<arcgis-charts-config-scatter-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
454
|
+
t = h`<arcgis-charts-config-scatter-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
|
|
455
455
|
break;
|
|
456
456
|
case o.BoxPlotSeries:
|
|
457
|
-
t = h`<arcgis-charts-config-box-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
457
|
+
t = h`<arcgis-charts-config-box-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
|
|
458
458
|
break;
|
|
459
459
|
case o.HeatSeries:
|
|
460
|
-
t = h`<arcgis-charts-config-heat-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
460
|
+
t = h`<arcgis-charts-config-heat-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data}></arcgis-charts-config-heat-chart>`;
|
|
461
461
|
break;
|
|
462
462
|
}
|
|
463
463
|
return t;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
|
|
466
|
+
_("arcgis-charts-config-create-flow", ue);
|
|
467
467
|
export {
|
|
468
468
|
ue as ArcgisChartsConfigCreateFlow
|
|
469
469
|
};
|
|
@@ -264,7 +264,7 @@ class se extends A {
|
|
|
264
264
|
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = ae(this.heatChartPopover));
|
|
265
265
|
}
|
|
266
266
|
setDefaultPropertiesForCalendarHeatChart() {
|
|
267
|
-
this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(j.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = F.naturalBreaks), this.model.heatRulesType !== u.Renderer && (this.model.heatRulesType = u.Renderer), this.model.viewType === void 0 && (this.model.viewType = Y.singleCalendarView), (this.model.aggregationType === m.Count || this.model.aggregationType === m.Sum) && this.model.nullPolicy !== h.Zero && (this.model.nullPolicy = h.Zero), this.model.colorRampName = $.defaultColorRampForCharts?.name;
|
|
267
|
+
this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(j.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = F.naturalBreaks), this.model.heatRulesType !== u.Renderer && (this.model.heatRulesType = u.Renderer), this.model.viewType === void 0 && (this.model.viewType = Y.singleCalendarView), (this.model.aggregationType === m.Count || this.model.aggregationType === m.Sum) && this.model.nullPolicy !== h.Zero && (this.model.nullPolicy = h.Zero), this.model.colorRampName === void 0 && (this.model.colorRampName = $.defaultColorRampForCharts?.name);
|
|
268
268
|
}
|
|
269
269
|
renderXAxisFieldSelect() {
|
|
270
270
|
const e = this.getCorrectedXAxisFieldValue();
|
|
@@ -298,7 +298,7 @@ class se extends A {
|
|
|
298
298
|
const t = a !== void 0 ? z(a.symbol.color) : "#FFFFFF";
|
|
299
299
|
return i`<div class=${o(r.colorRampSegment)} style=${B({ backgroundColor: t, width: `${100 / this.model.breaksCount}%` })}></div>`;
|
|
300
300
|
});
|
|
301
|
-
return i`<arcgis-charts-config-field-picker label @click=${this.onColorSchemeSelect} ${c(this.colorSchemeElement)}><div slot=
|
|
301
|
+
return i`<arcgis-charts-config-field-picker label @click=${this.onColorSchemeSelect} ${c(this.colorSchemeElement)}><div slot=fieldPickerSlot class=${o(r.colorRamp)}>${e}</div></arcgis-charts-config-field-picker>`;
|
|
302
302
|
}
|
|
303
303
|
renderClassBreaksTable() {
|
|
304
304
|
const e = this.model.chartRenderer?.classBreakInfos ?? [];
|