@arcgis/charts-components 5.2.0-next.45 → 5.2.0-next.47
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/{KRBNJLUR.js → 2RIV7YP7.js} +1 -1
- package/dist/cdn/{4WQF5DM3.js → 36GW74FC.js} +1 -1
- package/dist/cdn/{RPTZ52MF.js → 3PYGT3KV.js} +1 -1
- package/dist/cdn/3T2IDHNE.js +2 -0
- package/dist/cdn/{7KYTSBST.js → 44JRT6JL.js} +1 -1
- package/dist/cdn/{YGGPPIZ7.js → 4ZL7RZYY.js} +1 -1
- package/dist/cdn/{UG37REGM.js → 57T6CQMF.js} +1 -1
- package/dist/cdn/5BWFAIIH.js +2 -0
- package/dist/cdn/{OGRUONHM.js → 5CFFXTAD.js} +1 -1
- package/dist/cdn/{XY4HDZKZ.js → 5DQUV2BS.js} +1 -1
- package/dist/cdn/{B6GOLH4Q.js → 5HGLV4YJ.js} +1 -1
- package/dist/cdn/{WIPAO2FH.js → 5IZ7GQA3.js} +1 -1
- package/dist/cdn/{DE5QJPJV.js → 5VWMLMZC.js} +1 -1
- package/dist/cdn/{JATS27TM.js → 62SM3LKG.js} +1 -1
- package/dist/cdn/{PF7KNYUV.js → 653NB5BN.js} +1 -1
- package/dist/cdn/{LMIDBRIM.js → 6NIWXTIP.js} +2 -2
- package/dist/cdn/{WKRYWDKZ.js → 6OZDGXFC.js} +1 -1
- package/dist/cdn/77A4IT5I.js +2 -0
- package/dist/cdn/{GKXBWOFH.js → AIIZRKYB.js} +1 -1
- package/dist/cdn/{QZ5YUJ7Y.js → AWQD3H3L.js} +1 -1
- package/dist/cdn/{3WV4T637.js → AYCZ7QYH.js} +1 -1
- package/dist/cdn/{5XXP2NRJ.js → B3723WJJ.js} +1 -1
- package/dist/cdn/{PDYF2IZ2.js → BCV3U4I6.js} +1 -1
- package/dist/cdn/{DWOP2HE4.js → BFCWZUD5.js} +1 -1
- package/dist/cdn/{MNE46H4A.js → CGO3WESB.js} +1 -1
- package/dist/cdn/{YXG7RVTK.js → CGQSP57T.js} +1 -1
- package/dist/cdn/{22GC5BZP.js → CYVUWE2J.js} +1 -1
- package/dist/cdn/{D4WXMS4I.js → D272NRZP.js} +1 -1
- package/dist/cdn/DE2ZKH4C.js +2 -0
- package/dist/cdn/{7RFX7LUS.js → DEIEWNZ5.js} +2 -2
- package/dist/cdn/{IIQVRNZF.js → DHPNZ3EU.js} +1 -1
- package/dist/cdn/{4QGMMXRI.js → DZSZKZKR.js} +1 -1
- package/dist/cdn/{I2CZFSEB.js → EQCJAWHV.js} +1 -1
- package/dist/cdn/{PGO6DEJM.js → ERDMQ4DD.js} +1 -1
- package/dist/cdn/{SG3NAFAX.js → FDPEMHDL.js} +1 -1
- package/dist/cdn/{CXT62XXL.js → FWW34CP5.js} +1 -1
- package/dist/cdn/{HP47BFLZ.js → FYZANAJZ.js} +1 -1
- package/dist/cdn/{Z7NF4IGS.js → FZKGRO5W.js} +1 -1
- package/dist/cdn/GAOCEPQ4.js +2 -0
- package/dist/cdn/{HCYQEOJ6.js → GW2FFQSO.js} +1 -1
- package/dist/cdn/{SDHNDW2J.js → HAMYMGH7.js} +1 -1
- package/dist/cdn/{WVPMH6DW.js → HFSRQDTF.js} +1 -1
- package/dist/cdn/{QFDQH5CQ.js → HXETEKIP.js} +1 -1
- package/dist/cdn/{UNFEHNQQ.js → IIJVPJDY.js} +1 -1
- package/dist/cdn/{76ILRLUC.js → IMW6IZV2.js} +1 -1
- package/dist/cdn/J5GAGVHY.js +2 -0
- package/dist/cdn/{76HEBLTU.js → J6QR3W3U.js} +1 -1
- package/dist/cdn/{ELICLP7J.js → J7CXSB6I.js} +1 -1
- package/dist/cdn/{NFJXS4T6.js → K4GZRWKH.js} +1 -1
- package/dist/cdn/KRPNWB7M.js +3 -0
- package/dist/cdn/{WGYVJ5PD.js → LAZLV7CS.js} +1 -1
- package/dist/cdn/{LSMBD5CK.js → LIEXZQ4F.js} +1 -1
- package/dist/cdn/{ISYGPFXM.js → LLYZIGQ5.js} +1 -1
- package/dist/cdn/{JPPLQW3P.js → NZMYUW2H.js} +1 -1
- package/dist/cdn/{TAGN7GHJ.js → OJV25NTM.js} +1 -1
- package/dist/cdn/{UTJ2ODDK.js → OZWY2X4J.js} +1 -1
- package/dist/cdn/{YE6DMUZG.js → P2UP7IKV.js} +1 -1
- package/dist/cdn/{T3ZESENF.js → P3UDBIPN.js} +1 -1
- package/dist/cdn/{YABRVLVL.js → PZQ5KWM5.js} +1 -1
- package/dist/cdn/{USQYT55U.js → QI5LKIKB.js} +1 -1
- package/dist/cdn/{NG254LPM.js → QYLOKGLW.js} +1 -1
- package/dist/cdn/{R32CA4NB.js → RECQ5RQK.js} +1 -1
- package/dist/cdn/{CHFKSXBJ.js → RRTFXPN4.js} +1 -1
- package/dist/cdn/{MLBDUKS3.js → RU6NQOOO.js} +1 -1
- package/dist/cdn/SMG4WPTH.js +2 -0
- package/dist/cdn/{E47MLNJA.js → SZCMJ25W.js} +1 -1
- package/dist/cdn/{2WFIFBMW.js → TX6LSTKD.js} +1 -1
- package/dist/cdn/{2VWSSNE6.js → U3POGYXF.js} +1 -1
- package/dist/cdn/{ESAVCU5M.js → UFFXU3Y6.js} +11 -11
- package/dist/cdn/{HRMCHOLZ.js → V66PG4NP.js} +1 -1
- package/dist/cdn/{D7FL6CSK.js → VKHUZKK4.js} +1 -1
- package/dist/cdn/{6TA7HFV2.js → VV3BWL3P.js} +1 -1
- package/dist/cdn/{PCODH67Z.js → VWLHSMF2.js} +1 -1
- package/dist/cdn/{U5FPTPFH.js → W7EHW5TQ.js} +1 -1
- package/dist/cdn/{CMPHWKTI.js → WEMJBEUF.js} +1 -1
- package/dist/cdn/{3YJRZ7CT.js → XJM2JNPK.js} +1 -1
- package/dist/cdn/{GGN3I7J2.js → XL6DRPCS.js} +1 -1
- package/dist/cdn/{33NDNTD4.js → XZ3QQVHQ.js} +1 -1
- package/dist/cdn/{RE5QI7WA.js → Y32ROR3O.js} +1 -1
- package/dist/cdn/{4RGS5J3H.js → YKEAQMIM.js} +1 -1
- package/dist/cdn/{PLEZNRQC.js → YXLIRMQJ.js} +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/data-labels-symbol.js +39 -24
- package/dist/chunks/index2.js +2003 -1996
- package/dist/chunks/serial-chart-data.js +203 -201
- package/dist/components/arcgis-chart/customElement.d.ts +37 -9
- package/dist/components/arcgis-chart/customElement.js +1342 -1367
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +30 -30
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
- 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/loader.js +1 -1
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
- package/package.json +3 -3
- package/dist/cdn/6BXPCTBA.js +0 -2
- package/dist/cdn/EIXU5GSK.js +0 -2
- package/dist/cdn/EMMV3MPZ.js +0 -2
- package/dist/cdn/G3IEARQP.js +0 -2
- package/dist/cdn/I6REUMW3.js +0 -2
- package/dist/cdn/RS37HDC7.js +0 -2
- package/dist/cdn/VAUVQGBW.js +0 -3
- package/dist/cdn/ZSATO43B.js +0 -2
- package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
- /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
|
@@ -1,21 +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
|
|
7
|
-
import { repeat as
|
|
8
|
-
import { g as
|
|
9
|
-
import { r as
|
|
10
|
-
|
|
2
|
+
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as g } from "lit/directives/keyed.js";
|
|
4
|
+
import { u as f } from "../../chunks/useT9n.js";
|
|
5
|
+
import { css as u, nothing as m, html as r } from "lit";
|
|
6
|
+
import { LitElement as v, createEvent as c, safeClassMap as n, renderElement as w } from "@arcgis/lumina";
|
|
7
|
+
import { repeat as $ } from "lit/directives/repeat.js";
|
|
8
|
+
import { g as R } from "../../chunks/chart-ui-utils.js";
|
|
9
|
+
import { r as I } from "../../chunks/popover-ui-utils.js";
|
|
10
|
+
import { ct as b } from "../../chunks/index2.js";
|
|
11
|
+
import { c as L } from "../../chunks/model-types.js";
|
|
12
|
+
import { M as s } from "../../chunks/common.js";
|
|
13
|
+
const h = {
|
|
11
14
|
addChartContainer: "add-chart-container",
|
|
12
15
|
viewChartComponent: "view-chart-component",
|
|
13
16
|
header: "header",
|
|
14
17
|
dropdownPopup: "dropdown-popup"
|
|
15
|
-
},
|
|
16
|
-
class
|
|
18
|
+
}, P = u`.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 y extends v {
|
|
17
20
|
constructor() {
|
|
18
|
-
super(...arguments), this._messages =
|
|
21
|
+
super(...arguments), this._messages = f(), this.chartRenamePopover = null, this.popoverClose = () => {
|
|
19
22
|
const e = this.modelList?.find((t) => t.chartId === this.selectedChartId);
|
|
20
23
|
this.chartTitle = e?.titleText ?? "", this.selectedActionChartId = "", this.removeChartRenamePopover();
|
|
21
24
|
}, this.onChartRename = (e) => {
|
|
@@ -30,17 +33,17 @@ class R extends g {
|
|
|
30
33
|
if (e.detail !== null && e.detail !== void 0) {
|
|
31
34
|
const { newIndex: t, oldIndex: i } = e.detail;
|
|
32
35
|
if (this.modelList !== void 0 && this.modelList?.length > 0) {
|
|
33
|
-
const a = [...this.modelList],
|
|
34
|
-
|
|
36
|
+
const a = [...this.modelList], o = a?.[i], l = a?.[t];
|
|
37
|
+
o && l && (a.splice(i, 1), a.splice(t, 0, o)), this.chartsOrderReorderCounter += 1, this.arcgisChartsConfigModelListReorder.emit({ modelList: a });
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
|
-
}, 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 = c(), this.arcgisChartsConfigViewChartAddChart = c(), this.arcgisChartsConfigViewChartDelete = c(), this.arcgisChartsConfigViewChartEdit = c(), this.arcgisChartsConfigViewChartSelect = c();
|
|
38
41
|
}
|
|
39
42
|
static {
|
|
40
43
|
this.properties = { isChartRenamePopoverOpen: 16, chartTitle: 16, selectedActionChartId: 16, chartsOrderReorderCounter: 16, messageOverrides: 0, selectedChartId: 1, layer: 0, modelList: 0, noGroup: 5, disableEditing: 5 };
|
|
41
44
|
}
|
|
42
45
|
static {
|
|
43
|
-
this.styles =
|
|
46
|
+
this.styles = P;
|
|
44
47
|
}
|
|
45
48
|
willUpdate(e) {
|
|
46
49
|
e.has("modelList") && this.modelListChange(this.modelList, e.get("modelList"));
|
|
@@ -62,12 +65,40 @@ class R extends g {
|
|
|
62
65
|
layerType: this.layer?.type
|
|
63
66
|
});
|
|
64
67
|
}
|
|
68
|
+
buildTooltipLine(e, t) {
|
|
69
|
+
const i = typeof document < "u" && document.documentElement.dir.toLowerCase() === "rtl", a = `${b(i)} `;
|
|
70
|
+
return `${e}${a}${t}`;
|
|
71
|
+
}
|
|
72
|
+
getChartTypeLabel(e) {
|
|
73
|
+
switch (L(e.chartType)) {
|
|
74
|
+
case s.BarChart:
|
|
75
|
+
return this._messages.barChart ?? "";
|
|
76
|
+
case s.LineChart:
|
|
77
|
+
return this._messages.lineChart ?? "";
|
|
78
|
+
case s.PieChart:
|
|
79
|
+
return this._messages.pieChart ?? "";
|
|
80
|
+
case s.Histogram:
|
|
81
|
+
return this._messages.histogram ?? "";
|
|
82
|
+
case s.Scatterplot:
|
|
83
|
+
return this._messages.scatterplot ?? "";
|
|
84
|
+
case s.BoxPlot:
|
|
85
|
+
return this._messages.boxPlot ?? "";
|
|
86
|
+
case s.HeatChart:
|
|
87
|
+
return this._messages.calendarHeatChart ?? "";
|
|
88
|
+
default:
|
|
89
|
+
return "";
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
buildChartTooltip(e) {
|
|
93
|
+
const t = this.getChartTypeLabel(e);
|
|
94
|
+
return this.buildTooltipLine(this._messages.chartType ?? "", t ?? "");
|
|
95
|
+
}
|
|
65
96
|
buildChartList() {
|
|
66
|
-
const e = this.modelList ?
|
|
67
|
-
const a = t.chartId,
|
|
68
|
-
return r`<calcite-list-item .label=${
|
|
97
|
+
const e = this.modelList ? $(this.modelList, (t) => t.chartId, (t, i) => {
|
|
98
|
+
const a = t.chartId, o = t.titleText, l = R(t.config), d = this.buildChartTooltip(t);
|
|
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=${n(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 @click=${(p) => p.stopPropagation()} @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>`;
|
|
69
100
|
}) : null;
|
|
70
|
-
return this.layer ? r`<div>${this.noGroup ? null : r`<p class=${
|
|
101
|
+
return this.layer ? r`<div>${this.noGroup ? null : r`<p class=${n(h.header)}>${this.layer.title ?? this.layer.id.toString()}</p>`}${g(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=${n(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;
|
|
71
102
|
}
|
|
72
103
|
onChartSelect(e) {
|
|
73
104
|
const t = e.currentTarget;
|
|
@@ -81,7 +112,7 @@ class R extends g {
|
|
|
81
112
|
}
|
|
82
113
|
chartRenameSelect(e) {
|
|
83
114
|
if (!this.disableEditing) {
|
|
84
|
-
const i = e.target.closest("calcite-list-item"), a = this.modelList?.find((
|
|
115
|
+
const i = e.target.closest("calcite-list-item"), a = this.modelList?.find((o) => o.chartId === this.selectedActionChartId);
|
|
85
116
|
i !== null && (this.renameReferenceElement = i), this.arcgisChartsConfigViewChartSelect.emit({
|
|
86
117
|
chartId: this.selectedActionChartId
|
|
87
118
|
}), this.chartTitle = a?.titleText ?? "", this.setupRenamePopover();
|
|
@@ -99,16 +130,16 @@ class R extends g {
|
|
|
99
130
|
this.selectedActionChartId = e;
|
|
100
131
|
}
|
|
101
132
|
setupRenamePopover() {
|
|
102
|
-
this.isChartRenamePopoverOpen = !0, this.chartRenamePopover !== null && (this.chartRenamePopover.name = this.chartTitle, this.chartRenamePopover.referenceElement = this.renameReferenceElement), this.chartRenamePopover =
|
|
133
|
+
this.isChartRenamePopoverOpen = !0, this.chartRenamePopover !== null && (this.chartRenamePopover.name = this.chartTitle, this.chartRenamePopover.referenceElement = this.renameReferenceElement), this.chartRenamePopover = w(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);
|
|
103
134
|
}
|
|
104
135
|
removeChartRenamePopover() {
|
|
105
|
-
this.chartRenamePopover !== null && (this.isChartRenamePopoverOpen = !1, this.chartRenamePopover =
|
|
136
|
+
this.chartRenamePopover !== null && (this.isChartRenamePopoverOpen = !1, this.chartRenamePopover = I(this.chartRenamePopover));
|
|
106
137
|
}
|
|
107
138
|
render() {
|
|
108
|
-
return r`<div class=${
|
|
139
|
+
return r`<div class=${n(h.viewChartComponent)}>${this.buildChartList()}</div>`;
|
|
109
140
|
}
|
|
110
141
|
}
|
|
111
|
-
|
|
142
|
+
C("arcgis-charts-config-view-charts", y);
|
|
112
143
|
export {
|
|
113
|
-
|
|
144
|
+
y as ArcgisChartsConfigViewCharts
|
|
114
145
|
};
|