@arcgis/charts-components 5.1.0-next.95 → 5.1.0-next.97
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/{AAF676O4.js → 2GOV45XT.js} +1 -1
- package/dist/cdn/{UGKTA7PB.js → 3KOLO2DZ.js} +1 -1
- package/dist/cdn/{BMRLTNAV.js → 3LYLITEZ.js} +1 -1
- package/dist/cdn/{XKNSOFKJ.js → 424JJGJE.js} +1 -1
- package/dist/cdn/{WL77CCKK.js → 43CJXSHJ.js} +1 -1
- package/dist/cdn/{LXKTQ6WK.js → 44YOQYY5.js} +1 -1
- package/dist/cdn/{KUJZI55M.js → 474MEOFZ.js} +1 -1
- package/dist/cdn/{FLBDM2NP.js → 4D2OWE4B.js} +1 -1
- package/dist/cdn/{TRT4GPNP.js → 54D7BEVF.js} +1 -1
- package/dist/cdn/{2CNB5NTW.js → 5MVPQ5JO.js} +1 -1
- package/dist/cdn/{RZRNGY4H.js → 5PVOIZ3O.js} +1 -1
- package/dist/cdn/{Q47UU4EJ.js → 6EGDY2R6.js} +1 -1
- package/dist/cdn/{ISIKJUER.js → 6P6JRYTL.js} +1 -1
- package/dist/cdn/{CYPRKLUP.js → 6QC2WOB4.js} +1 -1
- package/dist/cdn/{OE6NEARJ.js → 6T5JVUTW.js} +1 -1
- package/dist/cdn/{6NXPUEBS.js → 7MGBETN6.js} +1 -1
- package/dist/cdn/7PRT6KPV.js +2 -0
- package/dist/cdn/{2UTES5TM.js → A2QGNOIM.js} +1 -1
- package/dist/cdn/{JEY76I34.js → A2SOHKNU.js} +1 -1
- package/dist/cdn/{XYMBMKSH.js → AXQIU56U.js} +1 -1
- package/dist/cdn/{ECG7AEDB.js → B5NVKUWE.js} +1 -1
- package/dist/cdn/{3JNGSC4N.js → BRPXLQXN.js} +1 -1
- package/dist/cdn/{GO2MNWV5.js → C4VB5VOE.js} +1 -1
- package/dist/cdn/C7BVZIR6.js +99 -0
- package/dist/cdn/{4FWQ3OX2.js → CJPYRPNG.js} +1 -1
- package/dist/cdn/{K2MTPFJT.js → DGMBW6MF.js} +1 -1
- package/dist/cdn/{WTRFOYPQ.js → DHCP4FMK.js} +1 -1
- package/dist/cdn/{NXNB5TGE.js → DKPZTFA5.js} +1 -1
- package/dist/cdn/{E6Y7GGY3.js → DUPIQDJR.js} +1 -1
- package/dist/cdn/{TL4KP7UZ.js → DY3IXHQM.js} +1 -1
- package/dist/cdn/{D5UFJBWE.js → DZCGO7SQ.js} +1 -1
- package/dist/cdn/{JCHXQUP7.js → E672GJOI.js} +1 -1
- package/dist/cdn/{GRAKNUUY.js → EERE56JC.js} +1 -1
- package/dist/cdn/{D6MFAXOS.js → EOSVOYYW.js} +1 -1
- package/dist/cdn/{LZM7PHI7.js → EZ6IWMWU.js} +1 -1
- package/dist/cdn/{MLHDK32X.js → FIT55NW2.js} +1 -1
- package/dist/cdn/{KZGKWXQ3.js → FOBAMFDQ.js} +1 -1
- package/dist/cdn/{CMALQ26E.js → FPWXPIYT.js} +1 -1
- package/dist/cdn/{CZLPL5YS.js → FQWSL4WE.js} +1 -1
- package/dist/cdn/{GSAZF4FB.js → GGUZK63V.js} +1 -1
- package/dist/cdn/{GBNALUJW.js → GPK2DP6R.js} +1 -1
- package/dist/cdn/HIHW6ORI.js +2 -0
- package/dist/cdn/HZAQ4CU2.js +2 -0
- package/dist/cdn/{GAED4QFT.js → J7DSGIMM.js} +1 -1
- package/dist/cdn/{LYJ4STC4.js → JIMR7C5L.js} +1 -1
- package/dist/cdn/{QDQZCM4E.js → KNI5Z6M6.js} +1 -1
- package/dist/cdn/{OT7Q2JQX.js → KNWOWXLU.js} +1 -1
- package/dist/cdn/{YJXIGYX6.js → KYO65OVO.js} +1 -1
- package/dist/cdn/LDBOH522.js +2 -0
- package/dist/cdn/{KNDO65YQ.js → LDRGQ4QJ.js} +1 -1
- package/dist/cdn/{ISGYKEBQ.js → LFY34FCB.js} +1 -1
- package/dist/cdn/{44QZIY5O.js → LRI7NSY6.js} +1 -1
- package/dist/cdn/{MK2IWFQS.js → MPULRJBL.js} +1 -1
- package/dist/cdn/{26BUERVJ.js → MS3WQ4R4.js} +1 -1
- package/dist/cdn/{S2VEE2G3.js → MSYJXEJZ.js} +1 -1
- package/dist/cdn/{TGEJGIJB.js → MZIUWLFR.js} +1 -1
- package/dist/cdn/{GCCM4FAJ.js → NFMUWJ4B.js} +1 -1
- package/dist/cdn/{C5XXIB7C.js → OB3LBS5F.js} +1 -1
- package/dist/cdn/{44SZHKTH.js → OD77ESN2.js} +1 -1
- package/dist/cdn/OXA5TGBO.js +2 -0
- package/dist/cdn/{6HEN4CZA.js → P2FI3ZHN.js} +1 -1
- package/dist/cdn/{3XMO5ELI.js → P7KZJ4LD.js} +1 -1
- package/dist/cdn/{OV6FENOG.js → PH5QB66G.js} +1 -1
- package/dist/cdn/{ZEFC4ZDJ.js → PV7KP6OZ.js} +1 -1
- package/dist/cdn/{2D6DTQX7.js → Q4FWAO2U.js} +43 -43
- package/dist/cdn/{ANVDWVGZ.js → Q5LFOZZV.js} +1 -1
- package/dist/cdn/{QRN6UI6A.js → QDQ3XMGW.js} +1 -1
- package/dist/cdn/{VZZ7E6GH.js → QE2DFL3U.js} +1 -1
- package/dist/cdn/{TWEWBOOT.js → QV3QDDVU.js} +1 -1
- package/dist/cdn/{7KWF5HWG.js → S2MYZR2R.js} +1 -1
- package/dist/cdn/{7KZEX4TL.js → S5ZNTUEJ.js} +1 -1
- package/dist/cdn/{2J35M3AL.js → S6M3THYB.js} +1 -1
- package/dist/cdn/{DBK5DBDY.js → SRVSS5LG.js} +1 -1
- package/dist/cdn/{PORI3GND.js → TCJ5YAK5.js} +1 -1
- package/dist/cdn/{CMCKEZPA.js → U2ZQR6TN.js} +1 -1
- package/dist/cdn/{JXQVW75T.js → U72HCS3R.js} +1 -1
- package/dist/cdn/{IPDRVCH2.js → UQYUM5RQ.js} +1 -1
- package/dist/cdn/{Y7IQV44J.js → URX6VCYJ.js} +1 -1
- package/dist/cdn/{DJJLCJWA.js → V6ZSMHGW.js} +1 -1
- package/dist/cdn/{UNXZXWKD.js → VKLAEROZ.js} +1 -1
- package/dist/cdn/{PV25QUV6.js → VMCT7EK7.js} +1 -1
- package/dist/cdn/{W6XSW5D6.js → VMKLIIN4.js} +1 -1
- package/dist/cdn/{TWLIURYH.js → VRCCFTGJ.js} +1 -1
- package/dist/cdn/{BFOAPUYT.js → W6PWWHW7.js} +1 -1
- package/dist/cdn/{VD2Y6ILN.js → WBQNIKK7.js} +1 -1
- package/dist/cdn/{DX6JMVVW.js → WQDJ5V5V.js} +1 -1
- package/dist/cdn/{FTYPEZ5X.js → X2Y44TIN.js} +1 -1
- package/dist/cdn/{OG4LUAP5.js → X4ZH6AQA.js} +1 -1
- package/dist/cdn/{BOXTH4K2.js → X63PQOKY.js} +1 -1
- package/dist/cdn/{46P6RYWB.js → XO3XI5UW.js} +1 -1
- package/dist/cdn/{EEBD6KKN.js → XSMRKVR2.js} +1 -1
- package/dist/cdn/{ZRRB26BU.js → YGXP2KRA.js} +1 -1
- package/dist/cdn/{UH5BDI6J.js → YQJFV4BR.js} +1 -1
- package/dist/cdn/{5NWP4CNP.js → ZO4QGPQK.js} +1 -1
- package/dist/cdn/{CYRL7T5T.js → ZRLN2MXQ.js} +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.hr.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/index.js +2617 -2513
- package/dist/chunks/rest-js-object-literals.js +20 -20
- package/dist/components/arcgis-chart/customElement.d.ts +34 -7
- package/dist/components/arcgis-chart/customElement.js +5259 -5270
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +33 -33
- package/dist/components/arcgis-charts-config-format/customElement.js +31 -31
- 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/json-schema/index.d.ts +106 -5
- package/dist/loader.js +1 -1
- package/dist/spec/rest-js-object-literals.d.ts +31 -19
- package/dist/spec/rest-js-types.d.ts +339 -82
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/layer/interfaces.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cdn/3YI5ZGT5.js +0 -2
- package/dist/cdn/7FNOK6EI.js +0 -2
- package/dist/cdn/7G4Q6AHX.js +0 -2
- package/dist/cdn/DMRSIJ2I.js +0 -2
- package/dist/cdn/DU7L72WR.js +0 -2
- package/dist/cdn/VS4J7X54.js +0 -99
|
@@ -62,7 +62,7 @@ class Z extends V {
|
|
|
62
62
|
this.filterBySelectionToggle = this.filterBySelectionToggle === t.Active ? t.Inactive : t.Active, i.actionActive = this.filterBySelectionToggle === t.Active, this.chartElement !== void 0 && (this.chartElement.filterBySelection = i.actionActive);
|
|
63
63
|
break;
|
|
64
64
|
case e.FilterByExtent:
|
|
65
|
-
this.filterByExtentToggle = this.filterByExtentToggle === t.Active ? t.Inactive : t.Active, i.actionActive = this.filterByExtentToggle === t.Active, this.chartElement !== void 0 && (this.chartElement.
|
|
65
|
+
this.filterByExtentToggle = this.filterByExtentToggle === t.Active ? t.Inactive : t.Active, i.actionActive = this.filterByExtentToggle === t.Active, this.chartElement !== void 0 && (this.chartElement.filterByViewExtent = i.actionActive);
|
|
66
66
|
break;
|
|
67
67
|
case e.Selection:
|
|
68
68
|
this.selectionToggle = t.Active, this.zoomToggle = t.Inactive, i.actionActive = this.selectionToggle === t.Active, this.chartElement !== void 0 && (this.chartElement.actionMode = this.actionBarSelectionMode);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as p, html as a } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import { merge as i } from "lodash-es";
|
|
6
6
|
import "luxon";
|
|
7
7
|
import "../../chunks/series-types.js";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
|
-
import { i as
|
|
10
|
-
import { bf as
|
|
9
|
+
import { i as h } from "../../chunks/rest-js-object-literals.js";
|
|
10
|
+
import { bf as y } from "../../chunks/index.js";
|
|
11
11
|
import "@arcgis/core/Graphic.js";
|
|
12
12
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -31,11 +31,11 @@ import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
|
31
31
|
import "@arcgis/core/geometry/Extent.js";
|
|
32
32
|
import "@arcgis/core/geometry/Point.js";
|
|
33
33
|
import "@arcgis/toolkit/dom";
|
|
34
|
-
import { i as
|
|
35
|
-
import { u as
|
|
36
|
-
import { createRef as
|
|
37
|
-
import { LitElement as
|
|
38
|
-
const
|
|
34
|
+
import { i as u, m as c, s as S, U as r } from "../../chunks/chart-ui-utils2.js";
|
|
35
|
+
import { u as d } from "../../chunks/useT9n.js";
|
|
36
|
+
import { createRef as g, ref as b } from "lit/directives/ref.js";
|
|
37
|
+
import { LitElement as v, createEvent as m, safeClassMap as n } from "@arcgis/lumina";
|
|
38
|
+
const C = {
|
|
39
39
|
arial: "Arial",
|
|
40
40
|
arialBlack: "Arial Black",
|
|
41
41
|
bookman: "Bookman",
|
|
@@ -55,61 +55,61 @@ const I = {
|
|
|
55
55
|
font: "font",
|
|
56
56
|
numberInput: "number-input",
|
|
57
57
|
inputLabel: "input-label"
|
|
58
|
-
},
|
|
59
|
-
class
|
|
58
|
+
}, $ = 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}:host calcite-panel .font-style-container{display:flex;padding:0 1rem}:host calcite-panel .font-style-container .input-label{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important}:host calcite-panel .font-style-container .number-input{margin-bottom:.5rem;display:flex}:host calcite-panel .font-style-container .number-input>div{width:100%}:host calcite-panel .font-style-container calcite-action,:host calcite-panel .font-style-container calcite-label{flex:1 1 0px;display:flex;flex-grow:inherit;width:80px}:host calcite-panel .font-style-container calcite-label{flex-grow:2}:host calcite-panel calcite-label.font{display:block;margin-top:1rem}`;
|
|
59
|
+
class E extends v {
|
|
60
60
|
constructor() {
|
|
61
|
-
super(...arguments), this._messages =
|
|
62
|
-
type:
|
|
63
|
-
}, this.open = !1, this.enableClose = !1, this.arcgisChartsConfigFontStyleChange =
|
|
61
|
+
super(...arguments), this._messages = d(), this.fontSizeInputElement = g(), this.fontStyle = {
|
|
62
|
+
type: h.TS
|
|
63
|
+
}, this.open = !1, this.enableClose = !1, this.arcgisChartsConfigFontStyleChange = m(), this.arcgisChartsConfigFontStyleClose = m();
|
|
64
64
|
}
|
|
65
65
|
static {
|
|
66
66
|
this.properties = { messageOverrides: 0, fontStyle: 0, header: 1, open: 5, enableClose: 5 };
|
|
67
67
|
}
|
|
68
68
|
static {
|
|
69
|
-
this.styles =
|
|
69
|
+
this.styles = $;
|
|
70
70
|
}
|
|
71
71
|
closePanel(t) {
|
|
72
72
|
t.target.closed && this.enableClose && (this.open = !1, this.arcgisChartsConfigFontStyleClose.emit());
|
|
73
73
|
}
|
|
74
74
|
fontChange(t) {
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
75
|
+
const s = t.target.selectedOption.value;
|
|
76
|
+
if (s !== void 0) {
|
|
77
77
|
const l = {
|
|
78
|
-
family:
|
|
78
|
+
family: s
|
|
79
79
|
};
|
|
80
80
|
this.isNewFontProperty("family", l) && (this.fontStyle = i(this.fontStyle, { font: l }), this.emitFontStyleEvent({ font: l }));
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
fontSizeChange() {
|
|
84
84
|
const t = this.fontSizeInputElement.value?.value;
|
|
85
|
-
if (t !== void 0 &&
|
|
85
|
+
if (t !== void 0 && u(t, this.fontSizeInputElement.value?.min, this.fontSizeInputElement.value?.max)) {
|
|
86
86
|
const e = {
|
|
87
87
|
size: Number.parseInt(t)
|
|
88
88
|
};
|
|
89
|
-
this.isNewFontProperty("size", e) && (this.fontStyle = i(this.fontStyle, { font: e }), this.emitFontStyleEvent({ font: e })), this.fontSizeInputElement.value &&
|
|
89
|
+
this.isNewFontProperty("size", e) && (this.fontStyle = i(this.fontStyle, { font: e }), this.emitFontStyleEvent({ font: e })), this.fontSizeInputElement.value && c({
|
|
90
90
|
inputElement: this.fontSizeInputElement.value,
|
|
91
|
-
status:
|
|
91
|
+
status: r.IDLE
|
|
92
92
|
});
|
|
93
|
-
} else this.fontSizeInputElement.value &&
|
|
93
|
+
} else this.fontSizeInputElement.value && c({
|
|
94
94
|
inputElement: this.fontSizeInputElement.value,
|
|
95
|
-
status:
|
|
95
|
+
status: r.INVALID
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
boldSelect() {
|
|
99
|
-
let t =
|
|
100
|
-
this.fontStyle?.font?.weight === t && (t =
|
|
99
|
+
let t = "bold";
|
|
100
|
+
this.fontStyle?.font?.weight === t && (t = "normal");
|
|
101
101
|
const e = { weight: t };
|
|
102
102
|
this.fontStyle = i(this.fontStyle, { font: e }), this.fontStyle = { ...this.fontStyle }, this.emitFontStyleEvent({ font: e });
|
|
103
103
|
}
|
|
104
104
|
italicSelect() {
|
|
105
|
-
let t =
|
|
106
|
-
this.fontStyle?.font?.style === t && (t =
|
|
105
|
+
let t = "italic";
|
|
106
|
+
this.fontStyle?.font?.style === t && (t = "normal");
|
|
107
107
|
const e = { style: t };
|
|
108
108
|
this.fontStyle = i(this.fontStyle, { font: e }), this.fontStyle = { ...this.fontStyle }, this.emitFontStyleEvent({ font: e });
|
|
109
109
|
}
|
|
110
110
|
underlineSelect() {
|
|
111
|
-
let t =
|
|
112
|
-
this.fontStyle?.font?.decoration === t && (t =
|
|
111
|
+
let t = "underline";
|
|
112
|
+
this.fontStyle?.font?.decoration === t && (t = "none");
|
|
113
113
|
const e = { decoration: t };
|
|
114
114
|
this.fontStyle = i(this.fontStyle, { font: e }), this.fontStyle = { ...this.fontStyle }, this.emitFontStyleEvent({ font: e });
|
|
115
115
|
}
|
|
@@ -124,14 +124,14 @@ class z extends E {
|
|
|
124
124
|
return this.fontStyle?.font?.[t] !== e[t];
|
|
125
125
|
}
|
|
126
126
|
renderFonts() {
|
|
127
|
-
const t = Object.values(
|
|
127
|
+
const t = Object.values(C).map((e) => a`<calcite-option .value=${e} .selected=${e === this.fontStyle?.font?.family || e === y().font?.family?.split(",")[0] && this.fontStyle?.font?.family === void 0}>${e}</calcite-option>`);
|
|
128
128
|
return this.fontStyle?.font?.family === "" && t.push(a`<calcite-option value selected></calcite-option>`), t;
|
|
129
129
|
}
|
|
130
130
|
render() {
|
|
131
|
-
return a`<calcite-panel .heading=${this.header ?? this._messages.header} .closed=${!this.open} .closable=${this.enableClose ?? !1} @calcitePanelClose=${this.closePanel}><div class=${n(o.fontStyleContainer)}><calcite-label class=${n(o.font)}>${this._messages.font}<calcite-select .label=${this._messages.font ?? ""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${n(o.fontStyleContainer)}><calcite-label class=${n(o.inputLabel)}>${this._messages.size}<calcite-input class=${n(o.numberInput)} type=number min=6 max=40 step=1 .value=${
|
|
131
|
+
return a`<calcite-panel .heading=${this.header ?? this._messages.header} .closed=${!this.open} .closable=${this.enableClose ?? !1} @calcitePanelClose=${this.closePanel}><div class=${n(o.fontStyleContainer)}><calcite-label class=${n(o.font)}>${this._messages.font}<calcite-select .label=${this._messages.font ?? ""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${n(o.fontStyleContainer)}><calcite-label class=${n(o.inputLabel)}>${this._messages.size}<calcite-input class=${n(o.numberInput)} type=number min=6 max=40 step=1 .value=${S(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${b(this.fontSizeInputElement)}></calcite-input></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold ?? ""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight === "bold"}><calcite-icon scale=s icon=bold></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.italic ?? ""} @click=${this.italicSelect} scale=l .active=${this.fontStyle?.font?.style === "italic"}><calcite-icon scale=s icon=italicize></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.underline ?? ""} @click=${this.underlineSelect} scale=l .active=${this.fontStyle?.font?.decoration === "underline"}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${n(o.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color ?? void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
f("arcgis-charts-config-font-style", E);
|
|
135
135
|
export {
|
|
136
|
-
|
|
136
|
+
E as ArcgisChartsConfigFontStyle
|
|
137
137
|
};
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { c as M } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as B } from "lit/directives/ref.js";
|
|
4
4
|
import { C as V, F as i, L as d } from "../../chunks/common.js";
|
|
5
|
-
import { s as x, m as n, k as h, j as T, e as w, u as
|
|
5
|
+
import { s as x, m as n, k as h, j as T, e as w, u as G } from "../../chunks/type-guards.js";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
7
|
import { u as l } from "../../chunks/series-types.js";
|
|
8
|
-
import { g as W, i as b
|
|
8
|
+
import { g as W, i as b } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
import { i as L } from "../../chunks/data-labels-symbol.js";
|
|
10
|
-
import { i as P, c as
|
|
10
|
+
import { i as P, c as C, d as E } from "../../chunks/axis-lines-symbol.js";
|
|
11
11
|
import "@arcgis/toolkit/intl";
|
|
12
|
-
import { isEmpty as f, cloneDeep as a, isArray as F, isObject as A, mergeWith as
|
|
12
|
+
import { isEmpty as f, cloneDeep as a, isArray as F, isObject as A, mergeWith as D } from "lodash-es";
|
|
13
13
|
import "luxon";
|
|
14
14
|
import "../../chunks/index.js";
|
|
15
15
|
import "@arcgis/core/Graphic.js";
|
|
@@ -37,19 +37,19 @@ import "@arcgis/core/geometry/Extent.js";
|
|
|
37
37
|
import "@arcgis/core/geometry/Point.js";
|
|
38
38
|
import "@arcgis/toolkit/dom";
|
|
39
39
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
40
|
-
import { n as
|
|
41
|
-
import { u as
|
|
42
|
-
import { css as
|
|
43
|
-
import { LitElement as
|
|
40
|
+
import { n as N } from "../../chunks/chart-ui-utils2.js";
|
|
41
|
+
import { u as H } from "../../chunks/useT9n.js";
|
|
42
|
+
import { css as j, html as y } from "lit";
|
|
43
|
+
import { LitElement as I, renderElement as O, safeClassMap as p } from "@arcgis/lumina";
|
|
44
44
|
const v = {
|
|
45
45
|
type: b.TS,
|
|
46
46
|
color: [1, 1, 1, 255],
|
|
47
47
|
font: {
|
|
48
48
|
family: "Tahoma",
|
|
49
49
|
size: 12,
|
|
50
|
-
decoration:
|
|
51
|
-
style:
|
|
52
|
-
weight:
|
|
50
|
+
decoration: "none",
|
|
51
|
+
style: "normal",
|
|
52
|
+
weight: "normal"
|
|
53
53
|
}
|
|
54
54
|
}, k = {
|
|
55
55
|
type: b.SLS,
|
|
@@ -60,10 +60,10 @@ const v = {
|
|
|
60
60
|
element: "chart-element",
|
|
61
61
|
elementList: "element-list",
|
|
62
62
|
sectionLabel: "section-label"
|
|
63
|
-
},
|
|
64
|
-
class
|
|
63
|
+
}, R = j`: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}`;
|
|
64
|
+
class X extends I {
|
|
65
65
|
constructor() {
|
|
66
|
-
super(...arguments), this._messages =
|
|
66
|
+
super(...arguments), this._messages = H(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
|
|
67
67
|
const e = t;
|
|
68
68
|
e.stopImmediatePropagation();
|
|
69
69
|
let s;
|
|
@@ -81,8 +81,8 @@ class Y extends X {
|
|
|
81
81
|
if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedBackground = [], e.shiftKey) {
|
|
82
82
|
this.selectedTexts = [];
|
|
83
83
|
const o = this.textProperties.indexOf(this.lastSelectedText ?? s), m = this.textProperties.indexOf(s);
|
|
84
|
-
this.textProperties.forEach((c,
|
|
85
|
-
|
|
84
|
+
this.textProperties.forEach((c, S) => {
|
|
85
|
+
S >= Math.min(o, m) && S <= Math.max(o, m) && this.selectedTexts.push(c);
|
|
86
86
|
}), this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
|
|
87
87
|
} else if (e.ctrlKey)
|
|
88
88
|
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();
|
|
@@ -133,7 +133,7 @@ class Y extends X {
|
|
|
133
133
|
this.properties = { selectedSymbols: 16, selectedTexts: 16, selectedBackground: 16, selectedElement: 16, messageOverrides: 0, model: 0 };
|
|
134
134
|
}
|
|
135
135
|
static {
|
|
136
|
-
this.styles =
|
|
136
|
+
this.styles = R;
|
|
137
137
|
}
|
|
138
138
|
load() {
|
|
139
139
|
this.modelChange(this.model);
|
|
@@ -158,7 +158,7 @@ class Y extends X {
|
|
|
158
158
|
const s = a(this.getFormatValue(t[0]));
|
|
159
159
|
this.selectedElement = t?.reduce((o, m) => {
|
|
160
160
|
const c = this.getFormatValue(m);
|
|
161
|
-
return
|
|
161
|
+
return D(o, c, this.mergeFormatValues);
|
|
162
162
|
}, s);
|
|
163
163
|
} else {
|
|
164
164
|
let s = a(e);
|
|
@@ -177,7 +177,7 @@ class Y extends X {
|
|
|
177
177
|
this.formatPopover = $(this.formatPopover);
|
|
178
178
|
const t = this.selectedElement;
|
|
179
179
|
t?.type === b.TS || t?.type === b.SLS || // To check if the selected element is background.
|
|
180
|
-
Array.isArray(this.selectedElement) ? (this.formatPopover =
|
|
180
|
+
Array.isArray(this.selectedElement) ? (this.formatPopover = O(y`<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();
|
|
181
181
|
}
|
|
182
182
|
removeFormatPopover() {
|
|
183
183
|
this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = $(this.formatPopover));
|
|
@@ -189,11 +189,11 @@ class Y extends X {
|
|
|
189
189
|
case i.Description:
|
|
190
190
|
return this.model.descriptionSymbol;
|
|
191
191
|
case i.XAxisTitle:
|
|
192
|
-
return
|
|
192
|
+
return E(this.model) ? this.model.xAxisTitleSymbol : void 0;
|
|
193
193
|
case i.YAxisTitle:
|
|
194
194
|
return n(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
|
|
195
195
|
case i.AxisLabels:
|
|
196
|
-
return
|
|
196
|
+
return C(this.model) ? this.model.axisLabelsSymbol : void 0;
|
|
197
197
|
case i.GuideLabels:
|
|
198
198
|
return T(this.model) ? this.model.guideLabelsSymbol : void 0;
|
|
199
199
|
case i.LegendText:
|
|
@@ -223,13 +223,13 @@ class Y extends X {
|
|
|
223
223
|
r(e) && (this.model.descriptionSymbol = e);
|
|
224
224
|
break;
|
|
225
225
|
case i.XAxisTitle:
|
|
226
|
-
|
|
226
|
+
E(this.model) && r(e) && (this.model.xAxisTitleSymbol = e);
|
|
227
227
|
break;
|
|
228
228
|
case i.YAxisTitle:
|
|
229
229
|
n(this.model) && r(e) && this.model.setAxisTitleSymbol(e, 1);
|
|
230
230
|
break;
|
|
231
231
|
case i.AxisLabels:
|
|
232
|
-
|
|
232
|
+
C(this.model) && r(e) && (this.model.axisLabelsSymbol = e);
|
|
233
233
|
break;
|
|
234
234
|
case i.GuideLabels:
|
|
235
235
|
T(this.model) && r(e) && (this.model.guideLabelsSymbol = e);
|
|
@@ -285,15 +285,15 @@ class Y extends X {
|
|
|
285
285
|
renderFormatElements() {
|
|
286
286
|
this.textProperties = [
|
|
287
287
|
i.Title,
|
|
288
|
-
...
|
|
288
|
+
...E(this.model) ? [i.XAxisTitle] : [],
|
|
289
289
|
...n(this.model) ? [i.YAxisTitle] : [],
|
|
290
290
|
...h(this.model) ? [i.LegendTitle] : [],
|
|
291
291
|
i.Description,
|
|
292
292
|
...h(this.model) ? [i.LegendText] : [],
|
|
293
|
-
...
|
|
293
|
+
...C(this.model) ? [i.AxisLabels] : [],
|
|
294
294
|
...T(this.model) && this.model.chartType !== l.HeatSeries ? [i.GuideLabels] : [],
|
|
295
295
|
...L(this.model) && this.model.chartType !== l.HeatSeries && this.model.chartType !== l.BoxPlotSeries ? [i.DataLabels] : []
|
|
296
|
-
],
|
|
296
|
+
], G(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
|
|
297
297
|
i.Background,
|
|
298
298
|
...P(this.model) && this.model.chartType !== l.HeatSeries ? [d.AxisLines] : [],
|
|
299
299
|
...n(this.model) ? [d.GridLines] : [],
|
|
@@ -303,15 +303,15 @@ class Y extends X {
|
|
|
303
303
|
return { textElements: t, symbolElements: e };
|
|
304
304
|
}
|
|
305
305
|
renderTextElement(t, e) {
|
|
306
|
-
const s =
|
|
307
|
-
return
|
|
306
|
+
const s = N(t), o = this.getFormatValue(t), m = typeof o == "string" ? o : "", c = this.selectedTexts.includes(t) || this.selectedSymbols.includes(t) || this.selectedBackground.includes(t);
|
|
307
|
+
return y`<calcite-list-item class=${p(g.element)} .label=${this._messages[t]} .description=${m} .value=${t} .selected=${c} @click=${e} ${B(this.updateSelectableElements)}>${s !== void 0 ? y`<calcite-icon slot=content-start scale=s .icon=${s}></calcite-icon>` : null}</calcite-list-item>`;
|
|
308
308
|
}
|
|
309
309
|
render() {
|
|
310
310
|
const { textElements: t, symbolElements: e } = this.renderFormatElements();
|
|
311
|
-
return
|
|
311
|
+
return y`<div class=${p(g.sectionLabel)}>${this._messages.textElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=multiple selection-appearance=border @calciteListChange=${this.correctTextElementSelection}>${t}</calcite-list><div class=${p(g.sectionLabel)}>${this._messages.symbolElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=single selection-appearance=border>${e}</calcite-list>`;
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
M("arcgis-charts-config-format",
|
|
314
|
+
M("arcgis-charts-config-format", X);
|
|
315
315
|
export {
|
|
316
|
-
|
|
316
|
+
X as ArcgisChartsConfigFormat
|
|
317
317
|
};
|