@arcgis/charts-components 5.2.0-next.91 → 5.2.0-next.94
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/{BZIGQJAH.js → 3DFJNY6A.js} +1 -1
- package/dist/cdn/{ULF3LG3W.js → 3PDCMLV2.js} +1 -1
- package/dist/cdn/{73DFT5MR.js → 4CXLM72I.js} +1 -1
- package/dist/cdn/4GHPGD5V.js +3 -0
- package/dist/cdn/{OQQIDPDH.js → 4JEK27XV.js} +1 -1
- package/dist/cdn/{EFXNPF4V.js → 4KFOFEIN.js} +1 -1
- package/dist/cdn/{YX7WAUQZ.js → 4MP4Q5I4.js} +1 -1
- package/dist/cdn/{SQHEWY2J.js → 4SM6EV6P.js} +1 -1
- package/dist/cdn/{COSE26XR.js → 52GO2JZC.js} +1 -1
- package/dist/cdn/{2B4DKL3R.js → 5DCUB4FX.js} +1 -1
- package/dist/cdn/{ELNZ7PTF.js → 5IQPL6AC.js} +1 -1
- package/dist/cdn/{GUMN6KPP.js → 5LBF4SSV.js} +1 -1
- package/dist/cdn/{QVLDIB2N.js → 6AFE4M3T.js} +1 -1
- package/dist/cdn/{F66W272X.js → 6SUEHUL6.js} +1 -1
- package/dist/cdn/{YQL5A2WS.js → 7HWZXF5A.js} +1 -1
- package/dist/cdn/{CKRZTUGB.js → AELTVK5N.js} +1 -1
- package/dist/cdn/{BZEYWH2F.js → AHAIJDB2.js} +1 -1
- package/dist/cdn/{KAUOH4F3.js → AXWUOABD.js} +1 -1
- package/dist/cdn/{GK6IJBRW.js → BCNKEOFL.js} +1 -1
- package/dist/cdn/{QIBUTVUN.js → BGXZ42ED.js} +1 -1
- package/dist/cdn/{4JMHK7HK.js → BYT7C7VI.js} +1 -1
- package/dist/cdn/{SBZKGQBV.js → CXZ7MZPY.js} +1 -1
- package/dist/cdn/{XYJJ2PIL.js → CZ62W7UB.js} +1 -1
- package/dist/cdn/{4O4L6CM3.js → DQ6LRD4W.js} +1 -1
- package/dist/cdn/{KYCNUCTQ.js → EL5EBXW6.js} +1 -1
- package/dist/cdn/{DLCJMSYG.js → EU2EVPUK.js} +1 -1
- package/dist/cdn/{KZ4SCRQT.js → F65D4RJJ.js} +1 -1
- package/dist/cdn/{VCBFPEET.js → FBRQK463.js} +1 -1
- package/dist/cdn/{LZ3ZRY2F.js → FLR2AT35.js} +1 -1
- package/dist/cdn/{MTFWTSTG.js → FSRPLIND.js} +1 -1
- package/dist/cdn/{LU7UO6PR.js → FZOFULPS.js} +1 -1
- package/dist/cdn/{65HVRSR6.js → GVQLHXCG.js} +1 -1
- package/dist/cdn/{D7LBGWWL.js → HAY6LZTC.js} +1 -1
- package/dist/cdn/{LJJPOUVA.js → HS3QXLZC.js} +1 -1
- package/dist/cdn/{KHWZ54IX.js → IC6GECR5.js} +1 -1
- package/dist/cdn/{3HG6OEAW.js → IGITXVJI.js} +1 -1
- package/dist/cdn/{MF2ZBHWI.js → IL2RER5V.js} +1 -1
- package/dist/cdn/{KVWM73YN.js → IPKMUURX.js} +1 -1
- package/dist/cdn/{VBDLVCPP.js → JMQEKJA5.js} +1 -1
- package/dist/cdn/{6K6Z6CQE.js → K3LGNMJB.js} +1 -1
- package/dist/cdn/{N4XXKTCN.js → KCCLZZS7.js} +1 -1
- package/dist/cdn/{ZFHU5I2O.js → KDGXJ3LJ.js} +1 -1
- package/dist/cdn/{NGGJIQHT.js → KE3BTQXC.js} +1 -1
- package/dist/cdn/{3K7H52Y5.js → KIQONRCW.js} +1 -1
- package/dist/cdn/{HZEGDF6W.js → KMP2NYK6.js} +1 -1
- package/dist/cdn/{HIVJRWLF.js → LEZM24PU.js} +1 -1
- package/dist/cdn/{62EUOXR7.js → LZNXWS4O.js} +19 -19
- package/dist/cdn/{YOUTTWJN.js → M46SIJYN.js} +1 -1
- package/dist/cdn/{XW5I2M45.js → MTQFQWYG.js} +1 -1
- package/dist/cdn/{IIV6X3KV.js → MXGHQBEG.js} +1 -1
- package/dist/cdn/{SMTDJE55.js → NPI4IPBC.js} +1 -1
- package/dist/cdn/{SJBJ2N5C.js → NYVOHYRH.js} +2 -2
- package/dist/cdn/{GVJF3VFV.js → ODYN5EMU.js} +1 -1
- package/dist/cdn/{GUWBPR2H.js → ONQJB7XI.js} +1 -1
- package/dist/cdn/{RAJO727X.js → P6LFMAZJ.js} +1 -1
- package/dist/cdn/{QBBUOEKF.js → PEOJOFFP.js} +1 -1
- package/dist/cdn/QDYO64C6.js +2 -0
- package/dist/cdn/{LKC6J4IQ.js → QFNDC2XR.js} +1 -1
- package/dist/cdn/{NYR4K242.js → QODVHTRA.js} +1 -1
- package/dist/cdn/{L6IM34J7.js → QUYRCQOV.js} +1 -1
- package/dist/cdn/{KPEBWOLJ.js → R3RLEISD.js} +1 -1
- package/dist/cdn/{5YBMIR4F.js → R7UWW3TZ.js} +1 -1
- package/dist/cdn/{44ICH2UX.js → RAZ5P564.js} +1 -1
- package/dist/cdn/{7HANUCEA.js → RFLBJ5F6.js} +1 -1
- package/dist/cdn/{54LUEUIT.js → RNSUQVAD.js} +1 -1
- package/dist/cdn/{ZO4GRLG6.js → SHTMAA3U.js} +1 -1
- package/dist/cdn/{JSPNXGH3.js → SJXTS4TF.js} +1 -1
- package/dist/cdn/{WTABMFFY.js → SYWTGNM2.js} +1 -1
- package/dist/cdn/{OPMACXLA.js → TF6SC2R3.js} +1 -1
- package/dist/cdn/{JXAPOWHG.js → TK44WD5Z.js} +1 -1
- package/dist/cdn/{RCAJJ24P.js → TVQFQTJN.js} +1 -1
- package/dist/cdn/{DOE5S7EP.js → UBTJOXKH.js} +1 -1
- package/dist/cdn/{4QQRIMTI.js → VGZCEHUH.js} +1 -1
- package/dist/cdn/{WPLJ5BXE.js → WGON3TB6.js} +1 -1
- package/dist/cdn/{KHC2DMSU.js → WXPIZP63.js} +1 -1
- package/dist/cdn/{LCJVASMQ.js → XSDCK3IH.js} +1 -1
- package/dist/cdn/{D5O2M65G.js → XYFPPUVQ.js} +1 -1
- package/dist/cdn/{H4R2P2BO.js → YBVVLNAT.js} +1 -1
- package/dist/cdn/{4A42J7HF.js → YWLBGSMG.js} +1 -1
- package/dist/cdn/{CPDE3ZSY.js → ZNR5734Q.js} +1 -1
- package/dist/cdn/{OCT2KA4Q.js → ZZNMJQYT.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index.js +819 -871
- package/dist/chunks/index4.js +3 -3
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +1792 -1803
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +23 -23
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/spec/chart-object-literals.d.ts +3 -3
- package/package.json +4 -4
- package/dist/cdn/CDWFPVYG.js +0 -2
- package/dist/cdn/IHDWXIBS.js +0 -3
|
@@ -21,28 +21,28 @@ class E extends b {
|
|
|
21
21
|
super(...arguments), this._messages = C(), this.pieChartPopover = null, this.sortOrderElement = n(), this.categoryElement = n(), this.numericFieldsElement = n(), this.onPieChartDataChange = (e) => {
|
|
22
22
|
try {
|
|
23
23
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
24
|
-
const { contentKind:
|
|
25
|
-
switch (
|
|
24
|
+
const { contentKind: i } = e.detail, t = [...e.detail.value];
|
|
25
|
+
switch (i) {
|
|
26
26
|
case a.aggregation:
|
|
27
|
-
this.model.aggregationType =
|
|
27
|
+
this.model.aggregationType = t[0] !== P.NoAggregation ? t[0] : "";
|
|
28
28
|
break;
|
|
29
29
|
case a.category: {
|
|
30
|
-
const r =
|
|
30
|
+
const r = t[0]?.trim() || "", d = this.model.numericFields;
|
|
31
31
|
d.length > 1 && r !== g && (this.model.numericFields = [d[0]]), this.model.category = r, this.model.colorMatch = !0;
|
|
32
32
|
break;
|
|
33
33
|
}
|
|
34
34
|
case a.numericFields:
|
|
35
|
-
|
|
35
|
+
(t.length > 1 || t.length > 0 && this.model.category.trim() === "") && (this.model.category = g), this.model.numericFields = t;
|
|
36
36
|
break;
|
|
37
37
|
case a.sortOrder:
|
|
38
|
-
this.model.setSortOrder(
|
|
38
|
+
this.model.setSortOrder(t[0]);
|
|
39
39
|
break;
|
|
40
40
|
default:
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
} catch (
|
|
45
|
-
throw
|
|
44
|
+
} catch (i) {
|
|
45
|
+
throw i instanceof Error && this.arcgisChartsConfigDataChangeError.emit({ error: i, model: this.model }), i;
|
|
46
46
|
}
|
|
47
47
|
this.requestUpdate();
|
|
48
48
|
}, this.onModelConfigChange = () => {
|
|
@@ -66,8 +66,8 @@ class E extends b {
|
|
|
66
66
|
disconnectedCallback() {
|
|
67
67
|
super.disconnectedCallback(), this.removePieChartDataPopover(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
68
68
|
}
|
|
69
|
-
modelChange(e,
|
|
70
|
-
|
|
69
|
+
modelChange(e, i) {
|
|
70
|
+
i?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
71
71
|
}
|
|
72
72
|
buildNumericFieldItem(e) {
|
|
73
73
|
return f(e, s`<calcite-list-item .label=${m(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
@@ -82,27 +82,27 @@ class E extends b {
|
|
|
82
82
|
this.contentKind = a.numericFields, this.setupPopover(e);
|
|
83
83
|
}
|
|
84
84
|
onRemoveNumericField(e) {
|
|
85
|
-
const
|
|
86
|
-
this.model.numericFields = this.model.numericFields.filter((
|
|
85
|
+
const i = e.target.value;
|
|
86
|
+
this.model.numericFields = this.model.numericFields.filter((t) => t !== i);
|
|
87
87
|
}
|
|
88
88
|
onShowDataLabelsChange(e) {
|
|
89
89
|
this.model.dataLabelsVisibility = e.target.checked;
|
|
90
90
|
}
|
|
91
91
|
setupPopover(e) {
|
|
92
92
|
e.stopImmediatePropagation(), this.removePieChartDataPopover();
|
|
93
|
-
let
|
|
93
|
+
let i, t, r;
|
|
94
94
|
switch (this.contentKind) {
|
|
95
95
|
case a.category:
|
|
96
|
-
|
|
96
|
+
i = this.categoryElement.value, t = this._messages.categoryHeader, r = this.model.category;
|
|
97
97
|
break;
|
|
98
98
|
case a.numericFields:
|
|
99
|
-
|
|
99
|
+
i = this.numericFieldsElement.value, t = this._messages.numericFieldsMultipleHeader, r = this.model.numericFields;
|
|
100
100
|
break;
|
|
101
101
|
case a.sortOrder:
|
|
102
|
-
|
|
102
|
+
i = this.sortOrderElement.value, t = this._messages.sortOrderHeader, r = this.model.getSortOrder();
|
|
103
103
|
break;
|
|
104
104
|
}
|
|
105
|
-
this.pieChartPopover = v(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${
|
|
105
|
+
this.pieChartPopover = v(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${t} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${r} @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);
|
|
106
106
|
}
|
|
107
107
|
getCorrectedCategoryValue() {
|
|
108
108
|
return y({
|
|
@@ -121,17 +121,17 @@ class E extends b {
|
|
|
121
121
|
return s`<arcgis-charts-config-field-picker .label=${e} @click=${this.onCategorySelect} ${c(this.categoryElement)}></arcgis-charts-config-field-picker>`;
|
|
122
122
|
}
|
|
123
123
|
renderNumericFields(e) {
|
|
124
|
-
const
|
|
124
|
+
const i = F(this.model.layer).idField, t = [];
|
|
125
125
|
for (const r of e)
|
|
126
|
-
r !==
|
|
127
|
-
return s`<calcite-list label class=${o(l.fieldList)} ${c(this.numericFieldsElement)}>${
|
|
126
|
+
r !== i && t.push(this.buildNumericFieldItem(r));
|
|
127
|
+
return s`<calcite-list label class=${o(l.fieldList)} ${c(this.numericFieldsElement)}>${t}</calcite-list>`;
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
|
-
const e = this.renderCategory(),
|
|
130
|
+
const e = this.renderCategory(), i = this.renderSorting(), t = this.renderNumericFields([...this.model.numericFields]);
|
|
131
131
|
return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[
|
|
132
|
-
s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${
|
|
132
|
+
s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${t}</calcite-label>`,
|
|
133
133
|
s`<div class=${o(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div>`
|
|
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}${
|
|
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}${i}</calcite-label>`;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
p("arcgis-charts-config-pie-chart-data", E);
|