@arcgis/charts-components 5.0.4 → 5.0.6
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/{XSDBMXDE.js → 25L65XNX.js} +1 -1
- package/dist/cdn/{E6KTB6QM.js → 4W4NTZDU.js} +1 -1
- package/dist/cdn/{OHE7YRK7.js → 5LSYBPU5.js} +1 -1
- package/dist/cdn/{UH4W2XA2.js → 5M65ZHB6.js} +1 -1
- package/dist/cdn/{RVTOZIZA.js → 5YONFWGM.js} +1 -1
- package/dist/cdn/{U4TD6FOA.js → 64ZXL6TN.js} +1 -1
- package/dist/cdn/{DSFEVXJD.js → 6TOJ3STD.js} +1 -1
- package/dist/cdn/{TM2Q7DSE.js → 76XZWS4W.js} +1 -1
- package/dist/cdn/{73OXWJVZ.js → 7E6UQFAG.js} +1 -1
- package/dist/cdn/{64P7ROQB.js → 7HLMURTM.js} +1 -1
- package/dist/cdn/{5PM5GEK3.js → 7KFHTEVW.js} +1 -1
- package/dist/cdn/{2SXKNHGP.js → 7PVNG4EF.js} +1 -1
- package/dist/cdn/{DWJNZ62S.js → AF2VUAFV.js} +1 -1
- package/dist/cdn/{XCRBYDTR.js → AP3B7YEY.js} +1 -1
- package/dist/cdn/{N4VQ6XVD.js → AR7JUNS3.js} +1 -1
- package/dist/cdn/{HP6HQQYZ.js → AUSCS2CL.js} +1 -1
- package/dist/cdn/{DLAWIEAX.js → AVLREFA2.js} +1 -1
- package/dist/cdn/{AXQZLDDA.js → B26JTZLQ.js} +1 -1
- package/dist/cdn/B6ZWDXKM.js +2 -0
- package/dist/cdn/{SABI6QUF.js → BGUF6LTO.js} +1 -1
- package/dist/cdn/{WF4J4J5E.js → BPGZ7Z3G.js} +1 -1
- package/dist/cdn/{QWBD77H4.js → CASV35QP.js} +1 -1
- package/dist/cdn/{MBL7GWOQ.js → CBSWYZAO.js} +1 -1
- package/dist/cdn/{PJWEFUCZ.js → CE52HPJT.js} +1 -1
- package/dist/cdn/{XTKRTOCC.js → CPMBEJU4.js} +19 -19
- package/dist/cdn/{JQ54323D.js → CVVGPUCO.js} +1 -1
- package/dist/cdn/CZGWEAC4.js +2 -0
- package/dist/cdn/{CXQZVMUR.js → DTMKLNTX.js} +1 -1
- package/dist/cdn/{APW76JJT.js → E23ZJFV5.js} +1 -1
- package/dist/cdn/{TBQC35R3.js → EBBPI6ST.js} +1 -1
- package/dist/cdn/{2YE3LCHG.js → EG7LLCYZ.js} +1 -1
- package/dist/cdn/{XEFJFY3B.js → ER5NZZHJ.js} +1 -1
- package/dist/cdn/{DSX3YISR.js → FKRIAGJM.js} +1 -1
- package/dist/cdn/{HQC6AZI2.js → FWU6LLUA.js} +1 -1
- package/dist/cdn/{OKU4QU3I.js → GNNDY4DP.js} +1 -1
- package/dist/cdn/{I2A3IDNK.js → H6QL4MSJ.js} +1 -1
- package/dist/cdn/{MIKKA5OB.js → HA5O3EQD.js} +1 -1
- package/dist/cdn/{6QNY6RCO.js → IAIUWLH2.js} +1 -1
- package/dist/cdn/{DGP7BQGA.js → IAOXX23E.js} +1 -1
- package/dist/cdn/IHM4ZUO5.js +2 -0
- package/dist/cdn/{7JADUCZI.js → IHPEOODJ.js} +1 -1
- package/dist/cdn/INW2HD7F.js +2 -0
- package/dist/cdn/{K7RBSWNZ.js → INXVARZH.js} +1 -1
- package/dist/cdn/{35PYRXW2.js → ITOFZXO3.js} +1 -1
- package/dist/cdn/{BERJAUFR.js → IXRYT4II.js} +1 -1
- package/dist/cdn/{IFJKBGIM.js → JG4ZVK7J.js} +1 -1
- package/dist/cdn/{5OFKK6IK.js → KHGSDXTF.js} +1 -1
- package/dist/cdn/{YHFMRTW6.js → KITOZZK5.js} +1 -1
- package/dist/cdn/{NZMTDKKZ.js → KRBXVSYD.js} +1 -1
- package/dist/cdn/{775WUZ4C.js → KV27QP4X.js} +1 -1
- package/dist/cdn/{WCDACDMC.js → KYTQC53R.js} +1 -1
- package/dist/cdn/{WS6SV4IJ.js → L5ET35Q2.js} +1 -1
- package/dist/cdn/{746FOLWQ.js → LXQ6QQO7.js} +1 -1
- package/dist/cdn/{65ZCLVMH.js → MMT32MIK.js} +1 -1
- package/dist/cdn/{TRW3IP5V.js → MNRZSWNU.js} +1 -1
- package/dist/cdn/{7DGMDJUC.js → NHF2JVZM.js} +1 -1
- package/dist/cdn/NU3MLN2G.js +2 -0
- package/dist/cdn/{ZZXPVJUY.js → NX4VZINF.js} +1 -1
- package/dist/cdn/{BHVCX6WS.js → OGMVV7I3.js} +1 -1
- package/dist/cdn/{LSDMLOHK.js → OHCVXKPZ.js} +1 -1
- package/dist/cdn/{UIG4LY7Z.js → OKVBEZO2.js} +1 -1
- package/dist/cdn/{NMDNMRKM.js → OPZLHI7K.js} +1 -1
- package/dist/cdn/{RUKHUTSR.js → OSUQO24K.js} +1 -1
- package/dist/cdn/{C5USXEUX.js → P62YR5KB.js} +1 -1
- package/dist/cdn/{2RVI6WCT.js → P7O2CXBA.js} +1 -1
- package/dist/cdn/{STNKVNCO.js → PFLH47ND.js} +1 -1
- package/dist/cdn/{TU57O7LF.js → PHM2ANVG.js} +1 -1
- package/dist/cdn/{5PEPEKX3.js → POPQDHFN.js} +1 -1
- package/dist/cdn/{6HZ6LUOW.js → QISPLE7O.js} +1 -1
- package/dist/cdn/{MAP4KH23.js → QZDPUMJZ.js} +1 -1
- package/dist/cdn/{K7BK75N3.js → R24WPALO.js} +1 -1
- package/dist/cdn/{LW5EWELB.js → R2C5AHAD.js} +1 -1
- package/dist/cdn/{FGDXVDIW.js → RKHRZCAZ.js} +1 -1
- package/dist/cdn/{IB36HSWP.js → RU6XKPXI.js} +1 -1
- package/dist/cdn/{JASSTXLN.js → S3GXJRH4.js} +1 -1
- package/dist/cdn/{JHWMECWO.js → SBC6RJYI.js} +1 -1
- package/dist/cdn/{QG55UNB3.js → SIT25A2R.js} +1 -1
- package/dist/cdn/{Y2ICSLLL.js → SWA7P4OD.js} +1 -1
- package/dist/cdn/{FIYIEYRT.js → TXGLSJZO.js} +1 -1
- package/dist/cdn/{22C4P6T4.js → TXKDAURA.js} +1 -1
- package/dist/cdn/{CA7MMTCC.js → U4TA4KX5.js} +1 -1
- package/dist/cdn/{AIYQZ3C2.js → UFFMOYWH.js} +1 -1
- package/dist/cdn/{2X652PBT.js → UKLIL3YQ.js} +1 -1
- package/dist/cdn/{NRMWKUCF.js → V65XU7DU.js} +1 -1
- package/dist/cdn/{JRGCR3YE.js → VPXOYMLV.js} +1 -1
- package/dist/cdn/{PMJNH4J5.js → VVVOGXTZ.js} +1 -1
- package/dist/cdn/{FMNKV4BG.js → VYGSI4GY.js} +1 -1
- package/dist/cdn/{CWKEXEYX.js → W66CQUSB.js} +1 -1
- package/dist/cdn/{NCXILK3J.js → WC5D3HDI.js} +1 -1
- package/dist/cdn/{K4QCQ5PA.js → WFOYORCF.js} +1 -1
- package/dist/cdn/{EVVJP7YN.js → WIQE7A4U.js} +1 -1
- package/dist/cdn/{JQSLYVQ3.js → WLBENMXU.js} +1 -1
- package/dist/cdn/{WDNXCXUS.js → WUJHVVE4.js} +1 -1
- package/dist/cdn/{S4JM7ORZ.js → XF2N2XET.js} +1 -1
- package/dist/cdn/{RE7WTDTG.js → ZAV4MSAI.js} +1 -1
- package/dist/cdn/ZLQXY2BV.js +2 -0
- package/dist/cdn/{ARIQD3ZD.js → ZP2TAS7W.js} +1 -1
- package/dist/cdn/{HW4NCWCO.js → ZUTC2KZJ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/class-breaks.js +207 -125
- package/dist/chunks/index.js +27 -27
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/serial-chart-data.js +3 -3
- package/dist/chunks/store.js +25 -16
- package/dist/components/arcgis-chart/customElement.js +5160 -5136
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +149 -153
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +170 -183
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/package.json +3 -3
- package/dist/cdn/42KFTXRH.js +0 -2
- package/dist/cdn/EGSZETEH.js +0 -2
- package/dist/cdn/NU3FXF5D.js +0 -2
- package/dist/cdn/SVS45YOT.js +0 -2
- package/dist/cdn/WNMDGQ7Y.js +0 -2
- package/dist/cdn/X5N3ATSV.js +0 -2
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { u as D } from "../../chunks/useT9n.js";
|
|
14
|
-
import { d as i, W as F } from "../../chunks/interfaces.js";
|
|
15
|
-
import { H as G } from "../../chunks/common.js";
|
|
2
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as E, createEvent as M, renderElement as P, safeClassMap as n, safeStyleMap as F } from "@arcgis/lumina";
|
|
4
|
+
import { getElementLocale as I, normalizeLocale as w, defaultLocale as _ } from "@arcgis/toolkit/intl";
|
|
5
|
+
import { css as O, html as r } from "lit";
|
|
6
|
+
import { createRef as d, ref as p } from "lit/directives/ref.js";
|
|
7
|
+
import { isEqual as B, cloneDeep as H, parseInt as L, camelCase as N } from "lodash-es";
|
|
8
|
+
import { DateTime as U } from "luxon";
|
|
9
|
+
import { bR as W, _ as V, by as K, ds as x, az as q, d3 as R, de as z, aA as f } from "../../chunks/index.js";
|
|
10
|
+
import { u as T } from "../../chunks/useT9n.js";
|
|
11
|
+
import { d as l, W as v } from "../../chunks/interfaces.js";
|
|
12
|
+
import { H as j } from "../../chunks/common.js";
|
|
16
13
|
import "@arcgis/toolkit/type";
|
|
17
|
-
import { j as y, W as h, a as u, m as
|
|
18
|
-
import { f as
|
|
19
|
-
import { x as
|
|
20
|
-
import { i as
|
|
14
|
+
import { j as y, W as h, a as u, m as g, v as b, l as k, u as X } from "../../chunks/series-types.js";
|
|
15
|
+
import { f as Z } from "../../chunks/rest-js-object-literals.js";
|
|
16
|
+
import { x as Y } from "../../chunks/data.js";
|
|
17
|
+
import { i as G } from "../../chunks/utils.js";
|
|
21
18
|
import "d3-array";
|
|
19
|
+
import "@arcgis/core/Graphic.js";
|
|
20
|
+
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
21
|
+
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
22
22
|
import "@arcgis/core/intl.js";
|
|
23
23
|
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
24
24
|
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
@@ -31,65 +31,65 @@ import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
|
31
31
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
32
32
|
import "@arcgis/core/time/TimeExtent.js";
|
|
33
33
|
import "@arcgis/core/core/promiseUtils.js";
|
|
34
|
-
import { b as se } from "../../chunks/index3.js";
|
|
35
34
|
import "@arcgis/toolkit/dom";
|
|
36
|
-
import { r as
|
|
37
|
-
import { j as $, s as
|
|
38
|
-
import { g as
|
|
39
|
-
|
|
35
|
+
import { r as J } from "../../chunks/popover-ui-utils.js";
|
|
36
|
+
import { j as $, s as Q } from "../../chunks/chart-ui-utils2.js";
|
|
37
|
+
import { c as A, g as ee, a as te, b as ae, p as se, d as le, i as ie } from "../../chunks/class-breaks.js";
|
|
38
|
+
import { c as oe, s as re } from "../../chunks/store.js";
|
|
39
|
+
const ne = O`.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)}`, c = {
|
|
40
40
|
label: "label",
|
|
41
41
|
colorRamp: "color-ramp",
|
|
42
42
|
colorRampSegment: "color-ramp-segment",
|
|
43
43
|
list: "list",
|
|
44
44
|
accordion: "accordion"
|
|
45
45
|
};
|
|
46
|
-
class
|
|
46
|
+
class ce extends E {
|
|
47
47
|
constructor() {
|
|
48
|
-
super(...arguments), this._messages =
|
|
48
|
+
super(...arguments), this._messages = T(), this.commonStrings = T({ name: "common", blocking: !0 }), this.heatChartPopover = null, this.xAxisFieldElement = d(), this.aggregationElement = d(), this.numericFieldsElement = d(), this.calendarTypeElement = d(), this.calendarViewTypeElement = d(), this.classBreakMethodElement = d(), this.nullElement = d(), this.breaksCountElement = d(), this.colorSchemeElement = d(), this.onHeatChartDataPopoverChange = async (e) => {
|
|
49
49
|
try {
|
|
50
50
|
if (e.detail?.value !== void 0) {
|
|
51
|
-
const { contentKind:
|
|
52
|
-
switch (
|
|
53
|
-
case
|
|
54
|
-
this.model.aggregationType =
|
|
51
|
+
const { contentKind: t } = e.detail, a = e.detail.value;
|
|
52
|
+
switch (t) {
|
|
53
|
+
case l.aggregation:
|
|
54
|
+
this.model.aggregationType = a, a === u.Count || a === u.Sum ? this.model.nullPolicy = g.Zero : this.model.nullPolicy = g.Null;
|
|
55
55
|
break;
|
|
56
|
-
case
|
|
57
|
-
this.model.xAxisField =
|
|
56
|
+
case l.xAxisField:
|
|
57
|
+
this.model.xAxisField = a, this.setDefaultPropertiesForCalendarHeatChart();
|
|
58
58
|
break;
|
|
59
|
-
case
|
|
60
|
-
this.model.numericFields = [
|
|
59
|
+
case l.numericFields:
|
|
60
|
+
this.model.numericFields = [a.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === u.Count && this.model.numericFields[0] !== W(this.model.layer).idField && (this.model.aggregationType = u.Sum);
|
|
61
61
|
break;
|
|
62
|
-
case
|
|
63
|
-
switch (
|
|
64
|
-
case
|
|
62
|
+
case l.calendarType: {
|
|
63
|
+
switch (a) {
|
|
64
|
+
case v.YearByMonthAndDayOfMonth: {
|
|
65
65
|
const s = {
|
|
66
66
|
type: h.CalendarDateParts,
|
|
67
67
|
unit: y.DayOfMonth
|
|
68
|
-
},
|
|
68
|
+
}, o = {
|
|
69
69
|
type: h.CalendarDateParts,
|
|
70
70
|
unit: y.MonthOfYear
|
|
71
71
|
};
|
|
72
72
|
this.model.xTemporalBinning = s, this.model.setAxisValueFormat(0, {
|
|
73
73
|
type: h.DateAxisFormat,
|
|
74
74
|
intlOptions: { day: "2-digit" }
|
|
75
|
-
}), this.model.yTemporalBinning =
|
|
75
|
+
}), this.model.yTemporalBinning = o, this.model.setAxisValueFormat(1, {
|
|
76
76
|
type: h.DateAxisFormat,
|
|
77
77
|
intlOptions: { month: "short" }
|
|
78
78
|
});
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
81
|
-
case
|
|
81
|
+
case v.WeekByDayOfWeekAndHourOfDay: {
|
|
82
82
|
const s = {
|
|
83
83
|
type: h.CalendarDateParts,
|
|
84
84
|
unit: y.HourOfDay
|
|
85
|
-
},
|
|
85
|
+
}, o = {
|
|
86
86
|
type: h.CalendarDateParts,
|
|
87
87
|
unit: y.DayOfWeek
|
|
88
|
-
}, { lang:
|
|
89
|
-
this.model.firstDayOfWeek =
|
|
88
|
+
}, { lang: i } = I(this.el ?? document.documentElement), m = w(i), C = U.local().setLocale(i).startOf("week", { useLocaleWeeks: m !== _ }).weekday;
|
|
89
|
+
this.model.firstDayOfWeek = C, this.model.xTemporalBinning = s, this.model.setAxisValueFormat(0, {
|
|
90
90
|
type: h.DateAxisFormat,
|
|
91
91
|
intlOptions: { hour: "numeric", hour12: !1 }
|
|
92
|
-
}), this.model.yTemporalBinning =
|
|
92
|
+
}), this.model.yTemporalBinning = o, this.model.setAxisValueFormat(1, {
|
|
93
93
|
type: h.DateAxisFormat,
|
|
94
94
|
intlOptions: { weekday: "short" }
|
|
95
95
|
});
|
|
@@ -100,59 +100,59 @@ class me extends w {
|
|
|
100
100
|
}
|
|
101
101
|
break;
|
|
102
102
|
}
|
|
103
|
-
case
|
|
104
|
-
this.model.viewType =
|
|
103
|
+
case l.calendarViewType: {
|
|
104
|
+
this.model.viewType = a;
|
|
105
105
|
break;
|
|
106
106
|
}
|
|
107
|
-
case
|
|
108
|
-
this.model.classificationMethod =
|
|
107
|
+
case l.classBreakMethod: {
|
|
108
|
+
this.model.classificationMethod = a, this.updateChartRenderer = !0;
|
|
109
109
|
break;
|
|
110
110
|
}
|
|
111
111
|
default:
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
} catch (
|
|
116
|
-
throw this.arcgisChartsConfigDataChangeError.emit({ error:
|
|
115
|
+
} catch (t) {
|
|
116
|
+
throw this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
117
117
|
}
|
|
118
118
|
this.removeHeatChartDataPopover(), this.requestUpdate();
|
|
119
119
|
}, this.popoverClose = (e) => {
|
|
120
120
|
this.heatChartPopover === e?.target && this.removeHeatChartDataPopover();
|
|
121
121
|
}, this.onModelConfigChange = () => {
|
|
122
|
-
|
|
122
|
+
V(this.model?.config) && (this.selectedColorRamp = A.defaultColorRampForCharts), this.requestUpdate();
|
|
123
123
|
}, this.allColorRamps = [], this.onColorRampSelection = (e) => {
|
|
124
|
-
const { ramp:
|
|
125
|
-
this.isFlipped =
|
|
124
|
+
const { ramp: t, isFlipped: a } = e.detail;
|
|
125
|
+
this.isFlipped = a, B(this.selectedColorRamp, t) || (this.selectedColorRamp = t, this.updateChartRenderer = !0, this.updateClassBreaksColor = !0, this.generateAndUpdateClassBreaks());
|
|
126
126
|
}, this.updateClassBreaksColor = !1, this.onEmptyCellNameChange = (e) => {
|
|
127
|
-
const { name:
|
|
128
|
-
if (
|
|
127
|
+
const { name: t } = e.detail;
|
|
128
|
+
if (t !== void 0) {
|
|
129
129
|
const s = {
|
|
130
130
|
...this.model.emptyCell,
|
|
131
|
-
name:
|
|
131
|
+
name: t
|
|
132
132
|
};
|
|
133
133
|
this.model.emptyCell = s;
|
|
134
134
|
}
|
|
135
135
|
}, this.onEmptyCellColorChange = (e) => {
|
|
136
|
-
const { color:
|
|
137
|
-
if (
|
|
138
|
-
const
|
|
139
|
-
...
|
|
136
|
+
const { color: t } = e.detail;
|
|
137
|
+
if (t !== void 0) {
|
|
138
|
+
const a = this.model.emptyCell, s = {
|
|
139
|
+
...a,
|
|
140
140
|
symbol: {
|
|
141
|
-
...
|
|
142
|
-
type:
|
|
143
|
-
color:
|
|
144
|
-
outline:
|
|
141
|
+
...a?.symbol,
|
|
142
|
+
type: Z.SFS,
|
|
143
|
+
color: t,
|
|
144
|
+
outline: a?.symbol?.outline && { ...a.symbol.outline, color: t }
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
this.model.emptyCell = s;
|
|
148
148
|
}
|
|
149
|
-
}, this.isFlipped = !1, this.availableColorRamps = [], this.updateChartRenderer = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError =
|
|
149
|
+
}, this.isFlipped = !1, this.availableColorRamps = [], this.updateChartRenderer = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = M();
|
|
150
150
|
}
|
|
151
151
|
static {
|
|
152
|
-
this.properties = { availableColorRamps: 16, aggregationLabel: 16, selectedColorRamp: 16, updateChartRenderer: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0, open: 5
|
|
152
|
+
this.properties = { availableColorRamps: 16, aggregationLabel: 16, selectedColorRamp: 16, updateChartRenderer: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0, open: 5 };
|
|
153
153
|
}
|
|
154
154
|
static {
|
|
155
|
-
this.styles =
|
|
155
|
+
this.styles = ne;
|
|
156
156
|
}
|
|
157
157
|
connectedCallback() {
|
|
158
158
|
super.connectedCallback(), this.loadColorRampFromArcGIS();
|
|
@@ -161,7 +161,7 @@ class me extends w {
|
|
|
161
161
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
162
162
|
}
|
|
163
163
|
willUpdate(e) {
|
|
164
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel =
|
|
164
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel = K(this.model.aggregationType, this.commonStrings);
|
|
165
165
|
}
|
|
166
166
|
updated(e) {
|
|
167
167
|
e.has("updateChartRenderer") && this.updateChartRenderer && this.generateAndUpdateClassBreaks();
|
|
@@ -170,189 +170,176 @@ class me extends w {
|
|
|
170
170
|
super.disconnectedCallback(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
171
171
|
}
|
|
172
172
|
loadColorRampFromArcGIS() {
|
|
173
|
-
const e =
|
|
173
|
+
const e = A.esriColorRamps;
|
|
174
174
|
this.allColorRamps = e, this.availableColorRamps = this.allColorRamps;
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
numberOfClassBreaks: a,
|
|
180
|
-
selectedColorRamp: e,
|
|
181
|
-
colorRamp: this.model.chartRenderer?.classBreakInfos?.map((s) => s.symbol?.color),
|
|
182
|
-
isFlipped: this.isFlipped
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
normalizeClassBreakInfosForCompare(e, a) {
|
|
186
|
-
return (e ?? []).map(({ classMinValue: t, classMaxValue: s, label: l, symbol: o }) => ({
|
|
187
|
-
classMinValue: t,
|
|
176
|
+
normalizeClassBreakInfosForCompare(e, t) {
|
|
177
|
+
return (e ?? []).map(({ classMinValue: a, classMaxValue: s, label: o, symbol: i }) => ({
|
|
178
|
+
classMinValue: a,
|
|
188
179
|
classMaxValue: s,
|
|
189
|
-
label:
|
|
190
|
-
symbol:
|
|
180
|
+
label: o,
|
|
181
|
+
symbol: t ? void 0 : i
|
|
191
182
|
}));
|
|
192
183
|
}
|
|
193
184
|
async generateAndUpdateClassBreaks() {
|
|
194
185
|
let e = [];
|
|
195
|
-
const a = this.requestedBreaksCount ?? this.model.breaksCount ??
|
|
196
|
-
if (this.model.classificationMethod === b.manual &&
|
|
197
|
-
e =
|
|
198
|
-
const
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
categoryField: this.model?.xAxisField?.[0] ?? "",
|
|
204
|
-
categoryType: h.DateAxisFormat,
|
|
205
|
-
numericFields: [v.valueField],
|
|
206
|
-
inlineData: this.chartData ?? this.model.dataStore.chartData
|
|
186
|
+
const t = this.model.chartRenderer?.classBreakInfos, a = this.requestedBreaksCount ?? this.model.breaksCount ?? x.classBreaks.breaksCount;
|
|
187
|
+
if (this.model.classificationMethod === b.manual && t?.length && this.selectedColorRamp) {
|
|
188
|
+
e = H(t) ?? [];
|
|
189
|
+
const i = ee({
|
|
190
|
+
numberOfClassBreaks: a,
|
|
191
|
+
selectedColorRamp: this.selectedColorRamp,
|
|
192
|
+
existingClassBreakInfos: t,
|
|
193
|
+
isFlipped: this.isFlipped
|
|
207
194
|
});
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
195
|
+
e = te({
|
|
196
|
+
classBreakInfos: e,
|
|
197
|
+
colors: i
|
|
198
|
+
});
|
|
199
|
+
} else if (this.model.classificationMethod !== b.manual) {
|
|
200
|
+
const i = oe(re);
|
|
201
|
+
i && (e = await ae({
|
|
202
|
+
data: i,
|
|
203
|
+
xAxisField: this.model.xAxisField,
|
|
204
|
+
classificationMethod: this.model.classificationMethod,
|
|
205
|
+
breaksCount: this.model.breaksCount,
|
|
206
|
+
layer: this.model.layer,
|
|
207
|
+
selectedColorRamp: this.selectedColorRamp,
|
|
208
|
+
availableColorRamps: this.availableColorRamps,
|
|
209
|
+
existingClassBreakInfos: t,
|
|
210
|
+
// use the color ramp only if the `selectedColorRamp` was not modified by the color ramp popover
|
|
211
|
+
useExistingColors: !this.updateClassBreaksColor,
|
|
212
|
+
// Note: selectedColorRamp already has flip applied if needed (handled by popover component)
|
|
213
|
+
isFlipped: this.isFlipped
|
|
214
|
+
}));
|
|
228
215
|
}
|
|
229
|
-
const
|
|
230
|
-
if (this.updateChartRenderer &&
|
|
216
|
+
const s = !this.updateClassBreaksColor, o = !B(this.normalizeClassBreakInfosForCompare(this.model.chartRenderer?.classBreakInfos, s), this.normalizeClassBreakInfosForCompare(e, s));
|
|
217
|
+
if (this.updateChartRenderer && o && (this.model.chartRenderer = {
|
|
231
218
|
type: "classBreaks",
|
|
232
219
|
// TODO (heat-chart) use the correct type
|
|
233
|
-
field:
|
|
220
|
+
field: q.valueField,
|
|
234
221
|
classBreakInfos: e
|
|
235
|
-
}, this.model.heatRulesType =
|
|
236
|
-
const
|
|
237
|
-
this.model.breaksCount !==
|
|
222
|
+
}, this.model.heatRulesType !== k.Renderer && (this.model.heatRulesType = k.Renderer), this.model.classificationMethod !== b.manual)) {
|
|
223
|
+
const i = e.length || a;
|
|
224
|
+
this.model.breaksCount !== i && (this.model.breaksCount = i);
|
|
238
225
|
}
|
|
239
226
|
this.updateChartRenderer = !1, this.updateClassBreaksColor = !1;
|
|
240
227
|
}
|
|
241
|
-
modelChange(e,
|
|
242
|
-
|
|
228
|
+
modelChange(e, t) {
|
|
229
|
+
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
243
230
|
}
|
|
244
231
|
getCorrectedXAxisFieldValue() {
|
|
245
|
-
return
|
|
232
|
+
return Y({
|
|
246
233
|
fieldName: this.model.xAxisField,
|
|
247
234
|
fieldList: this.layerFieldsInfo
|
|
248
|
-
}) ? "" :
|
|
235
|
+
}) ? "" : R(this.layerFieldsInfo, this.model.xAxisField);
|
|
249
236
|
}
|
|
250
237
|
onXAxisFieldSelect(e) {
|
|
251
|
-
this.contentKind =
|
|
238
|
+
this.contentKind = l.xAxisField, this.setupPopover(e);
|
|
252
239
|
}
|
|
253
240
|
onNumericFieldSelect(e) {
|
|
254
|
-
this.contentKind =
|
|
241
|
+
this.contentKind = l.numericFields, this.setupPopover(e);
|
|
255
242
|
}
|
|
256
243
|
onCalendarTypeSelect(e) {
|
|
257
|
-
this.contentKind =
|
|
244
|
+
this.contentKind = l.calendarType, this.setupPopover(e);
|
|
258
245
|
}
|
|
259
246
|
onClassBreakMethodSelect(e) {
|
|
260
|
-
this.contentKind =
|
|
247
|
+
this.contentKind = l.classBreakMethod, this.setupPopover(e);
|
|
261
248
|
}
|
|
262
249
|
onColorSchemeSelect(e) {
|
|
263
|
-
this.contentKind =
|
|
250
|
+
this.contentKind = l.colorScheme, this.setupPopover(e);
|
|
264
251
|
}
|
|
265
252
|
onBreaksCountChange(e) {
|
|
266
|
-
let
|
|
267
|
-
|
|
253
|
+
let t = L(e.target.value);
|
|
254
|
+
t < f.min ? t = f.min : t > f.max && (t = f.max), z(t) && (this.breaksCountElement.value && (this.breaksCountElement.value.value = t.toString()), this.requestedBreaksCount = t, this.model.breaksCount = t, this.updateChartRenderer = !0);
|
|
268
255
|
}
|
|
269
256
|
onAggregationSelect(e) {
|
|
270
|
-
this.contentKind =
|
|
257
|
+
this.contentKind = l.aggregation, this.setupPopover(e);
|
|
271
258
|
}
|
|
272
259
|
onNullSelect(e) {
|
|
273
|
-
this.contentKind =
|
|
260
|
+
this.contentKind = l.null, this.setupPopover(e);
|
|
274
261
|
}
|
|
275
262
|
onIncludeLeapDayChange(e) {
|
|
276
|
-
const
|
|
277
|
-
this.model.includeLeapDay =
|
|
263
|
+
const t = e.target.checked;
|
|
264
|
+
this.model.includeLeapDay = t;
|
|
278
265
|
}
|
|
279
266
|
onNullPolicyChange(e) {
|
|
280
267
|
this.model.nullPolicy = e.target.selectedItem.value;
|
|
281
268
|
}
|
|
282
269
|
setupPopover(e) {
|
|
283
270
|
e.stopImmediatePropagation(), this.removeHeatChartDataPopover();
|
|
284
|
-
let
|
|
271
|
+
let t, a, s, o = this.isFlipped;
|
|
285
272
|
switch (this.contentKind) {
|
|
286
|
-
case
|
|
287
|
-
|
|
273
|
+
case l.aggregation:
|
|
274
|
+
t = this.aggregationElement.value, a = this._messages.aggregationHeader, s = this.model.aggregationType;
|
|
288
275
|
break;
|
|
289
|
-
case
|
|
290
|
-
|
|
276
|
+
case l.xAxisField:
|
|
277
|
+
t = this.xAxisFieldElement.value, a = this._messages.xAxisField, s = this.model.xAxisField;
|
|
291
278
|
break;
|
|
292
|
-
case
|
|
293
|
-
|
|
279
|
+
case l.numericFields:
|
|
280
|
+
t = this.numericFieldsElement.value, a = this._messages.numericField, s = this.model.numericFields?.[0];
|
|
294
281
|
break;
|
|
295
|
-
case
|
|
296
|
-
|
|
282
|
+
case l.calendarType:
|
|
283
|
+
t = this.calendarTypeElement.value, a = this._messages.calendarType, s = $(this.model);
|
|
297
284
|
break;
|
|
298
|
-
case
|
|
299
|
-
|
|
285
|
+
case l.calendarViewType:
|
|
286
|
+
t = this.calendarViewTypeElement.value, a = this._messages.viewType, s = this.model.viewType;
|
|
300
287
|
break;
|
|
301
|
-
case
|
|
302
|
-
|
|
288
|
+
case l.classBreakMethod:
|
|
289
|
+
t = this.classBreakMethodElement.value, a = this._messages.method, s = this.model.classificationMethod;
|
|
303
290
|
break;
|
|
304
|
-
case
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
s = this.selectedColorRamp?.name ??
|
|
308
|
-
const m =
|
|
309
|
-
|
|
291
|
+
case l.colorScheme:
|
|
292
|
+
t = this.colorSchemeElement.value, a = this._messages.colorScheme;
|
|
293
|
+
const i = se(this.model.chartRenderer?.classBreakInfos, this.availableColorRamps);
|
|
294
|
+
s = this.selectedColorRamp?.name ?? i?.name;
|
|
295
|
+
const m = i ? i.colorsForClassBreaks.find((C) => C.numClasses === this.model.breaksCount)?.colors : void 0;
|
|
296
|
+
o = m ? ie(m, this.model.chartRenderer?.classBreakInfos) : o;
|
|
310
297
|
break;
|
|
311
|
-
case
|
|
312
|
-
|
|
298
|
+
case l.null:
|
|
299
|
+
t = e.target, a = this._messages.null;
|
|
313
300
|
break;
|
|
314
301
|
}
|
|
315
|
-
this.heatChartPopover =
|
|
302
|
+
this.heatChartPopover = P(r`<arcgis-charts-config-heat-chart-popover .headingTitle=${a} .referenceElement=${t} 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=${o}></arcgis-charts-config-heat-chart-popover>`), !document.body.contains(this.heatChartPopover) && this.heatChartPopover !== null && document.body.appendChild(this.heatChartPopover);
|
|
316
303
|
}
|
|
317
304
|
removeHeatChartDataPopover() {
|
|
318
|
-
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover =
|
|
305
|
+
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = J(this.heatChartPopover));
|
|
319
306
|
}
|
|
320
307
|
setDefaultPropertiesForCalendarHeatChart() {
|
|
321
|
-
if (!
|
|
322
|
-
if (this.model.
|
|
308
|
+
if (!G(this.model?.config)) {
|
|
309
|
+
if (this.model.xTemporalBinning === void 0) {
|
|
323
310
|
const e = {
|
|
324
311
|
type: h.CalendarDateParts,
|
|
325
312
|
unit: y.DayOfMonth
|
|
326
313
|
};
|
|
327
314
|
this.model.xTemporalBinning = e;
|
|
328
315
|
}
|
|
329
|
-
if (this.model.yTemporalBinning === void 0) {
|
|
316
|
+
if (this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(j.Desc), this.model.yTemporalBinning === void 0) {
|
|
330
317
|
const e = {
|
|
331
318
|
type: h.CalendarDateParts,
|
|
332
319
|
unit: y.MonthOfYear
|
|
333
320
|
};
|
|
334
321
|
this.model.yTemporalBinning = e, this.model.setAxisValueFormat(1, { type: h.DateAxisFormat, intlOptions: { month: "short" } });
|
|
335
322
|
}
|
|
336
|
-
this.model.classificationMethod === void 0 && (this.model.classificationMethod = b.naturalBreaks), this.model.heatRulesType !==
|
|
323
|
+
this.model.classificationMethod === void 0 && (this.model.classificationMethod = b.naturalBreaks), this.model.heatRulesType !== k.Renderer && (this.model.heatRulesType = k.Renderer), this.model.viewType === void 0 && (this.model.viewType = X.singleCalendarView), (this.model.aggregationType === u.Count || this.model.aggregationType === u.Sum) && this.model.nullPolicy !== g.Zero && (this.model.nullPolicy = g.Zero);
|
|
337
324
|
}
|
|
338
325
|
}
|
|
339
326
|
renderXAxisFieldSelect() {
|
|
340
327
|
const e = this.getCorrectedXAxisFieldValue();
|
|
341
|
-
return r`<arcgis-charts-config-field-select .label=${e} @click=${this.onXAxisFieldSelect} ${
|
|
328
|
+
return r`<arcgis-charts-config-field-select .label=${e} @click=${this.onXAxisFieldSelect} ${p(this.xAxisFieldElement)}></arcgis-charts-config-field-select>`;
|
|
342
329
|
}
|
|
343
330
|
renderAggregation() {
|
|
344
|
-
return r`<arcgis-charts-config-field-select .label=${this.model.aggregationType === u.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${
|
|
331
|
+
return r`<arcgis-charts-config-field-select .label=${this.model.aggregationType === u.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${p(this.aggregationElement)}></arcgis-charts-config-field-select>`;
|
|
345
332
|
}
|
|
346
333
|
renderNumericFieldsSelect() {
|
|
347
|
-
const e = this.model.numericFields?.[0] === this.model.layer?.objectIdField ? "" :
|
|
348
|
-
return r`<arcgis-charts-config-field-select .label=${e} @click=${this.onNumericFieldSelect} ${
|
|
334
|
+
const e = this.model.numericFields?.[0] === this.model.layer?.objectIdField ? "" : R(this.layerFieldsInfo, this.model.numericFields?.[0]);
|
|
335
|
+
return r`<arcgis-charts-config-field-select .label=${e} @click=${this.onNumericFieldSelect} ${p(this.numericFieldsElement)}></arcgis-charts-config-field-select>`;
|
|
349
336
|
}
|
|
350
337
|
renderCalendarTypeSelect() {
|
|
351
|
-
const e = $(this.model) ?? "",
|
|
338
|
+
const e = $(this.model) ?? "", t = {
|
|
352
339
|
weekByDayOfWeekAndHourOfDay: this._messages.weekByDayOfWeekAndHourOfDay,
|
|
353
340
|
yearByMonthAndDayOfMonth: this._messages.yearByMonthAndDayOfMonth
|
|
354
|
-
},
|
|
355
|
-
return r`<arcgis-charts-config-field-select .label=${
|
|
341
|
+
}, a = e ? t[e] ?? "" : "";
|
|
342
|
+
return r`<arcgis-charts-config-field-select .label=${a} @click=${this.onCalendarTypeSelect} ${p(this.calendarTypeElement)}></arcgis-charts-config-field-select>`;
|
|
356
343
|
}
|
|
357
344
|
renderClassBreakMethodSelect() {
|
|
358
345
|
const e = {
|
|
@@ -360,33 +347,33 @@ class me extends w {
|
|
|
360
347
|
manual: this._messages.classBreaksMethod?.manual,
|
|
361
348
|
naturalBreaks: this._messages.classBreaksMethod?.naturalBreaks,
|
|
362
349
|
quantile: this._messages.classBreaksMethod?.quantile
|
|
363
|
-
},
|
|
364
|
-
return r`<arcgis-charts-config-field-select .label=${
|
|
350
|
+
}, t = this.model.classificationMethod ? e[N(this.model.classificationMethod)] ?? "" : "";
|
|
351
|
+
return r`<arcgis-charts-config-field-select .label=${t} @click=${this.onClassBreakMethodSelect} ${p(this.classBreakMethodElement)}></arcgis-charts-config-field-select>`;
|
|
365
352
|
}
|
|
366
353
|
renderColorRampSelect() {
|
|
367
|
-
const e = this.model.chartRenderer?.classBreakInfos?.map((
|
|
368
|
-
const
|
|
369
|
-
return r`<div class=${n(c.colorRampSegment)} style=${
|
|
354
|
+
const e = this.model.chartRenderer?.classBreakInfos?.map((t) => {
|
|
355
|
+
const a = t !== void 0 ? le(t.symbol.color) : "#FFFFFF";
|
|
356
|
+
return r`<div class=${n(c.colorRampSegment)} style=${F({ backgroundColor: a, width: `${100 / this.model.breaksCount}%` })}></div>`;
|
|
370
357
|
});
|
|
371
|
-
return r`<arcgis-charts-config-field-select label @click=${this.onColorSchemeSelect} ${
|
|
358
|
+
return r`<arcgis-charts-config-field-select label @click=${this.onColorSchemeSelect} ${p(this.colorSchemeElement)}><div slot=fieldSelectSlot class=${n(c.colorRamp)}>${e}</div></arcgis-charts-config-field-select>`;
|
|
372
359
|
}
|
|
373
360
|
renderClassBreaksTable() {
|
|
374
361
|
const e = this.model.chartRenderer?.classBreakInfos ?? [];
|
|
375
|
-
return r`<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((
|
|
362
|
+
return r`<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((t) => r`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${t.symbol.color?.[0]}, ${t.symbol.color?.[1]}, ${t.symbol.color?.[2]}, ${t.symbol.color?.[3] / 255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${t.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
|
|
376
363
|
}
|
|
377
364
|
renderNullUI() {
|
|
378
|
-
const e = this.model.emptyCell,
|
|
379
|
-
return r`<calcite-list label class=${n(c.list)} selection-mode=none ${
|
|
365
|
+
const e = this.model.emptyCell, t = this._messages.null, a = e?.symbol?.color ?? x.grayColor, [s, o, i, m] = [...a], C = `rgba(${s},${o},${i},${m / 255})`;
|
|
366
|
+
return r`<calcite-list label class=${n(c.list)} selection-mode=none ${p(this.nullElement)}><calcite-list-item .label=${t} .value=${t} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${F({ color: C })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
380
367
|
}
|
|
381
368
|
renderEmptyBins() {
|
|
382
|
-
return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${
|
|
369
|
+
return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${g.Zero} .checked=${this.model.nullPolicy === g.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${g.Null} .checked=${this.model.nullPolicy === g.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`;
|
|
383
370
|
}
|
|
384
371
|
render() {
|
|
385
|
-
const e = this.renderXAxisFieldSelect(),
|
|
386
|
-
return r`<calcite-label class=${n(c.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.calendarType}${s}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.aggregation}${
|
|
372
|
+
const e = this.renderXAxisFieldSelect(), t = this.renderAggregation(), a = this.renderNumericFieldsSelect(), s = this.renderCalendarTypeSelect(), o = this.renderClassBreakMethodSelect(), i = this.renderColorRampSelect(), m = this.renderClassBreaksTable(), C = this.renderNullUI(), S = this.renderEmptyBins();
|
|
373
|
+
return r`<calcite-label class=${n(c.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.calendarType}${s}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.aggregation}${t}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.numericField}${a}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.method}${o}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${f.min} .max=${f.max} .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === b.manual} step=1 .value=${Q(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${p(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${n(c.label)}>${this._messages.colorScheme}${i}</calcite-label>${C}<calcite-accordion class=${n(c.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${m}</calcite-accordion-item></calcite-accordion><calcite-label class=${n(c.label)}>${this._messages.emptyBins}${S}</calcite-label>${$(this.model) === v.YearByMonthAndDayOfMonth ? r`<calcite-label class=${n(c.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>` : null}`;
|
|
387
374
|
}
|
|
388
375
|
}
|
|
389
|
-
|
|
376
|
+
D("arcgis-charts-config-heat-chart-data", ce);
|
|
390
377
|
export {
|
|
391
|
-
|
|
378
|
+
ce as ArcgisChartsConfigHeatChartData
|
|
392
379
|
};
|
|
@@ -34,7 +34,7 @@ import "@arcgis/core/core/promiseUtils.js";
|
|
|
34
34
|
import "@arcgis/toolkit/dom";
|
|
35
35
|
import { e as O } from "../../chunks/popover-ui-utils.js";
|
|
36
36
|
import { b as x, a as k, c as m } from "../../chunks/chart-ui-utils2.js";
|
|
37
|
-
import { C as R,
|
|
37
|
+
import { C as R, e as T } from "../../chunks/class-breaks.js";
|
|
38
38
|
const j = F`.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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.pick-list-item-label{font-size:small}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
|
|
39
39
|
jsAppFlyout: "js-app-flyout",
|
|
40
40
|
name: "bar-chart-data-popover",
|