@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
|
@@ -8,10 +8,10 @@ import { createRef as C, ref as $ } from "lit/directives/ref.js";
|
|
|
8
8
|
import { LitElement as _, renderElement as D, safeStyleMap as y, createEvent as B, safeClassMap as L, nothing as n } from "@arcgis/lumina";
|
|
9
9
|
import { a as h } from "../../chunks/chart-ui-utils.js";
|
|
10
10
|
import { i as F } from "../../chunks/rotated-state.js";
|
|
11
|
-
import { A as t, c as l, D as e } from "../../chunks/
|
|
12
|
-
import {
|
|
11
|
+
import { A as t, c as l, D as e } from "../../chunks/index4.js";
|
|
12
|
+
import { V as w } from "../../chunks/index.js";
|
|
13
13
|
import { a as k } from "../../chunks/chart-object-literals.js";
|
|
14
|
-
import { i as r, j as I } from "../../chunks/type-
|
|
14
|
+
import { i as r, j as I } from "../../chunks/type-guards.js";
|
|
15
15
|
function N(d) {
|
|
16
16
|
return d?.tagName.toLowerCase() === "arcgis-chart";
|
|
17
17
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { c as h } from "../../chunks/runtime.js";
|
|
3
3
|
import { LitElement as g, createEvent as f } from "@arcgis/lumina";
|
|
4
4
|
import { css as m, html as s } from "lit";
|
|
5
|
-
import { isEqual as
|
|
5
|
+
import { isEqual as c } from "es-toolkit/compat";
|
|
6
6
|
import { C as t } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as
|
|
7
|
+
import { i as d, aG as p, c9 as u, ca as C, bA as y, v, b4 as F } from "../../chunks/index.js";
|
|
8
8
|
const b = m`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class I extends g {
|
|
10
10
|
constructor() {
|
|
@@ -24,7 +24,7 @@ class I extends g {
|
|
|
24
24
|
}
|
|
25
25
|
willUpdate(e) {
|
|
26
26
|
let o = !1;
|
|
27
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("layer") && this.layer !== void 0 && !
|
|
27
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("layer") && this.layer !== void 0 && !c(e.get("layer"), this.layer) && (o = !0), (e.has("usePopupTemplateFieldsInfo") && this.usePopupTemplateFieldsInfo !== void 0 && this.usePopupTemplateFieldsInfo !== e.get("usePopupTemplateFieldsInfo") || e.has("popupTemplateFieldInfosEnabled") && this.popupTemplateFieldInfosEnabled !== void 0 && this.popupTemplateFieldInfosEnabled !== e.get("popupTemplateFieldInfosEnabled")) && (o = !0), e.has("seriesColor") && this.seriesColor !== void 0 && this.seriesColorChange(this.seriesColor), this.layerFieldsInfo === void 0 && (o = !0), o && this.updateFetchLayerFieldsInfo();
|
|
28
28
|
}
|
|
29
29
|
disconnectedCallback() {
|
|
30
30
|
super.disconnectedCallback(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -35,7 +35,7 @@ class I extends g {
|
|
|
35
35
|
seriesColorChange(e) {
|
|
36
36
|
const o = e.get(0);
|
|
37
37
|
if (this.activeColorMatch = o === void 0, this.model.colorMatch) {
|
|
38
|
-
const i =
|
|
38
|
+
const i = d(o) ? o.color : void 0, a = this.model.nullCategory, r = p(a);
|
|
39
39
|
i !== void 0 && a !== void 0 && r !== void 0 && (this.model.nullCategory = {
|
|
40
40
|
...a,
|
|
41
41
|
fillSymbol: {
|
|
@@ -47,7 +47,7 @@ class I extends g {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}), e.forEach((l, n) => {
|
|
50
|
-
|
|
50
|
+
d(l) && o !== void 0 && l?.color !== void 0 && !c(this.model.getSeriesColor(n), l?.color) && this.model.setSeriesColor(l?.color, n);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -58,10 +58,10 @@ class I extends g {
|
|
|
58
58
|
const a = u(o) ? o.iLayer : void 0;
|
|
59
59
|
a && (i = await C(a));
|
|
60
60
|
}
|
|
61
|
-
i && (await y(i), this.layerFieldsInfo =
|
|
61
|
+
i && (await y(i), this.layerFieldsInfo = v(i, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
const e = this.layerFieldsInfo?.find((a) => a.name === this.model.xAxisField), o = e !== void 0 &&
|
|
64
|
+
const e = this.layerFieldsInfo?.find((a) => a.name === this.model.xAxisField), o = e !== void 0 && F(e);
|
|
65
65
|
let i;
|
|
66
66
|
switch (this.page) {
|
|
67
67
|
case t.Data:
|
|
@@ -10,10 +10,9 @@ import { u as F } from "../../chunks/useT9n.js";
|
|
|
10
10
|
import { css as _, html as n, nothing as N } from "lit";
|
|
11
11
|
import { createRef as c, ref as m } from "lit/directives/ref.js";
|
|
12
12
|
import { LitElement as U, createEvent as f, safeClassMap as l, renderElement as V } from "@arcgis/lumina";
|
|
13
|
-
import {
|
|
14
|
-
import { x as
|
|
15
|
-
import {
|
|
16
|
-
import { J as q, K as W } from "../../chunks/index3.js";
|
|
13
|
+
import { u as B, c5 as z, B as $, c6 as M, C as R, r as A, x as L, b4 as K, c7 as H } from "../../chunks/index.js";
|
|
14
|
+
import { x as j } from "../../chunks/data.js";
|
|
15
|
+
import { J as q, K as W } from "../../chunks/index2.js";
|
|
17
16
|
import { r as Z } from "../../chunks/popover-ui-utils.js";
|
|
18
17
|
import { d as h, e as x, a as v, h as y } from "../../chunks/chart-object-literals.js";
|
|
19
18
|
import { S as g } from "../../chunks/common.js";
|
|
@@ -49,7 +48,7 @@ class J extends U {
|
|
|
49
48
|
break;
|
|
50
49
|
}
|
|
51
50
|
case a.numericFields:
|
|
52
|
-
if (p(d), this.model.numericFields = i, (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === h.Count && this.model.numericFields[0] !==
|
|
51
|
+
if (p(d), this.model.numericFields = i, (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === h.Count && this.model.numericFields[0] !== B(this.model.layer).idField && (this.model.aggregationType = h.Sum), this.model.getDataSortOrder() === g.customSort) {
|
|
53
52
|
const s = await this.updateCustomSortProps();
|
|
54
53
|
this.model.orderByList = s, this.sortOrderResetCounter += 1;
|
|
55
54
|
}
|
|
@@ -103,7 +102,7 @@ class J extends U {
|
|
|
103
102
|
willUpdate(e) {
|
|
104
103
|
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel = q(this.model.aggregationType, this.commonStrings), S(this.model.getDataFilters(), this.currentDataFilter) || (this.model.getDataSortOrder() === g.customSort && this.updateCustomSortProps(), this.currentDataFilter = this.model.getDataFilters());
|
|
105
104
|
const t = this.model.timeAggregationType;
|
|
106
|
-
t !== void 0 && (this.timeAggregationLabel = W(t, this.commonStrings)), this.disableSplitBy = this.model.numericFields.length > 1 || this.model.xAxisField === "" || this.model.xAxisField ===
|
|
105
|
+
t !== void 0 && (this.timeAggregationLabel = W(t, this.commonStrings)), this.disableSplitBy = this.model.numericFields.length > 1 || this.model.xAxisField === "" || this.model.xAxisField === z;
|
|
107
106
|
}
|
|
108
107
|
disconnectedCallback() {
|
|
109
108
|
super.disconnectedCallback(), this.removeBarChartDataPopover(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -146,7 +145,7 @@ class J extends U {
|
|
|
146
145
|
}
|
|
147
146
|
buildCustomSortListItems() {
|
|
148
147
|
return w(this.model.orderByList, (t) => t, (t) => {
|
|
149
|
-
const i =
|
|
148
|
+
const i = M(this.layerFieldsInfo, t), o = this.model.nullCategory !== void 0 && t.trim() === R.nullCategory?.text?.trim();
|
|
150
149
|
return n`<calcite-list-item id=${t ?? N} .label=${t} .closed=${o} .description=${i} .value=${t} .selected=${this.selectedCustomSortItemId === t} @calciteListItemSelect=${this.onCustomSortItemSelected} @calciteListItemSortHandleBeforeOpen=${this.onCustomSortItemSortHandleBeforeOpen}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`;
|
|
151
150
|
});
|
|
152
151
|
}
|
|
@@ -185,7 +184,7 @@ class J extends U {
|
|
|
185
184
|
return this.model.splitByField === "" || (this.model.numericFields ?? []).length > 1 ? "" : $(this.layerFieldsInfo, this.model.splitByField);
|
|
186
185
|
}
|
|
187
186
|
getCorrectedCategoryValue() {
|
|
188
|
-
return
|
|
187
|
+
return j({
|
|
189
188
|
fieldName: this.model.xAxisField,
|
|
190
189
|
fieldList: this.layerFieldsInfo
|
|
191
190
|
}) ? "" : $(this.layerFieldsInfo, this.model.xAxisField);
|
|
@@ -211,7 +210,7 @@ class J extends U {
|
|
|
211
210
|
let i, s, o, u = !1, b = !1;
|
|
212
211
|
switch (this.contentKind) {
|
|
213
212
|
case a.aggregation:
|
|
214
|
-
i = this.aggregationElement.value, s = this._messages.aggregationHeader, u =
|
|
213
|
+
i = this.aggregationElement.value, s = this._messages.aggregationHeader, u = A(this.model.config.series ?? []) === L.BarAndLineFromFields, o = this.model.aggregationType;
|
|
215
214
|
break;
|
|
216
215
|
case a.category:
|
|
217
216
|
i = this.categoryElement.value, s = this._messages.categoryHeader, o = this.model.xAxisField;
|
|
@@ -248,7 +247,7 @@ class J extends U {
|
|
|
248
247
|
}
|
|
249
248
|
shouldShowTimeBinning() {
|
|
250
249
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !== h.NoAggregation;
|
|
251
|
-
return e !== void 0 &&
|
|
250
|
+
return e !== void 0 && K(e) && t;
|
|
252
251
|
}
|
|
253
252
|
renderSorting() {
|
|
254
253
|
return n`<arcgis-charts-config-field-picker .disabled=${this.model.getAxisValueFormat(0)?.type === v.DateAxisFormat} .label=${this.model.getAxisValueFormat(0)?.type === v.DateAxisFormat ? this._messages.xAxisAsc : this._messages[this.model.getDataSortOrder()]} @click=${this.onSortOrderSelect} ${m(this.sortOrderElement)}></arcgis-charts-config-field-picker>`;
|
|
@@ -265,17 +264,17 @@ class J extends U {
|
|
|
265
264
|
return n`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
266
265
|
}
|
|
267
266
|
renderNumericFields(e) {
|
|
268
|
-
const t =
|
|
267
|
+
const t = B(this.model.layer).idField, i = [];
|
|
269
268
|
for (const s of e)
|
|
270
269
|
s !== t && i.push(this.buildNumericFieldItem(s));
|
|
271
270
|
return n`<calcite-list label class=${l(r.fieldList)} ${m(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
272
271
|
}
|
|
273
272
|
renderCustomSortUI() {
|
|
274
273
|
const e = this.model.getDataSortOrder(), t = this.model.getAxisValueFormat(0)?.type, i = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
275
|
-
return t === v.CategoryAxisFormat && e === g.customSort && !this.isCustomSortDisabled ? n`<calcite-label class=${l(r.label)}><div class=${l(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${i === 0 || i === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${C.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${i === -1 || i === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${C.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${S(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${
|
|
274
|
+
return t === v.CategoryAxisFormat && e === g.customSort && !this.isCustomSortDisabled ? n`<calcite-label class=${l(r.label)}><div class=${l(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${i === 0 || i === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${C.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${i === -1 || i === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${C.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${S(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${A(this.model.config.series ?? []) === L.BarAndLineFromFields ? this._messages.values : this._messages.category}${this.buildCustomSortList()}</calcite-label>` : null;
|
|
276
275
|
}
|
|
277
276
|
renderInterval() {
|
|
278
|
-
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i =
|
|
277
|
+
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = H(this.model.temporalBinningUnit ?? x.Second, this._messages) ?? "", s = E(d), o = {
|
|
279
278
|
size: this.model.temporalBinningSize,
|
|
280
279
|
unit: this.model.temporalBinningUnit
|
|
281
280
|
}, u = S(o, s);
|
|
@@ -14,10 +14,9 @@ import { d as L } from "../../chunks/rest-js-object-literals.js";
|
|
|
14
14
|
import { b as u, d as z, e as p } from "../../chunks/chart-object-literals.js";
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
16
|
import { e as N, p as B } from "../../chunks/popover-ui-utils.js";
|
|
17
|
-
import { J as K, K as _ } from "../../chunks/
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
const R = D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, o = {
|
|
17
|
+
import { J as K, K as _ } from "../../chunks/index2.js";
|
|
18
|
+
import { J as O, B as H, c8 as P, b4 as M, bi as U, b3 as W, c7 as j } from "../../chunks/index.js";
|
|
19
|
+
const J = D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, o = {
|
|
21
20
|
name: "bar-chart-data-popover",
|
|
22
21
|
header: "header",
|
|
23
22
|
fab: "fab",
|
|
@@ -28,7 +27,7 @@ const R = D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
28
27
|
applyButton: "apply-button",
|
|
29
28
|
panel: "panel"
|
|
30
29
|
};
|
|
31
|
-
class
|
|
30
|
+
class R extends I {
|
|
32
31
|
constructor() {
|
|
33
32
|
super(...arguments), this._messages = y(), this.commonStrings = y({ name: "common", blocking: !0 }), this.picklist = g(), this.intervalSizeElement = g(), this.intervalTypeElement = g(), this.popoverElement = g(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.isNoAggregationDisabled = !1, this.arcgisChartsConfigBarChartDataPopoverChange = C(), this.arcgisChartsConfigPopoverClose = C();
|
|
34
33
|
}
|
|
@@ -36,7 +35,7 @@ class q extends I {
|
|
|
36
35
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, isCustomSortDisabled: 5, isNoAggregationDisabled: 5 };
|
|
37
36
|
}
|
|
38
37
|
static {
|
|
39
|
-
this.styles =
|
|
38
|
+
this.styles = J;
|
|
40
39
|
}
|
|
41
40
|
async reposition() {
|
|
42
41
|
await this.popoverElement.value?.reposition();
|
|
@@ -102,7 +101,7 @@ class q extends I {
|
|
|
102
101
|
});
|
|
103
102
|
}
|
|
104
103
|
buildPickListItem(e) {
|
|
105
|
-
return f(e.name, a`<calcite-list-item .label=${
|
|
104
|
+
return f(e.name, a`<calcite-list-item .label=${H(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
106
105
|
}
|
|
107
106
|
buildPickListItems(e) {
|
|
108
107
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
@@ -110,7 +109,7 @@ class q extends I {
|
|
|
110
109
|
case n.numericFields: {
|
|
111
110
|
for (let l = 0; l < t; l += 1) {
|
|
112
111
|
const s = this.layerFieldsInfo?.[l];
|
|
113
|
-
s &&
|
|
112
|
+
s && W(s) && i.push(this.buildPickListItem(s));
|
|
114
113
|
}
|
|
115
114
|
break;
|
|
116
115
|
}
|
|
@@ -119,7 +118,7 @@ class q extends I {
|
|
|
119
118
|
i.push(l);
|
|
120
119
|
for (let s = 0; s < t; s += 1) {
|
|
121
120
|
const r = this.layerFieldsInfo?.[s];
|
|
122
|
-
r && (r.type === L.String || P(r) ||
|
|
121
|
+
r && (r.type === L.String || P(r) || M(r) || U(r)) && i.push(this.buildPickListItem(r));
|
|
123
122
|
}
|
|
124
123
|
break;
|
|
125
124
|
}
|
|
@@ -238,7 +237,7 @@ class q extends I {
|
|
|
238
237
|
return this.contentKind === n.numericFields && (e = a`<div slot=footer><calcite-fab class=${c(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), a`<div><calcite-popover class=${c(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${d(this.popoverElement)}><calcite-panel class=${c(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
239
238
|
}
|
|
240
239
|
}
|
|
241
|
-
S("arcgis-charts-config-bar-chart-popover",
|
|
240
|
+
S("arcgis-charts-config-bar-chart-popover", R);
|
|
242
241
|
export {
|
|
243
|
-
|
|
242
|
+
R as ArcgisChartsConfigBarChartPopover
|
|
244
243
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as P } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as T } from "lit/directives/repeat.js";
|
|
5
5
|
import { u as L } from "../../chunks/useT9n.js";
|
|
6
6
|
import { css as M, html as a } from "lit";
|
|
7
7
|
import { LitElement as N, createEvent as O, renderElement as C, safeStyleMap as h, safeClassMap as r } from "@arcgis/lumina";
|
|
8
8
|
import { a as _ } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import {
|
|
9
|
+
import { aG as m, x as E, C as v } from "../../chunks/index.js";
|
|
10
10
|
import { r as f } from "../../chunks/popover-ui-utils.js";
|
|
11
11
|
import { c as n, d as S } from "../../chunks/chart-object-literals.js";
|
|
12
|
-
import { ar as m } from "../../chunks/index.js";
|
|
13
12
|
const w = {
|
|
14
13
|
stackedType: "stacked-type"
|
|
15
14
|
}, o = {
|
|
@@ -90,8 +89,8 @@ class z extends N {
|
|
|
90
89
|
let p = "#CCCCCC", u = "minus-square";
|
|
91
90
|
if ((e > 1 || !this.activeColorMatch) && c !== void 0) {
|
|
92
91
|
u = "square-f";
|
|
93
|
-
const [y, $, I,
|
|
94
|
-
p = `rgba(${y},${$},${I},${
|
|
92
|
+
const [y, $, I, x] = [...c];
|
|
93
|
+
p = `rgba(${y},${$},${I},${x / 255})`;
|
|
95
94
|
}
|
|
96
95
|
return a`<calcite-list-item .label=${d ?? l ?? ""} .description=${b} .value=${l} .selected=${this.selectedSeriesIndex === i} @click=${this.openSeriesPopOver}><calcite-icon .icon=${u} style=${h({ color: p })} slot=content-end></calcite-icon></calcite-list-item>`;
|
|
97
96
|
});
|
|
@@ -141,7 +140,7 @@ class z extends N {
|
|
|
141
140
|
return a`<div class=${`${o.sectionLabel} ${o.topSection}`}>${this._messages.displayMultiSeries}</div>${this.buildMultipleBarTypeList()}<div class=${r(o.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}${this.model.nullCategory !== void 0 && this.model.fetchNULLValues ? this.buildNullCategoryUI() : null}`;
|
|
142
141
|
}
|
|
143
142
|
}
|
|
144
|
-
|
|
143
|
+
k("arcgis-charts-config-bar-chart-series", z);
|
|
145
144
|
export {
|
|
146
145
|
z as ArcgisChartsConfigBarChartSeries
|
|
147
146
|
};
|
|
@@ -5,8 +5,8 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
5
5
|
import { createRef as d, ref as g } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement as C, createEvent as s, safeClassMap as l } from "@arcgis/lumina";
|
|
7
7
|
import { e as v } from "../../chunks/popover-ui-utils.js";
|
|
8
|
-
import { r as f } from "../../chunks/
|
|
9
|
-
import {
|
|
8
|
+
import { r as f } from "../../chunks/index2.js";
|
|
9
|
+
import { aG as u } from "../../chunks/index.js";
|
|
10
10
|
const n = {
|
|
11
11
|
panelChildrenContainer: "panel-children-container"
|
|
12
12
|
}, y = p`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}`;
|
|
@@ -4,7 +4,7 @@ import { LitElement as n } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as c, html as t } from "lit";
|
|
5
5
|
import { isEqual as l } from "es-toolkit/compat";
|
|
6
6
|
import { C as a } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { c9 as d, ca as h, v as f } from "../../chunks/index.js";
|
|
8
8
|
const g = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends n {
|
|
10
10
|
constructor() {
|
|
@@ -12,8 +12,8 @@ import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
|
12
12
|
import { LitElement as B, createEvent as P, safeClassMap as o, renderElement as O } from "@arcgis/lumina";
|
|
13
13
|
import { x as L } from "../../chunks/data.js";
|
|
14
14
|
import { B as c } from "../../chunks/common.js";
|
|
15
|
-
import { l as u } from "../../chunks/
|
|
16
|
-
import {
|
|
15
|
+
import { l as u } from "../../chunks/index2.js";
|
|
16
|
+
import { c6 as w, B as g } from "../../chunks/index.js";
|
|
17
17
|
import { r as p } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { a as k } from "../../chunks/chart-object-literals.js";
|
|
19
19
|
const r = {
|
|
@@ -4,15 +4,14 @@ import { keyed as p } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { repeat as k } from "lit/directives/repeat.js";
|
|
5
5
|
import { substitute as $ } from "@arcgis/core/intl.js";
|
|
6
6
|
import { b as l } from "../../chunks/interfaces.js";
|
|
7
|
-
import { b as
|
|
8
|
-
import { u as
|
|
9
|
-
import { css as
|
|
10
|
-
import { createRef as
|
|
7
|
+
import { b as u, f as y, e as h, a as P } from "../../chunks/chart-ui-utils.js";
|
|
8
|
+
import { u as F } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as L, html as n } from "lit";
|
|
10
|
+
import { createRef as f, ref as m } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as x, createEvent as g, renderElement as I, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
12
12
|
import { B as r } from "../../chunks/common.js";
|
|
13
13
|
import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
14
|
-
import {
|
|
15
|
-
import { b as B } from "../../chunks/index2.js";
|
|
14
|
+
import { B as E, c8 as b, b3 as w, J as B } from "../../chunks/index.js";
|
|
16
15
|
import { d as C } from "../../chunks/rest-js-object-literals.js";
|
|
17
16
|
const o = {
|
|
18
17
|
name: "bar-chart-data-popover",
|
|
@@ -23,10 +22,10 @@ const o = {
|
|
|
23
22
|
sortMedian: "sort-median",
|
|
24
23
|
sortOrderPickList: "sort-order-pick-list",
|
|
25
24
|
panel: "panel"
|
|
26
|
-
}, N =
|
|
25
|
+
}, N = L`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
27
26
|
class K extends x {
|
|
28
27
|
constructor() {
|
|
29
|
-
super(...arguments), this._messages =
|
|
28
|
+
super(...arguments), this._messages = F(), this.picklist = f(), this.placement = "leading", this.popoverElement = f(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = g(), this.arcgisChartsConfigPopoverClose = g();
|
|
30
29
|
}
|
|
31
30
|
static {
|
|
32
31
|
this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
|
|
@@ -43,7 +42,7 @@ class K extends x {
|
|
|
43
42
|
updated() {
|
|
44
43
|
setTimeout(() => {
|
|
45
44
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
46
|
-
},
|
|
45
|
+
}, u.PopoverTimer), S(this.popoverElement.value, this.open);
|
|
47
46
|
}
|
|
48
47
|
selectedContentChange(e, t) {
|
|
49
48
|
this.pickListHasChanged = T(e, t);
|
|
@@ -68,7 +67,7 @@ class K extends x {
|
|
|
68
67
|
}), this.open = !1;
|
|
69
68
|
}
|
|
70
69
|
buildPickListItem(e) {
|
|
71
|
-
return p(e.name, n`<calcite-list-item .label=${
|
|
70
|
+
return p(e.name, n`<calcite-list-item .label=${E(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
72
71
|
}
|
|
73
72
|
buildPickListItems(e) {
|
|
74
73
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
@@ -76,7 +75,7 @@ class K extends x {
|
|
|
76
75
|
case l.numericFields: {
|
|
77
76
|
for (let s = 0; s < t; s += 1) {
|
|
78
77
|
const a = this.layerFieldsInfo[s];
|
|
79
|
-
|
|
78
|
+
w(a) && i.push(this.buildPickListItem(a));
|
|
80
79
|
}
|
|
81
80
|
break;
|
|
82
81
|
}
|
|
@@ -146,7 +145,7 @@ class K extends x {
|
|
|
146
145
|
}
|
|
147
146
|
createTooltip(e) {
|
|
148
147
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
149
|
-
const t = e.target, i =
|
|
148
|
+
const t = e.target, i = B(t), a = new Intl.NumberFormat(i).format(u.customSortLimit), c = $(this._messages.customSortLimit ?? "", {
|
|
150
149
|
totalLimit: a
|
|
151
150
|
});
|
|
152
151
|
this.tooltip = I(n`<calcite-tooltip style=${D({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
@@ -6,7 +6,7 @@ import { repeat as M } from "lit/directives/repeat.js";
|
|
|
6
6
|
import { u as B } from "../../chunks/useT9n.js";
|
|
7
7
|
import { LitElement as O, renderElement as d, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
|
|
8
8
|
import { a as w } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import {
|
|
9
|
+
import { x as S } from "../../chunks/index.js";
|
|
10
10
|
import { r as f } from "../../chunks/popover-ui-utils.js";
|
|
11
11
|
import { p as m } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
const l = {
|
|
@@ -6,7 +6,7 @@ import { u as v } from "../../chunks/useT9n.js";
|
|
|
6
6
|
import { createRef as y, ref as S } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement as b, createEvent as n, safeClassMap as p } from "@arcgis/lumina";
|
|
8
8
|
import { e as u } from "../../chunks/popover-ui-utils.js";
|
|
9
|
-
import { r as m } from "../../chunks/
|
|
9
|
+
import { r as m } from "../../chunks/index2.js";
|
|
10
10
|
import { b as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const d = {
|
|
12
12
|
panelChildrenContainer: "panel-children-container"
|