@arcgis/charts-components 5.2.0-next.10 → 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/{2XYTPC2V.js → 2PFDGKA5.js} +1 -1
- package/dist/cdn/3MKY6UCO.js +2 -0
- package/dist/cdn/3SBYV6BW.js +2 -0
- package/dist/cdn/{4ETF22K6.js → 3T4NYRGX.js} +1 -1
- package/dist/cdn/{LOZOENFC.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/3UFVHYX5.js +2 -0
- package/dist/cdn/{NKJC4MT7.js → 4LQHAOMY.js} +1 -1
- package/dist/cdn/5BADQJ64.js +2 -0
- package/dist/cdn/{CEE2QRZ5.js → 5F5N7ZZ6.js} +1 -1
- package/dist/cdn/{QM27URJR.js → 5PKMZMGG.js} +1 -1
- package/dist/cdn/{PZKRRAXW.js → 624WBDC3.js} +1 -1
- package/dist/cdn/{7EEYYP6X.js → 66GCPNDR.js} +1 -1
- package/dist/cdn/{5V3ADOWS.js → 6VVUN6AX.js} +1 -1
- package/dist/cdn/73JQ2I2Q.js +3 -0
- package/dist/cdn/7HUD5SQI.js +2 -0
- package/dist/cdn/A636YSNA.js +2 -0
- package/dist/cdn/AIFWLINL.js +2 -0
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/BJYCLLJL.js +2 -0
- package/dist/cdn/BXJZ4YYQ.js +2 -0
- package/dist/cdn/CRCAJAFA.js +2 -0
- package/dist/cdn/{F7Q3XDZH.js → CTE365PT.js} +1 -1
- package/dist/cdn/{PRPNJEPZ.js → CVF3NLTS.js} +1 -1
- package/dist/cdn/{RH4AC577.js → DKRPN24O.js} +1 -1
- package/dist/cdn/{M6JCOZIE.js → DL6PRHZT.js} +1 -1
- package/dist/cdn/{2PAVNZEM.js → DOVGECFB.js} +1 -1
- package/dist/cdn/DYNPQ2KT.js +2 -0
- package/dist/cdn/{SYIW6YJN.js → ECICE4SU.js} +1 -1
- package/dist/cdn/{GNC62GNV.js → EEFS6HU7.js} +1 -1
- package/dist/cdn/{2A7JZQX5.js → EYF75TH5.js} +1 -1
- package/dist/cdn/{H4B3ERFL.js → EYYQKOXI.js} +1 -1
- package/dist/cdn/{VMS7DT3M.js → GHLJNZ27.js} +1 -1
- package/dist/cdn/{XUT56VH6.js → HQONJQEW.js} +1 -1
- package/dist/cdn/{Z4HCNLCD.js → IBKS2NZ3.js} +1 -1
- package/dist/cdn/IDHDU3DJ.js +2 -0
- package/dist/cdn/{SPVZ5BND.js → IHHPUKGG.js} +1 -1
- package/dist/cdn/{QF4UBQYT.js → IM5PHXV3.js} +1 -1
- package/dist/cdn/ISSVKLHV.js +2 -0
- package/dist/cdn/{Z5VVIVR3.js → IYP3GZSC.js} +1 -1
- package/dist/cdn/{25YAWDIB.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/{WBJ6NWHX.js → J47CNZCT.js} +1 -1
- package/dist/cdn/{PM6FCUUV.js → JHANH4UG.js} +1 -1
- package/dist/cdn/{CBHWMUGA.js → JKTF2L3L.js} +21 -21
- package/dist/cdn/JLWDVTJW.js +2 -0
- package/dist/cdn/JQX5EJZV.js +2 -0
- package/dist/cdn/{QF6LHQTR.js → K2P5RSE5.js} +1 -1
- package/dist/cdn/{ZIVPZF6E.js → KJPXY6NE.js} +1 -1
- package/dist/cdn/{3376CR53.js → KL33ETQG.js} +1 -1
- package/dist/cdn/{YDJPGFXU.js → KUUBYC33.js} +1 -1
- package/dist/cdn/{ICVAXCHZ.js → KZTGYTHS.js} +1 -1
- package/dist/cdn/{6SRJ2VKV.js → LA7COTN7.js} +1 -1
- package/dist/cdn/{HD4FP3ZK.js → LJDGLKFL.js} +1 -1
- package/dist/cdn/LL757OZ7.js +2 -0
- package/dist/cdn/{FTOYQNHN.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{NFANBMTU.js → MGMUUWSP.js} +1 -1
- package/dist/cdn/{LIPUN4CH.js → MPSRB65O.js} +1 -1
- package/dist/cdn/{OYCT7CFU.js → N5ZIF7M4.js} +1 -1
- package/dist/cdn/NVEIMJJ7.js +2 -0
- package/dist/cdn/{255TSQSE.js → O363DXQ4.js} +6 -6
- package/dist/cdn/O533LNDP.js +2 -0
- package/dist/cdn/ODWDODUY.js +2 -0
- package/dist/cdn/{N7NZHIGS.js → OEOAL6JO.js} +1 -1
- package/dist/cdn/{IHTJSWKK.js → PGHVUDMJ.js} +1 -1
- package/dist/cdn/{YSWV4FZE.js → PGWOWXHQ.js} +1 -1
- package/dist/cdn/{L6ZALCLC.js → PIONRTCB.js} +1 -1
- package/dist/cdn/{CSAUXIK2.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/QSBAOCG4.js +2 -0
- package/dist/cdn/{KB76VF4V.js → QT3VTHUJ.js} +1 -1
- package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/{4J6UFQ2Q.js → RJSCJBFO.js} +1 -1
- package/dist/cdn/{GXC7VLYM.js → RMBD6ZSC.js} +1 -1
- package/dist/cdn/RMHGA6AU.js +2 -0
- package/dist/cdn/{KHNP4LWB.js → S5EYODWJ.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/{RA3CZHC7.js → SMCXHMTP.js} +1 -1
- package/dist/cdn/{KKKCWW6G.js → SN2GPX3I.js} +1 -1
- package/dist/cdn/SNMFJ4CN.js +2 -0
- package/dist/cdn/{GBDEYCR6.js → SOOQD5FC.js} +1 -1
- package/dist/cdn/T2SFRF7I.js +2 -0
- package/dist/cdn/{5OKNLDIJ.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/U7TKKTUC.js +2 -0
- package/dist/cdn/{TH4OHGTQ.js → V2UF2WVE.js} +1 -1
- package/dist/cdn/{XWZYTOHY.js → VFUFK3UT.js} +1 -1
- package/dist/cdn/VP42WLDX.js +2 -0
- package/dist/cdn/W4XQNHSD.js +4 -0
- package/dist/cdn/{LO6KKSE4.js → W55GZOYQ.js} +1 -1
- package/dist/cdn/{IKCVYV5L.js → WMXNQ5XH.js} +1 -1
- package/dist/cdn/WVV5DAII.js +2 -0
- package/dist/cdn/{3S3PN7AK.js → X5PNAE7T.js} +1 -1
- package/dist/cdn/XRLVJJBT.js +2 -0
- package/dist/cdn/{VW4GW2JT.js → YBN53S4C.js} +1 -1
- package/dist/cdn/{CDHUW42P.js → YCJIOFQR.js} +1 -1
- package/dist/cdn/{SZEYHOGG.js → Z2UG6CUL.js} +1 -1
- package/dist/cdn/{I5AALJRN.js → ZFK3D55V.js} +1 -1
- package/dist/cdn/ZP22BN3G.js +2 -0
- 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/data.js +68 -68
- package/dist/chunks/index2.js +218 -210
- package/dist/chunks/index3.js +1 -0
- package/dist/chunks/index4.js +21 -14
- package/dist/chunks/pie-chart-data.js +42 -36
- package/dist/chunks/pie-chart-model.js +175 -162
- package/dist/chunks/serial-chart-data.js +588 -569
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/web-component-utils.js +529 -508
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +4512 -4434
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +34 -35
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +13 -14
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +25 -26
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +28 -30
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +37 -39
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/json-schema/index.d.ts +9 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +264 -264
- package/dist/utils/chart-config/utils/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +1 -3
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/inline-conversion/index.d.ts +0 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +3 -3
- package/dist/cdn/2HTYRBIX.js +0 -2
- package/dist/cdn/3CFZUVMF.js +0 -2
- package/dist/cdn/3W2A4SAP.js +0 -2
- package/dist/cdn/4YJSRB7R.js +0 -2
- package/dist/cdn/5JNEJJU3.js +0 -2
- package/dist/cdn/6MF2R6DJ.js +0 -2
- package/dist/cdn/BER7FMK3.js +0 -2
- package/dist/cdn/BJRHNVLR.js +0 -2
- package/dist/cdn/CGYB5KPV.js +0 -2
- package/dist/cdn/DJ5OHPYW.js +0 -2
- package/dist/cdn/EK33HUAH.js +0 -2
- package/dist/cdn/GKPMAFU3.js +0 -2
- package/dist/cdn/HFJ4EPET.js +0 -2
- package/dist/cdn/JEH22SPH.js +0 -2
- package/dist/cdn/JMAVBKEZ.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/JQYB4ZDY.js +0 -2
- package/dist/cdn/PJZVDHIF.js +0 -2
- package/dist/cdn/PNDFAGEB.js +0 -2
- package/dist/cdn/QAIY4AMN.js +0 -2
- package/dist/cdn/SHTFWNG3.js +0 -2
- package/dist/cdn/SXT5DNXJ.js +0 -4
- package/dist/cdn/U4COKMGA.js +0 -2
- package/dist/cdn/U6USPTQ5.js +0 -2
- package/dist/cdn/UHPAFBYO.js +0 -2
- package/dist/cdn/VL2G5M57.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/VSPTNIIU.js +0 -2
- package/dist/cdn/X4BYDZDR.js +0 -2
- package/dist/cdn/XACXJMSF.js +0 -3
- package/dist/cdn/XJ2L7VN4.js +0 -2
- package/dist/cdn/XP5GZU4O.js +0 -2
- package/dist/cdn/XXXXO6OB.js +0 -2
- package/dist/cdn/YXWIKYN4.js +0 -2
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { repeat as
|
|
2
|
+
import { c as S } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as u } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { substitute as
|
|
7
|
-
import { css as
|
|
5
|
+
import { LitElement as T, createEvent as C, renderElement as F, safeStyleMap as A, safeClassMap as c } from "@arcgis/lumina";
|
|
6
|
+
import { substitute as D } from "@arcgis/core/intl.js";
|
|
7
|
+
import { css as P, html as a } from "lit";
|
|
8
8
|
import { createRef as g, ref as d } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as y } from "lodash-es";
|
|
10
10
|
import { u as $ } from "../../chunks/useT9n.js";
|
|
11
11
|
import { B as n } from "../../chunks/interfaces.js";
|
|
12
12
|
import { c as v, b as L, e as h, a as x, f as E, s as z } from "../../chunks/chart-ui-utils2.js";
|
|
13
13
|
import { R as k } from "../../chunks/rest-js-object-literals.js";
|
|
14
|
-
import { t as
|
|
14
|
+
import { t as b, r as N, s as p } from "../../chunks/chart-object-literals.js";
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
16
|
import { e as w, p as B } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
import { t as K, ag as _ } from "../../chunks/index.js";
|
|
18
|
-
import { a2 as O, bh as I, bb as
|
|
19
|
-
import { d as
|
|
20
|
-
const R =
|
|
21
|
-
jsAppFlyout: "js-app-flyout",
|
|
18
|
+
import { a2 as O, bh as I, bb as H, bu as M, bk as U } from "../../chunks/index2.js";
|
|
19
|
+
import { d as W, m as j } from "../../chunks/index3.js";
|
|
20
|
+
const R = P`.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}.pick-list-item-label{font-size:small}.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}`, r = {
|
|
22
21
|
name: "bar-chart-data-popover",
|
|
23
|
-
numericFieldPickList: "bar-chart-data-numeric-fields-pick-list",
|
|
24
22
|
header: "header",
|
|
25
23
|
fab: "fab",
|
|
26
24
|
pickListItemLabel: "pick-list-item-label",
|
|
@@ -30,7 +28,7 @@ const R = D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
30
28
|
applyButton: "apply-button",
|
|
31
29
|
panel: "panel"
|
|
32
30
|
};
|
|
33
|
-
class q extends
|
|
31
|
+
class q extends T {
|
|
34
32
|
constructor() {
|
|
35
33
|
super(...arguments), this._messages = $(), this.commonStrings = $({ name: "common", blocking: !0 }), this.picklist = g(), this.intervalSizeElement = g(), this.intervalTypeElement = g(), this.popoverElement = g(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.isNoAggregationDisabled = !1, this.arcgisChartsConfigBarChartDataPopoverChange = C(), this.arcgisChartsConfigPopoverClose = C();
|
|
36
34
|
}
|
|
@@ -47,7 +45,7 @@ class q extends S {
|
|
|
47
45
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
48
46
|
const t = v.map((s) => K(s, this.commonStrings));
|
|
49
47
|
y(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
50
|
-
const l = [
|
|
48
|
+
const l = [b.Start, b.End].map((s) => _(s, this.commonStrings));
|
|
51
49
|
y(this.timeAggregationLabels, l) || (this.timeAggregationLabels = l);
|
|
52
50
|
}
|
|
53
51
|
updated() {
|
|
@@ -60,14 +58,14 @@ class q extends S {
|
|
|
60
58
|
}
|
|
61
59
|
buildAggregationListItems() {
|
|
62
60
|
const e = this.isNoAggregationDisabled ? v.filter((t) => t !== N.NoAggregation) : v;
|
|
63
|
-
return
|
|
61
|
+
return u(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.aggregationLabels[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
|
|
64
62
|
}
|
|
65
63
|
createTooltip(e) {
|
|
66
64
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
67
|
-
const t = e.target, i = O(t), s = new Intl.NumberFormat(i).format(L.customSortLimit),
|
|
65
|
+
const t = e.target, i = O(t), s = new Intl.NumberFormat(i).format(L.customSortLimit), o = D(this._messages.customSortLimit ?? "", {
|
|
68
66
|
totalLimit: s
|
|
69
67
|
});
|
|
70
|
-
this.tooltip =
|
|
68
|
+
this.tooltip = F(a`<calcite-tooltip style=${A({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${o}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
destroyTooltip() {
|
|
@@ -76,7 +74,7 @@ class q extends S {
|
|
|
76
74
|
buildSortOrder() {
|
|
77
75
|
const e = Object.keys(m);
|
|
78
76
|
let t;
|
|
79
|
-
return
|
|
77
|
+
return u(e, (i) => i, (i) => {
|
|
80
78
|
let l = "";
|
|
81
79
|
switch (i) {
|
|
82
80
|
case m.xAxisAsc: {
|
|
@@ -88,11 +86,11 @@ class q extends S {
|
|
|
88
86
|
break;
|
|
89
87
|
}
|
|
90
88
|
case m.yAxisAsc: {
|
|
91
|
-
t = "sort-descending", l =
|
|
89
|
+
t = "sort-descending", l = r.rotateClass;
|
|
92
90
|
break;
|
|
93
91
|
}
|
|
94
92
|
case m.yAxisDesc: {
|
|
95
|
-
t = "sort-ascending", l =
|
|
93
|
+
t = "sort-ascending", l = r.rotateClass;
|
|
96
94
|
break;
|
|
97
95
|
}
|
|
98
96
|
case m.customSort: {
|
|
@@ -104,7 +102,7 @@ class q extends S {
|
|
|
104
102
|
});
|
|
105
103
|
}
|
|
106
104
|
buildPickListItem(e) {
|
|
107
|
-
return f(e.name, a`<calcite-list-item .label=${
|
|
105
|
+
return f(e.name, a`<calcite-list-item .label=${W(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
108
106
|
}
|
|
109
107
|
buildPickListItems(e) {
|
|
110
108
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
@@ -112,7 +110,7 @@ class q extends S {
|
|
|
112
110
|
case n.numericFields: {
|
|
113
111
|
for (let l = 0; l < t; l += 1) {
|
|
114
112
|
const s = this.layerFieldsInfo?.[l];
|
|
115
|
-
s &&
|
|
113
|
+
s && U(s) && i.push(this.buildPickListItem(s));
|
|
116
114
|
}
|
|
117
115
|
break;
|
|
118
116
|
}
|
|
@@ -120,8 +118,8 @@ class q extends S {
|
|
|
120
118
|
const l = f(" ", a`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
121
119
|
i.push(l);
|
|
122
120
|
for (let s = 0; s < t; s += 1) {
|
|
123
|
-
const
|
|
124
|
-
|
|
121
|
+
const o = this.layerFieldsInfo?.[s];
|
|
122
|
+
o && (o.type === k.String || I(o) || H(o) || M(o)) && i.push(this.buildPickListItem(o));
|
|
125
123
|
}
|
|
126
124
|
break;
|
|
127
125
|
}
|
|
@@ -129,8 +127,8 @@ class q extends S {
|
|
|
129
127
|
const l = f(" ", a`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
130
128
|
i.push(l);
|
|
131
129
|
for (let s = 0; s < t; s += 1) {
|
|
132
|
-
const
|
|
133
|
-
|
|
130
|
+
const o = this.layerFieldsInfo?.[s];
|
|
131
|
+
o && (I(o) || o.type === k.String) && i.push(this.buildPickListItem(o));
|
|
134
132
|
}
|
|
135
133
|
break;
|
|
136
134
|
}
|
|
@@ -169,32 +167,32 @@ class q extends S {
|
|
|
169
167
|
this.closePopover();
|
|
170
168
|
}
|
|
171
169
|
buildIntervalAlignmentPickListItems() {
|
|
172
|
-
const e = [
|
|
173
|
-
return
|
|
170
|
+
const e = [b.Start, b.End];
|
|
171
|
+
return u(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.timeAggregationLabels?.[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
|
|
174
172
|
}
|
|
175
173
|
renderAggregationType() {
|
|
176
174
|
const e = this.buildAggregationListItems();
|
|
177
|
-
return a`<calcite-list label class=${c(
|
|
175
|
+
return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
178
176
|
}
|
|
179
177
|
renderCategory() {
|
|
180
178
|
const e = this.buildPickListItems(n.category);
|
|
181
|
-
return a`<calcite-list label class=${c(
|
|
179
|
+
return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
182
180
|
}
|
|
183
181
|
renderNumericFields() {
|
|
184
182
|
const e = this.buildPickListItems(n.numericFields);
|
|
185
|
-
return a`<calcite-list label
|
|
183
|
+
return a`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
186
184
|
}
|
|
187
185
|
renderSortOrder() {
|
|
188
186
|
const e = this.buildSortOrder();
|
|
189
|
-
return a`<calcite-list label class=${c(
|
|
187
|
+
return a`<calcite-list label class=${c(r.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
190
188
|
}
|
|
191
189
|
renderSplitByField() {
|
|
192
190
|
const e = this.buildPickListItems(n.splitByField);
|
|
193
|
-
return a`<calcite-list label class=${c(
|
|
191
|
+
return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
194
192
|
}
|
|
195
193
|
renderIntervalAlignment() {
|
|
196
194
|
const e = this.buildIntervalAlignmentPickListItems();
|
|
197
|
-
return a`<calcite-list label class=${c(
|
|
195
|
+
return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
198
196
|
}
|
|
199
197
|
renderInterval() {
|
|
200
198
|
const e = this.selectedContent, t = [
|
|
@@ -206,7 +204,7 @@ class q extends S {
|
|
|
206
204
|
p.Month,
|
|
207
205
|
p.Year
|
|
208
206
|
];
|
|
209
|
-
return a`<div><div class=${c(
|
|
207
|
+
return a`<div><div class=${c(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${z(e?.size, 1)} ${d(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${d(this.intervalTypeElement)}>${t.map((i) => a`<calcite-option .value=${i} .label=${j(i, this._messages)} .selected=${e?.unit === i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${c(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
210
208
|
}
|
|
211
209
|
renderPopoverInfo() {
|
|
212
210
|
let e;
|
|
@@ -237,10 +235,10 @@ class q extends S {
|
|
|
237
235
|
}
|
|
238
236
|
render() {
|
|
239
237
|
let e;
|
|
240
|
-
return this.contentKind === n.numericFields && (e = a`<div slot=footer><calcite-fab class=${c(
|
|
238
|
+
return this.contentKind === n.numericFields && (e = a`<div slot=footer><calcite-fab class=${c(r.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), a`<div><calcite-popover class=${c(r.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${d(this.popoverElement)}><calcite-panel class=${c(r.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(r.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
241
239
|
}
|
|
242
240
|
}
|
|
243
|
-
|
|
241
|
+
S("arcgis-charts-config-bar-chart-popover", q);
|
|
244
242
|
export {
|
|
245
243
|
q as ArcgisChartsConfigBarChartPopover
|
|
246
244
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as k } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as x } from "lit/directives/keyed.js";
|
|
4
|
-
import { repeat as
|
|
5
|
-
import { u as
|
|
4
|
+
import { repeat as P } from "lit/directives/repeat.js";
|
|
5
|
+
import { u as T } from "../../chunks/useT9n.js";
|
|
6
6
|
import { css as L, html as l } from "lit";
|
|
7
7
|
import { LitElement as M, createEvent as N, renderElement as u, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
|
|
8
8
|
import { a as O } from "../../chunks/chart-ui-utils2.js";
|
|
@@ -17,17 +17,17 @@ const E = {
|
|
|
17
17
|
list: "list",
|
|
18
18
|
disabledInfo: "disabled-info",
|
|
19
19
|
disabledStackingOption: "disabled-stacking-option"
|
|
20
|
-
}, w = L
|
|
20
|
+
}, w = L`.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)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right: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)}.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)}.disabled-info{margin:auto 1rem;pointer-events:auto}.disabled-info:active{margin:auto 1rem;pointer-events:none}.disabled-stacking-option{pointer-events:none;opacity:var(--calcite-opacity-disabled)}`;
|
|
21
21
|
class D extends M {
|
|
22
22
|
constructor() {
|
|
23
|
-
super(...arguments), this._messages =
|
|
23
|
+
super(...arguments), this._messages = T(), this.open = !1, this.seriesNameChange = (e) => {
|
|
24
24
|
if (e.detail !== null && e.detail !== void 0) {
|
|
25
25
|
const t = e.detail.name;
|
|
26
26
|
if (this.isNullCategorySelected) {
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
this.model.nullCategory =
|
|
27
|
+
const i = this.model.nullCategory;
|
|
28
|
+
if (i) {
|
|
29
|
+
const s = { ...i, text: t };
|
|
30
|
+
this.model.nullCategory = s;
|
|
31
31
|
}
|
|
32
32
|
} else
|
|
33
33
|
this.model.setSeriesName(t, this.selectedSeriesIndex ?? -1);
|
|
@@ -37,15 +37,15 @@ class D extends M {
|
|
|
37
37
|
const { color: t } = e.detail;
|
|
38
38
|
if (t !== void 0) {
|
|
39
39
|
if (this.isNullCategorySelected) {
|
|
40
|
-
const
|
|
41
|
-
...
|
|
40
|
+
const i = this.model.nullCategory, s = i?.symbol && {
|
|
41
|
+
...i,
|
|
42
42
|
symbol: {
|
|
43
|
-
...
|
|
43
|
+
...i.symbol,
|
|
44
44
|
color: t,
|
|
45
|
-
outline:
|
|
45
|
+
outline: i.symbol.outline && { ...i.symbol.outline, color: t }
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
this.model.nullCategory =
|
|
48
|
+
this.model.nullCategory = s;
|
|
49
49
|
} else
|
|
50
50
|
this.model.setSeriesColor(t, this.selectedSeriesIndex ?? -1);
|
|
51
51
|
this.model.colorMatch = !1;
|
|
@@ -83,24 +83,24 @@ class D extends M {
|
|
|
83
83
|
this.selectedSeriesIndex !== void 0 && (this.seriesPopover = u(l`<arcgis-charts-config-bar-chart-series-popover .referenceElement=${this.el} .selectedName=${this.selectedSeriesIndex != null ? this.model.getSeriesName(this.selectedSeriesIndex) : void 0} .selectedColor=${this.selectedSeriesIndex != null ? this.model.getSeriesColor(this.selectedSeriesIndex) : void 0} .placement=${this.popoverPlacement} .selectedSeriesIndex=${this.selectedSeriesIndex != null ? this.selectedSeriesIndex : void 0} .nullCategory=${this.isNullCategorySelected ? this.model.nullCategory : void 0} .open=${this.open} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-bar-chart-series-popover>`), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover));
|
|
84
84
|
}
|
|
85
85
|
buildSeriesListItems() {
|
|
86
|
-
const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (
|
|
87
|
-
return
|
|
88
|
-
const n = this.model.getSeriesId(
|
|
89
|
-
let
|
|
86
|
+
const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (s, n) => n);
|
|
87
|
+
return P(t, (s) => this.model.getSeriesId(s), (s) => {
|
|
88
|
+
const n = this.model.getSeriesId(s), c = this.model.getSeriesColor(s), d = this.model.getSeriesName(s), b = this.model.chartSubType === _.BarAndLineFromFields ? this._messages.series : n;
|
|
89
|
+
let g = "#CCCCCC", p = "minus-square";
|
|
90
90
|
if ((e > 1 || !this.activeColorMatch) && c !== void 0) {
|
|
91
91
|
p = "square-f";
|
|
92
|
-
const [
|
|
93
|
-
|
|
92
|
+
const [S, y, $, I] = [...c];
|
|
93
|
+
g = `rgba(${S},${y},${$},${I / 255})`;
|
|
94
94
|
}
|
|
95
|
-
return l`<calcite-list-item .label=${d ?? n ?? ""} .description=${
|
|
95
|
+
return l`<calcite-list-item .label=${d ?? n ?? ""} .description=${b} .value=${n} .selected=${this.selectedSeriesIndex === s} @click=${this.openSeriesPopOver}><calcite-icon .icon=${p} style=${h({ color: g })} slot=content-end></calcite-icon></calcite-list-item>`;
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
buildSeriesList() {
|
|
99
99
|
return x(this.seriesOrderResetCounter, l`<calcite-list label class=${a(o.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
|
|
100
100
|
}
|
|
101
101
|
buildNullCategoryUI() {
|
|
102
|
-
const e = this.model.nullCategory, t = this._messages.nullCategory,
|
|
103
|
-
return l`<calcite-list label class=${a(o.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesIndex === null} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${h({ color:
|
|
102
|
+
const e = this.model.nullCategory, t = this._messages.nullCategory, i = e?.symbol?.color ?? C.nullCategory?.symbol?.color ?? C.grayColor, [s, n, c, d] = [...i], m = `rgba(${s},${n},${c},${d / 255})`;
|
|
103
|
+
return l`<calcite-list label class=${a(o.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesIndex === null} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${h({ color: m })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
104
104
|
}
|
|
105
105
|
buildMultipleBarTypeList() {
|
|
106
106
|
const e = this.shouldDisableStacking();
|
|
@@ -117,18 +117,18 @@ class D extends M {
|
|
|
117
117
|
}
|
|
118
118
|
onCalciteListOrderChange(e) {
|
|
119
119
|
if (e.detail !== null && e.detail !== void 0) {
|
|
120
|
-
const { newIndex: t, oldIndex:
|
|
121
|
-
this.model.moveSeries(
|
|
120
|
+
const { newIndex: t, oldIndex: i } = e.detail;
|
|
121
|
+
this.model.moveSeries(i ?? 0, t ?? i ?? 0), this.seriesOrderResetCounter += 1;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
openSeriesPopOver(e) {
|
|
125
125
|
e.stopImmediatePropagation(), this.removeSeriesPopover();
|
|
126
|
-
const t = e.target,
|
|
127
|
-
this.open = this.selectedSeriesIndex !==
|
|
126
|
+
const t = e.target, i = t.localName === "calcite-list-item" ? t : t.parentNode, s = this.model.getSeriesIndex(i.value);
|
|
127
|
+
this.open = this.selectedSeriesIndex !== s, this.selectedSeriesIndex = this.selectedSeriesIndex !== s ? s : void 0, this.isNullCategorySelected = i.value === this._messages.nullCategory;
|
|
128
128
|
}
|
|
129
129
|
createTooltip(e) {
|
|
130
|
-
const t = e.target,
|
|
131
|
-
this.tooltip = u(l`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${
|
|
130
|
+
const t = e.target, i = (this.model.aggregationType === f.NoAggregation ? this._messages.noAggStackingDisabled : this._messages.singleStackingDisabled) ?? "";
|
|
131
|
+
this.tooltip = u(l`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
132
132
|
}
|
|
133
133
|
destroyTooltip() {
|
|
134
134
|
O(this.tooltip);
|
|
@@ -3,11 +3,10 @@ import { c } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as p, html as h } from "lit";
|
|
4
4
|
import { u as m } from "../../chunks/useT9n.js";
|
|
5
5
|
import { createRef as d, ref as g } from "lit/directives/ref.js";
|
|
6
|
-
import { LitElement as C, createEvent as s, safeClassMap as
|
|
6
|
+
import { LitElement as C, createEvent as s, safeClassMap as n } from "@arcgis/lumina";
|
|
7
7
|
import { e as v } from "../../chunks/popover-ui-utils.js";
|
|
8
8
|
import { aB as f } from "../../chunks/index.js";
|
|
9
|
-
const
|
|
10
|
-
jsAppFlyout: "js-app-flyout",
|
|
9
|
+
const l = {
|
|
11
10
|
panelChildrenContainer: "panel-children-container"
|
|
12
11
|
}, u = p`.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{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
13
12
|
class y extends C {
|
|
@@ -36,14 +35,12 @@ class y extends C {
|
|
|
36
35
|
});
|
|
37
36
|
}
|
|
38
37
|
colorChange(e) {
|
|
39
|
-
const t = e instanceof CustomEvent ? e.detail : e, [
|
|
40
|
-
this.selectedColor = [
|
|
38
|
+
const t = e instanceof CustomEvent ? e.detail : e, [o, i, a] = t, r = f * 255;
|
|
39
|
+
this.selectedColor = [o, i, a, r], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [o, i, a, r] });
|
|
41
40
|
}
|
|
42
41
|
render() {
|
|
43
42
|
const e = this.nullCategory?.symbol?.color ?? this.selectedColor, t = this.nullCategory?.text ?? this.selectedName;
|
|
44
|
-
return h`<div class=${
|
|
45
|
-
[i.jsAppFlyout]: !0
|
|
46
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${o(i.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${o(i.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
43
|
+
return h`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${n(l.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${n(l.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
c("arcgis-charts-config-bar-chart-series-popover", y);
|
|
@@ -3,9 +3,9 @@ import { c as k } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed as p } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as v } from "lit/directives/repeat.js";
|
|
5
5
|
import { substitute as $ } from "@arcgis/core/intl.js";
|
|
6
|
-
import { a
|
|
7
|
-
import { b as u, f as y, e as h, a as
|
|
8
|
-
import { u as
|
|
6
|
+
import { a } from "../../chunks/interfaces.js";
|
|
7
|
+
import { b as u, f as y, e as h, a as L } from "../../chunks/chart-ui-utils2.js";
|
|
8
|
+
import { u as F } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as P, html as n } from "lit";
|
|
10
10
|
import { createRef as f, ref as m } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as I, createEvent as g, renderElement as x, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
@@ -14,8 +14,7 @@ import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
|
14
14
|
import { bh as b, bk as E, a2 as w } from "../../chunks/index2.js";
|
|
15
15
|
import { d as B } from "../../chunks/index3.js";
|
|
16
16
|
import { R as C } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
-
const
|
|
18
|
-
jsAppFlyout: "js-app-flyout",
|
|
17
|
+
const l = {
|
|
19
18
|
name: "bar-chart-data-popover",
|
|
20
19
|
numericFieldPickList: "bar-chart-data-numeric-fields-pick-list",
|
|
21
20
|
header: "header",
|
|
@@ -28,7 +27,7 @@ const o = {
|
|
|
28
27
|
}, N = P`.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}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
29
28
|
class K extends I {
|
|
30
29
|
constructor() {
|
|
31
|
-
super(...arguments), this._messages =
|
|
30
|
+
super(...arguments), this._messages = F(), this.picklist = f(), this.placement = "leading", this.popoverElement = f(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = g(), this.arcgisChartsConfigPopoverClose = g();
|
|
32
31
|
}
|
|
33
32
|
static {
|
|
34
33
|
this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
|
|
@@ -51,7 +50,7 @@ class K extends I {
|
|
|
51
50
|
this.pickListHasChanged = T(e, t);
|
|
52
51
|
}
|
|
53
52
|
closePopover() {
|
|
54
|
-
if (this.contentKind ===
|
|
53
|
+
if (this.contentKind === a.numericFields && this.pickListHasChanged) {
|
|
55
54
|
const e = {
|
|
56
55
|
pickListElement: this.picklist.value,
|
|
57
56
|
eventEmitter: this.arcgisChartsConfigBoxPlotDataPopoverChange,
|
|
@@ -75,27 +74,27 @@ class K extends I {
|
|
|
75
74
|
buildPickListItems(e) {
|
|
76
75
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
77
76
|
switch (e) {
|
|
78
|
-
case
|
|
77
|
+
case a.numericFields: {
|
|
79
78
|
for (let s = 0; s < t; s += 1) {
|
|
80
|
-
const
|
|
81
|
-
E(
|
|
79
|
+
const o = this.layerFieldsInfo[s];
|
|
80
|
+
E(o) && i.push(this.buildPickListItem(o));
|
|
82
81
|
}
|
|
83
82
|
break;
|
|
84
83
|
}
|
|
85
|
-
case
|
|
84
|
+
case a.category: {
|
|
86
85
|
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
87
86
|
i.push(s);
|
|
88
|
-
for (let
|
|
89
|
-
const c = this.layerFieldsInfo[
|
|
87
|
+
for (let o = 0; o < t; o += 1) {
|
|
88
|
+
const c = this.layerFieldsInfo[o];
|
|
90
89
|
(b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
|
|
91
90
|
}
|
|
92
91
|
break;
|
|
93
92
|
}
|
|
94
|
-
case
|
|
93
|
+
case a.splitByField: {
|
|
95
94
|
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
96
95
|
i.push(s);
|
|
97
|
-
for (let
|
|
98
|
-
const c = this.layerFieldsInfo[
|
|
96
|
+
for (let o = 0; o < t; o += 1) {
|
|
97
|
+
const c = this.layerFieldsInfo[o];
|
|
99
98
|
(b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
|
|
100
99
|
}
|
|
101
100
|
break;
|
|
@@ -121,18 +120,18 @@ class K extends I {
|
|
|
121
120
|
break;
|
|
122
121
|
}
|
|
123
122
|
case r.meanAsc:
|
|
124
|
-
t = "sort-descending", s =
|
|
123
|
+
t = "sort-descending", s = l.sortMean;
|
|
125
124
|
break;
|
|
126
125
|
case r.meanDesc: {
|
|
127
|
-
t = "sort-ascending", s =
|
|
126
|
+
t = "sort-ascending", s = l.sortMean;
|
|
128
127
|
break;
|
|
129
128
|
}
|
|
130
129
|
case r.medianAsc: {
|
|
131
|
-
t = "sort-descending", s =
|
|
130
|
+
t = "sort-descending", s = l.sortMedian;
|
|
132
131
|
break;
|
|
133
132
|
}
|
|
134
133
|
case r.medianDesc: {
|
|
135
|
-
t = "sort-ascending", s =
|
|
134
|
+
t = "sort-ascending", s = l.sortMedian;
|
|
136
135
|
break;
|
|
137
136
|
}
|
|
138
137
|
case r.customSort: {
|
|
@@ -148,44 +147,44 @@ class K extends I {
|
|
|
148
147
|
}
|
|
149
148
|
createTooltip(e) {
|
|
150
149
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
151
|
-
const t = e.target, i = w(t),
|
|
152
|
-
totalLimit:
|
|
150
|
+
const t = e.target, i = w(t), o = new Intl.NumberFormat(i).format(u.customSortLimit), c = $(this._messages.customSortLimit ?? "", {
|
|
151
|
+
totalLimit: o
|
|
153
152
|
});
|
|
154
153
|
this.tooltip = x(n`<calcite-tooltip style=${D({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
155
154
|
}
|
|
156
155
|
}
|
|
157
156
|
destroyTooltip() {
|
|
158
|
-
|
|
157
|
+
L(this.tooltip);
|
|
159
158
|
}
|
|
160
159
|
renderCategory() {
|
|
161
|
-
const e = this.buildPickListItems(
|
|
162
|
-
return n`<calcite-list label class=${d(
|
|
160
|
+
const e = this.buildPickListItems(a.category);
|
|
161
|
+
return n`<calcite-list label class=${d(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
163
162
|
}
|
|
164
163
|
renderNumericFields() {
|
|
165
|
-
const e = this.buildPickListItems(
|
|
166
|
-
return n`<calcite-list label class=${d(
|
|
164
|
+
const e = this.buildPickListItems(a.numericFields);
|
|
165
|
+
return n`<calcite-list label class=${d(l.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
167
166
|
}
|
|
168
167
|
renderSplitByField() {
|
|
169
|
-
const e = this.buildPickListItems(
|
|
170
|
-
return n`<calcite-list label class=${d(
|
|
168
|
+
const e = this.buildPickListItems(a.splitByField);
|
|
169
|
+
return n`<calcite-list label class=${d(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
171
170
|
}
|
|
172
171
|
renderSortOrder() {
|
|
173
172
|
const e = this.buildSortOrder();
|
|
174
|
-
return n`<calcite-list label class=${d(
|
|
173
|
+
return n`<calcite-list label class=${d(l.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
175
174
|
}
|
|
176
175
|
renderPopoverInfo() {
|
|
177
176
|
let e;
|
|
178
177
|
switch (this.contentKind) {
|
|
179
|
-
case
|
|
178
|
+
case a.category:
|
|
180
179
|
e = this.renderCategory();
|
|
181
180
|
break;
|
|
182
|
-
case
|
|
181
|
+
case a.numericFields:
|
|
183
182
|
e = this.renderNumericFields();
|
|
184
183
|
break;
|
|
185
|
-
case
|
|
184
|
+
case a.splitByField:
|
|
186
185
|
e = this.renderSplitByField();
|
|
187
186
|
break;
|
|
188
|
-
case
|
|
187
|
+
case a.sortOrder:
|
|
189
188
|
e = this.renderSortOrder();
|
|
190
189
|
break;
|
|
191
190
|
}
|
|
@@ -193,7 +192,7 @@ class K extends I {
|
|
|
193
192
|
}
|
|
194
193
|
render() {
|
|
195
194
|
let e;
|
|
196
|
-
return this.contentKind ===
|
|
195
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${d(l.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div><calcite-popover class=${d(l.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel class=${d(l.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${d(l.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
198
|
k("arcgis-charts-config-box-plot-popover", K);
|
|
@@ -14,7 +14,7 @@ const l = {
|
|
|
14
14
|
sectionLabel: "section-label",
|
|
15
15
|
list: "list",
|
|
16
16
|
infoIcon: "info-icon"
|
|
17
|
-
}, T = P
|
|
17
|
+
}, T = P`.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)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right: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)}.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)}.info-icon{margin:auto 1rem;pointer-events:auto}`;
|
|
18
18
|
class N extends O {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments), this._messages = B(), this.resetSeriesOriginal = () => {
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as g } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as C, html as
|
|
3
|
+
import { css as C, html as l } from "lit";
|
|
4
4
|
import { isEqual as f } from "lodash-es";
|
|
5
5
|
import { u as v } from "../../chunks/useT9n.js";
|
|
6
6
|
import { createRef as y, ref as S } from "lit/directives/ref.js";
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { e as
|
|
9
|
-
import { aB as
|
|
7
|
+
import { LitElement as b, createEvent as a, safeClassMap as p } from "@arcgis/lumina";
|
|
8
|
+
import { e as u } from "../../chunks/popover-ui-utils.js";
|
|
9
|
+
import { aB as m } from "../../chunks/index.js";
|
|
10
10
|
import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
const
|
|
12
|
-
jsAppFlyout: "js-app-flyout",
|
|
11
|
+
const d = {
|
|
13
12
|
panelChildrenContainer: "panel-children-container"
|
|
14
13
|
}, L = C`.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{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
15
|
-
class P extends
|
|
14
|
+
class P extends b {
|
|
16
15
|
constructor() {
|
|
17
|
-
super(...arguments), this._messages = v(), this.popoverElement = y(), this.isLineSymbol = !1, this.open = !1, this.labelCanBeConfigured = !1, this.arcgisChartsConfigPopoverClose =
|
|
16
|
+
super(...arguments), this._messages = v(), this.popoverElement = y(), this.isLineSymbol = !1, this.open = !1, this.labelCanBeConfigured = !1, this.arcgisChartsConfigPopoverClose = a(), this.arcgisChartsConfigSeriesPopoverColorChange = a(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = a(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = a(), this.arcgisChartsConfigSeriesPopoverNameChange = a();
|
|
18
17
|
}
|
|
19
18
|
static {
|
|
20
19
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedLineWidth: 9, selectedSeriesIndex: 9, isLineSymbol: 5, placement: 1, open: 5, labelCanBeConfigured: 5 };
|
|
@@ -26,7 +25,7 @@ class P extends u {
|
|
|
26
25
|
await this.popoverElement.value?.reposition();
|
|
27
26
|
}
|
|
28
27
|
updated() {
|
|
29
|
-
|
|
28
|
+
u(this.popoverElement.value, this.open);
|
|
30
29
|
}
|
|
31
30
|
seriesNameChange(e) {
|
|
32
31
|
const i = e.target.value;
|
|
@@ -36,27 +35,25 @@ class P extends u {
|
|
|
36
35
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
37
36
|
}
|
|
38
37
|
colorChange(e) {
|
|
39
|
-
const i = e instanceof CustomEvent ? e.detail : e, [o, t, s] = i,
|
|
40
|
-
this.selectedColor = [o, t, s,
|
|
38
|
+
const i = e instanceof CustomEvent ? e.detail : e, [o, t, s] = i, r = m * 255;
|
|
39
|
+
this.selectedColor = [o, t, s, r], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [o, t, s, r] });
|
|
41
40
|
}
|
|
42
41
|
lineSymbolChange(e) {
|
|
43
42
|
const { lineStyle: i } = e.target, { color: o, style: t, width: s } = i;
|
|
44
43
|
if (o !== void 0 && !f(o, this.selectedColor)) {
|
|
45
|
-
const [
|
|
46
|
-
this.selectedColor = [
|
|
44
|
+
const [r, n, c] = o, h = m * 255;
|
|
45
|
+
this.selectedColor = [r, n, c, h], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [r, n, c, h] });
|
|
47
46
|
}
|
|
48
47
|
t !== void 0 && t !== this.selectedLineStyle && (this.selectedLineStyle = t, this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({ style: t })), s !== void 0 && s !== this.selectedLineWidth && (this.selectedLineWidth = s, this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({ width: s }));
|
|
49
48
|
}
|
|
50
49
|
render() {
|
|
51
50
|
const e = this.selectedColor;
|
|
52
|
-
return
|
|
53
|
-
[c.jsAppFlyout]: !0
|
|
54
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${S(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? a`<div class=${n(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${n(this.isLineSymbol ? "" : c.panelChildrenContainer)}>${this.isLineSymbol ? a`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
|
|
51
|
+
return l`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${S(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? l`<div class=${p(d.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${p(this.isLineSymbol ? "" : d.panelChildrenContainer)}>${this.isLineSymbol ? l`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
|
|
55
52
|
type: $.SLS,
|
|
56
53
|
style: this.selectedLineStyle,
|
|
57
54
|
width: this.selectedLineWidth,
|
|
58
55
|
color: e
|
|
59
|
-
}} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>` :
|
|
56
|
+
}} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>` : l`<arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors>`}</div></calcite-panel></calcite-popover></div>`;
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
59
|
g("arcgis-charts-config-box-plot-series-popover", P);
|