@arcgis/charts-components 5.2.0-next.160 → 5.2.0-next.161
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/{MMRG4Q5Q.js → 25TMILMW.js} +1 -1
- package/dist/cdn/{DQLO4ITR.js → 2EVGCHLU.js} +1 -1
- package/dist/cdn/{K4WZTS5W.js → 2IKWOLN3.js} +1 -1
- package/dist/cdn/{QXNM2F6D.js → 2ML7QPKF.js} +1 -1
- package/dist/cdn/{SEBELUXK.js → 2VJHMRVH.js} +1 -1
- package/dist/cdn/{NDECGMQR.js → 35NEE76D.js} +1 -1
- package/dist/cdn/{JMC5FR6G.js → 465VYGYI.js} +1 -1
- package/dist/cdn/{AWZYMQFF.js → 4IKEKWOE.js} +1 -1
- package/dist/cdn/{4T5L3BLL.js → 5E3TO5VL.js} +1 -1
- package/dist/cdn/{TWACT53N.js → 5MSLKMMC.js} +1 -1
- package/dist/cdn/{6QEBTDLJ.js → 6C6WSW7H.js} +1 -1
- package/dist/cdn/{YFVUQYKO.js → 6OQ3ZDVR.js} +1 -1
- package/dist/cdn/{MZAJOKMM.js → 7UP7WEAU.js} +1 -1
- package/dist/cdn/{UG74S4GG.js → AF73AYAM.js} +1 -1
- package/dist/cdn/{TQUFEFBE.js → B4TPP6RZ.js} +1 -1
- package/dist/cdn/{2LV6GDYK.js → BHKK6FLW.js} +1 -1
- package/dist/cdn/BYTEHOE7.js +2 -0
- package/dist/cdn/{ETSSSFIS.js → C33ISW4F.js} +1 -1
- package/dist/cdn/{RW56D36T.js → CAMGJEUR.js} +1 -1
- package/dist/cdn/{HOYAL4U2.js → CHKXXWE6.js} +1 -1
- package/dist/cdn/{GRQ3RAS2.js → D4OB7XLF.js} +1 -1
- package/dist/cdn/{GCGZ4SRD.js → EA2ASB3H.js} +1 -1
- package/dist/cdn/{6IEIR3IJ.js → EMWEY7ZI.js} +1 -1
- package/dist/cdn/{G37DEPFO.js → EWJBDML4.js} +1 -1
- package/dist/cdn/{P6XYFLVZ.js → F52ELKRO.js} +1 -1
- package/dist/cdn/{2USDPS2L.js → FUQSPTZN.js} +1 -1
- package/dist/cdn/{PMMT66SN.js → FVSFPYCR.js} +1 -1
- package/dist/cdn/{YNOSBB23.js → G3WQCZSG.js} +1 -1
- package/dist/cdn/{54WTBBPU.js → GSYIK4QQ.js} +1 -1
- package/dist/cdn/{R5VDLCQN.js → H32JHNE3.js} +1 -1
- package/dist/cdn/{QSCUSBOE.js → HICJD6DS.js} +1 -1
- package/dist/cdn/{DNS4RWBT.js → HNNCAYBK.js} +1 -1
- package/dist/cdn/{PNELR4NS.js → HPRC3P7F.js} +1 -1
- package/dist/cdn/HQIRZSK7.js +2 -0
- package/dist/cdn/{75J7S444.js → HS7MWTLI.js} +1 -1
- package/dist/cdn/{KND6442A.js → I7NIEVUL.js} +1 -1
- package/dist/cdn/{L3C4LMLQ.js → IAAXYB7Z.js} +1 -1
- package/dist/cdn/{JX5JAG7D.js → IDJIOIPJ.js} +1 -1
- package/dist/cdn/{C5HTXSZS.js → IHV2PSBX.js} +1 -1
- package/dist/cdn/{D4E2DTYE.js → J2FKQWZT.js} +1 -1
- package/dist/cdn/{3GGD7KLV.js → JFIKB6TE.js} +1 -1
- package/dist/cdn/{RKYMPBR5.js → JJFAGT6G.js} +1 -1
- package/dist/cdn/{Y5W5WINS.js → JN3U4Y5T.js} +1 -1
- package/dist/cdn/{DDNBFHKN.js → JXF4ULHX.js} +1 -1
- package/dist/cdn/JZPIPSYO.js +4 -0
- package/dist/cdn/{DLX6ZNYG.js → KKPMX525.js} +1 -1
- package/dist/cdn/{GT7N5NKM.js → KMDY2BNL.js} +1 -1
- package/dist/cdn/{WAESGWAL.js → LLF5VNA5.js} +1 -1
- package/dist/cdn/{VWS73BFY.js → LQIVBCUD.js} +1 -1
- package/dist/cdn/{Q44XXOXV.js → MNSF7JJM.js} +1 -1
- package/dist/cdn/{Q6DXB7DT.js → MOVPKC7L.js} +1 -1
- package/dist/cdn/{A5UWEHLX.js → MYDY7Q6P.js} +1 -1
- package/dist/cdn/{B7NGZOWD.js → N3LZODVA.js} +1 -1
- package/dist/cdn/{5HKCWI3P.js → O636LI34.js} +1 -1
- package/dist/cdn/{O7SBBJIT.js → OL3ACZEB.js} +1 -1
- package/dist/cdn/{C24TOQMU.js → OMV6OE2Z.js} +11 -11
- package/dist/cdn/{KTDX5Z2G.js → P3O6GZSZ.js} +1 -1
- package/dist/cdn/{7NDAZIXV.js → PATB6UOF.js} +1 -1
- package/dist/cdn/{EBMUNX44.js → Q55Q7RXW.js} +1 -1
- package/dist/cdn/{VTXTISBO.js → QNGJ2NXH.js} +1 -1
- package/dist/cdn/{FF4LQHDS.js → R5FERWLW.js} +1 -1
- package/dist/cdn/{GPHCD6G4.js → R6FIMVWO.js} +1 -1
- package/dist/cdn/{ECFOVMA2.js → RWP5ZFPV.js} +1 -1
- package/dist/cdn/{62FK6ANF.js → S2VVOYYV.js} +1 -1
- package/dist/cdn/{OIRY7UKP.js → SQTZHFKM.js} +1 -1
- package/dist/cdn/{R623PW73.js → TB3TYVK2.js} +1 -1
- package/dist/cdn/{25EQGAJY.js → TFS2FLYV.js} +1 -1
- package/dist/cdn/{FS6K3PGA.js → VEFQ3ZKG.js} +1 -1
- package/dist/cdn/{EI6JNZL7.js → VFOEFPOW.js} +1 -1
- package/dist/cdn/{TR3X4GPJ.js → VLY2KRJ2.js} +1 -1
- package/dist/cdn/{WGKZDY7Y.js → VPCS6ZXS.js} +1 -1
- package/dist/cdn/{SZHT3SPH.js → W3AWWIGN.js} +1 -1
- package/dist/cdn/{YWKT5FUP.js → WKBTCETV.js} +1 -1
- package/dist/cdn/{JHUXUZ3V.js → X6NJXMTE.js} +1 -1
- package/dist/cdn/{NAFHJZYK.js → X73TC36H.js} +1 -1
- package/dist/cdn/{LGUGOYL5.js → X7H4RWYS.js} +1 -1
- package/dist/cdn/{J3AUMK36.js → XB6HEB2Y.js} +1 -1
- package/dist/cdn/{7ULLR4CN.js → XFBS7TR6.js} +1 -1
- package/dist/cdn/{NTDBPHHL.js → XFTBNWPR.js} +1 -1
- package/dist/cdn/{6UOV5TES.js → YGEZCMV7.js} +1 -1
- package/dist/cdn/{MHIL7RCM.js → YKWJEWAX.js} +1 -1
- package/dist/cdn/{ZBHRRQNP.js → ZTYYTE3O.js} +1 -1
- package/dist/cdn/{XDTACW3D.js → ZVGMC5LQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +3 -3
- package/dist/chunks/box-plot-model.js +6 -6
- package/dist/chunks/chart-model.js +19 -19
- package/dist/chunks/combo-bar-line-chart-model.js +8 -8
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/histogram-model.js +5 -5
- package/dist/chunks/index.js +1502 -1481
- package/dist/chunks/line-chart-model.js +5 -5
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +10 -10
- package/dist/chunks/pie-chart-model.js +6 -6
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/scatterplot-model.js +12 -12
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/x-bounds.js +17 -17
- package/dist/components/arcgis-chart/customElement.js +90 -85
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +20 -24
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +78 -76
- 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 +214 -213
- package/dist/loader.js +1 -1
- package/package.json +4 -4
- package/dist/cdn/DGXBF4BH.js +0 -4
- package/dist/cdn/EX7GAUGC.js +0 -2
- package/dist/cdn/GAFCUST3.js +0 -2
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as h } from "../../chunks/runtime.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
3
|
+
import { LitElement as d, createEvent as g, nothing as o } from "@arcgis/lumina";
|
|
4
|
+
import { html as m } from "lit";
|
|
5
|
+
import p from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
6
6
|
import { u as a } from "../../chunks/useT9n.js";
|
|
7
|
-
import { c$ as r, d0 as n } from "../../chunks/index.js";
|
|
8
|
-
|
|
9
|
-
Circle: "circle",
|
|
10
|
-
FreehandPolygon: "freehandPolygon",
|
|
11
|
-
Polygon: "polygon",
|
|
12
|
-
Polyline: "polyline",
|
|
13
|
-
Rectangle: "rectangle"
|
|
14
|
-
};
|
|
15
|
-
class p extends g {
|
|
7
|
+
import { c$ as r, d0 as n, d1 as t } from "../../chunks/index.js";
|
|
8
|
+
class y extends d {
|
|
16
9
|
constructor() {
|
|
17
|
-
super(...arguments), this._messages = a({ blocking: !0 }), this.commonStrings = a({ name: "common", blocking: !0 }), this.handleAoiToolClick = async (
|
|
18
|
-
this.view?.map &&
|
|
19
|
-
}, this.arcgisImageryScatterplotAoiChange =
|
|
10
|
+
super(...arguments), this._messages = a({ blocking: !0 }), this.commonStrings = a({ name: "common", blocking: !0 }), this.handleAoiToolClick = async (e) => {
|
|
11
|
+
this.view?.map && e && (this.selectedTool === e ? this.deactivateAoiSketch() : await this.startAoiSketch(e));
|
|
12
|
+
}, this.arcgisImageryScatterplotAoiChange = g();
|
|
20
13
|
}
|
|
21
14
|
static {
|
|
22
|
-
this.properties = { selectedTool: 16, messageOverrides: 0, view: 0 };
|
|
15
|
+
this.properties = { selectedTool: 16, tool: 1, messageOverrides: 0, view: 0 };
|
|
16
|
+
}
|
|
17
|
+
willUpdate(e) {
|
|
18
|
+
e.has("tool") && (this.tool ? this.tool !== this.selectedTool && this.startAoiSketch(this.tool) : this.deactivateAoiSketch());
|
|
23
19
|
}
|
|
24
20
|
disconnectedCallback() {
|
|
25
21
|
this.sketchListenerHandle && this.sketchListenerHandle.remove(), this.sketchViewModel && (this.sketchViewModel.destroy(), this.sketchViewModel = void 0), this.selectedTool = void 0, super.disconnectedCallback();
|
|
26
22
|
}
|
|
27
|
-
async startAoiSketch(
|
|
23
|
+
async startAoiSketch(e) {
|
|
28
24
|
if (this.view?.map) {
|
|
29
25
|
const i = r(this.view) ?? n(this.view);
|
|
30
|
-
this.sketchViewModel ? (this.sketchViewModel.cancel(), this.sketchViewModel.layer !== i && (this.sketchViewModel.layer = i)) : (this.sketchViewModel = new
|
|
26
|
+
this.sketchViewModel ? (this.sketchViewModel.cancel(), this.sketchViewModel.layer !== i && (this.sketchViewModel.layer = i)) : (this.sketchViewModel = new p({
|
|
31
27
|
view: this.view,
|
|
32
28
|
layer: i,
|
|
33
29
|
activeFillSymbol: {
|
|
@@ -43,7 +39,7 @@ class p extends g {
|
|
|
43
39
|
},
|
|
44
40
|
creationMode: "continuous",
|
|
45
41
|
updateOnGraphicClick: !1
|
|
46
|
-
}), this.addAoiSketchListener()), this.selectedTool =
|
|
42
|
+
}), this.addAoiSketchListener()), this.selectedTool = e, await this.sketchViewModel.create(e);
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
45
|
deactivateAoiSketch() {
|
|
@@ -51,7 +47,7 @@ class p extends g {
|
|
|
51
47
|
}
|
|
52
48
|
addAoiSketchListener() {
|
|
53
49
|
if (this.sketchViewModel) {
|
|
54
|
-
const
|
|
50
|
+
const e = this.sketchViewModel, i = e.on("create", (s) => {
|
|
55
51
|
switch (s.state) {
|
|
56
52
|
case "cancel":
|
|
57
53
|
this.deactivateAoiSketch();
|
|
@@ -64,7 +60,7 @@ class p extends g {
|
|
|
64
60
|
newGeometry: c.toJSON()
|
|
65
61
|
});
|
|
66
62
|
const l = r(this.view);
|
|
67
|
-
l?.remove(s.graphic), this.isConnected && (
|
|
63
|
+
l?.remove(s.graphic), this.isConnected && (e.layer = l ?? n(this.view));
|
|
68
64
|
}
|
|
69
65
|
break;
|
|
70
66
|
}
|
|
@@ -73,10 +69,10 @@ class p extends g {
|
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
71
|
render() {
|
|
76
|
-
return
|
|
72
|
+
return m`<calcite-action-group layout=horizontal id=charts-config-scatter-plot-aoi-action-group><calcite-action id=charts-config-scatter-plot-aoi-line icon=line .text=${this.commonStrings.imageryAoiToolsStrings.polyline} title=${this._messages.draw.polyline ?? o} .active=${this.selectedTool === t.Polyline} @click=${() => this.handleAoiToolClick(t.Polyline)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-circle icon=circle .text=${this.commonStrings.imageryAoiToolsStrings.circle} title=${this._messages.draw.circle ?? o} .active=${this.selectedTool === t.Circle} @click=${() => this.handleAoiToolClick(t.Circle)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-rectangle icon=rectangle .text=${this.commonStrings.imageryAoiToolsStrings.rectangle} title=${this._messages.draw.rectangle ?? o} .active=${this.selectedTool === t.Rectangle} @click=${() => this.handleAoiToolClick(t.Rectangle)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-polygon icon=polygon .text=${this.commonStrings.imageryAoiToolsStrings.polygon} title=${this._messages.draw.polygon ?? o} .active=${this.selectedTool === t.Polygon} @click=${() => this.handleAoiToolClick(t.Polygon)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-freehand-area icon=freehand-area .text=${this.commonStrings.imageryAoiToolsStrings.freehandPolygon} title=${this._messages.draw.freehandPolygon ?? o} .active=${this.selectedTool === t.FreehandPolygon} @click=${() => this.handleAoiToolClick(t.FreehandPolygon)}></calcite-action></calcite-action-group>`;
|
|
77
73
|
}
|
|
78
74
|
}
|
|
79
|
-
h("arcgis-charts-config-scatter-plot-aoi",
|
|
75
|
+
h("arcgis-charts-config-scatter-plot-aoi", y);
|
|
80
76
|
export {
|
|
81
|
-
|
|
77
|
+
y as ArcgisChartsConfigScatterplotAoi
|
|
82
78
|
};
|
|
@@ -3,17 +3,17 @@ import { c as F } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { cloneDeep as A, isEmpty as k, toNumber as z } from "es-toolkit/compat";
|
|
4
4
|
import { f as n, g as d } from "../../chunks/interfaces.js";
|
|
5
5
|
import { d as M, a as m } from "../../chunks/store.js";
|
|
6
|
-
import { i as v, m as g, U as
|
|
7
|
-
import { l as $, B as b,
|
|
6
|
+
import { i as v, m as g, U as u, n as L, D as w, s as y } from "../../chunks/chart-ui-utils.js";
|
|
7
|
+
import { l as $, B as b, d2 as _ } from "../../chunks/index.js";
|
|
8
8
|
import { u as I } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as V, html as r } from "lit";
|
|
10
10
|
import { createRef as h, ref as c } from "lit/directives/ref.js";
|
|
11
|
-
import { LitElement as D, createEvent as x, renderElement as
|
|
12
|
-
import { ah as
|
|
11
|
+
import { LitElement as D, createEvent as x, renderElement as R, safeClassMap as s, safeStyleMap as C } from "@arcgis/lumina";
|
|
12
|
+
import { ah as N, E, r as K } from "../../chunks/index2.js";
|
|
13
13
|
import { r as T } from "../../chunks/popover-ui-utils.js";
|
|
14
14
|
import { b as P } from "../../chunks/rest-js-object-literals.js";
|
|
15
|
-
import { a as
|
|
16
|
-
const
|
|
15
|
+
import { a as S } from "../../chunks/chart-object-literals.js";
|
|
16
|
+
const l = {
|
|
17
17
|
label: "label",
|
|
18
18
|
r2: "r2",
|
|
19
19
|
numberInput: "number-input",
|
|
@@ -25,17 +25,17 @@ const s = {
|
|
|
25
25
|
dimText: "dim-text",
|
|
26
26
|
aoiTools: "aoi-tools",
|
|
27
27
|
currentAoiBlock: "current-aoi-block"
|
|
28
|
-
},
|
|
29
|
-
class
|
|
28
|
+
}, O = 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;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}:host .number-input{margin-bottom:.5rem;display:flex}:host .number-input>div{width:100%}calcite-list-item{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor)}calcite-slider{margin-top:-1.5rem}.r2{margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.section-container{display:flex;flex-direction:column}.icon-select{cursor:pointer}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.switch-element{margin-right:var(--arcgis-charts-config-margin-minor)}.multi-input-section{display:flex;justify-content:space-between;align-items:center}.aoi-tools{margin-top:0;margin-bottom:var(--arcgis-charts-config-margin-major);margin-inline:var(--arcgis-charts-config-margin-minor);background:var(--calcite-color-foreground-1)}.current-aoi-block{margin:var(--arcgis-charts-config-calcite-block-default-margin)}`;
|
|
29
|
+
class U extends D {
|
|
30
30
|
constructor() {
|
|
31
31
|
super(...arguments), this._messages = I(), this.commonStrings = I({ name: "common", blocking: !0 }), this.scatterplotPopover = null, this.selectColorElement = h(), this.selectTrendLineElement = h(), this.xAxisElement = h(), this.yAxisElement = h(), this.tooltipFieldElement = h(), this.sizeVariableElement = h(), this.colorModeElement = h(), this.symbolSizeModeElement = h(), this.minSizeInputElement = h(), this.maxSizeInputElement = h(), this.items = [], this.setTrendLineSymbol = (e) => {
|
|
32
32
|
const i = e.detail;
|
|
33
33
|
this.model.linearTrendSymbol = A(i);
|
|
34
34
|
}, this.setFixedSymbolRGBAColor = (e) => {
|
|
35
|
-
const i = e.detail, [
|
|
35
|
+
const i = e.detail, [t, a, o] = i, p = K * 255;
|
|
36
36
|
this.model.fixedMarkerSymbol = {
|
|
37
37
|
...this.model.fixedMarkerSymbol,
|
|
38
|
-
color: [
|
|
38
|
+
color: [t, a, o, p]
|
|
39
39
|
};
|
|
40
40
|
}, this.setXYField = (e) => {
|
|
41
41
|
try {
|
|
@@ -52,7 +52,7 @@ class O extends D {
|
|
|
52
52
|
const i = e.detail;
|
|
53
53
|
i ? this.model.sizePolicy = {
|
|
54
54
|
...this.model.sizePolicy,
|
|
55
|
-
type:
|
|
55
|
+
type: S.SizePolicy,
|
|
56
56
|
field: i
|
|
57
57
|
} : this.model.sizePolicy = void 0, m.scatterplotData[m.selectedChartId] = {
|
|
58
58
|
...m.scatterplotData[m.selectedChartId],
|
|
@@ -64,35 +64,34 @@ class O extends D {
|
|
|
64
64
|
}, this.closeScatterplotPopover = (e) => {
|
|
65
65
|
this.scatterplotPopover === e?.target && (this.contentKind = n.none, this.removeScatterplotPopover());
|
|
66
66
|
}, this.onModelConfigChange = () => {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
this.minSizeInputElement.value !== void 0 && i !== void 0 && (this.minSizeInputElement.value.value = `${i}`, v(this.minSizeInputElement.value.value, this.minSizeInputElement.value.min, this.minSizeInputElement.value.max) ? (this.isMinSizeInvalid = !1, g({
|
|
67
|
+
this.requestUpdate();
|
|
68
|
+
const { minSize: e, maxSize: i } = this.model.sizePolicy ?? {};
|
|
69
|
+
this.minSizeInputElement.value !== void 0 && e !== void 0 && (this.minSizeInputElement.value.value = `${e}`, v(this.minSizeInputElement.value.value, this.minSizeInputElement.value.min, this.minSizeInputElement.value.max) ? (this.isMinSizeInvalid = !1, g({
|
|
71
70
|
inputElement: this.minSizeInputElement.value,
|
|
72
|
-
status:
|
|
71
|
+
status: u.IDLE
|
|
73
72
|
})) : (this.isMinSizeInvalid = !0, g({
|
|
74
73
|
inputElement: this.minSizeInputElement.value,
|
|
75
|
-
status:
|
|
76
|
-
}))), this.maxSizeInputElement.value !== void 0 &&
|
|
74
|
+
status: u.INVALID
|
|
75
|
+
}))), this.maxSizeInputElement.value !== void 0 && i !== void 0 && (this.maxSizeInputElement.value.value = `${i}`, v(this.maxSizeInputElement.value.value, this.maxSizeInputElement.value.min, this.maxSizeInputElement.value.max) ? (this.isMaxSizeInvalid = !1, g({
|
|
77
76
|
inputElement: this.maxSizeInputElement.value,
|
|
78
|
-
status:
|
|
77
|
+
status: u.IDLE
|
|
79
78
|
})) : (this.isMaxSizeInvalid = !0, g({
|
|
80
79
|
inputElement: this.maxSizeInputElement.value,
|
|
81
|
-
status:
|
|
80
|
+
status: u.INVALID
|
|
82
81
|
})));
|
|
83
82
|
}, this.segmentedControlRef = (e) => {
|
|
84
83
|
e && (e.focus = () => {
|
|
85
84
|
}, this.items.push(e));
|
|
86
|
-
}, this.
|
|
85
|
+
}, this.isFixedSymbolSizeInvalid = !1, this.isMaxSizeInvalid = !1, this.isMinSizeInvalid = !1, this.layerFieldsInfo = [], this.isTableLayer = !1, this.arcgisChartsConfigDataChangeError = x(), this.arcgisChartsConfigScatterplotPopoverChange = x();
|
|
87
86
|
}
|
|
88
87
|
static {
|
|
89
|
-
this.properties = { selectedElement: 16, selectedSizeType: 16,
|
|
88
|
+
this.properties = { selectedElement: 16, selectedSizeType: 16, isFixedSymbolSizeInvalid: 16, isMaxSizeInvalid: 16, isMinSizeInvalid: 16, messageOverrides: 0, view: 0, model: 0, r2: 9, layerFieldsInfo: 0, isTableLayer: 5 };
|
|
90
89
|
}
|
|
91
90
|
static {
|
|
92
|
-
this.styles =
|
|
91
|
+
this.styles = O;
|
|
93
92
|
}
|
|
94
93
|
load() {
|
|
95
|
-
this.modelChange(this.model), this.onModelConfigChange(), this.defaultR2Label =
|
|
94
|
+
this.modelChange(this.model), this.onModelConfigChange(), this.defaultR2Label = N(this.commonStrings);
|
|
96
95
|
}
|
|
97
96
|
willUpdate(e) {
|
|
98
97
|
e.has("model") && (this.updateSymbolSizeInfoInAppState(), this.modelChange(this.model, e.get("model"))), e.has("selectedElement") && this.openPopover();
|
|
@@ -104,7 +103,7 @@ class O extends D {
|
|
|
104
103
|
super.disconnectedCallback(), this.removeScatterplotPopover(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
105
104
|
}
|
|
106
105
|
async loadedAsync() {
|
|
107
|
-
await (async (i) => await new Promise((
|
|
106
|
+
await (async (i) => await new Promise((t) => setTimeout(() => t(), i)))(250), this.items.forEach((i) => {
|
|
108
107
|
delete i.focus;
|
|
109
108
|
});
|
|
110
109
|
}
|
|
@@ -125,46 +124,46 @@ class O extends D {
|
|
|
125
124
|
this.model.showLinearTrend = i, !i && this.contentKind === n.trendLine && this.closeScatterplotPopover(e);
|
|
126
125
|
}
|
|
127
126
|
symbolSizeChange(e) {
|
|
128
|
-
const i = e.target, { value:
|
|
129
|
-
if (
|
|
130
|
-
const
|
|
127
|
+
const i = e.target, { value: t } = i;
|
|
128
|
+
if (t !== void 0 && v(t, i.min, i.max)) {
|
|
129
|
+
const a = Number.parseInt(t), o = this.model.sizePolicy, p = this.model.fixedMarkerSymbol;
|
|
131
130
|
switch (i.name) {
|
|
132
131
|
case "fixed-symbol-size":
|
|
133
132
|
p !== void 0 && (this.model.fixedMarkerSymbol = {
|
|
134
133
|
...p,
|
|
135
|
-
size:
|
|
134
|
+
size: a
|
|
136
135
|
}), this.isFixedSymbolSizeInvalid = !1;
|
|
137
136
|
break;
|
|
138
137
|
case "proportional-symbol-min-size":
|
|
139
|
-
|
|
140
|
-
...
|
|
141
|
-
minSize:
|
|
138
|
+
o !== void 0 && (this.model.sizePolicy = {
|
|
139
|
+
...o,
|
|
140
|
+
minSize: a
|
|
142
141
|
}), this.isMinSizeInvalid = !1;
|
|
143
142
|
break;
|
|
144
143
|
case "proportional-symbol-max-size":
|
|
145
|
-
|
|
146
|
-
...
|
|
147
|
-
maxSize:
|
|
144
|
+
o !== void 0 && (this.model.sizePolicy = {
|
|
145
|
+
...o,
|
|
146
|
+
maxSize: a
|
|
148
147
|
}), this.isMaxSizeInvalid = !1;
|
|
149
148
|
break;
|
|
150
149
|
}
|
|
151
150
|
g({
|
|
152
151
|
inputElement: i,
|
|
153
|
-
status:
|
|
152
|
+
status: u.IDLE
|
|
154
153
|
});
|
|
155
154
|
} else
|
|
156
155
|
i.name === "fixed-symbol-size" ? this.isFixedSymbolSizeInvalid = !0 : i.name === "proportional-symbol-min-size" ? this.isMinSizeInvalid = !0 : i.name === "proportional-symbol-max-size" && (this.isMaxSizeInvalid = !0), g({
|
|
157
156
|
inputElement: i,
|
|
158
|
-
status:
|
|
157
|
+
status: u.INVALID
|
|
159
158
|
});
|
|
160
159
|
}
|
|
161
160
|
symbolSizeRangeSliderInput(e) {
|
|
162
|
-
const i = e.target, { minValue:
|
|
163
|
-
|
|
164
|
-
...
|
|
165
|
-
minSize:
|
|
166
|
-
maxSize:
|
|
167
|
-
}, this.minSizeInputElement.value !== void 0 && (this.minSizeInputElement.value.value = `${
|
|
161
|
+
const i = e.target, { minValue: t, maxValue: a } = i, o = this.model.sizePolicy;
|
|
162
|
+
o !== void 0 && (this.model.sizePolicy = {
|
|
163
|
+
...o,
|
|
164
|
+
minSize: t,
|
|
165
|
+
maxSize: a
|
|
166
|
+
}, this.minSizeInputElement.value !== void 0 && (this.minSizeInputElement.value.value = `${t}`), this.maxSizeInputElement.value !== void 0 && (this.maxSizeInputElement.value.value = `${a}`));
|
|
168
167
|
}
|
|
169
168
|
changeColorTypeToggle() {
|
|
170
169
|
const e = this.colorModeElement.value?.selectedItem?.value;
|
|
@@ -176,11 +175,11 @@ class O extends D {
|
|
|
176
175
|
const i = m.scatterplotData[m.selectedChartId]?.sizePolicyField;
|
|
177
176
|
e === d.Proportional && i !== void 0 ? this.model.sizePolicy = {
|
|
178
177
|
...this.model.sizePolicy,
|
|
179
|
-
type:
|
|
178
|
+
type: S.SizePolicy,
|
|
180
179
|
field: i
|
|
181
180
|
} : e === d.Fixed && (this.model.sizePolicy = {
|
|
182
181
|
...this.model.sizePolicy,
|
|
183
|
-
type:
|
|
182
|
+
type: S.SizePolicy,
|
|
184
183
|
field: ""
|
|
185
184
|
});
|
|
186
185
|
}
|
|
@@ -203,32 +202,32 @@ class O extends D {
|
|
|
203
202
|
}
|
|
204
203
|
setupPopover() {
|
|
205
204
|
this.scatterplotPopover = T(this.scatterplotPopover);
|
|
206
|
-
const i = $(this.model.layer) ? this.layerFieldsInfo.filter((
|
|
207
|
-
let
|
|
205
|
+
const i = $(this.model.layer) ? this.layerFieldsInfo.filter((f) => f.type !== "esriFieldTypeOID") : [...this.layerFieldsInfo];
|
|
206
|
+
let t, a, o, p = "trailing";
|
|
208
207
|
switch (this.contentKind) {
|
|
209
208
|
case n.xAxisField:
|
|
210
|
-
|
|
209
|
+
t = this.xAxisElement.value, o = this.model.xAxisField, a = this._messages.selectAField;
|
|
211
210
|
break;
|
|
212
211
|
case n.yAxisField:
|
|
213
|
-
|
|
212
|
+
t = this.yAxisElement.value, o = this.model.yAxisField, a = this._messages.selectAField;
|
|
214
213
|
break;
|
|
215
214
|
case n.sizeVariable:
|
|
216
|
-
|
|
215
|
+
t = this.sizeVariableElement.value, o = this.model.sizePolicy?.field ?? "", a = this._messages.selectAField;
|
|
217
216
|
break;
|
|
218
217
|
case n.additionalTooltipFields:
|
|
219
|
-
|
|
218
|
+
t = this.tooltipFieldElement.value, o = this.model.additionalTooltipField?.[0] ?? "", a = this._messages.selectAField;
|
|
220
219
|
break;
|
|
221
220
|
case n.symbol:
|
|
222
221
|
case n.trendLine: {
|
|
223
|
-
const
|
|
224
|
-
|
|
222
|
+
const f = this.selectedElement;
|
|
223
|
+
o = this.selectedElement, p = "leading", Array.isArray(this.selectedElement) ? t = this.selectColorElement.value : f?.type === P.SLS && (t = this.selectTrendLineElement.value);
|
|
225
224
|
break;
|
|
226
225
|
}
|
|
227
226
|
default:
|
|
228
227
|
this.contentKind = n.none, this.removeScatterplotPopover();
|
|
229
228
|
break;
|
|
230
229
|
}
|
|
231
|
-
this.scatterplotPopover =
|
|
230
|
+
this.scatterplotPopover = R(r`<arcgis-charts-config-scatter-plot-popover .headingTitle=${a} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${i} .selectedContent=${o} .placement=${p} @arcgisChartsConfigPopoverClose=${this.closeScatterplotPopover} @arcgisChartsConfigScatterplotFillColorChange=${this.setFixedSymbolRGBAColor} @arcgisChartsConfigScatterplotLineStyleChange=${this.setTrendLineSymbol} @arcgisChartsConfigScatterplotXYFieldChange=${this.setXYField} @arcgisChartsConfigScatterplotSizeVariableFieldChange=${this.setSizeVariableField} @arcgisChartsConfigScatterplotAdditionalTooltipFieldChange=${this.setAdditionalTooltipField}></arcgis-charts-config-scatter-plot-popover>`), !document.body.contains(this.scatterplotPopover) && this.scatterplotPopover !== null && document.body.appendChild(this.scatterplotPopover);
|
|
232
231
|
}
|
|
233
232
|
removeScatterplotPopover() {
|
|
234
233
|
this.scatterplotPopover !== null && (this.scatterplotPopover = T(this.scatterplotPopover)), this.selectedElement = void 0;
|
|
@@ -238,23 +237,26 @@ class O extends D {
|
|
|
238
237
|
return e === void 0 || e.field === "" ? d.Fixed : d.Proportional;
|
|
239
238
|
}
|
|
240
239
|
handleImageryScatterplotAoiChange(e) {
|
|
241
|
-
const { tool: i, newGeometry:
|
|
242
|
-
|
|
240
|
+
const { tool: i, newGeometry: t } = e.detail;
|
|
241
|
+
t && (this.model.locationsOfInterest = [
|
|
243
242
|
{
|
|
244
|
-
type:
|
|
245
|
-
|
|
243
|
+
type: S.LocationOfInterest,
|
|
244
|
+
// @DEV: AOI tool name, used for display purposes in the UI
|
|
245
|
+
label: i,
|
|
246
|
+
geometry: t,
|
|
246
247
|
enabled: !0
|
|
247
248
|
}
|
|
248
249
|
]);
|
|
249
250
|
}
|
|
250
251
|
handleImageryScatterplotToggleUseAoi(e) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
const i = e.target.checked;
|
|
253
|
+
this.model.locationsOfInterest = this.model.locationsOfInterest?.map((t) => ({
|
|
254
|
+
...t,
|
|
255
|
+
enabled: i
|
|
254
256
|
}));
|
|
255
257
|
}
|
|
256
258
|
handleImageryScatterplotAoiDeleteClick() {
|
|
257
|
-
this.
|
|
259
|
+
this.model.locationsOfInterest = void 0;
|
|
258
260
|
}
|
|
259
261
|
renderXVariable() {
|
|
260
262
|
return r`<arcgis-charts-config-field-picker .label=${b(this.layerFieldsInfo, this.model.xAxisField ?? "")} @click=${this.onXVariableSelectChange} ${c(this.xAxisElement)}></arcgis-charts-config-field-picker>`;
|
|
@@ -266,40 +268,40 @@ class O extends D {
|
|
|
266
268
|
return r`<arcgis-charts-config-field-picker .disabled=${this.model.dataStore.aggregated} .label=${b(this.layerFieldsInfo, this.model.additionalTooltipField?.[0] ?? "")} @click=${this.onAdditionalTooltipFieldSelectChange} ${c(this.tooltipFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
267
269
|
}
|
|
268
270
|
renderStatistics() {
|
|
269
|
-
const [e, i,
|
|
270
|
-
return r`<div class=${
|
|
271
|
+
const [e, i, t, a] = [...this.model.linearTrendSymbol?.color ?? E(0)];
|
|
272
|
+
return r`<div class=${s(l.sectionContainer)}><calcite-label class=${s(l.label)} layout=inline-space-between>${this._messages.showLinearTrend}<calcite-switch class=${s(l.switchElement)} .checked=${this.model.showLinearTrend} @calciteSwitchChange=${this.setShowTrendLine}></calcite-switch></calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.trendLineStyle} value=selectTrendLine .hidden=${!this.model.showLinearTrend} .selected=${this.selectedElement?.type === P.SLS} @click=${this.changeElementStyle} ${c(this.selectTrendLineElement)}><calcite-icon slot=content-end icon=line-solid style=${C({ color: `rgba(${e},${i},${t},${a / 255})` })} class=${s(l.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list><div class=${s(l.r2)} .hidden=${!this.model.showLinearTrend}>${`${this._messages.r2}: ${Number.isNaN(this.r2) ? this.defaultR2Label : L(this.r2, w)}`}</div></div>`;
|
|
271
273
|
}
|
|
272
274
|
renderFixedSymbol() {
|
|
273
|
-
return r`<calcite-label class=${
|
|
275
|
+
return r`<calcite-label class=${s(l.label)}>${this._messages.size}<calcite-input type=number name=fixed-symbol-size class=${s(l.numberInput)} min=1 max=100 step=1 .value=${y(this.model.fixedMarkerSymbol?.size)} @calciteInputInput=${this.symbolSizeChange}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidSymbolSize} .isInvalid=${this.isFixedSymbolSizeInvalid}></arcgis-charts-config-invalid-input-message></calcite-label>`;
|
|
274
276
|
}
|
|
275
277
|
renderSizeVariable() {
|
|
276
278
|
return r`<arcgis-charts-config-field-picker .label=${b(this.layerFieldsInfo, this.model.sizePolicy?.field ?? "")} .invalid=${this.layerFieldsInfo.find((e) => e.name === this.model.sizePolicy?.field) === void 0} @click=${this.onSizeVariableSelectChange} ${c(this.sizeVariableElement)}></arcgis-charts-config-field-picker>`;
|
|
277
279
|
}
|
|
278
280
|
renderMinSizeInput() {
|
|
279
|
-
return r`<calcite-input type=number name=proportional-symbol-min-size class=${
|
|
281
|
+
return r`<calcite-input type=number name=proportional-symbol-min-size class=${s(l.numberInput)} min=1 .max=${this.model.sizePolicy?.maxSize ?? 100} step=1 .value=${y(this.model.sizePolicy?.minSize)} @calciteInputInput=${this.symbolSizeChange} ${c(this.minSizeInputElement)}></calcite-input>`;
|
|
280
282
|
}
|
|
281
283
|
renderMaxSizeInput() {
|
|
282
|
-
return r`<calcite-input type=number name=proportional-symbol-max-size class=${
|
|
284
|
+
return r`<calcite-input type=number name=proportional-symbol-max-size class=${s(l.numberInput)} .min=${this.model.sizePolicy?.minSize ?? 1} max=100 step=1 .value=${y(this.model.sizePolicy?.maxSize)} @calciteInputInput=${this.symbolSizeChange} ${c(this.maxSizeInputElement)}></calcite-input>`;
|
|
283
285
|
}
|
|
284
286
|
renderProportionalSymbol() {
|
|
285
|
-
return r`<div class=${
|
|
287
|
+
return r`<div class=${s(l.sectionContainer)}><calcite-label class=${s(l.label)}>${this._messages.numberRequired}${this.renderSizeVariable()}</calcite-label><div class=${s(l.multiInputSection)}><calcite-label class=${s(l.label)}>${this._messages.minSize}${this.renderMinSizeInput()}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidSymbolSize} .isInvalid=${this.isMinSizeInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label class=${s(l.label)}>${this._messages.maxSize}${this.renderMaxSizeInput()}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidSymbolSize} .isInvalid=${this.isMaxSizeInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><calcite-label><calcite-slider min=1 max=100 .minValue=${z(y(this.model.sizePolicy?.minSize))} .maxValue=${z(y(this.model.sizePolicy?.maxSize))} step=1 @calciteSliderInput=${this.symbolSizeRangeSliderInput}></calcite-slider></calcite-label></div>`;
|
|
286
288
|
}
|
|
287
289
|
renderSymbolSizeType() {
|
|
288
|
-
return r`<calcite-label class=${
|
|
290
|
+
return r`<calcite-label class=${s(l.label)}>${this._messages.size}<calcite-segmented-control name=symbolSizeType layout=horizontal scale=s @calciteSegmentedControlChange=${this.changeSymbolSizeTypeToggle} ${c(this.symbolSizeModeElement)}><calcite-segmented-control-item .value=${d.Fixed} .checked=${d.Fixed === this.selectedSizeType} ${c(this.segmentedControlRef)}>${this._messages.fixed}</calcite-segmented-control-item><calcite-segmented-control-item .value=${d.Proportional} .checked=${d.Proportional === this.selectedSizeType} ${c(this.segmentedControlRef)}>${this._messages.proportional}</calcite-segmented-control-item></calcite-segmented-control></calcite-label>`;
|
|
289
291
|
}
|
|
290
292
|
renderSymbol() {
|
|
291
|
-
const e = $(this.model.layer), [i,
|
|
292
|
-
return r`<div class=${
|
|
293
|
+
const e = $(this.model.layer), [i, t, a, o] = [...this.model.fixedMarkerSymbol?.color ?? E(0)];
|
|
294
|
+
return r`<div class=${s(l.sectionContainer)}>${this.renderSymbolSizeType()}${this.selectedSizeType === d.Proportional ? this.renderProportionalSymbol() : this.renderFixedSymbol()}<calcite-label class=${s(l.label)}>${this._messages.color}${!this.isTableLayer && !e ? 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>` : null}</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 && !e} .selected=${Array.isArray(this.selectedElement)} @click=${this.changeElementStyle} ${c(this.selectColorElement)}><calcite-icon slot=content-end icon=circle-f style=${C({ color: `rgba(${i},${t},${a},${o / 255})` })} class=${s(l.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list></div>`;
|
|
293
295
|
}
|
|
294
296
|
renderDefineAnAoiSection() {
|
|
295
|
-
const e = $(this.model.layer), i = this.
|
|
296
|
-
return e ? r`<h3 class=${
|
|
297
|
+
const e = $(this.model.layer), i = this.model.locationsOfInterest?.[0], t = _(i), a = t ? this.commonStrings.imageryAoiToolsStrings[t] : "";
|
|
298
|
+
return e ? r`<h3 class=${s(l.sectionLabel)}>${this._messages.defineAnAoi}</h3><div class=${s(l.sectionContainer)}><arcgis-charts-config-scatter-plot-aoi class=${s(l.aoiTools)} .view=${this.view} .tool=${t} @arcgisImageryScatterplotAoiChange=${this.handleImageryScatterplotAoiChange}></arcgis-charts-config-scatter-plot-aoi><calcite-label class=${s(l.label)} layout=inline-space-between>${this._messages.useAoi}<calcite-switch class=${s(l.switchElement)} id=charts-config-scatter-plot-aoi-use-switch .checked=${i?.enabled} .disabled=${!i} @calciteSwitchChange=${this.handleImageryScatterplotToggleUseAoi}></calcite-switch></calcite-label><calcite-block class=${s(l.currentAoiBlock)} expanded .hidden=${!i?.enabled}><calcite-label>${this._messages.currentAoi}</calcite-label><calcite-label layout=inline-space-between scale=s>${a}<calcite-button id=charts-config-scatter-plot-aoi-delete icon-start=trash appearance=transparent scale=s @click=${this.handleImageryScatterplotAoiDeleteClick}></calcite-button></calcite-label></calcite-block></div>` : null;
|
|
297
299
|
}
|
|
298
300
|
render() {
|
|
299
|
-
return r`${this.renderDefineAnAoiSection()}<h3 class=${
|
|
301
|
+
return r`${this.renderDefineAnAoiSection()}<h3 class=${s(l.sectionLabel)}>${this._messages.variables}</h3><calcite-label class=${s(l.label)}>${this._messages.xAxisNumber}${this.renderXVariable()}</calcite-label><calcite-label class=${s(l.label)}>${this._messages.yAxisNumber}${this.renderYVariable()}</calcite-label><calcite-label class=${s(l.label)}><span class=${s(this.model.dataStore.aggregated ? l.dimText : "")}>${this._messages.additionalTooltipFields}</span>${this.renderTooltipField()}</calcite-label><h3 class=${s(l.sectionLabel)}>${this._messages.statistics}</h3>${this.renderStatistics()}<h3 class=${s(l.sectionLabel)}>${this._messages.symbol}</h3>${this.renderSymbol()}`;
|
|
300
302
|
}
|
|
301
303
|
}
|
|
302
|
-
F("arcgis-charts-config-scatter-plot-data",
|
|
304
|
+
F("arcgis-charts-config-scatter-plot-data", U);
|
|
303
305
|
export {
|
|
304
|
-
|
|
306
|
+
U as ArcgisChartsConfigScatterplotData
|
|
305
307
|
};
|