@arcgis/charts-components 5.2.0-next.11 → 5.2.0-next.12
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/26ESJ72L.js +2 -0
- package/dist/cdn/{6R7VSDDU.js → 2PFDGKA5.js} +1 -1
- package/dist/cdn/{SX6SDBU7.js → 3MKY6UCO.js} +1 -1
- package/dist/cdn/{TTBRUBXY.js → 3SBYV6BW.js} +1 -1
- package/dist/cdn/{O4LKWTBY.js → 3T4NYRGX.js} +1 -1
- package/dist/cdn/{YALB4GSA.js → 3UFVHYX5.js} +1 -1
- package/dist/cdn/{5IN5WK2R.js → 4LQHAOMY.js} +1 -1
- package/dist/cdn/5BADQJ64.js +2 -0
- package/dist/cdn/{ASI7RDYV.js → 5F5N7ZZ6.js} +1 -1
- package/dist/cdn/{RKB6QZNW.js → 5PKMZMGG.js} +1 -1
- package/dist/cdn/{E2DO2HQ6.js → 624WBDC3.js} +1 -1
- package/dist/cdn/{UIRKQREJ.js → 66GCPNDR.js} +1 -1
- package/dist/cdn/{JBPYGZPJ.js → 6VVUN6AX.js} +1 -1
- package/dist/cdn/73JQ2I2Q.js +3 -0
- package/dist/cdn/{NZXQ5BWP.js → 7HUD5SQI.js} +1 -1
- package/dist/cdn/{77A4T4FJ.js → A636YSNA.js} +1 -1
- package/dist/cdn/{EJCGZPIV.js → AIFWLINL.js} +1 -1
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/{P56ROGSK.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/{DJGEQ42V.js → BJYCLLJL.js} +1 -1
- package/dist/cdn/BXJZ4YYQ.js +2 -0
- package/dist/cdn/{FWRMJQXY.js → CRCAJAFA.js} +1 -1
- package/dist/cdn/{567CLBG4.js → CTE365PT.js} +1 -1
- package/dist/cdn/{GISGGO3Z.js → CVF3NLTS.js} +1 -1
- package/dist/cdn/{XOM6LSIW.js → DKRPN24O.js} +1 -1
- package/dist/cdn/{G5FULTB5.js → DL6PRHZT.js} +1 -1
- package/dist/cdn/{HZFHTWL6.js → DOVGECFB.js} +1 -1
- package/dist/cdn/DYNPQ2KT.js +2 -0
- package/dist/cdn/{PXIAM4CZ.js → ECICE4SU.js} +1 -1
- package/dist/cdn/{5LXX2PUM.js → EEFS6HU7.js} +1 -1
- package/dist/cdn/{RJCJ3F5C.js → EYF75TH5.js} +1 -1
- package/dist/cdn/{XNWSVHA3.js → EYYQKOXI.js} +1 -1
- package/dist/cdn/{L5DROI2A.js → GHLJNZ27.js} +1 -1
- package/dist/cdn/{AHYYQWKY.js → HQONJQEW.js} +1 -1
- package/dist/cdn/{UIY2PSG4.js → IBKS2NZ3.js} +1 -1
- package/dist/cdn/IDHDU3DJ.js +2 -0
- package/dist/cdn/{WWO326JE.js → IHHPUKGG.js} +1 -1
- package/dist/cdn/{5YEADAVZ.js → IM5PHXV3.js} +1 -1
- package/dist/cdn/{E4LJWBRC.js → ISSVKLHV.js} +1 -1
- package/dist/cdn/{H45LPCQ2.js → IYP3GZSC.js} +1 -1
- package/dist/cdn/{MVGAATR7.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/{MBSMC77K.js → J47CNZCT.js} +1 -1
- package/dist/cdn/{I5T7JUDH.js → JHANH4UG.js} +1 -1
- package/dist/cdn/{GQPOEX7B.js → JKTF2L3L.js} +18 -18
- package/dist/cdn/{JEOBO5JM.js → JLWDVTJW.js} +1 -1
- package/dist/cdn/{R7HW5WVG.js → JQX5EJZV.js} +1 -1
- package/dist/cdn/{I2EERAZ3.js → K2P5RSE5.js} +1 -1
- package/dist/cdn/{FBMA7FW4.js → KJPXY6NE.js} +1 -1
- package/dist/cdn/{FEKSPYHM.js → KL33ETQG.js} +1 -1
- package/dist/cdn/{5IIF22XN.js → KUUBYC33.js} +1 -1
- package/dist/cdn/{76MOP26H.js → KZTGYTHS.js} +1 -1
- package/dist/cdn/{4PHYDOBF.js → LA7COTN7.js} +1 -1
- package/dist/cdn/{PMIWXHTG.js → LJDGLKFL.js} +1 -1
- package/dist/cdn/{CVK7KFEC.js → LL757OZ7.js} +1 -1
- package/dist/cdn/{O4HUYRYL.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{XP4S2M7F.js → MGMUUWSP.js} +1 -1
- package/dist/cdn/{OW2DLJGU.js → MPSRB65O.js} +1 -1
- package/dist/cdn/{SJVVFOAX.js → N5ZIF7M4.js} +1 -1
- package/dist/cdn/{IE3GLZJZ.js → NVEIMJJ7.js} +1 -1
- package/dist/cdn/{DFKVPDMJ.js → O363DXQ4.js} +1 -1
- package/dist/cdn/{YUF4ZSA5.js → O533LNDP.js} +1 -1
- package/dist/cdn/{ZJHV3UVG.js → ODWDODUY.js} +1 -1
- package/dist/cdn/{7JIHGRTB.js → OEOAL6JO.js} +1 -1
- package/dist/cdn/{U5IM4KAQ.js → PGHVUDMJ.js} +1 -1
- package/dist/cdn/{F6QRLYSF.js → PGWOWXHQ.js} +1 -1
- package/dist/cdn/{ETSB7KD3.js → PIONRTCB.js} +1 -1
- package/dist/cdn/{P2F2O6MH.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/QSBAOCG4.js +2 -0
- package/dist/cdn/{VIY3BCJZ.js → QT3VTHUJ.js} +1 -1
- package/dist/cdn/{7YXTWBT4.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/{AXS3UMQJ.js → RJSCJBFO.js} +1 -1
- package/dist/cdn/{KZQFX7LH.js → RMBD6ZSC.js} +1 -1
- package/dist/cdn/{UNTIPIBS.js → RMHGA6AU.js} +1 -1
- package/dist/cdn/{SVGAVKBQ.js → S5EYODWJ.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/{425PZ2QJ.js → SMCXHMTP.js} +1 -1
- package/dist/cdn/{CTBQ5Y4Z.js → SN2GPX3I.js} +1 -1
- package/dist/cdn/{LL7NH3VV.js → SNMFJ4CN.js} +1 -1
- package/dist/cdn/{S6LH7YS6.js → SOOQD5FC.js} +1 -1
- package/dist/cdn/T2SFRF7I.js +2 -0
- package/dist/cdn/{LYJFZA2M.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/{EE3KEIAT.js → U7TKKTUC.js} +1 -1
- package/dist/cdn/{SOKKWGPA.js → V2UF2WVE.js} +1 -1
- package/dist/cdn/{KPWHYSA5.js → VFUFK3UT.js} +1 -1
- package/dist/cdn/{SQYOFBS6.js → VP42WLDX.js} +1 -1
- package/dist/cdn/{FUAA6IFR.js → W4XQNHSD.js} +1 -1
- package/dist/cdn/{WHJU66P4.js → W55GZOYQ.js} +1 -1
- package/dist/cdn/{KXUQJ6GE.js → WMXNQ5XH.js} +1 -1
- package/dist/cdn/{P4UJJCPG.js → WVV5DAII.js} +1 -1
- package/dist/cdn/{WJ2VDT6B.js → X5PNAE7T.js} +1 -1
- package/dist/cdn/{WU3C7BQU.js → XRLVJJBT.js} +1 -1
- package/dist/cdn/{UE5VX2RL.js → YBN53S4C.js} +1 -1
- package/dist/cdn/{LUMOL7ZP.js → YCJIOFQR.js} +1 -1
- package/dist/cdn/{ZQ2WG55W.js → Z2UG6CUL.js} +1 -1
- package/dist/cdn/{24AOJE7B.js → ZFK3D55V.js} +1 -1
- package/dist/cdn/{DL43NPDO.js → ZP22BN3G.js} +1 -1
- package/dist/cdn/ZW4PF3UK.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index2.js +4 -2
- package/dist/chunks/pie-chart-data.js +42 -36
- package/dist/chunks/pie-chart-model.js +175 -162
- package/dist/components/arcgis-chart/customElement.js +1721 -1682
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +29 -36
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cdn/3KRPCKJZ.js +0 -2
- package/dist/cdn/5NTIKQP4.js +0 -2
- package/dist/cdn/BHUFE4DA.js +0 -2
- package/dist/cdn/CEWH3LQO.js +0 -2
- package/dist/cdn/GYXK3DV7.js +0 -2
- package/dist/cdn/HW6MJJSX.js +0 -2
- package/dist/cdn/IL2FG26D.js +0 -2
- package/dist/cdn/NNZCIR7W.js +0 -2
- package/dist/cdn/QPSJ6XOX.js +0 -2
- package/dist/cdn/S74GCXXK.js +0 -3
- package/dist/cdn/SA22QZNW.js +0 -2
|
@@ -1,41 +1,38 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
2
|
+
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as p } from "lit/directives/keyed.js";
|
|
4
4
|
import { P as r } from "../../chunks/interfaces.js";
|
|
5
|
-
import { u } from "../../chunks/useT9n.js";
|
|
6
|
-
import { css as
|
|
7
|
-
import { createRef as
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { x as
|
|
10
|
-
import { d as
|
|
11
|
-
import { m as
|
|
5
|
+
import { u as C } from "../../chunks/useT9n.js";
|
|
6
|
+
import { css as u, html as s } from "lit";
|
|
7
|
+
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
|
+
import { LitElement as b, createEvent as h, renderElement as v, safeClassMap as o } from "@arcgis/lumina";
|
|
9
|
+
import { x as y } from "../../chunks/data.js";
|
|
10
|
+
import { d as m } from "../../chunks/index3.js";
|
|
11
|
+
import { m as g, an as F } from "../../chunks/index2.js";
|
|
12
12
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
13
|
-
import { r as
|
|
14
|
-
import { P as f } from "../../chunks/common.js";
|
|
13
|
+
import { r as P } from "../../chunks/chart-object-literals.js";
|
|
15
14
|
const l = {
|
|
16
15
|
label: "label",
|
|
17
16
|
fieldList: "field-list",
|
|
18
17
|
fab: "fab"
|
|
19
|
-
},
|
|
20
|
-
class
|
|
18
|
+
}, E = u`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`;
|
|
19
|
+
class k extends b {
|
|
21
20
|
constructor() {
|
|
22
|
-
super(...arguments), this._messages =
|
|
21
|
+
super(...arguments), this._messages = C(), this.pieChartPopover = null, this.sortOrderElement = n(), this.categoryElement = n(), this.numericFieldsElement = n(), this.onPieChartDataChange = (e) => {
|
|
23
22
|
try {
|
|
24
23
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
25
24
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
26
25
|
switch (t) {
|
|
27
26
|
case r.aggregation:
|
|
28
|
-
this.model.aggregationType = i[0] !==
|
|
27
|
+
this.model.aggregationType = i[0] !== P.NoAggregation ? i[0] : "";
|
|
29
28
|
break;
|
|
30
29
|
case r.category: {
|
|
31
|
-
const a = i[0]?.trim() || "";
|
|
32
|
-
this.
|
|
33
|
-
const h = this.model.numericFields;
|
|
34
|
-
h.length > 1 && a !== n && (this.model.numericFields = [h[0]]), this.model.category = a, this.model.colorMatch = !0;
|
|
30
|
+
const a = i[0]?.trim() || "", d = this.model.numericFields;
|
|
31
|
+
d.length > 1 && a !== g && (this.model.numericFields = [d[0]]), this.model.category = a, this.model.colorMatch = !0;
|
|
35
32
|
break;
|
|
36
33
|
}
|
|
37
34
|
case r.numericFields:
|
|
38
|
-
i.length > 1 && (this.
|
|
35
|
+
i.length > 1 && (this.model.category = g), this.model.numericFields = i;
|
|
39
36
|
break;
|
|
40
37
|
case r.sortOrder:
|
|
41
38
|
this.model.setSortOrder(i[0]);
|
|
@@ -52,13 +49,13 @@ class w extends v {
|
|
|
52
49
|
this.requestUpdate();
|
|
53
50
|
}, this.popoverClose = (e) => {
|
|
54
51
|
this.pieChartPopover === e?.target && this.removePieChartDataPopover();
|
|
55
|
-
}, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError =
|
|
52
|
+
}, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = h(), this.arcgisChartsConfigPieChartDataNumericFieldValidate = h();
|
|
56
53
|
}
|
|
57
54
|
static {
|
|
58
55
|
this.properties = { messageOverrides: 0, model: 0, layerFieldsInfo: 0 };
|
|
59
56
|
}
|
|
60
57
|
static {
|
|
61
|
-
this.styles =
|
|
58
|
+
this.styles = E;
|
|
62
59
|
}
|
|
63
60
|
load() {
|
|
64
61
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
@@ -73,7 +70,7 @@ class w extends v {
|
|
|
73
70
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
74
71
|
}
|
|
75
72
|
buildNumericFieldItem(e) {
|
|
76
|
-
return
|
|
73
|
+
return p(e, s`<calcite-list-item .label=${m(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
77
74
|
}
|
|
78
75
|
onSortOrderSelect(e) {
|
|
79
76
|
this.contentKind = r.sortOrder, this.setupPopover(e);
|
|
@@ -91,10 +88,6 @@ class w extends v {
|
|
|
91
88
|
onShowDataLabelsChange(e) {
|
|
92
89
|
this.model.dataLabelsVisibility = e.target.checked;
|
|
93
90
|
}
|
|
94
|
-
updateMode(e) {
|
|
95
|
-
const t = e !== n && e.trim() !== "";
|
|
96
|
-
this.model.mode = t ? f.Category : f.Fields;
|
|
97
|
-
}
|
|
98
91
|
setupPopover(e) {
|
|
99
92
|
e.stopImmediatePropagation(), this.removePieChartDataPopover();
|
|
100
93
|
let t, i, a;
|
|
@@ -109,29 +102,29 @@ class w extends v {
|
|
|
109
102
|
t = this.sortOrderElement.value, i = this._messages.sortOrderHeader, a = this.model.getSortOrder();
|
|
110
103
|
break;
|
|
111
104
|
}
|
|
112
|
-
this.pieChartPopover =
|
|
105
|
+
this.pieChartPopover = v(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${a} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`), !document.body.contains(this.pieChartPopover) && this.pieChartPopover !== null && document.body.appendChild(this.pieChartPopover);
|
|
113
106
|
}
|
|
114
107
|
getCorrectedCategoryValue() {
|
|
115
|
-
return
|
|
108
|
+
return y({
|
|
116
109
|
fieldName: this.model.category,
|
|
117
110
|
fieldList: this.layerFieldsInfo
|
|
118
|
-
}) ? "" :
|
|
111
|
+
}) ? "" : m(this.layerFieldsInfo, this.model.category);
|
|
119
112
|
}
|
|
120
113
|
removePieChartDataPopover() {
|
|
121
114
|
this.pieChartPopover !== null && (this.pieChartPopover.open = !1, this.pieChartPopover = $(this.pieChartPopover));
|
|
122
115
|
}
|
|
123
116
|
renderSorting() {
|
|
124
|
-
return s`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${
|
|
117
|
+
return s`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${c(this.sortOrderElement)}></arcgis-charts-config-field-select>`;
|
|
125
118
|
}
|
|
126
119
|
renderCategory() {
|
|
127
120
|
const e = this.getCorrectedCategoryValue();
|
|
128
|
-
return s`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${
|
|
121
|
+
return s`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${c(this.categoryElement)}></arcgis-charts-config-field-select>`;
|
|
129
122
|
}
|
|
130
123
|
renderNumericFields(e) {
|
|
131
|
-
const t =
|
|
124
|
+
const t = F(this.model.layer).idField, i = [];
|
|
132
125
|
for (const a of e)
|
|
133
126
|
a !== t && i.push(this.buildNumericFieldItem(a));
|
|
134
|
-
return s`<calcite-list label class=${o(l.fieldList)} ${
|
|
127
|
+
return s`<calcite-list label class=${o(l.fieldList)} ${c(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
135
128
|
}
|
|
136
129
|
render() {
|
|
137
130
|
const e = this.renderCategory(), t = this.renderSorting(), i = this.renderNumericFields([...this.model.numericFields]);
|
|
@@ -141,7 +134,7 @@ class w extends v {
|
|
|
141
134
|
]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`;
|
|
142
135
|
}
|
|
143
136
|
}
|
|
144
|
-
|
|
137
|
+
f("arcgis-charts-config-pie-chart-data", k);
|
|
145
138
|
export {
|
|
146
|
-
|
|
139
|
+
k as ArcgisChartsConfigPieChartData
|
|
147
140
|
};
|