@arcgis/charts-components 5.2.0-next.111 → 5.2.0-next.113
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/{ZYHMZQ7E.js → 2HOC2K2G.js} +1 -1
- package/dist/cdn/{GQLSM5Q7.js → 2KONYHWP.js} +1 -1
- package/dist/cdn/{5O2Y7SWC.js → 2PTVL4CD.js} +1 -1
- package/dist/cdn/{2YDNWOWT.js → 3LEJV2CC.js} +1 -1
- package/dist/cdn/{UVLCXTG4.js → 3YLAS5LP.js} +1 -1
- package/dist/cdn/{IBUI4UOV.js → 4DHM47TE.js} +1 -1
- package/dist/cdn/{YJURFFSP.js → 4PLBZKSO.js} +1 -1
- package/dist/cdn/{7CP5MYX6.js → 4RGJW7QM.js} +1 -1
- package/dist/cdn/{EEKAD6DT.js → 4VIKN2DI.js} +1 -1
- package/dist/cdn/{3ECXJYBU.js → 5MCUSUHK.js} +1 -1
- package/dist/cdn/{FBS4RBSA.js → 5S5FI5VM.js} +1 -1
- package/dist/cdn/{VZ7OCBNK.js → 5VPT6YPC.js} +1 -1
- package/dist/cdn/{XIBI3WA6.js → 6A2PSHTX.js} +1 -1
- package/dist/cdn/{HW7O5QZ4.js → 6E7XC7SF.js} +1 -1
- package/dist/cdn/{XZVJMTU2.js → 6WI56V3O.js} +1 -1
- package/dist/cdn/{VQU2TVX7.js → AYA7WEUX.js} +2 -2
- package/dist/cdn/{FZHZIZUN.js → B2ORCBF2.js} +1 -1
- package/dist/cdn/{CLL7X6DF.js → C3BQVSNQ.js} +1 -1
- package/dist/cdn/{CREJLRJS.js → CZBQKSWG.js} +1 -1
- package/dist/cdn/{MRSEZPVC.js → DLN3QGAY.js} +1 -1
- package/dist/cdn/{PDDYOVQM.js → DORZB3CO.js} +1 -1
- package/dist/cdn/{4NIKYLE5.js → DUPBITZX.js} +1 -1
- package/dist/cdn/{VSN5E7Y4.js → DXK2F7IC.js} +1 -1
- package/dist/cdn/{IHOTDAKI.js → E6MCRDEU.js} +1 -1
- package/dist/cdn/{3NXCG3O2.js → ELSCO7RQ.js} +1 -1
- package/dist/cdn/{J5JKYZZW.js → EOD7FLMU.js} +1 -1
- package/dist/cdn/{5HJSLXLN.js → ERNVZRGN.js} +1 -1
- package/dist/cdn/{ZHFQTE2B.js → ETDV5MZZ.js} +1 -1
- package/dist/cdn/{5SXFY4KT.js → EWWMTC3C.js} +1 -1
- package/dist/cdn/{3CIO2C6J.js → EY4ALBSW.js} +1 -1
- package/dist/cdn/{JJJRAQMT.js → FLDXN76G.js} +1 -1
- package/dist/cdn/{OIBX62RU.js → GCZP2NNE.js} +1 -1
- package/dist/cdn/{56242OEE.js → GTGCFMOM.js} +1 -1
- package/dist/cdn/{NITHPHM6.js → HTUZP5ET.js} +1 -1
- package/dist/cdn/{RZJQJ43Y.js → HZIDKKII.js} +1 -1
- package/dist/cdn/IBSZEYTA.js +2 -0
- package/dist/cdn/{G22GCRXH.js → ICA2YKMH.js} +1 -1
- package/dist/cdn/{JV4CEAY2.js → IJ42AM6S.js} +1 -1
- package/dist/cdn/{EHUV23QJ.js → IPM7HASK.js} +1 -1
- package/dist/cdn/{YFU2NPYA.js → K6ZOSX22.js} +1 -1
- package/dist/cdn/{OIQ76HQC.js → KMRW2FOQ.js} +1 -1
- package/dist/cdn/{N2Y3TMUH.js → KW5FFPKZ.js} +1 -1
- package/dist/cdn/{3S6ZGK3H.js → MAHQA5GL.js} +1 -1
- package/dist/cdn/{3A6N7WAM.js → MGXNXWVO.js} +1 -1
- package/dist/cdn/{FCWOV4NW.js → N7MGJM2Y.js} +1 -1
- package/dist/cdn/{DAQT4YNQ.js → NE6XMJNA.js} +1 -1
- package/dist/cdn/{EY3OIDVL.js → NHJGPR7T.js} +1 -1
- package/dist/cdn/{EWNXVZMV.js → NN7VM75G.js} +1 -1
- package/dist/cdn/{M624HH3K.js → NP4ZKUVK.js} +1 -1
- package/dist/cdn/{VQHPI3CU.js → NQA5LVMY.js} +1 -1
- package/dist/cdn/{H7K6D57Z.js → OGXDBGRX.js} +1 -1
- package/dist/cdn/OMX3FEUO.js +2 -0
- package/dist/cdn/{ADKPM4DW.js → OQ7PZJV6.js} +1 -1
- package/dist/cdn/{NT7D3WEH.js → P7JFMF66.js} +1 -1
- package/dist/cdn/{AEC7S556.js → PDAI3TM2.js} +1 -1
- package/dist/cdn/{MQYMM7JO.js → PHT3QKS6.js} +1 -1
- package/dist/cdn/Q4JNBW33.js +3 -0
- package/dist/cdn/{724I3SBO.js → QK2VTRRB.js} +1 -1
- package/dist/cdn/{WJQHEITU.js → QLKFXAHY.js} +1 -1
- package/dist/cdn/{FY7T4YLN.js → QYBVMICG.js} +1 -1
- package/dist/cdn/{GU4EQDNJ.js → RXREAXJS.js} +1 -1
- package/dist/cdn/{I4RZDDUM.js → SRBLDVCV.js} +1 -1
- package/dist/cdn/{WDDGKBBJ.js → T7JGMOPN.js} +1 -1
- package/dist/cdn/{EWPEPYH7.js → TD4DW6P7.js} +1 -1
- package/dist/cdn/{TK4E37D6.js → TE5UBTRT.js} +1 -1
- package/dist/cdn/{MSU36MJR.js → TN6P4DOU.js} +1 -1
- package/dist/cdn/{U7NEGO4Z.js → TUJPREQD.js} +1 -1
- package/dist/cdn/{L76QTUHW.js → TZ4QIVTR.js} +1 -1
- package/dist/cdn/{KYVBQUIS.js → U47QIWXK.js} +1 -1
- package/dist/cdn/{73R5I52R.js → U7RB6WCB.js} +1 -1
- package/dist/cdn/{YHON6N45.js → UC2TRV7Y.js} +1 -1
- package/dist/cdn/{QKUFLZC3.js → UGLK7BBG.js} +1 -1
- package/dist/cdn/{OKKEWHMB.js → UO5TMG7I.js} +1 -1
- package/dist/cdn/{M7NERHZY.js → UQ3NNWEM.js} +1 -1
- package/dist/cdn/{5QBKM6NC.js → UZOMM2XD.js} +1 -1
- package/dist/cdn/{LMXFW6NW.js → VH5EZWUP.js} +1 -1
- package/dist/cdn/{7UUCZOKN.js → WAN2K6TS.js} +1 -1
- package/dist/cdn/{UNRHPYXW.js → WCSLV2JM.js} +11 -11
- package/dist/cdn/{EMOJZ4XR.js → WELTTZAK.js} +1 -1
- package/dist/cdn/{AHOCGFB7.js → WH4W6K35.js} +1 -1
- package/dist/cdn/WTB2CFTX.js +2 -0
- package/dist/cdn/{FTVVGZ4Z.js → X26W3CYZ.js} +1 -1
- package/dist/cdn/{VQRSXCKD.js → XPFEIWMS.js} +1 -1
- package/dist/cdn/{T7Z4DZ7V.js → XY5U4M2J.js} +1 -1
- package/dist/cdn/{JTP6IREK.js → YEMNXS4U.js} +1 -1
- package/dist/cdn/{VYD2S5WA.js → YJJOHKGU.js} +1 -1
- package/dist/cdn/{QXLY4SFY.js → Z6FRC562.js} +1 -1
- package/dist/cdn/{62GSQDTE.js → ZTVR6KBG.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +2 -3
- package/dist/chunks/action-bar-utils.js +50 -50
- package/dist/chunks/box-plot-data.js +3 -3
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/data.js +8 -8
- package/dist/chunks/index.js +10 -7
- package/dist/chunks/index2.js +1 -1
- package/dist/chunks/index3.js +14 -14
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/utils.js +5 -5
- package/dist/components/arcgis-chart/customElement.d.ts +3 -4
- package/dist/components/arcgis-chart/customElement.js +118 -114
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +198 -13
- package/dist/components/arcgis-charts-action-bar/customElement.js +70 -58
- package/dist/components/arcgis-charts-config-histogram-data/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 +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +28 -27
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -9
- package/dist/interfaces.d.ts +16 -1
- package/dist/loader.js +3 -3
- package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
- package/dist/model/interfaces/common.d.ts +2 -2
- package/dist/model/shared/setup-utils.d.ts +3 -3
- 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/chart-config/converter/index.d.ts +2 -3
- package/dist/utils/defaults/index.d.ts +2 -2
- package/dist/utils/layer/index.d.ts +1 -2
- package/dist/utils/layer/interfaces.d.ts +2 -3
- package/dist/utils/layer/utils/index.d.ts +5 -5
- package/package.json +5 -5
- package/dist/cdn/2PWEWSG6.js +0 -2
- package/dist/cdn/E2YQ7BBF.js +0 -2
- package/dist/cdn/MIA4DLUH.js +0 -3
- package/dist/cdn/YK5VKE7I.js +0 -2
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { u as
|
|
5
|
-
import { css as
|
|
6
|
-
import { LitElement as
|
|
2
|
+
import { c as p } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as C } from "lit/directives/keyed.js";
|
|
4
|
+
import { u as g } from "../../chunks/useT9n.js";
|
|
5
|
+
import { css as f, nothing as m, html as r } from "lit";
|
|
6
|
+
import { LitElement as u, createEvent as n, safeClassMap as c, renderElement as v } from "@arcgis/lumina";
|
|
7
7
|
import { repeat as $ } from "lit/directives/repeat.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { r as
|
|
10
|
-
import { Z as
|
|
11
|
-
import { c as
|
|
8
|
+
import { a as w } from "../../chunks/chart-ui-utils2.js";
|
|
9
|
+
import { r as R } from "../../chunks/popover-ui-utils.js";
|
|
10
|
+
import { Z as I } from "../../chunks/index.js";
|
|
11
|
+
import { c as b } from "../../chunks/model-types.js";
|
|
12
12
|
import { M as s } from "../../chunks/common.js";
|
|
13
13
|
const h = {
|
|
14
14
|
addChartContainer: "add-chart-container",
|
|
15
15
|
viewChartComponent: "view-chart-component",
|
|
16
16
|
header: "header",
|
|
17
17
|
dropdownPopup: "dropdown-popup"
|
|
18
|
-
},
|
|
19
|
-
class
|
|
18
|
+
}, L = f`.view-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}.add-chart-container{display:flex;justify-content:center;padding:2rem 0;background-color:var(--calcite-color-background)}.header{margin-left:1rem}.dropdown-popup{position:relative}`;
|
|
19
|
+
class P extends u {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(...arguments), this._messages =
|
|
21
|
+
super(...arguments), this._messages = g(), this.chartRenamePopover = null, this.popoverClose = () => {
|
|
22
22
|
const e = this.modelList?.find((t) => t.chartId === this.selectedChartId);
|
|
23
23
|
this.chartTitle = e?.titleText ?? "", this.selectedActionChartId = "", this.removeChartRenamePopover();
|
|
24
24
|
}, this.onChartRename = (e) => {
|
|
@@ -37,13 +37,13 @@ class y extends v {
|
|
|
37
37
|
o && l && (a.splice(i, 1), a.splice(t, 0, o)), this.chartsOrderReorderCounter += 1, this.arcgisChartsConfigModelListReorder.emit({ modelList: a });
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
}, this.isChartRenamePopoverOpen = !1, this.chartTitle = "", this.chartsOrderReorderCounter = 0, this.noGroup = !1, this.disableEditing = !1, this.arcgisChartsConfigModelListReorder =
|
|
40
|
+
}, this.isChartRenamePopoverOpen = !1, this.chartTitle = "", this.chartsOrderReorderCounter = 0, this.noGroup = !1, this.disableEditing = !1, this.arcgisChartsConfigModelListReorder = n(), this.arcgisChartsConfigViewChartAddChart = n(), this.arcgisChartsConfigViewChartDelete = n(), this.arcgisChartsConfigViewChartEdit = n(), this.arcgisChartsConfigViewChartSelect = n();
|
|
41
41
|
}
|
|
42
42
|
static {
|
|
43
43
|
this.properties = { isChartRenamePopoverOpen: 16, chartTitle: 16, selectedActionChartId: 16, chartsOrderReorderCounter: 16, messageOverrides: 0, selectedChartId: 1, layer: 0, modelList: 0, noGroup: 5, disableEditing: 5 };
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
|
-
this.styles =
|
|
46
|
+
this.styles = L;
|
|
47
47
|
}
|
|
48
48
|
willUpdate(e) {
|
|
49
49
|
e.has("modelList") && this.modelListChange(this.modelList, e.get("modelList"));
|
|
@@ -65,12 +65,15 @@ class y extends v {
|
|
|
65
65
|
layerType: this.layer?.type
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
onChartActionClick(e) {
|
|
69
|
+
e.stopPropagation();
|
|
70
|
+
}
|
|
68
71
|
buildTooltipLine(e, t) {
|
|
69
|
-
const i = typeof document < "u" && document.documentElement.dir.toLowerCase() === "rtl", a = `${
|
|
72
|
+
const i = typeof document < "u" && document.documentElement.dir.toLowerCase() === "rtl", a = `${I(i)} `;
|
|
70
73
|
return `${e}${a}${t}`;
|
|
71
74
|
}
|
|
72
75
|
getChartTypeLabel(e) {
|
|
73
|
-
switch (
|
|
76
|
+
switch (b(e.chartType)) {
|
|
74
77
|
case s.BarChart:
|
|
75
78
|
return this._messages.barChart ?? "";
|
|
76
79
|
case s.LineChart:
|
|
@@ -95,10 +98,10 @@ class y extends v {
|
|
|
95
98
|
}
|
|
96
99
|
buildChartList() {
|
|
97
100
|
const e = this.modelList ? $(this.modelList, (t) => t.chartId, (t, i) => {
|
|
98
|
-
const a = t.chartId, o = t.titleText, l =
|
|
99
|
-
return r`<calcite-list-item .label=${o ?? a ?? this._messages.chartTitle} title=${d ?? m} .selected=${this.selectedChartId === (a?.toString() ?? i.toString())} .value=${a ?? i.toString()} @click=${this.onChartSelect}><calcite-icon slot=content-start .icon=${l} title=${d ?? m}></calcite-icon>${this.disableEditing ? null : r`<calcite-dropdown slot=actions-end overlay-positioning=fixed placement=bottom-end .open=${this.selectedActionChartId === a} @calciteDropdownClose=${() => this.chartActionClosed(a ?? "")} @calciteDropdownOpen=${() => this.chartActionOpened(a ?? "")} class=${
|
|
101
|
+
const a = t.chartId, o = t.titleText, l = w(t.config), d = this.buildChartTooltip(t);
|
|
102
|
+
return r`<calcite-list-item .label=${o ?? a ?? this._messages.chartTitle} title=${d ?? m} .selected=${this.selectedChartId === (a?.toString() ?? i.toString())} .value=${a ?? i.toString()} @click=${this.onChartSelect}><calcite-icon slot=content-start .icon=${l} title=${d ?? m}></calcite-icon>${this.disableEditing ? null : r`<calcite-dropdown slot=actions-end overlay-positioning=fixed placement=bottom-end .open=${this.selectedActionChartId === a} @calciteDropdownClose=${() => this.chartActionClosed(a ?? "")} @calciteDropdownOpen=${() => this.chartActionOpened(a ?? "")} @click=${this.onChartActionClick} class=${c(h.dropdownPopup)}><calcite-action scale=l .text=${this._messages.chartActions ?? ""} slot=trigger .active=${a === this.selectedActionChartId}><calcite-icon icon=ellipsis></calcite-icon></calcite-action><calcite-dropdown-group selection-mode=none><calcite-dropdown-item accesskey=edit @calciteDropdownItemSelect=${this.chartEditSelect}>${this._messages.edit}</calcite-dropdown-item><calcite-dropdown-item accesskey=rename @calciteDropdownItemSelect=${this.chartRenameSelect}>${this._messages.rename}</calcite-dropdown-item><calcite-dropdown-item accesskey=delete @calciteDropdownItemSelect=${this.chartDeleteSelect}>${this._messages.delete}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}</calcite-list-item>`;
|
|
100
103
|
}) : null;
|
|
101
|
-
return this.layer ? r`<div>${this.noGroup ? null : r`<p class=${
|
|
104
|
+
return this.layer ? r`<div>${this.noGroup ? null : r`<p class=${c(h.header)}>${this.layer.title ?? this.layer.id.toString()}</p>`}${C(this.chartsOrderReorderCounter, r`<calcite-list label .dragEnabled=${!this.disableEditing} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${e}${this.disableEditing ? null : r`<div class=${c(h.addChartContainer)}><calcite-fab slot=fab appearance=outline-fill kind=neutral text-enabled .text=${this._messages.addChart} .label=${this._messages.addChart} @click=${this.onAddChartClick} scale=s></calcite-fab></div>`}</calcite-list>`)}</div>` : null;
|
|
102
105
|
}
|
|
103
106
|
onChartSelect(e) {
|
|
104
107
|
const t = e.currentTarget;
|
|
@@ -113,9 +116,7 @@ class y extends v {
|
|
|
113
116
|
chartRenameSelect(e) {
|
|
114
117
|
if (!this.disableEditing) {
|
|
115
118
|
const i = e.target.closest("calcite-list-item"), a = this.modelList?.find((o) => o.chartId === this.selectedActionChartId);
|
|
116
|
-
i !== null && (this.renameReferenceElement = i), this.
|
|
117
|
-
chartId: this.selectedActionChartId
|
|
118
|
-
}), this.chartTitle = a?.titleText ?? "", this.setupRenamePopover();
|
|
119
|
+
i !== null && (this.renameReferenceElement = i), this.chartTitle = a?.titleText ?? "", this.setupRenamePopover();
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
chartDeleteSelect() {
|
|
@@ -130,16 +131,16 @@ class y extends v {
|
|
|
130
131
|
this.selectedActionChartId = e;
|
|
131
132
|
}
|
|
132
133
|
setupRenamePopover() {
|
|
133
|
-
this.isChartRenamePopoverOpen = !0, this.chartRenamePopover !== null && (this.chartRenamePopover.name = this.chartTitle, this.chartRenamePopover.referenceElement = this.renameReferenceElement), this.chartRenamePopover =
|
|
134
|
+
this.isChartRenamePopoverOpen = !0, this.chartRenamePopover !== null && (this.chartRenamePopover.name = this.chartTitle, this.chartRenamePopover.referenceElement = this.renameReferenceElement), this.chartRenamePopover = v(r`<arcgis-charts-config-chart-rename-popover .name=${this.chartTitle} .referenceElement=${this.renameReferenceElement} .open=${this.isChartRenamePopoverOpen} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigChartRenamePopoverChange=${this.onChartRename}></arcgis-charts-config-chart-rename-popover>`), !document.body.contains(this.chartRenamePopover) && this.chartRenamePopover !== null && document.body.appendChild(this.chartRenamePopover);
|
|
134
135
|
}
|
|
135
136
|
removeChartRenamePopover() {
|
|
136
|
-
this.chartRenamePopover !== null && (this.isChartRenamePopoverOpen = !1, this.chartRenamePopover =
|
|
137
|
+
this.chartRenamePopover !== null && (this.isChartRenamePopoverOpen = !1, this.chartRenamePopover = R(this.chartRenamePopover));
|
|
137
138
|
}
|
|
138
139
|
render() {
|
|
139
|
-
return r`<div class=${
|
|
140
|
+
return r`<div class=${c(h.viewChartComponent)}>${this.buildChartList()}</div>`;
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
|
-
|
|
143
|
+
p("arcgis-charts-config-view-charts", P);
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
+
P as ArcgisChartsConfigViewCharts
|
|
145
146
|
};
|