@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.3
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/{H6NH46AS.js → 23YH7MTF.js} +1 -1
- package/dist/cdn/{6JGLHOFY.js → 24LTTBTF.js} +1 -1
- package/dist/cdn/{BZCVDNC4.js → 26FWESH3.js} +2 -2
- package/dist/cdn/{X6WA2KXK.js → 2K4ODNJ4.js} +1 -1
- package/dist/cdn/{7IV6GMF7.js → 3DK6M5E7.js} +1 -1
- package/dist/cdn/{IWVS6SKP.js → 3XHZ677O.js} +1 -1
- package/dist/cdn/{7BEC5WZB.js → 3YT44D4Z.js} +1 -1
- package/dist/cdn/{6SRISPQN.js → 5FMEOIBS.js} +2 -2
- package/dist/cdn/{XMQCH4QI.js → 5G7DSKI7.js} +1 -1
- package/dist/cdn/{ZQCUJ7VE.js → 5JML3JUR.js} +1 -1
- package/dist/cdn/{45JPWIBI.js → 5QO32XSX.js} +1 -1
- package/dist/cdn/{I2M6YAUU.js → 7ABIELGZ.js} +1 -1
- package/dist/cdn/{HJHMEVMB.js → 7HIZH35G.js} +1 -1
- package/dist/cdn/{HUCSTT64.js → CCR46UHB.js} +1 -1
- package/dist/cdn/{URYNG6OA.js → CJ4POAPM.js} +1 -1
- package/dist/cdn/{7YBKGD3V.js → CRFJ2GGS.js} +1 -1
- package/dist/cdn/{KV4ZPVWQ.js → E2N2S7BH.js} +1 -1
- package/dist/cdn/{OY6UOUYX.js → E43KEVHT.js} +1 -1
- package/dist/cdn/{6LQYOBAL.js → F7Y6EWWB.js} +1 -1
- package/dist/cdn/{RKN64EJQ.js → FDXE5JLT.js} +1 -1
- package/dist/cdn/{45PJ5TQL.js → G5HVFOIO.js} +1 -1
- package/dist/cdn/{F5Q73CFW.js → G7TRU7JI.js} +1 -1
- package/dist/cdn/{TORIY3OE.js → GES3HRXE.js} +1 -1
- package/dist/cdn/{MKQAQDRM.js → GL3IXVRN.js} +1 -1
- package/dist/cdn/{B7DM7VT6.js → HCMD362H.js} +1 -1
- package/dist/cdn/{EQVQRZHJ.js → HCV34H6X.js} +1 -1
- package/dist/cdn/{S3BC57BJ.js → IHQ7R6L4.js} +1 -1
- package/dist/cdn/{ATIARKAU.js → IUFXFWXH.js} +1 -1
- package/dist/cdn/{YVVQVAJZ.js → JHYH555K.js} +1 -1
- package/dist/cdn/{CPPT5HUK.js → JRRFLDWX.js} +19 -19
- package/dist/cdn/{4OZZXXZF.js → JVHJMPFE.js} +1 -1
- package/dist/cdn/{O4M33ZPK.js → KI4HS3AM.js} +1 -1
- package/dist/cdn/{TZ4GOE2Q.js → KLC6NTPC.js} +1 -1
- package/dist/cdn/{YZQ54BRI.js → KOBNV5AQ.js} +1 -1
- package/dist/cdn/{PYKHO4QI.js → KVGEY3IQ.js} +1 -1
- package/dist/cdn/{FJPGZEGK.js → LDPHZHSF.js} +1 -1
- package/dist/cdn/{V2XJSJH4.js → LONASKGH.js} +1 -1
- package/dist/cdn/{Z7EBST4A.js → LRNADJJG.js} +1 -1
- package/dist/cdn/{V76PIVCF.js → LWODMEOP.js} +1 -1
- package/dist/cdn/{HX4236ZL.js → LYZGRYQV.js} +1 -1
- package/dist/cdn/{GCSGY6GL.js → LZYN55O4.js} +1 -1
- package/dist/cdn/{YKGZVYK2.js → MF3FGXHI.js} +1 -1
- package/dist/cdn/{PEZCCXQ7.js → MUPHTV55.js} +1 -1
- package/dist/cdn/{JILAM6NH.js → N524VXQ2.js} +1 -1
- package/dist/cdn/{47HHRDX4.js → N5ERJZPG.js} +1 -1
- package/dist/cdn/{FT2K3J7O.js → NGPMU4T3.js} +1 -1
- package/dist/cdn/{MOMKSNIZ.js → NJCZ6UTM.js} +1 -1
- package/dist/cdn/{RKKWMNWU.js → NMB6TWC2.js} +1 -1
- package/dist/cdn/{P74SXC5B.js → NNNTZU5J.js} +1 -1
- package/dist/cdn/{KC6CFXB7.js → NQQW4GKA.js} +1 -1
- package/dist/cdn/{P6SC5DD2.js → OE3UFORR.js} +1 -1
- package/dist/cdn/{V7MBHG4F.js → P2NPQAJ3.js} +1 -1
- package/dist/cdn/{KKWXEF5W.js → PC7IKOIB.js} +1 -1
- package/dist/cdn/{GUH6CQE6.js → PJUAU42S.js} +1 -1
- package/dist/cdn/{FAQDMSUC.js → PK5XIIZY.js} +1 -1
- package/dist/cdn/{3FTJIVFE.js → PSO5AURI.js} +1 -1
- package/dist/cdn/{UQPFMDJB.js → PVJEBBA7.js} +1 -1
- package/dist/cdn/{CAJVNPHZ.js → PY5Q3V6E.js} +1 -1
- package/dist/cdn/{PTFRQF65.js → PZGIXDMC.js} +1 -1
- package/dist/cdn/{AT2NWWBG.js → R45FWF7D.js} +1 -1
- package/dist/cdn/{GWQJXXP3.js → RAQZUMC6.js} +1 -1
- package/dist/cdn/{7SNOZDAD.js → RFQBUWOW.js} +1 -1
- package/dist/cdn/{PKMZ6N6M.js → RMYZGOBM.js} +1 -1
- package/dist/cdn/{FCXI523J.js → RX3RNE7F.js} +1 -1
- package/dist/cdn/{RG3I5ORH.js → TAI4RIWT.js} +1 -1
- package/dist/cdn/{XFZX5ULX.js → TNB3MBXR.js} +1 -1
- package/dist/cdn/{UNUPCA4W.js → TU3UF32Y.js} +1 -1
- package/dist/cdn/{M75ENKIU.js → TYMKFCF4.js} +1 -1
- package/dist/cdn/{P3RM2ACY.js → TZB57XD4.js} +1 -1
- package/dist/cdn/{6PAONFHB.js → U2LJZ4ML.js} +1 -1
- package/dist/cdn/{G6OHBBUT.js → U4XLNCOU.js} +1 -1
- package/dist/cdn/{TTDZKISK.js → UAJGYF4S.js} +1 -1
- package/dist/cdn/{DNMVB3A2.js → UKDTXHZT.js} +1 -1
- package/dist/cdn/{D23GGWFM.js → UT6G7RV7.js} +1 -1
- package/dist/cdn/{EUOPRFMU.js → VDG54AIC.js} +1 -1
- package/dist/cdn/{5HQ2CJEQ.js → VEA5ZR5D.js} +1 -1
- package/dist/cdn/{5MVNVHYG.js → VVKV5KKN.js} +1 -1
- package/dist/cdn/{CUJHGXNK.js → WEQBZOH7.js} +1 -1
- package/dist/cdn/{NS7OCROO.js → WO6JBNMU.js} +1 -1
- package/dist/cdn/{LKY2A3U6.js → WPPMMVD5.js} +1 -1
- package/dist/cdn/{S6PJHEJ7.js → YRBE7MBU.js} +1 -1
- package/dist/cdn/{RWEUTQWS.js → ZRFHAQL6.js} +1 -1
- package/dist/cdn/{OVM5QF7Q.js → ZRZEKOEF.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +4 -4
- package/dist/chunks/bar-chart-model.js +13 -13
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/box-plot-data.js +5 -5
- package/dist/chunks/box-plot-model.js +18 -18
- package/dist/chunks/chart-model.js +2 -2
- package/dist/chunks/chart-ui-utils2.js +13 -13
- package/dist/chunks/class-breaks.js +5 -5
- package/dist/chunks/combo-bar-line-chart-model.js +2 -2
- package/dist/chunks/data.js +21 -21
- package/dist/chunks/gauge-model.js +14 -14
- package/dist/chunks/generate-x-axis-title.js +4 -4
- package/dist/chunks/heat-chart-model.js +19 -19
- package/dist/chunks/histogram-data.js +2 -2
- package/dist/chunks/histogram-model.js +11 -11
- package/dist/chunks/index2.js +73 -74
- package/dist/chunks/index3.js +7 -7
- package/dist/chunks/index4.js +10755 -680
- package/dist/chunks/index5.js +87 -10782
- package/dist/chunks/index6.js +63 -100
- package/dist/chunks/interfaces.js +3 -3
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +10 -10
- package/dist/chunks/model-with-x-guides.js +6 -6
- package/dist/chunks/model-with-y-guides.js +2 -2
- package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
- package/dist/chunks/pie-chart-data.js +2 -2
- package/dist/chunks/pie-chart-model.js +2 -2
- package/dist/chunks/radar-chart-model.js +2 -2
- package/dist/chunks/scatterplot-model.js +18 -18
- package/dist/chunks/serial-chart-data.js +104 -104
- package/dist/chunks/serial-chart-model.js +44 -44
- package/dist/chunks/series-length.js +2 -2
- package/dist/chunks/series.js +2 -2
- package/dist/chunks/store.js +5 -5
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/type-guards3.js +4 -4
- package/dist/chunks/utils.js +9 -9
- package/dist/chunks/web-component-utils.js +9 -9
- package/dist/chunks/x-bounds.js +4 -4
- package/dist/components/arcgis-chart/customElement.js +730 -730
- package/dist/components/arcgis-charts-action-bar/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-format/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +474 -471
- package/dist/{model.js → model/shared/setup-utils.js} +12 -12
- package/dist/utils/chart-config/converter/index.js +723 -0
- package/package.json +5 -3
- package/dist/chunks/index7.js +0 -66
- /package/dist/cdn/{N3VOUI25.js → 2HUAW34Q.js} +0 -0
- /package/dist/cdn/{4E7C5QPS.js → 5MEQANMY.js} +0 -0
- /package/dist/cdn/{66KSEDOR.js → 5XTQQOTT.js} +0 -0
- /package/dist/cdn/{YIIPYKTL.js → 5YJNENER.js} +0 -0
- /package/dist/cdn/{NHDVOYQ2.js → 6XTKJ7DO.js} +0 -0
- /package/dist/cdn/{75P3QRL4.js → 7FZC3RZK.js} +0 -0
- /package/dist/cdn/{XWKBJDZT.js → A4GEWIPY.js} +0 -0
- /package/dist/cdn/{DIKQ7BPQ.js → A5AECJXP.js} +0 -0
- /package/dist/cdn/{RDTBZUT7.js → AJWYIBGC.js} +0 -0
- /package/dist/cdn/{TSI3C3OV.js → AM2TOTX6.js} +0 -0
- /package/dist/cdn/{3V4HRXIT.js → AWF4R7WL.js} +0 -0
- /package/dist/cdn/{NG2IHVZ4.js → BJDRJUEJ.js} +0 -0
- /package/dist/cdn/{ZFM5RGWD.js → CJPEW4LJ.js} +0 -0
- /package/dist/cdn/{NFDXH5B3.js → CLXVAIQX.js} +0 -0
- /package/dist/cdn/{AJBEE7WE.js → DCZWZOPF.js} +0 -0
- /package/dist/cdn/{CODAXMWM.js → DEGBVJ76.js} +0 -0
- /package/dist/cdn/{FLO3N6JD.js → DKAHZ7IX.js} +0 -0
- /package/dist/cdn/{5AOYADA3.js → E7OAEGSE.js} +0 -0
- /package/dist/cdn/{I36OAVW3.js → ETKPMU7Z.js} +0 -0
- /package/dist/cdn/{2X75KJPF.js → FF4DUQDZ.js} +0 -0
- /package/dist/cdn/{OA7FHTCA.js → GV3TT7L5.js} +0 -0
- /package/dist/cdn/{VFM2EV3M.js → HVO4LIXR.js} +0 -0
- /package/dist/cdn/{53FG76LL.js → IPM2XKST.js} +0 -0
- /package/dist/cdn/{WVRBLV5L.js → IVLVCLDE.js} +0 -0
- /package/dist/cdn/{PH6UOHRS.js → JBHGSSHS.js} +0 -0
- /package/dist/cdn/{OYHKUGS6.js → JJIGLOJA.js} +0 -0
- /package/dist/cdn/{4JQ2RRLY.js → K3GNHGEW.js} +0 -0
- /package/dist/cdn/{N6OT5IBC.js → KFONSKQF.js} +0 -0
- /package/dist/cdn/{7ILH7ZG2.js → KUZR6CGB.js} +0 -0
- /package/dist/cdn/{SGOYJFLO.js → KZ7LPNX3.js} +0 -0
- /package/dist/cdn/{O2ERVMSN.js → L4G6FO7A.js} +0 -0
- /package/dist/cdn/{I5VHQW7B.js → LFQGH44F.js} +0 -0
- /package/dist/cdn/{B4KT2HUE.js → N6AOFBBX.js} +0 -0
- /package/dist/cdn/{O6SNP6QE.js → QMSINFQX.js} +0 -0
- /package/dist/cdn/{4QQVKRJ5.js → QOOBNATX.js} +0 -0
- /package/dist/cdn/{DD4QUBOF.js → SBYD2EKR.js} +0 -0
- /package/dist/cdn/{XIJ5VLER.js → TF7TE7K5.js} +0 -0
- /package/dist/cdn/{MHG42BA5.js → WNKDEOFZ.js} +0 -0
- /package/dist/cdn/{2HGBRW4I.js → XE3FKQFA.js} +0 -0
- /package/dist/cdn/{M4AQLWZU.js → XW4PBQNW.js} +0 -0
- /package/dist/cdn/{ABIVSH72.js → YOT6DVSU.js} +0 -0
- /package/dist/cdn/{LNF44ZGQ.js → ZFZ5AEUQ.js} +0 -0
- /package/dist/cdn/{UAZ34KDJ.js → ZXOO3X5P.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as w } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as O, html as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { css as O, html as a } from "lit";
|
|
4
|
+
import { b as T } from "../../chunks/interfaces.js";
|
|
5
|
+
import { a as _, g as z } from "../../chunks/type-guards3.js";
|
|
6
6
|
import { u as S } from "../../chunks/useT9n.js";
|
|
7
7
|
import { createRef as $, ref as b } from "lit/directives/ref.js";
|
|
8
8
|
import { LitElement as V, renderElement as C, safeStyleMap as y, createEvent as B, safeClassMap as L, nothing as s } from "@arcgis/lumina";
|
|
9
|
-
import {
|
|
9
|
+
import { a as n } from "../../chunks/chart-ui-utils2.js";
|
|
10
10
|
import { i as F } from "../../chunks/rotated-state.js";
|
|
11
|
-
import { a as t, A as o, D as e } from "../../chunks/
|
|
11
|
+
import { a as t, A as o, D as e } from "../../chunks/index6.js";
|
|
12
12
|
import { A as D } from "../../chunks/index3.js";
|
|
13
13
|
import { u as k } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { b as r, k as I } from "../../chunks/type-guards2.js";
|
|
@@ -19,10 +19,10 @@ class Z extends V {
|
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments), this.calciteActionBar = $(), this.exportCalciteActionBar = $(), this.expandAction = null, this._messages = S(), this.commonStrings = S({ name: "common", blocking: !0 }), this.handleMouseOver = (l) => {
|
|
21
21
|
if (this.calciteActionBar.value && !this.calciteActionBar.value?.expanded) {
|
|
22
|
-
const
|
|
22
|
+
const c = l.target;
|
|
23
23
|
this.actionTooltip !== void 0 && (this.actionTooltip = n(this.actionTooltip));
|
|
24
24
|
let i;
|
|
25
|
-
|
|
25
|
+
c?.tagName === "CALCITE-ACTION" ? i = c : (c?.tagName === "CALCITE-ACTION-MENU" || c?.tagName === "DIV") && (i = c.firstChild), i !== void 0 && (this.actionTooltip = C(a`<calcite-tooltip style=${y({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${i} open placement=trailing-end>${i.text}</calcite-tooltip>`), document.body.appendChild(this.actionTooltip));
|
|
26
26
|
} else
|
|
27
27
|
this.actionTooltip = n(this.actionTooltip);
|
|
28
28
|
}, this._csvExportExclusionList = [k.ScatterSeries, k.BoxPlotSeries], this.actionTooltip = null, this.forceDisableActions = !1, this.editChartToggle = t.Inactive, this.editChartState = o.Disabled, this.legendToggle = t.Inactive, this.legendState = o.Enabled, this.rotateChartToggle = t.Inactive, this.rotateChartState = o.Enabled, this.filterBySelectionToggle = t.Inactive, this.filterBySelectionState = o.Enabled, this.filterByExtentToggle = t.Inactive, this.filterByExtentState = o.Enabled, this.actionBarSelectionMode = D.MultiSelectionWithCtrlKey, this.selectionToggle = t.Inactive, this.selectionState = o.Enabled, this.zoomToggle = t.Inactive, this.zoomState = o.Enabled, this.fullExtentToggle = t.Inactive, this.fullExtentState = o.Enabled, this.clearSelectionToggle = t.Inactive, this.clearSelectionState = o.Enabled, this.switchSelectionToggle = t.Inactive, this.switchSelectionState = o.Enabled, this.exportAsImageState = o.Enabled, this.exportAsCSVState = o.Enabled, this.disableCSVExportForChartTypes = this._csvExportExclusionList, this.csvExportExclusionList = this._csvExportExclusionList, this.exportActionState = o.Enabled, this.expanded = !1, this.hiddenActions = [e.EditChart], this.arcgisActionBarToggle = B(), this.arcgisDefaultActionSelect = B();
|
|
@@ -43,11 +43,11 @@ class Z extends V {
|
|
|
43
43
|
super.disconnectedCallback(), this.actionTooltip?.remove();
|
|
44
44
|
}
|
|
45
45
|
async onDefaultActionClick(l) {
|
|
46
|
-
const
|
|
47
|
-
actionId:
|
|
46
|
+
const c = l.currentTarget, i = {
|
|
47
|
+
actionId: c.id,
|
|
48
48
|
actionActive: !1
|
|
49
49
|
};
|
|
50
|
-
switch (
|
|
50
|
+
switch (c.id) {
|
|
51
51
|
case e.EditChart:
|
|
52
52
|
this.editChartToggle = this.editChartToggle === t.Active ? t.Inactive : t.Active, i.actionActive = this.editChartToggle === t.Active;
|
|
53
53
|
break;
|
|
@@ -100,13 +100,13 @@ class Z extends V {
|
|
|
100
100
|
}
|
|
101
101
|
setCustomActionsExpanded() {
|
|
102
102
|
this.el.querySelectorAll("calcite-action").forEach((l) => {
|
|
103
|
-
const
|
|
104
|
-
|
|
103
|
+
const c = l;
|
|
104
|
+
c.textEnabled = this.expanded;
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
handleExpandTooltip() {
|
|
108
108
|
this.expandAction === null && (this.expandAction = this.calciteActionBar.value?.shadowRoot?.querySelector("calcite-action") ?? null, this.expandAction !== null && (this.listenOn(this.expandAction, "mouseenter", () => {
|
|
109
|
-
!this.calciteActionBar.value?.expanded && this.expandAction !== null && !document.body.contains(this.actionTooltip) && (this.actionTooltip = C(
|
|
109
|
+
!this.calciteActionBar.value?.expanded && this.expandAction !== null && !document.body.contains(this.actionTooltip) && (this.actionTooltip = C(a`<calcite-tooltip style=${y({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${this.expandAction} open placement=trailing-end>${this._messages.expand ?? ""}</calcite-tooltip>`), document.body.appendChild(this.actionTooltip));
|
|
110
110
|
}), this.listenOn(this.expandAction, "mouseleave", () => {
|
|
111
111
|
!this.calciteActionBar.value?.expanded && this.actionTooltip !== null && (this.actionTooltip = n(this.actionTooltip));
|
|
112
112
|
}), this.listenOn(this.expandAction, "click", () => {
|
|
@@ -114,16 +114,16 @@ class Z extends V {
|
|
|
114
114
|
})));
|
|
115
115
|
}
|
|
116
116
|
renderDefaultActions() {
|
|
117
|
-
const l = z(this.chartType).filter((M) => !this.hiddenActions?.includes(M)),
|
|
117
|
+
const l = z(this.chartType).filter((M) => !this.hiddenActions?.includes(M)), c = this.chartElement?.layer && "isTable" in this.chartElement.layer ? this.chartElement.layer.isTable : !1, i = l.includes(e.EditChart), h = l.includes(e.Legend), d = l.includes(e.RotateChart), g = l.includes(e.FilterBySelection), m = l.includes(e.FilterByExtent) && !c, p = l.includes(e.Zoom), u = l.includes(e.Selection), x = l.includes(e.ClearSelection), A = l.includes(e.FullExtent), v = l.includes(e.SwitchSelection), f = l.includes(e.ExportAsImage), E = l.includes(e.ExportAsCSV);
|
|
118
118
|
return [
|
|
119
|
-
h || d ?
|
|
120
|
-
g || m ?
|
|
121
|
-
u || p || A || x || v ?
|
|
122
|
-
f || E ?
|
|
119
|
+
h || d ? a`<calcite-action-group>${i ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart ?? s} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart ?? ""} .textEnabled=${this.expanded} .active=${this.editChartToggle === t.Active} .disabled=${this.editChartState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${h ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend ?? s} .text=${this.legendTitle ?? this._messages?.legend ?? ""} .textEnabled=${this.expanded} .active=${this.legendToggle === t.Active} .disabled=${this.legendState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>` : null}${d ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart ?? s} icon=rotate .text=${this.rotateChartTitle ?? this._messages?.rotateChart ?? ""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle === t.Active} .disabled=${this.rotateChartState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}</calcite-action-group>` : null,
|
|
120
|
+
g || m ? a`<calcite-action-group>${g ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection ?? s} icon=selection-filter .text=${this.filterBySelectionTitle ?? this._messages?.filterBySelection ?? ""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle === t.Active} .disabled=${this.filterBySelectionState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${m ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByExtent ?? s} icon=extent-filter .text=${this.filterByExtentTitle ?? this._messages?.filterByExtent ?? ""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle === t.Active} .disabled=${this.filterByExtentState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}</calcite-action-group>` : null,
|
|
121
|
+
u || p || A || x || v ? a`<calcite-action-group>${p ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom ?? s} icon=magnifying-glass .text=${this.zoomTitle ?? this._messages?.zoom ?? ""} .textEnabled=${this.expanded} .active=${this.zoomToggle === t.Active} .disabled=${this.zoomState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${u ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection ?? s} icon=cursor-selection .text=${this.selectionTitle ?? this._messages?.selection ?? ""} .textEnabled=${this.expanded} .active=${this.selectionToggle === t.Active} .disabled=${this.selectionState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${x ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection ?? s} icon=erase .text=${this.clearSelectionTitle ?? this._messages?.clearSelection ?? ""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle === t.Active} .disabled=${this.clearSelectionState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${A ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent ?? s} icon=zoom-out-fixed .text=${this.fullExtentTitle ?? this._messages?.fullExtent ?? ""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle === t.Active} .disabled=${this.fullExtentState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${v ? a`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection ?? s} icon=arrow-right-left .text=${this.switchSelectionTitle ?? this._messages?.switchSelection ?? ""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle === t.Active} .disabled=${this.switchSelectionState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}</calcite-action-group>` : null,
|
|
122
|
+
f || E ? a`<calcite-action-menu .label=${this._messages?.export ?? ""} ${b(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export ?? ""} .textEnabled=${this.expanded} .disabled=${this.exportActionState === o.Disabled || this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${f ? a`<div><calcite-action id=${e.ExportAsImage ?? s} icon=graph-bar .text=${this.exportAsImageTitle ?? this._messages?.exportAsImage ?? ""} .disabled=${this.exportAsImageState === o.Disabled || this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>` : null}${E ? a`<div><calcite-action id=${e.ExportAsCSV ?? s} icon=table .text=${this.exportAsCSVTitle ?? this._messages?.exportAsTable ?? ""} .disabled=${this.exportAsCSVState === o.Disabled || this.forceDisableActions || this.chartType && (this.disableCSVExportForChartTypes.includes(this.chartType) || this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>` : null}</calcite-action-menu>` : null
|
|
123
123
|
];
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return
|
|
126
|
+
return a`<calcite-action-bar class=${L(N.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{ expand: this._messages.expand, collapse: this._messages.collapse }} overflow-actions-disabled ${b(this.calciteActionBar)}><slot name=${T.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${T.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
w("arcgis-charts-action-bar", Z);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as b } from "../../chunks/runtime.js";
|
|
3
3
|
import { debounce as m } from "lodash-es";
|
|
4
|
-
import { g as f,
|
|
5
|
-
import { i as c, m as M, U as a,
|
|
4
|
+
import { g as f, a as N } from "../../chunks/store.js";
|
|
5
|
+
import { i as c, m as M, U as a, b as x, s as g } from "../../chunks/chart-ui-utils2.js";
|
|
6
6
|
import { A as B } from "../../chunks/axis-model-wrapper.js";
|
|
7
7
|
import { u as p } from "../../chunks/useT9n.js";
|
|
8
8
|
import { css as v, html as s } from "lit";
|
|
@@ -5,7 +5,7 @@ import { css as c, html as s } from "lit";
|
|
|
5
5
|
import { isEqual as r } from "lodash-es";
|
|
6
6
|
import { C as t } from "../../chunks/interfaces.js";
|
|
7
7
|
import { ac as h, bu as f, I as p, ba as g } from "../../chunks/index2.js";
|
|
8
|
-
import { p as m, h as u } from "../../chunks/
|
|
8
|
+
import { p as m, h as u } from "../../chunks/index5.js";
|
|
9
9
|
const C = c`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class F extends n {
|
|
11
11
|
constructor() {
|
|
@@ -3,9 +3,9 @@ import { c as w } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed as $ } from "lit/directives/keyed.js";
|
|
4
4
|
import { isEqual as v } from "lodash-es";
|
|
5
5
|
import { repeat as k } from "lit/directives/repeat.js";
|
|
6
|
-
import { B as a,
|
|
7
|
-
import { d as O,
|
|
8
|
-
import {
|
|
6
|
+
import { B as a, c as p } from "../../chunks/interfaces.js";
|
|
7
|
+
import { d as O, a as y, r as D, b as E } from "../../chunks/store.js";
|
|
8
|
+
import { b as P } from "../../chunks/chart-ui-utils2.js";
|
|
9
9
|
import { u as I } 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";
|
|
@@ -9,7 +9,7 @@ import { createRef as g, ref as d } from "lit/directives/ref.js";
|
|
|
9
9
|
import { isEqual as y } from "lodash-es";
|
|
10
10
|
import { u as $ } from "../../chunks/useT9n.js";
|
|
11
11
|
import { B as n } from "../../chunks/interfaces.js";
|
|
12
|
-
import {
|
|
12
|
+
import { c as v, b as L, e as h, a as x, f as E, s as z } from "../../chunks/chart-ui-utils2.js";
|
|
13
13
|
import { R as k } from "../../chunks/rest-js-object-literals.js";
|
|
14
14
|
import { t as u, r as N, s as p } from "../../chunks/chart-object-literals.js";
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
@@ -5,7 +5,7 @@ import { repeat as T } from "lit/directives/repeat.js";
|
|
|
5
5
|
import { u as P } from "../../chunks/useT9n.js";
|
|
6
6
|
import { css as L, html as l } from "lit";
|
|
7
7
|
import { LitElement as M, createEvent as N, renderElement as u, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
|
|
8
|
-
import {
|
|
8
|
+
import { a as O } from "../../chunks/chart-ui-utils2.js";
|
|
9
9
|
import { C as _, F as C } from "../../chunks/index3.js";
|
|
10
10
|
import { r as v } from "../../chunks/popover-ui-utils.js";
|
|
11
11
|
import { q as r, r as f } from "../../chunks/chart-object-literals.js";
|
|
@@ -5,7 +5,7 @@ import { css as d, html as s } from "lit";
|
|
|
5
5
|
import { isEqual as r } from "lodash-es";
|
|
6
6
|
import { C as a } from "../../chunks/interfaces.js";
|
|
7
7
|
import { ac as c, I as h } from "../../chunks/index2.js";
|
|
8
|
-
import { h as f } from "../../chunks/
|
|
8
|
+
import { h as f } from "../../chunks/index5.js";
|
|
9
9
|
const m = d`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class p extends n {
|
|
11
11
|
constructor() {
|
|
@@ -3,9 +3,9 @@ import { c as b } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
4
4
|
import { isEqual as C } from "lodash-es";
|
|
5
5
|
import { repeat as y } from "lit/directives/repeat.js";
|
|
6
|
-
import { a as l, d } from "../../chunks/interfaces.js";
|
|
7
|
-
import { d as S,
|
|
8
|
-
import {
|
|
6
|
+
import { a as l, c as d } from "../../chunks/interfaces.js";
|
|
7
|
+
import { d as S, a as v } from "../../chunks/store.js";
|
|
8
|
+
import { b as $ } from "../../chunks/chart-ui-utils2.js";
|
|
9
9
|
import { u as F } from "../../chunks/useT9n.js";
|
|
10
10
|
import { css as x, nothing as I, html as a } from "lit";
|
|
11
11
|
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
@@ -4,7 +4,7 @@ import { keyed as p } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { repeat as v } from "lit/directives/repeat.js";
|
|
5
5
|
import { substitute as $ } from "@arcgis/core/intl.js";
|
|
6
6
|
import { a as l } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { b as u, f as y, e as h, a as F } from "../../chunks/chart-ui-utils2.js";
|
|
8
8
|
import { u as L } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as P, html as n } from "lit";
|
|
10
10
|
import { createRef as f, ref as m } from "lit/directives/ref.js";
|
|
@@ -5,7 +5,7 @@ import { keyed as y } from "lit/directives/keyed.js";
|
|
|
5
5
|
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
|
-
import {
|
|
8
|
+
import { a as w } from "../../chunks/chart-ui-utils2.js";
|
|
9
9
|
import { C as S } from "../../chunks/index3.js";
|
|
10
10
|
import { r as f } from "../../chunks/popover-ui-utils.js";
|
|
11
11
|
import { b as m } from "../../chunks/chart-object-literals.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as l, html as c } from "lit";
|
|
4
|
-
import {
|
|
4
|
+
import { g } from "../../chunks/chart-ui-utils2.js";
|
|
5
5
|
import { u as h } from "../../chunks/useT9n.js";
|
|
6
6
|
import { LitElement as m, createEvent as n } from "@arcgis/lumina";
|
|
7
7
|
const u = "arcgis-charts-config-storage-colors", v = l`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`;
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
import { c as V } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as U } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
|
-
import { createModel as R } from "../../model.js";
|
|
5
|
+
import { createModel as R } from "../../model/shared/setup-utils.js";
|
|
6
6
|
import { g as S, i as T, u as _, k as v, m as I } from "../../chunks/type-guards2.js";
|
|
7
7
|
import { i as H } from "../../chunks/rotated-state.js";
|
|
8
8
|
import { substitute as z } from "@arcgis/core/intl.js";
|
|
9
9
|
import { C as n } from "../../chunks/interfaces.js";
|
|
10
10
|
import { isEqual as D } from "lodash-es";
|
|
11
|
-
import { i as F } from "../../chunks/
|
|
11
|
+
import { i as F } from "../../chunks/index4.js";
|
|
12
12
|
import { D as E, w as k, F as O } from "../../chunks/index3.js";
|
|
13
13
|
import { LitElement as W, createEvent as f, renderElement as L, safeStyleMap as X, safeClassMap as d } from "@arcgis/lumina";
|
|
14
14
|
import { css as G, html as h } from "lit";
|
|
15
15
|
import { createRef as Z, ref as K } from "lit/directives/ref.js";
|
|
16
16
|
import { u as P } from "../../chunks/useT9n.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { c as j, a as x, g as q } from "../../chunks/store.js";
|
|
18
|
+
import { d0 as Y, _ as Q, d1 as J, K as ee, bX as te } from "../../chunks/index2.js";
|
|
19
19
|
import { A as ae } from "../../chunks/axis-model-wrapper.js";
|
|
20
|
-
import { h as ie,
|
|
21
|
-
import {
|
|
22
|
-
import { C as M } from "../../chunks/
|
|
20
|
+
import { h as ie, f as y } from "../../chunks/web-component-utils.js";
|
|
21
|
+
import { a as se } from "../../chunks/chart-ui-utils2.js";
|
|
22
|
+
import { C as M } from "../../chunks/index6.js";
|
|
23
23
|
import { a as B } from "../../chunks/chart-ui-utils.js";
|
|
24
24
|
import { c as re, d as $ } from "../../chunks/type-guards.js";
|
|
25
25
|
import { r as oe } from "../../chunks/popover-ui-utils.js";
|
|
@@ -3,15 +3,15 @@ import { c as M } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { ref as B } from "lit/directives/ref.js";
|
|
4
4
|
import { s as S, m as n, k as h, j as T, e as V, u as w } from "../../chunks/type-guards2.js";
|
|
5
5
|
import { i as L } from "../../chunks/data-labels-symbol.js";
|
|
6
|
-
import { i as P,
|
|
6
|
+
import { i as P, a as C, b as E } from "../../chunks/axis-lines-symbol.js";
|
|
7
7
|
import { isEmpty as f, cloneDeep as a, isArray as F, isObject as A, mergeWith as G } from "lodash-es";
|
|
8
|
-
import {
|
|
8
|
+
import { h as W } from "../../chunks/chart-ui-utils2.js";
|
|
9
9
|
import { g as D, i as b } from "../../chunks/rest-js-object-literals.js";
|
|
10
10
|
import { u as N } from "../../chunks/useT9n.js";
|
|
11
11
|
import { css as H, html as u } from "lit";
|
|
12
12
|
import { LitElement as j, renderElement as I, safeClassMap as p } from "@arcgis/lumina";
|
|
13
13
|
import { C as O, F as i, L as d } from "../../chunks/common.js";
|
|
14
|
-
import { q as x, x as l } from "../../chunks/
|
|
14
|
+
import { q as x, x as l } from "../../chunks/index5.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { u as r } from "../../chunks/chart-object-literals.js";
|
|
17
17
|
const v = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as T } from "../../chunks/runtime.js";
|
|
3
3
|
import { m as n, f as r, k as c } from "../../chunks/type-guards2.js";
|
|
4
|
-
import { i as h,
|
|
4
|
+
import { i as h, a as m, b as g } from "../../chunks/generate-x-axis-title.js";
|
|
5
5
|
import { isEmpty as x } from "lodash-es";
|
|
6
6
|
import { m as u, U as b } from "../../chunks/chart-ui-utils2.js";
|
|
7
7
|
import { u as p } from "../../chunks/useT9n.js";
|
|
@@ -9,7 +9,7 @@ import { css as C, html as l } from "lit";
|
|
|
9
9
|
import { createRef as f, ref as $ } from "lit/directives/ref.js";
|
|
10
10
|
import { LitElement as v, safeClassMap as i } from "@arcgis/lumina";
|
|
11
11
|
import { k as a } from "../../chunks/chart-object-literals.js";
|
|
12
|
-
import { i as y } from "../../chunks/
|
|
12
|
+
import { i as y } from "../../chunks/index4.js";
|
|
13
13
|
const s = {
|
|
14
14
|
textInput: "text-input",
|
|
15
15
|
label: "label",
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { c as R } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as X } from "lit/directives/keyed.js";
|
|
4
4
|
import { cloneDeep as E } from "lodash-es";
|
|
5
|
-
import { m as G,
|
|
5
|
+
import { m as G, a as N, j as Z, k, U as S } from "../../chunks/chart-ui-utils2.js";
|
|
6
6
|
import { d as F } from "../../chunks/default.js";
|
|
7
7
|
import { g as q } from "../../chunks/resource.js";
|
|
8
8
|
import { u as z } from "../../chunks/useT9n.js";
|
|
9
|
-
import { css as O, html as
|
|
9
|
+
import { css as O, html as c } from "lit";
|
|
10
10
|
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as V, createEvent as U, renderElement as M, safeStyleMap as L, safeClassMap as o } from "@arcgis/lumina";
|
|
12
12
|
import { m as W, p as Y, q as j } from "../../chunks/type-guards2.js";
|
|
13
13
|
import { M as p, i as H, a1 as A, aI as _ } from "../../chunks/index2.js";
|
|
14
14
|
import { Z as J } from "../../chunks/index.js";
|
|
15
|
-
import { q as m, p as K } from "../../chunks/
|
|
15
|
+
import { q as m, p as K } from "../../chunks/index5.js";
|
|
16
16
|
import { r as Q } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
import { i as g, g as ee } from "../../chunks/rest-js-object-literals.js";
|
|
18
18
|
import { u as te } from "../../chunks/chart-object-literals.js";
|
|
@@ -102,15 +102,15 @@ class se extends V {
|
|
|
102
102
|
})), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
103
103
|
}
|
|
104
104
|
setGuideDateTimeRange() {
|
|
105
|
-
const e = this.calculatedMinMaxBounds?.find((
|
|
105
|
+
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s), B = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x, w = this.endTimeCalciteInput.value?.value ?? "", P = w === "" ? B : w;
|
|
106
106
|
let $ = !1;
|
|
107
107
|
if (!Array.isArray(C) && C !== void 0 && I !== void 0) {
|
|
108
|
-
const
|
|
109
|
-
this.model.setGuideStart(
|
|
108
|
+
const d = `${C}T${I}`;
|
|
109
|
+
this.model.setGuideStart(d, this.index, this.orientation), $ = !0;
|
|
110
110
|
}
|
|
111
111
|
if (!Array.isArray(y) && y !== void 0 && P !== void 0) {
|
|
112
|
-
const
|
|
113
|
-
this.model.setGuideEnd(
|
|
112
|
+
const d = x === "" ? void 0 : `${y}T${P}`;
|
|
113
|
+
this.model.setGuideEnd(d, this.index, this.orientation), $ = !0;
|
|
114
114
|
}
|
|
115
115
|
$ && (this.symbolChange(), this.arcgisChartsConfigGuideChange.emit({
|
|
116
116
|
index: this.index,
|
|
@@ -159,7 +159,7 @@ class se extends V {
|
|
|
159
159
|
let l;
|
|
160
160
|
p(i, a) === g.SLS ? l = m(t) ? t : void 0 : l = t?.color;
|
|
161
161
|
const s = this.colorElement.value;
|
|
162
|
-
Array.isArray(t?.color) ? (this.guidePopover = M(
|
|
162
|
+
Array.isArray(t?.color) ? (this.guidePopover = M(c`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`), this.guidePopover !== void 0 && !document.body.contains(this.guidePopover) && document.body.appendChild(this.guidePopover)) : this.removeGuidePopover();
|
|
163
163
|
}
|
|
164
164
|
removeGuidePopover() {
|
|
165
165
|
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover = Q(this.guidePopover));
|
|
@@ -197,7 +197,7 @@ class se extends V {
|
|
|
197
197
|
i = this._messages.deleteGuide ?? "";
|
|
198
198
|
break;
|
|
199
199
|
}
|
|
200
|
-
this.tooltip = M(
|
|
200
|
+
this.tooltip = M(c`<calcite-tooltip style=${L({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
201
201
|
}
|
|
202
202
|
toggleGuide() {
|
|
203
203
|
const e = this.model.getGuideVisibility(this.index, this.orientation);
|
|
@@ -215,14 +215,14 @@ class se extends V {
|
|
|
215
215
|
}
|
|
216
216
|
renderColorElement() {
|
|
217
217
|
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ? Z(e.style) : ee.Solid, f = p(s, r) === g.SLS ? `line-${v}` : "square-f";
|
|
218
|
-
return
|
|
218
|
+
return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${L({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
219
219
|
}
|
|
220
220
|
render() {
|
|
221
221
|
const e = this.model.getGuideStart(this.index, this.orientation), t = this.model.getGuideEnd(this.index, this.orientation), i = this.model.getGuideName(this.index, this.orientation), a = this.model.getGuideLabelText(this.index, this.orientation), l = this.model.getGuideAbove(this.index, this.orientation), s = this.model.getGuideVisibility(this.index, this.orientation), r = this.isXAxisDateField;
|
|
222
|
-
return
|
|
222
|
+
return c`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition === q(this.index, this.orientation, this.model)} collapsible .messageOverrides=${{
|
|
223
223
|
expand: this._messages.expand,
|
|
224
224
|
collapse: this._messages.collapse
|
|
225
|
-
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${r ?
|
|
225
|
+
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${k} number-button-type=none .value=${e?.toString()} ${u(this.startCalciteInput)}></calcite-input>`}</calcite-label><calcite-label class=${o(n.column)}>${this._messages.end}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.endDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${k} number-button-type=none .value=${t?.toString()} ${u(this.endCalciteInput)}></calcite-input>`}</calcite-label></div>${r ? X("time-picker-row", c`<div class=${o(n.row)}>${e != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}${t != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}</div>`) : null}<div class=${o(n.row)}><div class=${o(n.column)}>${this.renderColorElement()}</div></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
R("arcgis-charts-config-guide", se);
|
|
@@ -4,7 +4,7 @@ import { LitElement as l } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as n, html as i } from "lit";
|
|
5
5
|
import { C as o } from "../../chunks/interfaces.js";
|
|
6
6
|
import { isEqual as d } from "lodash-es";
|
|
7
|
-
import { h } from "../../chunks/
|
|
7
|
+
import { h } from "../../chunks/index5.js";
|
|
8
8
|
import { ac as c, I as f } from "../../chunks/index2.js";
|
|
9
9
|
const m = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class p extends l {
|
|
@@ -11,15 +11,15 @@ import { u as R } from "../../chunks/useT9n.js";
|
|
|
11
11
|
import { e as l, W as C } from "../../chunks/interfaces.js";
|
|
12
12
|
import { x as W } from "../../chunks/data.js";
|
|
13
13
|
import { i as V } from "../../chunks/utils.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { l as v, s as q } from "../../chunks/chart-ui-utils2.js";
|
|
15
|
+
import { e as $, g as K, d as j, j as z } from "../../chunks/class-breaks.js";
|
|
16
|
+
import { e as X, a as Z } from "../../chunks/store.js";
|
|
17
17
|
import { H as G } from "../../chunks/common.js";
|
|
18
18
|
import { i as Y } from "../../chunks/rest-js-object-literals.js";
|
|
19
19
|
import { r as d, m as h, d as u, u as m, h as f, e as F, i as J } from "../../chunks/chart-object-literals.js";
|
|
20
20
|
import { t as Q, j as ee, k as g } from "../../chunks/index.js";
|
|
21
21
|
import { an as S } from "../../chunks/index2.js";
|
|
22
|
-
import { i as ae } from "../../chunks/
|
|
22
|
+
import { i as ae } from "../../chunks/index4.js";
|
|
23
23
|
import { r as te } from "../../chunks/popover-ui-utils.js";
|
|
24
24
|
const se = _`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`, r = {
|
|
25
25
|
label: "label",
|
|
@@ -10,7 +10,7 @@ import { isEqual as S } from "lodash-es";
|
|
|
10
10
|
import { d as A, F as b } from "../../chunks/index3.js";
|
|
11
11
|
import { u as v } from "../../chunks/useT9n.js";
|
|
12
12
|
import { e as c, W as $ } from "../../chunks/interfaces.js";
|
|
13
|
-
import {
|
|
13
|
+
import { c as y, b as D, e as m } from "../../chunks/chart-ui-utils2.js";
|
|
14
14
|
import { C as x, k } from "../../chunks/class-breaks.js";
|
|
15
15
|
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import { r as _, i as R, e as C } from "../../chunks/chart-object-literals.js";
|
|
@@ -5,7 +5,7 @@ import { LitElement as n } from "@arcgis/lumina";
|
|
|
5
5
|
import { css as h, html as t } from "lit";
|
|
6
6
|
import { C as i } from "../../chunks/interfaces.js";
|
|
7
7
|
import { ac as d, bu as c, I as m } from "../../chunks/index2.js";
|
|
8
|
-
import { p as f, h as g } from "../../chunks/
|
|
8
|
+
import { p as f, h as g } from "../../chunks/index5.js";
|
|
9
9
|
const p = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class u extends n {
|
|
11
11
|
constructor() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as I } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as y } from "lit/directives/keyed.js";
|
|
4
4
|
import { debounce as f } from "lodash-es";
|
|
5
|
-
import { H as d, f as a,
|
|
6
|
-
import { i as
|
|
7
|
-
import { d as P,
|
|
5
|
+
import { H as d, f as a, d as s } from "../../chunks/interfaces.js";
|
|
6
|
+
import { i as L, m as C, b as S, n as k, s as V, U as D, D as T } from "../../chunks/chart-ui-utils2.js";
|
|
7
|
+
import { d as P, a as x } from "../../chunks/store.js";
|
|
8
8
|
import { u as N } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as F, html as c } from "lit";
|
|
10
10
|
import { createRef as b, ref as v } from "lit/directives/ref.js";
|
|
@@ -28,7 +28,7 @@ class j extends B {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
super(...arguments), this._messages = N(), this.numericalFieldSelectionElement = b(), this.transformationSelectionElement = b(), this.histogramPopover = null, this.binColorSectionElement = b(), this.binSliderElement = b(), this.binInputElement = b(), this.popoverHeading = "", this.onBinCountChange = f(() => {
|
|
30
30
|
const e = this.binInputElement.value?.value;
|
|
31
|
-
e !== void 0 &&
|
|
31
|
+
e !== void 0 && L(e, this.binInputElement.value?.min, this.binInputElement.value?.max) ? this.binCountChange(e) : this.binInputElement.value && C({
|
|
32
32
|
inputElement: this.binInputElement.value,
|
|
33
33
|
status: D.INVALID
|
|
34
34
|
});
|
|
@@ -164,7 +164,7 @@ class j extends B {
|
|
|
164
164
|
t = void 0;
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
|
-
return
|
|
167
|
+
return k(t, T);
|
|
168
168
|
}
|
|
169
169
|
binCountChange(e) {
|
|
170
170
|
const t = Number.parseInt(e);
|
|
@@ -317,7 +317,7 @@ class j extends B {
|
|
|
317
317
|
return c`<div class=${o(l.sectionLabel)}>${this._messages.variables}</div><calcite-label class=${o(l.label)}>${this._messages.number}${e}</calcite-label><calcite-label class=${o(l.label)}>${this._messages.withTransformation}${t}</calcite-label><div class=${o(l.sectionLabel)}>${this._messages.bins}</div><p class=${o(l.binTextPadding)}>${this._messages.numberOfBins}</p>${this.renderBinsSection()}${this.renderBinColorElement()}<div class=${o(l.sectionLabel)}>${this._messages.overlays}</div>${this.renderOverlayList()}${this.renderShowDataLabels()}<div class=${o(l.sectionLabel)}>${this._messages.statistics}</div>${this.renderStats()}`;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
I("arcgis-charts-config-histogram-data", j);
|
|
321
321
|
export {
|
|
322
322
|
j as ArcgisChartsConfigHistogramData
|
|
323
323
|
};
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as y, html as s } from "lit";
|
|
4
4
|
import { keyed as c } from "lit/directives/keyed.js";
|
|
5
|
-
import { H as
|
|
6
|
-
import {
|
|
5
|
+
import { H as o } from "../../chunks/interfaces.js";
|
|
6
|
+
import { b as v, o as C } from "../../chunks/chart-ui-utils2.js";
|
|
7
7
|
import { u } from "../../chunks/useT9n.js";
|
|
8
8
|
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
9
9
|
import { LitElement as b, createEvent as p, safeClassMap as t } from "@arcgis/lumina";
|
|
10
10
|
import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import { g as
|
|
11
|
+
import { g as l } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { d as S } from "../../chunks/index3.js";
|
|
14
14
|
import { bj as k } from "../../chunks/index2.js";
|
|
@@ -42,23 +42,23 @@ class F extends b {
|
|
|
42
42
|
}
|
|
43
43
|
buildPickListItems(e) {
|
|
44
44
|
const n = [];
|
|
45
|
-
if (e ===
|
|
45
|
+
if (e === o.numericFields)
|
|
46
46
|
for (let r = 0; r < this.layerFieldsInfo?.length; r += 1) {
|
|
47
47
|
const a = this.layerFieldsInfo[r];
|
|
48
48
|
k(a) && n.push(c(a.name, s`<calcite-list-item .label=${S(this.layerFieldsInfo, a.name)} .value=${a.name} .selected=${this.selectedNumericField === a.name}></calcite-list-item>`));
|
|
49
49
|
}
|
|
50
50
|
else {
|
|
51
51
|
const r = [
|
|
52
|
-
c(
|
|
53
|
-
c(
|
|
54
|
-
c(
|
|
52
|
+
c(l.None, s`<calcite-list-item .label=${this._messages.none} .value=${l.None} .selected=${this.selectedTransformationType === l.None}></calcite-list-item>`),
|
|
53
|
+
c(l.Log, s`<calcite-list-item .label=${this._messages.log} .value=${l.Log} .selected=${this.selectedTransformationType === l.Log}></calcite-list-item>`),
|
|
54
|
+
c(l.Sqrt, s`<calcite-list-item .label=${this._messages.sqRt} .value=${l.Sqrt} .selected=${this.selectedTransformationType === l.Sqrt}></calcite-list-item>`)
|
|
55
55
|
];
|
|
56
56
|
n.push(...r);
|
|
57
57
|
}
|
|
58
58
|
return n;
|
|
59
59
|
}
|
|
60
60
|
getPopoverClass() {
|
|
61
|
-
return this.contentKind ===
|
|
61
|
+
return this.contentKind === o.fillSymbol || this.contentKind === o.lineSymbol ? i.symbolPropertyPopover : "";
|
|
62
62
|
}
|
|
63
63
|
closePopover() {
|
|
64
64
|
(this.open || this.popoverElement.value?.open === !1) && (this.open = !1, this.arcgisChartsConfigPopoverClose.emit());
|
|
@@ -86,11 +86,11 @@ class F extends b {
|
|
|
86
86
|
return s`<arcgis-charts-config-line-style class=${t(i.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle ?? this._messages.lineStyle} .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`;
|
|
87
87
|
}
|
|
88
88
|
renderFieldSelect() {
|
|
89
|
-
const e = this.buildPickListItems(
|
|
89
|
+
const e = this.buildPickListItems(o.numericFields);
|
|
90
90
|
return s`<calcite-panel class=${t(i.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${t(i.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${t(i.pickListItemLabel)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`;
|
|
91
91
|
}
|
|
92
92
|
renderTransformationSelect() {
|
|
93
|
-
const e = this.buildPickListItems(
|
|
93
|
+
const e = this.buildPickListItems(o.transformation);
|
|
94
94
|
return s`<calcite-panel class=${t(i.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${t(i.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${t(i.pickListItemLabel)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`;
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
@@ -98,13 +98,13 @@ class F extends b {
|
|
|
98
98
|
}
|
|
99
99
|
renderContentType() {
|
|
100
100
|
switch (this.contentKind) {
|
|
101
|
-
case
|
|
101
|
+
case o.fillSymbol:
|
|
102
102
|
return this.renderFillColor();
|
|
103
|
-
case
|
|
103
|
+
case o.lineSymbol:
|
|
104
104
|
return this.renderOverlayStyle();
|
|
105
|
-
case
|
|
105
|
+
case o.numericFields:
|
|
106
106
|
return this.renderFieldSelect();
|
|
107
|
-
case
|
|
107
|
+
case o.transformation:
|
|
108
108
|
return this.renderTransformationSelect();
|
|
109
109
|
default:
|
|
110
110
|
return;
|
|
@@ -5,7 +5,7 @@ import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
7
|
import { ac as c, I as m, bj as f, ba as g } from "../../chunks/index2.js";
|
|
8
|
-
import { h as p } from "../../chunks/
|
|
8
|
+
import { h as p } from "../../chunks/index5.js";
|
|
9
9
|
const u = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class C extends n {
|
|
11
11
|
constructor() {
|
|
@@ -6,7 +6,7 @@ import { css as I, html as r } from "lit";
|
|
|
6
6
|
import { createRef as m, ref as d } from "lit/directives/ref.js";
|
|
7
7
|
import { u as b } from "../../chunks/useT9n.js";
|
|
8
8
|
import { L as l } from "../../chunks/interfaces.js";
|
|
9
|
-
import { d as B,
|
|
9
|
+
import { d as B, a as u, r as T, b as S } from "../../chunks/store.js";
|
|
10
10
|
import { isEqual as k } from "lodash-es";
|
|
11
11
|
import { x as E } from "../../chunks/data.js";
|
|
12
12
|
import { r as c, s as f, m as h } from "../../chunks/chart-object-literals.js";
|