@arcgis/charts-components 5.2.0-next.120 → 5.2.0-next.121
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/{S5QSKGOD.js → 22GEDSID.js} +1 -1
- package/dist/cdn/{4ETHEVDM.js → 2DSJEDV6.js} +1 -1
- package/dist/cdn/{65WBRNOB.js → 2IMGLB5P.js} +1 -1
- package/dist/cdn/{EB5Z3G6D.js → 2MG6R4WZ.js} +1 -1
- package/dist/cdn/{SDDU5POB.js → 346W6JSX.js} +1 -1
- package/dist/cdn/{N7E2X5IX.js → 3JFIDJNK.js} +1 -1
- package/dist/cdn/3QIWL4Y6.js +2 -0
- package/dist/cdn/{ZAW4TN54.js → 4UPY7IZR.js} +1 -1
- package/dist/cdn/{CZGKNCIX.js → 55HD5ASD.js} +1 -1
- package/dist/cdn/{C22JKC32.js → 5NGZOXPZ.js} +1 -1
- package/dist/cdn/{P3VQFUQZ.js → 5NRVL7NV.js} +1 -1
- package/dist/cdn/{EAQZOXHL.js → 5OKYID5L.js} +1 -1
- package/dist/cdn/{UGJ6ZOQG.js → 5VU34FMQ.js} +1 -1
- package/dist/cdn/{U3W5ZPMZ.js → 6BYOOUOD.js} +1 -1
- package/dist/cdn/{FC6VMJIM.js → 6ESJJXFR.js} +1 -1
- package/dist/cdn/{WI4ABUKJ.js → 6IREEVIJ.js} +1 -1
- package/dist/cdn/{UQP6Q7H2.js → 72NDGOVB.js} +1 -1
- package/dist/cdn/{XNGFPEGT.js → 73RZMSJU.js} +1 -1
- package/dist/cdn/{7XTX3KFW.js → 74GBWUON.js} +1 -1
- package/dist/cdn/{JPCSR3D6.js → 7CVC24HH.js} +1 -1
- package/dist/cdn/{HBNL5LOO.js → 7MZUUBLN.js} +1 -1
- package/dist/cdn/{QJL354WC.js → A5JPFNVL.js} +1 -1
- package/dist/cdn/{V7JCHSX7.js → AAVHXU5D.js} +1 -1
- package/dist/cdn/BPEDCIDB.js +2 -0
- package/dist/cdn/{WFMMHYSH.js → CBSDCSFV.js} +1 -1
- package/dist/cdn/{6UUPPMVB.js → CFMJKZLO.js} +1 -1
- package/dist/cdn/{5NMUWLMG.js → CR5FDXHH.js} +1 -1
- package/dist/cdn/{OKH3U3GN.js → CSSKK7IZ.js} +1 -1
- package/dist/cdn/{J6RFRXEU.js → CXWIF2KU.js} +1 -1
- package/dist/cdn/{2LE4U3GT.js → DFR64RQY.js} +1 -1
- package/dist/cdn/{FF547HMW.js → ELRXUJGD.js} +1 -1
- package/dist/cdn/{XA4KE5YW.js → EWRTR7X6.js} +1 -1
- package/dist/cdn/{OQEUNYYG.js → F5DTLXOB.js} +1 -1
- package/dist/cdn/{VIQEFX6O.js → FUBHLZ4H.js} +1 -1
- package/dist/cdn/{VVWD3AMY.js → FZVZ5MJE.js} +1 -1
- package/dist/cdn/{FNDN7EW7.js → G5ND4PUZ.js} +1 -1
- package/dist/cdn/GSF5JMAE.js +2 -0
- package/dist/cdn/{ASQ2GJVW.js → GXCZ6WXB.js} +1 -1
- package/dist/cdn/{UVKFQG23.js → HDPGUTTH.js} +1 -1
- package/dist/cdn/{HXB7PSCG.js → HQO53B54.js} +1 -1
- package/dist/cdn/{RWAKKYLM.js → IGCN2436.js} +1 -1
- package/dist/cdn/INWA5VAO.js +2 -0
- package/dist/cdn/{7WZGORIO.js → K3VIGXRU.js} +24 -24
- package/dist/cdn/{XZ37Y4W5.js → K7OSRGWZ.js} +1 -1
- package/dist/cdn/{4YFDRBNS.js → KDIC74D5.js} +1 -1
- package/dist/cdn/{OMLLMMVS.js → LYOBJZHA.js} +1 -1
- package/dist/cdn/{5LI7FA5C.js → MHHVGZZG.js} +1 -1
- package/dist/cdn/{O5QM6RFL.js → MKCJDMSH.js} +1 -1
- package/dist/cdn/{BYRJMIXU.js → MV4GOTGG.js} +1 -1
- package/dist/cdn/NE2LIVPM.js +2 -0
- package/dist/cdn/{FTTD7LG7.js → O23HS34R.js} +1 -1
- package/dist/cdn/{NNCCPCL2.js → ONW2IT27.js} +1 -1
- package/dist/cdn/{PENUTMVD.js → OVXUFZCS.js} +1 -1
- package/dist/cdn/{3QSV7I2J.js → PQDWXZQQ.js} +1 -1
- package/dist/cdn/{NI5E2OS4.js → QNW7XSUO.js} +1 -1
- package/dist/cdn/{ZOOL6KEW.js → QXDNKTZG.js} +1 -1
- package/dist/cdn/{HPJM5ZOD.js → S6P4Y54X.js} +1 -1
- package/dist/cdn/SAQBQSQJ.js +2 -0
- package/dist/cdn/{4QQPANET.js → SZ5CW7OV.js} +1 -1
- package/dist/cdn/{ZXW6JPMX.js → T34EUD7U.js} +1 -1
- package/dist/cdn/T7I3TS7D.js +2 -0
- package/dist/cdn/{PO2ZDNTQ.js → UELAD6BI.js} +1 -1
- package/dist/cdn/{JQ7S563J.js → UQ2QHPXB.js} +1 -1
- package/dist/cdn/{SZHJZL2A.js → URI7A66F.js} +1 -1
- package/dist/cdn/{STJ2HTKL.js → V7YFMMPW.js} +1 -1
- package/dist/cdn/{T3VRQEKN.js → VTVZQCHN.js} +1 -1
- package/dist/cdn/{S2G75NCQ.js → VWLVU22M.js} +1 -1
- package/dist/cdn/{DPICOEXC.js → WAZUL35Q.js} +1 -1
- package/dist/cdn/{HI7Z5QTR.js → WSU3OSWJ.js} +1 -1
- package/dist/cdn/{BG65SP3R.js → X25OSCFT.js} +1 -1
- package/dist/cdn/{X2R5WPB4.js → XXMGWWQ4.js} +1 -1
- package/dist/cdn/{7QDL4TE3.js → Y5TN6VKQ.js} +2 -2
- package/dist/cdn/{V6MI3KKW.js → Y6NNKV6H.js} +1 -1
- package/dist/cdn/{7SE3B7E2.js → Y6UMC7NU.js} +1 -1
- package/dist/cdn/{WGGNHZDW.js → Y6WT7UDU.js} +1 -1
- package/dist/cdn/{LGS2QMGB.js → YQN5N3XC.js} +1 -1
- package/dist/cdn/{HQX6SMWC.js → YWFQXN7J.js} +1 -1
- package/dist/cdn/{JTO6MPTF.js → ZDDZVKMH.js} +1 -1
- package/dist/cdn/{LQKGTJZ6.js → ZDJAMFJK.js} +1 -1
- package/dist/cdn/{POB26WCE.js → ZMS2AX7K.js} +1 -1
- package/dist/cdn/{LE4F6FBR.js → ZPZQIWBB.js} +1 -1
- package/dist/cdn/{BIUADXHB.js → ZUVDEUDH.js} +1 -1
- package/dist/cdn/assets/charts-config-general/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +2 -2
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +13 -13
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-visibility.js +2 -2
- package/dist/chunks/data.js +12 -12
- package/dist/chunks/histogram-data.js +1 -1
- package/dist/chunks/index.js +1167 -1119
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-y-guides.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +6 -6
- package/dist/chunks/serial-chart-data.js +701 -708
- package/dist/chunks/serial-chart-model.js +15 -15
- package/dist/chunks/utils.js +6 -6
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +7 -7
- package/dist/chunks/x-bounds.js +44 -42
- package/dist/components/arcgis-chart/customElement.js +3085 -3010
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +52 -47
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +10 -7
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-format/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-guide/customElement.js +21 -21
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +41 -39
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/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/index.js +351 -347
- package/dist/model/mixins/model-with-guides.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +20 -20
- package/dist/utils/data/index.d.ts +47 -1
- package/package.json +5 -5
- package/dist/cdn/27DMKFXK.js +0 -2
- package/dist/cdn/7DMHLVYX.js +0 -2
- package/dist/cdn/FVYM4LYH.js +0 -2
- package/dist/cdn/WQ5MRC4U.js +0 -2
- package/dist/cdn/YM3BNPLM.js +0 -2
- package/dist/cdn/ZDQWQTZE.js +0 -2
- package/dist/cdn/ZYWOR5AX.js +0 -2
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { c as B } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as X } from "lit/directives/keyed.js";
|
|
4
4
|
import { cloneDeep as E } from "lodash-es";
|
|
5
|
-
import { m as G, U as S, a as N, j as
|
|
5
|
+
import { m as G, U as S, a as N, j as O, k } from "../../chunks/chart-ui-utils.js";
|
|
6
6
|
import { d as F } from "../../chunks/default.js";
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
7
|
+
import { g as Z } from "../../chunks/resource.js";
|
|
8
|
+
import { u as z } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as V, html as c } from "lit";
|
|
10
10
|
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
|
-
import { LitElement as
|
|
12
|
-
import { j as
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { r as
|
|
11
|
+
import { LitElement as q, createEvent as U, renderElement as L, safeStyleMap as M, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
+
import { j as W, o as j, p as Y } from "../../chunks/type-guards2.js";
|
|
13
|
+
import { bO as p, b as m, bm as H, bP as A, bQ as _, i as Q } from "../../chunks/index.js";
|
|
14
|
+
import { t as J } from "../../chunks/index3.js";
|
|
15
|
+
import { r as K } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { b as g, R as ee } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
import { a as te } from "../../chunks/chart-object-literals.js";
|
|
18
18
|
import { G as b } from "../../chunks/common.js";
|
|
@@ -21,9 +21,9 @@ const n = {
|
|
|
21
21
|
column: "column",
|
|
22
22
|
colorPicker: "color-picker"
|
|
23
23
|
}, ie = V`.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 se extends
|
|
24
|
+
class se extends q {
|
|
25
25
|
constructor() {
|
|
26
|
-
super(...arguments), this._messages =
|
|
26
|
+
super(...arguments), this._messages = z(), 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
28
|
if (p(i, a) === g.SLS) {
|
|
29
29
|
const l = E(F.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
@@ -46,7 +46,7 @@ class se extends j {
|
|
|
46
46
|
} else t?.color !== void 0 && this.setColor(t.color);
|
|
47
47
|
}, this.onModelConfigChange = () => {
|
|
48
48
|
this.requestUpdate();
|
|
49
|
-
}, this.guidePopover = null, this.latestGuidePosition = 0, this.arcgisChartsConfigGuideChange =
|
|
49
|
+
}, this.guidePopover = null, this.latestGuidePosition = 0, this.arcgisChartsConfigGuideChange = U();
|
|
50
50
|
}
|
|
51
51
|
static {
|
|
52
52
|
this.properties = { guidePopover: 16, messageOverrides: 0, model: 0, timeZone: 1, calculatedMinMaxBounds: 0, index: 9, orientation: 1, latestGuidePosition: 9 };
|
|
@@ -55,7 +55,7 @@ class se extends j {
|
|
|
55
55
|
this.styles = ie;
|
|
56
56
|
}
|
|
57
57
|
get isXAxisDateField() {
|
|
58
|
-
return this.orientation === b.X &&
|
|
58
|
+
return this.orientation === b.X && W(this.model) && this.model.getAxisValueFormat(0)?.type === te.DateAxisFormat;
|
|
59
59
|
}
|
|
60
60
|
load() {
|
|
61
61
|
this.modelChange(this.model);
|
|
@@ -101,14 +101,14 @@ class se extends j {
|
|
|
101
101
|
})), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
102
102
|
}
|
|
103
103
|
setGuideDateTimeRange() {
|
|
104
|
-
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.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), v = _(i, s), f = A(a, s), R = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x,
|
|
104
|
+
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.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), v = _(i, s), f = A(a, s), R = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x, P = this.endTimeCalciteInput.value?.value ?? "", w = P === "" ? R : P;
|
|
105
105
|
let $ = !1;
|
|
106
106
|
if (!Array.isArray(C) && C !== void 0 && I !== void 0) {
|
|
107
107
|
const d = `${C}T${I}`;
|
|
108
108
|
this.model.setGuideStart(d, this.index, this.orientation), $ = !0;
|
|
109
109
|
}
|
|
110
|
-
if (!Array.isArray(y) && y !== void 0 &&
|
|
111
|
-
const d = x === "" ? void 0 : `${y}T${
|
|
110
|
+
if (!Array.isArray(y) && y !== void 0 && w !== void 0) {
|
|
111
|
+
const d = x === "" ? void 0 : `${y}T${w}`;
|
|
112
112
|
this.model.setGuideEnd(d, this.index, this.orientation), $ = !0;
|
|
113
113
|
}
|
|
114
114
|
$ && (this.symbolChange(), this.arcgisChartsConfigGuideChange.emit({
|
|
@@ -161,11 +161,11 @@ class se extends j {
|
|
|
161
161
|
Array.isArray(t?.color) ? (this.guidePopover = L(c`<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
|
-
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover =
|
|
164
|
+
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover = K(this.guidePopover));
|
|
165
165
|
}
|
|
166
166
|
setColor(e) {
|
|
167
|
-
const t =
|
|
168
|
-
...
|
|
167
|
+
const t = J({ opacity: 0 }), i = this.model.getGuideStyle(this.index, this.orientation), a = {
|
|
168
|
+
...Q(i) ? i : {},
|
|
169
169
|
type: g.SFS,
|
|
170
170
|
color: e,
|
|
171
171
|
outline: t
|
|
@@ -206,19 +206,19 @@ class se extends j {
|
|
|
206
206
|
N(this.tooltip);
|
|
207
207
|
}
|
|
208
208
|
deleteGuide() {
|
|
209
|
-
this.destroyTooltip(), this.orientation === b.X &&
|
|
209
|
+
this.destroyTooltip(), this.orientation === b.X && j(this.model) ? this.model.deleteXAxisGuide(this.index) : this.orientation === b.Y && Y(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), v = m(e) ?
|
|
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), v = m(e) ? O(e.style) : ee.Solid, f = p(s, r) === g.SLS ? `line-${v}` : "square-f";
|
|
217
217
|
return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${M({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
220
220
|
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
|
-
return c`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition ===
|
|
221
|
+
return c`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition === Z(this.index, this.orientation, this.model)} collapsible .messageOverrides=${{
|
|
222
222
|
expand: this._messages.expand,
|
|
223
223
|
collapse: this._messages.collapse
|
|
224
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=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${k} number-button-type=none .value=${e?.toString()} ${u(this.startCalciteInput)}></calcite-input>`}</calcite-label><calcite-label class=${o(n.column)}>${this._messages.end}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.endDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${k} number-button-type=none .value=${t?.toString()} ${u(this.endCalciteInput)}></calcite-input>`}</calcite-label></div>${r ? X("time-picker-row", c`<div class=${o(n.row)}>${e != null ? c`<calcite-label class=${o(n.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 ? c`<calcite-label class=${o(n.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=${o(n.row)}><div class=${o(n.column)}>${this.renderColorElement()}</div></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.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>`;
|
|
@@ -4,7 +4,7 @@ import { LitElement as l } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as n, html as i } from "lit";
|
|
5
5
|
import { C as s } from "../../chunks/interfaces.js";
|
|
6
6
|
import { isEqual as d } from "lodash-es";
|
|
7
|
-
import {
|
|
7
|
+
import { bG as h, bH as c, t as f } from "../../chunks/index.js";
|
|
8
8
|
const p = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends l {
|
|
10
10
|
static {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { isEqual as r } from "lodash-es";
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
|
-
import { css as
|
|
5
|
+
import { css as d, html as i } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as
|
|
7
|
+
import { i as h, bG as c, bH as m, bd as f, c9 as g, t as p } from "../../chunks/index.js";
|
|
8
8
|
import { i as u } from "../../chunks/type-guards.js";
|
|
9
|
-
const C =
|
|
9
|
+
const C = d`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class y extends n {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
@@ -35,7 +35,7 @@ class y extends n {
|
|
|
35
35
|
}
|
|
36
36
|
seriesColorChange(e) {
|
|
37
37
|
this.model.colorMatch && e?.forEach((a) => {
|
|
38
|
-
|
|
38
|
+
h(a) && e?.get(0) !== void 0 && !r(this.model.binSymbol, a) && (this.model.binSymbol = a);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
async updateFetchLayerFieldsInfo(e) {
|
|
@@ -4,7 +4,7 @@ import { isEqual as a } from "lodash-es";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bG as c, bH as m, t as f, aP as g, aQ as p } from "../../chunks/index.js";
|
|
8
8
|
const u = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class C extends n {
|
|
10
10
|
constructor() {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { css as
|
|
6
|
-
import { createRef as
|
|
7
|
-
import { u as
|
|
2
|
+
import { c as x } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as A } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as I, createEvent as u, renderElement as B, safeClassMap as s } from "@arcgis/lumina";
|
|
5
|
+
import { css as k, html as r } from "lit";
|
|
6
|
+
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
7
|
+
import { u as f } from "../../chunks/useT9n.js";
|
|
8
8
|
import { L as l } from "../../chunks/interfaces.js";
|
|
9
|
-
import { d as
|
|
9
|
+
import { d as p, a as c, r as C, b as T } from "../../chunks/store.js";
|
|
10
10
|
import { isEqual as S } from "lodash-es";
|
|
11
11
|
import { x as E } from "../../chunks/data.js";
|
|
12
|
-
import { d
|
|
12
|
+
import { d, e as y, h as g } from "../../chunks/chart-object-literals.js";
|
|
13
13
|
import { H as L, I as P } from "../../chunks/index3.js";
|
|
14
|
-
import { b
|
|
15
|
-
import { r as
|
|
14
|
+
import { b, p as w } from "../../chunks/index2.js";
|
|
15
|
+
import { r as $, aQ as _ } from "../../chunks/index.js";
|
|
16
16
|
import { r as N } from "../../chunks/popover-ui-utils.js";
|
|
17
|
-
const D =
|
|
17
|
+
const D = k`.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,.disabled-label{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
18
18
|
label: "label",
|
|
19
19
|
fieldList: "field-list",
|
|
20
20
|
fab: "fab",
|
|
@@ -22,25 +22,27 @@ const D = I`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
22
22
|
linkContainer: "link-container",
|
|
23
23
|
dimText: "dim-text"
|
|
24
24
|
};
|
|
25
|
-
class U extends
|
|
25
|
+
class U extends I {
|
|
26
26
|
constructor() {
|
|
27
|
-
super(...arguments), this._messages =
|
|
27
|
+
super(...arguments), this._messages = f(), this.commonStrings = f({ name: "common", blocking: !0 }), this.lineChartPopover = null, this.aggregationElement = m(), this.xAxisFieldElement = m(), this.numericFieldsElement = m(), this.splitByFieldElement = m(), this.intervalAlignmentElement = m(), this.intervalElement = m(), this.onLineChartDataChange = (e) => {
|
|
28
28
|
try {
|
|
29
29
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
30
30
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
31
|
-
switch (
|
|
31
|
+
switch (t) {
|
|
32
32
|
case l.aggregation:
|
|
33
|
-
this.model.aggregationType = i[0] !==
|
|
33
|
+
p(c), this.model.aggregationType = i[0] !== d.NoAggregation ? i[0] : d.NoAggregation;
|
|
34
34
|
break;
|
|
35
35
|
case l.xAxisField: {
|
|
36
|
+
p(c);
|
|
36
37
|
const a = i[0]?.trim() || "";
|
|
37
38
|
this.model.xAxisField = a;
|
|
38
39
|
break;
|
|
39
40
|
}
|
|
40
41
|
case l.numericFields:
|
|
41
|
-
this.model.numericFields = i, this.model.numericFields.length > 0 && this.model.aggregationType ===
|
|
42
|
+
p(c), this.model.numericFields = i, this.model.numericFields.length > 0 && this.model.aggregationType === d.Count && this.model.numericFields[0] !== $(this.model.layer).idField && (this.model.aggregationType = d.Sum);
|
|
42
43
|
break;
|
|
43
44
|
case l.splitByField: {
|
|
45
|
+
p(c);
|
|
44
46
|
const a = i[0]?.trim() || "";
|
|
45
47
|
this.model.splitByField = a, this.model.colorMatch = !0;
|
|
46
48
|
break;
|
|
@@ -54,7 +56,7 @@ class U extends x {
|
|
|
54
56
|
default:
|
|
55
57
|
break;
|
|
56
58
|
}
|
|
57
|
-
t !== l.interval && t !== l.intervalAlignment &&
|
|
59
|
+
t !== l.interval && t !== l.intervalAlignment && C(c);
|
|
58
60
|
}
|
|
59
61
|
} catch (t) {
|
|
60
62
|
throw t instanceof Error && this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
@@ -64,7 +66,7 @@ class U extends x {
|
|
|
64
66
|
this.requestUpdate();
|
|
65
67
|
}, this.popoverClose = (e) => {
|
|
66
68
|
this.lineChartPopover === e?.target && this.removeLineChartDataPopover();
|
|
67
|
-
}, this.layerFieldsInfo = [], this.arcgisChartsConfigCustomizedTimeInterval =
|
|
69
|
+
}, this.layerFieldsInfo = [], this.arcgisChartsConfigCustomizedTimeInterval = u(), this.arcgisChartsConfigDataChangeError = u(), this.arcgisChartsConfigLineChartDataNumericFieldValidate = u(), this.arcgisChartsConfigResetTimeInterval = u();
|
|
68
70
|
}
|
|
69
71
|
static {
|
|
70
72
|
this.properties = { aggregationLabel: 16, timeAggregationLabel: 16, disableSplitBy: 16, messageOverrides: 0, model: 0, resetTimeInterval: 0, layerFieldsInfo: 0 };
|
|
@@ -87,7 +89,7 @@ class U extends x {
|
|
|
87
89
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
88
90
|
}
|
|
89
91
|
buildNumericFieldItem(e) {
|
|
90
|
-
return
|
|
92
|
+
return A(e, r`<calcite-list-item .label=${b(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
91
93
|
}
|
|
92
94
|
resetTimeIntervalOriginal(e) {
|
|
93
95
|
this.popoverClose(e), this.model.resetTimeInterval !== void 0 && (this.model.resetTimeInterval(), this.arcgisChartsConfigResetTimeInterval.emit());
|
|
@@ -106,7 +108,7 @@ class U extends x {
|
|
|
106
108
|
}
|
|
107
109
|
onRemoveNumericField(e) {
|
|
108
110
|
const t = e.target.value;
|
|
109
|
-
this.model.numericFields = this.model.numericFields.filter((i) => i !== t);
|
|
111
|
+
p(c), C(c), this.model.numericFields = this.model.numericFields.filter((i) => i !== t);
|
|
110
112
|
}
|
|
111
113
|
onIntervalAlignmentSelect(e) {
|
|
112
114
|
this.intervalAlignmentElement.value && !this.intervalAlignmentElement.value.disabled && (this.contentKind = l.intervalAlignment, this.setupPopover(e));
|
|
@@ -115,13 +117,13 @@ class U extends x {
|
|
|
115
117
|
this.intervalElement.value && !this.intervalElement.value.disabled && (this.contentKind = l.interval, this.setupPopover(e));
|
|
116
118
|
}
|
|
117
119
|
getCorrectedSplitByValue() {
|
|
118
|
-
return this.model.splitByField === "" || this.model.numericFields.length > 1 ? "" :
|
|
120
|
+
return this.model.splitByField === "" || this.model.numericFields.length > 1 ? "" : b(this.layerFieldsInfo, this.model.splitByField);
|
|
119
121
|
}
|
|
120
122
|
getCorrectedXAxisValue() {
|
|
121
123
|
return E({
|
|
122
124
|
fieldName: this.model.xAxisField,
|
|
123
125
|
fieldList: this.layerFieldsInfo
|
|
124
|
-
}) ? "" :
|
|
126
|
+
}) ? "" : b(this.layerFieldsInfo, this.model.xAxisField);
|
|
125
127
|
}
|
|
126
128
|
onShowDataLabelsChange(e) {
|
|
127
129
|
this.model.dataLabelsVisibility = e.target.checked;
|
|
@@ -133,14 +135,14 @@ class U extends x {
|
|
|
133
135
|
this.model.nullPolicy = e.target.selectedItem?.value;
|
|
134
136
|
}
|
|
135
137
|
shouldShowTimeBinning() {
|
|
136
|
-
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !==
|
|
138
|
+
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !== d.NoAggregation;
|
|
137
139
|
return e !== void 0 && _(e) && t;
|
|
138
140
|
}
|
|
139
141
|
setupPopover(e) {
|
|
140
142
|
e.stopImmediatePropagation(), this.removeLineChartDataPopover();
|
|
141
143
|
const t = {
|
|
142
144
|
size: this.model.temporalBinningSize ?? 1,
|
|
143
|
-
unit: this.model.temporalBinningUnit ??
|
|
145
|
+
unit: this.model.temporalBinningUnit ?? y.Second
|
|
144
146
|
};
|
|
145
147
|
let i, a, o;
|
|
146
148
|
switch (this.contentKind) {
|
|
@@ -163,51 +165,51 @@ class U extends x {
|
|
|
163
165
|
i = this.intervalAlignmentElement.value, a = this._messages.intervalAlignment, o = this.model.timeAggregationType ?? "";
|
|
164
166
|
break;
|
|
165
167
|
}
|
|
166
|
-
this.lineChartPopover =
|
|
168
|
+
this.lineChartPopover = B(r`<arcgis-charts-config-line-chart-popover .headingTitle=${a} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${o} @arcgisChartsConfigLineChartDataPopoverChange=${this.onLineChartDataChange} @arcgisChartsConfigLineChartPopoverClose=${this.popoverClose}></arcgis-charts-config-line-chart-popover>`), !document.body.contains(this.lineChartPopover) && this.lineChartPopover !== null && document.body.appendChild(this.lineChartPopover);
|
|
167
169
|
}
|
|
168
170
|
removeLineChartDataPopover() {
|
|
169
171
|
this.lineChartPopover !== null && (this.lineChartPopover.open = !1, this.lineChartPopover = N(this.lineChartPopover));
|
|
170
172
|
}
|
|
171
173
|
renderAggregation() {
|
|
172
|
-
return r`<arcgis-charts-config-field-picker .label=${this.model.aggregationType ===
|
|
174
|
+
return r`<arcgis-charts-config-field-picker .label=${this.model.aggregationType === d.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${h(this.aggregationElement)}></arcgis-charts-config-field-picker>`;
|
|
173
175
|
}
|
|
174
176
|
renderXAxisField() {
|
|
175
177
|
const e = this.getCorrectedXAxisValue();
|
|
176
|
-
return r`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${
|
|
178
|
+
return r`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${h(this.xAxisFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
177
179
|
}
|
|
178
180
|
renderSplitBy() {
|
|
179
181
|
const e = this.getCorrectedSplitByValue();
|
|
180
|
-
return r`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${
|
|
182
|
+
return r`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${h(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
181
183
|
}
|
|
182
184
|
renderNumericFields(e) {
|
|
183
|
-
const t =
|
|
185
|
+
const t = $(this.model.layer).idField, i = [];
|
|
184
186
|
for (const a of e)
|
|
185
187
|
a !== t && i.push(this.buildNumericFieldItem(a));
|
|
186
|
-
return r`<calcite-list label class=${s(n.fieldList)} ${
|
|
188
|
+
return r`<calcite-list label class=${s(n.fieldList)} ${h(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
187
189
|
}
|
|
188
190
|
renderInterval() {
|
|
189
|
-
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = w(this.model.temporalBinningUnit ??
|
|
191
|
+
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = w(this.model.temporalBinningUnit ?? y.Second, this._messages) ?? "", a = T(c), o = {
|
|
190
192
|
size: this.model.temporalBinningSize,
|
|
191
193
|
unit: this.model.temporalBinningUnit
|
|
192
|
-
},
|
|
194
|
+
}, v = S(o, a);
|
|
193
195
|
return [
|
|
194
196
|
r`<calcite-list label selection-appearance=border><calcite-list-item .value=${e ? "" : `${t} ${i}`} .label=${e ? "" : `${t} ${i}`} @click=${e ? () => {
|
|
195
|
-
} : this.onIntervalSelect} ${
|
|
196
|
-
r`<div class=${s(n.linkContainer)}><calcite-button .disabled=${
|
|
197
|
+
} : this.onIntervalSelect} ${h(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,
|
|
198
|
+
r`<div class=${s(n.linkContainer)}><calcite-button .disabled=${v} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`
|
|
197
199
|
];
|
|
198
200
|
}
|
|
199
201
|
renderIntervalAlignment() {
|
|
200
|
-
return r`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${
|
|
202
|
+
return r`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${h(this.intervalAlignmentElement)}></arcgis-charts-config-field-picker>`;
|
|
201
203
|
}
|
|
202
204
|
renderEmptyBins() {
|
|
203
|
-
return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${
|
|
205
|
+
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.Interpolate} .checked=${this.model.nullPolicy === g.Interpolate}></calcite-radio-button>${this._messages.connectLine}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${g.Null} .checked=${this.model.nullPolicy === g.Null}></calcite-radio-button>${this._messages.breakLine}</calcite-label></calcite-radio-button-group>`;
|
|
204
206
|
}
|
|
205
207
|
render() {
|
|
206
|
-
const e = this.renderAggregation(), t = this.renderXAxisField(), i = this.renderSplitBy(), a = this.renderNumericFields([...this.model.numericFields]), o = this.renderInterval(),
|
|
207
|
-
return r`<calcite-label class=${s(n.label)}>${this._messages.xAxisField}${t}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.numericFields}${a}</calcite-label><div class=${s(n.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div><calcite-label class=${s(n.label)}><span class=${s(this.disableSplitBy ? n.dimText : "")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${s(n.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${s(n.label)}>${this._messages.interval}${o}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.intervalAlignment}${
|
|
208
|
+
const e = this.renderAggregation(), t = this.renderXAxisField(), i = this.renderSplitBy(), a = this.renderNumericFields([...this.model.numericFields]), o = this.renderInterval(), v = this.renderIntervalAlignment(), F = this.renderEmptyBins();
|
|
209
|
+
return r`<calcite-label class=${s(n.label)}>${this._messages.xAxisField}${t}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.numericFields}${a}</calcite-label><div class=${s(n.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div><calcite-label class=${s(n.label)}><span class=${s(this.disableSplitBy ? n.dimText : "")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${s(n.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${s(n.label)}>${this._messages.interval}${o}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.intervalAlignment}${v}</calcite-label><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType !== d.Count ? r`<calcite-label class=${s(n.label)}>${this._messages.emptyBins}${F}</calcite-label>` : null}</div><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label>`;
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
|
-
|
|
212
|
+
x("arcgis-charts-config-line-chart-data", U);
|
|
211
213
|
export {
|
|
212
214
|
U as ArcgisChartsConfigLineChartData
|
|
213
215
|
};
|
|
@@ -14,7 +14,7 @@ import { b as g, e as c } from "../../chunks/chart-object-literals.js";
|
|
|
14
14
|
import { e as A, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
15
|
import { H as E, I as S } from "../../chunks/index3.js";
|
|
16
16
|
import { b as z, p as w } from "../../chunks/index2.js";
|
|
17
|
-
import {
|
|
17
|
+
import { bF as N, aP as L, aQ as K, aZ as B } from "../../chunks/index.js";
|
|
18
18
|
const H = P`.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}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, r = {
|
|
19
19
|
name: "line-chart-data-popover",
|
|
20
20
|
header: "header",
|
|
@@ -4,10 +4,10 @@ import { isEqual as n, cloneDeep as h } from "lodash-es";
|
|
|
4
4
|
import { LitElement as C, createEvent as m } from "@arcgis/lumina";
|
|
5
5
|
import { css as y, html as c } from "lit";
|
|
6
6
|
import { C as d } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bG as I, bH as F, t as v } from "../../chunks/index.js";
|
|
8
8
|
import { b } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
const S = y`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
|
-
class
|
|
10
|
+
class L extends C {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
13
13
|
const s = e?.detail.config ?? this.model.config;
|
|
@@ -80,7 +80,7 @@ class E extends C {
|
|
|
80
80
|
return e;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
u("arcgis-charts-config-pie-chart",
|
|
83
|
+
u("arcgis-charts-config-pie-chart", L);
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
L as ArcgisChartsConfigPieChart
|
|
86
86
|
};
|
|
@@ -12,7 +12,7 @@ import { LitElement as y, createEvent as b, safeClassMap as l } from "@arcgis/lu
|
|
|
12
12
|
import { e as F, p as I } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { H as D } from "../../chunks/index3.js";
|
|
14
14
|
import { b as x } from "../../chunks/index2.js";
|
|
15
|
-
import {
|
|
15
|
+
import { bF as S, aP as T } from "../../chunks/index.js";
|
|
16
16
|
import { d as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
import { a as r } from "../../chunks/common.js";
|
|
18
18
|
const s = {
|
|
@@ -4,7 +4,7 @@ import { isEqual as l } from "lodash-es";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as c, html as s } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bG as h, bH as p, bd as f, c9 as g, t as m, aS as u } from "../../chunks/index.js";
|
|
8
8
|
import { i as y } from "../../chunks/type-guards.js";
|
|
9
9
|
const b = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class F extends n {
|