@arcgis/charts-components 6.0.0-next.34 → 6.0.0-next.35
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/{MCZMJAXK.js → 2BZPX3WJ.js} +1 -1
- package/dist/cdn/{33SNFNFO.js → 2DQ7ZBXE.js} +1 -1
- package/dist/cdn/{4CI4XQ6A.js → 3JRS3R5K.js} +1 -1
- package/dist/cdn/{5UNAEQIF.js → 3LWOTXAJ.js} +1 -1
- package/dist/cdn/{MI5ZOFNE.js → 3NTU2K22.js} +1 -1
- package/dist/cdn/{E2BM4PQP.js → 42LSDQXN.js} +1 -1
- package/dist/cdn/{FXWVQU7B.js → 4EEG3Y4A.js} +1 -1
- package/dist/cdn/{URBOZ7IV.js → 4FEQIWCL.js} +1 -1
- package/dist/cdn/{LCMUCICY.js → 4XTFDZMW.js} +1 -1
- package/dist/cdn/{42AYSOYQ.js → 54I7ID6Z.js} +1 -1
- package/dist/cdn/{O5UELXJC.js → 5GJ7X4OZ.js} +1 -1
- package/dist/cdn/{DXMYDWMF.js → 5N22DW2N.js} +1 -1
- package/dist/cdn/{VQK7RKE3.js → 5NMRQXC4.js} +1 -1
- package/dist/cdn/{Q4LXZQ7G.js → 5VI725BE.js} +1 -1
- package/dist/cdn/{LZ6SUMGO.js → 5VW7MADK.js} +1 -1
- package/dist/cdn/6ITF7OPU.js +2 -0
- package/dist/cdn/{HHLOIUUD.js → 747HTBX6.js} +1 -1
- package/dist/cdn/{KW3N46DO.js → 7KAWS7PM.js} +1 -1
- package/dist/cdn/{7SKEI4E6.js → 7OQ5KHLB.js} +1 -1
- package/dist/cdn/{UMPW3YOW.js → 7Z5HY6CX.js} +1 -1
- package/dist/cdn/{4E3S2ML7.js → A4SE2666.js} +1 -1
- package/dist/cdn/ALUFN6JU.js +2 -0
- package/dist/cdn/{RFUS6E3N.js → AWS2YG4M.js} +1 -1
- package/dist/cdn/{ZMD6HSI6.js → B3XFRI2T.js} +1 -1
- package/dist/cdn/{M3QY2KLY.js → B6TOZWKP.js} +1 -1
- package/dist/cdn/{HMBGKFUN.js → BG5Q5IKV.js} +1 -1
- package/dist/cdn/{R73C2BX4.js → BLNSWTDE.js} +1 -1
- package/dist/cdn/{VUILGVZ6.js → BQSQE7VQ.js} +1 -1
- package/dist/cdn/{EV5J5FUX.js → BS6ZKR5Y.js} +1 -1
- package/dist/cdn/{TDNKE2VP.js → C2LULOIM.js} +1 -1
- package/dist/cdn/{DLJ5JUXJ.js → CPZAKMTU.js} +1 -1
- package/dist/cdn/{FRN47OTB.js → D7GICKNU.js} +1 -1
- package/dist/cdn/{RXOUF2HA.js → EYHCX276.js} +1 -1
- package/dist/cdn/{IRP6FSBB.js → F3MIZQUC.js} +1 -1
- package/dist/cdn/{42NW4KCH.js → F3TJTLG7.js} +1 -1
- package/dist/cdn/{DWSCE6QM.js → F5NV3AJ5.js} +1 -1
- package/dist/cdn/{XDLBRYVE.js → FBYUBQLZ.js} +1 -1
- package/dist/cdn/{P5JPYG4Z.js → FCOD27CY.js} +1 -1
- package/dist/cdn/{4CIFWASN.js → FDM5MY6D.js} +1 -1
- package/dist/cdn/{HIFEJ5CV.js → FXTL5IZJ.js} +1 -1
- package/dist/cdn/{YDODSSRW.js → G3VKWODV.js} +1 -1
- package/dist/cdn/{LSMB53E3.js → GA2UFZXY.js} +1 -1
- package/dist/cdn/{JE3QM6AW.js → HCQDDW6C.js} +1 -1
- package/dist/cdn/{RQYBXGTL.js → HF7ILAKI.js} +1 -1
- package/dist/cdn/{LRDJBGZS.js → HO2B7R2W.js} +1 -1
- package/dist/cdn/{GTD5EXV2.js → HVXXE5ZN.js} +1 -1
- package/dist/cdn/{AXYE2HX6.js → I6FJ54MZ.js} +1 -1
- package/dist/cdn/{EMV26WWB.js → IBS2EHYN.js} +1 -1
- package/dist/cdn/{QMPQESBZ.js → ILNDY3YI.js} +1 -1
- package/dist/cdn/{EDGME7VO.js → IZJLIFYM.js} +1 -1
- package/dist/cdn/{H2BQNZW4.js → JPR5ZF7D.js} +1 -1
- package/dist/cdn/{57VCII7P.js → JQIPTC5I.js} +1 -1
- package/dist/cdn/{7DONLE35.js → JZXZAQPZ.js} +1 -1
- package/dist/cdn/KMVAWVMM.js +2 -0
- package/dist/cdn/{EDZAQNWX.js → KOZPLQLZ.js} +1 -1
- package/dist/cdn/{MZRAPDRT.js → MD76NSPD.js} +1 -1
- package/dist/cdn/{KF35NZ4P.js → MQKJTPAC.js} +1 -1
- package/dist/cdn/{CU4UB2A7.js → MT6F4GEI.js} +1 -1
- package/dist/cdn/{BLS6BF2L.js → NACMNBIP.js} +1 -1
- package/dist/cdn/{OXOOIHEE.js → OCAITJL6.js} +2 -2
- package/dist/cdn/{L7UQNGQR.js → OZEYHJND.js} +1 -1
- package/dist/cdn/{YWWWL7VA.js → PMHRQOKZ.js} +1 -1
- package/dist/cdn/{XLF3VSA3.js → Q4HEXCLD.js} +1 -1
- package/dist/cdn/{F2GNY3MM.js → QJJYPIM7.js} +1 -1
- package/dist/cdn/{MOPMKH2V.js → QLRY7QKC.js} +1 -1
- package/dist/cdn/{VL4FR4TN.js → QYDTSZH5.js} +17 -17
- package/dist/cdn/RH2BBROM.js +2 -0
- package/dist/cdn/{P2AC2FC4.js → RPHXKD7J.js} +1 -1
- package/dist/cdn/{2DLCZPGT.js → RVRNYRR5.js} +1 -1
- package/dist/cdn/{OKQKTXSG.js → RYAQ7TZ5.js} +1 -1
- package/dist/cdn/S2CDU562.js +2 -0
- package/dist/cdn/{IFDTYYTW.js → SMYPC6YZ.js} +1 -1
- package/dist/cdn/{FFU63U6V.js → SPQSYOVK.js} +1 -1
- package/dist/cdn/{UE6N5N3X.js → STEMSCEZ.js} +1 -1
- package/dist/cdn/{WBQM4ASJ.js → UEH74K4Z.js} +1 -1
- package/dist/cdn/{YKSQH65V.js → UQHIV37J.js} +1 -1
- package/dist/cdn/{YJ7WPVBF.js → VHDFOTME.js} +1 -1
- package/dist/cdn/{6REYJD6E.js → VHLEM5TX.js} +1 -1
- package/dist/cdn/{7M4EWNDY.js → VHXIV5BX.js} +1 -1
- package/dist/cdn/{CYSQZIZN.js → VSYK6HGS.js} +1 -1
- package/dist/cdn/{DUKNIIM2.js → W52LHBTO.js} +1 -1
- package/dist/cdn/{EAHAZABZ.js → WLIVWHF6.js} +1 -1
- package/dist/cdn/{Q5GNPML7.js → WVXK6SQ2.js} +1 -1
- package/dist/cdn/{HBWSBIS4.js → WXUTW33L.js} +1 -1
- package/dist/cdn/{YYOMI2VT.js → XEW2A47I.js} +1 -1
- package/dist/cdn/{I3Y5KNFE.js → XNLXGZIZ.js} +1 -1
- package/dist/cdn/{S7ULRE3X.js → YGEJBPIE.js} +1 -1
- package/dist/cdn/YKM3E7AD.js +2 -0
- package/dist/cdn/{BZK3YRC3.js → YWAAPW2R.js} +1 -1
- package/dist/cdn/{DFPLMKGU.js → Z2XPKJMJ.js} +1 -1
- package/dist/cdn/{TSKWTKCT.js → Z6VYURPS.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/chart-ui-utils.js +36 -36
- package/dist/chunks/index.js +1 -1
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +1922 -1912
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +20 -19
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +79 -77
- package/dist/components/arcgis-charts-config-guide/customElement.js +47 -46
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +35 -31
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +18 -18
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/interfaces.d.ts +1 -15
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +1 -1
- package/dist/model/properties/layer.d.ts +2 -2
- package/dist/utils/layer/index.d.ts +6 -6
- package/dist/utils/layer/interfaces.d.ts +13 -3
- package/dist/utils/layer/query-parser/index.d.ts +2 -2
- package/dist/utils/layer/utils/index.d.ts +6 -18
- package/package.json +5 -5
- package/dist/cdn/4Q3YU4TS.js +0 -2
- package/dist/cdn/I6PWQEWZ.js +0 -2
- package/dist/cdn/T2CFMDZV.js +0 -2
- package/dist/cdn/UWRA674P.js +0 -2
- package/dist/cdn/V62HBNDH.js +0 -2
- package/dist/cdn/XMFFQFWM.js +0 -2
- /package/dist/cdn/{L2G4TISY.js → S6G2OZSX.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as R } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as X } from "lit/directives/keyed.js";
|
|
4
|
-
import { cloneDeep as
|
|
5
|
-
import { m as
|
|
6
|
-
import { d as
|
|
4
|
+
import { cloneDeep as w } from "es-toolkit/compat";
|
|
5
|
+
import { m as y, U as $, a as N, g as V, k as P } from "../../chunks/chart-ui-utils.js";
|
|
6
|
+
import { d as k } from "../../chunks/default.js";
|
|
7
7
|
import { g as Z } from "../../chunks/resource.js";
|
|
8
8
|
import { u as q } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as z, html as d } from "lit";
|
|
10
10
|
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
|
-
import { LitElement as O, createEvent as U, renderElement as
|
|
12
|
-
import { l as W, q as
|
|
13
|
-
import { ci as
|
|
11
|
+
import { LitElement as O, createEvent as U, renderElement as F, safeStyleMap as M, safeClassMap as n } from "@arcgis/lumina";
|
|
12
|
+
import { l as W, q as Y, r as j } from "../../chunks/type-guards.js";
|
|
13
|
+
import { ci as v, b as g, bJ as H, cj as A, ck as L, i as J } from "../../chunks/index.js";
|
|
14
14
|
import { t as K } from "../../chunks/index2.js";
|
|
15
15
|
import { r as Q } from "../../chunks/popover-ui-utils.js";
|
|
16
|
-
import { b as
|
|
17
|
-
import { a as
|
|
18
|
-
import { G as
|
|
16
|
+
import { b as p } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
+
import { a as ee } from "../../chunks/chart-object-literals.js";
|
|
18
|
+
import { G as S } from "../../chunks/common.js";
|
|
19
19
|
const o = {
|
|
20
20
|
row: "row",
|
|
21
21
|
column: "column",
|
|
22
22
|
colorPicker: "color-picker"
|
|
23
|
-
},
|
|
24
|
-
class
|
|
23
|
+
}, te = 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}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`;
|
|
24
|
+
class ie extends O {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments), this._messages = q(), this.startCalciteInput = h(), this.endCalciteInput = h(), this.startDateCalciteInput = h(), this.endDateCalciteInput = h(), this.startTimeCalciteInput = h(), this.endTimeCalciteInput = h(), this.colorElement = h(), this.colorChange = (e) => {
|
|
27
27
|
const t = e.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
28
|
-
if (
|
|
29
|
-
const l =
|
|
28
|
+
if (v(i, a) === p.SLS) {
|
|
29
|
+
const l = w(k.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
30
30
|
...l,
|
|
31
|
-
...
|
|
31
|
+
...g(s) ? s : {},
|
|
32
32
|
color: t
|
|
33
33
|
};
|
|
34
34
|
this.lineStyleChange({ detail: r });
|
|
@@ -36,11 +36,11 @@ class se extends O {
|
|
|
36
36
|
this.setColor(t);
|
|
37
37
|
}, this.symbolChange = (e) => {
|
|
38
38
|
const t = e?.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
39
|
-
if (
|
|
40
|
-
const l =
|
|
39
|
+
if (v(i, a) === p.SLS) {
|
|
40
|
+
const l = w(k.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
41
41
|
...l,
|
|
42
|
-
...
|
|
43
|
-
...
|
|
42
|
+
...g(s) ? s : {},
|
|
43
|
+
...g(t) ? t : {}
|
|
44
44
|
};
|
|
45
45
|
this.lineStyleChange({ detail: r });
|
|
46
46
|
} else t?.color !== void 0 && this.setColor(t.color);
|
|
@@ -52,10 +52,10 @@ class se extends O {
|
|
|
52
52
|
this.properties = { guidePopover: 16, isGuideStartInvalid: 16, isGuideEndInvalid: 16, messageOverrides: 0, model: 0, timeZone: 1, calculatedMinMaxBounds: 0, index: 9, orientation: 1, latestGuidePosition: 9 };
|
|
53
53
|
}
|
|
54
54
|
static {
|
|
55
|
-
this.styles =
|
|
55
|
+
this.styles = te;
|
|
56
56
|
}
|
|
57
57
|
get isXAxisDateField() {
|
|
58
|
-
return this.orientation ===
|
|
58
|
+
return this.orientation === S.X && W(this.model) && this.model.getAxisValueFormat(0)?.type === ee.DateAxisFormat;
|
|
59
59
|
}
|
|
60
60
|
load() {
|
|
61
61
|
this.modelChange(this.model);
|
|
@@ -77,16 +77,16 @@ class se extends O {
|
|
|
77
77
|
}
|
|
78
78
|
setGuideStart(e) {
|
|
79
79
|
const { value: t } = e.target;
|
|
80
|
-
this.startCalciteInput.value !== void 0 && (t === "" ? (this.isGuideStartInvalid = !0,
|
|
80
|
+
this.startCalciteInput.value !== void 0 && (t === "" ? (this.isGuideStartInvalid = !0, y({
|
|
81
81
|
inputElement: this.startCalciteInput.value,
|
|
82
|
-
status:
|
|
82
|
+
status: $.INVALID
|
|
83
83
|
})) : (this.model.setGuideStart(t, this.index, this.orientation), this.symbolChange(), this.arcgisChartsConfigGuideChange.emit({
|
|
84
84
|
index: this.index,
|
|
85
85
|
orientation: this.orientation,
|
|
86
86
|
isDelete: !1
|
|
87
|
-
}), this.isGuideStartInvalid = !1,
|
|
87
|
+
}), this.isGuideStartInvalid = !1, y({
|
|
88
88
|
inputElement: this.startCalciteInput.value,
|
|
89
|
-
status:
|
|
89
|
+
status: $.IDLE
|
|
90
90
|
}))), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
91
91
|
}
|
|
92
92
|
setGuideEnd(e) {
|
|
@@ -95,23 +95,23 @@ class se extends O {
|
|
|
95
95
|
index: this.index,
|
|
96
96
|
orientation: this.orientation,
|
|
97
97
|
isDelete: !1
|
|
98
|
-
}), this.isGuideEndInvalid = !1,
|
|
98
|
+
}), this.isGuideEndInvalid = !1, y({
|
|
99
99
|
inputElement: this.endCalciteInput.value,
|
|
100
|
-
status:
|
|
100
|
+
status: $.IDLE
|
|
101
101
|
})), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
102
102
|
}
|
|
103
103
|
setGuideDateTimeRange() {
|
|
104
|
-
const e = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s),
|
|
105
|
-
let
|
|
106
|
-
if (!Array.isArray(
|
|
107
|
-
const c = `${
|
|
108
|
-
this.model.setGuideStart(c, this.index, this.orientation),
|
|
104
|
+
const e = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), m = L(i, s), _ = A(a, s), B = L(a, s), b = this.startDateCalciteInput.value?.value ?? "", f = b === "" ? r : b, I = this.startTimeCalciteInput.value?.value ?? "", T = I === "" ? m : I, C = this.endDateCalciteInput.value?.value ?? "", x = C === "" ? _ : C, D = this.endTimeCalciteInput.value?.value ?? "", E = D === "" ? B : D;
|
|
105
|
+
let G = !1;
|
|
106
|
+
if (!Array.isArray(f) && f !== void 0 && T !== void 0) {
|
|
107
|
+
const c = `${f}T${T}`;
|
|
108
|
+
this.model.setGuideStart(c, this.index, this.orientation), G = !0;
|
|
109
109
|
}
|
|
110
|
-
if (!Array.isArray(
|
|
111
|
-
const c =
|
|
112
|
-
this.model.setGuideEnd(c, this.index, this.orientation),
|
|
110
|
+
if (!Array.isArray(x) && x !== void 0 && E !== void 0) {
|
|
111
|
+
const c = C === "" ? void 0 : `${x}T${E}`;
|
|
112
|
+
this.model.setGuideEnd(c, this.index, this.orientation), G = !0;
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
G && (this.symbolChange(), this.arcgisChartsConfigGuideChange.emit({
|
|
115
115
|
index: this.index,
|
|
116
116
|
orientation: this.orientation,
|
|
117
117
|
isDelete: !1
|
|
@@ -156,9 +156,9 @@ class se extends O {
|
|
|
156
156
|
e.stopImmediatePropagation();
|
|
157
157
|
const t = this.model.getGuideStyle(this.index, this.orientation), i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
158
158
|
let l;
|
|
159
|
-
|
|
159
|
+
v(i, a) === p.SLS ? l = g(t) ? t : void 0 : l = t?.color;
|
|
160
160
|
const s = this.colorElement.value;
|
|
161
|
-
Array.isArray(t?.color) ? (this.guidePopover =
|
|
161
|
+
Array.isArray(t?.color) ? (this.guidePopover = F(d`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`), this.guidePopover !== void 0 && !document.body.contains(this.guidePopover) && document.body.appendChild(this.guidePopover)) : this.removeGuidePopover();
|
|
162
162
|
}
|
|
163
163
|
removeGuidePopover() {
|
|
164
164
|
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover = Q(this.guidePopover));
|
|
@@ -166,7 +166,7 @@ class se extends O {
|
|
|
166
166
|
setColor(e) {
|
|
167
167
|
const t = K({ opacity: 0 }), i = this.model.getGuideStyle(this.index, this.orientation), a = {
|
|
168
168
|
...J(i) ? i : {},
|
|
169
|
-
type:
|
|
169
|
+
type: p.SFS,
|
|
170
170
|
color: e,
|
|
171
171
|
outline: t
|
|
172
172
|
};
|
|
@@ -196,7 +196,7 @@ class se extends O {
|
|
|
196
196
|
i = this._messages.deleteGuide ?? "";
|
|
197
197
|
break;
|
|
198
198
|
}
|
|
199
|
-
this.tooltip =
|
|
199
|
+
this.tooltip = F(d`<calcite-tooltip style=${M({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
200
200
|
}
|
|
201
201
|
toggleGuide() {
|
|
202
202
|
const e = this.model.getGuideVisibility(this.index, this.orientation);
|
|
@@ -206,25 +206,26 @@ class se extends O {
|
|
|
206
206
|
N(this.tooltip);
|
|
207
207
|
}
|
|
208
208
|
deleteGuide() {
|
|
209
|
-
this.destroyTooltip(), this.orientation ===
|
|
209
|
+
this.destroyTooltip(), this.orientation === S.X && Y(this.model) ? this.model.deleteXAxisGuide(this.index) : this.orientation === S.Y && j(this.model) && this.model.deleteYAxisGuide(this.index), this.arcgisChartsConfigGuideChange.emit({
|
|
210
210
|
index: this.index,
|
|
211
211
|
orientation: this.orientation,
|
|
212
212
|
isDelete: !0
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
renderColorElement() {
|
|
216
|
-
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation)
|
|
217
|
-
|
|
216
|
+
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation);
|
|
217
|
+
let m = g(e) ? V(e.style) : "line-solid";
|
|
218
|
+
return m = v(s, r) === p.SLS ? m : "square-f", d`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${n(o.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${m} style=${M({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
218
219
|
}
|
|
219
220
|
render() {
|
|
220
221
|
const e = this.model.getGuideStart(this.index, this.orientation), t = this.model.getGuideEnd(this.index, this.orientation), i = this.model.getGuideName(this.index, this.orientation), a = this.model.getGuideLabelText(this.index, this.orientation), l = this.model.getGuideAbove(this.index, this.orientation), s = this.model.getGuideVisibility(this.index, this.orientation), r = this.isXAxisDateField;
|
|
221
222
|
return d`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition === Z(this.index, this.orientation, this.model)} collapsible .messageOverrides=${{
|
|
222
223
|
expand: this._messages.expand,
|
|
223
224
|
collapse: this._messages.collapse
|
|
224
|
-
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.start}${r ? d`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : d`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${
|
|
225
|
+
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.start}${r ? d`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : d`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${P} number-button-type=none .value=${e?.toString()} ${u(this.startCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideStartInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label class=${n(o.column)}>${this._messages.end}${r ? d`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.endDateCalciteInput)}></calcite-input-date-picker>` : d`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${P} number-button-type=none .value=${t?.toString()} ${u(this.endCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideEndInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div>${r ? X("time-picker-row", d`<div class=${n(o.row)}>${e != null ? d`<calcite-label class=${n(o.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}${t != null ? d`<calcite-label class=${n(o.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}</div>`) : null}<div class=${n(o.row)}><div class=${n(o.column)}>${this.renderColorElement()}</div></div><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`;
|
|
225
226
|
}
|
|
226
227
|
}
|
|
227
|
-
|
|
228
|
+
R("arcgis-charts-config-guide", ie);
|
|
228
229
|
export {
|
|
229
|
-
|
|
230
|
+
ie as ArcgisChartsConfigGuide
|
|
230
231
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as L } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as y } from "lit/directives/keyed.js";
|
|
4
4
|
import { debounce as f } from "es-toolkit/compat";
|
|
5
5
|
import { d, e as a, H as s } from "../../chunks/interfaces.js";
|
|
6
|
-
import { i as
|
|
7
|
-
import { d as
|
|
8
|
-
import { u as
|
|
9
|
-
import { css as
|
|
6
|
+
import { i as V, m as C, U as S, b as D, n as T, g as x, s as P, D as B } from "../../chunks/chart-ui-utils.js";
|
|
7
|
+
import { d as N, a as F } from "../../chunks/store.js";
|
|
8
|
+
import { u as _ } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as H, html as c } from "lit";
|
|
10
10
|
import { createRef as u, ref as v } from "lit/directives/ref.js";
|
|
11
|
-
import { LitElement as
|
|
12
|
-
import { S as
|
|
13
|
-
import { x as
|
|
14
|
-
import { r as
|
|
15
|
-
import { b as
|
|
11
|
+
import { LitElement as K, createEvent as $, renderElement as A, safeStyleMap as O, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
+
import { S as U, E as z } from "../../chunks/index2.js";
|
|
13
|
+
import { x as R, l as j } from "../../chunks/index.js";
|
|
14
|
+
import { r as q } from "../../chunks/popover-ui-utils.js";
|
|
15
|
+
import { b as W } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import { s as b } from "../../chunks/chart-object-literals.js";
|
|
17
17
|
const l = {
|
|
18
18
|
label: "label",
|
|
@@ -22,18 +22,18 @@ const l = {
|
|
|
22
22
|
sectionLabel: "section-label",
|
|
23
23
|
binTextPadding: "bin-text-padding",
|
|
24
24
|
histogramStatsList: "histogram-stats-list"
|
|
25
|
-
},
|
|
26
|
-
class
|
|
25
|
+
}, G = H`.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)}calcite-list-item{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor)}.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}.text{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);width:calc(100% - 1.5rem);height:2rem;margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.row{padding-top:1rem}.bin-count-container{display:flex;flex-wrap:wrap;padding:var(--arcgis-charts-config-margin-minor)}.bin-count-container>calcite-slider{flex-grow:10;min-width:50%}.bin-count-container>calcite-input{margin-bottom:.5rem;margin-top:var(--arcgis-charts-config-margin-minor);margin-left:var(--arcgis-charts-config-margin-minor);width:5rem}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.bin-text-padding{margin-left:var(--arcgis-charts-config-margin-minor)}.histogram-stats-list{pointer-events:none;margin-bottom:var(--arcgis-charts-config-margin-minor)}`;
|
|
26
|
+
class J extends K {
|
|
27
27
|
constructor() {
|
|
28
|
-
super(...arguments), this._messages =
|
|
28
|
+
super(...arguments), this._messages = _(), this.numericalFieldSelectionElement = u(), this.transformationSelectionElement = u(), this.histogramPopover = null, this.binColorSectionElement = u(), this.binSliderElement = u(), this.binInputElement = u(), this.popoverHeading = "", this.onBinCountChange = f(() => {
|
|
29
29
|
const e = this.binInputElement.value?.value;
|
|
30
|
-
e !== void 0 &&
|
|
30
|
+
e !== void 0 && V(e, this.binInputElement.value?.min, this.binInputElement.value?.max) ? this.binCountChange(e) : this.binInputElement.value && (this.isBinCountInvalid = !0, C({
|
|
31
31
|
inputElement: this.binInputElement.value,
|
|
32
32
|
status: S.INVALID
|
|
33
33
|
}));
|
|
34
|
-
},
|
|
34
|
+
}, D.DebounceTimer), this.onBinCountSliderChange = f(() => {
|
|
35
35
|
this.binCountChange(this.binSliderElement.value?.value?.toString() ?? "");
|
|
36
|
-
},
|
|
36
|
+
}, D.DebounceTimer), this.onNormalDistColorSelect = (e) => {
|
|
37
37
|
e.stopImmediatePropagation(), this.onColorElementSelect(this.model.normalDistSymbol, this._messages.normalDistStyle ?? "", this.normalDistOverlayElement);
|
|
38
38
|
}, this.onMeanColorSelect = (e) => {
|
|
39
39
|
e.stopImmediatePropagation(), this.onColorElementSelect(this.model.meanSymbol, this._messages.meanStyle ?? "", this.meanOverlayElement);
|
|
@@ -47,7 +47,7 @@ class q extends F {
|
|
|
47
47
|
try {
|
|
48
48
|
if (e.detail !== null && e.detail !== void 0) {
|
|
49
49
|
const { contentKind: t } = e.detail, { value: i } = e.detail;
|
|
50
|
-
switch (
|
|
50
|
+
switch (N(F), t) {
|
|
51
51
|
case d.transformation:
|
|
52
52
|
this.model.dataTransformationType = i ?? b.None;
|
|
53
53
|
break;
|
|
@@ -82,13 +82,13 @@ class q extends F {
|
|
|
82
82
|
}
|
|
83
83
|
}, this.popoverClose = (e) => {
|
|
84
84
|
this.histogramPopover === e.target && (this.selectedOverlaySymbol = void 0, this.selectedBinColorSymbol = void 0, this.selectedNumericalField = void 0, this.selectedTransformationType = void 0, this.binColorSelected = !1), this.removeHistogramDataPopover();
|
|
85
|
-
}, this.binColorSelected = !1, this.isBinCountInvalid = !1, this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigDataChangeError =
|
|
85
|
+
}, this.binColorSelected = !1, this.isBinCountInvalid = !1, this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigDataChangeError = $(), this.arcgisChartsConfigHistogramDataPopoverChange = $();
|
|
86
86
|
}
|
|
87
87
|
static {
|
|
88
88
|
this.properties = { binColorSelected: 16, selectedBinColorSymbol: 16, selectedOverlaySymbol: 16, selectedNumericalField: 16, selectedTransformationType: 16, isBinCountInvalid: 16, selectedOverlaySymbolType: 1, messageOverrides: 0, model: 0, meanValue: 9, medianValue: 9, standardDevValue: 9, minValue: 9, maxValue: 9, sumValue: 9, nullsValue: 9, countValue: 9, layerFieldsInfo: 0, open: 5 };
|
|
89
89
|
}
|
|
90
90
|
static {
|
|
91
|
-
this.styles =
|
|
91
|
+
this.styles = G;
|
|
92
92
|
}
|
|
93
93
|
get selectedBinColorSymbol() {
|
|
94
94
|
return this._selectedBinColorSymbol;
|
|
@@ -109,7 +109,7 @@ class q extends F {
|
|
|
109
109
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
110
110
|
}
|
|
111
111
|
removeHistogramDataPopover() {
|
|
112
|
-
this.histogramPopover !== null && (this.histogramPopover =
|
|
112
|
+
this.histogramPopover !== null && (this.histogramPopover = q(this.histogramPopover));
|
|
113
113
|
}
|
|
114
114
|
getDataTransformationLabel() {
|
|
115
115
|
let e;
|
|
@@ -163,7 +163,7 @@ class q extends F {
|
|
|
163
163
|
t = void 0;
|
|
164
164
|
break;
|
|
165
165
|
}
|
|
166
|
-
return
|
|
166
|
+
return T(t, B);
|
|
167
167
|
}
|
|
168
168
|
binCountChange(e) {
|
|
169
169
|
const t = Number.parseInt(e);
|
|
@@ -173,7 +173,7 @@ class q extends F {
|
|
|
173
173
|
}));
|
|
174
174
|
}
|
|
175
175
|
onColorElementSelect(e, t, i) {
|
|
176
|
-
this.binColorSelected = i === void 0, e.type ===
|
|
176
|
+
this.binColorSelected = i === void 0, e.type === W.SFS ? (this.selectedOverlaySymbol = void 0, this.selectedBinColorSymbol = e, this.contentKind = d.fillSymbol) : (this.selectedBinColorSymbol = void 0, this.selectedOverlaySymbol = e, this.overlaySectionElement = i, this.contentKind = d.lineSymbol), this.popoverHeading = t, this.setupPopover();
|
|
177
177
|
}
|
|
178
178
|
onNumericFieldSelect(e) {
|
|
179
179
|
e.stopImmediatePropagation(), this.selectedNumericalField = this.model.numericField, this.contentKind = d.numericFields, this.setupPopover();
|
|
@@ -224,26 +224,27 @@ class q extends F {
|
|
|
224
224
|
this.selectedOverlayKind = this.overlaySectionElement?.value, t = this.overlaySectionElement, g = this.selectedOverlaySymbol, i = this.popoverHeading, h = void 0, n = void 0, r = void 0;
|
|
225
225
|
break;
|
|
226
226
|
}
|
|
227
|
-
this.histogramPopover =
|
|
227
|
+
this.histogramPopover = A(c`<arcgis-charts-config-histogram-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${e} .placement=${m} .selectedNumericField=${r} .selectedTransformationType=${n} .selectedBinColor=${h} .selectedOverlaySymbol=${g} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigHistogramPopoverChange=${this.updateProps} @arcgisChartsConfigHistogramPopoverSymbolChange=${this.updateSymbolProps}></arcgis-charts-config-histogram-popover>`), !document.body.contains(this.histogramPopover) && this.histogramPopover !== null && document.body.appendChild(this.histogramPopover);
|
|
228
228
|
}
|
|
229
229
|
renderFieldSelect() {
|
|
230
|
-
return c`<arcgis-charts-config-field-picker .label=${
|
|
230
|
+
return c`<arcgis-charts-config-field-picker .label=${R(this.layerFieldsInfo, this.model.numericField)} @click=${this.onNumericFieldSelect} ${v(this.numericalFieldSelectionElement)}></arcgis-charts-config-field-picker>`;
|
|
231
231
|
}
|
|
232
232
|
renderDataTransformationType() {
|
|
233
233
|
return c`<arcgis-charts-config-field-picker .label=${this.getDataTransformationLabel()} @click=${this.onTransformationSelect} ${v(this.transformationSelectionElement)}></arcgis-charts-config-field-picker>`;
|
|
234
234
|
}
|
|
235
235
|
renderColorListItem(e) {
|
|
236
|
-
const { textLabel: t, key: i, value: m, selected: n,
|
|
237
|
-
return y(i, c`<calcite-list-item .label=${t ?? ""} .value=${m} .selected=${n} ${v(
|
|
236
|
+
const { textLabel: t, key: i, value: m, selected: n, style: r, ref: h, colorAction: g, color: E } = e, [p, I, w, M] = [...E ?? U()], k = x(r);
|
|
237
|
+
return y(i, c`<calcite-list-item .label=${t ?? ""} .value=${m} .selected=${n} ${v(h ?? void 0)}><calcite-action text=color slot=actions-end appearance=transparent @click=${g}><calcite-icon .icon=${k} style=${O(p !== void 0 ? { color: `rgba(${p},${I},${w},${(M ?? 0) / 255})` } : {})}></calcite-icon></calcite-action></calcite-list-item>`);
|
|
238
238
|
}
|
|
239
239
|
renderBinColorElement() {
|
|
240
|
-
const [e, t, i, m] = [...this.model.binSymbol?.color ??
|
|
240
|
+
const [e, t, i, m] = [...this.model.binSymbol?.color ?? z(0)];
|
|
241
241
|
return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.binColor} value=selectTrendLine .selected=${this.binColorSelected} @click=${this.onBinColorSelect} ${v(this.binColorSectionElement)}><calcite-icon slot=content-end icon=square-f style=${O({ color: `rgba(${e},${t},${i},${m / 255})` })} class=${o(l.iconSelect)}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
242
242
|
}
|
|
243
243
|
renderNormalDistOverlay() {
|
|
244
244
|
return this.normalDistOverlayVisible = this.model.showNormalDistOverlay, this.renderColorListItem({
|
|
245
245
|
textLabel: this._messages.normalDist,
|
|
246
246
|
color: this.model.normalDistSymbol?.color,
|
|
247
|
+
style: this.model.normalDistSymbol?.style,
|
|
247
248
|
key: a.NormalDist,
|
|
248
249
|
value: a.NormalDist,
|
|
249
250
|
selected: this.model.showNormalDistOverlay,
|
|
@@ -258,6 +259,7 @@ class q extends F {
|
|
|
258
259
|
textLabel: this._messages.mean,
|
|
259
260
|
textDescription: this.meanValue,
|
|
260
261
|
color: this.model.meanSymbol?.color,
|
|
262
|
+
style: this.model.meanSymbol?.style,
|
|
261
263
|
key: a.Mean,
|
|
262
264
|
value: a.Mean,
|
|
263
265
|
selected: this.model.showMeanOverlay,
|
|
@@ -272,6 +274,7 @@ class q extends F {
|
|
|
272
274
|
textLabel: this._messages.standardDev,
|
|
273
275
|
textDescription: this.standardDevValue,
|
|
274
276
|
color: this.model.standardDevSymbol?.color,
|
|
277
|
+
style: this.model.standardDevSymbol?.style,
|
|
275
278
|
key: a.StandardDev,
|
|
276
279
|
value: a.StandardDev,
|
|
277
280
|
selected: this.model.showStandardDevOverlay,
|
|
@@ -286,6 +289,7 @@ class q extends F {
|
|
|
286
289
|
textLabel: this._messages.median,
|
|
287
290
|
textDescription: this.medianValue,
|
|
288
291
|
color: this.model.medianSymbol?.color,
|
|
292
|
+
style: this.model.medianSymbol?.style,
|
|
289
293
|
key: a.Median,
|
|
290
294
|
value: a.Median,
|
|
291
295
|
selected: this.model.showMedianOverlay,
|
|
@@ -303,20 +307,20 @@ class q extends F {
|
|
|
303
307
|
}
|
|
304
308
|
renderStats() {
|
|
305
309
|
let e = Object.values(s);
|
|
306
|
-
return
|
|
310
|
+
return j(this.model.layer) && (e = e.filter((t) => t !== s.Nulls && t !== s.Count)), c`<calcite-list label class=${o(l.histogramStatsList)}>${e.map((t) => this.renderStatItem(t))}</calcite-list>`;
|
|
307
311
|
}
|
|
308
312
|
renderShowDataLabels() {
|
|
309
313
|
return c`<div class=${o(l.row)}><calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label></div>`;
|
|
310
314
|
}
|
|
311
315
|
renderBinsSection() {
|
|
312
|
-
return c`<div class=${o(l.binCountContainer)}><calcite-slider label-handles min=1 max=64 step=1 snap .value=${this.model.binCount} @calciteSliderChange=${this.onBinCountSliderChange} ${v(this.binSliderElement)}></calcite-slider><calcite-input type=number min=1 max=64 step=1 .value=${
|
|
316
|
+
return c`<div class=${o(l.binCountContainer)}><calcite-slider label-handles min=1 max=64 step=1 snap .value=${this.model.binCount} @calciteSliderChange=${this.onBinCountSliderChange} ${v(this.binSliderElement)}></calcite-slider><calcite-input type=number min=1 max=64 step=1 .value=${P(this.model.binCount)} @calciteInputInput=${this.onBinCountChange} ${v(this.binInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidBinCount} .isInvalid=${this.isBinCountInvalid}></arcgis-charts-config-invalid-input-message></div>`;
|
|
313
317
|
}
|
|
314
318
|
render() {
|
|
315
319
|
const e = this.renderFieldSelect(), t = this.renderDataTransformationType();
|
|
316
320
|
return c`<div class=${o(l.sectionLabel)}>${this._messages.variables}</div><calcite-label class=${o(l.label)}>${this._messages.number}${e}</calcite-label><calcite-label class=${o(l.label)}>${this._messages.withTransformation}${t}</calcite-label><div class=${o(l.sectionLabel)}>${this._messages.bins}</div><p class=${o(l.binTextPadding)}>${this._messages.numberOfBins}</p>${this.renderBinsSection()}${this.renderBinColorElement()}<div class=${o(l.sectionLabel)}>${this._messages.overlays}</div>${this.renderOverlayList()}${this.renderShowDataLabels()}<div class=${o(l.sectionLabel)}>${this._messages.statistics}</div>${this.renderStats()}`;
|
|
317
321
|
}
|
|
318
322
|
}
|
|
319
|
-
|
|
323
|
+
L("arcgis-charts-config-histogram-data", J);
|
|
320
324
|
export {
|
|
321
|
-
|
|
325
|
+
J as ArcgisChartsConfigHistogramData
|
|
322
326
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { LitElement as
|
|
2
|
+
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as f } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as u, renderElement as I, safeStyleMap as P } from "@arcgis/lumina";
|
|
5
5
|
import { css as L, html as o } from "lit";
|
|
6
|
-
import { repeat as
|
|
6
|
+
import { repeat as $ } from "lit/directives/repeat.js";
|
|
7
7
|
import { u as x } from "../../chunks/useT9n.js";
|
|
8
|
-
import {
|
|
9
|
-
import { y as
|
|
8
|
+
import { g as y } from "../../chunks/chart-ui-utils.js";
|
|
9
|
+
import { y as b } from "../../chunks/index.js";
|
|
10
10
|
import { r as a } from "../../chunks/popover-ui-utils.js";
|
|
11
|
-
const
|
|
12
|
-
class
|
|
11
|
+
const M = L`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`;
|
|
12
|
+
class O extends u {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments), this._messages = x(), this.seriesPopover = null, this.open = !1, this.seriesNameChange = (e) => {
|
|
15
15
|
if (e.detail !== null || e.detail !== void 0) {
|
|
@@ -44,7 +44,7 @@ class k extends I {
|
|
|
44
44
|
this.properties = { selectedSeriesId: 16, seriesOrderResetCounter: 16, messageOverrides: 0, model: 0, activeColorMatch: 5, popoverPlacement: 1 };
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
|
-
this.styles =
|
|
47
|
+
this.styles = M;
|
|
48
48
|
}
|
|
49
49
|
get selectedSeriesIndex() {
|
|
50
50
|
return this.selectedSeriesId === void 0 ? void 0 : this.model.getSeriesIndex(this.selectedSeriesId);
|
|
@@ -62,26 +62,26 @@ class k extends I {
|
|
|
62
62
|
s?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
63
63
|
}
|
|
64
64
|
selectedSeriesChange() {
|
|
65
|
-
this.selectedSeriesIndex !== void 0 && (this.seriesPopover =
|
|
65
|
+
this.selectedSeriesIndex !== void 0 && (this.seriesPopover = I(o`<arcgis-charts-config-line-chart-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .placement=${this.popoverPlacement} .open=${this.open} .selectedSeriesIndex=${this.selectedSeriesIndex} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-line-chart-series-popover>`), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover));
|
|
66
66
|
}
|
|
67
67
|
removeSeriesPopover() {
|
|
68
68
|
this.seriesPopover !== void 0 && this.seriesPopover !== null && (this.seriesPopover.open = !1, this.seriesPopover = a(this.seriesPopover));
|
|
69
69
|
}
|
|
70
70
|
buildSeriesListItems() {
|
|
71
71
|
const e = this.model.seriesLength, s = Array.from({ length: e }, (t, r) => r);
|
|
72
|
-
return
|
|
73
|
-
const r = this.model.getSeriesId(t), l = this.model.getSeriesColor(t), h = this.model.getSeriesName(t), c = this.model.chartSubType ===
|
|
72
|
+
return $(s, (t) => this.model.getSeriesId(t), (t) => {
|
|
73
|
+
const r = this.model.getSeriesId(t), l = this.model.getSeriesColor(t), h = this.model.getSeriesName(t), c = this.model.chartSubType === b.BarAndLineFromFields ? this._messages.series : r, m = this.model.getSeriesLineStyle(t);
|
|
74
74
|
let n = "#CCCCCC", d = "minus-circle";
|
|
75
75
|
if ((e > 1 || !this.activeColorMatch) && l !== void 0) {
|
|
76
|
-
d =
|
|
77
|
-
const [p, C, S
|
|
78
|
-
n = `rgba(${p},${C},${S
|
|
76
|
+
d = y(m);
|
|
77
|
+
const [g, p, C, S] = [...l];
|
|
78
|
+
n = `rgba(${g},${p},${C},${S / 255})`;
|
|
79
79
|
}
|
|
80
|
-
return o`<calcite-list-item .label=${h ?? r ?? ""} .description=${c} .value=${r} .selected=${this.selectedSeriesId === r} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${d} style=${
|
|
80
|
+
return o`<calcite-list-item .label=${h ?? r ?? ""} .description=${c} .value=${r} .selected=${this.selectedSeriesId === r} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${d} style=${P({ color: n })}></calcite-icon></calcite-list-item>`;
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
buildSeriesList() {
|
|
84
|
-
return
|
|
84
|
+
return f(this.seriesOrderResetCounter, o`<calcite-list label drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
|
|
85
85
|
}
|
|
86
86
|
resetSeriesOriginal() {
|
|
87
87
|
this.selectedSeriesId = void 0, this.model.resetSeriesStyling(), this.seriesOrderResetCounter += 1;
|
|
@@ -101,7 +101,7 @@ class k extends I {
|
|
|
101
101
|
return o`<calcite-panel .heading=${this._messages.series}><calcite-button slot=header-actions-end @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent scale=s icon-end=reset>${this._messages.reset}</calcite-button>${this.buildSeriesList()}</calcite-panel>`;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
v("arcgis-charts-config-line-chart-series", O);
|
|
105
105
|
export {
|
|
106
|
-
|
|
106
|
+
O as ArcgisChartsConfigLineChartSeries
|
|
107
107
|
};
|