@arcgis/charts-components 5.2.0-next.145 → 5.2.0-next.147
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/{H36JC7RS.js → 2CDMMKPJ.js} +1 -1
- package/dist/cdn/2CZEJ5DR.js +2 -0
- package/dist/cdn/2GE65C6S.js +2 -0
- package/dist/cdn/3BRUUROM.js +2 -0
- package/dist/cdn/3JVIX4TL.js +2 -0
- package/dist/cdn/3RI6PWDI.js +2 -0
- package/dist/cdn/46LRKKNP.js +2 -0
- package/dist/cdn/{C3JENYG3.js → 4752WHSR.js} +25 -25
- package/dist/cdn/4BM25G3S.js +2 -0
- package/dist/cdn/4VSBIIP2.js +2 -0
- package/dist/cdn/4XK5YE6C.js +2 -0
- package/dist/cdn/5JERAZSG.js +2 -0
- package/dist/cdn/5PTMLDOB.js +2 -0
- package/dist/cdn/65I7BUS4.js +2 -0
- package/dist/cdn/6JSWJHZB.js +2 -0
- package/dist/cdn/7DWJIEIJ.js +2 -0
- package/dist/cdn/{TDNH4JI7.js → 7HN4DADA.js} +1 -1
- package/dist/cdn/7IJMKD5M.js +2 -0
- package/dist/cdn/7MBF4226.js +2 -0
- package/dist/cdn/{DKLABJXF.js → 7NMS7SSF.js} +1 -1
- package/dist/cdn/7PW4JAXI.js +2 -0
- package/dist/cdn/7ZDSUAN6.js +2 -0
- package/dist/cdn/AKG64YBZ.js +2 -0
- package/dist/cdn/{B56H6U5I.js → AQOVEDUP.js} +1 -1
- package/dist/cdn/B3V4VZYM.js +2 -0
- package/dist/cdn/BDUTHXO4.js +2 -0
- package/dist/cdn/BKABNAQM.js +2 -0
- package/dist/cdn/BOGEJ7J7.js +2 -0
- package/dist/cdn/{5WHCVW35.js → C2GHXSU5.js} +2 -2
- package/dist/cdn/C3XMGCU5.js +2 -0
- package/dist/cdn/CEZ2VRFW.js +2 -0
- package/dist/cdn/CZVLHPR7.js +2 -0
- package/dist/cdn/D3Z4NVKQ.js +2 -0
- package/dist/cdn/{TPSDJS4O.js → E66QO3GL.js} +1 -1
- package/dist/cdn/EEN4U5XM.js +2 -0
- package/dist/cdn/EU5EYFH2.js +2 -0
- package/dist/cdn/EYEWINUB.js +4 -0
- package/dist/cdn/FGNSVA6W.js +2 -0
- package/dist/cdn/FIFXR6OH.js +2 -0
- package/dist/cdn/FM6AHBVU.js +2 -0
- package/dist/cdn/GBL2FACR.js +2 -0
- package/dist/cdn/GZAROP4P.js +2 -0
- package/dist/cdn/H4GILMDJ.js +2 -0
- package/dist/cdn/HDUMEWQL.js +2 -0
- package/dist/cdn/HMHWVIF2.js +2 -0
- package/dist/cdn/HRZK3GLD.js +2 -0
- package/dist/cdn/I2FZ2KUR.js +2 -0
- package/dist/cdn/{ND5JWELW.js → IMSN4JMC.js} +1 -1
- package/dist/cdn/INYPNEFZ.js +2 -0
- package/dist/cdn/IPPQ6AYM.js +2 -0
- package/dist/cdn/{MTXPJFNG.js → IQHYD6VM.js} +1 -1
- package/dist/cdn/JMYVXU4O.js +2 -0
- package/dist/cdn/JWGHSOOD.js +2 -0
- package/dist/cdn/{SO5USEBM.js → K4GPJ36N.js} +1 -1
- package/dist/cdn/{7A2AGL2N.js → K5H4XE7T.js} +1 -1
- package/dist/cdn/KMMYG2QX.js +2 -0
- package/dist/cdn/{HOBTZQOO.js → KUGVL62E.js} +1 -1
- package/dist/cdn/KVHAU3R7.js +2 -0
- package/dist/cdn/M7PFJOW7.js +2 -0
- package/dist/cdn/MTAGYPDJ.js +2 -0
- package/dist/cdn/MVVC6PKQ.js +2 -0
- package/dist/cdn/MVXG6N2M.js +2 -0
- package/dist/cdn/N2DHNIDT.js +2 -0
- package/dist/cdn/N3YF4TVT.js +2 -0
- package/dist/cdn/OOFDTNBW.js +4 -0
- package/dist/cdn/OXY57UUR.js +2 -0
- package/dist/cdn/{FJ7ZTRRA.js → P5RPGI3P.js} +1 -1
- package/dist/cdn/PNVMXN36.js +2 -0
- package/dist/cdn/PU63PVCT.js +2 -0
- package/dist/cdn/QFFPKVJF.js +2 -0
- package/dist/cdn/QGC2DLQ4.js +2 -0
- package/dist/cdn/QN2JEZ5D.js +2 -0
- package/dist/cdn/S2PIPJCQ.js +2 -0
- package/dist/cdn/SHQXINAI.js +2 -0
- package/dist/cdn/TQS3LLJX.js +2 -0
- package/dist/cdn/{GQYVTTFW.js → TRTVGVQR.js} +1 -1
- package/dist/cdn/UUXIIGCK.js +2 -0
- package/dist/cdn/{NY73C6DH.js → V32BIR37.js} +1 -1
- package/dist/cdn/VPADWNW7.js +2 -0
- package/dist/cdn/VZ64E76N.js +2 -0
- package/dist/cdn/WK4FA5IO.js +2 -0
- package/dist/cdn/YB4ZDSSI.js +2 -0
- package/dist/cdn/YIYP2ECR.js +2 -0
- package/dist/cdn/YM5SNR26.js +2 -0
- package/dist/cdn/YOUVPC2K.js +2 -0
- package/dist/cdn/YUOEB6DF.js +2 -0
- package/dist/cdn/Z73I4R5C.js +2 -0
- package/dist/cdn/{PEDFAFPV.js → ZGGFAHQL.js} +1 -1
- package/dist/cdn/ZUYZHJTU.js +2 -0
- 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 +4943 -3841
- 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 +4985 -4913
- 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 +12 -13
- 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-create-flow/customElement.js +189 -184
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- 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/2BM7VX6X.js +0 -2
- package/dist/cdn/2GZJVJ6D.js +0 -2
- package/dist/cdn/2IQWCGC4.js +0 -2
- package/dist/cdn/2LYJZSEC.js +0 -2
- package/dist/cdn/2YNB2RSW.js +0 -2
- package/dist/cdn/3R4CEE6P.js +0 -3
- package/dist/cdn/4Y22DEQR.js +0 -2
- package/dist/cdn/4YFIGYNC.js +0 -2
- package/dist/cdn/53NXULDN.js +0 -2
- package/dist/cdn/74TRPLSI.js +0 -2
- package/dist/cdn/7I25IJA2.js +0 -2
- package/dist/cdn/7SUMLJRQ.js +0 -2
- package/dist/cdn/AC5XBWF4.js +0 -2
- package/dist/cdn/AJ2NSTY6.js +0 -2
- package/dist/cdn/ASR32YFB.js +0 -2
- package/dist/cdn/AWR5OJXA.js +0 -2
- package/dist/cdn/BTGS2QCT.js +0 -2
- package/dist/cdn/D4MMYT57.js +0 -2
- package/dist/cdn/DLVMA4UR.js +0 -2
- package/dist/cdn/DNDJF3KR.js +0 -2
- package/dist/cdn/E2RKOLS3.js +0 -2
- package/dist/cdn/EF7JJNJX.js +0 -2
- package/dist/cdn/FBJ4AP2R.js +0 -2
- package/dist/cdn/FGGLWGU3.js +0 -2
- package/dist/cdn/FW77THSK.js +0 -2
- package/dist/cdn/GICZ6QTQ.js +0 -2
- package/dist/cdn/GOYZO3PH.js +0 -2
- package/dist/cdn/H3PQ3KE3.js +0 -2
- package/dist/cdn/HPXU7UB6.js +0 -2
- package/dist/cdn/I2LU7GWB.js +0 -2
- package/dist/cdn/JFQL7N2M.js +0 -2
- package/dist/cdn/JNDODFJD.js +0 -2
- package/dist/cdn/KKAO2PXL.js +0 -2
- package/dist/cdn/LEY6LKUH.js +0 -2
- package/dist/cdn/LIFE557O.js +0 -2
- package/dist/cdn/M4NDM2ZO.js +0 -2
- package/dist/cdn/MJSZLNAF.js +0 -2
- package/dist/cdn/MTMOH3ES.js +0 -2
- package/dist/cdn/N4X7ZOF5.js +0 -2
- package/dist/cdn/NARDIIZ3.js +0 -2
- package/dist/cdn/NSBR5PR7.js +0 -2
- package/dist/cdn/NSFI6R7F.js +0 -2
- package/dist/cdn/O344JWQA.js +0 -2
- package/dist/cdn/O5Q63MHK.js +0 -2
- package/dist/cdn/O7Z5PTLE.js +0 -2
- package/dist/cdn/OCIDPNVR.js +0 -2
- package/dist/cdn/ODY5YRM6.js +0 -2
- package/dist/cdn/OLD54PWE.js +0 -2
- package/dist/cdn/OWUGRJ3W.js +0 -2
- package/dist/cdn/OWXCYQKM.js +0 -2
- package/dist/cdn/P772YCRO.js +0 -2
- package/dist/cdn/PD5CSNCF.js +0 -2
- package/dist/cdn/PNFJAH7R.js +0 -2
- package/dist/cdn/PNFPQKYB.js +0 -3
- package/dist/cdn/PWTMWRU4.js +0 -2
- package/dist/cdn/PYLGHA4T.js +0 -2
- package/dist/cdn/RO25JS7J.js +0 -2
- package/dist/cdn/SQE3NSLM.js +0 -2
- package/dist/cdn/TAM5ITK5.js +0 -2
- package/dist/cdn/TGAKLKOG.js +0 -2
- package/dist/cdn/TPPHYP2J.js +0 -2
- package/dist/cdn/TQG7YJHG.js +0 -4
- package/dist/cdn/VUVWD7G5.js +0 -2
- package/dist/cdn/VVTGMYKI.js +0 -2
- package/dist/cdn/WOGALV3T.js +0 -2
- package/dist/cdn/WTDG57TI.js +0 -2
- package/dist/cdn/XBBOQCVR.js +0 -2
- package/dist/cdn/XJB3EVVM.js +0 -2
- package/dist/cdn/Y5T2FM7Z.js +0 -2
- package/dist/cdn/YMPR72UQ.js +0 -2
- package/dist/cdn/YU3DD3L3.js +0 -2
- package/dist/cdn/YZP4WSUR.js +0 -2
- package/dist/cdn/ZD7PQSBR.js +0 -2
- package/dist/cdn/ZXPTZMFT.js +0 -2
- package/dist/cdn/ZXVFP4II.js +0 -2
- package/dist/cdn/ZY25J33W.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/{5L7BAEX5.js → 43DLRSYB.js} +0 -0
- /package/dist/cdn/{Q45WYAOY.js → DRYZWCWX.js} +0 -0
- /package/dist/cdn/{TOL6YNER.js → O4TPXFX4.js} +0 -0
|
@@ -6,7 +6,7 @@ import { i as p, m as c, U as r, s as d } from "../../chunks/chart-ui-utils.js";
|
|
|
6
6
|
import { u as y } from "../../chunks/useT9n.js";
|
|
7
7
|
import { createRef as S, ref as u } from "lit/directives/ref.js";
|
|
8
8
|
import { LitElement as g, createEvent as f, safeClassMap as n } from "@arcgis/lumina";
|
|
9
|
-
import { Q as v } from "../../chunks/
|
|
9
|
+
import { Q as v } from "../../chunks/index2.js";
|
|
10
10
|
import { b } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const C = {
|
|
12
12
|
arial: "Arial",
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as B } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as M } from "lit/directives/ref.js";
|
|
4
|
-
import { n as y, l as
|
|
4
|
+
import { n as y, l as m, j as h, o as S, c as V, k as w } from "../../chunks/type-guards.js";
|
|
5
5
|
import { i as T } from "../../chunks/data-labels-symbol.js";
|
|
6
6
|
import { i as C, a as L, b as P } from "../../chunks/axis-lines-symbol.js";
|
|
7
|
-
import { cloneDeep as
|
|
7
|
+
import { cloneDeep as c, isArray as F, isObject as A, mergeWith as D, isEmpty as E } from "es-toolkit/compat";
|
|
8
8
|
import { h as G } from "../../chunks/chart-ui-utils.js";
|
|
9
9
|
import { R as W, b } from "../../chunks/rest-js-object-literals.js";
|
|
10
10
|
import { u as N } from "../../chunks/useT9n.js";
|
|
11
11
|
import { css as z, html as f } from "lit";
|
|
12
12
|
import { LitElement as H, renderElement as R, safeClassMap as p } from "@arcgis/lumina";
|
|
13
|
-
import { C as j, F as i, L as
|
|
14
|
-
import { b as u,
|
|
13
|
+
import { C as j, F as i, L as d } from "../../chunks/common.js";
|
|
14
|
+
import { b as u, cg as r, C as I } from "../../chunks/index.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
|
-
import { C as I } from "../../chunks/index2.js";
|
|
17
16
|
import { a } from "../../chunks/chart-object-literals.js";
|
|
18
17
|
const v = {
|
|
19
18
|
type: b.TS,
|
|
@@ -55,8 +54,8 @@ class X extends H {
|
|
|
55
54
|
if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedBackground = [], e.shiftKey) {
|
|
56
55
|
this.selectedTexts = [];
|
|
57
56
|
const o = this.textProperties.indexOf(this.lastSelectedText ?? s), l = this.textProperties.indexOf(s);
|
|
58
|
-
this.textProperties.forEach((
|
|
59
|
-
x >= Math.min(o, l) && x <= Math.max(o, l) && this.selectedTexts.push(
|
|
57
|
+
this.textProperties.forEach((n, x) => {
|
|
58
|
+
x >= Math.min(o, l) && x <= Math.max(o, l) && this.selectedTexts.push(n);
|
|
60
59
|
}), this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
|
|
61
60
|
} else if (e.ctrlKey)
|
|
62
61
|
this.selectedTexts.includes(s) ? (this.selectedTexts = this.selectedTexts.filter((o) => o !== s), this.updateSelectedElement(this.selectedTexts)) : (this.selectedTexts = [...this.selectedTexts, s], this.updateSelectedElement(this.selectedTexts)), this.setupFormatPopover();
|
|
@@ -82,20 +81,20 @@ class X extends H {
|
|
|
82
81
|
const e = t.detail;
|
|
83
82
|
this.selectedSymbols.forEach((s) => {
|
|
84
83
|
this.setFormatValue(s, e);
|
|
85
|
-
}), this.selectedElement =
|
|
84
|
+
}), this.selectedElement = c(t.target.selectedElement);
|
|
86
85
|
}, this.updateBackground = (t) => {
|
|
87
86
|
this.setFormatValue(j.Background, t.detail), this.selectedElement = t.detail;
|
|
88
87
|
}, this.updateTextProps = (t) => {
|
|
89
88
|
const { font: e, color: s } = t.detail;
|
|
90
89
|
this.selectedTexts.forEach((o) => {
|
|
91
|
-
const l = this.getFormatValue(o),
|
|
90
|
+
const l = this.getFormatValue(o), n = r(l) ? l : void 0;
|
|
92
91
|
this.setFormatValue(o, {
|
|
93
|
-
...
|
|
92
|
+
...n,
|
|
94
93
|
type: b.TS,
|
|
95
|
-
font: { ...
|
|
96
|
-
color: s ??
|
|
94
|
+
font: { ...n?.font, ...e },
|
|
95
|
+
color: s ?? n?.color
|
|
97
96
|
});
|
|
98
|
-
}), this.selectedElement =
|
|
97
|
+
}), this.selectedElement = c(t.target.selectedElement);
|
|
99
98
|
}, this.onModelConfigChange = () => {
|
|
100
99
|
this.requestUpdate();
|
|
101
100
|
}, this.formatPopoverClose = (t) => {
|
|
@@ -135,23 +134,23 @@ class X extends H {
|
|
|
135
134
|
}
|
|
136
135
|
updateSelectedElement(t, e) {
|
|
137
136
|
if (this.selectedElement = void 0, e === void 0) {
|
|
138
|
-
const s =
|
|
137
|
+
const s = c(this.getFormatValue(t[0]));
|
|
139
138
|
this.selectedElement = t?.reduce((o, l) => {
|
|
140
|
-
const
|
|
141
|
-
return D(o,
|
|
139
|
+
const n = this.getFormatValue(l);
|
|
140
|
+
return D(o, n, this.mergeFormatValues);
|
|
142
141
|
}, s);
|
|
143
142
|
} else {
|
|
144
|
-
let s =
|
|
145
|
-
E(e) && (this.selectedSymbols?.length > 0 && (s =
|
|
143
|
+
let s = c(e);
|
|
144
|
+
E(e) && (this.selectedSymbols?.length > 0 && (s = c(k)), this.selectedTexts?.length > 0 && (s = c(v))), this.selectedElement = s;
|
|
146
145
|
}
|
|
147
146
|
}
|
|
148
147
|
initSelectedTexts(t) {
|
|
149
|
-
let e =
|
|
150
|
-
E(t) && (e =
|
|
148
|
+
let e = c(t);
|
|
149
|
+
E(t) && (e = c(v)), this.selectedElement = e;
|
|
151
150
|
}
|
|
152
151
|
initSelectedSymbols(t) {
|
|
153
|
-
let e =
|
|
154
|
-
E(t) && (e =
|
|
152
|
+
let e = c(t);
|
|
153
|
+
E(t) && (e = c(k)), this.selectedElement = e;
|
|
155
154
|
}
|
|
156
155
|
setupFormatPopover() {
|
|
157
156
|
this.formatPopover = $(this.formatPopover);
|
|
@@ -171,7 +170,7 @@ class X extends H {
|
|
|
171
170
|
case i.XAxisTitle:
|
|
172
171
|
return P(this.model) ? this.model.xAxisTitleSymbol : void 0;
|
|
173
172
|
case i.YAxisTitle:
|
|
174
|
-
return
|
|
173
|
+
return m(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
|
|
175
174
|
case i.AxisLabels:
|
|
176
175
|
return L(this.model) ? this.model.axisLabelsSymbol : void 0;
|
|
177
176
|
case i.GuideLabels:
|
|
@@ -182,11 +181,11 @@ class X extends H {
|
|
|
182
181
|
return h(this.model) ? this.model.legendTitleSymbol : void 0;
|
|
183
182
|
case i.DataLabels:
|
|
184
183
|
return T(this.model) ? this.model.dataLabelsSymbol : void 0;
|
|
185
|
-
case
|
|
184
|
+
case d.AxisLines:
|
|
186
185
|
return C(this.model) ? this.model.axisLinesSymbol : void 0;
|
|
187
|
-
case
|
|
188
|
-
return
|
|
189
|
-
case
|
|
186
|
+
case d.GridLines:
|
|
187
|
+
return m(this.model) ? this.model.getGridLinesSymbol() : void 0;
|
|
188
|
+
case d.LeaderLines:
|
|
190
189
|
return y(this.model) ? this.model.ticksSymbol : void 0;
|
|
191
190
|
case i.Background:
|
|
192
191
|
return this.model.backgroundColor;
|
|
@@ -206,7 +205,7 @@ class X extends H {
|
|
|
206
205
|
P(this.model) && r(e) && (this.model.xAxisTitleSymbol = e);
|
|
207
206
|
break;
|
|
208
207
|
case i.YAxisTitle:
|
|
209
|
-
|
|
208
|
+
m(this.model) && r(e) && this.model.setAxisTitleSymbol(e, 1);
|
|
210
209
|
break;
|
|
211
210
|
case i.AxisLabels:
|
|
212
211
|
L(this.model) && r(e) && (this.model.axisLabelsSymbol = e);
|
|
@@ -223,14 +222,14 @@ class X extends H {
|
|
|
223
222
|
case i.DataLabels:
|
|
224
223
|
T(this.model) && r(e) && (this.model.dataLabelsSymbol = e);
|
|
225
224
|
break;
|
|
226
|
-
case
|
|
225
|
+
case d.AxisLines:
|
|
227
226
|
C(this.model) && u(e) && (this.model.axisLinesSymbol = e);
|
|
228
227
|
break;
|
|
229
|
-
case
|
|
228
|
+
case d.GridLines:
|
|
230
229
|
if (u(e)) {
|
|
231
230
|
if (V(this.model))
|
|
232
231
|
this.model.setGridLinesSymbol(e);
|
|
233
|
-
else if (
|
|
232
|
+
else if (m(this.model)) {
|
|
234
233
|
const s = this.model.chartType;
|
|
235
234
|
let o = [];
|
|
236
235
|
switch (s) {
|
|
@@ -254,7 +253,7 @@ class X extends H {
|
|
|
254
253
|
}
|
|
255
254
|
}
|
|
256
255
|
break;
|
|
257
|
-
case
|
|
256
|
+
case d.LeaderLines:
|
|
258
257
|
y(this.model) && u(e) && (this.model.ticksSymbol = e);
|
|
259
258
|
break;
|
|
260
259
|
case i.Background:
|
|
@@ -266,7 +265,7 @@ class X extends H {
|
|
|
266
265
|
this.textProperties = [
|
|
267
266
|
i.Title,
|
|
268
267
|
...P(this.model) ? [i.XAxisTitle] : [],
|
|
269
|
-
...
|
|
268
|
+
...m(this.model) ? [i.YAxisTitle] : [],
|
|
270
269
|
...h(this.model) ? [i.LegendTitle] : [],
|
|
271
270
|
i.Description,
|
|
272
271
|
...h(this.model) ? [i.LegendText] : [],
|
|
@@ -275,16 +274,16 @@ class X extends H {
|
|
|
275
274
|
...T(this.model) && this.model.chartType !== a.HeatSeries && this.model.chartType !== a.BoxPlotSeries ? [i.DataLabels] : []
|
|
276
275
|
], w(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
|
|
277
276
|
i.Background,
|
|
278
|
-
...C(this.model) && this.model.chartType !== a.HeatSeries ? [
|
|
279
|
-
...
|
|
280
|
-
...y(this.model) ? [
|
|
277
|
+
...C(this.model) && this.model.chartType !== a.HeatSeries ? [d.AxisLines] : [],
|
|
278
|
+
...m(this.model) ? [d.GridLines] : [],
|
|
279
|
+
...y(this.model) ? [d.LeaderLines] : []
|
|
281
280
|
];
|
|
282
281
|
const t = this.textProperties.map((s) => this.renderTextElement(s, this.textPropertyChange)), e = this.symbolProperties.map((s) => s === i.Background ? this.renderTextElement(s, this.backgroundChange) : this.renderTextElement(s, this.symbolPropertyChange));
|
|
283
282
|
return { textElements: t, symbolElements: e };
|
|
284
283
|
}
|
|
285
284
|
renderTextElement(t, e) {
|
|
286
|
-
const s = G(t), o = this.getFormatValue(t), l = typeof o == "string" ? o : "",
|
|
287
|
-
return f`<calcite-list-item class=${p(g.element)} .label=${this._messages[t]} .description=${l} .value=${t} .selected=${
|
|
285
|
+
const s = G(t), o = this.getFormatValue(t), l = typeof o == "string" ? o : "", n = this.selectedTexts.includes(t) || this.selectedSymbols.includes(t) || this.selectedBackground.includes(t);
|
|
286
|
+
return f`<calcite-list-item class=${p(g.element)} .label=${this._messages[t]} .description=${l} .value=${t} .selected=${n} @click=${e} ${M(this.updateSelectableElements)}>${s !== void 0 ? f`<calcite-icon slot=content-start scale=s .icon=${s}></calcite-icon>` : null}</calcite-list-item>`;
|
|
288
287
|
}
|
|
289
288
|
render() {
|
|
290
289
|
const { textElements: t, symbolElements: e } = this.renderFormatElements();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
-
import { l as n, p as r, j as c } from "../../chunks/type-
|
|
3
|
+
import { l as n, p as r, j as c } from "../../chunks/type-guards.js";
|
|
4
4
|
import { i as h, a as m, b as g } from "../../chunks/generate-x-axis-title.js";
|
|
5
5
|
import { isEmpty as x } from "es-toolkit/compat";
|
|
6
6
|
import { m as u, U as b } from "../../chunks/chart-ui-utils.js";
|
|
@@ -9,7 +9,7 @@ import { css as C, html as l } from "lit";
|
|
|
9
9
|
import { createRef as f, ref as $ } from "lit/directives/ref.js";
|
|
10
10
|
import { LitElement as v, safeClassMap as i } from "@arcgis/lumina";
|
|
11
11
|
import { f as a } from "../../chunks/chart-object-literals.js";
|
|
12
|
-
import { i as y } from "../../chunks/
|
|
12
|
+
import { i as y } from "../../chunks/index3.js";
|
|
13
13
|
const s = {
|
|
14
14
|
textInput: "text-input",
|
|
15
15
|
label: "label",
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { c as B } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as X } from "lit/directives/keyed.js";
|
|
4
4
|
import { cloneDeep as P } from "es-toolkit/compat";
|
|
5
|
-
import { m as $, U as S, a as
|
|
5
|
+
import { m as $, U as S, a as N, j as V, k } from "../../chunks/chart-ui-utils.js";
|
|
6
6
|
import { d as F } from "../../chunks/default.js";
|
|
7
7
|
import { g as Z } from "../../chunks/resource.js";
|
|
8
8
|
import { u as q } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as z, html as d } from "lit";
|
|
10
10
|
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as O, createEvent as U, renderElement as M, safeStyleMap as L, safeClassMap as n } from "@arcgis/lumina";
|
|
12
|
-
import { l as W, q as
|
|
13
|
-
import {
|
|
14
|
-
import { t as K } from "../../chunks/
|
|
12
|
+
import { l as W, q as j, r as Y } from "../../chunks/type-guards.js";
|
|
13
|
+
import { ch as p, b as m, bI as H, ci as A, cj as _, i as J } from "../../chunks/index.js";
|
|
14
|
+
import { t as K } from "../../chunks/index2.js";
|
|
15
15
|
import { r as Q } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { b as g, R as ee } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
import { a as te } from "../../chunks/chart-object-literals.js";
|
|
@@ -203,17 +203,17 @@ class se extends O {
|
|
|
203
203
|
this.model.setGuideVisibility(!e, this.index, this.orientation);
|
|
204
204
|
}
|
|
205
205
|
destroyTooltip() {
|
|
206
|
-
|
|
206
|
+
N(this.tooltip);
|
|
207
207
|
}
|
|
208
208
|
deleteGuide() {
|
|
209
|
-
this.destroyTooltip(), this.orientation === b.X &&
|
|
209
|
+
this.destroyTooltip(), this.orientation === b.X && j(this.model) ? this.model.deleteXAxisGuide(this.index) : this.orientation === b.Y && Y(this.model) && this.model.deleteYAxisGuide(this.index), this.arcgisChartsConfigGuideChange.emit({
|
|
210
210
|
index: this.index,
|
|
211
211
|
orientation: this.orientation,
|
|
212
212
|
isDelete: !0
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
renderColorElement() {
|
|
216
|
-
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ?
|
|
216
|
+
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ? V(e.style) : ee.Solid, f = p(s, r) === g.SLS ? `line-${v}` : "square-f";
|
|
217
217
|
return d`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${n(o.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${L({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
@@ -7,7 +7,7 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as A, html as a } from "lit";
|
|
8
8
|
import { createRef as x, ref as C } from "lit/directives/ref.js";
|
|
9
9
|
import { LitElement as b, renderElement as v, safeClassMap as c } from "@arcgis/lumina";
|
|
10
|
-
import { q as h, r as u } from "../../chunks/type-
|
|
10
|
+
import { q as h, r as u } from "../../chunks/type-guards.js";
|
|
11
11
|
import { G as s } from "../../chunks/common.js";
|
|
12
12
|
const P = A`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.add-guide{display:flex;justify-content:center;padding:.5rem}.add-guide-btn{width:100%}.no-guides{border-radius:2rem}.no-messages{text-align:center}.guide-icon{padding-left:.5rem;padding-top:.5rem;width:1.5rem;height:1.5rem}`;
|
|
13
13
|
class $ extends b {
|
|
@@ -4,7 +4,7 @@ import { LitElement as l } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as n, html as i } from "lit";
|
|
5
5
|
import { C as s } from "../../chunks/interfaces.js";
|
|
6
6
|
import { isEqual as d } from "es-toolkit/compat";
|
|
7
|
-
import {
|
|
7
|
+
import { c9 as h, ca as c, v as f } from "../../chunks/index.js";
|
|
8
8
|
const p = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends l {
|
|
10
10
|
static {
|
|
@@ -7,8 +7,8 @@ import { css as N, html as i } from "lit";
|
|
|
7
7
|
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
8
|
import { parseInt as _, camelCase as H } from "es-toolkit/compat";
|
|
9
9
|
import { DateTime as L } from "luxon";
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
10
|
+
import { u as T, B as x, ck as O, C as U } from "../../chunks/index.js";
|
|
11
|
+
import { u as R } from "../../chunks/useT9n.js";
|
|
12
12
|
import { c as s, W as k } from "../../chunks/interfaces.js";
|
|
13
13
|
import { x as W } from "../../chunks/data.js";
|
|
14
14
|
import { l as v, s as q } from "../../chunks/chart-ui-utils.js";
|
|
@@ -16,10 +16,9 @@ import { c as $, g as K, a as V, b as z } from "../../chunks/class-breaks.js";
|
|
|
16
16
|
import { e as X, a as Z } from "../../chunks/store.js";
|
|
17
17
|
import { H as G } from "../../chunks/common.js";
|
|
18
18
|
import { b as j } from "../../chunks/rest-js-object-literals.js";
|
|
19
|
-
import { d
|
|
20
|
-
import { J, I as Q, i as ee, R as
|
|
21
|
-
import {
|
|
22
|
-
import { i as ae } from "../../chunks/index4.js";
|
|
19
|
+
import { d, h, l as p, a as C, n as u, q as F, r as Y } from "../../chunks/chart-object-literals.js";
|
|
20
|
+
import { J, I as Q, i as ee, R as m } from "../../chunks/index2.js";
|
|
21
|
+
import { i as ae } from "../../chunks/index3.js";
|
|
23
22
|
import { r as te } from "../../chunks/popover-ui-utils.js";
|
|
24
23
|
const se = N`.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{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}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`, r = {
|
|
25
24
|
label: "label",
|
|
@@ -30,19 +29,19 @@ const se = N`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.
|
|
|
30
29
|
};
|
|
31
30
|
class le extends E {
|
|
32
31
|
constructor() {
|
|
33
|
-
super(...arguments), this._messages =
|
|
32
|
+
super(...arguments), this._messages = R(), this.commonStrings = R({ name: "common", blocking: !0 }), this.heatChartPopover = null, this.xAxisFieldElement = n(), this.aggregationElement = n(), this.numericFieldsElement = n(), this.calendarTypeElement = n(), this.calendarViewTypeElement = n(), this.classBreakMethodElement = n(), this.nullElement = n(), this.breaksCountElement = n(), this.colorSchemeElement = n(), this.onHeatChartDataPopoverChange = async (e) => {
|
|
34
33
|
try {
|
|
35
34
|
if (e.detail?.value !== void 0) {
|
|
36
35
|
const { contentKind: a } = e.detail, t = e.detail.value;
|
|
37
36
|
switch (a) {
|
|
38
37
|
case s.aggregation:
|
|
39
|
-
this.model.aggregationType = t, t ===
|
|
38
|
+
this.model.aggregationType = t, t === d.Count || t === d.Sum ? this.model.nullPolicy = h.Zero : this.model.nullPolicy = h.Null;
|
|
40
39
|
break;
|
|
41
40
|
case s.xAxisField:
|
|
42
41
|
this.model.xAxisField = t, this.setDefaultPropertiesForCalendarHeatChart();
|
|
43
42
|
break;
|
|
44
43
|
case s.numericFields:
|
|
45
|
-
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType ===
|
|
44
|
+
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === d.Count && this.model.numericFields[0] !== T(this.model.layer).idField && (this.model.aggregationType = d.Sum);
|
|
46
45
|
break;
|
|
47
46
|
case s.calendarType: {
|
|
48
47
|
this.applyCalendarTypePreset(t);
|
|
@@ -186,7 +185,7 @@ class le extends E {
|
|
|
186
185
|
return W({
|
|
187
186
|
fieldName: this.model.xAxisField,
|
|
188
187
|
fieldList: this.layerFieldsInfo
|
|
189
|
-
}) ? "" :
|
|
188
|
+
}) ? "" : x(this.layerFieldsInfo, this.model.xAxisField);
|
|
190
189
|
}
|
|
191
190
|
onXAxisFieldSelect(e) {
|
|
192
191
|
this.contentKind = s.xAxisField, this.setupPopover(e);
|
|
@@ -205,7 +204,7 @@ class le extends E {
|
|
|
205
204
|
}
|
|
206
205
|
async onBreaksCountChange(e) {
|
|
207
206
|
let a = _(e.target.value);
|
|
208
|
-
a <
|
|
207
|
+
a < m.min ? a = m.min : a > m.max && (a = m.max), O(a) && (this.breaksCountElement.value && (this.breaksCountElement.value.value = a.toString()), this.requestedBreaksCount = a, this.model.breaksCount = a, await this.generateAndUpdateClassBreaks());
|
|
209
208
|
}
|
|
210
209
|
onAggregationSelect(e) {
|
|
211
210
|
this.contentKind = s.aggregation, this.setupPopover(e);
|
|
@@ -255,17 +254,17 @@ class le extends E {
|
|
|
255
254
|
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = te(this.heatChartPopover));
|
|
256
255
|
}
|
|
257
256
|
setDefaultPropertiesForCalendarHeatChart() {
|
|
258
|
-
this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(G.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = F.naturalBreaks), this.model.heatRulesType !== u.Renderer && (this.model.heatRulesType = u.Renderer), this.model.viewType === void 0 && (this.model.viewType = Y.singleCalendarView), (this.model.aggregationType ===
|
|
257
|
+
this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(G.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = F.naturalBreaks), this.model.heatRulesType !== u.Renderer && (this.model.heatRulesType = u.Renderer), this.model.viewType === void 0 && (this.model.viewType = Y.singleCalendarView), (this.model.aggregationType === d.Count || this.model.aggregationType === d.Sum) && this.model.nullPolicy !== h.Zero && (this.model.nullPolicy = h.Zero), this.model.colorRampName === void 0 && (this.model.colorRampName = $.defaultColorRampForCharts?.name);
|
|
259
258
|
}
|
|
260
259
|
renderXAxisFieldSelect() {
|
|
261
260
|
const e = this.getCorrectedXAxisFieldValue();
|
|
262
261
|
return i`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${c(this.xAxisFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
263
262
|
}
|
|
264
263
|
renderAggregation() {
|
|
265
|
-
return i`<arcgis-charts-config-field-picker .label=${this.model.aggregationType ===
|
|
264
|
+
return i`<arcgis-charts-config-field-picker .label=${this.model.aggregationType === d.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${c(this.aggregationElement)}></arcgis-charts-config-field-picker>`;
|
|
266
265
|
}
|
|
267
266
|
renderNumericFieldsSelect() {
|
|
268
|
-
const e = this.model.numericFields?.[0] ===
|
|
267
|
+
const e = this.model.numericFields?.[0] === T(this.model.layer).idField ? "" : x(this.layerFieldsInfo, this.model.numericFields?.[0]);
|
|
269
268
|
return i`<arcgis-charts-config-field-picker .label=${e} @click=${this.onNumericFieldSelect} ${c(this.numericFieldsElement)}></arcgis-charts-config-field-picker>`;
|
|
270
269
|
}
|
|
271
270
|
renderCalendarTypeSelect() {
|
|
@@ -304,7 +303,7 @@ class le extends E {
|
|
|
304
303
|
}
|
|
305
304
|
render() {
|
|
306
305
|
const e = this.renderXAxisFieldSelect(), a = this.renderAggregation(), t = this.renderNumericFieldsSelect(), l = this.renderCalendarTypeSelect(), g = this.renderClassBreakMethodSelect(), f = this.renderColorRampSelect(), y = this.renderClassBreaksTable(), b = this.renderNullUI(), S = this.renderEmptyBins();
|
|
307
|
-
return i`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${l}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${g}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${
|
|
306
|
+
return i`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${l}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${g}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${m.min} .max=${m.max} .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === F.manual} step=1 .value=${q(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${c(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${f}</calcite-label>${b}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${y}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${S}</calcite-label>${v(this.model) === k.YearByMonthAndDayOfMonth ? i`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>` : null}`;
|
|
308
307
|
}
|
|
309
308
|
}
|
|
310
309
|
P("arcgis-charts-config-heat-chart-data", le);
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as T } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as d } from "lit/directives/repeat.js";
|
|
4
|
-
import { css as F, html as
|
|
4
|
+
import { css as F, html as l } from "lit";
|
|
5
5
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
6
6
|
import P from "@arcgis/core/Color.js";
|
|
7
|
-
import { LitElement as I, createEvent as h, safeClassMap as
|
|
7
|
+
import { LitElement as I, createEvent as h, safeClassMap as r, nothing as g, safeStyleMap as L } from "@arcgis/lumina";
|
|
8
8
|
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as S } from "es-toolkit/compat";
|
|
10
|
-
import {
|
|
10
|
+
import { B as D, b4 as A, b3 as E, C as v } from "../../chunks/index.js";
|
|
11
11
|
import { u as b } from "../../chunks/useT9n.js";
|
|
12
12
|
import { c, W as $ } from "../../chunks/interfaces.js";
|
|
13
|
-
import { c as y, b as
|
|
13
|
+
import { c as y, b as _, e as m } from "../../chunks/chart-ui-utils.js";
|
|
14
14
|
import { C as x, d as k } from "../../chunks/class-breaks.js";
|
|
15
|
-
import { d as
|
|
16
|
-
import { d as
|
|
17
|
-
import { e as
|
|
18
|
-
import { J as
|
|
19
|
-
import { aR as H, aQ as O } from "../../chunks/index.js";
|
|
15
|
+
import { d as B } from "../../chunks/rest-js-object-literals.js";
|
|
16
|
+
import { d as N, r as R, q as C } from "../../chunks/chart-object-literals.js";
|
|
17
|
+
import { e as M } from "../../chunks/popover-ui-utils.js";
|
|
18
|
+
import { J as H, r as O } from "../../chunks/index2.js";
|
|
20
19
|
const q = 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}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.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}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
|
|
21
20
|
name: "bar-chart-data-popover",
|
|
22
21
|
header: "header",
|
|
@@ -48,36 +47,36 @@ class W extends I {
|
|
|
48
47
|
await this.popoverElement.value?.reposition();
|
|
49
48
|
}
|
|
50
49
|
willUpdate() {
|
|
51
|
-
const e = y.map((t) =>
|
|
50
|
+
const e = y.map((t) => H(t, this.commonStrings));
|
|
52
51
|
S(this.aggregationLabels, e) || (this.aggregationLabels = e), this.colorRamps && this.colorRamps !== this.availableColorRamps && (this.availableColorRamps = this.colorRamps), this.contentKind === c.colorScheme && this.selectedContent && !this.selectedColorRampName && (this.selectedColorRampName = this.selectedContent);
|
|
53
52
|
}
|
|
54
53
|
updated() {
|
|
55
54
|
setTimeout(() => {
|
|
56
55
|
this.picklist.value?.setFocus();
|
|
57
|
-
},
|
|
56
|
+
}, _.PopoverTimer), M(this.popoverElement.value, this.open);
|
|
58
57
|
}
|
|
59
58
|
buildAggregationListItems() {
|
|
60
|
-
return d(y.filter((e) => e !==
|
|
59
|
+
return d(y.filter((e) => e !== N.NoAggregation), (e) => e, (e, t) => l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e, this.selectedContent)}></calcite-list-item>`);
|
|
61
60
|
}
|
|
62
61
|
buildPickListItem(e) {
|
|
63
|
-
return f(e.name,
|
|
62
|
+
return f(e.name, l`<calcite-list-item .label=${D(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${m(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
64
63
|
}
|
|
65
64
|
buildPickListItems(e) {
|
|
66
65
|
const t = this.layerFieldsInfo?.length ?? 0, a = [];
|
|
67
66
|
switch (e) {
|
|
68
67
|
case c.numericFields: {
|
|
69
|
-
const i = f(" ",
|
|
68
|
+
const i = f(" ", l`<calcite-list-item label=" " value=" " .selected=${m("", this.selectedContent)}></calcite-list-item>`);
|
|
70
69
|
a.push(i);
|
|
71
70
|
for (let o = 0; o < t; o += 1) {
|
|
72
71
|
const n = this.layerFieldsInfo?.[o];
|
|
73
|
-
n &&
|
|
72
|
+
n && E(n) && a.push(this.buildPickListItem(n));
|
|
74
73
|
}
|
|
75
74
|
break;
|
|
76
75
|
}
|
|
77
76
|
case c.xAxisField: {
|
|
78
77
|
for (let i = 0; i < t; i += 1) {
|
|
79
78
|
const o = this.layerFieldsInfo?.[i];
|
|
80
|
-
o &&
|
|
79
|
+
o && A(o) && a.push(this.buildPickListItem(o));
|
|
81
80
|
}
|
|
82
81
|
break;
|
|
83
82
|
}
|
|
@@ -163,34 +162,34 @@ class W extends I {
|
|
|
163
162
|
this.model.emptyCellText !== t && (this.model.emptyCellText = t, this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({ name: t }));
|
|
164
163
|
}
|
|
165
164
|
colorChange(e) {
|
|
166
|
-
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n =
|
|
165
|
+
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n = O * 255;
|
|
167
166
|
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i, o, n] });
|
|
168
167
|
}
|
|
169
168
|
renderAggregationType() {
|
|
170
169
|
const e = this.buildAggregationListItems();
|
|
171
|
-
return
|
|
170
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
172
171
|
}
|
|
173
172
|
renderXAxisFieldSelect() {
|
|
174
173
|
const e = this.buildPickListItems(c.xAxisField);
|
|
175
|
-
return
|
|
174
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
176
175
|
}
|
|
177
176
|
renderNumericFields() {
|
|
178
177
|
const e = this.buildPickListItems(c.numericFields);
|
|
179
|
-
return
|
|
178
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
180
179
|
}
|
|
181
180
|
renderCalendarType() {
|
|
182
|
-
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !==
|
|
181
|
+
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !== B.DateOnly), a = d(t, (i) => i, (i) => {
|
|
183
182
|
const o = this._messages[i];
|
|
184
|
-
return
|
|
183
|
+
return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i, this.selectedContent)}></calcite-list-item>`;
|
|
185
184
|
});
|
|
186
|
-
return
|
|
185
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${a}</calcite-list>`;
|
|
187
186
|
}
|
|
188
187
|
renderCalendarViewType() {
|
|
189
188
|
const e = d(Object.values(R), (t) => t, (t) => {
|
|
190
189
|
const a = this._messages[t];
|
|
191
|
-
return
|
|
190
|
+
return l`<calcite-list-item .label=${a} .value=${t} .disabled=${t !== R.singleCalendarView} .selected=${m(t, this.selectedContent)}></calcite-list-item>`;
|
|
192
191
|
});
|
|
193
|
-
return
|
|
192
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
194
193
|
}
|
|
195
194
|
renderClassBreakMethod() {
|
|
196
195
|
const e = [
|
|
@@ -211,9 +210,9 @@ class W extends I {
|
|
|
211
210
|
}
|
|
212
211
|
], t = d(Object.values(e), ({ value: a }) => a, (a) => {
|
|
213
212
|
const { title: i, msg: o, value: n } = a;
|
|
214
|
-
return
|
|
213
|
+
return l`<calcite-list-item .label=${i} .description=${o} .value=${n} .selected=${m(n, this.selectedContent)}></calcite-list-item>`;
|
|
215
214
|
});
|
|
216
|
-
return
|
|
215
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${t}</calcite-list>`;
|
|
217
216
|
}
|
|
218
217
|
renderPopoverInfo() {
|
|
219
218
|
let e;
|
|
@@ -243,24 +242,24 @@ class W extends I {
|
|
|
243
242
|
e = this.renderEmptyCellUI();
|
|
244
243
|
break;
|
|
245
244
|
default:
|
|
246
|
-
e =
|
|
245
|
+
e = l`<div></div>`;
|
|
247
246
|
break;
|
|
248
247
|
}
|
|
249
248
|
return e;
|
|
250
249
|
}
|
|
251
250
|
renderColorRampSelect() {
|
|
252
251
|
const e = this.filterColorRamps(), t = this._messages?.colorRampCategories ? this._messages.colorRampCategories[this.selectedCategory] : this.selectedCategory;
|
|
253
|
-
return
|
|
252
|
+
return l`<div class=${r(s.colorRampPopover)}><div class=${r(s.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories ?? "All color ramps" ?? g}>${Object.keys(k).map((a) => l`<calcite-dropdown-item data-tag=${a ?? g} .selected=${this.selectedCategory === a}>${this._messages?.colorRampCategories ? this._messages.colorRampCategories[a] : a}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${this.onFlipAll}>${this._messages?.colorRamp?.flipRampColors}</calcite-button></div><div class=${r(s.rampGrid)}>${e.length === 0 && l`<div class=${r(s.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${this.selectedCategory !== "all" ? `"${this.selectedCategory}"` : ""}</div>` || ""}${e.map((a) => {
|
|
254
253
|
const i = this.getRampColors(a), o = a.name === this.selectedColorRampName;
|
|
255
|
-
return
|
|
256
|
-
})}</div><div class=${
|
|
254
|
+
return l`<div class=${`${s.rampItem} ${o ? "selected" : ""}`} title=${a.name ?? g} @click=${() => this.onRampSelect(a)}><div class=${r(s.rampName)} aria-hidden=true>${a.name}</div><div class=${r(s.rampStrips)}>${d(i, (n) => n, (n) => l`<div class=${r(s.rampStrip)} style=${L({ backgroundColor: this.rampColorToCss(n) })}></div>`)}${i.length === 0 && l`<div class=${`${s.rampStrip} ${s.rampStripFallback}`}></div>` || ""}</div></div>`;
|
|
255
|
+
})}</div><div class=${r(s.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`;
|
|
257
256
|
}
|
|
258
257
|
renderEmptyCellUI() {
|
|
259
258
|
const e = this.model.emptyCellSymbol?.color ?? v.grayColor, t = this.model.emptyCellText ?? v.nullCategory?.text ?? "";
|
|
260
|
-
return
|
|
259
|
+
return l`<div><div class=${r(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${r(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`;
|
|
261
260
|
}
|
|
262
261
|
render() {
|
|
263
|
-
return
|
|
262
|
+
return l`<div><calcite-popover class=${r(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`;
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
265
|
T("arcgis-charts-config-heat-chart-popover", W);
|
|
@@ -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 = [
|