@arcgis/charts-components 5.1.0-next.82 → 5.1.0-next.83
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/{BHFEFC6X.js → 2C53KAFV.js} +1 -1
- package/dist/cdn/{GEXUXKE2.js → 2DACBEJH.js} +1 -1
- package/dist/cdn/2F63MBYD.js +2 -0
- package/dist/cdn/{CJ7NTZVC.js → 2ZCJSPOP.js} +1 -1
- package/dist/cdn/{UC2KHUNN.js → 3PGPIXWL.js} +1 -1
- package/dist/cdn/{UOC3SKN2.js → 4EULL7VO.js} +1 -1
- package/dist/cdn/4SZOVAC4.js +2 -0
- package/dist/cdn/{WFGGTYWP.js → 4VAAS2W5.js} +1 -1
- package/dist/cdn/{7R3FEB3R.js → 52IYTDZC.js} +1 -1
- package/dist/cdn/5GXFNW3H.js +2 -0
- package/dist/cdn/{BJAQIZB3.js → 5TEAPXIJ.js} +1 -1
- package/dist/cdn/{VDZ5R7WX.js → 5ZH65PNZ.js} +1 -1
- package/dist/cdn/64HBWFA3.js +2 -0
- package/dist/cdn/{TITJWWP7.js → 6TS7TXG7.js} +1 -1
- package/dist/cdn/{ZC6NYZDM.js → 74U7XXHV.js} +1 -1
- package/dist/cdn/7KD5V3MH.js +2 -0
- package/dist/cdn/{B7RU4X5Z.js → AAM5VKBK.js} +1 -1
- package/dist/cdn/{GVBLRXKE.js → AAV66WVS.js} +1 -1
- package/dist/cdn/{PSCAEQLN.js → AXCA6ASP.js} +1 -1
- package/dist/cdn/{AZLVOWWT.js → CGNK5OP4.js} +3 -3
- package/dist/cdn/{UR6A4VM5.js → CMWMYS2K.js} +1 -1
- package/dist/cdn/CUQNQICY.js +2 -0
- package/dist/cdn/{3G26ZRB7.js → DCZD5KWR.js} +1 -1
- package/dist/cdn/{O4645DWG.js → DMSWFKFP.js} +1 -1
- package/dist/cdn/{OWRWKXFL.js → DTQAQIJM.js} +1 -1
- package/dist/cdn/DZSS337I.js +2 -0
- package/dist/cdn/E4Y6N6PF.js +2 -0
- package/dist/cdn/{623QYMIQ.js → EOUHXPEA.js} +1 -1
- package/dist/cdn/{FUHOULT2.js → F7CR2AY4.js} +1 -1
- package/dist/cdn/{QILOZFO7.js → FBG5ZTTQ.js} +8 -8
- package/dist/cdn/FEDPGCQC.js +2 -0
- package/dist/cdn/{YUN4XIA2.js → FITORE2C.js} +1 -1
- package/dist/cdn/{7QYOWBFU.js → FRYQRMDP.js} +1 -1
- package/dist/cdn/{N2RUZDL5.js → FUA7KDU7.js} +1 -1
- package/dist/cdn/{J6J3DXQC.js → G27LJ5W2.js} +1 -1
- package/dist/cdn/{WY264B2J.js → GRSM3NBO.js} +1 -1
- package/dist/cdn/H7EXVEYQ.js +2 -0
- package/dist/cdn/HBW4NM4H.js +2 -0
- package/dist/cdn/{S5FXOTG4.js → HKW5AON4.js} +1 -1
- package/dist/cdn/{IEPVBL2M.js → HTESG4KU.js} +1 -1
- package/dist/cdn/{LYZNGXSF.js → IFHTUSGS.js} +1 -1
- package/dist/cdn/{XR44W6VF.js → IIAYXAK2.js} +1 -1
- package/dist/cdn/{EFXQZRUY.js → ITWL3DEC.js} +1 -1
- package/dist/cdn/{OTMPMNL4.js → IV56BISU.js} +1 -1
- package/dist/cdn/{RN72ZH7K.js → IYTHLK7D.js} +1 -1
- package/dist/cdn/{MUHGSAN5.js → JC3YR2FM.js} +1 -1
- package/dist/cdn/JJ7N2BFD.js +2 -0
- package/dist/cdn/JVLIBFGJ.js +2 -0
- package/dist/cdn/KFYUW7H7.js +2 -0
- package/dist/cdn/KHN7AZBU.js +2 -0
- package/dist/cdn/LB6JRSLI.js +2 -0
- package/dist/cdn/{G63R4TEN.js → LDZK3TBM.js} +1 -1
- package/dist/cdn/LQ7U4J5D.js +2 -0
- package/dist/cdn/{5U2X7LKH.js → M7SNGANA.js} +1 -1
- package/dist/cdn/MNYJ2GYM.js +2 -0
- package/dist/cdn/MV6H65JZ.js +2 -0
- package/dist/cdn/{S2H4RCXL.js → N4OXGGCA.js} +1 -1
- package/dist/cdn/{CV3MN2OB.js → NESORWBG.js} +1 -1
- package/dist/cdn/{LJU5JLT7.js → NUGJT3MO.js} +1 -1
- package/dist/cdn/NVCMDHE6.js +2 -0
- package/dist/cdn/NWBQZSJH.js +2 -0
- package/dist/cdn/OED52OID.js +2 -0
- package/dist/cdn/QHZQKJJO.js +2 -0
- package/dist/cdn/{OOHBEF67.js → QZOROYMP.js} +1 -1
- package/dist/cdn/{4SRUJNYL.js → R4B3CB3N.js} +1 -1
- package/dist/cdn/{FUOCURYO.js → R6YWDKWN.js} +1 -1
- package/dist/cdn/RJZTG6BJ.js +2 -0
- package/dist/cdn/S64CBDJB.js +2 -0
- package/dist/cdn/{2BAQEPCK.js → SH37YJOP.js} +1 -1
- package/dist/cdn/SPJK6GM3.js +2 -0
- package/dist/cdn/{R2BGMXLL.js → SR5JGIZ4.js} +1 -1
- package/dist/cdn/{NWRE6XI6.js → SRVDVLIK.js} +1 -1
- package/dist/cdn/{WG43MAVJ.js → TUERF5XO.js} +1 -1
- package/dist/cdn/TVNJKFSE.js +2 -0
- package/dist/cdn/{VPVFOEEH.js → U2C7US5M.js} +1 -1
- package/dist/cdn/{KGLVHBMW.js → UDCTDYWY.js} +1 -1
- package/dist/cdn/UEWINO5H.js +2 -0
- package/dist/cdn/{HKGGDNSY.js → URXBOBYP.js} +1 -1
- package/dist/cdn/{YCXOS27R.js → VFNM4LQT.js} +1 -1
- package/dist/cdn/VS6WXU6Z.js +2 -0
- package/dist/cdn/{UBI26YGI.js → VWTWH44G.js} +1 -1
- package/dist/cdn/{4ASFVM5K.js → WD7BCM2T.js} +1 -1
- package/dist/cdn/{RS6N2KGI.js → WQHYVWTM.js} +1 -1
- package/dist/cdn/X24IXIYO.js +2 -0
- package/dist/cdn/{PQZYONXN.js → X3YHAZMZ.js} +1 -1
- package/dist/cdn/{XHVWL7MY.js → XPQKK4JT.js} +1 -1
- package/dist/cdn/YBXJYVTG.js +2 -0
- package/dist/cdn/{TCGJR6OG.js → YCE3GAGK.js} +1 -1
- package/dist/cdn/{FX754GOP.js → YFNVAJP6.js} +1 -1
- package/dist/cdn/{6OUQ7ORF.js → YVCUDFXA.js} +1 -1
- package/dist/cdn/ZISQPBKD.js +2 -0
- package/dist/cdn/assets/charts-config-line-style/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +23 -7
- package/dist/chunks/index.js +875 -875
- package/dist/chunks/serial-chart-data.js +25 -25
- package/dist/components/arcgis-chart/customElement.d.ts +76 -24
- package/dist/components/arcgis-chart/customElement.js +893 -891
- package/dist/components/arcgis-charts-config-axes/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-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-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-color-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +58 -58
- package/dist/components/arcgis-charts-config-font-style/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +12 -12
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +17 -17
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-style/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +6 -6
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -2
- package/dist/types/preact.d.ts +1 -2
- package/dist/types/react.d.ts +1 -2
- package/dist/types/stencil.d.ts +1 -2
- package/package.json +4 -4
- package/dist/cdn/2ADFKCPA.js +0 -2
- package/dist/cdn/5GD3PE32.js +0 -2
- package/dist/cdn/6AUW6C3P.js +0 -2
- package/dist/cdn/7CVRX5TJ.js +0 -2
- package/dist/cdn/7ZK3YGN6.js +0 -2
- package/dist/cdn/AVUM7BWA.js +0 -2
- package/dist/cdn/BO7RCJZB.js +0 -2
- package/dist/cdn/D5EMJRBB.js +0 -2
- package/dist/cdn/DS42P2EG.js +0 -2
- package/dist/cdn/EE7MSNVY.js +0 -2
- package/dist/cdn/EQ3IZDDQ.js +0 -2
- package/dist/cdn/FK52K255.js +0 -2
- package/dist/cdn/FUFEC4JX.js +0 -2
- package/dist/cdn/HJRYXAVR.js +0 -2
- package/dist/cdn/IY7457CX.js +0 -2
- package/dist/cdn/K4DKNVD7.js +0 -2
- package/dist/cdn/K76KZ3TY.js +0 -2
- package/dist/cdn/KZOJBRI6.js +0 -2
- package/dist/cdn/L4Y3GEOG.js +0 -2
- package/dist/cdn/PMFA3GVU.js +0 -2
- package/dist/cdn/PWCAXPNP.js +0 -2
- package/dist/cdn/QOJZM6EZ.js +0 -2
- package/dist/cdn/RCAB2G52.js +0 -2
- package/dist/cdn/SZKVED6M.js +0 -2
- package/dist/cdn/TKTNTVES.js +0 -2
- package/dist/cdn/UMXNCRW5.js +0 -2
- package/dist/cdn/UWIRHZ3N.js +0 -2
- package/dist/cdn/V7CMOKQQ.js +0 -2
- package/dist/cdn/XBBP6DN4.js +0 -2
- package/dist/cdn/YGCLG2LA.js +0 -2
- package/dist/cdn/YWFHR2KJ.js +0 -2
- package/dist/cdn/ZKVDUGFR.js +0 -2
|
@@ -6,13 +6,13 @@ import { g as l, H as m } from "../../chunks/resource.js";
|
|
|
6
6
|
import { u as f } from "../../chunks/useT9n.js";
|
|
7
7
|
import { css as A, html as a } from "lit";
|
|
8
8
|
import { createRef as x, ref as C } from "lit/directives/ref.js";
|
|
9
|
-
import { LitElement as
|
|
9
|
+
import { LitElement as b, renderElement as v, safeClassMap as c } from "@arcgis/lumina";
|
|
10
10
|
import { G as s } from "../../chunks/common.js";
|
|
11
11
|
import { p as h, q as u } from "../../chunks/type-guards.js";
|
|
12
12
|
import "@arcgis/toolkit/type";
|
|
13
13
|
import "../../chunks/series-types.js";
|
|
14
14
|
const P = A`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.add-guide{display:flex;justify-content:center;padding:.5rem}.add-guide-btn{width:100%}.no-guides{border-radius:2rem}.no-messages{text-align:center}.guide-icon{padding-left:.5rem;padding-top:.5rem;width:1.5rem;height:1.5rem}`;
|
|
15
|
-
class $ extends
|
|
15
|
+
class $ extends b {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments), this._messages = f(), this.addGuideButton = x(), this.guideTypePopover = null, this.addXGuide = (e) => {
|
|
18
18
|
if (h(this.model)) {
|
|
@@ -30,7 +30,7 @@ class $ extends v {
|
|
|
30
30
|
this.requestUpdate();
|
|
31
31
|
}, this.closeAddPopOver = (e) => {
|
|
32
32
|
e.stopImmediatePropagation(), this.showAddButton = !0;
|
|
33
|
-
}, this.showAddButton = !0, this.latestGuidePosition = 0, this.open = !1;
|
|
33
|
+
}, this.showAddButton = !0, this.latestGuidePosition = 0, this.enableXAxisGuide = !1, this.enableYAxisGuide = !1, this.open = !1;
|
|
34
34
|
}
|
|
35
35
|
static {
|
|
36
36
|
this.properties = { showAddButton: 16, latestGuidePosition: 16, messageOverrides: 0, model: 0, timeZone: 1, calculatedMinMaxBounds: 0, enableXAxisGuide: 5, enableYAxisGuide: 5, open: 5 };
|
|
@@ -78,7 +78,7 @@ class $ extends v {
|
|
|
78
78
|
}
|
|
79
79
|
renderGuideTypePopover() {
|
|
80
80
|
const e = this.getAllGuidesLength();
|
|
81
|
-
this.guideTypePopover =
|
|
81
|
+
this.guideTypePopover = v(a`<arcgis-charts-config-guides-type-popover .enableXAxisGuide=${this.enableXAxisGuide} .enableYAxisGuide=${this.enableYAxisGuide} .referenceElement=${this.addGuideButton.value} .placement=${e === 0 ? "bottom" : "top"} .open=${!this.showAddButton} @arcgisChartsAddXAxisGuide=${this.addXGuide} @arcgisChartsAddYAxisGuide=${this.addYGuide} @arcgisChartsConfigPopoverClose=${this.closeAddPopOver}></arcgis-charts-config-guides-type-popover>`), !this.showAddButton && !document.body.contains(this.guideTypePopover) && this.guideTypePopover !== null && document.body.appendChild(this.guideTypePopover);
|
|
82
82
|
}
|
|
83
83
|
renderGuide(e, t) {
|
|
84
84
|
let i;
|
|
@@ -11,7 +11,7 @@ import { u as R } from "../../chunks/useT9n.js";
|
|
|
11
11
|
import { d as s, W as y } from "../../chunks/interfaces.js";
|
|
12
12
|
import { H as z } from "../../chunks/common.js";
|
|
13
13
|
import "@arcgis/toolkit/type";
|
|
14
|
-
import { r as
|
|
14
|
+
import { r as g, m as h, d as b, u as m, h as k, e as v, i as X } from "../../chunks/series-types.js";
|
|
15
15
|
import { i as Z } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import { x as j } from "../../chunks/data.js";
|
|
17
17
|
import { i as G } from "../../chunks/utils.js";
|
|
@@ -56,13 +56,13 @@ class re extends D {
|
|
|
56
56
|
const { contentKind: t } = e.detail, a = e.detail.value;
|
|
57
57
|
switch (t) {
|
|
58
58
|
case s.aggregation:
|
|
59
|
-
this.model.aggregationType = a, a ===
|
|
59
|
+
this.model.aggregationType = a, a === g.Count || a === g.Sum ? this.model.nullPolicy = h.Zero : this.model.nullPolicy = h.Null;
|
|
60
60
|
break;
|
|
61
61
|
case s.xAxisField:
|
|
62
62
|
this.model.xAxisField = a, this.setDefaultPropertiesForCalendarHeatChart();
|
|
63
63
|
break;
|
|
64
64
|
case s.numericFields:
|
|
65
|
-
this.model.numericFields = [a.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType ===
|
|
65
|
+
this.model.numericFields = [a.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === g.Count && this.model.numericFields[0] !== B(this.model.layer).idField && (this.model.aggregationType = g.Sum);
|
|
66
66
|
break;
|
|
67
67
|
case s.calendarType: {
|
|
68
68
|
this.applyCalendarTypePreset(a);
|
|
@@ -114,7 +114,7 @@ class re extends D {
|
|
|
114
114
|
};
|
|
115
115
|
this.model.emptyCell = i;
|
|
116
116
|
}
|
|
117
|
-
}, this.isFlipped = !1, this.availableColorRamps = [], this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = P();
|
|
117
|
+
}, this.isFlipped = !1, this.availableColorRamps = [], this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigDataChangeError = P();
|
|
118
118
|
}
|
|
119
119
|
static {
|
|
120
120
|
this.properties = { availableColorRamps: 16, aggregationLabel: 16, selectedColorRamp: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0, open: 5 };
|
|
@@ -283,9 +283,9 @@ class re extends D {
|
|
|
283
283
|
break;
|
|
284
284
|
case s.colorScheme:
|
|
285
285
|
t = this.colorSchemeElement.value, a = this._messages.colorScheme;
|
|
286
|
-
const
|
|
287
|
-
i = this.selectedColorRamp?.name ??
|
|
288
|
-
const C =
|
|
286
|
+
const p = te(this.model.chartRenderer?.classBreakInfos, this.availableColorRamps);
|
|
287
|
+
i = this.selectedColorRamp?.name ?? p?.name;
|
|
288
|
+
const C = p ? p.colorsForClassBreaks.find((f) => f.numClasses === this.model.breaksCount)?.colors : void 0;
|
|
289
289
|
d = C ? se(C, this.model.chartRenderer?.classBreakInfos) : d;
|
|
290
290
|
break;
|
|
291
291
|
case s.null:
|
|
@@ -298,14 +298,14 @@ class re extends D {
|
|
|
298
298
|
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = Y(this.heatChartPopover));
|
|
299
299
|
}
|
|
300
300
|
setDefaultPropertiesForCalendarHeatChart() {
|
|
301
|
-
G(this.model?.config) || ((this.model.xTemporalBinning === void 0 || this.model.yTemporalBinning === void 0) && this.applyCalendarTypePreset(y.YearByMonthAndDayOfMonth), this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(z.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = v.naturalBreaks), this.model.heatRulesType !== k.Renderer && (this.model.heatRulesType = k.Renderer), this.model.viewType === void 0 && (this.model.viewType = X.singleCalendarView), (this.model.aggregationType ===
|
|
301
|
+
G(this.model?.config) || ((this.model.xTemporalBinning === void 0 || this.model.yTemporalBinning === void 0) && this.applyCalendarTypePreset(y.YearByMonthAndDayOfMonth), this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(z.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = v.naturalBreaks), this.model.heatRulesType !== k.Renderer && (this.model.heatRulesType = k.Renderer), this.model.viewType === void 0 && (this.model.viewType = X.singleCalendarView), (this.model.aggregationType === g.Count || this.model.aggregationType === g.Sum) && this.model.nullPolicy !== h.Zero && (this.model.nullPolicy = h.Zero));
|
|
302
302
|
}
|
|
303
303
|
renderXAxisFieldSelect() {
|
|
304
304
|
const e = this.getCorrectedXAxisFieldValue();
|
|
305
305
|
return l`<arcgis-charts-config-field-select .label=${e} @click=${this.onXAxisFieldSelect} ${c(this.xAxisFieldElement)}></arcgis-charts-config-field-select>`;
|
|
306
306
|
}
|
|
307
307
|
renderAggregation() {
|
|
308
|
-
return l`<arcgis-charts-config-field-select .label=${this.model.aggregationType ===
|
|
308
|
+
return l`<arcgis-charts-config-field-select .label=${this.model.aggregationType === g.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${c(this.aggregationElement)}></arcgis-charts-config-field-select>`;
|
|
309
309
|
}
|
|
310
310
|
renderNumericFieldsSelect() {
|
|
311
311
|
const e = this.model.numericFields?.[0] === B(this.model.layer).idField ? "" : T(this.layerFieldsInfo, this.model.numericFields?.[0]);
|
|
@@ -339,15 +339,15 @@ class re extends D {
|
|
|
339
339
|
return l`<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) => l`<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>`;
|
|
340
340
|
}
|
|
341
341
|
renderNullUI() {
|
|
342
|
-
const e = this.model.emptyCell, t = this._messages.null, a = e?.symbol?.color ?? x.grayColor, [i, d,
|
|
342
|
+
const e = this.model.emptyCell, t = this._messages.null, a = e?.symbol?.color ?? x.grayColor, [i, d, p, C] = [...a], f = `rgba(${i},${d},${p},${C / 255})`;
|
|
343
343
|
return l`<calcite-list label class=${o(r.list)} selection-mode=none ${c(this.nullElement)}><calcite-list-item .label=${t} .value=${t} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${F({ color: f })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
344
344
|
}
|
|
345
345
|
renderEmptyBins() {
|
|
346
346
|
return l`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Zero} .checked=${this.model.nullPolicy === h.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Null} .checked=${this.model.nullPolicy === h.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`;
|
|
347
347
|
}
|
|
348
348
|
render() {
|
|
349
|
-
const e = this.renderXAxisFieldSelect(), t = this.renderAggregation(), a = this.renderNumericFieldsSelect(), i = this.renderCalendarTypeSelect(), d = this.renderClassBreakMethodSelect(),
|
|
350
|
-
return l`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${i}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${d}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${u.min} .max=${u.max} .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === v.manual} step=1 .value=${J(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${c(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${
|
|
349
|
+
const e = this.renderXAxisFieldSelect(), t = this.renderAggregation(), a = this.renderNumericFieldsSelect(), i = this.renderCalendarTypeSelect(), d = this.renderClassBreakMethodSelect(), p = this.renderColorRampSelect(), C = this.renderClassBreaksTable(), f = this.renderNullUI(), S = this.renderEmptyBins();
|
|
350
|
+
return l`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${i}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${d}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${u.min} .max=${u.max} .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === v.manual} step=1 .value=${J(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${c(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${p}</calcite-label>${f}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${C}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${S}</calcite-label>${$(this.model) === y.YearByMonthAndDayOfMonth ? l`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>` : null}`;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
E("arcgis-charts-config-heat-chart-data", re);
|
|
@@ -60,7 +60,7 @@ const j = F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
60
60
|
};
|
|
61
61
|
class q extends L {
|
|
62
62
|
constructor() {
|
|
63
|
-
super(...arguments), this._messages = v(), this.commonStrings = v({ name: "common", blocking: !0 }), this.picklist = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.availableColorRamps = [], this.selectedCategory = k.all, this.aggregationLabels = [], this.isFlipped = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigHeatChartColorRampChange = h(), this.arcgisChartsConfigHeatChartDataPopoverChange = h(), this.arcgisChartsConfigPopoverClose = h(), this.arcgisChartsConfigPopoverEmptyCellColorChange = h(), this.arcgisChartsConfigPopoverEmptyCellNameChange = h();
|
|
63
|
+
super(...arguments), this._messages = v(), this.commonStrings = v({ name: "common", blocking: !0 }), this.picklist = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.availableColorRamps = [], this.selectedCategory = k.all, this.aggregationLabels = [], this.isFlipped = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigHeatChartColorRampChange = h(), this.arcgisChartsConfigHeatChartDataPopoverChange = h(), this.arcgisChartsConfigPopoverClose = h(), this.arcgisChartsConfigPopoverEmptyCellColorChange = h(), this.arcgisChartsConfigPopoverEmptyCellNameChange = h();
|
|
64
64
|
}
|
|
65
65
|
static {
|
|
66
66
|
this.properties = { availableColorRamps: 16, selectedColorRampName: 16, selectedCategory: 16, aggregationLabels: 16, isFlipped: 5, model: 0, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, colorRamps: 0 };
|
|
@@ -39,7 +39,7 @@ class p extends d {
|
|
|
39
39
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
40
40
|
const t = e?.detail.config ?? this.model.config;
|
|
41
41
|
this.layer === void 0 && await this.updateFetchLayerFieldsInfo(t);
|
|
42
|
-
};
|
|
42
|
+
}, this.usePopupTemplateFieldsInfo = !1;
|
|
43
43
|
}
|
|
44
44
|
static {
|
|
45
45
|
this.properties = { layerFieldsInfo: 16, model: 0, chartData: 0, seriesColor: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5 };
|
|
@@ -106,7 +106,7 @@ class q extends U {
|
|
|
106
106
|
}
|
|
107
107
|
}, this.popoverClose = (e) => {
|
|
108
108
|
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();
|
|
109
|
-
}, this.binColorSelected = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = $(), this.arcgisChartsConfigHistogramDataPopoverChange = $();
|
|
109
|
+
}, this.binColorSelected = !1, this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigDataChangeError = $(), this.arcgisChartsConfigHistogramDataPopoverChange = $();
|
|
110
110
|
}
|
|
111
111
|
static {
|
|
112
112
|
this.properties = { binColorSelected: 16, selectedBinColorSymbol: 16, selectedOverlaySymbol: 16, selectedNumericalField: 16, selectedTransformationType: 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 };
|
|
@@ -48,7 +48,7 @@ const i = {
|
|
|
48
48
|
}, L = y`.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)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem;padding:0 1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.pick-list-item-label{font-size:small}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`;
|
|
49
49
|
class F extends T {
|
|
50
50
|
constructor() {
|
|
51
|
-
super(...arguments), this._messages = k(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
|
|
51
|
+
super(...arguments), this._messages = k(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
|
|
52
52
|
}
|
|
53
53
|
static {
|
|
54
54
|
this.properties = { messageOverrides: 0, layerFieldsInfo: 0, headingTitle: 1, selectedNumericField: 1, selectedTransformationType: 1, selectedOverlaySymbol: 0, selectedBinColor: 0, referenceElement: 0, contentKind: 1, placement: 1, open: 5, selectedOverlaySymbolType: 1 };
|
|
@@ -30,16 +30,16 @@ import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
|
30
30
|
import "@arcgis/core/geometry/Extent.js";
|
|
31
31
|
import "@arcgis/core/geometry/Point.js";
|
|
32
32
|
import "@arcgis/toolkit/dom";
|
|
33
|
-
import { LitElement as
|
|
34
|
-
import { css as p, html as
|
|
35
|
-
import { C as
|
|
33
|
+
import { LitElement as f, createEvent as g } from "@arcgis/lumina";
|
|
34
|
+
import { css as p, html as a } from "lit";
|
|
35
|
+
import { C as r } from "../../chunks/interfaces.js";
|
|
36
36
|
const u = p`: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%}`;
|
|
37
|
-
class C extends
|
|
37
|
+
class C extends f {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(...arguments), this.onModelConfigChange = async (t) => {
|
|
40
40
|
const i = t?.detail.config ?? this.model.config;
|
|
41
41
|
this.layer === void 0 && await this.updateFetchLayerFieldsInfo(i);
|
|
42
|
-
}, this.activeColorMatch = !1, this.popoverPlacement = "leading", this.arcgisChartsConfigNoSeriesUpdate =
|
|
42
|
+
}, this.activeColorMatch = !1, this.popoverPlacement = "leading", this.usePopupTemplateFieldsInfo = !1, this.arcgisChartsConfigNoSeriesUpdate = g();
|
|
43
43
|
}
|
|
44
44
|
static {
|
|
45
45
|
this.properties = { layerFieldsInfo: 16, activeColorMatch: 16, model: 0, timeZone: 1, popoverPlacement: 1, seriesColor: 0, calculatedDataMinMaxBounds: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5 };
|
|
@@ -78,23 +78,23 @@ class C extends g {
|
|
|
78
78
|
const t = this.layerFieldsInfo?.find((s) => s.name === this.model.xAxisField), e = t !== void 0 && (h(t) || d(t));
|
|
79
79
|
let i;
|
|
80
80
|
switch (this.page) {
|
|
81
|
-
case
|
|
82
|
-
i =
|
|
81
|
+
case r.Data:
|
|
82
|
+
i = a`<arcgis-charts-config-line-chart-data .model=${this.model} .resetTimeInterval=${this.model.resetTimeInterval} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-line-chart-data>`;
|
|
83
83
|
break;
|
|
84
|
-
case
|
|
85
|
-
i =
|
|
84
|
+
case r.Series:
|
|
85
|
+
i = a`<arcgis-charts-config-line-chart-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-line-chart-series>`;
|
|
86
86
|
break;
|
|
87
|
-
case
|
|
88
|
-
i =
|
|
87
|
+
case r.Axes:
|
|
88
|
+
i = a`<arcgis-charts-config-axes .model=${this.model} show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;
|
|
89
89
|
break;
|
|
90
|
-
case
|
|
91
|
-
i =
|
|
90
|
+
case r.Guides:
|
|
91
|
+
i = a`<arcgis-charts-config-guides .model=${this.model} .timeZone=${this.timeZone} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .enableXAxisGuide=${e} enable-y-axis-guide></arcgis-charts-config-guides>`;
|
|
92
92
|
break;
|
|
93
|
-
case
|
|
94
|
-
i =
|
|
93
|
+
case r.Format:
|
|
94
|
+
i = a`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;
|
|
95
95
|
break;
|
|
96
|
-
case
|
|
97
|
-
i =
|
|
96
|
+
case r.General:
|
|
97
|
+
i = a`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;
|
|
98
98
|
break;
|
|
99
99
|
default:
|
|
100
100
|
i = "";
|
|
@@ -50,7 +50,7 @@ const _ = N`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
50
50
|
};
|
|
51
51
|
class H extends z {
|
|
52
52
|
constructor() {
|
|
53
|
-
super(...arguments), this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.picklist = d(), this.intervalSizeElement = d(), this.intervalTypeElement = d(), this.popoverElement = d(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigLineChartDataPopoverChange = C(), this.arcgisChartsConfigLineChartPopoverClose = C();
|
|
53
|
+
super(...arguments), this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.picklist = d(), this.intervalSizeElement = d(), this.intervalTypeElement = d(), this.popoverElement = d(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigLineChartDataPopoverChange = C(), this.arcgisChartsConfigLineChartPopoverClose = C();
|
|
54
54
|
}
|
|
55
55
|
static {
|
|
56
56
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
@@ -44,7 +44,7 @@ const o = {
|
|
|
44
44
|
}, w = C`.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 calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
45
45
|
class x extends E {
|
|
46
46
|
constructor() {
|
|
47
|
-
super(...arguments), this._messages = b(), this.popoverElement = n(), this.lineWidthInputElement = n(), this.lineStyleDropdownElement = n(), this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSeriesPopoverColorChange = s(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = s(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = s(), this.arcgisChartsConfigSeriesPopoverNameChange = s();
|
|
47
|
+
super(...arguments), this._messages = b(), this.popoverElement = n(), this.lineWidthInputElement = n(), this.lineStyleDropdownElement = n(), this.open = !1, this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSeriesPopoverColorChange = s(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = s(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = s(), this.arcgisChartsConfigSeriesPopoverNameChange = s();
|
|
48
48
|
}
|
|
49
49
|
static {
|
|
50
50
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedSeriesIndex: 9, selectedLineWidth: 9, placement: 1, open: 5 };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as m, html as
|
|
3
|
+
import { css as m, html as s } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/type";
|
|
5
5
|
import "../../chunks/series-types.js";
|
|
6
6
|
import { i as y, g as t } from "../../chunks/rest-js-object-literals.js";
|
|
7
|
-
import { i as u, m as
|
|
7
|
+
import { i as u, m as o, s as g, U as c } from "../../chunks/chart-ui-utils2.js";
|
|
8
8
|
import { u as S } from "../../chunks/useT9n.js";
|
|
9
|
-
import { createRef as r, ref as
|
|
10
|
-
import { LitElement as f, createEvent as
|
|
11
|
-
const
|
|
9
|
+
import { createRef as r, ref as h } from "lit/directives/ref.js";
|
|
10
|
+
import { LitElement as f, createEvent as d, safeClassMap as l, nothing as n } from "@arcgis/lumina";
|
|
11
|
+
const a = {
|
|
12
12
|
sizeSection: "size-section",
|
|
13
13
|
dropdownText: "dropdown-text",
|
|
14
14
|
colorPickerContainer: "color-picker-container"
|
|
15
15
|
}, w = m`.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{overflow-y:auto}:host arcgis-charts-config-colors{padding:var(--arcgis-charts-panel-padding);padding-bottom:1rem}:host .size-section{padding:1rem;display:flex}:host .size-section calcite-label{flex:1 1 0px;width:0}:host .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}:host .color-picker-container{display:flex}:host .color-picker-container calcite-label{flex:1 1 0px;width:0}:host .color-picker-container calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}`;
|
|
16
|
-
class
|
|
16
|
+
class b extends f {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this._messages = S(), this.lineWidthInputElement = r(), this.lineStyleDropdownElement = r(), this.lineStyle = {
|
|
19
19
|
type: y.SLS
|
|
20
|
-
}, this.arcgisChartsConfigLineStyleChange =
|
|
20
|
+
}, this.open = !1, this.enableClose = !1, this.usePanel = !1, this.arcgisChartsConfigLineStyleChange = d(), this.arcgisChartsConfigLineStyleClose = d();
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
23
|
this.properties = { messageOverrides: 0, lineStyle: 0, header: 1, open: 5, enableClose: 5, usePanel: 5 };
|
|
@@ -26,7 +26,7 @@ class v extends f {
|
|
|
26
26
|
this.styles = w;
|
|
27
27
|
}
|
|
28
28
|
closePanel(e) {
|
|
29
|
-
e.target.closed && this.enableClose
|
|
29
|
+
e.target.closed && this.enableClose && (this.open = !1, this.arcgisChartsConfigLineStyleClose.emit());
|
|
30
30
|
}
|
|
31
31
|
colorChange(e) {
|
|
32
32
|
this.lineStyle.color = e.detail, this.emitLineStyleEvent();
|
|
@@ -53,10 +53,10 @@ class v extends f {
|
|
|
53
53
|
}
|
|
54
54
|
widthChange() {
|
|
55
55
|
const e = this.lineWidthInputElement.value?.value;
|
|
56
|
-
e !== void 0 && u(e, this.lineWidthInputElement.value?.min, this.lineWidthInputElement.value?.max) ? (this.lineStyle.width = Number.parseInt(e), this.emitLineStyleEvent(), this.lineWidthInputElement.value &&
|
|
56
|
+
e !== void 0 && u(e, this.lineWidthInputElement.value?.min, this.lineWidthInputElement.value?.max) ? (this.lineStyle.width = Number.parseInt(e), this.emitLineStyleEvent(), this.lineWidthInputElement.value && o({
|
|
57
57
|
inputElement: this.lineWidthInputElement.value,
|
|
58
58
|
status: c.IDLE
|
|
59
|
-
})) : this.lineWidthInputElement.value &&
|
|
59
|
+
})) : this.lineWidthInputElement.value && o({
|
|
60
60
|
inputElement: this.lineWidthInputElement.value,
|
|
61
61
|
status: c.INVALID
|
|
62
62
|
});
|
|
@@ -66,13 +66,13 @@ class v extends f {
|
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
68
|
const e = [
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
s`<div class=${l(a.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${h(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.selectedLineStyle().icon} slot=trigger kind=neutral appearance=outline-fill scale=m><label class=${l(a.dropdownText)}>${this.selectedLineStyle().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.lineStyle?.style === t.Solid} accesskey=${t.Solid ?? n}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.lineStyle?.style === t.Dot} accesskey=${t.Dot ?? n}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.lineStyle?.style === t.Dash} accesskey=${t.Dash ?? n}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${g(this.lineStyle?.width)} @calciteInputInput=${this.widthChange} ${h(this.lineWidthInputElement)}></calcite-input></calcite-label></div>`,
|
|
70
|
+
s`<div class=${l(a.colorPickerContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${this.lineStyle?.color ?? void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div>`
|
|
71
71
|
];
|
|
72
|
-
return this.usePanel
|
|
72
|
+
return this.usePanel ? s`<calcite-panel .heading=${this.header ?? this._messages.header} .closed=${!this.open} .closable=${this.enableClose} @calcitePanelClose=${this.closePanel}>${e}</calcite-panel>` : e;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
p("arcgis-charts-config-line-style",
|
|
75
|
+
p("arcgis-charts-config-line-style", b);
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
b as ArcgisChartsConfigLineStyle
|
|
78
78
|
};
|
|
@@ -32,21 +32,21 @@ import "@arcgis/core/geometry/Extent.js";
|
|
|
32
32
|
import "@arcgis/core/geometry/Point.js";
|
|
33
33
|
import "@arcgis/toolkit/dom";
|
|
34
34
|
import { LitElement as F, createEvent as f } from "@arcgis/lumina";
|
|
35
|
-
import { css as
|
|
35
|
+
import { css as S, html as n } from "lit";
|
|
36
36
|
import { C as h } from "../../chunks/interfaces.js";
|
|
37
|
-
const
|
|
37
|
+
const L = S`: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%}`;
|
|
38
38
|
class b extends F {
|
|
39
39
|
constructor() {
|
|
40
40
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
41
41
|
const o = e?.detail.config ?? this.model.config;
|
|
42
42
|
this.layer === void 0 && await this.updateFetchLayerFieldsInfo(o);
|
|
43
|
-
}, this.popoverPlacement = "leading", this.arcgisChartsConfigNoSeriesUpdate = f(), this.arcgisChartsConfigWebChartChange = f();
|
|
43
|
+
}, this.popoverPlacement = "leading", this.usePopupTemplateFieldsInfo = !1, this.filterBySelection = !1, this.arcgisChartsConfigNoSeriesUpdate = f(), this.arcgisChartsConfigWebChartChange = f();
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
46
|
this.properties = { layerFieldsInfo: 16, model: 0, popoverPlacement: 1, seriesColor: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5, filterBySelection: 5, chartData: 0 };
|
|
47
47
|
}
|
|
48
48
|
static {
|
|
49
|
-
this.styles =
|
|
49
|
+
this.styles = L;
|
|
50
50
|
}
|
|
51
51
|
async load() {
|
|
52
52
|
this.seriesColor !== void 0 && this.seriesColorChange(this.seriesColor), await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
|
|
@@ -64,7 +64,7 @@ class b extends F {
|
|
|
64
64
|
seriesColorChange(e) {
|
|
65
65
|
const { slices: i, groupedSlices: o, groupOfSlices: r } = e?.get(0) ?? {};
|
|
66
66
|
let t = [];
|
|
67
|
-
this.filterBySelection
|
|
67
|
+
this.filterBySelection ? t = this.model.slices?.map((a) => i?.find((s) => s.sliceId === a.sliceId) ?? o?.find((s) => s.sliceId === a.sliceId) ?? a) ?? [] : t = (i ?? []).concat(o ?? []), t.forEach((a, s) => {
|
|
68
68
|
const p = this.model.slices?.find((g) => g.sliceId === t[s].sliceId);
|
|
69
69
|
p && (t[s] = { ...t[s], ...p });
|
|
70
70
|
const l = t[s].fillSymbol;
|
|
@@ -51,7 +51,7 @@ const n = {
|
|
|
51
51
|
}, A = S`.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}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-counter-clockwise{transform:scaleX(-1)}.panel{max-height:60vh}`;
|
|
52
52
|
class w extends E {
|
|
53
53
|
constructor() {
|
|
54
|
-
super(...arguments), this._messages = f(), this.commonStrings = f({ name: "common", blocking: !0 }), this.picklist = C(), this.popoverElement = C(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.layerFieldsInfo = [], this.arcgisChartsConfigPieChartDataPopoverChange = b(), this.arcgisChartsConfigPopoverClose = b();
|
|
54
|
+
super(...arguments), this._messages = f(), this.commonStrings = f({ name: "common", blocking: !0 }), this.picklist = C(), this.popoverElement = C(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPieChartDataPopoverChange = b(), this.arcgisChartsConfigPopoverClose = b();
|
|
55
55
|
}
|
|
56
56
|
static {
|
|
57
57
|
this.properties = { aggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
@@ -40,7 +40,7 @@ const s = {
|
|
|
40
40
|
}, u = 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)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
41
41
|
class y extends f {
|
|
42
42
|
constructor() {
|
|
43
|
-
super(...arguments), this._messages = g(), this.popoverElement = C(), this.selectedSliceId = "", this.arcgisChartsConfigPopoverClose = i(), this.arcgisChartsConfigSlicesPopoverColorChange = i(), this.arcgisChartsConfigSlicesPopoverNameChange = i();
|
|
43
|
+
super(...arguments), this._messages = g(), this.popoverElement = C(), this.selectedSliceId = "", this.open = !1, this.arcgisChartsConfigPopoverClose = i(), this.arcgisChartsConfigSlicesPopoverColorChange = i(), this.arcgisChartsConfigSlicesPopoverNameChange = i();
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
46
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedSliceId: 1, placement: 1, open: 5 };
|
|
@@ -39,7 +39,7 @@ class u extends h {
|
|
|
39
39
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
40
40
|
const t = e?.detail.config ?? this.model.config;
|
|
41
41
|
this.layer === void 0 && await this.updateFetchLayerFieldsInfo(t);
|
|
42
|
-
}, this.popoverPlacement = "leading", this.arcgisChartsConfigWebChartChange = p();
|
|
42
|
+
}, this.popoverPlacement = "leading", this.usePopupTemplateFieldsInfo = !1, this.arcgisChartsConfigWebChartChange = p();
|
|
43
43
|
}
|
|
44
44
|
static {
|
|
45
45
|
this.properties = { layerFieldsInfo: 16, model: 0, popoverPlacement: 1, r2: 9, calculatedDataMinMaxBounds: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5 };
|
|
@@ -104,7 +104,7 @@ class K extends _ {
|
|
|
104
104
|
}, this.segmentedControlRef = (e) => {
|
|
105
105
|
e && (e.focus = () => {
|
|
106
106
|
}, this.items.push(e));
|
|
107
|
-
}, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = E(), this.arcgisChartsConfigScatterplotPopoverChange = E();
|
|
107
|
+
}, this.layerFieldsInfo = [], this.isTableLayer = !1, this.arcgisChartsConfigDataChangeError = E(), this.arcgisChartsConfigScatterplotPopoverChange = E();
|
|
108
108
|
}
|
|
109
109
|
static {
|
|
110
110
|
this.properties = { selectedElement: 16, selectedSizeType: 16, messageOverrides: 0, model: 0, r2: 9, layerFieldsInfo: 0, isTableLayer: 5 };
|
|
@@ -291,7 +291,7 @@ class K extends _ {
|
|
|
291
291
|
}
|
|
292
292
|
renderSymbol() {
|
|
293
293
|
const [e, t, s, o] = [...this.model.fixedMarkerSymbol?.color ?? z(0)];
|
|
294
|
-
return r`<div class=${i(l.sectionContainer)}>${this.renderSymbolSizeType()}${this.selectedSizeType === d.Proportional ? this.renderProportionalSymbol() : this.renderFixedSymbol()}<calcite-label class=${i(l.label)}>${this._messages.color}${this.isTableLayer
|
|
294
|
+
return r`<div class=${i(l.sectionContainer)}>${this.renderSymbolSizeType()}${this.selectedSizeType === d.Proportional ? this.renderProportionalSymbol() : this.renderFixedSymbol()}<calcite-label class=${i(l.label)}>${this._messages.color}${this.isTableLayer ? null : r`<calcite-segmented-control name=layerColor layout=horizontal scale=s @calciteSegmentedControlChange=${this.changeColorTypeToggle} ${c(this.colorModeElement)}><calcite-segmented-control-item .value=${this._messages.useLayerColors} .checked=${this.model.colorMatch} ${c(this.segmentedControlRef)}>${this._messages.useLayerColors}</calcite-segmented-control-item><calcite-segmented-control-item .value=${this._messages.singleColor} .checked=${!this.model.colorMatch} ${c(this.segmentedControlRef)}>${this._messages.singleColor}</calcite-segmented-control-item></calcite-segmented-control>`}</calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.color} value=selectColor .hidden=${this.model.colorMatch && !this.isTableLayer} .selected=${Array.isArray(this.selectedElement)} @click=${this.changeElementStyle} ${c(this.selectColorElement)}><calcite-icon slot=content-end icon=circle-f style=${I({ color: `rgba(${e},${t},${s},${o / 255})` })} class=${i(l.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list></div>`;
|
|
295
295
|
}
|
|
296
296
|
render() {
|
|
297
297
|
return r`<h3 class=${i(l.sectionLabel)}>${this._messages.variables}</h3><calcite-label class=${i(l.label)}>${this._messages.xAxisNumber}${this.renderXVariable()}</calcite-label><calcite-label class=${i(l.label)}>${this._messages.yAxisNumber}${this.renderYVariable()}</calcite-label><calcite-label class=${i(l.label)}><span class=${i(this.model.dataStore.aggregated ? l.dimText : "")}>${this._messages.additionalTooltipFields}</span>${this.renderTooltipField()}</calcite-label><h3 class=${i(l.sectionLabel)}>${this._messages.statistics}</h3>${this.renderStatistics()}<h3 class=${i(l.sectionLabel)}>${this._messages.symbol}</h3>${this.renderSymbol()}`;
|
|
@@ -47,7 +47,7 @@ const r = {
|
|
|
47
47
|
}, F = 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)}:host{width:100%}.pick-list-panel{max-height:60vh}`;
|
|
48
48
|
class L extends P {
|
|
49
49
|
constructor() {
|
|
50
|
-
super(...arguments), this.picklist = m(), this._messages = b(), this.popoverElement = m(), this.layerFieldsInfo = [], this.arcgisChartsConfigPopoverClose = l(), this.arcgisChartsConfigScatterplotFillColorChange = l(), this.arcgisChartsConfigScatterplotLineStyleChange = l(), this.arcgisChartsConfigScatterplotSizeVariableFieldChange = l(), this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange = l(), this.arcgisChartsConfigScatterplotXYFieldChange = l();
|
|
50
|
+
super(...arguments), this.picklist = m(), this._messages = b(), this.popoverElement = m(), this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPopoverClose = l(), this.arcgisChartsConfigScatterplotFillColorChange = l(), this.arcgisChartsConfigScatterplotLineStyleChange = l(), this.arcgisChartsConfigScatterplotSizeVariableFieldChange = l(), this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange = l(), this.arcgisChartsConfigScatterplotXYFieldChange = l();
|
|
51
51
|
}
|
|
52
52
|
static {
|
|
53
53
|
this.properties = { messageOverrides: 0, headingTitle: 1, contentKind: 1, selectedContent: 1, referenceElement: 0, placement: 1, open: 5, layerFieldsInfo: 0 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as o, html as i } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import "lodash-es";
|
|
@@ -33,7 +33,7 @@ import "@arcgis/toolkit/dom";
|
|
|
33
33
|
import { e as p } from "../../chunks/popover-ui-utils.js";
|
|
34
34
|
import { u as n } from "../../chunks/useT9n.js";
|
|
35
35
|
import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
36
|
-
import { LitElement as d, createEvent as s, safeClassMap as
|
|
36
|
+
import { LitElement as d, createEvent as s, safeClassMap as l } from "@arcgis/lumina";
|
|
37
37
|
import { M as e } from "../../chunks/common.js";
|
|
38
38
|
const a = {
|
|
39
39
|
selectChartComponent: "select-chart-component",
|
|
@@ -42,7 +42,7 @@ const a = {
|
|
|
42
42
|
}, g = 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)}.select-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}calcite-block{width:var(--arcgis-charts-config-calcite-block-default-width);height:var(--arcgis-charts-config-calcite-block-default-height);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.header{margin:0}.panel{max-height:60vh}`;
|
|
43
43
|
class C extends d {
|
|
44
44
|
constructor() {
|
|
45
|
-
super(...arguments), this._messages = n(), this.selectChartTypePopover = h(), this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSelectChartTypeChange = s();
|
|
45
|
+
super(...arguments), this._messages = n(), this.selectChartTypePopover = h(), this.open = !1, this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSelectChartTypeChange = s();
|
|
46
46
|
}
|
|
47
47
|
static {
|
|
48
48
|
this.properties = { messageOverrides: 0, headerTitle: 1, layerId: 1, layerType: 1, open: 5, referenceElement: 0, popoverPlacement: 1, selectedModelType: 1 };
|
|
@@ -77,13 +77,13 @@ class C extends d {
|
|
|
77
77
|
}, 250);
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return i`<div class=${
|
|
80
|
+
return i`<div class=${l({
|
|
81
81
|
[a.selectChartComponent]: !0,
|
|
82
82
|
[a.jsAppFlyout]: !0
|
|
83
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top", "bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${m(this.selectChartTypePopover)}><calcite-panel class=${
|
|
83
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top", "bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${m(this.selectChartTypePopover)}><calcite-panel class=${l(a.panel)} .heading=${this.headerTitle ?? this._messages.chooseChartType} closable @calcitePanelClose=${this.popoverClose} .closed=${!this.open}>${this.buildChartTypesList()}</calcite-panel></calcite-popover></div>`;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
c("arcgis-charts-config-select-chart-type-popover", C);
|
|
87
87
|
export {
|
|
88
88
|
C as ArcgisChartsConfigSelectChartTypePopover
|
|
89
89
|
};
|