@arcgis/charts-components 6.0.0-next.5 → 6.0.0-next.7
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/{LPLMRI3E.js → 22TQSTSU.js} +1 -1
- package/dist/cdn/2IZ27E73.js +2 -0
- package/dist/cdn/36YS6SWU.js +2 -0
- package/dist/cdn/3JXXDTM7.js +2 -0
- package/dist/cdn/3RUCVEOG.js +2 -0
- package/dist/cdn/3UNCSMIH.js +4 -0
- package/dist/cdn/3XWKTCG2.js +2 -0
- package/dist/cdn/{V5Z75IQI.js → 4DQDAM44.js} +2 -2
- package/dist/cdn/4F5HIOT7.js +2 -0
- package/dist/cdn/4W5FC5UJ.js +2 -0
- package/dist/cdn/6Y63J2D4.js +2 -0
- package/dist/cdn/7A6ZC3BY.js +2 -0
- package/dist/cdn/7B26LXAO.js +2 -0
- package/dist/cdn/7BMO4QQG.js +2 -0
- package/dist/cdn/7SKWCJOI.js +2 -0
- package/dist/cdn/ABHDKVCT.js +2 -0
- package/dist/cdn/AHDEGHQC.js +2 -0
- package/dist/cdn/{QQFMQAJ3.js → AS2IRRXE.js} +1 -1
- package/dist/cdn/B73SVOUA.js +2 -0
- package/dist/cdn/{PQ3XCNCP.js → BILTOAXM.js} +1 -1
- package/dist/cdn/CX5HMAVB.js +2 -0
- package/dist/cdn/{732AMNPK.js → DIOXIMBZ.js} +1 -1
- package/dist/cdn/DIVS65HK.js +2 -0
- package/dist/cdn/EJE4D6K4.js +2 -0
- package/dist/cdn/EMJV6FFC.js +2 -0
- package/dist/cdn/EOAW5SJZ.js +2 -0
- package/dist/cdn/EU5JSGVI.js +2 -0
- package/dist/cdn/EVKJUQYC.js +2 -0
- package/dist/cdn/GIUYJ4MX.js +2 -0
- package/dist/cdn/{6RGTAMGU.js → H7EH6MJN.js} +1 -1
- package/dist/cdn/HKD2DTMQ.js +2 -0
- package/dist/cdn/HWJULHS4.js +2 -0
- package/dist/cdn/{HMZRDWG2.js → I3VAEJNQ.js} +24 -24
- package/dist/cdn/IMHL6OT4.js +2 -0
- package/dist/cdn/IMJ4ZP54.js +2 -0
- package/dist/cdn/IPRY6SMT.js +2 -0
- package/dist/cdn/IUWQ2XAM.js +2 -0
- package/dist/cdn/IZ6QMJ5N.js +2 -0
- package/dist/cdn/JGKOHDSF.js +2 -0
- package/dist/cdn/JQH63THU.js +2 -0
- package/dist/cdn/{563H5HEV.js → JYLCRNMW.js} +1 -1
- package/dist/cdn/K43QNXLK.js +2 -0
- package/dist/cdn/KE6MY5WL.js +2 -0
- package/dist/cdn/KHC45XNZ.js +2 -0
- package/dist/cdn/KXW4QAYP.js +2 -0
- package/dist/cdn/{GDJDA5MG.js → LNJSZCPC.js} +1 -1
- package/dist/cdn/{PIGINE4M.js → M7MSRLEE.js} +1 -1
- package/dist/cdn/{S2BGEXZV.js → MGKEPCZT.js} +1 -1
- package/dist/cdn/MGX5TD4I.js +2 -0
- package/dist/cdn/MIRDAGB6.js +2 -0
- package/dist/cdn/N337OTT2.js +2 -0
- package/dist/cdn/NCFIBVSV.js +2 -0
- package/dist/cdn/NNKLFRZL.js +2 -0
- package/dist/cdn/NSF637D3.js +2 -0
- package/dist/cdn/{VSKK65CP.js → NUTUTE7W.js} +1 -1
- package/dist/cdn/O3FVBAXP.js +2 -0
- package/dist/cdn/O53REUWO.js +2 -0
- package/dist/cdn/OPSWLJ6M.js +2 -0
- package/dist/cdn/OTIAHPXY.js +2 -0
- package/dist/cdn/PYK3S2WM.js +2 -0
- package/dist/cdn/PYMEPWV2.js +2 -0
- package/dist/cdn/QE4HAH4J.js +2 -0
- package/dist/cdn/SFX2QCRS.js +2 -0
- package/dist/cdn/SI7W275P.js +2 -0
- package/dist/cdn/SVF2UENW.js +4 -0
- package/dist/cdn/SY4PA5GZ.js +2 -0
- package/dist/cdn/TCUFKLTS.js +2 -0
- package/dist/cdn/TMVELVZ4.js +2 -0
- package/dist/cdn/TVAJJTLH.js +2 -0
- package/dist/cdn/TVBULK7L.js +2 -0
- package/dist/cdn/TYVYXA4I.js +2 -0
- package/dist/cdn/TZJX3ZDX.js +2 -0
- package/dist/cdn/{XPCXTKEY.js → U6AJIZZU.js} +1 -1
- package/dist/cdn/U75UR6WF.js +2 -0
- package/dist/cdn/{CUMXC4O4.js → VJBVJ2GM.js} +1 -1
- package/dist/cdn/VKLX5GBO.js +2 -0
- package/dist/cdn/{INYMF2BQ.js → VKMVMHTT.js} +1 -1
- package/dist/cdn/VL3NDPH3.js +2 -0
- package/dist/cdn/VUNCUXZR.js +2 -0
- package/dist/cdn/VVB5JOCB.js +2 -0
- package/dist/cdn/WAW5LS5U.js +2 -0
- package/dist/cdn/XWGJFR6Q.js +2 -0
- package/dist/cdn/YBFPKUEE.js +2 -0
- package/dist/cdn/YBPCOPML.js +2 -0
- package/dist/cdn/YGYZNUDM.js +2 -0
- package/dist/cdn/YLJUSUEV.js +2 -0
- package/dist/cdn/Z3UCAFDO.js +2 -0
- package/dist/cdn/ZHKGWF55.js +2 -0
- package/dist/cdn/{CLCHZMZ5.js → ZXPGBKDC.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +18 -20
- package/dist/chunks/axis-lines-symbol.js +6 -6
- package/dist/chunks/bar-chart-model.js +5 -7
- package/dist/chunks/box-plot-data.js +74 -76
- package/dist/chunks/box-plot-model.js +40 -41
- package/dist/chunks/chart-model.js +31 -33
- package/dist/chunks/chart-ui-utils.js +45 -47
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +14 -14
- package/dist/chunks/combo-bar-line-chart-model.js +15 -16
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +1 -1
- package/dist/chunks/data.js +52 -54
- package/dist/chunks/gauge-model.js +65 -65
- package/dist/chunks/generate-x-axis-title.js +19 -19
- package/dist/chunks/heat-chart-model.js +13 -14
- package/dist/chunks/histogram-data.js +47 -48
- package/dist/chunks/histogram-model.js +6 -6
- package/dist/chunks/index.js +4959 -3855
- package/dist/chunks/index2.js +1165 -871
- package/dist/chunks/index3.js +11040 -1173
- package/dist/chunks/index4.js +65 -11086
- package/dist/chunks/line-chart-model.js +18 -19
- package/dist/chunks/model-setter.js +6 -6
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +25 -25
- package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
- package/dist/chunks/pie-chart-data.js +25 -27
- package/dist/chunks/pie-chart-model.js +21 -23
- package/dist/chunks/radar-chart-model.js +6 -7
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +2 -2
- package/dist/chunks/scatterplot-model.js +13 -15
- package/dist/chunks/serial-chart-data.js +226 -229
- package/dist/chunks/serial-chart-model.js +66 -66
- package/dist/chunks/series-length.js +4 -4
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +109 -55
- package/dist/chunks/utils.js +146 -212
- package/dist/chunks/web-component-utils.js +55 -56
- package/dist/chunks/x-bounds.js +24 -25
- package/dist/components/arcgis-chart/customElement.d.ts +11 -4
- package/dist/components/arcgis-chart/customElement.js +7591 -7485
- package/dist/components/arcgis-charts-action-bar/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +24 -21
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +189 -184
- package/dist/components/arcgis-charts-config-font-style/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-format/customElement.js +37 -38
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +14 -15
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +32 -33
- package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -3
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +2 -3
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +9 -10
- package/dist/components/arcgis-charts-config-pie-chart-slices/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 +8 -9
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +8 -10
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +21 -25
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +15 -16
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -4
- 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.js +396 -398
- package/dist/loader.js +1 -1
- package/dist/utils/chart-config/converter/index.js +73 -75
- package/dist/utils/misc/index.d.ts +4 -4
- package/package.json +4 -4
- package/dist/cdn/23NH4HLE.js +0 -2
- package/dist/cdn/2DRKIHTI.js +0 -2
- package/dist/cdn/2E3WHSEW.js +0 -2
- package/dist/cdn/2RG5JCBW.js +0 -3
- package/dist/cdn/2X2QOEKX.js +0 -2
- package/dist/cdn/37WXQO5B.js +0 -2
- package/dist/cdn/3INTJJ4X.js +0 -2
- package/dist/cdn/3RJNZA24.js +0 -2
- package/dist/cdn/4CU5D5WQ.js +0 -2
- package/dist/cdn/4WQUPC2P.js +0 -2
- package/dist/cdn/5DAVFUDX.js +0 -2
- package/dist/cdn/5VCTFSTZ.js +0 -2
- package/dist/cdn/5XGX5QH2.js +0 -2
- package/dist/cdn/6XH6ZRHO.js +0 -2
- package/dist/cdn/7WD2VKG4.js +0 -2
- package/dist/cdn/7YN565O4.js +0 -2
- package/dist/cdn/A2BFOCSN.js +0 -2
- package/dist/cdn/A5TI5TEO.js +0 -2
- package/dist/cdn/AHB4IS7P.js +0 -2
- package/dist/cdn/B6ADEFC7.js +0 -2
- package/dist/cdn/B6APNE72.js +0 -3
- package/dist/cdn/BDIRQUQE.js +0 -2
- package/dist/cdn/BWZA3447.js +0 -2
- package/dist/cdn/BZTSUXUT.js +0 -2
- package/dist/cdn/CFACTMRG.js +0 -2
- package/dist/cdn/D2LNPCIA.js +0 -2
- package/dist/cdn/D6WQTOUC.js +0 -2
- package/dist/cdn/DTSX7SEI.js +0 -2
- package/dist/cdn/EPFEFHM2.js +0 -2
- package/dist/cdn/EW2P4QSN.js +0 -2
- package/dist/cdn/GE7CLC6K.js +0 -4
- package/dist/cdn/GEPIPU4G.js +0 -2
- package/dist/cdn/GXYGXB4U.js +0 -2
- package/dist/cdn/IEOIKLLK.js +0 -2
- package/dist/cdn/ISSUAEJS.js +0 -2
- package/dist/cdn/KJNBURYA.js +0 -2
- package/dist/cdn/L3AKSDIB.js +0 -2
- package/dist/cdn/L5MTHGFZ.js +0 -2
- package/dist/cdn/LHLPK6TU.js +0 -2
- package/dist/cdn/LXFY54NF.js +0 -2
- package/dist/cdn/MJUCIYQN.js +0 -2
- package/dist/cdn/NGBBNBA7.js +0 -2
- package/dist/cdn/NIZC75X3.js +0 -2
- package/dist/cdn/OBKDR3MU.js +0 -2
- package/dist/cdn/OQKL344Q.js +0 -2
- package/dist/cdn/PT66VVXN.js +0 -2
- package/dist/cdn/QOENPUSD.js +0 -2
- package/dist/cdn/QPVBVDRP.js +0 -2
- package/dist/cdn/RGMPFNUN.js +0 -2
- package/dist/cdn/RGSJ3JFI.js +0 -2
- package/dist/cdn/RVHNFMTN.js +0 -2
- package/dist/cdn/RVQPEB4W.js +0 -2
- package/dist/cdn/RXTO6RE2.js +0 -2
- package/dist/cdn/SCEFJRON.js +0 -2
- package/dist/cdn/SEILP6QP.js +0 -2
- package/dist/cdn/SKI5Z6UH.js +0 -2
- package/dist/cdn/SSEWUPML.js +0 -2
- package/dist/cdn/TCE6PLHN.js +0 -2
- package/dist/cdn/TOCU6UKM.js +0 -2
- package/dist/cdn/TSASF4ZC.js +0 -2
- package/dist/cdn/UDAJILEU.js +0 -2
- package/dist/cdn/UZOYADSB.js +0 -2
- package/dist/cdn/W2PTHYOT.js +0 -2
- package/dist/cdn/W53DMMGZ.js +0 -2
- package/dist/cdn/WAQJ7V62.js +0 -2
- package/dist/cdn/WEPXOYBS.js +0 -2
- package/dist/cdn/WLPUBXN7.js +0 -2
- package/dist/cdn/Y2S7EWZR.js +0 -2
- package/dist/cdn/YGLBPPXP.js +0 -2
- package/dist/cdn/YWUNLBCQ.js +0 -2
- package/dist/cdn/YYTAWATK.js +0 -2
- package/dist/cdn/ZDQWMMOA.js +0 -2
- package/dist/cdn/ZFHMGE36.js +0 -2
- package/dist/cdn/ZGNJFT7B.js +0 -2
- package/dist/cdn/ZMVIOIBB.js +0 -2
- package/dist/cdn/ZTHSDPEH.js +0 -2
- package/dist/chunks/index5.js +0 -69
- package/dist/chunks/type-guards2.js +0 -113
- package/dist/chunks/utils2.js +0 -63
- /package/dist/cdn/{OTV3YYDU.js → 7JMZPDM5.js} +0 -0
- /package/dist/cdn/{O6GVF76X.js → KRRYFLG4.js} +0 -0
- /package/dist/cdn/{27C6PCQ2.js → XXO5K6N4.js} +0 -0
|
@@ -4,8 +4,7 @@ import { isEqual as r } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as i } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as d,
|
|
8
|
-
import { i as u } from "../../chunks/type-guards.js";
|
|
7
|
+
import { i as d, c9 as c, ca as m, bA as f, l as g, cH as p, v as u } from "../../chunks/index.js";
|
|
9
8
|
const C = 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
9
|
class y extends n {
|
|
11
10
|
constructor() {
|
|
@@ -48,7 +47,7 @@ class y extends n {
|
|
|
48
47
|
if (s) {
|
|
49
48
|
await f(s);
|
|
50
49
|
const t = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
|
|
51
|
-
this.layerFieldsInfo =
|
|
50
|
+
this.layerFieldsInfo = g(s) ? p({ layer: s, popupTemplateFieldInfosEnabled: t, chartType: a?.type }) : u(s, t);
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
render() {
|
|
@@ -9,9 +9,8 @@ import { u as B } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as N, html as c } from "lit";
|
|
10
10
|
import { createRef as u, ref as v } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as F, createEvent as D, renderElement as _, safeStyleMap as O, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
-
import { S as H, E as K } from "../../chunks/
|
|
13
|
-
import {
|
|
14
|
-
import { i as U } from "../../chunks/type-guards.js";
|
|
12
|
+
import { S as H, E as K } from "../../chunks/index2.js";
|
|
13
|
+
import { B as A, l as U } from "../../chunks/index.js";
|
|
15
14
|
import { r as z } from "../../chunks/popover-ui-utils.js";
|
|
16
15
|
import { b as R } from "../../chunks/rest-js-object-literals.js";
|
|
17
16
|
import { s as b } from "../../chunks/chart-object-literals.js";
|
|
@@ -10,9 +10,8 @@ import { LitElement as b, createEvent as p, safeClassMap as o } from "@arcgis/lu
|
|
|
10
10
|
import { b as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
import { s } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { r as T } from "../../chunks/index3.js";
|
|
13
|
+
import { b3 as S, B as k } from "../../chunks/index.js";
|
|
14
|
+
import { r as T } from "../../chunks/index2.js";
|
|
16
15
|
const l = {
|
|
17
16
|
symbolPropertyPopover: "symbol-property-popover",
|
|
18
17
|
colorPicker: "color-picker",
|
|
@@ -44,7 +43,7 @@ class x extends b {
|
|
|
44
43
|
if (e === i.numericFields)
|
|
45
44
|
for (let r = 0; r < this.layerFieldsInfo?.length; r += 1) {
|
|
46
45
|
const a = this.layerFieldsInfo[r];
|
|
47
|
-
|
|
46
|
+
S(a) && n.push(c(a.name, t`<calcite-list-item .label=${k(this.layerFieldsInfo, a.name)} .value=${a.name} .selected=${this.selectedNumericField === a.name}></calcite-list-item>`));
|
|
48
47
|
}
|
|
49
48
|
else {
|
|
50
49
|
const r = [
|
|
@@ -4,7 +4,7 @@ import { isEqual as a } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { c9 as c, ca as m, v as f, b3 as g, b4 as p } from "../../chunks/index.js";
|
|
8
8
|
const u = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class C extends n {
|
|
10
10
|
constructor() {
|
|
@@ -10,9 +10,8 @@ import { d as p, a as c, r as C, b as T } from "../../chunks/store.js";
|
|
|
10
10
|
import { isEqual as S } from "es-toolkit/compat";
|
|
11
11
|
import { x as E } from "../../chunks/data.js";
|
|
12
12
|
import { d, e as y, h as g } from "../../chunks/chart-object-literals.js";
|
|
13
|
-
import { J as L, K as P } from "../../chunks/
|
|
14
|
-
import { b,
|
|
15
|
-
import { t as $, aR as _ } from "../../chunks/index.js";
|
|
13
|
+
import { J as L, K as P } from "../../chunks/index2.js";
|
|
14
|
+
import { u as $, B as b, b4 as w, c7 as _ } from "../../chunks/index.js";
|
|
16
15
|
import { r as N } from "../../chunks/popover-ui-utils.js";
|
|
17
16
|
const D = k`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
18
17
|
label: "label",
|
|
@@ -136,7 +135,7 @@ class U extends I {
|
|
|
136
135
|
}
|
|
137
136
|
shouldShowTimeBinning() {
|
|
138
137
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !== d.NoAggregation;
|
|
139
|
-
return e !== void 0 &&
|
|
138
|
+
return e !== void 0 && w(e) && t;
|
|
140
139
|
}
|
|
141
140
|
setupPopover(e) {
|
|
142
141
|
e.stopImmediatePropagation(), this.removeLineChartDataPopover();
|
|
@@ -188,7 +187,7 @@ class U extends I {
|
|
|
188
187
|
return r`<calcite-list label class=${s(n.fieldList)} ${h(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
189
188
|
}
|
|
190
189
|
renderInterval() {
|
|
191
|
-
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i =
|
|
190
|
+
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = _(this.model.temporalBinningUnit ?? y.Second, this._messages) ?? "", a = T(c), o = {
|
|
192
191
|
size: this.model.temporalBinningSize,
|
|
193
192
|
unit: this.model.temporalBinningUnit
|
|
194
193
|
}, v = S(o, a);
|
|
@@ -12,9 +12,8 @@ import { c as $, b as F, e as d, f as I, s as T } from "../../chunks/chart-ui-ut
|
|
|
12
12
|
import { d as x } from "../../chunks/rest-js-object-literals.js";
|
|
13
13
|
import { b as g, e as c } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { e as A, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
|
-
import { J as E, K as S } from "../../chunks/
|
|
16
|
-
import {
|
|
17
|
-
import { bL as N, aQ as L, aR as K, a_ as B } from "../../chunks/index.js";
|
|
15
|
+
import { J as E, K as S } from "../../chunks/index2.js";
|
|
16
|
+
import { B as z, c8 as w, b3 as L, b4 as N, bi as K, c7 as B } from "../../chunks/index.js";
|
|
18
17
|
const _ = P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, r = {
|
|
19
18
|
name: "line-chart-data-popover",
|
|
20
19
|
header: "header",
|
|
@@ -74,7 +73,7 @@ class H extends k {
|
|
|
74
73
|
case a.xAxisField: {
|
|
75
74
|
for (let l = 0; l < t; l += 1) {
|
|
76
75
|
const i = this.layerFieldsInfo?.[l];
|
|
77
|
-
i && (L(i) ||
|
|
76
|
+
i && (L(i) || N(i) || K(i)) && s.push(this.buildPickListItem(i));
|
|
78
77
|
}
|
|
79
78
|
break;
|
|
80
79
|
}
|
|
@@ -83,7 +82,7 @@ class H extends k {
|
|
|
83
82
|
s.push(l);
|
|
84
83
|
for (let i = 0; i < t; i += 1) {
|
|
85
84
|
const m = this.layerFieldsInfo?.[i];
|
|
86
|
-
m && (
|
|
85
|
+
m && (w(m) || m.type === x.String) && s.push(this.buildPickListItem(m));
|
|
87
86
|
}
|
|
88
87
|
break;
|
|
89
88
|
}
|
|
@@ -152,7 +151,7 @@ class H extends k {
|
|
|
152
151
|
c.Month,
|
|
153
152
|
c.Year
|
|
154
153
|
];
|
|
155
|
-
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${T(e?.size, 1)} ${p(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${p(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${
|
|
154
|
+
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${T(e?.size, 1)} ${p(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${p(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${B(s, this._messages)} .selected=${e?.unit === s}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
156
155
|
}
|
|
157
156
|
renderPopoverInfo() {
|
|
158
157
|
let e;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as u } from "lit/directives/keyed.js";
|
|
4
|
-
import { LitElement as I, renderElement as $, safeStyleMap as
|
|
5
|
-
import { css as
|
|
4
|
+
import { LitElement as I, renderElement as $, safeStyleMap as x } from "@arcgis/lumina";
|
|
5
|
+
import { css as L, html as o } from "lit";
|
|
6
6
|
import { repeat as P } from "lit/directives/repeat.js";
|
|
7
7
|
import { u as y } from "../../chunks/useT9n.js";
|
|
8
8
|
import { j as b } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import {
|
|
9
|
+
import { x as M } from "../../chunks/index.js";
|
|
10
10
|
import { r as d } from "../../chunks/popover-ui-utils.js";
|
|
11
|
-
const O =
|
|
11
|
+
const O = L`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`;
|
|
12
12
|
class k extends I {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments), this._messages = y(), this.seriesPopover = null, this.open = !1, this.seriesNameChange = (e) => {
|
|
@@ -72,7 +72,7 @@ class k extends I {
|
|
|
72
72
|
const [C, p, S, v] = [...l];
|
|
73
73
|
n = `rgba(${C},${p},${S},${v / 255})`;
|
|
74
74
|
}
|
|
75
|
-
return o`<calcite-list-item .label=${h ?? r ?? ""} .description=${c} .value=${r} .selected=${this.selectedSeriesIndex === i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${a} style=${
|
|
75
|
+
return o`<calcite-list-item .label=${h ?? r ?? ""} .description=${c} .value=${r} .selected=${this.selectedSeriesIndex === i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${a} style=${x({ color: n })}></calcite-icon></calcite-list-item>`;
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
buildSeriesList() {
|
|
@@ -6,7 +6,7 @@ import { u as y } from "../../chunks/useT9n.js";
|
|
|
6
6
|
import { createRef as a, ref as o } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement as $, createEvent as s, safeClassMap as l, nothing as c } from "@arcgis/lumina";
|
|
8
8
|
import { e as I } from "../../chunks/popover-ui-utils.js";
|
|
9
|
-
import { r as b } from "../../chunks/
|
|
9
|
+
import { r as b } from "../../chunks/index2.js";
|
|
10
10
|
import { R as i } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const n = {
|
|
12
12
|
sizeSection: "size-section",
|
|
@@ -4,7 +4,7 @@ import { isEqual as n, cloneDeep as h } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as C, createEvent as m } from "@arcgis/lumina";
|
|
5
5
|
import { css as y, html as c } from "lit";
|
|
6
6
|
import { C as d } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { c9 as I, ca as F, v } from "../../chunks/index.js";
|
|
8
8
|
import { b } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
const S = y`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class L extends C {
|
|
@@ -7,8 +7,7 @@ import { css as u, html as s } from "lit";
|
|
|
7
7
|
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
8
|
import { LitElement as b, createEvent as h, renderElement as v, safeClassMap as o } from "@arcgis/lumina";
|
|
9
9
|
import { x as y } from "../../chunks/data.js";
|
|
10
|
-
import {
|
|
11
|
-
import { x as g, t as F } from "../../chunks/index.js";
|
|
10
|
+
import { A as m, B as g, u as F } from "../../chunks/index.js";
|
|
12
11
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
13
12
|
import { d as P } from "../../chunks/chart-object-literals.js";
|
|
14
13
|
const l = {
|
|
@@ -28,11 +27,11 @@ class E extends b {
|
|
|
28
27
|
break;
|
|
29
28
|
case r.category: {
|
|
30
29
|
const a = t[0]?.trim() || "", d = this.model.numericFields;
|
|
31
|
-
d.length > 1 && a !==
|
|
30
|
+
d.length > 1 && a !== m && (this.model.numericFields = [d[0]]), this.model.category = a, this.model.colorMatch = !0;
|
|
32
31
|
break;
|
|
33
32
|
}
|
|
34
33
|
case r.numericFields:
|
|
35
|
-
(t.length > 1 || t.length > 0 && this.model.category.trim() === "") && (this.model.category =
|
|
34
|
+
(t.length > 1 || t.length > 0 && this.model.category.trim() === "") && (this.model.category = m), this.model.numericFields = t;
|
|
36
35
|
break;
|
|
37
36
|
case r.sortOrder:
|
|
38
37
|
this.model.setDataSortOrder(t[0]);
|
|
@@ -70,7 +69,7 @@ class E extends b {
|
|
|
70
69
|
i?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
71
70
|
}
|
|
72
71
|
buildNumericFieldItem(e) {
|
|
73
|
-
return f(e, s`<calcite-list-item .label=${
|
|
72
|
+
return f(e, s`<calcite-list-item .label=${g(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
74
73
|
}
|
|
75
74
|
onSortOrderSelect(e) {
|
|
76
75
|
this.contentKind = r.sortOrder, this.setupPopover(e);
|
|
@@ -108,7 +107,7 @@ class E extends b {
|
|
|
108
107
|
return y({
|
|
109
108
|
fieldName: this.model.category,
|
|
110
109
|
fieldList: this.layerFieldsInfo
|
|
111
|
-
}) ? "" :
|
|
110
|
+
}) ? "" : g(this.layerFieldsInfo, this.model.category);
|
|
112
111
|
}
|
|
113
112
|
removePieChartDataPopover() {
|
|
114
113
|
this.pieChartPopover !== null && (this.pieChartPopover.open = !1, this.pieChartPopover = $(this.pieChartPopover));
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
-
import { repeat as
|
|
3
|
+
import { repeat as m } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as g } from "lit/directives/keyed.js";
|
|
5
5
|
import { isEqual as k } from "es-toolkit/compat";
|
|
6
6
|
import { P as o } from "../../chunks/interfaces.js";
|
|
7
7
|
import { p as f, b as $, e as d, f as P } from "../../chunks/chart-ui-utils.js";
|
|
8
8
|
import { u } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as L, html as n } from "lit";
|
|
10
|
-
import { createRef as C, ref as
|
|
10
|
+
import { createRef as C, ref as h } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as y, createEvent as b, safeClassMap as l } from "@arcgis/lumina";
|
|
12
12
|
import { e as F, p as I } from "../../chunks/popover-ui-utils.js";
|
|
13
|
-
import { J as D } from "../../chunks/
|
|
14
|
-
import {
|
|
15
|
-
import { bL as S, aQ as T } from "../../chunks/index.js";
|
|
13
|
+
import { J as D } from "../../chunks/index2.js";
|
|
14
|
+
import { B as x, c8 as S, b3 as T } from "../../chunks/index.js";
|
|
16
15
|
import { d as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
16
|
import { a as r } from "../../chunks/common.js";
|
|
18
17
|
const s = {
|
|
@@ -51,11 +50,11 @@ class A extends y {
|
|
|
51
50
|
this.pickListHasChanged = I(e, t);
|
|
52
51
|
}
|
|
53
52
|
buildAggregationPickListItems() {
|
|
54
|
-
return
|
|
53
|
+
return m(f, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${d(e, this.selectedContent)}></calcite-list-item>`);
|
|
55
54
|
}
|
|
56
55
|
buildSortOrder() {
|
|
57
56
|
const e = Object.keys(r);
|
|
58
|
-
return e.splice(e.indexOf(r.customSort), 1),
|
|
57
|
+
return e.splice(e.indexOf(r.customSort), 1), m(e, (t) => t, (t) => {
|
|
59
58
|
let i = "string";
|
|
60
59
|
const c = "rotate";
|
|
61
60
|
let a = "";
|
|
@@ -134,11 +133,11 @@ class A extends y {
|
|
|
134
133
|
}
|
|
135
134
|
renderCategory() {
|
|
136
135
|
const e = this.buildPickListItems(o.category);
|
|
137
|
-
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${
|
|
136
|
+
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${h(this.picklist)}>${e}</calcite-list>`;
|
|
138
137
|
}
|
|
139
138
|
renderNumericFields() {
|
|
140
139
|
const e = this.buildPickListItems(o.numericFields);
|
|
141
|
-
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${
|
|
140
|
+
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${h(this.picklist)}>${e}</calcite-list>`;
|
|
142
141
|
}
|
|
143
142
|
renderSortOrder() {
|
|
144
143
|
const e = this.buildSortOrder();
|
|
@@ -164,7 +163,7 @@ class A extends y {
|
|
|
164
163
|
}
|
|
165
164
|
render() {
|
|
166
165
|
let e;
|
|
167
|
-
return this.contentKind === o.numericFields && (e = n`<div slot=footer><calcite-fab class=${l(s.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div><calcite-popover class=${l(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${
|
|
166
|
+
return this.contentKind === o.numericFields && (e = n`<div slot=footer><calcite-fab class=${l(s.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div><calcite-popover class=${l(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${h(this.popoverElement)}><calcite-panel class=${l(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
168
167
|
}
|
|
169
168
|
}
|
|
170
169
|
v("arcgis-charts-config-pie-chart-popover", A);
|
|
@@ -8,7 +8,7 @@ import { css as G, html as d, nothing as w } from "lit";
|
|
|
8
8
|
import { createRef as m, ref as g } from "lit/directives/ref.js";
|
|
9
9
|
import { LitElement as z, renderElement as S, safeStyleMap as u, safeClassMap as s } from "@arcgis/lumina";
|
|
10
10
|
import { b as h } from "../../chunks/common.js";
|
|
11
|
-
import {
|
|
11
|
+
import { U as I, p as y } from "../../chunks/index2.js";
|
|
12
12
|
import { r as P } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { b as M } from "../../chunks/rest-js-object-literals.js";
|
|
14
14
|
const a = {
|
|
@@ -5,7 +5,7 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
5
5
|
import { createRef as d, ref as g } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement as C, createEvent as s, safeClassMap as r } from "@arcgis/lumina";
|
|
7
7
|
import { e as v } from "../../chunks/popover-ui-utils.js";
|
|
8
|
-
import { r as f } from "../../chunks/
|
|
8
|
+
import { r as f } from "../../chunks/index2.js";
|
|
9
9
|
const c = {
|
|
10
10
|
panelChildrenContainer: "panel-children-container"
|
|
11
11
|
}, 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}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}`;
|
|
@@ -4,10 +4,9 @@ import { isEqual as l } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as c, html as s } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class F extends n {
|
|
7
|
+
import { c9 as h, ca as p, bA as f, l as g, cH as m, v as u, b9 as y } from "../../chunks/index.js";
|
|
8
|
+
const F = 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%}`;
|
|
9
|
+
class b extends n {
|
|
11
10
|
constructor() {
|
|
12
11
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
13
12
|
const t = e?.detail.config ?? this.model.config;
|
|
@@ -18,7 +17,7 @@ class F extends n {
|
|
|
18
17
|
this.properties = { layerFieldsInfo: 16, model: 0, popoverPlacement: 1, r2: 9, calculatedDataMinMaxBounds: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, view: 0, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5 };
|
|
19
18
|
}
|
|
20
19
|
static {
|
|
21
|
-
this.styles =
|
|
20
|
+
this.styles = F;
|
|
22
21
|
}
|
|
23
22
|
async load() {
|
|
24
23
|
await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
|
|
@@ -43,14 +42,14 @@ class F extends n {
|
|
|
43
42
|
if (t) {
|
|
44
43
|
await f(t);
|
|
45
44
|
const i = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
|
|
46
|
-
this.layerFieldsInfo =
|
|
45
|
+
this.layerFieldsInfo = g(t) ? m({ layer: t, popupTemplateFieldInfosEnabled: i, chartType: a?.type }) : u(t, i);
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
render() {
|
|
50
49
|
let e;
|
|
51
50
|
switch (this.page) {
|
|
52
51
|
case o.Data:
|
|
53
|
-
const a =
|
|
52
|
+
const a = y(this.layer), t = a && "isTable" in a ? a.isTable : !1;
|
|
54
53
|
e = s`<arcgis-charts-config-scatter-plot-data .view=${this.view} .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${t}></arcgis-charts-config-scatter-plot-data>`;
|
|
55
54
|
break;
|
|
56
55
|
case o.Axes:
|
|
@@ -72,7 +71,7 @@ class F extends n {
|
|
|
72
71
|
return e;
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
|
-
r("arcgis-charts-config-scatter-plot",
|
|
74
|
+
r("arcgis-charts-config-scatter-plot", b);
|
|
76
75
|
export {
|
|
77
|
-
|
|
76
|
+
b as ArcgisChartsConfigScatterplot
|
|
78
77
|
};
|
|
@@ -4,7 +4,7 @@ import { html as d } from "lit";
|
|
|
4
4
|
import { LitElement as g, createEvent as m, nothing as o } from "@arcgis/lumina";
|
|
5
5
|
import y from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
6
6
|
import { u as a } from "../../chunks/useT9n.js";
|
|
7
|
-
import {
|
|
7
|
+
import { c_ as r, c$ as n } from "../../chunks/index.js";
|
|
8
8
|
const e = {
|
|
9
9
|
Circle: "circle",
|
|
10
10
|
FreehandPolygon: "freehandPolygon",
|
|
@@ -4,14 +4,12 @@ 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
6
|
import { i as v, m as g, U as y, n as L, D as w, s as u } from "../../chunks/chart-ui-utils.js";
|
|
7
|
-
import {
|
|
7
|
+
import { l as $, B as b, d0 as _ } from "../../chunks/index.js";
|
|
8
8
|
import { u as I } from "../../chunks/useT9n.js";
|
|
9
|
-
import { css as
|
|
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
|
|
12
|
-
import {
|
|
13
|
-
import { ah as R, E, r as G } from "../../chunks/index3.js";
|
|
14
|
-
import { b } from "../../chunks/index2.js";
|
|
11
|
+
import { LitElement as D, createEvent as x, renderElement as N, safeClassMap as t, safeStyleMap as C } from "@arcgis/lumina";
|
|
12
|
+
import { ah as R, E, r as G } from "../../chunks/index2.js";
|
|
15
13
|
import { r as T } from "../../chunks/popover-ui-utils.js";
|
|
16
14
|
import { b as P } from "../../chunks/rest-js-object-literals.js";
|
|
17
15
|
import { a as f } from "../../chunks/chart-object-literals.js";
|
|
@@ -27,8 +25,8 @@ const s = {
|
|
|
27
25
|
dimText: "dim-text",
|
|
28
26
|
aoiTools: "aoi-tools",
|
|
29
27
|
currentAoiBlock: "current-aoi-block"
|
|
30
|
-
}, K =
|
|
31
|
-
class O extends
|
|
28
|
+
}, K = 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 O extends D {
|
|
32
30
|
constructor() {
|
|
33
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) => {
|
|
34
32
|
const i = e.detail;
|
|
@@ -230,7 +228,7 @@ class O extends V {
|
|
|
230
228
|
this.contentKind = n.none, this.removeScatterplotPopover();
|
|
231
229
|
break;
|
|
232
230
|
}
|
|
233
|
-
this.scatterplotPopover =
|
|
231
|
+
this.scatterplotPopover = N(r`<arcgis-charts-config-scatter-plot-popover .headingTitle=${o} .referenceElement=${l} open .contentKind=${this.contentKind} .layerFieldsInfo=${i} .selectedContent=${a} .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);
|
|
234
232
|
}
|
|
235
233
|
removeScatterplotPopover() {
|
|
236
234
|
this.scatterplotPopover !== null && (this.scatterplotPopover = T(this.scatterplotPopover)), this.selectedElement = void 0;
|
|
@@ -294,7 +292,7 @@ class O extends V {
|
|
|
294
292
|
return r`<div class=${t(s.sectionContainer)}>${this.renderSymbolSizeType()}${this.selectedSizeType === d.Proportional ? this.renderProportionalSymbol() : this.renderFixedSymbol()}<calcite-label class=${t(s.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},${l},${o},${a / 255})` })} class=${t(s.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list></div>`;
|
|
295
293
|
}
|
|
296
294
|
renderDefineAnAoiSection() {
|
|
297
|
-
const e = $(this.model.layer), i = this.aoiTool ??
|
|
295
|
+
const e = $(this.model.layer), i = this.aoiTool ?? _(this.aoiGeometry), l = i ? this.commonStrings.imageryAoiToolsStrings[i] : "";
|
|
298
296
|
return e ? r`<h3 class=${t(s.sectionLabel)}>${this._messages.defineAnAoi}</h3><div class=${t(s.sectionContainer)}><arcgis-charts-config-scatter-plot-aoi class=${t(s.aoiTools)} .view=${this.view} @arcgisImageryScatterplotAoiChange=${this.handleImageryScatterplotAoiChange}></arcgis-charts-config-scatter-plot-aoi><calcite-label class=${t(s.label)} layout=inline-space-between>${this._messages.useAoi}<calcite-switch class=${t(s.switchElement)} id=charts-config-scatter-plot-aoi-use-switch .checked=${this.isAoiEnabled && !!this.aoiGeometry} .disabled=${!this.aoiGeometry} @calciteSwitchChange=${this.handleImageryScatterplotToggleUseAoi}></calcite-switch></calcite-label><calcite-block class=${t(s.currentAoiBlock)} expanded .hidden=${!this.isAoiEnabled || !this.aoiGeometry}><calcite-label>${this._messages.currentAoi}</calcite-label><calcite-label layout=inline-space-between scale=s>${l}<calcite-button id=charts-config-scatter-plot-aoi-delete icon-start=trash appearance=transparent scale=s .disabled=${!this.aoiGeometry} @click=${this.handleImageryScatterplotAoiDeleteClick}></calcite-button></calcite-label></calcite-block></div>` : null;
|
|
299
297
|
}
|
|
300
298
|
render() {
|
|
@@ -9,8 +9,7 @@ import { createRef as h, ref as d } from "lit/directives/ref.js";
|
|
|
9
9
|
import { LitElement as S, createEvent as l, safeClassMap as r } from "@arcgis/lumina";
|
|
10
10
|
import { b as m } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
import { e as $ } from "../../chunks/popover-ui-utils.js";
|
|
12
|
-
import {
|
|
13
|
-
import { aQ as b } from "../../chunks/index.js";
|
|
12
|
+
import { b3 as P, B as b } from "../../chunks/index.js";
|
|
14
13
|
const n = {
|
|
15
14
|
scatterplotPopover: "scatter-plot-popover",
|
|
16
15
|
fillColor: "fill-color",
|
|
@@ -61,8 +60,8 @@ class k extends S {
|
|
|
61
60
|
(this.contentKind === a.sizeVariable || this.contentKind === a.additionalTooltipFields) && t.push(c(" ", o`<calcite-list-item label=" " value=" " .selected=${p("", this.selectedContent)}></calcite-list-item>`));
|
|
62
61
|
for (let i = 0; i < e; i += 1) {
|
|
63
62
|
const s = this.layerFieldsInfo?.[i] ?? void 0;
|
|
64
|
-
if (s !== void 0 && (this.contentKind === a.additionalTooltipFields ||
|
|
65
|
-
const C =
|
|
63
|
+
if (s !== void 0 && (this.contentKind === a.additionalTooltipFields || P(s))) {
|
|
64
|
+
const C = b(this.layerFieldsInfo, s.name);
|
|
66
65
|
t.push(c(s.name, o`<calcite-list-item .label=${C} .value=${s.name} .selected=${p(s.name, this.selectedContent)}></calcite-list-item>`));
|
|
67
66
|
}
|
|
68
67
|
}
|
|
@@ -1,42 +1,38 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { u as
|
|
5
|
-
import { createRef as
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { e as
|
|
8
|
-
import {
|
|
2
|
+
import { c as o } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as r, html as t } from "lit";
|
|
4
|
+
import { u as n } from "../../chunks/useT9n.js";
|
|
5
|
+
import { createRef as p, ref as h } from "lit/directives/ref.js";
|
|
6
|
+
import { LitElement as m, createEvent as a, safeClassMap as l } from "@arcgis/lumina";
|
|
7
|
+
import { e as d } from "../../chunks/popover-ui-utils.js";
|
|
8
|
+
import { a as s } from "../../chunks/chart-object-literals.js";
|
|
9
9
|
import { M as e } from "../../chunks/common.js";
|
|
10
10
|
const c = {
|
|
11
11
|
selectChartComponent: "select-chart-component",
|
|
12
12
|
panel: "panel"
|
|
13
|
-
},
|
|
14
|
-
class
|
|
13
|
+
}, C = r`.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}`;
|
|
14
|
+
class g extends m {
|
|
15
15
|
constructor() {
|
|
16
|
-
super(...arguments), this._messages =
|
|
16
|
+
super(...arguments), this._messages = n(), this.selectChartTypePopover = p(), this.open = !1, this.arcgisChartsConfigPopoverClose = a(), this.arcgisChartsConfigSelectChartTypeChange = a();
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
|
-
this.properties = { messageOverrides: 0, headerTitle: 1, layerId: 1, layerType: 1,
|
|
19
|
+
this.properties = { messageOverrides: 0, headerTitle: 1, layerId: 1, layerType: 1, supportedChartTypes: 0, open: 5, referenceElement: 0, popoverPlacement: 1, selectedModelType: 1 };
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
|
-
this.styles =
|
|
22
|
+
this.styles = C;
|
|
23
23
|
}
|
|
24
24
|
async reposition() {
|
|
25
25
|
await this.selectChartTypePopover.value?.reposition();
|
|
26
26
|
}
|
|
27
27
|
updated() {
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
buildRasterChartTypesList() {
|
|
31
|
-
const t = this.isRasterBarChartSupported === !0;
|
|
32
|
-
return i`<calcite-list label @click=${this.onChartTypeClick}>${t ? i`<calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType === e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item>` : null}<calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType === e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType === e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item></calcite-list>`;
|
|
28
|
+
d(this.selectChartTypePopover.value, this.open);
|
|
33
29
|
}
|
|
34
30
|
buildChartTypesList() {
|
|
35
|
-
let
|
|
36
|
-
return
|
|
31
|
+
let i;
|
|
32
|
+
return i = t`<calcite-list label @click=${this.onChartTypeClick}>${this.supportedChartTypes?.includes(s.BarSeries) ? t`<calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType === e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item>` : null}${this.supportedChartTypes?.includes(s.LineSeries) ? t`<calcite-list-item .label=${this._messages.lineChart} .value=${e.LineChart} .selected=${this.selectedModelType === e.LineChart}><calcite-icon slot=content-start icon=graph-time-series></calcite-icon></calcite-list-item>` : null}${this.supportedChartTypes?.includes(s.PieSeries) ? t`<calcite-list-item .label=${this._messages.pieChart} .value=${e.PieChart} .selected=${this.selectedModelType === e.PieChart}><calcite-icon slot=content-start icon=pie-chart></calcite-icon></calcite-list-item>` : null}${this.supportedChartTypes?.includes(s.HistogramSeries) ? t`<calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType === e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item>` : null}${this.supportedChartTypes?.includes(s.ScatterSeries) ? t`<calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType === e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item>` : null}${this.supportedChartTypes?.includes(s.BoxPlotSeries) ? t`<calcite-list-item .label=${this._messages.boxPlot} .value=${e.BoxPlot} .selected=${this.selectedModelType === e.BoxPlot}><calcite-icon slot=content-start icon=box-chart></calcite-icon></calcite-list-item>` : null}${this.supportedChartTypes?.includes(s.HeatSeries) ? t`<calcite-list-item .label=${this._messages.calendarHeatChart} .value=${e.HeatChart} .selected=${this.selectedModelType === e.HeatChart}><calcite-icon slot=content-start icon=calendar-heat-chart></calcite-icon></calcite-list-item>` : null}</calcite-list>`, i;
|
|
37
33
|
}
|
|
38
|
-
onChartTypeClick(
|
|
39
|
-
|
|
34
|
+
onChartTypeClick(i) {
|
|
35
|
+
i.target?.localName === "calcite-list-item" ? this.selectedModelType = i.target?.value : this.selectedModelType = i.target?.parentNode?.value, this.arcgisChartsConfigSelectChartTypeChange.emit();
|
|
40
36
|
}
|
|
41
37
|
popoverOpen() {
|
|
42
38
|
setTimeout(() => {
|
|
@@ -49,12 +45,12 @@ class C extends p {
|
|
|
49
45
|
}, 250);
|
|
50
46
|
}
|
|
51
47
|
render() {
|
|
52
|
-
return
|
|
48
|
+
return t`<div class=${l({
|
|
53
49
|
[c.selectChartComponent]: !0
|
|
54
|
-
})}><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 ${h(this.selectChartTypePopover)}><calcite-panel class=${
|
|
50
|
+
})}><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 ${h(this.selectChartTypePopover)}><calcite-panel class=${l(c.panel)} .heading=${this.headerTitle ?? this._messages.chooseChartType} closable @calcitePanelClose=${this.popoverClose} .closed=${!this.open}>${this.buildChartTypesList()}</calcite-panel></calcite-popover></div>`;
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
|
-
|
|
53
|
+
o("arcgis-charts-config-select-chart-type-popover", g);
|
|
58
54
|
export {
|
|
59
|
-
|
|
55
|
+
g as ArcgisChartsConfigSelectChartTypePopover
|
|
60
56
|
};
|