@arcgis/charts-components 5.2.0-next.41 → 5.2.0-next.43
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/{ZQDCFKNT.js → 33NDNTD4.js} +1 -1
- package/dist/cdn/{PTQOX5OZ.js → 5XXP2NRJ.js} +1 -1
- package/dist/cdn/{5SIHKT2T.js → 6TA7HFV2.js} +1 -1
- package/dist/cdn/76HEBLTU.js +2 -0
- package/dist/cdn/{TTTGMEZ7.js → D4WXMS4I.js} +1 -1
- package/dist/cdn/{3QI7A32R.js → DWOP2HE4.js} +1 -1
- package/dist/cdn/EIXU5GSK.js +2 -0
- package/dist/cdn/{FK7GEP3O.js → ESAVCU5M.js} +1 -1
- package/dist/cdn/{LN3IK232.js → HP47BFLZ.js} +1 -1
- package/dist/cdn/{7T5P3U5A.js → I2CZFSEB.js} +1 -1
- package/dist/cdn/{3MRL3AI7.js → ISYGPFXM.js} +1 -1
- package/dist/cdn/{D7D3TANP.js → KRBNJLUR.js} +1 -1
- package/dist/cdn/{JTYCEFWF.js → LMIDBRIM.js} +1 -1
- package/dist/cdn/{FBHIZNWF.js → NFJXS4T6.js} +1 -1
- package/dist/cdn/{DZP63RLO.js → OGRUONHM.js} +1 -1
- package/dist/cdn/{KS72POQC.js → PLEZNRQC.js} +1 -1
- package/dist/cdn/{CAOUA6TM.js → R32CA4NB.js} +1 -1
- package/dist/cdn/{O324BBM7.js → SG3NAFAX.js} +1 -1
- package/dist/cdn/{6BZMGEWV.js → T3ZESENF.js} +1 -1
- package/dist/cdn/{YLMCVYAS.js → YE6DMUZG.js} +1 -1
- package/dist/cdn/ZSATO43B.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +5 -5
- package/dist/chunks/chart-model.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +66 -57
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +8 -8
- package/dist/chunks/pie-chart-model.js +9 -9
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/scatterplot-model.js +11 -11
- package/dist/chunks/serial-chart-data.js +785 -702
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/utils.js +11 -11
- package/dist/chunks/x-bounds.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +57 -70
- 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/heat-chart-model/heat-chart-model.d.ts +2 -2
- package/package.json +3 -3
- package/dist/cdn/6IKWZMBE.js +0 -2
- package/dist/cdn/I6CEN2WV.js +0 -2
- package/dist/cdn/MWARLTCH.js +0 -2
|
@@ -15,7 +15,7 @@ import { W as ge, c as ce, d as fe } from "./generate-x-axis-title.js";
|
|
|
15
15
|
import { W as he, a as pe } from "./x-bounds.js";
|
|
16
16
|
import { W as de } from "./data-labels-symbol.js";
|
|
17
17
|
import { W as me } from "./rotated-state.js";
|
|
18
|
-
import { g as W, u as ye, s as C,
|
|
18
|
+
import { g as W, u as ye, s as C, j as ue, k as Se, f as _e, h as Te } from "./utils.js";
|
|
19
19
|
import { d as A, e as B, a as xe } from "./data.js";
|
|
20
20
|
import { z as Fe, X as Ce, v as Ae, a2 as Be, a0 as Ie } from "./index.js";
|
|
21
21
|
import { i as h, g as p, m as _ } from "./index5.js";
|
package/dist/chunks/utils.js
CHANGED
|
@@ -193,19 +193,19 @@ function be(s) {
|
|
|
193
193
|
return s !== void 0 && v(0, s)?.type === f.CategoryAxisFormat && v(1, s)?.type === f.CategoryAxisFormat;
|
|
194
194
|
}
|
|
195
195
|
export {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
196
|
+
de as a,
|
|
197
|
+
ne as b,
|
|
198
|
+
Ae as c,
|
|
199
|
+
le as d,
|
|
200
|
+
ce as e,
|
|
201
|
+
ye as f,
|
|
202
202
|
re as g,
|
|
203
|
-
|
|
203
|
+
Fe as h,
|
|
204
204
|
be as i,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
me as j,
|
|
206
|
+
pe as k,
|
|
207
|
+
oe as l,
|
|
208
|
+
v as m,
|
|
209
209
|
fe as n,
|
|
210
210
|
ge as o,
|
|
211
211
|
xe as p,
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -9,7 +9,7 @@ import { M as C } from "./index2.js";
|
|
|
9
9
|
import { q as X, p as B } from "./index5.js";
|
|
10
10
|
import { m as a, C as f } from "./model-setter.js";
|
|
11
11
|
import { e as M, f as A } from "./utils2.js";
|
|
12
|
-
import {
|
|
12
|
+
import { l as p, s as y, h as O } from "./utils.js";
|
|
13
13
|
const P = (t) => {
|
|
14
14
|
for (const e of t.axes ?? [])
|
|
15
15
|
for (const i of e?.guides ?? [])
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { LitElement as
|
|
2
|
+
import { c as P } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as A, createEvent as D, renderElement as M, safeClassMap as o, safeStyleMap as B } from "@arcgis/lumina";
|
|
4
4
|
import { normalizeLocale as w, defaultLocale as I } from "@arcgis/toolkit/intl";
|
|
5
5
|
import { getElementLocale as N } from "@arcgis/toolkit/intl/dom";
|
|
6
6
|
import { css as _, html as i } from "lit";
|
|
7
7
|
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
|
-
import { parseInt as
|
|
9
|
-
import { DateTime as
|
|
10
|
-
import { F as
|
|
8
|
+
import { parseInt as H, camelCase as L } from "lodash-es";
|
|
9
|
+
import { DateTime as O } from "luxon";
|
|
10
|
+
import { F as x, d as T, x as U } from "../../chunks/index3.js";
|
|
11
11
|
import { u as R } from "../../chunks/useT9n.js";
|
|
12
|
-
import { e as l, W as
|
|
12
|
+
import { e as l, W as k } from "../../chunks/interfaces.js";
|
|
13
13
|
import { x as W } from "../../chunks/data.js";
|
|
14
|
-
import { i as V } from "../../chunks/utils.js";
|
|
15
14
|
import { l as v, s as q } from "../../chunks/chart-ui-utils2.js";
|
|
16
|
-
import { e as $, g as K, d as
|
|
17
|
-
import { e as
|
|
18
|
-
import { H as
|
|
19
|
-
import { i as
|
|
20
|
-
import { r as
|
|
21
|
-
import { u as
|
|
15
|
+
import { e as $, g as K, d as V, j as z } from "../../chunks/class-breaks.js";
|
|
16
|
+
import { e as X, a as Z } from "../../chunks/store.js";
|
|
17
|
+
import { H as j } from "../../chunks/common.js";
|
|
18
|
+
import { i as G } from "../../chunks/rest-js-object-literals.js";
|
|
19
|
+
import { r as m, m as h, d as p, u as C, h as u, e as F, i as Y } from "../../chunks/chart-object-literals.js";
|
|
20
|
+
import { u as J, k as Q, l as d } from "../../chunks/index.js";
|
|
22
21
|
import { an as S } from "../../chunks/index2.js";
|
|
23
|
-
import { i as
|
|
24
|
-
import { r as
|
|
25
|
-
const
|
|
22
|
+
import { i as ee } from "../../chunks/index4.js";
|
|
23
|
+
import { r as ae } from "../../chunks/popover-ui-utils.js";
|
|
24
|
+
const te = _`.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;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`, r = {
|
|
26
25
|
label: "label",
|
|
27
26
|
colorRamp: "color-ramp",
|
|
28
27
|
colorRampSegment: "color-ramp-segment",
|
|
29
28
|
list: "list",
|
|
30
29
|
accordion: "accordion"
|
|
31
30
|
};
|
|
32
|
-
class
|
|
31
|
+
class se extends A {
|
|
33
32
|
constructor() {
|
|
34
33
|
super(...arguments), this._messages = R(), this.commonStrings = R({ name: "common", blocking: !0 }), this.heatChartPopover = null, this.xAxisFieldElement = n(), this.aggregationElement = n(), this.numericFieldsElement = n(), this.calendarTypeElement = n(), this.calendarViewTypeElement = n(), this.classBreakMethodElement = n(), this.nullElement = n(), this.breaksCountElement = n(), this.colorSchemeElement = n(), this.onHeatChartDataPopoverChange = async (e) => {
|
|
35
34
|
try {
|
|
@@ -37,13 +36,13 @@ class le extends E {
|
|
|
37
36
|
const { contentKind: a } = e.detail, t = e.detail.value;
|
|
38
37
|
switch (a) {
|
|
39
38
|
case l.aggregation:
|
|
40
|
-
this.model.aggregationType = t, t ===
|
|
39
|
+
this.model.aggregationType = t, t === m.Count || t === m.Sum ? this.model.nullPolicy = h.Zero : this.model.nullPolicy = h.Null;
|
|
41
40
|
break;
|
|
42
41
|
case l.xAxisField:
|
|
43
42
|
this.model.xAxisField = t, this.setDefaultPropertiesForCalendarHeatChart();
|
|
44
43
|
break;
|
|
45
44
|
case l.numericFields:
|
|
46
|
-
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType ===
|
|
45
|
+
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === m.Count && this.model.numericFields[0] !== S(this.model.layer).idField && (this.model.aggregationType = m.Sum);
|
|
47
46
|
break;
|
|
48
47
|
case l.calendarType: {
|
|
49
48
|
this.applyCalendarTypePreset(t);
|
|
@@ -70,8 +69,8 @@ class le extends E {
|
|
|
70
69
|
}, this.onModelConfigChange = () => {
|
|
71
70
|
this.requestUpdate();
|
|
72
71
|
}, this.allColorRamps = [], this.onColorRampSelection = async (e) => {
|
|
73
|
-
const { isFlipped: a, rampName: t } = e.detail, s = this.model.colorRampName !== t,
|
|
74
|
-
this.model.colorRampName = t, this.model.isColorRampFlipped = a, (s ||
|
|
72
|
+
const { isFlipped: a, rampName: t } = e.detail, s = this.model.colorRampName !== t, g = this.model.isColorRampFlipped !== a;
|
|
73
|
+
this.model.colorRampName = t, this.model.isColorRampFlipped = a, (s || g) && await this.generateAndUpdateClassBreaks(!0);
|
|
75
74
|
}, this.onEmptyCellNameChange = (e) => {
|
|
76
75
|
const { name: a } = e.detail;
|
|
77
76
|
if (a !== void 0) {
|
|
@@ -88,20 +87,20 @@ class le extends E {
|
|
|
88
87
|
...t,
|
|
89
88
|
symbol: {
|
|
90
89
|
...t?.symbol,
|
|
91
|
-
type:
|
|
90
|
+
type: G.SFS,
|
|
92
91
|
color: a,
|
|
93
92
|
outline: t?.symbol?.outline && { ...t.symbol.outline, color: a }
|
|
94
93
|
}
|
|
95
94
|
};
|
|
96
95
|
this.model.emptyCell = s;
|
|
97
96
|
}
|
|
98
|
-
}, this.availableColorRamps = [], this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigDataChangeError =
|
|
97
|
+
}, this.availableColorRamps = [], this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigDataChangeError = D();
|
|
99
98
|
}
|
|
100
99
|
static {
|
|
101
100
|
this.properties = { availableColorRamps: 16, aggregationLabel: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0, open: 5 };
|
|
102
101
|
}
|
|
103
102
|
static {
|
|
104
|
-
this.styles =
|
|
103
|
+
this.styles = te;
|
|
105
104
|
}
|
|
106
105
|
connectedCallback() {
|
|
107
106
|
super.connectedCallback(), this.loadColorRampFromArcGIS();
|
|
@@ -110,7 +109,7 @@ class le extends E {
|
|
|
110
109
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
111
110
|
}
|
|
112
111
|
willUpdate(e) {
|
|
113
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel =
|
|
112
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel = J(this.model.aggregationType, this.commonStrings);
|
|
114
113
|
}
|
|
115
114
|
disconnectedCallback() {
|
|
116
115
|
super.disconnectedCallback(), this.model?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -120,56 +119,44 @@ class le extends E {
|
|
|
120
119
|
this.allColorRamps = e, this.availableColorRamps = this.allColorRamps;
|
|
121
120
|
}
|
|
122
121
|
getSelectedOrDefaultColorRampName() {
|
|
123
|
-
return this.model.colorRampName ?? (
|
|
122
|
+
return this.model.colorRampName ?? (ee(this.model?.config) ? $.defaultColorRampForCharts?.name : void 0);
|
|
124
123
|
}
|
|
125
124
|
getRequestedBreaksCount() {
|
|
126
|
-
return this.requestedBreaksCount ?? this.model.breaksCount ??
|
|
125
|
+
return this.requestedBreaksCount ?? this.model.breaksCount ?? x.classBreaks.breaksCount;
|
|
127
126
|
}
|
|
128
127
|
getFirstDayOfWeek() {
|
|
129
128
|
const { lang: e } = N(this.el ?? document.documentElement), a = w(e);
|
|
130
|
-
return
|
|
129
|
+
return O.local().setLocale(e).startOf("week", { useLocaleWeeks: a !== I }).weekday;
|
|
131
130
|
}
|
|
132
131
|
applyCalendarTypePreset(e) {
|
|
133
132
|
switch (e) {
|
|
134
|
-
case
|
|
133
|
+
case k.YearByMonthAndDayOfMonth: {
|
|
135
134
|
const a = {
|
|
136
|
-
type:
|
|
137
|
-
unit:
|
|
135
|
+
type: C.CalendarDateParts,
|
|
136
|
+
unit: p.DayOfMonth
|
|
138
137
|
}, t = {
|
|
139
|
-
type:
|
|
140
|
-
unit:
|
|
138
|
+
type: C.CalendarDateParts,
|
|
139
|
+
unit: p.MonthOfYear
|
|
141
140
|
};
|
|
142
|
-
this.model.xTemporalBinning = a, this.model.
|
|
143
|
-
type: m.DateAxisFormat,
|
|
144
|
-
intlOptions: { day: "2-digit" }
|
|
145
|
-
}), this.model.yTemporalBinning = t, this.model.setAxisValueFormat(1, {
|
|
146
|
-
type: m.DateAxisFormat,
|
|
147
|
-
intlOptions: { month: "short" }
|
|
148
|
-
});
|
|
141
|
+
this.model.xTemporalBinning = a, this.model.yTemporalBinning = t;
|
|
149
142
|
break;
|
|
150
143
|
}
|
|
151
|
-
case
|
|
144
|
+
case k.WeekByDayOfWeekAndHourOfDay: {
|
|
152
145
|
const a = {
|
|
153
|
-
type:
|
|
154
|
-
unit:
|
|
146
|
+
type: C.CalendarDateParts,
|
|
147
|
+
unit: p.HourOfDay
|
|
155
148
|
}, t = {
|
|
156
|
-
type:
|
|
157
|
-
unit:
|
|
149
|
+
type: C.CalendarDateParts,
|
|
150
|
+
unit: p.DayOfWeek
|
|
158
151
|
};
|
|
159
|
-
this.model.firstDayOfWeek = this.getFirstDayOfWeek(), this.model.xTemporalBinning = a, this.model.
|
|
160
|
-
type: m.DateAxisFormat,
|
|
161
|
-
intlOptions: { hour: "numeric", hour12: !1 }
|
|
162
|
-
}), this.model.yTemporalBinning = t, this.model.setAxisValueFormat(1, {
|
|
163
|
-
type: m.DateAxisFormat,
|
|
164
|
-
intlOptions: { weekday: "short" }
|
|
165
|
-
});
|
|
152
|
+
this.model.firstDayOfWeek = this.getFirstDayOfWeek(), this.model.xTemporalBinning = a, this.model.yTemporalBinning = t;
|
|
166
153
|
break;
|
|
167
154
|
}
|
|
168
155
|
}
|
|
169
156
|
}
|
|
170
157
|
async generateClassBreaks(e = !1) {
|
|
171
158
|
let a = [];
|
|
172
|
-
const t = this.model.chartRenderer?.classBreakInfos, s = Z
|
|
159
|
+
const t = this.model.chartRenderer?.classBreakInfos, s = X(Z);
|
|
173
160
|
return s && (a = await K({
|
|
174
161
|
data: s,
|
|
175
162
|
xAxisField: this.model.xAxisField,
|
|
@@ -186,16 +173,16 @@ class le extends E {
|
|
|
186
173
|
applyGeneratedClassBreaks(e, a) {
|
|
187
174
|
if (this.model.chartRenderer = {
|
|
188
175
|
type: "classBreaks",
|
|
189
|
-
field:
|
|
176
|
+
field: Q.valueField,
|
|
190
177
|
classBreakInfos: e
|
|
191
|
-
}, this.model.heatRulesType !==
|
|
178
|
+
}, this.model.heatRulesType !== u.Renderer && (this.model.heatRulesType = u.Renderer), this.model.classificationMethod !== F.manual) {
|
|
192
179
|
const t = e.length || a;
|
|
193
180
|
this.model.breaksCount !== t && (this.model.breaksCount = t);
|
|
194
181
|
}
|
|
195
182
|
}
|
|
196
183
|
async generateAndUpdateClassBreaks(e = !1) {
|
|
197
184
|
const a = this.getRequestedBreaksCount(), t = await this.generateClassBreaks(e);
|
|
198
|
-
|
|
185
|
+
V({
|
|
199
186
|
currentBreaks: t,
|
|
200
187
|
configBreaks: this.model.chartRenderer?.classBreakInfos ?? [],
|
|
201
188
|
treatReversedColorsAsEqual: !e
|
|
@@ -226,8 +213,8 @@ class le extends E {
|
|
|
226
213
|
this.contentKind = l.colorScheme, this.setupPopover(e);
|
|
227
214
|
}
|
|
228
215
|
async onBreaksCountChange(e) {
|
|
229
|
-
let a =
|
|
230
|
-
a <
|
|
216
|
+
let a = H(e.target.value);
|
|
217
|
+
a < d.min ? a = d.min : a > d.max && (a = d.max), U(a) && (this.breaksCountElement.value && (this.breaksCountElement.value.value = a.toString()), this.requestedBreaksCount = a, this.model.breaksCount = a, await this.generateAndUpdateClassBreaks());
|
|
231
218
|
}
|
|
232
219
|
onAggregationSelect(e) {
|
|
233
220
|
this.contentKind = l.aggregation, this.setupPopover(e);
|
|
@@ -274,17 +261,17 @@ class le extends E {
|
|
|
274
261
|
this.heatChartPopover = M(i`<arcgis-charts-config-heat-chart-popover .headingTitle=${t} .referenceElement=${a} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${s} @arcgisChartsConfigHeatChartDataPopoverChange=${this.onHeatChartDataPopoverChange} @arcgisChartsConfigPopoverClose=${this.popoverClose} .colorRamps=${this.availableColorRamps} @arcgisChartsConfigHeatChartColorRampChange=${this.onColorRampSelection} @arcgisChartsConfigPopoverEmptyCellColorChange=${this.onEmptyCellColorChange} @arcgisChartsConfigPopoverEmptyCellNameChange=${this.onEmptyCellNameChange} .isFlipped=${this.model.isColorRampFlipped}></arcgis-charts-config-heat-chart-popover>`), !document.body.contains(this.heatChartPopover) && this.heatChartPopover !== null && document.body.appendChild(this.heatChartPopover);
|
|
275
262
|
}
|
|
276
263
|
removeHeatChartDataPopover() {
|
|
277
|
-
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover =
|
|
264
|
+
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = ae(this.heatChartPopover));
|
|
278
265
|
}
|
|
279
266
|
setDefaultPropertiesForCalendarHeatChart() {
|
|
280
|
-
|
|
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;
|
|
281
268
|
}
|
|
282
269
|
renderXAxisFieldSelect() {
|
|
283
270
|
const e = this.getCorrectedXAxisFieldValue();
|
|
284
271
|
return i`<arcgis-charts-config-field-select .label=${e} @click=${this.onXAxisFieldSelect} ${c(this.xAxisFieldElement)}></arcgis-charts-config-field-select>`;
|
|
285
272
|
}
|
|
286
273
|
renderAggregation() {
|
|
287
|
-
return i`<arcgis-charts-config-field-select .label=${this.model.aggregationType ===
|
|
274
|
+
return i`<arcgis-charts-config-field-select .label=${this.model.aggregationType === m.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${c(this.aggregationElement)}></arcgis-charts-config-field-select>`;
|
|
288
275
|
}
|
|
289
276
|
renderNumericFieldsSelect() {
|
|
290
277
|
const e = this.model.numericFields?.[0] === S(this.model.layer).idField ? "" : T(this.layerFieldsInfo, this.model.numericFields?.[0]);
|
|
@@ -303,13 +290,13 @@ class le extends E {
|
|
|
303
290
|
manual: this._messages.classBreaksMethod?.manual,
|
|
304
291
|
naturalBreaks: this._messages.classBreaksMethod?.naturalBreaks,
|
|
305
292
|
quantile: this._messages.classBreaksMethod?.quantile
|
|
306
|
-
}, a = this.model.classificationMethod ? e[
|
|
293
|
+
}, a = this.model.classificationMethod ? e[L(this.model.classificationMethod)] ?? "" : "";
|
|
307
294
|
return i`<arcgis-charts-config-field-select .label=${a} @click=${this.onClassBreakMethodSelect} ${c(this.classBreakMethodElement)}></arcgis-charts-config-field-select>`;
|
|
308
295
|
}
|
|
309
296
|
renderColorRampSelect() {
|
|
310
297
|
const e = this.model.chartRenderer?.classBreakInfos?.map((a) => {
|
|
311
|
-
const t = a !== void 0 ?
|
|
312
|
-
return i`<div class=${o(r.colorRampSegment)} style=${
|
|
298
|
+
const t = a !== void 0 ? z(a.symbol.color) : "#FFFFFF";
|
|
299
|
+
return i`<div class=${o(r.colorRampSegment)} style=${B({ backgroundColor: t, width: `${100 / this.model.breaksCount}%` })}></div>`;
|
|
313
300
|
});
|
|
314
301
|
return i`<arcgis-charts-config-field-select label @click=${this.onColorSchemeSelect} ${c(this.colorSchemeElement)}><div slot=fieldSelectSlot class=${o(r.colorRamp)}>${e}</div></arcgis-charts-config-field-select>`;
|
|
315
302
|
}
|
|
@@ -318,18 +305,18 @@ class le extends E {
|
|
|
318
305
|
return i`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${this._messages.symbol}></calcite-table-header><calcite-table-header .heading=${this._messages.upperValue}></calcite-table-header></calcite-table-row>${e.map((a) => i`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${a.symbol.color?.[0]}, ${a.symbol.color?.[1]}, ${a.symbol.color?.[2]}, ${a.symbol.color?.[3] / 255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${a.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
|
|
319
306
|
}
|
|
320
307
|
renderNullUI() {
|
|
321
|
-
const e = this.model.emptyCell, a = this._messages.null, t = e?.symbol?.color ??
|
|
322
|
-
return i`<calcite-list label class=${o(r.list)} selection-mode=none ${c(this.nullElement)}><calcite-list-item .label=${a} .value=${a} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${
|
|
308
|
+
const e = this.model.emptyCell, a = this._messages.null, t = e?.symbol?.color ?? x.grayColor, [s, g, f, y] = [...t], b = `rgba(${s},${g},${f},${y / 255})`;
|
|
309
|
+
return i`<calcite-list label class=${o(r.list)} selection-mode=none ${c(this.nullElement)}><calcite-list-item .label=${a} .value=${a} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${B({ color: b })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
323
310
|
}
|
|
324
311
|
renderEmptyBins() {
|
|
325
312
|
return i`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Zero} .checked=${this.model.nullPolicy === h.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Null} .checked=${this.model.nullPolicy === h.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`;
|
|
326
313
|
}
|
|
327
314
|
render() {
|
|
328
|
-
const e = this.renderXAxisFieldSelect(), a = this.renderAggregation(), t = this.renderNumericFieldsSelect(), s = this.renderCalendarTypeSelect(),
|
|
329
|
-
return i`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${s}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${
|
|
315
|
+
const e = this.renderXAxisFieldSelect(), a = this.renderAggregation(), t = this.renderNumericFieldsSelect(), s = this.renderCalendarTypeSelect(), g = this.renderClassBreakMethodSelect(), f = this.renderColorRampSelect(), y = this.renderClassBreaksTable(), b = this.renderNullUI(), E = this.renderEmptyBins();
|
|
316
|
+
return i`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${s}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${g}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${d.min} .max=${d.max} .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === F.manual} step=1 .value=${q(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${c(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${f}</calcite-label>${b}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${y}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${E}</calcite-label>${v(this.model) === k.YearByMonthAndDayOfMonth ? i`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>` : null}`;
|
|
330
317
|
}
|
|
331
318
|
}
|
|
332
|
-
|
|
319
|
+
P("arcgis-charts-config-heat-chart-data", se);
|
|
333
320
|
export {
|
|
334
|
-
|
|
321
|
+
se as ArcgisChartsConfigHeatChartData
|
|
335
322
|
};
|