@arcgis/charts-components 5.2.0-next.70 → 5.2.0-next.71
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/{MFYVUIPM.js → 25MA553Z.js} +1 -1
- package/dist/cdn/{FNJOMPCS.js → 27RKQQPS.js} +1 -1
- package/dist/cdn/{3PJG5RPA.js → 2K4MIK4T.js} +1 -1
- package/dist/cdn/{UW3WL44H.js → 2SLJKRSD.js} +1 -1
- package/dist/cdn/{WTB23TU5.js → 33JR3GH6.js} +1 -1
- package/dist/cdn/{ZSTPZFF6.js → 3B6QE7OV.js} +1 -1
- package/dist/cdn/3FM3YR57.js +2 -0
- package/dist/cdn/{55FTLFES.js → 3PDVKKKZ.js} +1 -1
- package/dist/cdn/{7GO7L6K4.js → 3V4ZETXH.js} +1 -1
- package/dist/cdn/{LTHNRIKF.js → 3WOYVXSZ.js} +1 -1
- package/dist/cdn/{E76O5CL2.js → 3XB2RWHK.js} +1 -1
- package/dist/cdn/{7AFOMUPB.js → 4DC4ARHU.js} +1 -1
- package/dist/cdn/{BKENQZVC.js → 4IO3VF3L.js} +1 -1
- package/dist/cdn/{24UNROUY.js → 4JUR3VIE.js} +1 -1
- package/dist/cdn/{5BMIWC4E.js → 4JWIBRGO.js} +1 -1
- package/dist/cdn/{3FNSOFZW.js → 4M4SAEH4.js} +1 -1
- package/dist/cdn/{MFVIGPEF.js → 4ODTQZJK.js} +1 -1
- package/dist/cdn/{NS22JUJ7.js → 54VUGIAU.js} +1 -1
- package/dist/cdn/{7IUKJ5PU.js → 5GZDXWTQ.js} +1 -1
- package/dist/cdn/{UXVU3KHY.js → 5NVOWYWZ.js} +1 -1
- package/dist/cdn/{7ENBCEQR.js → 6TJIHHQF.js} +1 -1
- package/dist/cdn/{SKQQFLCU.js → 7KNUJIOC.js} +1 -1
- package/dist/cdn/{SNLS5YDJ.js → 7REEJ3OW.js} +1 -1
- package/dist/cdn/{2WVTUVN4.js → 7XWR4EVM.js} +1 -1
- package/dist/cdn/{4SHVP5PZ.js → AVE3KXWQ.js} +1 -1
- package/dist/cdn/{KHGILG5X.js → BAFCVCT4.js} +1 -1
- package/dist/cdn/{GZVU6ATV.js → BNNBHYRP.js} +1 -1
- package/dist/cdn/BQORJ3LU.js +2 -0
- package/dist/cdn/{CQS3N3YT.js → BZ6FUIQF.js} +1 -1
- package/dist/cdn/CNI32IL3.js +2 -0
- package/dist/cdn/CRQK4CKK.js +2 -0
- package/dist/cdn/{OF3OQQID.js → CVFKL3S2.js} +1 -1
- package/dist/cdn/{76BU2ZWA.js → DT5BOM5F.js} +1 -1
- package/dist/cdn/{BIPFB5HW.js → E7QFC64H.js} +1 -1
- package/dist/cdn/{CGCRNEFM.js → EJWHEBKW.js} +1 -1
- package/dist/cdn/{KEHRL2MP.js → F5AR3N3Z.js} +1 -1
- package/dist/cdn/{TYVMAK67.js → GIH3U7YP.js} +1 -1
- package/dist/cdn/{LZABQV52.js → GKEW5JYD.js} +1 -1
- package/dist/cdn/{S6C5PJP4.js → I5DMUUEL.js} +1 -1
- package/dist/cdn/{MLPHSOJB.js → IK4FPUFJ.js} +1 -1
- package/dist/cdn/{CH7EMYXL.js → IO6A77U4.js} +1 -1
- package/dist/cdn/{MGUUHKYW.js → IODRBLGT.js} +1 -1
- package/dist/cdn/{OJDYJETX.js → JAQYU6KP.js} +1 -1
- package/dist/cdn/{6PGKTC6F.js → JYLEN3VQ.js} +1 -1
- package/dist/cdn/{P4VJYOCL.js → K6F2LRKI.js} +1 -1
- package/dist/cdn/{2GXX5IMS.js → L6DFXTSQ.js} +1 -1
- package/dist/cdn/{NJKSUAO7.js → LAPBDR32.js} +1 -1
- package/dist/cdn/{HEWG4ZZE.js → LIDWAYQH.js} +1 -1
- package/dist/cdn/{DGGCAG3N.js → LPYRKK25.js} +1 -1
- package/dist/cdn/{ANMO6CLA.js → MAC4MPUA.js} +1 -1
- package/dist/cdn/{EKBLEUCP.js → MOG5ZVLX.js} +1 -1
- package/dist/cdn/{VWOS4FBW.js → NAGOJPIX.js} +1 -1
- package/dist/cdn/{CWSAYMFQ.js → NF4EBNLN.js} +1 -1
- package/dist/cdn/{XRRDA4TC.js → NP24UZGI.js} +1 -1
- package/dist/cdn/{BSCFYA5P.js → NUHPR7BM.js} +1 -1
- package/dist/cdn/{OCYSGUCY.js → O2BQ374Y.js} +1 -1
- package/dist/cdn/{UGAHTOBA.js → OE7FIKPS.js} +1 -1
- package/dist/cdn/{AQOCENW4.js → OE7Q4MG5.js} +1 -1
- package/dist/cdn/{VZCYTHM2.js → OTFA727N.js} +1 -1
- package/dist/cdn/{V75KABKD.js → P6DBPQZO.js} +1 -1
- package/dist/cdn/{T2G5XRL5.js → PIEX577B.js} +1 -1
- package/dist/cdn/{P3WSMZJU.js → PTUMQCFF.js} +1 -1
- package/dist/cdn/{LNRNJHH3.js → QAXXYD6N.js} +1 -1
- package/dist/cdn/{PZ3FNMU7.js → QC3FMJKL.js} +1 -1
- package/dist/cdn/{FLKBGFAC.js → QSGJ3MAT.js} +1 -1
- package/dist/cdn/{YWMVQFAN.js → QT64PB4L.js} +1 -1
- package/dist/cdn/{ZNGT5LSV.js → QWCNHH6G.js} +1 -1
- package/dist/cdn/{VPHWRDJI.js → RCLHFY6O.js} +1 -1
- package/dist/cdn/{QB5VLM5A.js → RCZLTGQI.js} +1 -1
- package/dist/cdn/{A2OP6Q3D.js → ROG3HFDT.js} +1 -1
- package/dist/cdn/{TSQYRV3W.js → SL7NRRSJ.js} +1 -1
- package/dist/cdn/{UULF2NFJ.js → SSQPRUUN.js} +1 -1
- package/dist/cdn/{E7RGF2VG.js → V2FHLWYC.js} +1 -1
- package/dist/cdn/{WGPNG4C5.js → VAF3UIVA.js} +1 -1
- package/dist/cdn/{6JJHAS2P.js → VHW4OAKG.js} +1 -1
- package/dist/cdn/{W665SH4P.js → VNYRZDY5.js} +1 -1
- package/dist/cdn/VUHFYOLC.js +2 -0
- package/dist/cdn/{ILI6Z4H3.js → WDUTZ6EO.js} +1 -1
- package/dist/cdn/{YXOUH52R.js → WM6SCZHN.js} +1 -1
- package/dist/cdn/{UDAL44H7.js → WPLHZAZ3.js} +1 -1
- package/dist/cdn/{VWY7QP3W.js → XH57C72H.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +24 -23
- package/dist/chunks/box-plot-model.js +36 -36
- package/dist/chunks/index2.js +4 -2
- package/dist/chunks/pie-chart-model.js +246 -242
- package/dist/chunks/serial-chart-model.js +2 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +40 -26
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +236 -224
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/shared/type-guards.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cdn/FLYZW7XF.js +0 -2
- package/dist/cdn/O2K4WDQR.js +0 -2
- package/dist/cdn/OANIWZFQ.js +0 -2
- package/dist/cdn/ODNJBXGP.js +0 -2
- package/dist/cdn/Z4LBCIER.js +0 -2
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as A } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as N } from "lit/directives/repeat.js";
|
|
4
|
-
import { keyed as
|
|
4
|
+
import { keyed as $ } from "lit/directives/keyed.js";
|
|
5
5
|
import { createModel as _ } from "../../model/shared/setup-utils.js";
|
|
6
|
-
import { g as
|
|
6
|
+
import { g as x, i as V, w as U, k as T, m as v, n as R } 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
|
-
import { C as
|
|
10
|
-
import { isEqual as w } from "lodash-es";
|
|
9
|
+
import { C as c } from "../../chunks/interfaces.js";
|
|
10
|
+
import { isEqual as w, cloneDeep as O } from "lodash-es";
|
|
11
11
|
import { i as D } from "../../chunks/index4.js";
|
|
12
|
-
import { D as
|
|
13
|
-
import { LitElement as
|
|
14
|
-
import { css as
|
|
15
|
-
import { createRef as
|
|
12
|
+
import { D as k, w as F, F as W } from "../../chunks/index3.js";
|
|
13
|
+
import { LitElement as G, createEvent as f, renderElement as I, safeStyleMap as X, safeClassMap as d } from "@arcgis/lumina";
|
|
14
|
+
import { css as Z, html as h } from "lit";
|
|
15
|
+
import { createRef as K, ref as j } from "lit/directives/ref.js";
|
|
16
16
|
import { u as L } from "../../chunks/useT9n.js";
|
|
17
|
-
import { c as
|
|
18
|
-
import { dv as
|
|
19
|
-
import { A as
|
|
17
|
+
import { c as q, a as S, g as Y } from "../../chunks/store.js";
|
|
18
|
+
import { dv as Q, _ as J, dw as ee, K as te, co as ae } from "../../chunks/index2.js";
|
|
19
|
+
import { A as ie } from "../../chunks/axis-model-wrapper.js";
|
|
20
20
|
import { h as se, f as y } from "../../chunks/web-component-utils.js";
|
|
21
|
-
import { a as
|
|
21
|
+
import { a as re } from "../../chunks/chart-ui-utils2.js";
|
|
22
22
|
import { C as M } from "../../chunks/index5.js";
|
|
23
23
|
import { a as P } from "../../chunks/chart-ui-utils.js";
|
|
24
|
-
import { d as
|
|
25
|
-
import { r as
|
|
26
|
-
import { u as o, s as
|
|
27
|
-
const
|
|
24
|
+
import { d as oe, e as b } from "../../chunks/type-guards.js";
|
|
25
|
+
import { r as le } from "../../chunks/popover-ui-utils.js";
|
|
26
|
+
import { u as o, s as ne } from "../../chunks/chart-object-literals.js";
|
|
27
|
+
const m = {
|
|
28
28
|
chartUIComponent: "chart-ui-component",
|
|
29
29
|
tabBar: "tab-bar",
|
|
30
30
|
tab: "tab"
|
|
31
31
|
};
|
|
32
|
-
function B(
|
|
33
|
-
const
|
|
34
|
-
let
|
|
35
|
-
return
|
|
36
|
-
const r =
|
|
37
|
-
(
|
|
38
|
-
}),
|
|
32
|
+
function B(p, e) {
|
|
33
|
+
const t = /* @__PURE__ */ new Set();
|
|
34
|
+
let a = e;
|
|
35
|
+
return p?.forEach((i, s) => {
|
|
36
|
+
const r = i.chartId;
|
|
37
|
+
(t.has(r) || r === void 0 || r === "") && (i.chartId = `Chart_${Date.now()}_${s}`, e === r && (a = i.chartId)), t.add(r);
|
|
38
|
+
}), a;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
40
|
+
function ce(p, e, t) {
|
|
41
|
+
return p?.filter((a) => F(t, a.config) && a.layer?.id === e) ?? [];
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
const { modelList: e, layerList:
|
|
43
|
+
function he(p) {
|
|
44
|
+
const { modelList: e, layerList: t, activeLayerId: a, disableEditing: i } = p, s = /* @__PURE__ */ new Map();
|
|
45
45
|
return e?.forEach((r) => {
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
}),
|
|
46
|
+
const n = r.layer;
|
|
47
|
+
n && s.set(n.id, n);
|
|
48
|
+
}), i || t.forEach((r) => s.set(r.id, r)), Array.from(s.values()).filter((r) => !a || r.id === a);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
e.forEach((
|
|
53
|
-
|
|
50
|
+
function de(p, e) {
|
|
51
|
+
p.forEach((t) => {
|
|
52
|
+
e.forEach((a) => {
|
|
53
|
+
t?.id === a.layer?.id && E(t, a);
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
const
|
|
61
|
-
let
|
|
62
|
-
|
|
57
|
+
function E(p, e) {
|
|
58
|
+
const t = p;
|
|
59
|
+
if (t) {
|
|
60
|
+
const a = [...t?.charts ?? []], i = a?.findIndex((r) => r.id === e.chartId);
|
|
61
|
+
let s = !1;
|
|
62
|
+
i !== void 0 && i > -1 ? (s = !w(a[i], e.config), a[i] = e.config) : t && !D(e.config) && (s = !0, a.push(e.config)), s && (t.charts = a);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
const
|
|
69
|
-
|
|
65
|
+
function me(p, e) {
|
|
66
|
+
const t = p;
|
|
67
|
+
if (t) {
|
|
68
|
+
const a = [...t.charts ?? []], i = a.findIndex((s) => s.id === e);
|
|
69
|
+
i > -1 && (a.splice(i, 1), t.charts = a);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function pe(
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
arrayA:
|
|
78
|
-
arrayB: e.map((
|
|
79
|
-
getKey: (
|
|
80
|
-
}),
|
|
72
|
+
function pe(p, e) {
|
|
73
|
+
const t = p;
|
|
74
|
+
if (t) {
|
|
75
|
+
let a = [...t.charts ?? []];
|
|
76
|
+
a = k({
|
|
77
|
+
arrayA: a,
|
|
78
|
+
arrayB: e.map((i) => i.config),
|
|
79
|
+
getKey: (i) => i.id ?? i.title?.content.text ?? ""
|
|
80
|
+
}), t.charts = a;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
class
|
|
83
|
+
const ue = Z`.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}`;
|
|
84
|
+
class ge extends G {
|
|
85
85
|
constructor() {
|
|
86
|
-
super(), this.selectChartTypePopover = null, this.chartsListFlowItem =
|
|
86
|
+
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = K(), this.supportedChartTypes = [
|
|
87
87
|
o.BarSeries,
|
|
88
88
|
o.BoxPlotSeries,
|
|
89
89
|
o.LineSeries,
|
|
@@ -91,98 +91,97 @@ class ue extends W {
|
|
|
91
91
|
o.HistogramSeries,
|
|
92
92
|
o.ScatterSeries,
|
|
93
93
|
o.HeatSeries
|
|
94
|
-
], this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.chartDataProcessComplete = (e) => {
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
97
|
-
switch (
|
|
94
|
+
], this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.chartDataProcessComplete = async (e) => {
|
|
95
|
+
const t = e, { chartData: a, model: i } = t.detail, s = this.getModel(this.selectedChartId);
|
|
96
|
+
if (i?.isSameChartAs(s))
|
|
97
|
+
switch (s?.chartType) {
|
|
98
98
|
case o.HistogramSeries:
|
|
99
|
-
if (this.chartData =
|
|
100
|
-
const
|
|
101
|
-
|
|
99
|
+
if (this.chartData = a, i && (i.dataStore.chartData = a, oe(i.layer))) {
|
|
100
|
+
const n = i, l = a?.bins?.length;
|
|
101
|
+
l !== void 0 && n.binCount !== l && (n.binCount = l);
|
|
102
102
|
}
|
|
103
103
|
break;
|
|
104
104
|
case o.PieSeries: {
|
|
105
|
-
this.chartData =
|
|
105
|
+
this.chartData = a, i && (i.dataStore.chartData = a);
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
108
|
case o.ScatterSeries: {
|
|
109
|
-
const
|
|
109
|
+
const n = a, { dataItems: l, r2: g, aggregated: u } = n;
|
|
110
110
|
let C = g;
|
|
111
|
-
Number.isFinite(g) || (C = void 0), this.r2 = C, U(
|
|
111
|
+
Number.isFinite(g) || (C = void 0), this.r2 = C, U(i) && (i.dataStore.r2 = C, i.dataStore.aggregated = u, u && (i.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(l), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
case o.LineSeries:
|
|
115
115
|
case o.BarSeries: {
|
|
116
|
-
const { dataItems:
|
|
117
|
-
(
|
|
116
|
+
const { dataItems: n, timeIntervalInfo: l } = a;
|
|
117
|
+
(x(s) || V(s) && s.binTemporalData) && (l?.size !== void 0 && s.temporalBinningSize !== l?.size && (s.temporalBinningSize = l?.size), l?.unit !== void 0 && s.temporalBinningUnit !== l?.unit && l?.unit !== ne.Quarter && (s.temporalBinningUnit = l?.unit), l?.size !== void 0 && l?.unit !== void 0 && q(S, { size: l.size, unit: l.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(n), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
}, this.applyDefaultNullCategoryIfNeeded = (e, s) => {
|
|
122
|
-
if (R(e) && e.nullCategory === void 0) {
|
|
123
|
-
const t = e.xAxisField;
|
|
124
|
-
s.some((i) => i[t] === null) && (e.nullCategory = O.nullCategory);
|
|
125
|
-
}
|
|
126
121
|
}, this.chartAxesMinMaxChange = (e) => {
|
|
127
|
-
const
|
|
122
|
+
const t = e, { bounds: a, model: i } = t.detail, s = this.getModel(this.selectedChartId), r = i?.isSameChartAs(s), n = s?.chartType;
|
|
128
123
|
if (r)
|
|
129
|
-
switch (
|
|
124
|
+
switch (n) {
|
|
130
125
|
case o.BarSeries:
|
|
131
126
|
case o.BoxPlotSeries:
|
|
132
127
|
case o.LineSeries:
|
|
133
128
|
case o.HistogramSeries:
|
|
134
129
|
case o.ScatterSeries:
|
|
135
|
-
this.calculatedMinMaxBounds =
|
|
130
|
+
this.calculatedMinMaxBounds = a, i && (i.dataStore.calculatedMinMaxBounds = a), this.updateAxesBoundsInAppState(a);
|
|
136
131
|
break;
|
|
137
132
|
}
|
|
138
133
|
}, this.chartSeriesColorChange = (e) => {
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
switch (
|
|
134
|
+
const t = e, { colorMatchApplied: a, data: i, model: s } = t.detail, r = this.getModel(this.selectedChartId);
|
|
135
|
+
if (s?.isSameChartAs(r))
|
|
136
|
+
switch (r?.chartType) {
|
|
142
137
|
case o.BarSeries:
|
|
143
138
|
case o.BoxPlotSeries:
|
|
144
139
|
case o.LineSeries:
|
|
145
140
|
case o.HistogramSeries:
|
|
146
|
-
this.seriesColor =
|
|
141
|
+
this.seriesColor = i, s && (s.dataStore.seriesColor = i), this.applyNullCategorySeriesColor({
|
|
142
|
+
colorMatchApplied: a,
|
|
143
|
+
data: i,
|
|
144
|
+
model: r
|
|
145
|
+
});
|
|
147
146
|
break;
|
|
148
147
|
case o.PieSeries: {
|
|
149
|
-
const l = /* @__PURE__ */ new Map([[0,
|
|
150
|
-
this.seriesColor = l,
|
|
148
|
+
const l = /* @__PURE__ */ new Map([[0, i]]);
|
|
149
|
+
this.seriesColor = l, s && (s.dataStore.seriesColor = l);
|
|
151
150
|
break;
|
|
152
151
|
}
|
|
153
152
|
case o.ScatterSeries:
|
|
154
153
|
}
|
|
155
154
|
}, this.chartNoRenderPropChange = (e) => {
|
|
156
|
-
const
|
|
155
|
+
const t = e, { propName: a, value: i, model: s } = t.detail, r = this.modelList.find((n) => s?.isSameChartAs(n));
|
|
157
156
|
if (r)
|
|
158
|
-
switch (
|
|
157
|
+
switch (a) {
|
|
159
158
|
case "rotation":
|
|
160
|
-
typeof
|
|
159
|
+
typeof i == "boolean" && z(r) && (r.rotated = i);
|
|
161
160
|
break;
|
|
162
161
|
case "legendPosition":
|
|
163
|
-
typeof
|
|
162
|
+
typeof i == "string" && T(r) && (r.legendPosition = i);
|
|
164
163
|
break;
|
|
165
164
|
case "legendVisibility":
|
|
166
|
-
typeof
|
|
165
|
+
typeof i == "boolean" && T(r) && (r.legendVisibility = i);
|
|
167
166
|
break;
|
|
168
167
|
}
|
|
169
168
|
}, this.chartLegendItemVisibilityChange = (e) => {
|
|
170
|
-
const
|
|
171
|
-
|
|
169
|
+
const t = e, { legendItemVisibility: a, model: i } = t.detail, s = this.modelList.find((r) => i?.isSameChartAs(r));
|
|
170
|
+
s?.setSeriesVisibility(a), v(s) && ((s.getMinBound(1) === null || Number.isNaN(s.getMinBound(1))) && s.setMinBound(null, 1), (s.getMaxBound(1) === null || Number.isNaN(s.getMaxBound(1))) && s.setMaxBound(null, 1), x(s) && ((s.getMinBound(0) === null || Number.isNaN(s.getMinBound(0))) && s.setMinBound(null, 0), (s.getMaxBound(0) === null || Number.isNaN(s.getMaxBound(0))) && s.setMaxBound(null, 0)));
|
|
172
171
|
}, this.onSelectChartTypeChange = (e) => {
|
|
173
172
|
this.currentChartTypeText = "", this.calculatedDataMinMaxBounds = void 0, this.calculatedMinMaxBounds = void 0, this.removeSelectChartTypePopover();
|
|
174
|
-
const { selectedModelType:
|
|
175
|
-
|
|
173
|
+
const { selectedModelType: t, layerId: a } = e.target;
|
|
174
|
+
t !== void 0 && (this.allowChartSyncing = !0, this.arcgisChartsConfigNewChart.emit({
|
|
176
175
|
key: "key",
|
|
177
|
-
chartType:
|
|
178
|
-
layerId:
|
|
176
|
+
chartType: t,
|
|
177
|
+
layerId: a
|
|
179
178
|
}));
|
|
180
179
|
}, this.onAddChartClose = () => {
|
|
181
180
|
this.removeSelectChartTypePopover();
|
|
182
181
|
}, this.onModelConfigChange = (e) => {
|
|
183
182
|
if (this.syncChartsToLayers && this.allowChartSyncing) {
|
|
184
|
-
const
|
|
185
|
-
|
|
183
|
+
const t = e.target;
|
|
184
|
+
E(t?.layer, t);
|
|
186
185
|
}
|
|
187
186
|
this.requestUpdate();
|
|
188
187
|
}, 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);
|
|
@@ -191,7 +190,7 @@ class ue extends W {
|
|
|
191
190
|
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 };
|
|
192
191
|
}
|
|
193
192
|
static {
|
|
194
|
-
this.styles =
|
|
193
|
+
this.styles = ue;
|
|
195
194
|
}
|
|
196
195
|
async setFocus() {
|
|
197
196
|
await this.chartsListFlowItem.value?.setFocus();
|
|
@@ -207,67 +206,80 @@ class ue extends W {
|
|
|
207
206
|
disconnectedCallback() {
|
|
208
207
|
super.disconnectedCallback(), this.clearPartialModels(), this.removeSelectChartTypePopover();
|
|
209
208
|
}
|
|
209
|
+
applyNullCategorySeriesColor(e) {
|
|
210
|
+
const { colorMatchApplied: t, data: a, model: i } = e;
|
|
211
|
+
R(i) && i.nullCategory === void 0 && (i.nullCategory = this.getDefaultNullCategory(t ? this.getSeriesColor(a) : void 0));
|
|
212
|
+
}
|
|
213
|
+
getSeriesColor(e) {
|
|
214
|
+
const t = e.get(0);
|
|
215
|
+
let a;
|
|
216
|
+
return t && "color" in t ? a = t.color : t && "lineSymbol" in t && (a = t.markerSymbol?.color ?? t.lineSymbol.color), a;
|
|
217
|
+
}
|
|
218
|
+
getDefaultNullCategory(e) {
|
|
219
|
+
const t = O(W.nullCategory);
|
|
220
|
+
return e !== void 0 && (t.fillSymbol && (t.fillSymbol.color = e, t.fillSymbol.outline && (t.fillSymbol.outline.color = e)), t.markerSymbol && (t.markerSymbol.color = e, t.markerSymbol.outline && (t.markerSymbol.outline.color = e))), t;
|
|
221
|
+
}
|
|
210
222
|
modelListReorderChangeListener(e) {
|
|
211
|
-
const { modelList:
|
|
212
|
-
if (this.modelList =
|
|
223
|
+
const { modelList: t } = e.detail;
|
|
224
|
+
if (this.modelList = k({
|
|
213
225
|
arrayA: this.modelList,
|
|
214
|
-
arrayB:
|
|
215
|
-
getKey: (
|
|
226
|
+
arrayB: t,
|
|
227
|
+
getKey: (a) => a.chartId ?? a.titleText ?? ""
|
|
216
228
|
}), this.syncChartsToLayers) {
|
|
217
|
-
const
|
|
218
|
-
if (
|
|
219
|
-
const
|
|
220
|
-
|
|
229
|
+
const a = t.find((i) => i.layer?.id !== void 0)?.layer?.id;
|
|
230
|
+
if (a) {
|
|
231
|
+
const i = this.layerList.find((s) => s.id.toString() === a);
|
|
232
|
+
i && pe(i, t);
|
|
221
233
|
}
|
|
222
234
|
}
|
|
223
235
|
}
|
|
224
236
|
async layerListChange() {
|
|
225
|
-
const e = [],
|
|
226
|
-
let
|
|
227
|
-
for (let
|
|
228
|
-
if (
|
|
229
|
-
const
|
|
230
|
-
if (!
|
|
237
|
+
const e = [], t = this.layerList.map((i) => i.id.toString());
|
|
238
|
+
let a = [...this.modelList.filter((i) => t.includes(i.layer?.id ?? ""))];
|
|
239
|
+
for (let i of this.layerList ?? []) {
|
|
240
|
+
if (i.type === "sublayer") {
|
|
241
|
+
const n = await i.createFeatureLayer();
|
|
242
|
+
if (!n)
|
|
231
243
|
continue;
|
|
232
|
-
|
|
244
|
+
i = n;
|
|
233
245
|
}
|
|
234
|
-
const r =
|
|
235
|
-
for (const
|
|
236
|
-
const
|
|
237
|
-
layer:
|
|
238
|
-
config:
|
|
246
|
+
const r = i.charts;
|
|
247
|
+
for (const n of r ?? []) {
|
|
248
|
+
const l = await _({
|
|
249
|
+
layer: i,
|
|
250
|
+
config: n,
|
|
239
251
|
commonStrings: this.commonStrings
|
|
240
252
|
});
|
|
241
|
-
|
|
253
|
+
l !== void 0 && e.push(l);
|
|
242
254
|
}
|
|
243
255
|
}
|
|
244
|
-
B(e), e.forEach((
|
|
245
|
-
|
|
246
|
-
}),
|
|
247
|
-
}
|
|
248
|
-
modelListChange(e,
|
|
249
|
-
this.selectedChartId = B(e, this.selectedChartId),
|
|
250
|
-
|
|
251
|
-
}), e.forEach((
|
|
252
|
-
|
|
256
|
+
B(e), e.forEach((i) => {
|
|
257
|
+
a.find((r) => r.isSameChartAs(i)) === void 0 && a.push(i);
|
|
258
|
+
}), a = a.filter((i) => !Q(i.config)), this.modelList = a;
|
|
259
|
+
}
|
|
260
|
+
modelListChange(e, t) {
|
|
261
|
+
this.selectedChartId = B(e, this.selectedChartId), t?.forEach((i) => {
|
|
262
|
+
i.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
263
|
+
}), e.forEach((i) => {
|
|
264
|
+
i.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
253
265
|
});
|
|
254
|
-
const
|
|
255
|
-
this.currentChartTypeText =
|
|
256
|
-
chartType:
|
|
266
|
+
const a = this.getModel(this.selectedChartId);
|
|
267
|
+
this.currentChartTypeText = a?.chartType !== void 0 ? P({
|
|
268
|
+
chartType: a.chartType,
|
|
257
269
|
commonStrings: this.commonStrings,
|
|
258
|
-
config:
|
|
259
|
-
}) : "", this.syncChartsToLayers && this.allowChartSyncing &&
|
|
270
|
+
config: a.config
|
|
271
|
+
}) : "", this.syncChartsToLayers && this.allowChartSyncing && de(this.layerList, e), this.arcgisChartsConfigModelListChange.emit({ modelList: e });
|
|
260
272
|
}
|
|
261
273
|
selectedChartIdChange(e) {
|
|
262
|
-
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel =
|
|
263
|
-
const
|
|
264
|
-
this.setEventBasedPropsFromModelData(
|
|
265
|
-
chartType:
|
|
274
|
+
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = c.Data;
|
|
275
|
+
const t = this.getModel(e);
|
|
276
|
+
this.setEventBasedPropsFromModelData(t), this.currentChartTypeText = t?.chartType !== void 0 ? P({
|
|
277
|
+
chartType: t.chartType,
|
|
266
278
|
commonStrings: this.commonStrings,
|
|
267
|
-
config:
|
|
268
|
-
}) : "", e !== void 0 && e !==
|
|
279
|
+
config: t.config
|
|
280
|
+
}) : "", e !== void 0 && e !== S.selectedChartId && (S.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
269
281
|
key: "key",
|
|
270
|
-
model:
|
|
282
|
+
model: t
|
|
271
283
|
});
|
|
272
284
|
}
|
|
273
285
|
panelNumberChange(e) {
|
|
@@ -277,74 +289,74 @@ class ue extends W {
|
|
|
277
289
|
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);
|
|
278
290
|
}
|
|
279
291
|
getDataExtent(e) {
|
|
280
|
-
const
|
|
281
|
-
let
|
|
282
|
-
if (
|
|
283
|
-
const
|
|
284
|
-
chartConfig:
|
|
292
|
+
const t = this.getModel(this.selectedChartId)?.config;
|
|
293
|
+
let a = [];
|
|
294
|
+
if (t !== void 0 && e !== void 0) {
|
|
295
|
+
const i = J({
|
|
296
|
+
chartConfig: t,
|
|
285
297
|
chartData: e
|
|
286
|
-
}), { minY:
|
|
287
|
-
|
|
288
|
-
{ isXAxis: !0, minimum:
|
|
289
|
-
{ isXAxis: !1, minimum:
|
|
298
|
+
}), { minY: s, maxY: r, minX: n, maxX: l } = i;
|
|
299
|
+
a = [
|
|
300
|
+
{ isXAxis: !0, minimum: n, maximum: l },
|
|
301
|
+
{ isXAxis: !1, minimum: s, maximum: r }
|
|
290
302
|
];
|
|
291
303
|
}
|
|
292
|
-
return
|
|
304
|
+
return a;
|
|
293
305
|
}
|
|
294
306
|
updateAxesBoundsInAppState(e) {
|
|
295
|
-
e?.forEach((
|
|
296
|
-
const { isXAxis:
|
|
307
|
+
e?.forEach((t) => {
|
|
308
|
+
const { isXAxis: a, maximum: i, minimum: s } = t, r = this.getModel(this.selectedChartId);
|
|
297
309
|
if (r !== void 0 && v(r) && this.selectedChartId !== void 0) {
|
|
298
|
-
const
|
|
310
|
+
const n = new ie(r, a), l = Y({
|
|
299
311
|
chartId: this.selectedChartId,
|
|
300
|
-
isXAxis:
|
|
301
|
-
isLogarithmic:
|
|
302
|
-
}), g =
|
|
312
|
+
isXAxis: a,
|
|
313
|
+
isLogarithmic: n.getLogarithmic()
|
|
314
|
+
}), g = S.chartAxesBoundDataMap;
|
|
303
315
|
g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
|
|
304
|
-
const u = g[this.selectedChartId]?.[
|
|
305
|
-
defaultMinBound: u?.defaultMinBound === u?.currMinBound ?
|
|
306
|
-
currMinBound:
|
|
307
|
-
defaultMaxBound: u?.defaultMaxBound === u?.currMaxBound ?
|
|
308
|
-
currMaxBound:
|
|
316
|
+
const u = g[this.selectedChartId]?.[l], C = {
|
|
317
|
+
defaultMinBound: u?.defaultMinBound === u?.currMinBound ? s : u?.defaultMinBound,
|
|
318
|
+
currMinBound: s,
|
|
319
|
+
defaultMaxBound: u?.defaultMaxBound === u?.currMaxBound ? i : u?.defaultMaxBound,
|
|
320
|
+
currMaxBound: i
|
|
309
321
|
};
|
|
310
|
-
!w(u, C) && this.selectedChartId !== void 0 && g?.[this.selectedChartId] !== void 0 && (g[this.selectedChartId][
|
|
322
|
+
!w(u, C) && this.selectedChartId !== void 0 && g?.[this.selectedChartId] !== void 0 && (g[this.selectedChartId][l] = C);
|
|
311
323
|
}
|
|
312
324
|
});
|
|
313
325
|
}
|
|
314
326
|
getPlacement() {
|
|
315
327
|
let e;
|
|
316
|
-
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((
|
|
328
|
+
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((i) => F(ee, i.config)).length <= 2 ? "bottom" : "top", e;
|
|
317
329
|
}
|
|
318
330
|
onBackFlow() {
|
|
319
331
|
this.panelNumber -= 1;
|
|
320
332
|
}
|
|
321
333
|
async onAddChartClick(e) {
|
|
322
|
-
const { referenceElement:
|
|
323
|
-
let
|
|
324
|
-
if (
|
|
325
|
-
const r = this.layerList.find((
|
|
326
|
-
|
|
334
|
+
const { referenceElement: t, layerId: a, layerType: i } = e.detail;
|
|
335
|
+
let s = !0;
|
|
336
|
+
if (b(i) && a) {
|
|
337
|
+
const r = this.layerList.find((n) => n.id === a);
|
|
338
|
+
b(r?.type) && (s = !!(await te(r))?.attributeTable);
|
|
327
339
|
}
|
|
328
|
-
this.setupSelectChartTypePopover(
|
|
340
|
+
this.setupSelectChartTypePopover(t, a, i, s);
|
|
329
341
|
}
|
|
330
|
-
setupSelectChartTypePopover(e,
|
|
331
|
-
const
|
|
332
|
-
this.removeSelectChartTypePopover(), this.selectChartTypePopover = I(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${
|
|
342
|
+
setupSelectChartTypePopover(e, t, a, i = !0) {
|
|
343
|
+
const s = this.getPlacement();
|
|
344
|
+
this.removeSelectChartTypePopover(), this.selectChartTypePopover = I(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${t} .layerType=${a} .isRasterBarChartSupported=${i} .popoverPlacement=${s} @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);
|
|
333
345
|
}
|
|
334
346
|
getModel(e) {
|
|
335
|
-
return this.modelList?.find((
|
|
347
|
+
return this.modelList?.find((t) => t.chartId === e);
|
|
336
348
|
}
|
|
337
349
|
removeSelectChartTypePopover() {
|
|
338
|
-
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover =
|
|
350
|
+
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = le(this.selectChartTypePopover));
|
|
339
351
|
}
|
|
340
352
|
clearPartialModels() {
|
|
341
353
|
this.modelList = this.modelList.filter((e) => !D(e.config));
|
|
342
354
|
}
|
|
343
355
|
onViewChartDelete(e) {
|
|
344
|
-
const { chartId:
|
|
345
|
-
if (
|
|
346
|
-
const
|
|
347
|
-
this.modelList = [...this.modelList.filter((
|
|
356
|
+
const { chartId: t } = e.detail;
|
|
357
|
+
if (t !== void 0) {
|
|
358
|
+
const a = this.modelList.find((s) => s.chartId === t), i = this.layerList.find((s) => s.id === a?.layer?.id);
|
|
359
|
+
this.modelList = [...this.modelList.filter((s) => s.chartId !== t)], i && this.syncChartsToLayers && this.allowChartSyncing && me(i, t);
|
|
348
360
|
}
|
|
349
361
|
}
|
|
350
362
|
onViewChartsSelect(e) {
|
|
@@ -363,109 +375,109 @@ class ue extends W {
|
|
|
363
375
|
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;
|
|
364
376
|
}
|
|
365
377
|
createTooltip(e) {
|
|
366
|
-
const
|
|
367
|
-
let
|
|
368
|
-
switch (
|
|
378
|
+
const t = e.target;
|
|
379
|
+
let a = "";
|
|
380
|
+
switch (t.icon) {
|
|
369
381
|
case "configure":
|
|
370
|
-
|
|
382
|
+
a = this._messages.data ?? "";
|
|
371
383
|
break;
|
|
372
384
|
case "graph-bar-stacked":
|
|
373
385
|
case "graph-line-series":
|
|
374
386
|
case "box-chart-series":
|
|
375
|
-
|
|
387
|
+
a = this._messages.series ?? "";
|
|
376
388
|
break;
|
|
377
389
|
case "graph-pie-slice":
|
|
378
|
-
|
|
390
|
+
a = this._messages.slices ?? "";
|
|
379
391
|
break;
|
|
380
392
|
case "graph-axis":
|
|
381
|
-
|
|
393
|
+
a = this._messages.axes ?? "";
|
|
382
394
|
break;
|
|
383
395
|
case "graph-guides":
|
|
384
|
-
|
|
396
|
+
a = this._messages.guides ?? "";
|
|
385
397
|
break;
|
|
386
398
|
case "palette":
|
|
387
|
-
|
|
399
|
+
a = this._messages.format ?? "";
|
|
388
400
|
break;
|
|
389
401
|
case "text":
|
|
390
|
-
|
|
402
|
+
a = this._messages.general ?? "";
|
|
391
403
|
break;
|
|
392
404
|
default:
|
|
393
|
-
|
|
405
|
+
a = "";
|
|
394
406
|
break;
|
|
395
407
|
}
|
|
396
|
-
this.tooltip = I(h`<calcite-tooltip style=${
|
|
408
|
+
this.tooltip = I(h`<calcite-tooltip style=${X({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
397
409
|
}
|
|
398
410
|
destroyTooltip() {
|
|
399
|
-
|
|
411
|
+
re(this.tooltip);
|
|
400
412
|
}
|
|
401
413
|
renderViewCharts() {
|
|
402
|
-
const e =
|
|
414
|
+
const e = he({
|
|
403
415
|
modelList: this.modelList,
|
|
404
416
|
layerList: this.layerList,
|
|
405
417
|
activeLayerId: this.activeLayerId,
|
|
406
418
|
disableEditing: this.disableEditing
|
|
407
419
|
});
|
|
408
|
-
return N(e, (
|
|
420
|
+
return N(e, (t) => t.id, (t) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ce(this.modelList, t.id.toString(), b(t.type) ? ae : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
409
421
|
}
|
|
410
422
|
render() {
|
|
411
|
-
return this.close ? null : h`<calcite-flow>${
|
|
423
|
+
return this.close ? null : h`<calcite-flow>${$("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${j(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
412
424
|
}
|
|
413
425
|
renderTabs() {
|
|
414
426
|
const e = this.getModel(this.selectedChartId);
|
|
415
|
-
return
|
|
427
|
+
return $("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? c.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? H(this._messages.pageFlowTitle, {
|
|
416
428
|
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
417
429
|
layerName: e?.layer?.title ?? ""
|
|
418
|
-
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(
|
|
419
|
-
this.selectedPanel =
|
|
420
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(
|
|
421
|
-
this.selectedPanel =
|
|
422
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(
|
|
423
|
-
this.selectedPanel =
|
|
424
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(
|
|
425
|
-
this.selectedPanel =
|
|
426
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(
|
|
427
|
-
this.selectedPanel =
|
|
428
|
-
}} @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(
|
|
429
|
-
this.selectedPanel =
|
|
430
|
-
}} @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(
|
|
431
|
-
this.selectedPanel =
|
|
432
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides ?? ""}></calcite-action>` : null}<calcite-action class=${d(
|
|
433
|
-
this.selectedPanel =
|
|
434
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format ?? ""}></calcite-action><calcite-action class=${d(
|
|
435
|
-
this.selectedPanel =
|
|
430
|
+
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(m.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(m.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === c.Data || this.selectedPanel === void 0} @click=${() => {
|
|
431
|
+
this.selectedPanel = c.Data;
|
|
432
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel === c.Series} @click=${() => {
|
|
433
|
+
this.selectedPanel = c.Series;
|
|
434
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === c.Series} @click=${() => {
|
|
435
|
+
this.selectedPanel = c.Series;
|
|
436
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(m.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === c.Series} @click=${() => {
|
|
437
|
+
this.selectedPanel = c.Series;
|
|
438
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === c.Slices} @click=${() => {
|
|
439
|
+
this.selectedPanel = c.Slices;
|
|
440
|
+
}} @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(m.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === c.Axes} @click=${() => {
|
|
441
|
+
this.selectedPanel = c.Axes;
|
|
442
|
+
}} @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(m.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === c.Guides} @click=${() => {
|
|
443
|
+
this.selectedPanel = c.Guides;
|
|
444
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides ?? ""}></calcite-action>` : null}<calcite-action class=${d(m.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === c.Format} @click=${() => {
|
|
445
|
+
this.selectedPanel = c.Format;
|
|
446
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format ?? ""}></calcite-action><calcite-action class=${d(m.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === c.General} @click=${() => {
|
|
447
|
+
this.selectedPanel = c.General;
|
|
436
448
|
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general ?? ""}></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
437
449
|
}
|
|
438
450
|
renderChartUIComponent() {
|
|
439
|
-
const e = this.getModel(this.selectedChartId),
|
|
440
|
-
let
|
|
451
|
+
const e = this.getModel(this.selectedChartId), t = e?.layer;
|
|
452
|
+
let a = null;
|
|
441
453
|
if (e !== void 0 && !this.disableEditing)
|
|
442
454
|
switch (e?.chartType) {
|
|
443
455
|
case o.BarSeries:
|
|
444
|
-
|
|
456
|
+
a = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
|
|
445
457
|
break;
|
|
446
458
|
case o.LineSeries:
|
|
447
|
-
|
|
459
|
+
a = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
|
|
448
460
|
break;
|
|
449
461
|
case o.PieSeries:
|
|
450
|
-
|
|
462
|
+
a = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel ?? c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
|
|
451
463
|
break;
|
|
452
464
|
case o.HistogramSeries:
|
|
453
|
-
|
|
465
|
+
a = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
|
|
454
466
|
break;
|
|
455
467
|
case o.ScatterSeries:
|
|
456
|
-
|
|
468
|
+
a = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
|
|
457
469
|
break;
|
|
458
470
|
case o.BoxPlotSeries:
|
|
459
|
-
|
|
471
|
+
a = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
|
|
460
472
|
break;
|
|
461
473
|
case o.HeatSeries:
|
|
462
|
-
|
|
474
|
+
a = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data}></arcgis-charts-config-heat-chart>`;
|
|
463
475
|
break;
|
|
464
476
|
}
|
|
465
|
-
return
|
|
477
|
+
return a;
|
|
466
478
|
}
|
|
467
479
|
}
|
|
468
|
-
A("arcgis-charts-config-create-flow",
|
|
480
|
+
A("arcgis-charts-config-create-flow", ge);
|
|
469
481
|
export {
|
|
470
|
-
|
|
482
|
+
ge as ArcgisChartsConfigCreateFlow
|
|
471
483
|
};
|