@arcgis/charts-components 6.0.0-next.34 → 6.0.0-next.35
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/{MCZMJAXK.js → 2BZPX3WJ.js} +1 -1
- package/dist/cdn/{33SNFNFO.js → 2DQ7ZBXE.js} +1 -1
- package/dist/cdn/{4CI4XQ6A.js → 3JRS3R5K.js} +1 -1
- package/dist/cdn/{5UNAEQIF.js → 3LWOTXAJ.js} +1 -1
- package/dist/cdn/{MI5ZOFNE.js → 3NTU2K22.js} +1 -1
- package/dist/cdn/{E2BM4PQP.js → 42LSDQXN.js} +1 -1
- package/dist/cdn/{FXWVQU7B.js → 4EEG3Y4A.js} +1 -1
- package/dist/cdn/{URBOZ7IV.js → 4FEQIWCL.js} +1 -1
- package/dist/cdn/{LCMUCICY.js → 4XTFDZMW.js} +1 -1
- package/dist/cdn/{42AYSOYQ.js → 54I7ID6Z.js} +1 -1
- package/dist/cdn/{O5UELXJC.js → 5GJ7X4OZ.js} +1 -1
- package/dist/cdn/{DXMYDWMF.js → 5N22DW2N.js} +1 -1
- package/dist/cdn/{VQK7RKE3.js → 5NMRQXC4.js} +1 -1
- package/dist/cdn/{Q4LXZQ7G.js → 5VI725BE.js} +1 -1
- package/dist/cdn/{LZ6SUMGO.js → 5VW7MADK.js} +1 -1
- package/dist/cdn/6ITF7OPU.js +2 -0
- package/dist/cdn/{HHLOIUUD.js → 747HTBX6.js} +1 -1
- package/dist/cdn/{KW3N46DO.js → 7KAWS7PM.js} +1 -1
- package/dist/cdn/{7SKEI4E6.js → 7OQ5KHLB.js} +1 -1
- package/dist/cdn/{UMPW3YOW.js → 7Z5HY6CX.js} +1 -1
- package/dist/cdn/{4E3S2ML7.js → A4SE2666.js} +1 -1
- package/dist/cdn/ALUFN6JU.js +2 -0
- package/dist/cdn/{RFUS6E3N.js → AWS2YG4M.js} +1 -1
- package/dist/cdn/{ZMD6HSI6.js → B3XFRI2T.js} +1 -1
- package/dist/cdn/{M3QY2KLY.js → B6TOZWKP.js} +1 -1
- package/dist/cdn/{HMBGKFUN.js → BG5Q5IKV.js} +1 -1
- package/dist/cdn/{R73C2BX4.js → BLNSWTDE.js} +1 -1
- package/dist/cdn/{VUILGVZ6.js → BQSQE7VQ.js} +1 -1
- package/dist/cdn/{EV5J5FUX.js → BS6ZKR5Y.js} +1 -1
- package/dist/cdn/{TDNKE2VP.js → C2LULOIM.js} +1 -1
- package/dist/cdn/{DLJ5JUXJ.js → CPZAKMTU.js} +1 -1
- package/dist/cdn/{FRN47OTB.js → D7GICKNU.js} +1 -1
- package/dist/cdn/{RXOUF2HA.js → EYHCX276.js} +1 -1
- package/dist/cdn/{IRP6FSBB.js → F3MIZQUC.js} +1 -1
- package/dist/cdn/{42NW4KCH.js → F3TJTLG7.js} +1 -1
- package/dist/cdn/{DWSCE6QM.js → F5NV3AJ5.js} +1 -1
- package/dist/cdn/{XDLBRYVE.js → FBYUBQLZ.js} +1 -1
- package/dist/cdn/{P5JPYG4Z.js → FCOD27CY.js} +1 -1
- package/dist/cdn/{4CIFWASN.js → FDM5MY6D.js} +1 -1
- package/dist/cdn/{HIFEJ5CV.js → FXTL5IZJ.js} +1 -1
- package/dist/cdn/{YDODSSRW.js → G3VKWODV.js} +1 -1
- package/dist/cdn/{LSMB53E3.js → GA2UFZXY.js} +1 -1
- package/dist/cdn/{JE3QM6AW.js → HCQDDW6C.js} +1 -1
- package/dist/cdn/{RQYBXGTL.js → HF7ILAKI.js} +1 -1
- package/dist/cdn/{LRDJBGZS.js → HO2B7R2W.js} +1 -1
- package/dist/cdn/{GTD5EXV2.js → HVXXE5ZN.js} +1 -1
- package/dist/cdn/{AXYE2HX6.js → I6FJ54MZ.js} +1 -1
- package/dist/cdn/{EMV26WWB.js → IBS2EHYN.js} +1 -1
- package/dist/cdn/{QMPQESBZ.js → ILNDY3YI.js} +1 -1
- package/dist/cdn/{EDGME7VO.js → IZJLIFYM.js} +1 -1
- package/dist/cdn/{H2BQNZW4.js → JPR5ZF7D.js} +1 -1
- package/dist/cdn/{57VCII7P.js → JQIPTC5I.js} +1 -1
- package/dist/cdn/{7DONLE35.js → JZXZAQPZ.js} +1 -1
- package/dist/cdn/KMVAWVMM.js +2 -0
- package/dist/cdn/{EDZAQNWX.js → KOZPLQLZ.js} +1 -1
- package/dist/cdn/{MZRAPDRT.js → MD76NSPD.js} +1 -1
- package/dist/cdn/{KF35NZ4P.js → MQKJTPAC.js} +1 -1
- package/dist/cdn/{CU4UB2A7.js → MT6F4GEI.js} +1 -1
- package/dist/cdn/{BLS6BF2L.js → NACMNBIP.js} +1 -1
- package/dist/cdn/{OXOOIHEE.js → OCAITJL6.js} +2 -2
- package/dist/cdn/{L7UQNGQR.js → OZEYHJND.js} +1 -1
- package/dist/cdn/{YWWWL7VA.js → PMHRQOKZ.js} +1 -1
- package/dist/cdn/{XLF3VSA3.js → Q4HEXCLD.js} +1 -1
- package/dist/cdn/{F2GNY3MM.js → QJJYPIM7.js} +1 -1
- package/dist/cdn/{MOPMKH2V.js → QLRY7QKC.js} +1 -1
- package/dist/cdn/{VL4FR4TN.js → QYDTSZH5.js} +17 -17
- package/dist/cdn/RH2BBROM.js +2 -0
- package/dist/cdn/{P2AC2FC4.js → RPHXKD7J.js} +1 -1
- package/dist/cdn/{2DLCZPGT.js → RVRNYRR5.js} +1 -1
- package/dist/cdn/{OKQKTXSG.js → RYAQ7TZ5.js} +1 -1
- package/dist/cdn/S2CDU562.js +2 -0
- package/dist/cdn/{IFDTYYTW.js → SMYPC6YZ.js} +1 -1
- package/dist/cdn/{FFU63U6V.js → SPQSYOVK.js} +1 -1
- package/dist/cdn/{UE6N5N3X.js → STEMSCEZ.js} +1 -1
- package/dist/cdn/{WBQM4ASJ.js → UEH74K4Z.js} +1 -1
- package/dist/cdn/{YKSQH65V.js → UQHIV37J.js} +1 -1
- package/dist/cdn/{YJ7WPVBF.js → VHDFOTME.js} +1 -1
- package/dist/cdn/{6REYJD6E.js → VHLEM5TX.js} +1 -1
- package/dist/cdn/{7M4EWNDY.js → VHXIV5BX.js} +1 -1
- package/dist/cdn/{CYSQZIZN.js → VSYK6HGS.js} +1 -1
- package/dist/cdn/{DUKNIIM2.js → W52LHBTO.js} +1 -1
- package/dist/cdn/{EAHAZABZ.js → WLIVWHF6.js} +1 -1
- package/dist/cdn/{Q5GNPML7.js → WVXK6SQ2.js} +1 -1
- package/dist/cdn/{HBWSBIS4.js → WXUTW33L.js} +1 -1
- package/dist/cdn/{YYOMI2VT.js → XEW2A47I.js} +1 -1
- package/dist/cdn/{I3Y5KNFE.js → XNLXGZIZ.js} +1 -1
- package/dist/cdn/{S7ULRE3X.js → YGEJBPIE.js} +1 -1
- package/dist/cdn/YKM3E7AD.js +2 -0
- package/dist/cdn/{BZK3YRC3.js → YWAAPW2R.js} +1 -1
- package/dist/cdn/{DFPLMKGU.js → Z2XPKJMJ.js} +1 -1
- package/dist/cdn/{TSKWTKCT.js → Z6VYURPS.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/chart-ui-utils.js +36 -36
- package/dist/chunks/index.js +1 -1
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +1922 -1912
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +20 -19
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +79 -77
- package/dist/components/arcgis-charts-config-guide/customElement.js +47 -46
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +35 -31
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +18 -18
- 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 +1 -1
- package/dist/interfaces.d.ts +1 -15
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +1 -1
- package/dist/model/properties/layer.d.ts +2 -2
- package/dist/utils/layer/index.d.ts +6 -6
- package/dist/utils/layer/interfaces.d.ts +13 -3
- package/dist/utils/layer/query-parser/index.d.ts +2 -2
- package/dist/utils/layer/utils/index.d.ts +6 -18
- package/package.json +5 -5
- package/dist/cdn/4Q3YU4TS.js +0 -2
- package/dist/cdn/I6PWQEWZ.js +0 -2
- package/dist/cdn/T2CFMDZV.js +0 -2
- package/dist/cdn/UWRA674P.js +0 -2
- package/dist/cdn/V62HBNDH.js +0 -2
- package/dist/cdn/XMFFQFWM.js +0 -2
- /package/dist/cdn/{L2G4TISY.js → S6G2OZSX.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { repeat as
|
|
6
|
-
import { u as
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { a as
|
|
2
|
+
import { c as P } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as y, html as n } from "lit";
|
|
4
|
+
import { keyed as M } from "lit/directives/keyed.js";
|
|
5
|
+
import { repeat as O } from "lit/directives/repeat.js";
|
|
6
|
+
import { u as B } from "../../chunks/useT9n.js";
|
|
7
|
+
import { LitElement as w, renderElement as d, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
|
|
8
|
+
import { a as T, g as N } from "../../chunks/chart-ui-utils.js";
|
|
9
9
|
import { y 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";
|
|
@@ -14,10 +14,10 @@ const l = {
|
|
|
14
14
|
sectionLabel: "section-label",
|
|
15
15
|
list: "list",
|
|
16
16
|
infoIcon: "info-icon"
|
|
17
|
-
},
|
|
18
|
-
class
|
|
17
|
+
}, E = y`.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)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.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)}.info-icon{margin:auto 1rem;pointer-events:auto}`;
|
|
18
|
+
class W extends w {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(...arguments), this._messages =
|
|
20
|
+
super(...arguments), this._messages = B(), this.resetSeriesOriginal = () => {
|
|
21
21
|
this.configSeriesOpen = !1, this.selectedSeriesId = void 0, this.model.resetSeriesStyling(), this.seriesOrderResetCounter += 1;
|
|
22
22
|
}, this.onMultipleSeriesSelect = (e) => {
|
|
23
23
|
if (!this.shouldDisableMeanLinesOption()) {
|
|
@@ -72,7 +72,7 @@ class N extends B {
|
|
|
72
72
|
const s = e.target;
|
|
73
73
|
this.tooltip = d(n`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${s} open placement=top>${i ?? ""}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
74
74
|
}, this.destroyTooltip = () => {
|
|
75
|
-
|
|
75
|
+
T(this.tooltip);
|
|
76
76
|
}, this.onModelConfigChange = () => {
|
|
77
77
|
this.selectedSeriesId !== void 0 && this.selectedSeriesIndex === -1 ? this.seriesPopoverClose() : this.seriesPopover && (this.seriesPopover.selectedSeriesIndex = this.selectedSeriesIndex), this.requestUpdate();
|
|
78
78
|
}, this.meanLinesBoxColorIsSelected = !1, this.seriesOrderResetCounter = 0, this.configSeriesOpen = !1, this.activeColorMatch = !1, this.popoverPlacement = "leading";
|
|
@@ -81,7 +81,7 @@ class N extends B {
|
|
|
81
81
|
this.properties = { selectedSeriesId: 16, meanLinesBoxColorIsSelected: 16, seriesOrderResetCounter: 16, messageOverrides: 0, model: 0, configSeriesOpen: 5, activeColorMatch: 5, popoverPlacement: 1 };
|
|
82
82
|
}
|
|
83
83
|
static {
|
|
84
|
-
this.styles =
|
|
84
|
+
this.styles = E;
|
|
85
85
|
}
|
|
86
86
|
get selectedSeriesIndex() {
|
|
87
87
|
return this.selectedSeriesId === void 0 ? void 0 : this.model.getSeriesIndex(this.selectedSeriesId);
|
|
@@ -106,19 +106,20 @@ class N extends B {
|
|
|
106
106
|
}
|
|
107
107
|
buildSeriesListItems() {
|
|
108
108
|
const e = this.model.seriesLength, i = this.model.boxPlotSeriesIndexWhenMeanLinesShown, s = Array.from({ length: e }, (t, o) => o);
|
|
109
|
-
return
|
|
109
|
+
return O(s, (t) => this.model.getSeriesId(t), (t) => {
|
|
110
110
|
const o = this.model.getSeriesId(t), c = this.model.getSeriesColor(t), v = this.model.getSeriesName(t), g = this.model.chartSubType, u = g === S.BoxPlotC1MonoField || g === S.BoxPlotC2MultiFields ? this._messages.series : o;
|
|
111
111
|
let p = "#CCCCCC", C = "minus-square";
|
|
112
112
|
if ((e > 1 || !this.activeColorMatch) && c !== void 0) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
const x = this.model.getSeriesLineStyle(t);
|
|
114
|
+
C = this.model.showMeanLines === !0 ? N(x) : "square-f";
|
|
115
|
+
const [$, I, L, b] = [...c];
|
|
116
|
+
p = `rgba(${$},${I},${L},${b / 255})`;
|
|
116
117
|
}
|
|
117
118
|
return i !== t ? n`<calcite-list-item .label=${v ?? o ?? ""} .description=${u} .value=${o} .selected=${this.selectedSeriesId === o} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${C} style=${h({ color: p })}></calcite-icon></calcite-list-item>` : null;
|
|
118
119
|
});
|
|
119
120
|
}
|
|
120
121
|
buildSeriesList() {
|
|
121
|
-
return
|
|
122
|
+
return M(this.seriesOrderResetCounter, n`<calcite-list label class=${a(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
|
|
122
123
|
}
|
|
123
124
|
setupSeriesPopover() {
|
|
124
125
|
this.removeSeriesPopover(), this.meanLinesBoxColorIsSelected ? this.seriesPopover = d(n`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedColor=${this.model.meanLinesBoxColor} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`) : this.selectedSeriesIndex !== void 0 && (this.seriesPopover = d(n`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .isLineSymbol=${this.model.showMeanLines} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`)), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover);
|
|
@@ -148,7 +149,7 @@ class N extends B {
|
|
|
148
149
|
return n`${this.renderMultipleSeriesOption()}<div class=${a(l.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()}`;
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
|
|
152
|
+
P("arcgis-charts-config-box-plot-series", W);
|
|
152
153
|
export {
|
|
153
|
-
|
|
154
|
+
W as ArcgisChartsConfigBoxPlotSeries
|
|
154
155
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/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 { g } from "../../chunks/chart-ui-utils.js";
|
|
4
|
+
import { h as g } from "../../chunks/chart-ui-utils.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}`;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { ref as
|
|
4
|
-
import { n as
|
|
5
|
-
import { i as
|
|
6
|
-
import { i as
|
|
7
|
-
import { cloneDeep as c, isArray as
|
|
8
|
-
import {
|
|
9
|
-
import { R as
|
|
10
|
-
import { u as
|
|
11
|
-
import { css as
|
|
12
|
-
import { LitElement as
|
|
13
|
-
import { C as
|
|
14
|
-
import { b as u, ch as r, C as
|
|
15
|
-
import { r as
|
|
2
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
3
|
+
import { ref as W } from "lit/directives/ref.js";
|
|
4
|
+
import { n as S, l as p, j as g, o as T, c as N, k as z } from "../../chunks/type-guards.js";
|
|
5
|
+
import { i as C } from "../../chunks/data-labels-symbol.js";
|
|
6
|
+
import { i as L, a as P, b as E } from "../../chunks/axis-lines-symbol.js";
|
|
7
|
+
import { cloneDeep as c, isArray as M, isObject as B, mergeWith as H, isEmpty as v } from "es-toolkit/compat";
|
|
8
|
+
import { g as j, j as I } from "../../chunks/chart-ui-utils.js";
|
|
9
|
+
import { R, b as y } from "../../chunks/rest-js-object-literals.js";
|
|
10
|
+
import { u as O } from "../../chunks/useT9n.js";
|
|
11
|
+
import { css as X, html as b } from "lit";
|
|
12
|
+
import { LitElement as _, renderElement as Y, safeClassMap as f, safeStyleMap as U } from "@arcgis/lumina";
|
|
13
|
+
import { C as q, F as i, L as d } from "../../chunks/common.js";
|
|
14
|
+
import { b as u, ch as r, C as J } from "../../chunks/index.js";
|
|
15
|
+
import { r as V } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { a } from "../../chunks/chart-object-literals.js";
|
|
17
|
-
const
|
|
18
|
-
type:
|
|
17
|
+
const k = {
|
|
18
|
+
type: y.TS,
|
|
19
19
|
color: [1, 1, 1, 255],
|
|
20
20
|
font: {
|
|
21
21
|
family: "Tahoma",
|
|
@@ -24,19 +24,19 @@ const v = {
|
|
|
24
24
|
style: "normal",
|
|
25
25
|
weight: "normal"
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
type:
|
|
27
|
+
}, F = {
|
|
28
|
+
type: y.SLS,
|
|
29
29
|
color: [1, 1, 1, 255],
|
|
30
|
-
style:
|
|
30
|
+
style: R.Solid,
|
|
31
31
|
width: 2
|
|
32
|
-
},
|
|
32
|
+
}, x = {
|
|
33
33
|
element: "chart-element",
|
|
34
34
|
elementList: "element-list",
|
|
35
35
|
sectionLabel: "section-label"
|
|
36
|
-
},
|
|
37
|
-
class
|
|
36
|
+
}, Q = X`.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{width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.element-list{margin:var(--arcgis-charts-config-margin-minor)}.element{user-select:none}`;
|
|
37
|
+
class Z extends _ {
|
|
38
38
|
constructor() {
|
|
39
|
-
super(...arguments), this._messages =
|
|
39
|
+
super(...arguments), this._messages = O(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
|
|
40
40
|
const e = t;
|
|
41
41
|
e.stopImmediatePropagation();
|
|
42
42
|
let s;
|
|
@@ -44,7 +44,7 @@ class X extends H {
|
|
|
44
44
|
this.selectedSymbols = [], this.updateSelectedElement(this.selectedSymbols);
|
|
45
45
|
else {
|
|
46
46
|
const o = this.getFormatValue(s);
|
|
47
|
-
this.selectedSymbols = [s], this.initSelectedSymbols(u(o) ? o :
|
|
47
|
+
this.selectedSymbols = [s], this.initSelectedSymbols(u(o) ? o : F);
|
|
48
48
|
}
|
|
49
49
|
this.setupFormatPopover();
|
|
50
50
|
}, this.textPropertyChange = (t) => {
|
|
@@ -54,8 +54,8 @@ class X extends H {
|
|
|
54
54
|
if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedBackground = [], e.shiftKey) {
|
|
55
55
|
this.selectedTexts = [];
|
|
56
56
|
const o = this.textProperties.indexOf(this.lastSelectedText ?? s), l = this.textProperties.indexOf(s);
|
|
57
|
-
this.textProperties.forEach((n,
|
|
58
|
-
|
|
57
|
+
this.textProperties.forEach((n, m) => {
|
|
58
|
+
m >= Math.min(o, l) && m <= Math.max(o, l) && this.selectedTexts.push(n);
|
|
59
59
|
}), this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
|
|
60
60
|
} else if (e.ctrlKey)
|
|
61
61
|
this.selectedTexts.includes(s) ? (this.selectedTexts = this.selectedTexts.filter((o) => o !== s), this.updateSelectedElement(this.selectedTexts)) : (this.selectedTexts = [...this.selectedTexts, s], this.updateSelectedElement(this.selectedTexts)), this.setupFormatPopover();
|
|
@@ -63,7 +63,7 @@ class X extends H {
|
|
|
63
63
|
this.selectedTexts = [], this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
|
|
64
64
|
else {
|
|
65
65
|
const o = this.getFormatValue(s);
|
|
66
|
-
this.selectedTexts = [s], this.initSelectedTexts(r(o) ? o :
|
|
66
|
+
this.selectedTexts = [s], this.initSelectedTexts(r(o) ? o : k), this.setupFormatPopover();
|
|
67
67
|
}
|
|
68
68
|
this.lastSelectedText = s;
|
|
69
69
|
}, this.backgroundChange = (t) => {
|
|
@@ -73,7 +73,7 @@ class X extends H {
|
|
|
73
73
|
if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedTexts = [], this.selectedBackground.includes(s))
|
|
74
74
|
this.selectedBackground = [], this.selectedElement = void 0;
|
|
75
75
|
else {
|
|
76
|
-
const o = this.getFormatValue(s), l = [...
|
|
76
|
+
const o = this.getFormatValue(s), l = [...J.backgroundColor];
|
|
77
77
|
this.selectedBackground = [s], this.selectedElement = o ?? l;
|
|
78
78
|
}
|
|
79
79
|
this.setupFormatPopover();
|
|
@@ -83,14 +83,14 @@ class X extends H {
|
|
|
83
83
|
this.setFormatValue(s, e);
|
|
84
84
|
}), this.selectedElement = c(t.target.selectedElement);
|
|
85
85
|
}, this.updateBackground = (t) => {
|
|
86
|
-
this.setFormatValue(
|
|
86
|
+
this.setFormatValue(q.Background, t.detail), this.selectedElement = t.detail;
|
|
87
87
|
}, this.updateTextProps = (t) => {
|
|
88
88
|
const { font: e, color: s } = t.detail;
|
|
89
89
|
this.selectedTexts.forEach((o) => {
|
|
90
90
|
const l = this.getFormatValue(o), n = r(l) ? l : void 0;
|
|
91
91
|
this.setFormatValue(o, {
|
|
92
92
|
...n,
|
|
93
|
-
type:
|
|
93
|
+
type: y.TS,
|
|
94
94
|
font: { ...n?.font, ...e },
|
|
95
95
|
color: s ?? n?.color
|
|
96
96
|
});
|
|
@@ -101,7 +101,7 @@ class X extends H {
|
|
|
101
101
|
this.formatPopover === t?.target && (this.selectedTexts = [], this.selectedSymbols = [], this.selectedBackground = [], this.selectedElement = {}, this.removeFormatPopover());
|
|
102
102
|
}, this.mergeFormatValues = (t, e) => {
|
|
103
103
|
let s = !1;
|
|
104
|
-
|
|
104
|
+
M(t) && M(e) || B(t) && B(e) ? s = !0 : s = t === e;
|
|
105
105
|
const o = typeof t == "number" || typeof e == "number" ? Number.NaN : "";
|
|
106
106
|
return s ? void 0 : o;
|
|
107
107
|
}, this.updateSelectableElements = (t) => {
|
|
@@ -112,7 +112,7 @@ class X extends H {
|
|
|
112
112
|
this.properties = { selectedSymbols: 16, selectedTexts: 16, selectedBackground: 16, selectedElement: 16, messageOverrides: 0, model: 0 };
|
|
113
113
|
}
|
|
114
114
|
static {
|
|
115
|
-
this.styles =
|
|
115
|
+
this.styles = Q;
|
|
116
116
|
}
|
|
117
117
|
load() {
|
|
118
118
|
this.modelChange(this.model);
|
|
@@ -137,29 +137,29 @@ class X extends H {
|
|
|
137
137
|
const s = c(this.getFormatValue(t[0]));
|
|
138
138
|
this.selectedElement = t?.reduce((o, l) => {
|
|
139
139
|
const n = this.getFormatValue(l);
|
|
140
|
-
return
|
|
140
|
+
return H(o, n, this.mergeFormatValues);
|
|
141
141
|
}, s);
|
|
142
142
|
} else {
|
|
143
143
|
let s = c(e);
|
|
144
|
-
|
|
144
|
+
v(e) && (this.selectedSymbols?.length > 0 && (s = c(F)), this.selectedTexts?.length > 0 && (s = c(k))), this.selectedElement = s;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
initSelectedTexts(t) {
|
|
148
148
|
let e = c(t);
|
|
149
|
-
|
|
149
|
+
v(t) && (e = c(k)), this.selectedElement = e;
|
|
150
150
|
}
|
|
151
151
|
initSelectedSymbols(t) {
|
|
152
152
|
let e = c(t);
|
|
153
|
-
|
|
153
|
+
v(t) && (e = c(F)), this.selectedElement = e;
|
|
154
154
|
}
|
|
155
155
|
setupFormatPopover() {
|
|
156
|
-
this.formatPopover =
|
|
156
|
+
this.formatPopover = V(this.formatPopover);
|
|
157
157
|
const t = this.selectedElement;
|
|
158
|
-
t?.type ===
|
|
159
|
-
Array.isArray(this.selectedElement) ? (this.formatPopover =
|
|
158
|
+
t?.type === y.TS || t?.type === y.SLS || // To check if the selected element is background.
|
|
159
|
+
Array.isArray(this.selectedElement) ? (this.formatPopover = Y(b`<arcgis-charts-config-format-popover .selectedElement=${this.selectedElement} .referenceElement=${this.el} @arcgisChartsConfigFormatPopoverSymbolChange=${this.updateSymbolProps} @arcgisChartsConfigFormatPopoverTextChange=${this.updateTextProps} @arcgisChartsConfigFormatPopoverColorChange=${this.updateBackground} placement=auto @arcgisChartsConfigPopoverClose=${this.formatPopoverClose} open></arcgis-charts-config-format-popover>`), this.formatPopover !== null && !document.body.contains(this.formatPopover) && document.body.appendChild(this.formatPopover)) : this.removeFormatPopover();
|
|
160
160
|
}
|
|
161
161
|
removeFormatPopover() {
|
|
162
|
-
this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover =
|
|
162
|
+
this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = V(this.formatPopover));
|
|
163
163
|
}
|
|
164
164
|
getFormatValue(t) {
|
|
165
165
|
switch (t) {
|
|
@@ -168,25 +168,25 @@ class X extends H {
|
|
|
168
168
|
case i.Description:
|
|
169
169
|
return this.model.descriptionSymbol;
|
|
170
170
|
case i.XAxisTitle:
|
|
171
|
-
return
|
|
171
|
+
return E(this.model) ? this.model.xAxisTitleSymbol : void 0;
|
|
172
172
|
case i.YAxisTitle:
|
|
173
|
-
return
|
|
173
|
+
return p(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
|
|
174
174
|
case i.AxisLabels:
|
|
175
|
-
return
|
|
175
|
+
return P(this.model) ? this.model.axisLabelsSymbol : void 0;
|
|
176
176
|
case i.GuideLabels:
|
|
177
|
-
return
|
|
177
|
+
return T(this.model) ? this.model.guideLabelsSymbol : void 0;
|
|
178
178
|
case i.LegendText:
|
|
179
|
-
return
|
|
179
|
+
return g(this.model) ? this.model.legendTextSymbol : void 0;
|
|
180
180
|
case i.LegendTitle:
|
|
181
|
-
return
|
|
181
|
+
return g(this.model) ? this.model.legendTitleSymbol : void 0;
|
|
182
182
|
case i.DataLabels:
|
|
183
|
-
return
|
|
183
|
+
return C(this.model) ? this.model.dataLabelsSymbol : void 0;
|
|
184
184
|
case d.AxisLines:
|
|
185
|
-
return
|
|
185
|
+
return L(this.model) ? this.model.axisLinesSymbol : void 0;
|
|
186
186
|
case d.GridLines:
|
|
187
|
-
return
|
|
187
|
+
return p(this.model) ? this.model.getGridLinesSymbol() : void 0;
|
|
188
188
|
case d.LeaderLines:
|
|
189
|
-
return
|
|
189
|
+
return S(this.model) ? this.model.ticksSymbol : void 0;
|
|
190
190
|
case i.Background:
|
|
191
191
|
return this.model.backgroundColor;
|
|
192
192
|
default:
|
|
@@ -202,34 +202,34 @@ class X extends H {
|
|
|
202
202
|
r(e) && (this.model.descriptionSymbol = e);
|
|
203
203
|
break;
|
|
204
204
|
case i.XAxisTitle:
|
|
205
|
-
|
|
205
|
+
E(this.model) && r(e) && (this.model.xAxisTitleSymbol = e);
|
|
206
206
|
break;
|
|
207
207
|
case i.YAxisTitle:
|
|
208
|
-
|
|
208
|
+
p(this.model) && r(e) && this.model.setAxisTitleSymbol(e, 1);
|
|
209
209
|
break;
|
|
210
210
|
case i.AxisLabels:
|
|
211
|
-
|
|
211
|
+
P(this.model) && r(e) && (this.model.axisLabelsSymbol = e);
|
|
212
212
|
break;
|
|
213
213
|
case i.GuideLabels:
|
|
214
|
-
|
|
214
|
+
T(this.model) && r(e) && (this.model.guideLabelsSymbol = e);
|
|
215
215
|
break;
|
|
216
216
|
case i.LegendText:
|
|
217
|
-
|
|
217
|
+
g(this.model) && r(e) && (this.model.legendTextSymbol = e);
|
|
218
218
|
break;
|
|
219
219
|
case i.LegendTitle:
|
|
220
|
-
|
|
220
|
+
g(this.model) && r(e) && (this.model.legendTitleSymbol = e);
|
|
221
221
|
break;
|
|
222
222
|
case i.DataLabels:
|
|
223
|
-
|
|
223
|
+
C(this.model) && r(e) && (this.model.dataLabelsSymbol = e);
|
|
224
224
|
break;
|
|
225
225
|
case d.AxisLines:
|
|
226
|
-
|
|
226
|
+
L(this.model) && u(e) && (this.model.axisLinesSymbol = e);
|
|
227
227
|
break;
|
|
228
228
|
case d.GridLines:
|
|
229
229
|
if (u(e)) {
|
|
230
|
-
if (
|
|
230
|
+
if (N(this.model))
|
|
231
231
|
this.model.setGridLinesSymbol(e);
|
|
232
|
-
else if (
|
|
232
|
+
else if (p(this.model)) {
|
|
233
233
|
const s = this.model.chartType;
|
|
234
234
|
let o = [];
|
|
235
235
|
switch (s) {
|
|
@@ -254,7 +254,7 @@ class X extends H {
|
|
|
254
254
|
}
|
|
255
255
|
break;
|
|
256
256
|
case d.LeaderLines:
|
|
257
|
-
|
|
257
|
+
S(this.model) && u(e) && (this.model.ticksSymbol = e);
|
|
258
258
|
break;
|
|
259
259
|
case i.Background:
|
|
260
260
|
Array.isArray(e) && (this.model.backgroundColor = e);
|
|
@@ -264,33 +264,35 @@ class X extends H {
|
|
|
264
264
|
renderFormatElements() {
|
|
265
265
|
this.textProperties = [
|
|
266
266
|
i.Title,
|
|
267
|
-
...
|
|
268
|
-
...
|
|
269
|
-
...
|
|
267
|
+
...E(this.model) ? [i.XAxisTitle] : [],
|
|
268
|
+
...p(this.model) ? [i.YAxisTitle] : [],
|
|
269
|
+
...g(this.model) ? [i.LegendTitle] : [],
|
|
270
270
|
i.Description,
|
|
271
|
-
...
|
|
272
|
-
...
|
|
273
|
-
...
|
|
274
|
-
...
|
|
275
|
-
],
|
|
271
|
+
...g(this.model) ? [i.LegendText] : [],
|
|
272
|
+
...P(this.model) ? [i.AxisLabels] : [],
|
|
273
|
+
...T(this.model) && this.model.chartType !== a.HeatSeries ? [i.GuideLabels] : [],
|
|
274
|
+
...C(this.model) && this.model.chartType !== a.HeatSeries && this.model.chartType !== a.BoxPlotSeries ? [i.DataLabels] : []
|
|
275
|
+
], z(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
|
|
276
276
|
i.Background,
|
|
277
|
-
...
|
|
278
|
-
...
|
|
279
|
-
...
|
|
277
|
+
...L(this.model) && this.model.chartType !== a.HeatSeries ? [d.AxisLines] : [],
|
|
278
|
+
...p(this.model) ? [d.GridLines] : [],
|
|
279
|
+
...S(this.model) ? [d.LeaderLines] : []
|
|
280
280
|
];
|
|
281
281
|
const t = this.textProperties.map((s) => this.renderTextElement(s, this.textPropertyChange)), e = this.symbolProperties.map((s) => s === i.Background ? this.renderTextElement(s, this.backgroundChange) : this.renderTextElement(s, this.symbolPropertyChange));
|
|
282
282
|
return { textElements: t, symbolElements: e };
|
|
283
283
|
}
|
|
284
284
|
renderTextElement(t, e) {
|
|
285
|
-
const s =
|
|
286
|
-
|
|
285
|
+
const s = I(t);
|
|
286
|
+
let o = "line-solid", [l, n, m, $] = [1, 1, 1, 255], A = "#CCCCCC";
|
|
287
|
+
const h = this.getFormatValue(t), w = typeof h == "string" ? h : "", G = this.selectedTexts.includes(t) || this.selectedSymbols.includes(t) || this.selectedBackground.includes(t);
|
|
288
|
+
return u(h) && h.color && ([l, n, m, $] = h.color, o = j(h.style), A = `rgba(${l},${n},${m},${$ / 255})`), b`<calcite-list-item class=${f(x.element)} .label=${this._messages[t]} .description=${w} .value=${t} .selected=${G} @click=${e} ${W(this.updateSelectableElements)}>${s !== void 0 ? b`<calcite-icon slot=content-start scale=s .icon=${s}></calcite-icon>` : null}${t === i.AxisLines || t === i.GridLines || t === i.LeaderLines ? b`<calcite-icon slot=content-end .icon=${o} style=${U({ color: A })}></calcite-icon>` : null}</calcite-list-item>`;
|
|
287
289
|
}
|
|
288
290
|
render() {
|
|
289
291
|
const { textElements: t, symbolElements: e } = this.renderFormatElements();
|
|
290
|
-
return
|
|
292
|
+
return b`<div class=${f(x.sectionLabel)}>${this._messages.textElements}</div><calcite-list label class=${f(x.elementList)} selection-mode=multiple selection-appearance=border @calciteListChange=${this.correctTextElementSelection}>${t}</calcite-list><div class=${f(x.sectionLabel)}>${this._messages.symbolElements}</div><calcite-list label class=${f(x.elementList)} selection-mode=single selection-appearance=border>${e}</calcite-list>`;
|
|
291
293
|
}
|
|
292
294
|
}
|
|
293
|
-
|
|
295
|
+
D("arcgis-charts-config-format", Z);
|
|
294
296
|
export {
|
|
295
|
-
|
|
297
|
+
Z as ArcgisChartsConfigFormat
|
|
296
298
|
};
|