@arcgis/charts-components 5.2.0-next.7 → 5.2.0-next.9
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/{DPNTYHTH.js → 2B4S6PH2.js} +1 -1
- package/dist/cdn/{7HGVEE7A.js → 2GJX5OO6.js} +1 -1
- package/dist/cdn/{TJMTF45U.js → 3X5JIVJJ.js} +2 -2
- package/dist/cdn/{EP34TF4L.js → 44GWFKSR.js} +1 -1
- package/dist/cdn/{ADPDJISV.js → 4LLOMGO7.js} +1 -1
- package/dist/cdn/{JTTJ455Y.js → 4P7S3KIY.js} +1 -1
- package/dist/cdn/{WGYJBMRM.js → 55UVN4AF.js} +1 -1
- package/dist/cdn/{DAB5R2BN.js → 5F54SB3S.js} +1 -1
- package/dist/cdn/{RG3DO2OE.js → 667DYS3D.js} +1 -1
- package/dist/cdn/{GDQBQQUP.js → 73BVFUAA.js} +1 -1
- package/dist/cdn/{XG3WW5GG.js → 7DD3FFI5.js} +1 -1
- package/dist/cdn/{TDHHWIIC.js → 7LXWQH6J.js} +1 -1
- package/dist/cdn/{6CFIKYKR.js → 7TRRNFTL.js} +1 -1
- package/dist/cdn/{UZEMSOA2.js → 7XLZ42N6.js} +1 -1
- package/dist/cdn/{J6WQX4UD.js → BSP7U5YN.js} +20 -20
- package/dist/cdn/{IWX5L226.js → CAGJKKOW.js} +1 -1
- package/dist/cdn/{KO7HQLGV.js → CG6PLENK.js} +1 -1
- package/dist/cdn/{XCUXUZXY.js → CKRMYU2S.js} +1 -1
- package/dist/cdn/{L5AQ4I5T.js → CQTLTJ52.js} +1 -1
- package/dist/cdn/CY7GY33F.js +2 -0
- package/dist/cdn/{S32NLOJ5.js → D57ESYPO.js} +1 -1
- package/dist/cdn/{JS2KOBA2.js → DKXRIXFG.js} +1 -1
- package/dist/cdn/EDSF5KGV.js +233 -0
- package/dist/cdn/{SJGYHEMZ.js → EPUNY3VI.js} +1 -1
- package/dist/cdn/{Q5JDSPJA.js → FATECLIQ.js} +1 -1
- package/dist/cdn/{GQ5QBLRO.js → FGNRWY57.js} +1 -1
- package/dist/cdn/{JWO5WVTZ.js → FJ4UGRMY.js} +1 -1
- package/dist/cdn/{OHF3AEWY.js → G7YZE67F.js} +1 -1
- package/dist/cdn/{O5A25X5K.js → GGHRYV36.js} +1 -1
- package/dist/cdn/{CVU3UPPF.js → GOP2GNGE.js} +1 -1
- package/dist/cdn/{4LPXOEML.js → GQ3TDTO5.js} +1 -1
- package/dist/cdn/{TW5DX7YP.js → H2DP7HXE.js} +1 -1
- package/dist/cdn/{ICFKKJWQ.js → H42V247N.js} +1 -1
- package/dist/cdn/{KCMZSNBL.js → H7TZ42RW.js} +1 -1
- package/dist/cdn/{OGYY2Y22.js → I5B6REVT.js} +1 -1
- package/dist/cdn/{K4WI2SGM.js → IXKYQBM7.js} +1 -1
- package/dist/cdn/{PROSIXIF.js → J7XXIAQJ.js} +1 -1
- package/dist/cdn/{ML3A3MYV.js → JRN2TZSV.js} +1 -1
- package/dist/cdn/{EGISZTGB.js → JRUIUNQA.js} +1 -1
- package/dist/cdn/{3NUNWPAR.js → KI2YCXW6.js} +1 -1
- package/dist/cdn/{VZTLODMQ.js → KPPNRDOP.js} +1 -1
- package/dist/cdn/{RPNZL6AC.js → LB6EF2UN.js} +1 -1
- package/dist/cdn/{OAAJ6CIN.js → M7QVV7WC.js} +1 -1
- package/dist/cdn/MICVGPGC.js +2 -0
- package/dist/cdn/{BBUPTHPL.js → MZHOWTY3.js} +1 -1
- package/dist/cdn/{BO62KSB5.js → NALKWY43.js} +1 -1
- package/dist/cdn/{KLHZFPYK.js → OCE4FAJ4.js} +1 -1
- package/dist/cdn/{R75MHIRF.js → PQHVQQSI.js} +1 -1
- package/dist/cdn/{MVHQR4FJ.js → PRFJNHPS.js} +1 -1
- package/dist/cdn/{JNG6V7XC.js → QNUCPXBU.js} +1 -1
- package/dist/cdn/{RDA5NV6M.js → QW5KML7L.js} +1 -1
- package/dist/cdn/{QRLILSSI.js → QXUR76TF.js} +1 -1
- package/dist/cdn/{QFEZPP3R.js → RCK5VONL.js} +1 -1
- package/dist/cdn/{MGEW6X3Y.js → RJW2DOIR.js} +2 -2
- package/dist/cdn/{6GLTSMOR.js → RR63Q3C2.js} +1 -1
- package/dist/cdn/{43ZHPVBB.js → RRC5ESYH.js} +1 -1
- package/dist/cdn/{LC6CY2HW.js → SS42OW45.js} +1 -1
- package/dist/cdn/{PRGFNLY7.js → STM26XZG.js} +1 -1
- package/dist/cdn/{7OF2IANH.js → TX43YOVC.js} +1 -1
- package/dist/cdn/{SCAZDS2G.js → TYAN5HWQ.js} +1 -1
- package/dist/cdn/{DZ72EIRH.js → UAGGYOZB.js} +1 -1
- package/dist/cdn/{D73VV2AZ.js → UDKG7LGN.js} +1 -1
- package/dist/cdn/{S5UDCCRH.js → UHQGJR3U.js} +1 -1
- package/dist/cdn/{VBHQFV2H.js → UYOCWLLG.js} +1 -1
- package/dist/cdn/{6AF2OTL6.js → UYTPOUP7.js} +1 -1
- package/dist/cdn/{7VN3A7S2.js → VKYQGU2R.js} +1 -1
- package/dist/cdn/{7YWZG3ZS.js → VOSE67U2.js} +1 -1
- package/dist/cdn/{VFREVEVA.js → W3OA4MKU.js} +1 -1
- package/dist/cdn/{TCTQ4LMU.js → W6KE6F3T.js} +1 -1
- package/dist/cdn/{32FR66QO.js → WCJ5W5TE.js} +1 -1
- package/dist/cdn/{NTSTL3FK.js → WHYRYWPW.js} +1 -1
- package/dist/cdn/{MBVTB42G.js → WOJQ6BTB.js} +1 -1
- package/dist/cdn/{7EMCHGGV.js → XP6RGZ2N.js} +1 -1
- package/dist/cdn/{NSOZIR5F.js → XRUOXTHH.js} +1 -1
- package/dist/cdn/{B4KAJRUJ.js → XTNDUDWE.js} +1 -1
- package/dist/cdn/{HWJGWDU3.js → YAR2TF55.js} +1 -1
- package/dist/cdn/{TJMPLGQI.js → YRFSWIDQ.js} +1 -1
- package/dist/cdn/{JRHMUFED.js → ZAHVBXAQ.js} +1 -1
- package/dist/cdn/{QY53LXP2.js → ZG7SUAGR.js} +1 -1
- package/dist/cdn/{C2FOUUEM.js → ZTX2ULE6.js} +1 -1
- package/dist/cdn/{G72TNKCS.js → ZY44M3QZ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +8 -8
- package/dist/chunks/class-breaks.js +18 -18
- package/dist/chunks/index2.js +186 -186
- package/dist/chunks/index4.js +2 -2
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +353 -356
- package/dist/chunks/utils.js +5 -5
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.d.ts +37 -40
- package/dist/components/arcgis-chart/customElement.js +5199 -5329
- 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 +3 -3
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram/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 +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- 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/index.d.ts +62 -67
- package/dist/index.js +210 -208
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +1 -1
- package/dist/utils/chart-config/utils/index.d.ts +29 -0
- package/dist/utils/defaults/index.d.ts +0 -1
- package/dist/utils/layer/inline-conversion/index.d.ts +3 -0
- package/package.json +4 -4
- package/dist/cdn/24RLLXS6.js +0 -2
- package/dist/cdn/2N4MK6FQ.js +0 -2
- /package/dist/cdn/{YOT6DVSU.js → 2OHFSVV5.js} +0 -0
- /package/dist/cdn/{AM2TOTX6.js → 2XXW3WF3.js} +0 -0
- /package/dist/cdn/{A4GEWIPY.js → 3JYZJUOM.js} +0 -0
- /package/dist/cdn/{6XTKJ7DO.js → 3TZEMBXR.js} +0 -0
- /package/dist/cdn/{ZXOO3X5P.js → 4OH4NSIW.js} +0 -0
- /package/dist/cdn/{TF7TE7K5.js → 5SIAOUPO.js} +0 -0
- /package/dist/cdn/{7FZC3RZK.js → 7QXRWMUN.js} +0 -0
- /package/dist/cdn/{QOOBNATX.js → AASL4RKT.js} +0 -0
- /package/dist/cdn/{JBHGSSHS.js → ANN3O54W.js} +0 -0
- /package/dist/cdn/{KFONSKQF.js → BDGHBTPU.js} +0 -0
- /package/dist/cdn/{CJPEW4LJ.js → FFS73X36.js} +0 -0
- /package/dist/cdn/{E7OAEGSE.js → FOYOG3G7.js} +0 -0
- /package/dist/cdn/{IPM2XKST.js → FWAXKDYV.js} +0 -0
- /package/dist/cdn/{N6AOFBBX.js → H3EXGCE7.js} +0 -0
- /package/dist/cdn/{DKAHZ7IX.js → I6UPUSLQ.js} +0 -0
- /package/dist/cdn/{BJDRJUEJ.js → IYA7HQMS.js} +0 -0
- /package/dist/cdn/{LFQGH44F.js → L47EGLUH.js} +0 -0
- /package/dist/cdn/{JJIGLOJA.js → LROW4Y6O.js} +0 -0
- /package/dist/cdn/{A5AECJXP.js → MK5ZYSOD.js} +0 -0
- /package/dist/cdn/{AJWYIBGC.js → N4L5KE23.js} +0 -0
- /package/dist/cdn/{K3GNHGEW.js → N5ZUO6F3.js} +0 -0
- /package/dist/cdn/{XE3FKQFA.js → OFWEHJDH.js} +0 -0
- /package/dist/cdn/{XW4PBQNW.js → OXYJKZEP.js} +0 -0
- /package/dist/cdn/{QMSINFQX.js → QR2OOC4D.js} +0 -0
- /package/dist/cdn/{5MEQANMY.js → RSNZMJ6I.js} +0 -0
- /package/dist/cdn/{DEGBVJ76.js → S3ZSZXYG.js} +0 -0
- /package/dist/cdn/{ETKPMU7Z.js → SERX6V5M.js} +0 -0
- /package/dist/cdn/{DCZWZOPF.js → SSQ3VCZ2.js} +0 -0
- /package/dist/cdn/{AWF4R7WL.js → TFPQDMER.js} +0 -0
- /package/dist/cdn/{FF4DUQDZ.js → ULWJ57VT.js} +0 -0
- /package/dist/cdn/{ZFZ5AEUQ.js → UYXCGSXU.js} +0 -0
- /package/dist/cdn/{GV3TT7L5.js → VDKFC44J.js} +0 -0
- /package/dist/cdn/{5YJNENER.js → VRZ2SY6M.js} +0 -0
- /package/dist/cdn/{HVO4LIXR.js → WAINRCCJ.js} +0 -0
- /package/dist/cdn/{SBYD2EKR.js → X2LW7GTR.js} +0 -0
- /package/dist/cdn/{2HUAW34Q.js → XDMGH7YU.js} +0 -0
- /package/dist/cdn/{KUZR6CGB.js → XY4TRZCG.js} +0 -0
- /package/dist/cdn/{5XTQQOTT.js → XYKXBWIT.js} +0 -0
- /package/dist/cdn/{L4G6FO7A.js → Y6ZCTPJW.js} +0 -0
- /package/dist/cdn/{CLXVAIQX.js → YKDW7ZW3.js} +0 -0
- /package/dist/cdn/{KZ7LPNX3.js → ZBIVDGNH.js} +0 -0
|
@@ -4,7 +4,7 @@ import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as c, html as s } from "lit";
|
|
5
5
|
import { isEqual as r } from "lodash-es";
|
|
6
6
|
import { C as t } from "../../chunks/interfaces.js";
|
|
7
|
-
import { ac as h,
|
|
7
|
+
import { ac as h, bw as f, I as p, bb as g } from "../../chunks/index2.js";
|
|
8
8
|
import { p as m, h as u } from "../../chunks/index5.js";
|
|
9
9
|
const C = c`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class F extends n {
|
|
@@ -12,7 +12,7 @@ import { createRef as c, ref as m } from "lit/directives/ref.js";
|
|
|
12
12
|
import { LitElement as U, createEvent as b, safeClassMap as l, renderElement as V } from "@arcgis/lumina";
|
|
13
13
|
import { d as S, f as z, F as M, C as F, m as R } from "../../chunks/index3.js";
|
|
14
14
|
import { x as K } from "../../chunks/data.js";
|
|
15
|
-
import { an as B, k as j, Y as A,
|
|
15
|
+
import { an as B, k as j, Y as A, bb as H } from "../../chunks/index2.js";
|
|
16
16
|
import { t as q, ag as W } from "../../chunks/index.js";
|
|
17
17
|
import { r as Z } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { r as d, s as L, u as C, m as f } from "../../chunks/chart-object-literals.js";
|
|
@@ -15,7 +15,7 @@ import { t as u, r as N, s as p } from "../../chunks/chart-object-literals.js";
|
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
16
|
import { e as w, p as B } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
import { t as K, ag as _ } from "../../chunks/index.js";
|
|
18
|
-
import { a2 as
|
|
18
|
+
import { a2 as O, bh as I, bb as j, bu as H, bk as M } from "../../chunks/index2.js";
|
|
19
19
|
import { d as U, m as W } from "../../chunks/index3.js";
|
|
20
20
|
const R = D`.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-y-axis{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, o = {
|
|
21
21
|
jsAppFlyout: "js-app-flyout",
|
|
@@ -64,7 +64,7 @@ class q extends S {
|
|
|
64
64
|
}
|
|
65
65
|
createTooltip(e) {
|
|
66
66
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
67
|
-
const t = e.target, i =
|
|
67
|
+
const t = e.target, i = O(t), s = new Intl.NumberFormat(i).format(L.customSortLimit), r = P(this._messages.customSortLimit ?? "", {
|
|
68
68
|
totalLimit: s
|
|
69
69
|
});
|
|
70
70
|
this.tooltip = T(a`<calcite-tooltip style=${A({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${r}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
@@ -121,7 +121,7 @@ class q extends S {
|
|
|
121
121
|
i.push(l);
|
|
122
122
|
for (let s = 0; s < t; s += 1) {
|
|
123
123
|
const r = this.layerFieldsInfo?.[s];
|
|
124
|
-
r && (r.type === k.String || I(r) ||
|
|
124
|
+
r && (r.type === k.String || I(r) || j(r) || H(r)) && i.push(this.buildPickListItem(r));
|
|
125
125
|
}
|
|
126
126
|
break;
|
|
127
127
|
}
|
|
@@ -11,7 +11,7 @@ import { createRef as f, ref as m } from "lit/directives/ref.js";
|
|
|
11
11
|
import { LitElement as I, createEvent as g, renderElement as x, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
12
12
|
import { B as r } from "../../chunks/common.js";
|
|
13
13
|
import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
14
|
-
import {
|
|
14
|
+
import { bh as b, bk as E, a2 as w } from "../../chunks/index2.js";
|
|
15
15
|
import { d as B } from "../../chunks/index3.js";
|
|
16
16
|
import { R as C } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
const o = {
|
|
@@ -10,12 +10,12 @@ import { C as n } from "../../chunks/interfaces.js";
|
|
|
10
10
|
import { isEqual as D } from "lodash-es";
|
|
11
11
|
import { i as F } from "../../chunks/index4.js";
|
|
12
12
|
import { D as E, w as k, F as O } from "../../chunks/index3.js";
|
|
13
|
-
import { LitElement as W, createEvent as f, renderElement as L, safeStyleMap as
|
|
13
|
+
import { LitElement as W, createEvent as f, renderElement as L, safeStyleMap as Z, safeClassMap as d } from "@arcgis/lumina";
|
|
14
14
|
import { css as G, html as h } from "lit";
|
|
15
|
-
import { createRef as
|
|
15
|
+
import { createRef as X, ref as K } from "lit/directives/ref.js";
|
|
16
16
|
import { u as P } from "../../chunks/useT9n.js";
|
|
17
17
|
import { c as j, a as x, g as q } from "../../chunks/store.js";
|
|
18
|
-
import { d0 as Y, _ as Q, d1 as J, K as ee,
|
|
18
|
+
import { d0 as Y, _ as Q, d1 as J, K as ee, bZ as te } from "../../chunks/index2.js";
|
|
19
19
|
import { A as ae } from "../../chunks/axis-model-wrapper.js";
|
|
20
20
|
import { h as ie, f as y } from "../../chunks/web-component-utils.js";
|
|
21
21
|
import { a as se } from "../../chunks/chart-ui-utils2.js";
|
|
@@ -83,7 +83,7 @@ function pe(m, e) {
|
|
|
83
83
|
const me = G`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
84
84
|
class ue extends W {
|
|
85
85
|
constructor() {
|
|
86
|
-
super(), this.selectChartTypePopover = null, this.chartsListFlowItem =
|
|
86
|
+
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = X(), this.supportedChartTypes = [
|
|
87
87
|
o.BarSeries,
|
|
88
88
|
o.BoxPlotSeries,
|
|
89
89
|
o.LineSeries,
|
|
@@ -391,7 +391,7 @@ class ue extends W {
|
|
|
391
391
|
t = "";
|
|
392
392
|
break;
|
|
393
393
|
}
|
|
394
|
-
this.tooltip = L(h`<calcite-tooltip style=${
|
|
394
|
+
this.tooltip = L(h`<calcite-tooltip style=${Z({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
395
395
|
}
|
|
396
396
|
destroyTooltip() {
|
|
397
397
|
se(this.tooltip);
|
|
@@ -16,8 +16,8 @@ import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
|
16
16
|
import { r as _, i as R, e as C } from "../../chunks/chart-object-literals.js";
|
|
17
17
|
import { e as B } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { t as N, aB as M } from "../../chunks/index.js";
|
|
19
|
-
import {
|
|
20
|
-
const
|
|
19
|
+
import { bb as H, bk as O } from "../../chunks/index2.js";
|
|
20
|
+
const j = w`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.pick-list-item-label{font-size:small}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
|
|
21
21
|
jsAppFlyout: "js-app-flyout",
|
|
22
22
|
name: "bar-chart-data-popover",
|
|
23
23
|
header: "header",
|
|
@@ -43,7 +43,7 @@ class q extends T {
|
|
|
43
43
|
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 };
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
|
-
this.styles =
|
|
46
|
+
this.styles = j;
|
|
47
47
|
}
|
|
48
48
|
async reposition() {
|
|
49
49
|
await this.popoverElement.value?.reposition();
|
|
@@ -71,7 +71,7 @@ class q extends T {
|
|
|
71
71
|
a.push(i);
|
|
72
72
|
for (let l = 0; l < t; l += 1) {
|
|
73
73
|
const n = this.layerFieldsInfo?.[l];
|
|
74
|
-
n &&
|
|
74
|
+
n && O(n) && a.push(this.buildPickListItem(n));
|
|
75
75
|
}
|
|
76
76
|
break;
|
|
77
77
|
}
|
|
@@ -4,7 +4,7 @@ import { isEqual as r } from "lodash-es";
|
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as t } from "lit";
|
|
6
6
|
import { C as i } from "../../chunks/interfaces.js";
|
|
7
|
-
import { ac as d,
|
|
7
|
+
import { ac as d, bw as c, I as m } from "../../chunks/index2.js";
|
|
8
8
|
import { p as f, h as g } from "../../chunks/index5.js";
|
|
9
9
|
const p = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class u extends n {
|
|
@@ -11,7 +11,7 @@ import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
|
11
11
|
import { g as l } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { d as S } from "../../chunks/index3.js";
|
|
14
|
-
import {
|
|
14
|
+
import { bk as k } from "../../chunks/index2.js";
|
|
15
15
|
import { aB as L } from "../../chunks/index.js";
|
|
16
16
|
const i = {
|
|
17
17
|
symbolPropertyPopover: "symbol-property-popover",
|
|
@@ -4,7 +4,7 @@ import { isEqual as a } from "lodash-es";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import { ac as c, I as m,
|
|
7
|
+
import { ac as c, I as m, bk as f, bb as g } from "../../chunks/index2.js";
|
|
8
8
|
import { h as p } from "../../chunks/index5.js";
|
|
9
9
|
const u = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class C extends n {
|
|
@@ -12,7 +12,7 @@ import { x as E } from "../../chunks/data.js";
|
|
|
12
12
|
import { r as c, s as f, m as h } from "../../chunks/chart-object-literals.js";
|
|
13
13
|
import { t as L, ag as P } from "../../chunks/index.js";
|
|
14
14
|
import { d as v, m as w } from "../../chunks/index3.js";
|
|
15
|
-
import { an as C,
|
|
15
|
+
import { an as C, bb as _ } from "../../chunks/index2.js";
|
|
16
16
|
import { r as N } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
const D = I`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
18
18
|
label: "label",
|
|
@@ -14,7 +14,7 @@ import { t as g, s as r } from "../../chunks/chart-object-literals.js";
|
|
|
14
14
|
import { e as x, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
15
|
import { t as E, ag as S } from "../../chunks/index.js";
|
|
16
16
|
import { d as z, m as N } from "../../chunks/index3.js";
|
|
17
|
-
import {
|
|
17
|
+
import { bh as w, bk as $, bb as K, bu as B } from "../../chunks/index2.js";
|
|
18
18
|
const _ = F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, c = {
|
|
19
19
|
jsAppFlyout: "js-app-flyout",
|
|
20
20
|
name: "line-chart-data-popover",
|
|
@@ -12,7 +12,7 @@ import { LitElement as P, createEvent as C, safeClassMap as o } from "@arcgis/lu
|
|
|
12
12
|
import { e as F, p as I } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { t as D } from "../../chunks/index.js";
|
|
14
14
|
import { d as x } from "../../chunks/index3.js";
|
|
15
|
-
import {
|
|
15
|
+
import { bh as S, bk as T } from "../../chunks/index2.js";
|
|
16
16
|
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
import { a as c } from "../../chunks/common.js";
|
|
18
18
|
const l = {
|
|
@@ -4,7 +4,7 @@ import { isEqual as l } from "lodash-es";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as c, html as i } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import { ac as h,
|
|
7
|
+
import { ac as h, bw as f, I as p, ak as g } from "../../chunks/index2.js";
|
|
8
8
|
import { h as m } from "../../chunks/index5.js";
|
|
9
9
|
const u = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class y extends n {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { S as
|
|
5
|
-
import { d as
|
|
6
|
-
import { i as
|
|
7
|
-
import { c as
|
|
8
|
-
import { u as
|
|
9
|
-
import { css as
|
|
2
|
+
import { c as F } from "../../chunks/runtime.js";
|
|
3
|
+
import { cloneDeep as L, isEmpty as A, toNumber as v } from "lodash-es";
|
|
4
|
+
import { S as n, g as d } from "../../chunks/interfaces.js";
|
|
5
|
+
import { d as k, a as m } from "../../chunks/store.js";
|
|
6
|
+
import { i as S, m as g, n as M, s as y, D as w, U as u } from "../../chunks/chart-ui-utils2.js";
|
|
7
|
+
import { c as z } from "../../chunks/type-guards.js";
|
|
8
|
+
import { u as C } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as _, html as r } from "lit";
|
|
10
10
|
import { createRef as h, ref as c } from "lit/directives/ref.js";
|
|
11
|
-
import { LitElement as
|
|
12
|
-
import { _ as
|
|
11
|
+
import { LitElement as V, createEvent as x, renderElement as D, safeClassMap as i, safeStyleMap as E } from "@arcgis/lumina";
|
|
12
|
+
import { _ as N, F as I, aB as R } from "../../chunks/index.js";
|
|
13
13
|
import { d as b } from "../../chunks/index3.js";
|
|
14
|
-
import { r as
|
|
15
|
-
import { i as
|
|
16
|
-
import { u as
|
|
14
|
+
import { r as P } from "../../chunks/popover-ui-utils.js";
|
|
15
|
+
import { i as T } from "../../chunks/rest-js-object-literals.js";
|
|
16
|
+
import { u as $ } from "../../chunks/chart-object-literals.js";
|
|
17
17
|
const l = {
|
|
18
18
|
label: "label",
|
|
19
19
|
r2: "r2",
|
|
@@ -24,22 +24,22 @@ const l = {
|
|
|
24
24
|
sectionContainer: "section-container",
|
|
25
25
|
multiInputSection: "multi-input-section",
|
|
26
26
|
dimText: "dim-text"
|
|
27
|
-
},
|
|
28
|
-
class
|
|
27
|
+
}, K = _`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}: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}`;
|
|
28
|
+
class X extends V {
|
|
29
29
|
constructor() {
|
|
30
|
-
super(...arguments), this._messages =
|
|
30
|
+
super(...arguments), this._messages = C(), this.commonStrings = C({ 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) => {
|
|
31
31
|
const t = e.detail;
|
|
32
|
-
this.model.linearTrendSymbol =
|
|
32
|
+
this.model.linearTrendSymbol = L(t);
|
|
33
33
|
}, this.setFixedSymbolRGBAColor = (e) => {
|
|
34
|
-
const t = e.detail, [s,
|
|
34
|
+
const t = e.detail, [s, a, o] = t, p = R * 255;
|
|
35
35
|
this.model.fixedMarkerSymbol = {
|
|
36
36
|
...this.model.fixedMarkerSymbol,
|
|
37
|
-
color: [s,
|
|
37
|
+
color: [s, a, o, p]
|
|
38
38
|
};
|
|
39
39
|
}, this.setXYField = (e) => {
|
|
40
40
|
try {
|
|
41
41
|
const t = e.detail;
|
|
42
|
-
|
|
42
|
+
k(m), this.contentKind === n.xAxisField ? this.model.xAxisField = t : this.model.yAxisField = t, this.removeScatterplotPopover();
|
|
43
43
|
} catch (t) {
|
|
44
44
|
throw t instanceof Error && this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
45
45
|
}
|
|
@@ -51,7 +51,7 @@ class K extends _ {
|
|
|
51
51
|
const t = e.detail;
|
|
52
52
|
t ? this.model.sizePolicy = {
|
|
53
53
|
...this.model.sizePolicy,
|
|
54
|
-
type:
|
|
54
|
+
type: $.SizePolicy,
|
|
55
55
|
field: t
|
|
56
56
|
} : this.model.sizePolicy = void 0, m.scatterplotData[m.selectedChartId] = {
|
|
57
57
|
...m.scatterplotData[m.selectedChartId],
|
|
@@ -61,17 +61,17 @@ class K extends _ {
|
|
|
61
61
|
throw t instanceof Error && this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
62
62
|
}
|
|
63
63
|
}, this.closeScatterplotPopover = (e) => {
|
|
64
|
-
this.scatterplotPopover === e?.target && (this.contentKind =
|
|
64
|
+
this.scatterplotPopover === e?.target && (this.contentKind = n.none, this.removeScatterplotPopover());
|
|
65
65
|
}, this.onModelConfigChange = () => {
|
|
66
66
|
this.requestUpdate();
|
|
67
67
|
const { minSize: e, maxSize: t } = this.model.sizePolicy ?? {};
|
|
68
|
-
this.minSizeInputElement.value !== void 0 && e !== void 0 && (this.minSizeInputElement.value.value = `${e}`,
|
|
68
|
+
this.minSizeInputElement.value !== void 0 && e !== void 0 && (this.minSizeInputElement.value.value = `${e}`, S(this.minSizeInputElement.value.value, this.minSizeInputElement.value.min, this.minSizeInputElement.value.max) ? g({
|
|
69
69
|
inputElement: this.minSizeInputElement.value,
|
|
70
70
|
status: u.IDLE
|
|
71
71
|
}) : g({
|
|
72
72
|
inputElement: this.minSizeInputElement.value,
|
|
73
73
|
status: u.INVALID
|
|
74
|
-
})), this.maxSizeInputElement.value !== void 0 && t !== void 0 && (this.maxSizeInputElement.value.value = `${t}`,
|
|
74
|
+
})), this.maxSizeInputElement.value !== void 0 && t !== void 0 && (this.maxSizeInputElement.value.value = `${t}`, S(this.maxSizeInputElement.value.value, this.maxSizeInputElement.value.min, this.maxSizeInputElement.value.max) ? g({
|
|
75
75
|
inputElement: this.maxSizeInputElement.value,
|
|
76
76
|
status: u.IDLE
|
|
77
77
|
}) : g({
|
|
@@ -81,16 +81,16 @@ class K extends _ {
|
|
|
81
81
|
}, this.segmentedControlRef = (e) => {
|
|
82
82
|
e && (e.focus = () => {
|
|
83
83
|
}, this.items.push(e));
|
|
84
|
-
}, this.layerFieldsInfo = [], this.isTableLayer = !1, this.arcgisChartsConfigDataChangeError =
|
|
84
|
+
}, this.layerFieldsInfo = [], this.isTableLayer = !1, this.arcgisChartsConfigDataChangeError = x(), this.arcgisChartsConfigScatterplotPopoverChange = x();
|
|
85
85
|
}
|
|
86
86
|
static {
|
|
87
87
|
this.properties = { selectedElement: 16, selectedSizeType: 16, messageOverrides: 0, model: 0, r2: 9, layerFieldsInfo: 0, isTableLayer: 5 };
|
|
88
88
|
}
|
|
89
89
|
static {
|
|
90
|
-
this.styles =
|
|
90
|
+
this.styles = K;
|
|
91
91
|
}
|
|
92
92
|
load() {
|
|
93
|
-
this.modelChange(this.model), this.onModelConfigChange(), this.defaultR2Label =
|
|
93
|
+
this.modelChange(this.model), this.onModelConfigChange(), this.defaultR2Label = N(this.commonStrings);
|
|
94
94
|
}
|
|
95
95
|
willUpdate(e) {
|
|
96
96
|
e.has("model") && (this.updateSymbolSizeInfoInAppState(), this.modelChange(this.model, e.get("model"))), e.has("selectedElement") && this.openPopover();
|
|
@@ -113,36 +113,36 @@ class K extends _ {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
openPopover() {
|
|
116
|
-
(typeof this.selectedElement == "string" || !
|
|
116
|
+
(typeof this.selectedElement == "string" || !A(this.selectedElement)) && this.setupPopover();
|
|
117
117
|
}
|
|
118
118
|
modelChange(e, t) {
|
|
119
119
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
120
120
|
}
|
|
121
121
|
setShowTrendLine(e) {
|
|
122
122
|
const t = e.target.checked;
|
|
123
|
-
this.model.showLinearTrend = t, !t && this.contentKind ===
|
|
123
|
+
this.model.showLinearTrend = t, !t && this.contentKind === n.trendLine && this.closeScatterplotPopover(e);
|
|
124
124
|
}
|
|
125
125
|
symbolSizeChange(e) {
|
|
126
126
|
const t = e.target, { value: s } = t;
|
|
127
|
-
if (s !== void 0 &&
|
|
128
|
-
const
|
|
127
|
+
if (s !== void 0 && S(s, t.min, t.max)) {
|
|
128
|
+
const a = Number.parseInt(s), o = this.model.sizePolicy, p = this.model.fixedMarkerSymbol;
|
|
129
129
|
switch (t.name) {
|
|
130
130
|
case "fixed-symbol-size":
|
|
131
131
|
p !== void 0 && (this.model.fixedMarkerSymbol = {
|
|
132
132
|
...p,
|
|
133
|
-
size:
|
|
133
|
+
size: a
|
|
134
134
|
});
|
|
135
135
|
break;
|
|
136
136
|
case "proportional-symbol-min-size":
|
|
137
|
-
|
|
138
|
-
...
|
|
139
|
-
minSize:
|
|
137
|
+
o !== void 0 && (this.model.sizePolicy = {
|
|
138
|
+
...o,
|
|
139
|
+
minSize: a
|
|
140
140
|
});
|
|
141
141
|
break;
|
|
142
142
|
case "proportional-symbol-max-size":
|
|
143
|
-
|
|
144
|
-
...
|
|
145
|
-
maxSize:
|
|
143
|
+
o !== void 0 && (this.model.sizePolicy = {
|
|
144
|
+
...o,
|
|
145
|
+
maxSize: a
|
|
146
146
|
});
|
|
147
147
|
break;
|
|
148
148
|
}
|
|
@@ -157,12 +157,12 @@ class K extends _ {
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
symbolSizeRangeSliderInput(e) {
|
|
160
|
-
const t = e.target, { minValue: s, maxValue:
|
|
161
|
-
|
|
162
|
-
...
|
|
160
|
+
const t = e.target, { minValue: s, maxValue: a } = t, o = this.model.sizePolicy;
|
|
161
|
+
o !== void 0 && (this.model.sizePolicy = {
|
|
162
|
+
...o,
|
|
163
163
|
minSize: s,
|
|
164
|
-
maxSize:
|
|
165
|
-
}, this.minSizeInputElement.value !== void 0 && (this.minSizeInputElement.value.value = `${s}`), this.maxSizeInputElement.value !== void 0 && (this.maxSizeInputElement.value.value = `${
|
|
164
|
+
maxSize: a
|
|
165
|
+
}, this.minSizeInputElement.value !== void 0 && (this.minSizeInputElement.value.value = `${s}`), this.maxSizeInputElement.value !== void 0 && (this.maxSizeInputElement.value.value = `${a}`));
|
|
166
166
|
}
|
|
167
167
|
changeColorTypeToggle() {
|
|
168
168
|
const e = this.colorModeElement.value?.selectedItem?.value;
|
|
@@ -174,62 +174,62 @@ class K extends _ {
|
|
|
174
174
|
const t = m.scatterplotData[m.selectedChartId]?.sizePolicyField;
|
|
175
175
|
e === d.Proportional && t !== void 0 ? this.model.sizePolicy = {
|
|
176
176
|
...this.model.sizePolicy,
|
|
177
|
-
type:
|
|
177
|
+
type: $.SizePolicy,
|
|
178
178
|
field: t
|
|
179
179
|
} : e === d.Fixed && (this.model.sizePolicy = {
|
|
180
180
|
...this.model.sizePolicy,
|
|
181
|
-
type:
|
|
181
|
+
type: $.SizePolicy,
|
|
182
182
|
field: ""
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
changeElementStyle(e) {
|
|
186
186
|
e.stopImmediatePropagation();
|
|
187
187
|
let t = e.target;
|
|
188
|
-
t.localName === "calcite-icon" && (t = t.parentElement), t.value === "selectColor" ? (this.contentKind =
|
|
188
|
+
t.localName === "calcite-icon" && (t = t.parentElement), t.value === "selectColor" ? (this.contentKind = n.symbol, this.selectedElement = this.model.fixedMarkerSymbol?.color) : t.value === "selectTrendLine" && (this.contentKind = n.trendLine, this.selectedElement = this.model.linearTrendSymbol);
|
|
189
189
|
}
|
|
190
190
|
onXVariableSelectChange(e) {
|
|
191
|
-
e.stopImmediatePropagation(), this.contentKind =
|
|
191
|
+
e.stopImmediatePropagation(), this.contentKind = n.xAxisField, this.selectedElement = this.model.xAxisField;
|
|
192
192
|
}
|
|
193
193
|
onYVariableSelectChange(e) {
|
|
194
|
-
e.stopImmediatePropagation(), this.contentKind =
|
|
194
|
+
e.stopImmediatePropagation(), this.contentKind = n.yAxisField, this.selectedElement = this.model.yAxisField;
|
|
195
195
|
}
|
|
196
196
|
onAdditionalTooltipFieldSelectChange(e) {
|
|
197
|
-
e.stopImmediatePropagation(), this.contentKind =
|
|
197
|
+
e.stopImmediatePropagation(), this.contentKind = n.additionalTooltipFields, this.selectedElement = this.model.additionalTooltipField?.[0] ?? "";
|
|
198
198
|
}
|
|
199
199
|
onSizeVariableSelectChange(e) {
|
|
200
|
-
e.stopImmediatePropagation(), this.contentKind =
|
|
200
|
+
e.stopImmediatePropagation(), this.contentKind = n.sizeVariable, this.selectedElement = this.model.sizePolicy?.field ?? "";
|
|
201
201
|
}
|
|
202
202
|
setupPopover() {
|
|
203
|
-
this.scatterplotPopover =
|
|
204
|
-
const
|
|
205
|
-
let
|
|
203
|
+
this.scatterplotPopover = P(this.scatterplotPopover);
|
|
204
|
+
const t = z(this.model.layer) ? this.layerFieldsInfo.filter((f) => f.type !== "esriFieldTypeOID") : [...this.layerFieldsInfo];
|
|
205
|
+
let s, a, o, p = "trailing";
|
|
206
206
|
switch (this.contentKind) {
|
|
207
|
-
case
|
|
208
|
-
|
|
207
|
+
case n.xAxisField:
|
|
208
|
+
s = this.xAxisElement.value, o = this.model.xAxisField, a = this._messages.selectAField;
|
|
209
209
|
break;
|
|
210
|
-
case
|
|
211
|
-
|
|
210
|
+
case n.yAxisField:
|
|
211
|
+
s = this.yAxisElement.value, o = this.model.yAxisField, a = this._messages.selectAField;
|
|
212
212
|
break;
|
|
213
|
-
case
|
|
214
|
-
|
|
213
|
+
case n.sizeVariable:
|
|
214
|
+
s = this.sizeVariableElement.value, o = this.model.sizePolicy?.field ?? "", a = this._messages.selectAField;
|
|
215
215
|
break;
|
|
216
|
-
case
|
|
217
|
-
|
|
216
|
+
case n.additionalTooltipFields:
|
|
217
|
+
s = this.tooltipFieldElement.value, o = this.model.additionalTooltipField?.[0] ?? "", a = this._messages.selectAField;
|
|
218
218
|
break;
|
|
219
|
-
case
|
|
220
|
-
case
|
|
221
|
-
const
|
|
222
|
-
o = this.selectedElement,
|
|
219
|
+
case n.symbol:
|
|
220
|
+
case n.trendLine: {
|
|
221
|
+
const f = this.selectedElement;
|
|
222
|
+
o = this.selectedElement, p = "leading", Array.isArray(this.selectedElement) ? s = this.selectColorElement.value : f?.type === T.SLS && (s = this.selectTrendLineElement.value);
|
|
223
223
|
break;
|
|
224
224
|
}
|
|
225
225
|
default:
|
|
226
|
-
this.contentKind =
|
|
226
|
+
this.contentKind = n.none, this.removeScatterplotPopover();
|
|
227
227
|
break;
|
|
228
228
|
}
|
|
229
|
-
this.scatterplotPopover =
|
|
229
|
+
this.scatterplotPopover = D(r`<arcgis-charts-config-scatter-plot-popover .headingTitle=${a} .referenceElement=${s} open .contentKind=${this.contentKind} .layerFieldsInfo=${t} .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);
|
|
230
230
|
}
|
|
231
231
|
removeScatterplotPopover() {
|
|
232
|
-
this.scatterplotPopover !== null && (this.scatterplotPopover =
|
|
232
|
+
this.scatterplotPopover !== null && (this.scatterplotPopover = P(this.scatterplotPopover)), this.selectedElement = void 0;
|
|
233
233
|
}
|
|
234
234
|
getCurrentSymbolSizeType() {
|
|
235
235
|
const e = this.model.sizePolicy;
|
|
@@ -245,8 +245,8 @@ class K extends _ {
|
|
|
245
245
|
return r`<arcgis-charts-config-field-select .disabled=${this.model.dataStore.aggregated} .label=${b(this.layerFieldsInfo, this.model.additionalTooltipField?.[0] ?? "")} @click=${this.onAdditionalTooltipFieldSelectChange} ${c(this.tooltipFieldElement)}></arcgis-charts-config-field-select>`;
|
|
246
246
|
}
|
|
247
247
|
renderStatistics() {
|
|
248
|
-
const [e, t, s,
|
|
249
|
-
return r`<div class=${i(l.sectionContainer)}><calcite-label class=${i(l.label)} layout=inline-space-between>${this._messages.showLinearTrend}<calcite-switch class=${i(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 ===
|
|
248
|
+
const [e, t, s, a] = [...this.model.linearTrendSymbol?.color ?? I(0)];
|
|
249
|
+
return r`<div class=${i(l.sectionContainer)}><calcite-label class=${i(l.label)} layout=inline-space-between>${this._messages.showLinearTrend}<calcite-switch class=${i(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 === T.SLS} @click=${this.changeElementStyle} ${c(this.selectTrendLineElement)}><calcite-icon slot=content-end icon=line-solid style=${E({ color: `rgba(${e},${t},${s},${a / 255})` })} class=${i(l.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list><div class=${i(l.r2)} .hidden=${!this.model.showLinearTrend}>${`${this._messages.r2}: ${Number.isNaN(this.r2) ? this.defaultR2Label : M(this.r2, w)}`}</div></div>`;
|
|
250
250
|
}
|
|
251
251
|
renderFixedSymbol() {
|
|
252
252
|
return r`<calcite-label class=${i(l.label)}>${this._messages.size}<calcite-input type=number name=fixed-symbol-size class=${i(l.numberInput)} min=1 max=100 step=1 .value=${y(this.model.fixedMarkerSymbol?.size)} @calciteInputInput=${this.symbolSizeChange}></calcite-input></calcite-label>`;
|
|
@@ -261,20 +261,20 @@ class K extends _ {
|
|
|
261
261
|
return r`<calcite-input type=number name=proportional-symbol-max-size class=${i(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>`;
|
|
262
262
|
}
|
|
263
263
|
renderProportionalSymbol() {
|
|
264
|
-
return r`<div class=${i(l.sectionContainer)}><calcite-label class=${i(l.label)}>${this._messages.numberRequired}${this.renderSizeVariable()}</calcite-label><div class=${i(l.multiInputSection)}><calcite-label class=${i(l.label)}>${this._messages.minSize}${this.renderMinSizeInput()}</calcite-label><calcite-label class=${i(l.label)}>${this._messages.maxSize}${this.renderMaxSizeInput()}</calcite-label></div><calcite-label><calcite-slider min=1 max=100 .minValue=${
|
|
264
|
+
return r`<div class=${i(l.sectionContainer)}><calcite-label class=${i(l.label)}>${this._messages.numberRequired}${this.renderSizeVariable()}</calcite-label><div class=${i(l.multiInputSection)}><calcite-label class=${i(l.label)}>${this._messages.minSize}${this.renderMinSizeInput()}</calcite-label><calcite-label class=${i(l.label)}>${this._messages.maxSize}${this.renderMaxSizeInput()}</calcite-label></div><calcite-label><calcite-slider min=1 max=100 .minValue=${v(y(this.model.sizePolicy?.minSize))} .maxValue=${v(y(this.model.sizePolicy?.maxSize))} step=1 @calciteSliderInput=${this.symbolSizeRangeSliderInput}></calcite-slider></calcite-label></div>`;
|
|
265
265
|
}
|
|
266
266
|
renderSymbolSizeType() {
|
|
267
267
|
return r`<calcite-label class=${i(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>`;
|
|
268
268
|
}
|
|
269
269
|
renderSymbol() {
|
|
270
|
-
const e =
|
|
271
|
-
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 && !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=${
|
|
270
|
+
const e = z(this.model.layer), [t, s, a, o] = [...this.model.fixedMarkerSymbol?.color ?? I(0)];
|
|
271
|
+
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 && !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=${E({ color: `rgba(${t},${s},${a},${o / 255})` })} class=${i(l.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list></div>`;
|
|
272
272
|
}
|
|
273
273
|
render() {
|
|
274
274
|
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()}`;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
F("arcgis-charts-config-scatter-plot-data", X);
|
|
278
278
|
export {
|
|
279
|
-
|
|
279
|
+
X as ArcgisChartsConfigScatterplotData
|
|
280
280
|
};
|
|
@@ -10,7 +10,7 @@ import { LitElement as S, createEvent as l, safeClassMap as a } from "@arcgis/lu
|
|
|
10
10
|
import { i as m } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
import { e as $ } from "../../chunks/popover-ui-utils.js";
|
|
12
12
|
import { d as b } from "../../chunks/index3.js";
|
|
13
|
-
import {
|
|
13
|
+
import { bk as P } from "../../chunks/index2.js";
|
|
14
14
|
const r = {
|
|
15
15
|
jsAppFlyout: "js-app-flyout",
|
|
16
16
|
scatterplotPopover: "scatter-plot-popover",
|