@arcgis/charts-components 5.2.0-next.120 → 5.2.0-next.121
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/{S5QSKGOD.js → 22GEDSID.js} +1 -1
- package/dist/cdn/{4ETHEVDM.js → 2DSJEDV6.js} +1 -1
- package/dist/cdn/{65WBRNOB.js → 2IMGLB5P.js} +1 -1
- package/dist/cdn/{EB5Z3G6D.js → 2MG6R4WZ.js} +1 -1
- package/dist/cdn/{SDDU5POB.js → 346W6JSX.js} +1 -1
- package/dist/cdn/{N7E2X5IX.js → 3JFIDJNK.js} +1 -1
- package/dist/cdn/3QIWL4Y6.js +2 -0
- package/dist/cdn/{ZAW4TN54.js → 4UPY7IZR.js} +1 -1
- package/dist/cdn/{CZGKNCIX.js → 55HD5ASD.js} +1 -1
- package/dist/cdn/{C22JKC32.js → 5NGZOXPZ.js} +1 -1
- package/dist/cdn/{P3VQFUQZ.js → 5NRVL7NV.js} +1 -1
- package/dist/cdn/{EAQZOXHL.js → 5OKYID5L.js} +1 -1
- package/dist/cdn/{UGJ6ZOQG.js → 5VU34FMQ.js} +1 -1
- package/dist/cdn/{U3W5ZPMZ.js → 6BYOOUOD.js} +1 -1
- package/dist/cdn/{FC6VMJIM.js → 6ESJJXFR.js} +1 -1
- package/dist/cdn/{WI4ABUKJ.js → 6IREEVIJ.js} +1 -1
- package/dist/cdn/{UQP6Q7H2.js → 72NDGOVB.js} +1 -1
- package/dist/cdn/{XNGFPEGT.js → 73RZMSJU.js} +1 -1
- package/dist/cdn/{7XTX3KFW.js → 74GBWUON.js} +1 -1
- package/dist/cdn/{JPCSR3D6.js → 7CVC24HH.js} +1 -1
- package/dist/cdn/{HBNL5LOO.js → 7MZUUBLN.js} +1 -1
- package/dist/cdn/{QJL354WC.js → A5JPFNVL.js} +1 -1
- package/dist/cdn/{V7JCHSX7.js → AAVHXU5D.js} +1 -1
- package/dist/cdn/BPEDCIDB.js +2 -0
- package/dist/cdn/{WFMMHYSH.js → CBSDCSFV.js} +1 -1
- package/dist/cdn/{6UUPPMVB.js → CFMJKZLO.js} +1 -1
- package/dist/cdn/{5NMUWLMG.js → CR5FDXHH.js} +1 -1
- package/dist/cdn/{OKH3U3GN.js → CSSKK7IZ.js} +1 -1
- package/dist/cdn/{J6RFRXEU.js → CXWIF2KU.js} +1 -1
- package/dist/cdn/{2LE4U3GT.js → DFR64RQY.js} +1 -1
- package/dist/cdn/{FF547HMW.js → ELRXUJGD.js} +1 -1
- package/dist/cdn/{XA4KE5YW.js → EWRTR7X6.js} +1 -1
- package/dist/cdn/{OQEUNYYG.js → F5DTLXOB.js} +1 -1
- package/dist/cdn/{VIQEFX6O.js → FUBHLZ4H.js} +1 -1
- package/dist/cdn/{VVWD3AMY.js → FZVZ5MJE.js} +1 -1
- package/dist/cdn/{FNDN7EW7.js → G5ND4PUZ.js} +1 -1
- package/dist/cdn/GSF5JMAE.js +2 -0
- package/dist/cdn/{ASQ2GJVW.js → GXCZ6WXB.js} +1 -1
- package/dist/cdn/{UVKFQG23.js → HDPGUTTH.js} +1 -1
- package/dist/cdn/{HXB7PSCG.js → HQO53B54.js} +1 -1
- package/dist/cdn/{RWAKKYLM.js → IGCN2436.js} +1 -1
- package/dist/cdn/INWA5VAO.js +2 -0
- package/dist/cdn/{7WZGORIO.js → K3VIGXRU.js} +24 -24
- package/dist/cdn/{XZ37Y4W5.js → K7OSRGWZ.js} +1 -1
- package/dist/cdn/{4YFDRBNS.js → KDIC74D5.js} +1 -1
- package/dist/cdn/{OMLLMMVS.js → LYOBJZHA.js} +1 -1
- package/dist/cdn/{5LI7FA5C.js → MHHVGZZG.js} +1 -1
- package/dist/cdn/{O5QM6RFL.js → MKCJDMSH.js} +1 -1
- package/dist/cdn/{BYRJMIXU.js → MV4GOTGG.js} +1 -1
- package/dist/cdn/NE2LIVPM.js +2 -0
- package/dist/cdn/{FTTD7LG7.js → O23HS34R.js} +1 -1
- package/dist/cdn/{NNCCPCL2.js → ONW2IT27.js} +1 -1
- package/dist/cdn/{PENUTMVD.js → OVXUFZCS.js} +1 -1
- package/dist/cdn/{3QSV7I2J.js → PQDWXZQQ.js} +1 -1
- package/dist/cdn/{NI5E2OS4.js → QNW7XSUO.js} +1 -1
- package/dist/cdn/{ZOOL6KEW.js → QXDNKTZG.js} +1 -1
- package/dist/cdn/{HPJM5ZOD.js → S6P4Y54X.js} +1 -1
- package/dist/cdn/SAQBQSQJ.js +2 -0
- package/dist/cdn/{4QQPANET.js → SZ5CW7OV.js} +1 -1
- package/dist/cdn/{ZXW6JPMX.js → T34EUD7U.js} +1 -1
- package/dist/cdn/T7I3TS7D.js +2 -0
- package/dist/cdn/{PO2ZDNTQ.js → UELAD6BI.js} +1 -1
- package/dist/cdn/{JQ7S563J.js → UQ2QHPXB.js} +1 -1
- package/dist/cdn/{SZHJZL2A.js → URI7A66F.js} +1 -1
- package/dist/cdn/{STJ2HTKL.js → V7YFMMPW.js} +1 -1
- package/dist/cdn/{T3VRQEKN.js → VTVZQCHN.js} +1 -1
- package/dist/cdn/{S2G75NCQ.js → VWLVU22M.js} +1 -1
- package/dist/cdn/{DPICOEXC.js → WAZUL35Q.js} +1 -1
- package/dist/cdn/{HI7Z5QTR.js → WSU3OSWJ.js} +1 -1
- package/dist/cdn/{BG65SP3R.js → X25OSCFT.js} +1 -1
- package/dist/cdn/{X2R5WPB4.js → XXMGWWQ4.js} +1 -1
- package/dist/cdn/{7QDL4TE3.js → Y5TN6VKQ.js} +2 -2
- package/dist/cdn/{V6MI3KKW.js → Y6NNKV6H.js} +1 -1
- package/dist/cdn/{7SE3B7E2.js → Y6UMC7NU.js} +1 -1
- package/dist/cdn/{WGGNHZDW.js → Y6WT7UDU.js} +1 -1
- package/dist/cdn/{LGS2QMGB.js → YQN5N3XC.js} +1 -1
- package/dist/cdn/{HQX6SMWC.js → YWFQXN7J.js} +1 -1
- package/dist/cdn/{JTO6MPTF.js → ZDDZVKMH.js} +1 -1
- package/dist/cdn/{LQKGTJZ6.js → ZDJAMFJK.js} +1 -1
- package/dist/cdn/{POB26WCE.js → ZMS2AX7K.js} +1 -1
- package/dist/cdn/{LE4F6FBR.js → ZPZQIWBB.js} +1 -1
- package/dist/cdn/{BIUADXHB.js → ZUVDEUDH.js} +1 -1
- package/dist/cdn/assets/charts-config-general/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/box-plot-data.js +2 -2
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +13 -13
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-visibility.js +2 -2
- package/dist/chunks/data.js +12 -12
- package/dist/chunks/histogram-data.js +1 -1
- package/dist/chunks/index.js +1167 -1119
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-y-guides.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +6 -6
- package/dist/chunks/serial-chart-data.js +701 -708
- package/dist/chunks/serial-chart-model.js +15 -15
- package/dist/chunks/utils.js +6 -6
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +7 -7
- package/dist/chunks/x-bounds.js +44 -42
- package/dist/components/arcgis-chart/customElement.js +3085 -3010
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +52 -47
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +10 -7
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-format/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-guide/customElement.js +21 -21
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +41 -39
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +351 -347
- package/dist/model/mixins/model-with-guides.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +20 -20
- package/dist/utils/data/index.d.ts +47 -1
- package/package.json +5 -5
- package/dist/cdn/27DMKFXK.js +0 -2
- package/dist/cdn/7DMHLVYX.js +0 -2
- package/dist/cdn/FVYM4LYH.js +0 -2
- package/dist/cdn/WQ5MRC4U.js +0 -2
- package/dist/cdn/YM3BNPLM.js +0 -2
- package/dist/cdn/ZDQWQTZE.js +0 -2
- package/dist/cdn/ZYWOR5AX.js +0 -2
|
@@ -4,7 +4,7 @@ import { LitElement as g, createEvent as f } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as m, html as s } from "lit";
|
|
5
5
|
import { isEqual as d } from "lodash-es";
|
|
6
6
|
import { C as t } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as c, aq as p,
|
|
7
|
+
import { i as c, aq as p, bG as u, bH as C, bd as y, t as F, aQ as v } from "../../chunks/index.js";
|
|
8
8
|
const b = m`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class I extends g {
|
|
10
10
|
constructor() {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { isEqual as
|
|
5
|
-
import { repeat as
|
|
6
|
-
import { B as a, a as
|
|
7
|
-
import { d as
|
|
2
|
+
import { c as w } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as I } from "lit/directives/keyed.js";
|
|
4
|
+
import { isEqual as S } from "lodash-es";
|
|
5
|
+
import { repeat as D } from "lit/directives/repeat.js";
|
|
6
|
+
import { B as a, a as C } from "../../chunks/interfaces.js";
|
|
7
|
+
import { d as p, a as d, r as E, b as O } from "../../chunks/store.js";
|
|
8
8
|
import { b as P } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as F } from "../../chunks/useT9n.js";
|
|
10
10
|
import { css as _, html as n, nothing as N } from "lit";
|
|
11
11
|
import { createRef as c, ref as m } from "lit/directives/ref.js";
|
|
12
|
-
import { LitElement as U, createEvent as
|
|
13
|
-
import { b as
|
|
14
|
-
import { x as
|
|
15
|
-
import { r as
|
|
12
|
+
import { LitElement as U, createEvent as v, safeClassMap as l, renderElement as V } from "@arcgis/lumina";
|
|
13
|
+
import { b as $, o as z, C as M, a as B, p as K } from "../../chunks/index2.js";
|
|
14
|
+
import { x as R } from "../../chunks/data.js";
|
|
15
|
+
import { r as A, bE as j, p as L, aQ as H } from "../../chunks/index.js";
|
|
16
16
|
import { H as q, I as W } from "../../chunks/index3.js";
|
|
17
17
|
import { r as Z } from "../../chunks/popover-ui-utils.js";
|
|
18
|
-
import { d, e as x, a as
|
|
19
|
-
import { S as
|
|
18
|
+
import { d as h, e as x, a as f, h as y } from "../../chunks/chart-object-literals.js";
|
|
19
|
+
import { S as g } from "../../chunks/common.js";
|
|
20
20
|
const r = {
|
|
21
21
|
label: "label",
|
|
22
22
|
fieldList: "field-list",
|
|
@@ -31,36 +31,38 @@ const r = {
|
|
|
31
31
|
}, G = _`.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}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;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}.link-container{display:flex;justify-content:flex-end}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.interval-container{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor)}`;
|
|
32
32
|
class Q extends U {
|
|
33
33
|
constructor() {
|
|
34
|
-
super(...arguments), this._messages =
|
|
34
|
+
super(...arguments), this._messages = F(), this.commonStrings = F({ name: "common", blocking: !0 }), this.barChartPopover = null, this.sortOrderElement = c(), this.aggregationElement = c(), this.categoryElement = c(), this.numericFieldsElement = c(), this.splitByFieldElement = c(), this.enableTimeBinningSwitch = c(), this.intervalAlignmentElement = c(), this.intervalElement = c(), this.originalCustomSortLabels = [], this.isCustomSortDisabled = !1, this.onBarChartDataChange = async (e) => {
|
|
35
35
|
try {
|
|
36
36
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
37
37
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
38
|
-
switch (
|
|
38
|
+
switch (t) {
|
|
39
39
|
case a.aggregation:
|
|
40
|
-
this.model.aggregationType = i[0] !==
|
|
40
|
+
p(d), this.model.aggregationType = i[0] !== h.NoAggregation ? i[0] : h.NoAggregation;
|
|
41
41
|
break;
|
|
42
42
|
case a.category: {
|
|
43
|
+
p(d);
|
|
43
44
|
const s = i[0]?.trim() || "";
|
|
44
|
-
if (this.model.xAxisField = s, this.model.getSortOrder() ===
|
|
45
|
+
if (this.model.xAxisField = s, this.model.getSortOrder() === g.customSort) {
|
|
45
46
|
const o = await this.updateCustomSortProps();
|
|
46
47
|
this.model.orderByList = o, this.sortOrderResetCounter += 1;
|
|
47
48
|
}
|
|
48
49
|
break;
|
|
49
50
|
}
|
|
50
51
|
case a.numericFields:
|
|
51
|
-
if (this.model.numericFields = i, (this.model.numericFields ?? []).length > 0 && this.model.aggregationType ===
|
|
52
|
+
if (p(d), this.model.numericFields = i, (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === h.Count && this.model.numericFields[0] !== A(this.model.layer).idField && (this.model.aggregationType = h.Sum), this.model.getSortOrder() === g.customSort) {
|
|
52
53
|
const s = await this.updateCustomSortProps();
|
|
53
54
|
this.model.orderByList = s, this.sortOrderResetCounter += 1;
|
|
54
55
|
}
|
|
55
56
|
break;
|
|
56
57
|
case a.splitByField: {
|
|
58
|
+
p(d);
|
|
57
59
|
const s = i[0]?.trim() || "";
|
|
58
60
|
this.model.splitByField = s, this.model.colorMatch = !0;
|
|
59
61
|
break;
|
|
60
62
|
}
|
|
61
63
|
case a.sortOrder: {
|
|
62
64
|
const s = i[0];
|
|
63
|
-
if (s ===
|
|
65
|
+
if (s === g.customSort) {
|
|
64
66
|
const o = await this.updateCustomSortProps();
|
|
65
67
|
this.model.setSortOrder(s, o);
|
|
66
68
|
} else
|
|
@@ -77,7 +79,7 @@ class Q extends U {
|
|
|
77
79
|
default:
|
|
78
80
|
break;
|
|
79
81
|
}
|
|
80
|
-
t !== a.interval && t !== a.intervalAlignment &&
|
|
82
|
+
t !== a.interval && t !== a.intervalAlignment && E(d);
|
|
81
83
|
}
|
|
82
84
|
} catch (t) {
|
|
83
85
|
throw this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
@@ -87,7 +89,7 @@ class Q extends U {
|
|
|
87
89
|
this.requestUpdate();
|
|
88
90
|
}, this.popoverClose = (e) => {
|
|
89
91
|
this.barChartPopover === e?.target && this.removeBarChartDataPopover();
|
|
90
|
-
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigBarChartDataNumericFieldValidate =
|
|
92
|
+
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigBarChartDataNumericFieldValidate = v(), this.arcgisChartsConfigCustomizedTimeInterval = v(), this.arcgisChartsConfigDataChangeError = v(), this.arcgisChartsConfigResetTimeInterval = v();
|
|
91
93
|
}
|
|
92
94
|
static {
|
|
93
95
|
this.properties = { selectedCustomSortItemId: 16, aggregationLabel: 16, timeAggregationLabel: 16, disableSplitBy: 16, sortOrderResetCounter: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0, open: 5 };
|
|
@@ -99,7 +101,7 @@ class Q extends U {
|
|
|
99
101
|
this.modelChange(this.model), this.onModelConfigChange(), this.currentDataFilter = this.model.getDataFilters(), this.updateCustomSortProps();
|
|
100
102
|
}
|
|
101
103
|
willUpdate(e) {
|
|
102
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel = q(this.model.aggregationType, this.commonStrings),
|
|
104
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel = q(this.model.aggregationType, this.commonStrings), S(this.model.getDataFilters(), this.currentDataFilter) || (this.model.getSortOrder() === g.customSort && this.updateCustomSortProps(), this.currentDataFilter = this.model.getDataFilters());
|
|
103
105
|
const t = this.model.timeAggregationType;
|
|
104
106
|
t !== void 0 && (this.timeAggregationLabel = W(t, this.commonStrings)), this.disableSplitBy = this.model.numericFields.length > 1 || this.model.xAxisField === "" || this.model.xAxisField === j;
|
|
105
107
|
}
|
|
@@ -119,30 +121,33 @@ class Q extends U {
|
|
|
119
121
|
const { id: t } = e.target;
|
|
120
122
|
this.selectedCustomSortItemId = this.selectedCustomSortItemId === t ? "" : t;
|
|
121
123
|
}
|
|
124
|
+
onCustomSortListClick(e) {
|
|
125
|
+
e.preventDefault();
|
|
126
|
+
}
|
|
122
127
|
onCustomSortItemMoved(e) {
|
|
123
128
|
const { id: t } = e.target;
|
|
124
129
|
let i = this.model.orderByList.length;
|
|
125
130
|
const s = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
126
|
-
t ===
|
|
131
|
+
t === C.Up ? i = s - 1 : t === C.Down && (i = s + 1), s >= 0 && i >= 0 && i < this.model.orderByList.length && this.model.moveCustomSortValuesInOrderByList(s, i);
|
|
127
132
|
}
|
|
128
133
|
onEnableTimeBinningChange(e) {
|
|
129
134
|
const t = e.target.checked;
|
|
130
135
|
this.model.binTemporalData = t, this.requestUpdate();
|
|
131
136
|
}
|
|
132
137
|
buildNumericFieldItem(e) {
|
|
133
|
-
return
|
|
138
|
+
return I(e, n`<calcite-list-item .label=${$(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
134
139
|
}
|
|
135
140
|
resetTimeIntervalOriginal(e) {
|
|
136
141
|
this.popoverClose(e), this.model.resetTimeInterval !== void 0 && (this.model.resetTimeInterval(), this.arcgisChartsConfigResetTimeInterval.emit());
|
|
137
142
|
}
|
|
138
143
|
buildCustomSortListItems() {
|
|
139
|
-
return
|
|
144
|
+
return D(this.model.orderByList, (t) => t, (t) => {
|
|
140
145
|
const i = z(this.layerFieldsInfo, t), o = this.model.nullCategory !== void 0 && t.trim() === M.nullCategory?.text?.trim();
|
|
141
146
|
return n`<calcite-list-item id=${t ?? N} .label=${t} .closed=${o} .description=${i} .value=${t} .selected=${this.selectedCustomSortItemId === t} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`;
|
|
142
147
|
});
|
|
143
148
|
}
|
|
144
149
|
buildCustomSortList() {
|
|
145
|
-
return
|
|
150
|
+
return I(this.sortOrderResetCounter, n`<calcite-list label class=${l(r.list)} drag-enabled selection-mode=single selection-appearance=border @click=${this.onCustomSortListClick} @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`);
|
|
146
151
|
}
|
|
147
152
|
onAggregationSelect(e) {
|
|
148
153
|
this.contentKind = a.aggregation, this.setupPopover(e);
|
|
@@ -161,7 +166,7 @@ class Q extends U {
|
|
|
161
166
|
}
|
|
162
167
|
async onRemoveNumericField(e) {
|
|
163
168
|
const t = e.target.value;
|
|
164
|
-
if (this.model.numericFields = this.model.numericFields.filter((i) => i !== t), this.model.getSortOrder() ===
|
|
169
|
+
if (p(d), this.model.numericFields = this.model.numericFields.filter((i) => i !== t), this.model.getSortOrder() === g.customSort) {
|
|
165
170
|
const i = await this.updateCustomSortProps();
|
|
166
171
|
this.model.orderByList = i, this.sortOrderResetCounter += 1;
|
|
167
172
|
}
|
|
@@ -173,13 +178,13 @@ class Q extends U {
|
|
|
173
178
|
this.intervalElement.value && !this.intervalElement.value.disabled && (this.contentKind = a.interval, this.setupPopover(e));
|
|
174
179
|
}
|
|
175
180
|
getCorrectedSplitByValue() {
|
|
176
|
-
return this.model.splitByField === "" || (this.model.numericFields ?? []).length > 1 ? "" :
|
|
181
|
+
return this.model.splitByField === "" || (this.model.numericFields ?? []).length > 1 ? "" : $(this.layerFieldsInfo, this.model.splitByField);
|
|
177
182
|
}
|
|
178
183
|
getCorrectedCategoryValue() {
|
|
179
|
-
return
|
|
184
|
+
return R({
|
|
180
185
|
fieldName: this.model.xAxisField,
|
|
181
186
|
fieldList: this.layerFieldsInfo
|
|
182
|
-
}) ? "" :
|
|
187
|
+
}) ? "" : $(this.layerFieldsInfo, this.model.xAxisField);
|
|
183
188
|
}
|
|
184
189
|
onShowDataLabelsChange(e) {
|
|
185
190
|
this.model.dataLabelsVisibility = e.target.checked;
|
|
@@ -191,7 +196,7 @@ class Q extends U {
|
|
|
191
196
|
const e = await this.model.getCustomSortValues();
|
|
192
197
|
this.originalCustomSortLabels = [...e];
|
|
193
198
|
const t = e.length > P.customSortLimit;
|
|
194
|
-
return t && (this.sortOrderElement.value && (this.sortOrderElement.value.label = this._messages.xAxisAsc), this.model.setSortOrder(
|
|
199
|
+
return t && (this.sortOrderElement.value && (this.sortOrderElement.value.label = this._messages.xAxisAsc), this.model.setSortOrder(g.xAxisAsc)), this.isCustomSortDisabled = t, e;
|
|
195
200
|
}
|
|
196
201
|
setupPopover(e) {
|
|
197
202
|
e.stopImmediatePropagation(), this.removeBarChartDataPopover();
|
|
@@ -199,10 +204,10 @@ class Q extends U {
|
|
|
199
204
|
size: this.model.temporalBinningSize ?? 1,
|
|
200
205
|
unit: this.model.temporalBinningUnit ?? x.Second
|
|
201
206
|
};
|
|
202
|
-
let i, s, o,
|
|
207
|
+
let i, s, o, u = !1, b = !1;
|
|
203
208
|
switch (this.contentKind) {
|
|
204
209
|
case a.aggregation:
|
|
205
|
-
i = this.aggregationElement.value, s = this._messages.aggregationHeader,
|
|
210
|
+
i = this.aggregationElement.value, s = this._messages.aggregationHeader, u = L(this.model.config.series ?? []) === B.BarAndLineFromFields, o = this.model.aggregationType;
|
|
206
211
|
break;
|
|
207
212
|
case a.category:
|
|
208
213
|
i = this.categoryElement.value, s = this._messages.categoryHeader, o = this.model.xAxisField;
|
|
@@ -214,7 +219,7 @@ class Q extends U {
|
|
|
214
219
|
i = this.splitByFieldElement.value, s = this._messages.splitByFieldHeader, o = this.model.splitByField;
|
|
215
220
|
break;
|
|
216
221
|
case a.sortOrder:
|
|
217
|
-
i = this.sortOrderElement.value, s = this._messages.sortOrderHeader, o = this.model.getSortOrder(),
|
|
222
|
+
i = this.sortOrderElement.value, s = this._messages.sortOrderHeader, o = this.model.getSortOrder(), b = this.isCustomSortDisabled;
|
|
218
223
|
break;
|
|
219
224
|
case a.interval:
|
|
220
225
|
i = this.intervalElement.value, s = this._messages.editInterval, o = t;
|
|
@@ -223,7 +228,7 @@ class Q extends U {
|
|
|
223
228
|
i = this.intervalAlignmentElement.value, s = this._messages.intervalAlignment, o = this.model.timeAggregationType ?? "";
|
|
224
229
|
break;
|
|
225
230
|
}
|
|
226
|
-
this.barChartPopover = V(n`<arcgis-charts-config-bar-chart-popover .headingTitle=${s} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${o} .isCustomSortDisabled=${
|
|
231
|
+
this.barChartPopover = V(n`<arcgis-charts-config-bar-chart-popover .headingTitle=${s} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${o} .isCustomSortDisabled=${b} .isNoAggregationDisabled=${u} @arcgisChartsConfigBarChartDataPopoverChange=${this.onBarChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-bar-chart-popover>`), !document.body.contains(this.barChartPopover) && this.barChartPopover !== null && document.body.appendChild(this.barChartPopover);
|
|
227
232
|
}
|
|
228
233
|
removeBarChartDataPopover() {
|
|
229
234
|
this.barChartPopover !== null && (this.barChartPopover.open = !1, this.barChartPopover = Z(this.barChartPopover));
|
|
@@ -238,14 +243,14 @@ class Q extends U {
|
|
|
238
243
|
this.model.nullPolicy = e.target.selectedItem?.value;
|
|
239
244
|
}
|
|
240
245
|
shouldShowTimeBinning() {
|
|
241
|
-
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !==
|
|
246
|
+
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !== h.NoAggregation;
|
|
242
247
|
return e !== void 0 && H(e) && t;
|
|
243
248
|
}
|
|
244
249
|
renderSorting() {
|
|
245
|
-
return n`<arcgis-charts-config-field-picker .disabled=${this.model.getAxisValueFormat(0)?.type ===
|
|
250
|
+
return n`<arcgis-charts-config-field-picker .disabled=${this.model.getAxisValueFormat(0)?.type === f.DateAxisFormat} .label=${this.model.getAxisValueFormat(0)?.type === f.DateAxisFormat ? this._messages.xAxisAsc : this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${m(this.sortOrderElement)}></arcgis-charts-config-field-picker>`;
|
|
246
251
|
}
|
|
247
252
|
renderAggregation() {
|
|
248
|
-
return n`<arcgis-charts-config-field-picker .label=${this.model.aggregationType ===
|
|
253
|
+
return n`<arcgis-charts-config-field-picker .label=${this.model.aggregationType === h.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${m(this.aggregationElement)}></arcgis-charts-config-field-picker>`;
|
|
249
254
|
}
|
|
250
255
|
renderCategory() {
|
|
251
256
|
const e = this.getCorrectedCategoryValue();
|
|
@@ -256,38 +261,38 @@ class Q extends U {
|
|
|
256
261
|
return n`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
257
262
|
}
|
|
258
263
|
renderNumericFields(e) {
|
|
259
|
-
const t =
|
|
264
|
+
const t = A(this.model.layer).idField, i = [];
|
|
260
265
|
for (const s of e)
|
|
261
266
|
s !== t && i.push(this.buildNumericFieldItem(s));
|
|
262
267
|
return n`<calcite-list label class=${l(r.fieldList)} ${m(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
263
268
|
}
|
|
264
269
|
renderCustomSortUI() {
|
|
265
270
|
const e = this.model.getSortOrder(), t = this.model.getAxisValueFormat(0)?.type, i = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
266
|
-
return t ===
|
|
271
|
+
return t === f.CategoryAxisFormat && e === g.customSort && !this.isCustomSortDisabled ? n`<calcite-label class=${l(r.label)}><div class=${l(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${i === 0 || i === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${C.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${i === -1 || i === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${C.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${S(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${L(this.model.config.series ?? []) === B.BarAndLineFromFields ? this._messages.values : this._messages.category}${this.buildCustomSortList()}</calcite-label>` : null;
|
|
267
272
|
}
|
|
268
273
|
renderInterval() {
|
|
269
|
-
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i =
|
|
274
|
+
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = K(this.model.temporalBinningUnit ?? x.Second, this._messages) ?? "", s = O(d), o = {
|
|
270
275
|
size: this.model.temporalBinningSize,
|
|
271
276
|
unit: this.model.temporalBinningUnit
|
|
272
|
-
},
|
|
277
|
+
}, u = S(o, s);
|
|
273
278
|
return [
|
|
274
279
|
n`<calcite-list label selection-appearance=border class=${l(r.intervalContainer)}><calcite-list-item .value=${e ? "" : `${t} ${i}`} .label=${e ? "" : `${t} ${i}`} @click=${e ? () => {
|
|
275
280
|
} : this.onIntervalSelect} ${m(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,
|
|
276
|
-
n`<div class=${l(r.linkContainer)}><calcite-button .disabled=${
|
|
281
|
+
n`<div class=${l(r.linkContainer)}><calcite-button .disabled=${u} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`
|
|
277
282
|
];
|
|
278
283
|
}
|
|
279
284
|
renderIntervalAlignment() {
|
|
280
285
|
return n`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${m(this.intervalAlignmentElement)}></arcgis-charts-config-field-picker>`;
|
|
281
286
|
}
|
|
282
287
|
renderEmptyBins() {
|
|
283
|
-
return n`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${
|
|
288
|
+
return n`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${y.Zero} .checked=${this.model.nullPolicy === y.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${y.Null} .checked=${this.model.nullPolicy === y.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`;
|
|
284
289
|
}
|
|
285
290
|
render() {
|
|
286
|
-
const e = this.renderAggregation(), t = this.renderCategory(), i = this.renderSplitBy(), s = this.renderSorting(), o = this.renderNumericFields([...this.model.numericFields ?? []]),
|
|
287
|
-
return n`<calcite-label class=${l(r.label)}>${this._messages.category}${t}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.numericFields}${o}</calcite-label><div class=${l(r.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><calcite-label class=${l(r.label)}><span class=${l(this.disableSplitBy ? r.dimText : "")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${l(r.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.enableTemporalBinning}<calcite-switch .checked=${this.model.binTemporalData} @calciteSwitchChange=${this.onEnableTimeBinningChange} ${m(this.enableTimeBinningSwitch)}></calcite-switch></calcite-label><div .hidden=${!this.model.binTemporalData || !this.shouldShowTimeBinning()}><calcite-label class=${l(r.label)}>${this._messages.interval}${
|
|
291
|
+
const e = this.renderAggregation(), t = this.renderCategory(), i = this.renderSplitBy(), s = this.renderSorting(), o = this.renderNumericFields([...this.model.numericFields ?? []]), u = this.renderCustomSortUI(), b = this.renderInterval(), k = this.renderIntervalAlignment(), T = this.renderEmptyBins();
|
|
292
|
+
return n`<calcite-label class=${l(r.label)}>${this._messages.category}${t}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.numericFields}${o}</calcite-label><div class=${l(r.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><calcite-label class=${l(r.label)}><span class=${l(this.disableSplitBy ? r.dimText : "")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${l(r.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.enableTemporalBinning}<calcite-switch .checked=${this.model.binTemporalData} @calciteSwitchChange=${this.onEnableTimeBinningChange} ${m(this.enableTimeBinningSwitch)}></calcite-switch></calcite-label><div .hidden=${!this.model.binTemporalData || !this.shouldShowTimeBinning()}><calcite-label class=${l(r.label)}>${this._messages.interval}${b}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.intervalAlignment}${k}</calcite-label><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType !== h.Count ? n`<calcite-label class=${l(r.label)}>${this._messages.emptyBins}${T}</calcite-label>` : null}</div></div><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.treatNullAsCategory}<calcite-switch .checked=${this.model.fetchNULLValues} @calciteSwitchChange=${this.onTreatNullAsCategoryChange}></calcite-switch></calcite-label><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${l(this.model.getAxisValueFormat(0)?.type === f.DateAxisFormat ? r.disabledLabel : r.label)}>${this._messages.sortOrder}${s}</calcite-label>${u}`;
|
|
288
293
|
}
|
|
289
294
|
}
|
|
290
|
-
|
|
295
|
+
w("arcgis-charts-config-bar-chart-data", Q);
|
|
291
296
|
export {
|
|
292
297
|
Q as ArcgisChartsConfigBarChartData
|
|
293
298
|
};
|
|
@@ -15,7 +15,7 @@ import { b as u, d as z, e as p } from "../../chunks/chart-object-literals.js";
|
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
16
|
import { e as N, p as B } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
import { H as K, I as _ } from "../../chunks/index3.js";
|
|
18
|
-
import { D as H,
|
|
18
|
+
import { D as H, bF as P, aQ as O, aZ as M, aP as U } from "../../chunks/index.js";
|
|
19
19
|
import { b as W, p as j } from "../../chunks/index2.js";
|
|
20
20
|
const R = A`.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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, o = {
|
|
21
21
|
name: "bar-chart-data-popover",
|
|
@@ -4,7 +4,7 @@ import { LitElement as n } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as c, html as t } from "lit";
|
|
5
5
|
import { isEqual as l } from "lodash-es";
|
|
6
6
|
import { C as a } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bG as d, bH as h, t as f } from "../../chunks/index.js";
|
|
8
8
|
const g = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends n {
|
|
10
10
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as b } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
4
|
-
import { isEqual as
|
|
4
|
+
import { isEqual as C } from "lodash-es";
|
|
5
5
|
import { repeat as y } from "lit/directives/repeat.js";
|
|
6
6
|
import { b as l, a as d } from "../../chunks/interfaces.js";
|
|
7
7
|
import { d as S, a as v } from "../../chunks/store.js";
|
|
@@ -88,7 +88,7 @@ class D extends B {
|
|
|
88
88
|
this.modelChange(this.model), this.onModelConfigChange(), this.currentDataFilter = this.model.getDataFilters(), this.updateCustomSortProps();
|
|
89
89
|
}
|
|
90
90
|
willUpdate(e) {
|
|
91
|
-
e.has("model") && this.modelChange(this.model, e.get("model")),
|
|
91
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), C(this.model.getDataFilters(), this.currentDataFilter) || (this.updateCustomSortProps(), this.currentDataFilter = this.model.getDataFilters()), this.disableSplitBy = this.model.numericFields.length === 0 || this.model.numericFields.length > 1 && this.model.category !== u;
|
|
92
92
|
}
|
|
93
93
|
disconnectedCallback() {
|
|
94
94
|
super.disconnectedCallback(), this.boxPlotPopover = p(this.boxPlotPopover), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -106,11 +106,14 @@ class D extends B {
|
|
|
106
106
|
const { id: t } = e.target;
|
|
107
107
|
this.selectedCustomSortItemId = this.selectedCustomSortItemId === t ? "" : t;
|
|
108
108
|
}
|
|
109
|
+
onCustomSortListClick(e) {
|
|
110
|
+
e.preventDefault();
|
|
111
|
+
}
|
|
109
112
|
onCustomSortItemMoved(e) {
|
|
110
113
|
const { id: t } = e.target;
|
|
111
114
|
let s = this.model.orderByList.length;
|
|
112
115
|
const i = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
113
|
-
t === d.Up ? s = i - 1 : t === d.Down && (s = i + 1), i >= 0 && s >= 0 && s < this.model.orderByList.length &&
|
|
116
|
+
t === d.Up ? s = i - 1 : t === d.Down && (s = i + 1), i >= 0 && s >= 0 && s < this.model.orderByList.length && this.model.moveCustomSortValuesInOrderByList(i, s);
|
|
114
117
|
}
|
|
115
118
|
buildCustomSortListItems() {
|
|
116
119
|
return y(this.model.orderByList, (t) => t, (t) => {
|
|
@@ -119,7 +122,7 @@ class D extends B {
|
|
|
119
122
|
});
|
|
120
123
|
}
|
|
121
124
|
buildCustomSortList() {
|
|
122
|
-
return f(this.sortOrderResetCounter, a`<calcite-list label class=${o(r.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`);
|
|
125
|
+
return f(this.sortOrderResetCounter, a`<calcite-list label class=${o(r.list)} drag-enabled selection-mode=single selection-appearance=border @click=${this.onCustomSortListClick} @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`);
|
|
123
126
|
}
|
|
124
127
|
buildNumericFieldItem(e) {
|
|
125
128
|
return f(e, a`<calcite-list-item .label=${g(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
@@ -188,7 +191,7 @@ class D extends B {
|
|
|
188
191
|
}
|
|
189
192
|
renderCustomSortUI() {
|
|
190
193
|
const e = this.model.getSortOrder(), t = this.model.getAxisValueFormat(0)?.type, s = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
191
|
-
return t === k.CategoryAxisFormat && e === c.customSort && !this.isCustomSortDisabled ? a`<calcite-label class=${o(r.label)}><div class=${o(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s === 0 || s === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${d.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s === -1 || s === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${d.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${
|
|
194
|
+
return t === k.CategoryAxisFormat && e === c.customSort && !this.isCustomSortDisabled ? a`<calcite-label class=${o(r.label)}><div class=${o(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s === 0 || s === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${d.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s === -1 || s === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${d.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${C(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.model.category === u ? this._messages.values : this._messages.category}${this.buildCustomSortList()}</calcite-label>` : null;
|
|
192
195
|
}
|
|
193
196
|
renderNumericFields(e) {
|
|
194
197
|
const t = [];
|
|
@@ -212,7 +215,7 @@ class D extends B {
|
|
|
212
215
|
return a`<calcite-label class=${o(r.label)}>${this._messages.numericFields}${t}</calcite-label><div class=${o(r.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><calcite-label class=${o(r.label)}><div>${this._messages.category} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${e}</calcite-label><calcite-label class=${o(r.label)}><div class=${o(this.disableSplitBy ? r.dimText : "")}>${this._messages.splitBy} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${s}</calcite-label><div>${(this.model.numericFields ?? []).length > 1 ? a`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.standardizeValues}<calcite-switch .checked=${this.model.standardizeValues} @calciteSwitchChange=${this.onStandardizeValuesChange}></calcite-switch></calcite-label>` : null}</div><calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.showOutliers}<calcite-switch .checked=${this.model.showOutliers} @calciteSwitchChange=${this.onShowOutliersChange}></calcite-switch></calcite-label><calcite-label class=${o(r.label)}>${this._messages.sortOrder}${i}</calcite-label>${n}`;
|
|
213
216
|
}
|
|
214
217
|
}
|
|
215
|
-
|
|
218
|
+
b("arcgis-charts-config-box-plot-data", D);
|
|
216
219
|
export {
|
|
217
220
|
D as ArcgisChartsConfigBoxPlotData
|
|
218
221
|
};
|
|
@@ -11,7 +11,7 @@ import { createRef as u, ref as m } from "lit/directives/ref.js";
|
|
|
11
11
|
import { LitElement as x, createEvent as g, renderElement as I, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
12
12
|
import { B as r } from "../../chunks/common.js";
|
|
13
13
|
import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
14
|
-
import {
|
|
14
|
+
import { bF as b, aP as E, D as w } from "../../chunks/index.js";
|
|
15
15
|
import { b as B } from "../../chunks/index2.js";
|
|
16
16
|
import { d as C } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
const o = {
|
|
@@ -11,11 +11,11 @@ import { isEqual as D, cloneDeep as W } from "lodash-es";
|
|
|
11
11
|
import { i as k } from "../../chunks/index4.js";
|
|
12
12
|
import { q as F, r as E, C as G } from "../../chunks/index2.js";
|
|
13
13
|
import { LitElement as X, createEvent as f, renderElement as v, safeStyleMap as Z, safeClassMap as d } from "@arcgis/lumina";
|
|
14
|
-
import { css as
|
|
15
|
-
import { createRef as
|
|
14
|
+
import { css as K, html as h } from "lit";
|
|
15
|
+
import { createRef as j, ref as q } from "lit/directives/ref.js";
|
|
16
16
|
import { u as I } from "../../chunks/useT9n.js";
|
|
17
|
-
import { c as Y, a as M, g as
|
|
18
|
-
import {
|
|
17
|
+
import { c as Y, a as M, g as J } from "../../chunks/store.js";
|
|
18
|
+
import { bI as Q, ai as ee, bJ as te, bK as ae, bL as ie } from "../../chunks/index.js";
|
|
19
19
|
import { A as se } from "../../chunks/axis-model-wrapper.js";
|
|
20
20
|
import { h as re, f as y } from "../../chunks/web-component-utils.js";
|
|
21
21
|
import { a as oe } from "../../chunks/chart-ui-utils.js";
|
|
@@ -80,10 +80,10 @@ function pe(p, e) {
|
|
|
80
80
|
}), t.charts = a;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const ue =
|
|
83
|
+
const ue = K`.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;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
84
84
|
class ge extends X {
|
|
85
85
|
constructor() {
|
|
86
|
-
super(), this.selectChartTypePopover = null, this.chartsListFlowItem =
|
|
86
|
+
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = j(), this.supportedChartTypes = [
|
|
87
87
|
o.BarSeries,
|
|
88
88
|
o.BoxPlotSeries,
|
|
89
89
|
o.LineSeries,
|
|
@@ -255,7 +255,7 @@ class ge extends X {
|
|
|
255
255
|
}
|
|
256
256
|
w(e), e.forEach((i) => {
|
|
257
257
|
a.find((r) => r.isSameChartAs(i)) === void 0 && a.push(i);
|
|
258
|
-
}), a = a.filter((i) => !
|
|
258
|
+
}), a = a.filter((i) => !Q(i.config)), this.modelList = a;
|
|
259
259
|
}
|
|
260
260
|
modelListChange(e, t) {
|
|
261
261
|
this.selectedChartId = w(e, this.selectedChartId), t?.forEach((i) => {
|
|
@@ -307,7 +307,7 @@ class ge extends X {
|
|
|
307
307
|
e?.forEach((t) => {
|
|
308
308
|
const { isXAxis: a, maximum: i, minimum: s } = t, r = this.getModel(this.selectedChartId);
|
|
309
309
|
if (r !== void 0 && T(r) && this.selectedChartId !== void 0) {
|
|
310
|
-
const n = new se(r, a), l =
|
|
310
|
+
const n = new se(r, a), l = J({
|
|
311
311
|
chartId: this.selectedChartId,
|
|
312
312
|
isXAxis: a,
|
|
313
313
|
isLogarithmic: n.getLogarithmic()
|
|
@@ -420,7 +420,7 @@ class ge extends X {
|
|
|
420
420
|
return V(e, (t) => t.id, (t) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ce(this.modelList, t.id.toString(), B(t.type) ? ie : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
421
421
|
}
|
|
422
422
|
render() {
|
|
423
|
-
return this.close ? null : h`<calcite-flow>${S("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${
|
|
423
|
+
return this.close ? null : h`<calcite-flow>${S("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${q(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
424
424
|
}
|
|
425
425
|
renderTabs() {
|
|
426
426
|
const e = this.getModel(this.selectedChartId);
|
|
@@ -6,12 +6,12 @@ import { i as T } from "../../chunks/data-labels-symbol.js";
|
|
|
6
6
|
import { i as C, a as L, b as P } from "../../chunks/axis-lines-symbol.js";
|
|
7
7
|
import { cloneDeep as n, isArray as F, isObject as A, mergeWith as D, isEmpty as E } from "lodash-es";
|
|
8
8
|
import { h as G } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import { R as
|
|
10
|
-
import { u as
|
|
9
|
+
import { R as N, b } from "../../chunks/rest-js-object-literals.js";
|
|
10
|
+
import { u as W } from "../../chunks/useT9n.js";
|
|
11
11
|
import { css as z, html as f } from "lit";
|
|
12
12
|
import { LitElement as H, renderElement as R, safeClassMap as p } from "@arcgis/lumina";
|
|
13
13
|
import { C as j, F as i, L as m } from "../../chunks/common.js";
|
|
14
|
-
import { b as u,
|
|
14
|
+
import { b as u, bN as r } from "../../chunks/index.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { C as I } from "../../chunks/index2.js";
|
|
17
17
|
import { a } from "../../chunks/chart-object-literals.js";
|
|
@@ -28,7 +28,7 @@ const v = {
|
|
|
28
28
|
}, k = {
|
|
29
29
|
type: b.SLS,
|
|
30
30
|
color: [1, 1, 1, 255],
|
|
31
|
-
style:
|
|
31
|
+
style: N.Solid,
|
|
32
32
|
width: 2
|
|
33
33
|
}, g = {
|
|
34
34
|
element: "chart-element",
|
|
@@ -37,7 +37,7 @@ const v = {
|
|
|
37
37
|
}, O = z`.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{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}`;
|
|
38
38
|
class X extends H {
|
|
39
39
|
constructor() {
|
|
40
|
-
super(...arguments), this._messages =
|
|
40
|
+
super(...arguments), this._messages = W(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
|
|
41
41
|
const e = t;
|
|
42
42
|
e.stopImmediatePropagation();
|
|
43
43
|
let s;
|