@arcgis/charts-components 6.0.0-next.6 → 6.0.0-next.8
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/{4YPBPYT2.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/{SP2OUJAE.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/{WWMDDOKW.js → BILTOAXM.js} +1 -1
- package/dist/cdn/CX5HMAVB.js +2 -0
- package/dist/cdn/{EKPT25EF.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/{J6KIUQWW.js → H7EH6MJN.js} +1 -1
- package/dist/cdn/HKD2DTMQ.js +2 -0
- package/dist/cdn/HWJULHS4.js +2 -0
- 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/{OFJLWSKN.js → LNJSZCPC.js} +1 -1
- package/dist/cdn/{PIGINE4M.js → M7MSRLEE.js} +1 -1
- package/dist/cdn/{U7PBBWGS.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/{CIZUS2EL.js → U6AJIZZU.js} +1 -1
- package/dist/cdn/U75UR6WF.js +2 -0
- package/dist/cdn/{5BMOVHD7.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/{6T5V66TB.js → YSF3KSMB.js} +24 -24
- package/dist/cdn/Z3UCAFDO.js +2 -0
- package/dist/cdn/ZHKGWF55.js +2 -0
- package/dist/cdn/{5S3M57QS.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 +4943 -3839
- 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 +6240 -6069
- 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 +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/2CUBWUT6.js +0 -2
- package/dist/cdn/2E3WHSEW.js +0 -2
- package/dist/cdn/2NTEIXDC.js +0 -2
- package/dist/cdn/3BLCT5B3.js +0 -2
- package/dist/cdn/3KVXZ4Q7.js +0 -2
- package/dist/cdn/3R5OPVW7.js +0 -2
- package/dist/cdn/3TPIZXLQ.js +0 -2
- package/dist/cdn/5BFSYCQN.js +0 -2
- package/dist/cdn/5ORGE6FR.js +0 -2
- package/dist/cdn/6IODKSGJ.js +0 -2
- package/dist/cdn/6KYES23V.js +0 -2
- package/dist/cdn/6MQWBIAC.js +0 -2
- package/dist/cdn/6UY62IZQ.js +0 -2
- package/dist/cdn/7IGL5XAY.js +0 -2
- package/dist/cdn/7ZM3ISL6.js +0 -2
- package/dist/cdn/A5YDIX7U.js +0 -2
- package/dist/cdn/AGKAJN2K.js +0 -2
- package/dist/cdn/ASCE4YBS.js +0 -2
- package/dist/cdn/B6APNE72.js +0 -3
- package/dist/cdn/BAYPYA6T.js +0 -2
- package/dist/cdn/BENXDFDK.js +0 -2
- package/dist/cdn/BG2GEL6V.js +0 -2
- package/dist/cdn/BZ4HWKAF.js +0 -2
- package/dist/cdn/DLMKQ6I2.js +0 -2
- package/dist/cdn/DOC3MQJC.js +0 -2
- package/dist/cdn/ECONXQCG.js +0 -2
- package/dist/cdn/EJ2FAXEX.js +0 -2
- package/dist/cdn/EOAQOIWV.js +0 -2
- package/dist/cdn/FHTWTEA4.js +0 -2
- package/dist/cdn/FN5XFRQS.js +0 -2
- package/dist/cdn/G2DJJIGO.js +0 -2
- package/dist/cdn/HBFEI43W.js +0 -2
- package/dist/cdn/HFQGFEEC.js +0 -2
- package/dist/cdn/HNVWY4XA.js +0 -2
- package/dist/cdn/HRGA4VCV.js +0 -2
- package/dist/cdn/HSSNNVVK.js +0 -2
- package/dist/cdn/I64VVDLI.js +0 -2
- package/dist/cdn/IEOIKLLK.js +0 -2
- package/dist/cdn/IUM6GDBZ.js +0 -2
- package/dist/cdn/JDN6OXCC.js +0 -2
- package/dist/cdn/KHHQ3O5Q.js +0 -2
- package/dist/cdn/LIHIBT2F.js +0 -3
- package/dist/cdn/LLGBFUAJ.js +0 -2
- package/dist/cdn/LRAKZMK6.js +0 -2
- package/dist/cdn/LV6XVOC5.js +0 -2
- package/dist/cdn/M5M3RE6W.js +0 -2
- package/dist/cdn/NEHAS4YX.js +0 -2
- package/dist/cdn/OMR65IIM.js +0 -2
- package/dist/cdn/OP3AF4WI.js +0 -2
- package/dist/cdn/PR3CHNEH.js +0 -2
- package/dist/cdn/PTBNT4NV.js +0 -2
- package/dist/cdn/PWDBJLTW.js +0 -2
- package/dist/cdn/Q2QELGQX.js +0 -2
- package/dist/cdn/Q4I6HPPG.js +0 -2
- package/dist/cdn/QJL6FNQQ.js +0 -2
- package/dist/cdn/QMKBTPPL.js +0 -2
- package/dist/cdn/SEK42UT2.js +0 -2
- package/dist/cdn/SJPUWCSQ.js +0 -2
- package/dist/cdn/SKI5Z6UH.js +0 -2
- package/dist/cdn/SPRQ2OBE.js +0 -2
- package/dist/cdn/TT6IHBTH.js +0 -2
- package/dist/cdn/ULRG7JME.js +0 -2
- package/dist/cdn/UMOEONXM.js +0 -2
- package/dist/cdn/UYCPYSQI.js +0 -2
- package/dist/cdn/WBZEARYO.js +0 -2
- package/dist/cdn/WFAHWPGT.js +0 -2
- package/dist/cdn/WID7G6E7.js +0 -2
- package/dist/cdn/XFFDNZIQ.js +0 -2
- package/dist/cdn/YF7BOK2T.js +0 -2
- package/dist/cdn/ZCC7V2A2.js +0 -2
- package/dist/cdn/ZI7QPEAF.js +0 -2
- package/dist/cdn/ZM5C3KIP.js +0 -2
- package/dist/cdn/ZMBD4NTY.js +0 -4
- package/dist/cdn/ZN7A4NI2.js +0 -2
- package/dist/cdn/ZQAM5BZI.js +0 -2
- package/dist/cdn/ZYYBMTVE.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
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as N } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as V } from "lit/directives/repeat.js";
|
|
4
|
-
import { keyed as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { i as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { isEqual as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { h as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { r as le } from "../../chunks/popover-ui-utils.js";
|
|
26
|
-
import { a as o, e as ne } from "../../chunks/chart-object-literals.js";
|
|
4
|
+
import { keyed as $ } from "lit/directives/keyed.js";
|
|
5
|
+
import { substitute as _ } from "@arcgis/core/intl.js";
|
|
6
|
+
import { C as n } from "../../chunks/interfaces.js";
|
|
7
|
+
import { i as U } from "../../chunks/rotated-state.js";
|
|
8
|
+
import { createModel as R } from "../../model/shared/setup-utils.js";
|
|
9
|
+
import { f as x, e as z, k as H, j as T, l as v, m as O } from "../../chunks/type-guards.js";
|
|
10
|
+
import { isEqual as k, cloneDeep as W } from "es-toolkit/compat";
|
|
11
|
+
import { a as r, e as G } from "../../chunks/chart-object-literals.js";
|
|
12
|
+
import { i as F } from "../../chunks/index3.js";
|
|
13
|
+
import { cb as E, cc as X, l as b, C as Z, cd as I, ce as j, ay as q } from "../../chunks/index.js";
|
|
14
|
+
import { LitElement as K, createEvent as C, renderElement as L, safeStyleMap as Y, safeClassMap as d } from "@arcgis/lumina";
|
|
15
|
+
import { css as Q, html as h } from "lit";
|
|
16
|
+
import { createRef as J, ref as ee } from "lit/directives/ref.js";
|
|
17
|
+
import { u as P } from "../../chunks/useT9n.js";
|
|
18
|
+
import { c as te, a as M, g as ae } from "../../chunks/store.js";
|
|
19
|
+
import { a as ie } from "../../chunks/chart-ui-utils.js";
|
|
20
|
+
import { h as se, f as y } from "../../chunks/web-component-utils.js";
|
|
21
|
+
import { C as S } from "../../chunks/index4.js";
|
|
22
|
+
import { g as B } from "../../chunks/chart-ui-utils2.js";
|
|
23
|
+
import { r as re } from "../../chunks/popover-ui-utils.js";
|
|
24
|
+
import { A as oe } from "../../chunks/axis-model-wrapper.js";
|
|
27
25
|
const m = {
|
|
28
26
|
chartUIComponent: "chart-ui-component",
|
|
29
27
|
tabBar: "tab-bar",
|
|
@@ -33,21 +31,36 @@ function w(p, e) {
|
|
|
33
31
|
const t = /* @__PURE__ */ new Set();
|
|
34
32
|
let a = e;
|
|
35
33
|
return p?.forEach((i, s) => {
|
|
36
|
-
const
|
|
37
|
-
(t.has(
|
|
34
|
+
const o = i.chartId;
|
|
35
|
+
(t.has(o) || o === void 0 || o === "") && (i.chartId = `Chart_${Date.now()}_${s}`, e === o && (a = i.chartId)), t.add(o);
|
|
38
36
|
}), a;
|
|
39
37
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
38
|
+
function D(p) {
|
|
39
|
+
const { layerRasterInfo: e, layerId: t, layerType: a } = p;
|
|
40
|
+
let i = [];
|
|
41
|
+
return X(a) && t !== void 0 ? (i = [r.HistogramSeries, r.ScatterSeries], e?.attributeTable && i.push(r.BarSeries)) : a === "parquet" ? i = [
|
|
42
|
+
r.BarSeries,
|
|
43
|
+
r.LineSeries,
|
|
44
|
+
r.PieSeries,
|
|
45
|
+
r.HistogramSeries
|
|
46
|
+
] : i = [
|
|
47
|
+
r.HistogramSeries,
|
|
48
|
+
r.BarSeries,
|
|
49
|
+
r.BoxPlotSeries,
|
|
50
|
+
r.HeatSeries,
|
|
51
|
+
r.LineSeries,
|
|
52
|
+
r.PieSeries,
|
|
53
|
+
r.ScatterSeries
|
|
54
|
+
], i;
|
|
42
55
|
}
|
|
43
|
-
function
|
|
56
|
+
function le(p) {
|
|
44
57
|
const { modelList: e, layerList: t, activeLayerId: a, disableEditing: i } = p, s = /* @__PURE__ */ new Map();
|
|
45
|
-
return e?.forEach((
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
}), i || t.forEach((
|
|
58
|
+
return e?.forEach((o) => {
|
|
59
|
+
const c = o.layer;
|
|
60
|
+
c && s.set(c.id, c);
|
|
61
|
+
}), i || t.forEach((o) => s.set(o.id, o)), Array.from(s.values()).filter((o) => !a || o.id === a);
|
|
49
62
|
}
|
|
50
|
-
function
|
|
63
|
+
function ne(p, e) {
|
|
51
64
|
p.forEach((t) => {
|
|
52
65
|
e.forEach((a) => {
|
|
53
66
|
t?.id === a.layer?.id && A(t, a);
|
|
@@ -57,117 +70,109 @@ function de(p, e) {
|
|
|
57
70
|
function A(p, e) {
|
|
58
71
|
const t = p;
|
|
59
72
|
if (t) {
|
|
60
|
-
const a = [...t?.charts ?? []], i = a?.findIndex((
|
|
73
|
+
const a = [...t?.charts ?? []], i = a?.findIndex((o) => o.id === e.chartId);
|
|
61
74
|
let s = !1;
|
|
62
|
-
i !== void 0 && i > -1 ? (s = !
|
|
75
|
+
i !== void 0 && i > -1 ? (s = !k(a[i], e.config), a[i] = e.config) : t && !F(e.config) && (s = !0, a.push(e.config)), s && (t.charts = a);
|
|
63
76
|
}
|
|
64
77
|
}
|
|
65
|
-
function
|
|
78
|
+
function ce(p, e) {
|
|
66
79
|
const t = p;
|
|
67
80
|
if (t) {
|
|
68
81
|
const a = [...t.charts ?? []], i = a.findIndex((s) => s.id === e);
|
|
69
82
|
i > -1 && (a.splice(i, 1), t.charts = a);
|
|
70
83
|
}
|
|
71
84
|
}
|
|
72
|
-
function
|
|
85
|
+
function he(p, e) {
|
|
73
86
|
const t = p;
|
|
74
87
|
if (t) {
|
|
75
88
|
let a = [...t.charts ?? []];
|
|
76
|
-
a =
|
|
89
|
+
a = E({
|
|
77
90
|
arrayA: a,
|
|
78
91
|
arrayB: e.map((i) => i.config),
|
|
79
92
|
getKey: (i) => i.id ?? i.title?.content.text ?? ""
|
|
80
93
|
}), t.charts = a;
|
|
81
94
|
}
|
|
82
95
|
}
|
|
83
|
-
const
|
|
84
|
-
class
|
|
96
|
+
const de = Q`.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;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
97
|
+
class me extends K {
|
|
85
98
|
constructor() {
|
|
86
|
-
super(), this.selectChartTypePopover = null, this.chartsListFlowItem =
|
|
87
|
-
o.BarSeries,
|
|
88
|
-
o.BoxPlotSeries,
|
|
89
|
-
o.LineSeries,
|
|
90
|
-
o.PieSeries,
|
|
91
|
-
o.HistogramSeries,
|
|
92
|
-
o.ScatterSeries,
|
|
93
|
-
o.HeatSeries
|
|
94
|
-
], this._messages = I(), this.commonStrings = I({ name: "common", blocking: !0 }), this.chartDataProcessComplete = async (e) => {
|
|
99
|
+
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = J(), this._messages = P(), this.commonStrings = P({ name: "common", blocking: !0 }), this.chartDataProcessComplete = async (e) => {
|
|
95
100
|
const t = e, { chartData: a, model: i } = t.detail, s = this.getModel(this.selectedChartId);
|
|
96
101
|
if (i?.isSameChartAs(s))
|
|
97
102
|
switch (s?.chartType) {
|
|
98
|
-
case
|
|
99
|
-
if (this.chartData = a, i && (i.dataStore.chartData = a,
|
|
100
|
-
const
|
|
101
|
-
l !== void 0 &&
|
|
103
|
+
case r.HistogramSeries:
|
|
104
|
+
if (this.chartData = a, i && (i.dataStore.chartData = a, b(i.layer))) {
|
|
105
|
+
const c = i, l = a?.bins?.length;
|
|
106
|
+
l !== void 0 && c.binCount !== l && (c.binCount = l);
|
|
102
107
|
}
|
|
103
108
|
break;
|
|
104
|
-
case
|
|
109
|
+
case r.PieSeries: {
|
|
105
110
|
this.chartData = a, i && (i.dataStore.chartData = a);
|
|
106
111
|
break;
|
|
107
112
|
}
|
|
108
|
-
case
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
Number.isFinite(
|
|
113
|
+
case r.ScatterSeries: {
|
|
114
|
+
const c = a, { dataItems: l, r2: u, aggregated: g } = c;
|
|
115
|
+
let f = u;
|
|
116
|
+
Number.isFinite(u) || (f = void 0), this.r2 = f, H(i) && (i.dataStore.r2 = f, i.dataStore.aggregated = g, g && (i.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(l), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
112
117
|
break;
|
|
113
118
|
}
|
|
114
|
-
case
|
|
115
|
-
case
|
|
116
|
-
const { dataItems:
|
|
117
|
-
(
|
|
119
|
+
case r.LineSeries:
|
|
120
|
+
case r.BarSeries: {
|
|
121
|
+
const { dataItems: c, timeIntervalInfo: l } = a;
|
|
122
|
+
(x(s) || z(s) && s.binTemporalData) && (l?.size !== void 0 && s.temporalBinningSize !== l?.size && (s.temporalBinningSize = l?.size), l?.unit !== void 0 && s.temporalBinningUnit !== l?.unit && l?.unit !== G.Quarter && (s.temporalBinningUnit = l?.unit), l?.size !== void 0 && l?.unit !== void 0 && te(M, { size: l.size, unit: l.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(c), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
118
123
|
break;
|
|
119
124
|
}
|
|
120
125
|
}
|
|
121
126
|
}, this.chartAxesMinMaxChange = (e) => {
|
|
122
|
-
const t = e, { bounds: a, model: i } = t.detail, s = this.getModel(this.selectedChartId),
|
|
123
|
-
if (
|
|
124
|
-
switch (
|
|
125
|
-
case
|
|
126
|
-
case
|
|
127
|
-
case
|
|
128
|
-
case
|
|
129
|
-
case
|
|
127
|
+
const t = e, { bounds: a, model: i } = t.detail, s = this.getModel(this.selectedChartId), o = i?.isSameChartAs(s), c = s?.chartType;
|
|
128
|
+
if (o)
|
|
129
|
+
switch (c) {
|
|
130
|
+
case r.BarSeries:
|
|
131
|
+
case r.BoxPlotSeries:
|
|
132
|
+
case r.LineSeries:
|
|
133
|
+
case r.HistogramSeries:
|
|
134
|
+
case r.ScatterSeries:
|
|
130
135
|
this.calculatedMinMaxBounds = a, i && (i.dataStore.calculatedMinMaxBounds = a), this.updateAxesBoundsInAppState(a);
|
|
131
136
|
break;
|
|
132
137
|
}
|
|
133
138
|
}, this.chartSeriesColorChange = (e) => {
|
|
134
|
-
const t = e, { colorMatchApplied: a, data: i, model: s } = t.detail,
|
|
135
|
-
if (s?.isSameChartAs(
|
|
136
|
-
switch (
|
|
137
|
-
case
|
|
138
|
-
case
|
|
139
|
-
case
|
|
140
|
-
case
|
|
139
|
+
const t = e, { colorMatchApplied: a, data: i, model: s } = t.detail, o = this.getModel(this.selectedChartId);
|
|
140
|
+
if (s?.isSameChartAs(o))
|
|
141
|
+
switch (o?.chartType) {
|
|
142
|
+
case r.BarSeries:
|
|
143
|
+
case r.BoxPlotSeries:
|
|
144
|
+
case r.LineSeries:
|
|
145
|
+
case r.HistogramSeries:
|
|
141
146
|
this.seriesColor = i, s && (s.dataStore.seriesColor = i), this.applyNullCategorySeriesColor({
|
|
142
147
|
colorMatchApplied: a,
|
|
143
148
|
data: i,
|
|
144
|
-
model:
|
|
149
|
+
model: o
|
|
145
150
|
});
|
|
146
151
|
break;
|
|
147
|
-
case
|
|
152
|
+
case r.PieSeries: {
|
|
148
153
|
const l = /* @__PURE__ */ new Map([[0, i]]);
|
|
149
154
|
this.seriesColor = l, s && (s.dataStore.seriesColor = l);
|
|
150
155
|
break;
|
|
151
156
|
}
|
|
152
|
-
case
|
|
157
|
+
case r.ScatterSeries:
|
|
153
158
|
}
|
|
154
159
|
}, this.chartNoRenderPropChange = (e) => {
|
|
155
|
-
const t = e, { propName: a, value: i, model: s } = t.detail,
|
|
156
|
-
if (
|
|
160
|
+
const t = e, { propName: a, value: i, model: s } = t.detail, o = this.modelList.find((c) => s?.isSameChartAs(c));
|
|
161
|
+
if (o)
|
|
157
162
|
switch (a) {
|
|
158
163
|
case "rotation":
|
|
159
|
-
typeof i == "boolean" &&
|
|
164
|
+
typeof i == "boolean" && U(o) && (o.rotated = i);
|
|
160
165
|
break;
|
|
161
166
|
case "legendPosition":
|
|
162
|
-
typeof i == "string" &&
|
|
167
|
+
typeof i == "string" && T(o) && (o.legendPosition = i);
|
|
163
168
|
break;
|
|
164
169
|
case "legendVisibility":
|
|
165
|
-
typeof i == "boolean" &&
|
|
170
|
+
typeof i == "boolean" && T(o) && (o.legendVisibility = i);
|
|
166
171
|
break;
|
|
167
172
|
}
|
|
168
173
|
}, this.chartLegendItemVisibilityChange = (e) => {
|
|
169
|
-
const t = e, { legendItemVisibility: a, model: i } = t.detail, s = this.modelList.find((
|
|
170
|
-
s?.setSeriesVisibility(a),
|
|
174
|
+
const t = e, { legendItemVisibility: a, model: i } = t.detail, s = this.modelList.find((o) => i?.isSameChartAs(o));
|
|
175
|
+
s?.setSeriesVisibility(a), v(s) && ((s.getMinBound(1) === null || Number.isNaN(s.getMinBound(1))) && s.setMinBound(null, 1), (s.getMaxBound(1) === null || Number.isNaN(s.getMaxBound(1))) && s.setMaxBound(null, 1), x(s) && ((s.getMinBound(0) === null || Number.isNaN(s.getMinBound(0))) && s.setMinBound(null, 0), (s.getMaxBound(0) === null || Number.isNaN(s.getMaxBound(0))) && s.setMaxBound(null, 0)));
|
|
171
176
|
}, this.onSelectChartTypeChange = (e) => {
|
|
172
177
|
this.currentChartTypeText = "", this.calculatedDataMinMaxBounds = void 0, this.calculatedMinMaxBounds = void 0, this.removeSelectChartTypePopover();
|
|
173
178
|
const { selectedModelType: t, layerId: a } = e.target;
|
|
@@ -184,13 +189,13 @@ class ge extends X {
|
|
|
184
189
|
A(t?.layer, t);
|
|
185
190
|
}
|
|
186
191
|
this.requestUpdate();
|
|
187
|
-
}, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.close = !1, this.usePopupTemplateFieldsInfo = !1, this.panelNumber = 0, this.filterBySelection = !1, this.arcgisChartsConfigChartViewChartClose =
|
|
192
|
+
}, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.close = !1, this.usePopupTemplateFieldsInfo = !1, this.panelNumber = 0, this.filterBySelection = !1, this.arcgisChartsConfigChartViewChartClose = C(), this.arcgisChartsConfigModelListChange = C(), this.arcgisChartsConfigNewChart = C(), this.arcgisChartsConfigPanelNumberChange = C(), this.arcgisChartsConfigSelectedChartChange = C(), this.addChartEventListeners(), this.listen("arcgisChartsConfigModelListReorder", this.modelListReorderChangeListener);
|
|
188
193
|
}
|
|
189
194
|
static {
|
|
190
|
-
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: y }], layerList: [0, { hasChanged: y }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1, close: 5, chartData: [0, { hasChanged: y }], view: 0, r2: 9, calculatedDataMinMaxBounds: [0, { hasChanged: y }], calculatedMinMaxBounds: [0, { hasChanged: y }], seriesColor: [0, { hasChanged:
|
|
195
|
+
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: y }], layerList: [0, { hasChanged: y }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1, close: 5, chartData: [0, { hasChanged: y }], view: 0, r2: 9, calculatedDataMinMaxBounds: [0, { hasChanged: y }], calculatedMinMaxBounds: [0, { hasChanged: y }], seriesColor: [0, { hasChanged: se }], popoverPlacement: 1, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5, panelNumber: 9, filterBySelection: 5 };
|
|
191
196
|
}
|
|
192
197
|
static {
|
|
193
|
-
this.styles =
|
|
198
|
+
this.styles = de;
|
|
194
199
|
}
|
|
195
200
|
async setFocus() {
|
|
196
201
|
await this.chartsListFlowItem.value?.setFocus();
|
|
@@ -208,7 +213,7 @@ class ge extends X {
|
|
|
208
213
|
}
|
|
209
214
|
applyNullCategorySeriesColor(e) {
|
|
210
215
|
const { colorMatchApplied: t, data: a, model: i } = e;
|
|
211
|
-
|
|
216
|
+
O(i) && i.nullCategory === void 0 && (i.nullCategory = this.getDefaultNullCategory(t ? this.getSeriesColor(a) : void 0));
|
|
212
217
|
}
|
|
213
218
|
getSeriesColor(e) {
|
|
214
219
|
const t = e.get(0);
|
|
@@ -216,12 +221,12 @@ class ge extends X {
|
|
|
216
221
|
return t && "color" in t ? a = t.color : t && "lineSymbol" in t && (a = t.markerSymbol?.color ?? t.lineSymbol.color), a;
|
|
217
222
|
}
|
|
218
223
|
getDefaultNullCategory(e) {
|
|
219
|
-
const t = W(
|
|
224
|
+
const t = W(Z.nullCategory);
|
|
220
225
|
return e !== void 0 && (t.fillSymbol && (t.fillSymbol.color = e, t.fillSymbol.outline && (t.fillSymbol.outline.color = e)), t.markerSymbol && (t.markerSymbol.color = e, t.markerSymbol.outline && (t.markerSymbol.outline.color = e))), t;
|
|
221
226
|
}
|
|
222
227
|
modelListReorderChangeListener(e) {
|
|
223
228
|
const { modelList: t } = e.detail;
|
|
224
|
-
if (this.modelList =
|
|
229
|
+
if (this.modelList = E({
|
|
225
230
|
arrayA: this.modelList,
|
|
226
231
|
arrayB: t,
|
|
227
232
|
getKey: (a) => a.chartId ?? a.titleText ?? ""
|
|
@@ -229,33 +234,36 @@ class ge extends X {
|
|
|
229
234
|
const a = t.find((i) => i.layer?.id !== void 0)?.layer?.id;
|
|
230
235
|
if (a) {
|
|
231
236
|
const i = this.layerList.find((s) => s.id.toString() === a);
|
|
232
|
-
i &&
|
|
237
|
+
i && he(i, t);
|
|
233
238
|
}
|
|
234
239
|
}
|
|
235
240
|
}
|
|
236
241
|
async layerListChange() {
|
|
237
|
-
const e = [], t = this.layerList.map((i) => i.id.toString());
|
|
238
|
-
let a = [...this.modelList.filter((i) => t.includes(i.layer?.id ?? ""))];
|
|
242
|
+
const e = [], t = this.layerList.map((i) => i.id.toString()), a = [...this.modelList.filter((i) => t.includes(i.layer?.id ?? ""))];
|
|
239
243
|
for (let i of this.layerList ?? []) {
|
|
240
244
|
if (i.type === "sublayer") {
|
|
241
|
-
const
|
|
242
|
-
if (!
|
|
245
|
+
const u = await i.createFeatureLayer();
|
|
246
|
+
if (!u)
|
|
243
247
|
continue;
|
|
244
|
-
i =
|
|
248
|
+
i = u;
|
|
245
249
|
}
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
|
|
250
|
+
const o = i.charts, c = b(i) ? await I(i) : void 0, l = D({
|
|
251
|
+
layerRasterInfo: c,
|
|
252
|
+
layerId: i.id,
|
|
253
|
+
layerType: i.type
|
|
254
|
+
});
|
|
255
|
+
for (const u of o ?? []) {
|
|
256
|
+
let g;
|
|
257
|
+
j(l, u) && (g = await R({
|
|
249
258
|
layer: i,
|
|
250
|
-
config:
|
|
259
|
+
config: u,
|
|
251
260
|
commonStrings: this.commonStrings
|
|
252
|
-
});
|
|
253
|
-
l !== void 0 && e.push(l);
|
|
261
|
+
})), g && e.push(g);
|
|
254
262
|
}
|
|
255
263
|
}
|
|
256
264
|
w(e), e.forEach((i) => {
|
|
257
|
-
a.find((
|
|
258
|
-
}),
|
|
265
|
+
a.find((o) => o.isSameChartAs(i)) === void 0 && a.push(i);
|
|
266
|
+
}), this.modelList = a;
|
|
259
267
|
}
|
|
260
268
|
modelListChange(e, t) {
|
|
261
269
|
this.selectedChartId = w(e, this.selectedChartId), t?.forEach((i) => {
|
|
@@ -264,20 +272,20 @@ class ge extends X {
|
|
|
264
272
|
i.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
265
273
|
});
|
|
266
274
|
const a = this.getModel(this.selectedChartId);
|
|
267
|
-
this.currentChartTypeText = a?.chartType !== void 0 ?
|
|
275
|
+
this.currentChartTypeText = a?.chartType !== void 0 ? B({
|
|
268
276
|
chartType: a.chartType,
|
|
269
277
|
commonStrings: this.commonStrings,
|
|
270
278
|
config: a.config
|
|
271
|
-
}) : "", this.syncChartsToLayers && this.allowChartSyncing &&
|
|
279
|
+
}) : "", this.syncChartsToLayers && this.allowChartSyncing && ne(this.layerList, e), this.arcgisChartsConfigModelListChange.emit({ modelList: e });
|
|
272
280
|
}
|
|
273
281
|
selectedChartIdChange(e) {
|
|
274
|
-
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel =
|
|
282
|
+
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = n.Data;
|
|
275
283
|
const t = this.getModel(e);
|
|
276
|
-
this.setEventBasedPropsFromModelData(t), this.currentChartTypeText = t?.chartType !== void 0 ?
|
|
284
|
+
this.setEventBasedPropsFromModelData(t), this.currentChartTypeText = t?.chartType !== void 0 ? B({
|
|
277
285
|
chartType: t.chartType,
|
|
278
286
|
commonStrings: this.commonStrings,
|
|
279
287
|
config: t.config
|
|
280
|
-
}) : "", e !== void 0 && e !==
|
|
288
|
+
}) : "", e !== void 0 && e !== M.selectedChartId && (M.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
281
289
|
key: "key",
|
|
282
290
|
model: t
|
|
283
291
|
});
|
|
@@ -286,77 +294,74 @@ class ge extends X {
|
|
|
286
294
|
e === 0 ? this.clearPartialModels() : e === 1 && this.removeSelectChartTypePopover(), this.arcgisChartsConfigPanelNumberChange.emit({ panelNumber: e, modelList: this.modelList });
|
|
287
295
|
}
|
|
288
296
|
addChartEventListeners() {
|
|
289
|
-
this.listenOn(document,
|
|
297
|
+
this.listenOn(document, S.DataProcessComplete, this.chartDataProcessComplete), this.listenOn(document, S.AxesMinMaxChange, this.chartAxesMinMaxChange), this.listenOn(document, S.SeriesColorChange, this.chartSeriesColorChange), this.listenOn(document, S.NoRenderPropChange, this.chartNoRenderPropChange), this.listenOn(document, S.LegendItemVisibilityChange, this.chartLegendItemVisibilityChange);
|
|
290
298
|
}
|
|
291
299
|
getDataExtent(e) {
|
|
292
300
|
const t = this.getModel(this.selectedChartId)?.config;
|
|
293
301
|
let a = [];
|
|
294
302
|
if (t !== void 0 && e !== void 0) {
|
|
295
|
-
const i =
|
|
303
|
+
const i = q({
|
|
296
304
|
chartConfig: t,
|
|
297
305
|
chartData: e
|
|
298
|
-
}), { minY: s, maxY:
|
|
306
|
+
}), { minY: s, maxY: o, minX: c, maxX: l } = i;
|
|
299
307
|
a = [
|
|
300
|
-
{ isXAxis: !0, minimum:
|
|
301
|
-
{ isXAxis: !1, minimum: s, maximum:
|
|
308
|
+
{ isXAxis: !0, minimum: c, maximum: l },
|
|
309
|
+
{ isXAxis: !1, minimum: s, maximum: o }
|
|
302
310
|
];
|
|
303
311
|
}
|
|
304
312
|
return a;
|
|
305
313
|
}
|
|
306
314
|
updateAxesBoundsInAppState(e) {
|
|
307
315
|
e?.forEach((t) => {
|
|
308
|
-
const { isXAxis: a, maximum: i, minimum: s } = t,
|
|
309
|
-
if (
|
|
310
|
-
const
|
|
316
|
+
const { isXAxis: a, maximum: i, minimum: s } = t, o = this.getModel(this.selectedChartId);
|
|
317
|
+
if (o !== void 0 && v(o) && this.selectedChartId !== void 0) {
|
|
318
|
+
const c = new oe(o, a), l = ae({
|
|
311
319
|
chartId: this.selectedChartId,
|
|
312
320
|
isXAxis: a,
|
|
313
|
-
isLogarithmic:
|
|
314
|
-
}),
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
defaultMinBound:
|
|
321
|
+
isLogarithmic: c.getLogarithmic()
|
|
322
|
+
}), u = M.chartAxesBoundDataMap;
|
|
323
|
+
u[this.selectedChartId] === void 0 && (u[this.selectedChartId] = {});
|
|
324
|
+
const g = u[this.selectedChartId]?.[l], f = {
|
|
325
|
+
defaultMinBound: g?.defaultMinBound === g?.currMinBound ? s : g?.defaultMinBound,
|
|
318
326
|
currMinBound: s,
|
|
319
|
-
defaultMaxBound:
|
|
327
|
+
defaultMaxBound: g?.defaultMaxBound === g?.currMaxBound ? i : g?.defaultMaxBound,
|
|
320
328
|
currMaxBound: i
|
|
321
329
|
};
|
|
322
|
-
!
|
|
330
|
+
!k(g, f) && this.selectedChartId !== void 0 && u?.[this.selectedChartId] !== void 0 && (u[this.selectedChartId][l] = f);
|
|
323
331
|
}
|
|
324
332
|
});
|
|
325
333
|
}
|
|
326
|
-
getPlacement() {
|
|
327
|
-
let
|
|
328
|
-
return this.popoverPlacement !== void 0 ?
|
|
334
|
+
getPlacement(e) {
|
|
335
|
+
let t;
|
|
336
|
+
return this.popoverPlacement !== void 0 ? t = this.popoverPlacement : t = e <= 2 ? "bottom" : "top", t;
|
|
329
337
|
}
|
|
330
338
|
onBackFlow() {
|
|
331
339
|
this.panelNumber -= 1;
|
|
332
340
|
}
|
|
333
341
|
async onAddChartClick(e) {
|
|
334
|
-
const { referenceElement: t,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
this.
|
|
341
|
-
|
|
342
|
-
setupSelectChartTypePopover(e, t, a, i = !0) {
|
|
343
|
-
const s = this.getPlacement();
|
|
344
|
-
this.removeSelectChartTypePopover(), this.selectChartTypePopover = v(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${t} .layerType=${a} .isRasterBarChartSupported=${i} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`), !document.body.contains(this.selectChartTypePopover) && this.selectChartTypePopover !== null && document.body.appendChild(this.selectChartTypePopover);
|
|
342
|
+
const { referenceElement: t, layer: a } = e.detail;
|
|
343
|
+
this.removeSelectChartTypePopover();
|
|
344
|
+
const i = D({
|
|
345
|
+
layerId: a?.id,
|
|
346
|
+
layerType: a?.type,
|
|
347
|
+
layerRasterInfo: b(a) ? await I(a) : void 0
|
|
348
|
+
}), s = this.getPlacement(i.length);
|
|
349
|
+
this.selectChartTypePopover = L(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${t} open .layerId=${a?.id?.toString()} .layerType=${a?.type} .supportedChartTypes=${i} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`), !document.body.contains(this.selectChartTypePopover) && this.selectChartTypePopover !== null && document.body.appendChild(this.selectChartTypePopover);
|
|
345
350
|
}
|
|
346
351
|
getModel(e) {
|
|
347
352
|
return this.modelList?.find((t) => t.chartId === e);
|
|
348
353
|
}
|
|
349
354
|
removeSelectChartTypePopover() {
|
|
350
|
-
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover =
|
|
355
|
+
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = re(this.selectChartTypePopover));
|
|
351
356
|
}
|
|
352
357
|
clearPartialModels() {
|
|
353
|
-
this.modelList = this.modelList.filter((e) => !
|
|
358
|
+
this.modelList = this.modelList.filter((e) => !F(e.config));
|
|
354
359
|
}
|
|
355
360
|
onViewChartDelete(e) {
|
|
356
361
|
const { chartId: t } = e.detail;
|
|
357
362
|
if (t !== void 0) {
|
|
358
363
|
const a = this.modelList.find((s) => s.chartId === t), i = this.layerList.find((s) => s.id === a?.layer?.id);
|
|
359
|
-
this.modelList = [...this.modelList.filter((s) => s.chartId !== t)], i && this.syncChartsToLayers && this.allowChartSyncing &&
|
|
364
|
+
this.modelList = [...this.modelList.filter((s) => s.chartId !== t)], i && this.syncChartsToLayers && this.allowChartSyncing && ce(i, t);
|
|
360
365
|
}
|
|
361
366
|
}
|
|
362
367
|
onViewChartsSelect(e) {
|
|
@@ -405,46 +410,46 @@ class ge extends X {
|
|
|
405
410
|
a = "";
|
|
406
411
|
break;
|
|
407
412
|
}
|
|
408
|
-
this.tooltip =
|
|
413
|
+
this.tooltip = L(h`<calcite-tooltip style=${Y({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
409
414
|
}
|
|
410
415
|
destroyTooltip() {
|
|
411
|
-
|
|
416
|
+
ie(this.tooltip);
|
|
412
417
|
}
|
|
413
418
|
renderViewCharts() {
|
|
414
|
-
const e =
|
|
419
|
+
const e = le({
|
|
415
420
|
modelList: this.modelList,
|
|
416
421
|
layerList: this.layerList,
|
|
417
422
|
activeLayerId: this.activeLayerId,
|
|
418
423
|
disableEditing: this.disableEditing
|
|
419
424
|
});
|
|
420
|
-
return V(e, (t) => t.id, (t) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${
|
|
425
|
+
return V(e, (t) => t.id, (t) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${this.modelList.filter((a) => a.layer?.id === t.id)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
421
426
|
}
|
|
422
427
|
render() {
|
|
423
|
-
return this.close ? null : h`<calcite-flow>${
|
|
428
|
+
return this.close ? null : h`<calcite-flow>${$("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${ee(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
424
429
|
}
|
|
425
430
|
renderTabs() {
|
|
426
431
|
const e = this.getModel(this.selectedChartId);
|
|
427
|
-
return
|
|
432
|
+
return $("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? _(this._messages.pageFlowTitle, {
|
|
428
433
|
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
429
434
|
layerName: e?.layer?.title ?? ""
|
|
430
|
-
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(m.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(m.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel ===
|
|
431
|
-
this.selectedPanel =
|
|
432
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType ===
|
|
433
|
-
this.selectedPanel =
|
|
434
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType ===
|
|
435
|
-
this.selectedPanel =
|
|
436
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType ===
|
|
437
|
-
this.selectedPanel =
|
|
438
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType ===
|
|
439
|
-
this.selectedPanel =
|
|
440
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices ?? ""}></calcite-action>` : null}${e?.chartType !==
|
|
441
|
-
this.selectedPanel =
|
|
442
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes ?? ""}></calcite-action>` : null}${e?.chartType !==
|
|
443
|
-
this.selectedPanel =
|
|
444
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides ?? ""}></calcite-action>` : null}<calcite-action class=${d(m.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel ===
|
|
445
|
-
this.selectedPanel =
|
|
446
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format ?? ""}></calcite-action><calcite-action class=${d(m.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel ===
|
|
447
|
-
this.selectedPanel =
|
|
435
|
+
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(m.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(m.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === n.Data || this.selectedPanel === void 0} @click=${() => {
|
|
436
|
+
this.selectedPanel = n.Data;
|
|
437
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === r.BarSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
438
|
+
this.selectedPanel = n.Series;
|
|
439
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === r.LineSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
440
|
+
this.selectedPanel = n.Series;
|
|
441
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === r.BoxPlotSeries ? h`<calcite-action class=${d(m.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
442
|
+
this.selectedPanel = n.Series;
|
|
443
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === r.PieSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === n.Slices} @click=${() => {
|
|
444
|
+
this.selectedPanel = n.Slices;
|
|
445
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices ?? ""}></calcite-action>` : null}${e?.chartType !== r.PieSeries && e?.chartType !== r.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === n.Axes} @click=${() => {
|
|
446
|
+
this.selectedPanel = n.Axes;
|
|
447
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes ?? ""}></calcite-action>` : null}${e?.chartType !== r.PieSeries && e?.chartType !== r.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === n.Guides} @click=${() => {
|
|
448
|
+
this.selectedPanel = n.Guides;
|
|
449
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides ?? ""}></calcite-action>` : null}<calcite-action class=${d(m.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === n.Format} @click=${() => {
|
|
450
|
+
this.selectedPanel = n.Format;
|
|
451
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format ?? ""}></calcite-action><calcite-action class=${d(m.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === n.General} @click=${() => {
|
|
452
|
+
this.selectedPanel = n.General;
|
|
448
453
|
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general ?? ""}></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
449
454
|
}
|
|
450
455
|
renderChartUIComponent() {
|
|
@@ -452,32 +457,32 @@ class ge extends X {
|
|
|
452
457
|
let a = null;
|
|
453
458
|
if (e !== void 0 && !this.disableEditing)
|
|
454
459
|
switch (e?.chartType) {
|
|
455
|
-
case
|
|
456
|
-
a = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ??
|
|
460
|
+
case r.BarSeries:
|
|
461
|
+
a = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
|
|
457
462
|
break;
|
|
458
|
-
case
|
|
459
|
-
a = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ??
|
|
463
|
+
case r.LineSeries:
|
|
464
|
+
a = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
|
|
460
465
|
break;
|
|
461
|
-
case
|
|
462
|
-
a = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel ??
|
|
466
|
+
case r.PieSeries:
|
|
467
|
+
a = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
|
|
463
468
|
break;
|
|
464
|
-
case
|
|
465
|
-
a = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ??
|
|
469
|
+
case r.HistogramSeries:
|
|
470
|
+
a = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
|
|
466
471
|
break;
|
|
467
|
-
case
|
|
468
|
-
a = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .view=${this.view} .page=${this.selectedPanel ??
|
|
472
|
+
case r.ScatterSeries:
|
|
473
|
+
a = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .view=${this.view} .page=${this.selectedPanel ?? n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
|
|
469
474
|
break;
|
|
470
|
-
case
|
|
471
|
-
a = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ??
|
|
475
|
+
case r.BoxPlotSeries:
|
|
476
|
+
a = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
|
|
472
477
|
break;
|
|
473
|
-
case
|
|
474
|
-
a = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ??
|
|
478
|
+
case r.HeatSeries:
|
|
479
|
+
a = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? n.Data}></arcgis-charts-config-heat-chart>`;
|
|
475
480
|
break;
|
|
476
481
|
}
|
|
477
482
|
return a;
|
|
478
483
|
}
|
|
479
484
|
}
|
|
480
|
-
N("arcgis-charts-config-create-flow",
|
|
485
|
+
N("arcgis-charts-config-create-flow", me);
|
|
481
486
|
export {
|
|
482
|
-
|
|
487
|
+
me as ArcgisChartsConfigCreateFlow
|
|
483
488
|
};
|