@arcgis/charts-components 5.1.0-next.7 → 5.1.0-next.9
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/README.md +1 -1
- package/dist/cdn/{TSQ75643.js → 24ZMVNPY.js} +1 -1
- package/dist/cdn/2E6UOES5.js +2 -0
- package/dist/cdn/{E2OGP7R4.js → 37TFH77K.js} +1 -1
- package/dist/cdn/{KGYOF4HQ.js → 3J7OE25D.js} +1 -1
- package/dist/cdn/{T4P6X62H.js → 3KPOZY7U.js} +1 -1
- package/dist/cdn/{RHSZB5ZH.js → 3MBJIZXQ.js} +1 -1
- package/dist/cdn/{ZWABUONN.js → 3MJNDW3O.js} +1 -1
- package/dist/cdn/{SBJDJQ5W.js → 3V24TSG3.js} +1 -1
- package/dist/cdn/472LMJV5.js +2 -0
- package/dist/cdn/{25UJ6G2G.js → 4KLIA33J.js} +1 -1
- package/dist/cdn/{SJ74QWGI.js → 4RTN2F3A.js} +1 -1
- package/dist/cdn/{MBFKIRCK.js → 5IBIN5PX.js} +1 -1
- package/dist/cdn/5UNMJRBV.js +2 -0
- package/dist/cdn/{X2S3V4HD.js → 6PFSSXHO.js} +1 -1
- package/dist/cdn/7EMMEDLK.js +2 -0
- package/dist/cdn/{ZY42XS5N.js → APM2UUMS.js} +1 -1
- package/dist/cdn/{BRRSD3O4.js → BIAHCUQC.js} +1 -1
- package/dist/cdn/{BVFVLX3U.js → CKEEXG7J.js} +7 -7
- package/dist/cdn/CMRNFSZC.js +4 -0
- package/dist/cdn/{F3M5Q4I6.js → CONUNOKN.js} +1 -1
- package/dist/cdn/{UWJ3DRYN.js → CPWMQOWE.js} +1 -1
- package/dist/cdn/CYO4M5FA.js +2 -0
- package/dist/cdn/{AYMM5RTN.js → DCSM57NL.js} +1 -1
- package/dist/cdn/{3KP75DDX.js → DU6SCSWY.js} +1 -1
- package/dist/cdn/{6ZZVPJTU.js → DUCASUB5.js} +1 -1
- package/dist/cdn/{D2NLBPAB.js → E2DPW452.js} +1 -1
- package/dist/cdn/{FG2SKN2Q.js → E7WKMXBN.js} +1 -1
- package/dist/cdn/{LKK7N2C5.js → EO756WDD.js} +1 -1
- package/dist/cdn/{AHJME35X.js → FFYDXNXA.js} +1 -1
- package/dist/cdn/{FHI4UU5O.js → FJSIGPKS.js} +1 -1
- package/dist/cdn/FM4O2SFI.js +56 -0
- package/dist/cdn/{5PUNMMSL.js → FPZLQV2G.js} +1 -1
- package/dist/cdn/{ESIO74ER.js → G6QUYWLP.js} +1 -1
- package/dist/cdn/{BYIBXD4Q.js → G76ZI2ZC.js} +1 -1
- package/dist/cdn/{XG3LUWT6.js → GD3XF3YV.js} +1 -1
- package/dist/cdn/GLSDBV72.js +2 -0
- package/dist/cdn/{MXLNSW6C.js → GYWWWJWB.js} +1 -1
- package/dist/cdn/{YC2QAZQ5.js → IDCUWB47.js} +1 -1
- package/dist/cdn/{NXDHPVLZ.js → IPU3GNA6.js} +1 -1
- package/dist/cdn/IRNA25SY.js +2 -0
- package/dist/cdn/{MOU5IBB7.js → ITDXKVUB.js} +1 -1
- package/dist/cdn/{QWZNK3OV.js → JA7R63SP.js} +1 -1
- package/dist/cdn/{FJUBR4KW.js → KFQTTMZU.js} +1 -1
- package/dist/cdn/{76YPTUIV.js → KITWKIQT.js} +1 -1
- package/dist/cdn/L32OCJD2.js +2 -0
- package/dist/cdn/{FSNIJZ4N.js → LGBK4T3V.js} +1 -1
- package/dist/cdn/{S2T2KPSE.js → LN2MYFKL.js} +1 -1
- package/dist/cdn/{BHF54XO4.js → LQ3P2GFC.js} +1 -1
- package/dist/cdn/LRRJCSJK.js +2 -0
- package/dist/cdn/{NKSFFZ43.js → M4QXPKAQ.js} +1 -1
- package/dist/cdn/MMPVU2IV.js +2 -0
- package/dist/cdn/{3IBNI7DB.js → MTYGJ44X.js} +1 -1
- package/dist/cdn/{JLFJWDPQ.js → MZD5VJSC.js} +1 -1
- package/dist/cdn/{3V3NUR6Q.js → N2ZRK46C.js} +1 -1
- package/dist/cdn/{64NE6NLA.js → N6YCO6NE.js} +1 -1
- package/dist/cdn/{VL4N7T3G.js → O4MXHOEX.js} +1 -1
- package/dist/cdn/{L4E7PSXN.js → OBSMBH62.js} +1 -1
- package/dist/cdn/{2JUKPBNE.js → OZ7IZCS5.js} +1 -1
- package/dist/cdn/{LKI3UTOI.js → PCHLTJ76.js} +1 -1
- package/dist/cdn/{STQIUWAA.js → PCYK43OC.js} +1 -1
- package/dist/cdn/{IU5GCIOV.js → R4MVTPEY.js} +1 -1
- package/dist/cdn/{W3E73SQV.js → R7UV3FXZ.js} +1 -1
- package/dist/cdn/{ZD2OFLRT.js → RDF2VETY.js} +1 -1
- package/dist/cdn/RZEX2MXS.js +2 -0
- package/dist/cdn/{OZLXNKH5.js → S4NHHCVM.js} +1 -1
- package/dist/cdn/{BF3HDW6F.js → SIICUGBH.js} +1 -1
- package/dist/cdn/{AND6TXZC.js → SLC3TO6I.js} +1 -1
- package/dist/cdn/{U3YXEG4D.js → SPJB74EZ.js} +1 -1
- package/dist/cdn/{VK546WZD.js → SQ2LPEU6.js} +1 -1
- package/dist/cdn/{ZPBTQ3VC.js → TADL5VDR.js} +1 -1
- package/dist/cdn/U57WLEFE.js +2 -0
- package/dist/cdn/{LR3V4CJY.js → U7RUXGWS.js} +1 -1
- package/dist/cdn/{SD2G2LCW.js → UZXMOHSJ.js} +1 -1
- package/dist/cdn/{5RX4R45J.js → VKTCJE62.js} +1 -1
- package/dist/cdn/{6LS2WSZ5.js → W4GPDO26.js} +1 -1
- package/dist/cdn/{JF4TYCG5.js → W62POWRZ.js} +1 -1
- package/dist/cdn/{T2ZLECUS.js → WDVEXO33.js} +1 -1
- package/dist/cdn/{IUWWS4XW.js → WL34DGXY.js} +1 -1
- package/dist/cdn/{RJN6DNHI.js → WVNSR4SR.js} +1 -1
- package/dist/cdn/{LY46M2NC.js → XKYZJAX2.js} +1 -1
- package/dist/cdn/{HYEINZ2W.js → YAIXJAXB.js} +1 -1
- package/dist/cdn/{RUB23UKZ.js → YPJL3ONL.js} +1 -1
- package/dist/cdn/{LIWSW6ON.js → YXTRZZW6.js} +1 -1
- package/dist/cdn/YYIKPG5C.js +2 -0
- package/dist/cdn/{DFBK7RTI.js → Z3THOKP3.js} +1 -1
- package/dist/cdn/{BPBBMXA3.js → ZDOG5ZE7.js} +1 -1
- package/dist/cdn/{MY4FFGT5.js → ZTZHFZ2Q.js} +1 -1
- package/dist/cdn/{4XV6HEXY.js → ZUGZLTC4.js} +1 -1
- package/dist/cdn/{36Z3PUIB.js → ZX2U6NZL.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/bar-chart-series.js +5 -3
- package/dist/chunks/index.js +16 -16
- package/dist/chunks/index6.js +18 -0
- package/dist/components/arcgis-chart/customElement.js +2011 -2044
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +21 -23
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -16
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +16 -18
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +24 -26
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +21 -23
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +23 -25
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +8 -10
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +11 -14
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +19 -21
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +11 -14
- package/dist/components/arcgis-charts-info-modal/customElement.js +29 -14
- 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 +2 -2
- package/dist/loader.js +3 -3
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +2 -2
- package/dist/spec/rest-js-types.d.ts +15 -0
- package/dist/spec/web-chart.d.ts +4 -4
- package/dist/utils/chart-config/utils/index.d.ts +3 -0
- package/dist/utils/layer/query-parser/index.d.ts +4 -1
- package/dist/utils/localization/interfaces.d.ts +1 -0
- package/dist/utils/misc/index.d.ts +13 -7
- package/dist/utils/type-guards/index.d.ts +15 -8
- package/package.json +3 -3
- package/dist/cdn/6PIJSBNU.js +0 -2
- package/dist/cdn/7OXO43LP.js +0 -58
- package/dist/cdn/FRATWU4Z.js +0 -2
- package/dist/cdn/IBQT5TXA.js +0 -2
- package/dist/cdn/J3OY6YTK.js +0 -2
- package/dist/cdn/JQVTSKVB.js +0 -2
- package/dist/cdn/JWTZ3Q2T.js +0 -2
- package/dist/cdn/NLXKYZUI.js +0 -2
- package/dist/cdn/OX7HOZ72.js +0 -2
- package/dist/cdn/PJPMROB7.js +0 -2
- package/dist/cdn/RWYS4UGQ.js +0 -2
- package/dist/cdn/RX4COZVH.js +0 -2
- package/dist/cdn/Z6343LZG.js +0 -2
- package/dist/cdn/ZYEUKPGT.js +0 -2
|
@@ -3,20 +3,20 @@ import { c as S } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { repeat as b } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
5
5
|
import "@arcgis/toolkit/type";
|
|
6
|
-
import { n as g, a as
|
|
7
|
-
import { R as
|
|
8
|
-
import { LitElement as
|
|
6
|
+
import { n as g, a as F, i as p } from "../../chunks/series-types.js";
|
|
7
|
+
import { R as v } from "../../chunks/rest-js-object-literals.js";
|
|
8
|
+
import { LitElement as T, createEvent as y, renderElement as A, safeStyleMap as P, safeClassMap as r } from "@arcgis/lumina";
|
|
9
9
|
import { substitute as D } from "@arcgis/core/intl.js";
|
|
10
10
|
import { css as x, html as a } from "lit";
|
|
11
11
|
import { createRef as u, ref as d } from "lit/directives/ref.js";
|
|
12
|
-
import { isEqual as
|
|
13
|
-
import { u as
|
|
12
|
+
import { isEqual as $ } from "lodash-es";
|
|
13
|
+
import { u as L } from "../../chunks/useT9n.js";
|
|
14
14
|
import { B as n } from "../../chunks/interfaces.js";
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
16
|
import "@arcgis/toolkit/intl";
|
|
17
17
|
import "luxon";
|
|
18
18
|
import "d3-array";
|
|
19
|
-
import { br as E, bs as N, cN as z, cY as w, bN as
|
|
19
|
+
import { br as E, bs as N, cN as z, cY as w, bN as k, bM as B, bL as K, d3 as _ } from "../../chunks/index.js";
|
|
20
20
|
import "@arcgis/core/Graphic.js";
|
|
21
21
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
22
22
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -32,7 +32,7 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
32
32
|
import "@arcgis/core/time/TimeExtent.js";
|
|
33
33
|
import "@arcgis/core/core/promiseUtils.js";
|
|
34
34
|
import { e as H, p as M } from "../../chunks/popover-ui-utils.js";
|
|
35
|
-
import { b as
|
|
35
|
+
import { b as C, a as I, c as h, d as j, e as O, s as U } from "../../chunks/chart-ui-utils2.js";
|
|
36
36
|
const W = x`.hide{display:none}.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}`, o = {
|
|
37
37
|
jsAppFlyout: "js-app-flyout",
|
|
38
38
|
name: "bar-chart-data-popover",
|
|
@@ -46,9 +46,9 @@ const W = x`.hide{display:none}.am5-html-container{z-index:101!important}.am5-la
|
|
|
46
46
|
applyButton: "apply-button",
|
|
47
47
|
panel: "panel"
|
|
48
48
|
};
|
|
49
|
-
class R extends
|
|
49
|
+
class R extends T {
|
|
50
50
|
constructor() {
|
|
51
|
-
super(...arguments), this._messages =
|
|
51
|
+
super(...arguments), this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.picklist = u(), this.intervalSizeElement = u(), this.intervalTypeElement = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.isNoAggregationDisabled = !1, this.arcgisChartsConfigBarChartDataPopoverChange = y(), this.arcgisChartsConfigPopoverClose = y();
|
|
52
52
|
}
|
|
53
53
|
static {
|
|
54
54
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, isCustomSortDisabled: 5, isNoAggregationDisabled: 5 };
|
|
@@ -61,35 +61,33 @@ class R extends F {
|
|
|
61
61
|
}
|
|
62
62
|
willUpdate(e) {
|
|
63
63
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
64
|
-
const t =
|
|
65
|
-
|
|
64
|
+
const t = C.map((s) => E(s, this.commonStrings));
|
|
65
|
+
$(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
66
66
|
const l = [g.Start, g.End].map((s) => N(s, this.commonStrings));
|
|
67
|
-
|
|
67
|
+
$(this.timeAggregationLabels, l) || (this.timeAggregationLabels = l);
|
|
68
68
|
}
|
|
69
69
|
updated() {
|
|
70
70
|
setTimeout(() => {
|
|
71
71
|
this.picklist.value?.setFocus();
|
|
72
|
-
},
|
|
73
|
-
this.popoverElement.value?.reposition();
|
|
74
|
-
}, C.PopoverTimer);
|
|
72
|
+
}, I.PopoverTimer), H(this.popoverElement.value, this.open);
|
|
75
73
|
}
|
|
76
74
|
selectedContentChange(e, t) {
|
|
77
75
|
this.pickListHasChanged = M(e, t);
|
|
78
76
|
}
|
|
79
77
|
buildAggregationListItems() {
|
|
80
|
-
const e = this.isNoAggregationDisabled ?
|
|
78
|
+
const e = this.isNoAggregationDisabled ? C.filter((t) => t !== F.NoAggregation) : C;
|
|
81
79
|
return b(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.aggregationLabels[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
|
|
82
80
|
}
|
|
83
81
|
createTooltip(e) {
|
|
84
82
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
85
|
-
const t = e.target, i = z(t), s = new Intl.NumberFormat(i).format(
|
|
83
|
+
const t = e.target, i = z(t), s = new Intl.NumberFormat(i).format(I.customSortLimit), c = D(this._messages.customSortLimit ?? "", {
|
|
86
84
|
totalLimit: s
|
|
87
85
|
});
|
|
88
|
-
this.tooltip =
|
|
86
|
+
this.tooltip = A(a`<calcite-tooltip style=${P({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
89
87
|
}
|
|
90
88
|
}
|
|
91
89
|
destroyTooltip() {
|
|
92
|
-
|
|
90
|
+
j(this.tooltip);
|
|
93
91
|
}
|
|
94
92
|
buildSortOrder() {
|
|
95
93
|
const e = Object.keys(m);
|
|
@@ -139,7 +137,7 @@ class R extends F {
|
|
|
139
137
|
i.push(l);
|
|
140
138
|
for (let s = 0; s < t; s += 1) {
|
|
141
139
|
const c = this.layerFieldsInfo?.[s];
|
|
142
|
-
c && (c.type ===
|
|
140
|
+
c && (c.type === v.String || k(c) || B(c)) && i.push(this.buildPickListItem(c));
|
|
143
141
|
}
|
|
144
142
|
break;
|
|
145
143
|
}
|
|
@@ -148,7 +146,7 @@ class R extends F {
|
|
|
148
146
|
i.push(l);
|
|
149
147
|
for (let s = 0; s < t; s += 1) {
|
|
150
148
|
const c = this.layerFieldsInfo?.[s];
|
|
151
|
-
c && (
|
|
149
|
+
c && (k(c) || c.type === v.String) && i.push(this.buildPickListItem(c));
|
|
152
150
|
}
|
|
153
151
|
break;
|
|
154
152
|
}
|
|
@@ -162,7 +160,7 @@ class R extends F {
|
|
|
162
160
|
eventEmitter: this.arcgisChartsConfigBarChartDataPopoverChange,
|
|
163
161
|
contentKind: this.contentKind
|
|
164
162
|
};
|
|
165
|
-
|
|
163
|
+
O(e);
|
|
166
164
|
}
|
|
167
165
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
168
166
|
}
|
|
@@ -224,7 +222,7 @@ class R extends F {
|
|
|
224
222
|
p.Month,
|
|
225
223
|
p.Year
|
|
226
224
|
];
|
|
227
|
-
return a`<div><div class=${r(o.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${
|
|
225
|
+
return a`<div><div class=${r(o.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${U(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=${_(i, this._messages)} .selected=${e?.unit === i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${r(o.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
228
226
|
}
|
|
229
227
|
renderPopoverInfo() {
|
|
230
228
|
let e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c
|
|
3
|
-
import { css as
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as p, html as m } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "luxon";
|
|
@@ -26,31 +26,28 @@ import "@arcgis/core/time/TimeExtent.js";
|
|
|
26
26
|
import "@arcgis/core/core/promiseUtils.js";
|
|
27
27
|
import "@arcgis/toolkit/dom";
|
|
28
28
|
import { e as d } from "../../chunks/popover-ui-utils.js";
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { LitElement as u, createEvent as o, safeClassMap as i } from "@arcgis/lumina";
|
|
29
|
+
import { u as g } from "../../chunks/useT9n.js";
|
|
30
|
+
import { createRef as C, ref as v } from "lit/directives/ref.js";
|
|
31
|
+
import { LitElement as f, createEvent as o, safeClassMap as i } from "@arcgis/lumina";
|
|
33
32
|
const s = {
|
|
34
33
|
jsAppFlyout: "js-app-flyout",
|
|
35
34
|
panelChildrenContainer: "panel-children-container"
|
|
36
|
-
},
|
|
37
|
-
class
|
|
35
|
+
}, u = p`.hide{display:none}.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}`;
|
|
36
|
+
class y extends f {
|
|
38
37
|
constructor() {
|
|
39
|
-
super(...arguments), this._messages =
|
|
38
|
+
super(...arguments), this._messages = g(), this.popoverElement = C(), this.arcgisChartsConfigPopoverClose = o(), this.arcgisChartsConfigSeriesPopoverColorChange = o(), this.arcgisChartsConfigSeriesPopoverNameChange = o();
|
|
40
39
|
}
|
|
41
40
|
static {
|
|
42
41
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedSeriesIndex: 9, placement: 1, open: 5, nullCategory: 0 };
|
|
43
42
|
}
|
|
44
43
|
static {
|
|
45
|
-
this.styles =
|
|
44
|
+
this.styles = u;
|
|
46
45
|
}
|
|
47
46
|
async reposition() {
|
|
48
47
|
await this.popoverElement.value?.reposition();
|
|
49
48
|
}
|
|
50
49
|
updated() {
|
|
51
|
-
d(this.popoverElement.value, this.open)
|
|
52
|
-
this.popoverElement.value?.reposition();
|
|
53
|
-
}, g.PopoverTimer);
|
|
50
|
+
d(this.popoverElement.value, this.open);
|
|
54
51
|
}
|
|
55
52
|
seriesNameChange(e) {
|
|
56
53
|
const t = e.target.value;
|
|
@@ -69,10 +66,10 @@ class x extends u {
|
|
|
69
66
|
const e = this.nullCategory?.symbol?.color ?? this.selectedColor, t = this.nullCategory?.text ?? this.selectedName;
|
|
70
67
|
return m`<div class=${i({
|
|
71
68
|
[s.jsAppFlyout]: !0
|
|
72
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${
|
|
69
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${v(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${i(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
|
-
|
|
72
|
+
c("arcgis-charts-config-bar-chart-series-popover", y);
|
|
76
73
|
export {
|
|
77
|
-
|
|
74
|
+
y as ArcgisChartsConfigBarChartSeriesPopover
|
|
78
75
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
-
import { keyed as
|
|
3
|
+
import { keyed as p } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as v } from "lit/directives/repeat.js";
|
|
5
5
|
import { B as r } from "../../chunks/common.js";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
7
|
import "../../chunks/series-types.js";
|
|
8
|
-
import { R as
|
|
8
|
+
import { R as u } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
import "@arcgis/toolkit/intl";
|
|
10
10
|
import "lodash-es";
|
|
11
11
|
import "luxon";
|
|
12
12
|
import "d3-array";
|
|
13
|
-
import { cY as $, bN as
|
|
13
|
+
import { cY as $, bN as f, bL as y, cN as L } from "../../chunks/index.js";
|
|
14
14
|
import "@arcgis/core/Graphic.js";
|
|
15
15
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
16
16
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -28,10 +28,10 @@ import "@arcgis/core/time/TimeExtent.js";
|
|
|
28
28
|
import "@arcgis/core/core/promiseUtils.js";
|
|
29
29
|
import { e as P, p as I } from "../../chunks/popover-ui-utils.js";
|
|
30
30
|
import { a as l } from "../../chunks/interfaces.js";
|
|
31
|
-
import { a as
|
|
31
|
+
import { a as g, e as x, c as h, d as D } from "../../chunks/chart-ui-utils2.js";
|
|
32
32
|
import { u as S } from "../../chunks/useT9n.js";
|
|
33
33
|
import { css as T, html as n } from "lit";
|
|
34
|
-
import { createRef as b, ref as
|
|
34
|
+
import { createRef as b, ref as d } from "lit/directives/ref.js";
|
|
35
35
|
import { LitElement as E, createEvent as C, renderElement as w, safeStyleMap as B, safeClassMap as m } from "@arcgis/lumina";
|
|
36
36
|
const o = {
|
|
37
37
|
jsAppFlyout: "js-app-flyout",
|
|
@@ -64,9 +64,7 @@ class K extends E {
|
|
|
64
64
|
updated() {
|
|
65
65
|
setTimeout(() => {
|
|
66
66
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
67
|
-
},
|
|
68
|
-
this.popoverElement.value?.reposition();
|
|
69
|
-
}, h.PopoverTimer);
|
|
67
|
+
}, g.PopoverTimer), P(this.popoverElement.value, this.open);
|
|
70
68
|
}
|
|
71
69
|
selectedContentChange(e, t) {
|
|
72
70
|
this.pickListHasChanged = I(e, t);
|
|
@@ -91,7 +89,7 @@ class K extends E {
|
|
|
91
89
|
}), this.open = !1;
|
|
92
90
|
}
|
|
93
91
|
buildPickListItem(e) {
|
|
94
|
-
return
|
|
92
|
+
return p(e.name, n`<calcite-list-item .label=${$(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
95
93
|
}
|
|
96
94
|
buildPickListItems(e) {
|
|
97
95
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
@@ -104,20 +102,20 @@ class K extends E {
|
|
|
104
102
|
break;
|
|
105
103
|
}
|
|
106
104
|
case l.category: {
|
|
107
|
-
const s =
|
|
105
|
+
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
108
106
|
i.push(s);
|
|
109
107
|
for (let a = 0; a < t; a += 1) {
|
|
110
108
|
const c = this.layerFieldsInfo[a];
|
|
111
|
-
(
|
|
109
|
+
(f(c) || c.type === u.String) && i.push(this.buildPickListItem(c));
|
|
112
110
|
}
|
|
113
111
|
break;
|
|
114
112
|
}
|
|
115
113
|
case l.splitByField: {
|
|
116
|
-
const s =
|
|
114
|
+
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
117
115
|
i.push(s);
|
|
118
116
|
for (let a = 0; a < t; a += 1) {
|
|
119
117
|
const c = this.layerFieldsInfo[a];
|
|
120
|
-
(
|
|
118
|
+
(f(c) || c.type === u.String) && i.push(this.buildPickListItem(c));
|
|
121
119
|
}
|
|
122
120
|
break;
|
|
123
121
|
}
|
|
@@ -169,7 +167,7 @@ class K extends E {
|
|
|
169
167
|
}
|
|
170
168
|
createTooltip(e) {
|
|
171
169
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
172
|
-
const t = e.target, i = L(t), a = new Intl.NumberFormat(i).format(
|
|
170
|
+
const t = e.target, i = L(t), a = new Intl.NumberFormat(i).format(g.customSortLimit), c = F(this._messages.customSortLimit ?? "", {
|
|
173
171
|
totalLimit: a
|
|
174
172
|
});
|
|
175
173
|
this.tooltip = w(n`<calcite-tooltip style=${B({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
@@ -180,15 +178,15 @@ class K extends E {
|
|
|
180
178
|
}
|
|
181
179
|
renderCategory() {
|
|
182
180
|
const e = this.buildPickListItems(l.category);
|
|
183
|
-
return n`<calcite-list label class=${m(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${
|
|
181
|
+
return n`<calcite-list label class=${m(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
184
182
|
}
|
|
185
183
|
renderNumericFields() {
|
|
186
184
|
const e = this.buildPickListItems(l.numericFields);
|
|
187
|
-
return n`<calcite-list label class=${m(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${
|
|
185
|
+
return n`<calcite-list label class=${m(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
188
186
|
}
|
|
189
187
|
renderSplitByField() {
|
|
190
188
|
const e = this.buildPickListItems(l.splitByField);
|
|
191
|
-
return n`<calcite-list label class=${m(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${
|
|
189
|
+
return n`<calcite-list label class=${m(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
192
190
|
}
|
|
193
191
|
renderSortOrder() {
|
|
194
192
|
const e = this.buildSortOrder();
|
|
@@ -214,7 +212,7 @@ class K extends E {
|
|
|
214
212
|
}
|
|
215
213
|
render() {
|
|
216
214
|
let e;
|
|
217
|
-
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${m(o.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 class=${m(o.jsAppFlyout)}><calcite-popover class=${m(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${
|
|
215
|
+
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${m(o.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 class=${m(o.jsAppFlyout)}><calcite-popover class=${m(o.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=${m(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${m(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
218
216
|
}
|
|
219
217
|
}
|
|
220
218
|
k("arcgis-charts-config-box-plot-popover", K);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as C, html as l } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import { isEqual as f } from "lodash-es";
|
|
@@ -8,7 +8,7 @@ import "d3-array";
|
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
9
|
import "../../chunks/series-types.js";
|
|
10
10
|
import { f as v } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import { ap as
|
|
11
|
+
import { ap as g } from "../../chunks/index.js";
|
|
12
12
|
import "@arcgis/core/Graphic.js";
|
|
13
13
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
14
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -27,31 +27,28 @@ import "@arcgis/core/time/TimeExtent.js";
|
|
|
27
27
|
import "@arcgis/core/core/promiseUtils.js";
|
|
28
28
|
import "@arcgis/toolkit/dom";
|
|
29
29
|
import { e as y } from "../../chunks/popover-ui-utils.js";
|
|
30
|
-
import { a as u } from "../../chunks/chart-ui-utils2.js";
|
|
31
30
|
import { u as S } from "../../chunks/useT9n.js";
|
|
32
|
-
import { createRef as
|
|
33
|
-
import { LitElement as
|
|
31
|
+
import { createRef as u, ref as b } from "lit/directives/ref.js";
|
|
32
|
+
import { LitElement as $, createEvent as a, safeClassMap as n } from "@arcgis/lumina";
|
|
34
33
|
const c = {
|
|
35
34
|
jsAppFlyout: "js-app-flyout",
|
|
36
35
|
panelChildrenContainer: "panel-children-container"
|
|
37
|
-
},
|
|
38
|
-
class
|
|
36
|
+
}, P = C`.hide{display:none}.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}`;
|
|
37
|
+
class L extends $ {
|
|
39
38
|
constructor() {
|
|
40
|
-
super(...arguments), this._messages = S(), this.popoverElement =
|
|
39
|
+
super(...arguments), this._messages = S(), this.popoverElement = u(), this.isLineSymbol = !1, this.arcgisChartsConfigPopoverClose = a(), this.arcgisChartsConfigSeriesPopoverColorChange = a(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = a(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = a(), this.arcgisChartsConfigSeriesPopoverNameChange = a();
|
|
41
40
|
}
|
|
42
41
|
static {
|
|
43
42
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedLineWidth: 9, selectedSeriesIndex: 9, isLineSymbol: 5, placement: 1, open: 5, labelCanBeConfigured: 5 };
|
|
44
43
|
}
|
|
45
44
|
static {
|
|
46
|
-
this.styles =
|
|
45
|
+
this.styles = P;
|
|
47
46
|
}
|
|
48
47
|
async reposition() {
|
|
49
48
|
await this.popoverElement.value?.reposition();
|
|
50
49
|
}
|
|
51
50
|
updated() {
|
|
52
|
-
y(this.popoverElement.value, this.open)
|
|
53
|
-
this.popoverElement.value?.reposition();
|
|
54
|
-
}, u.PopoverTimer);
|
|
51
|
+
y(this.popoverElement.value, this.open);
|
|
55
52
|
}
|
|
56
53
|
seriesNameChange(e) {
|
|
57
54
|
const t = e.target.value;
|
|
@@ -61,13 +58,13 @@ class x extends P {
|
|
|
61
58
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
62
59
|
}
|
|
63
60
|
colorChange(e) {
|
|
64
|
-
const t = e instanceof CustomEvent ? e.detail : e, [s, i, o] = t, r =
|
|
61
|
+
const t = e instanceof CustomEvent ? e.detail : e, [s, i, o] = t, r = g * 255;
|
|
65
62
|
this.selectedColor = [s, i, o, r], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [s, i, o, r] });
|
|
66
63
|
}
|
|
67
64
|
lineSymbolChange(e) {
|
|
68
65
|
const { lineStyle: t } = e.target, { color: s, style: i, width: o } = t;
|
|
69
66
|
if (s !== void 0 && !f(s, this.selectedColor)) {
|
|
70
|
-
const [r, p, h] = s, m =
|
|
67
|
+
const [r, p, h] = s, m = g * 255;
|
|
71
68
|
this.selectedColor = [r, p, h, m], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [r, p, h, m] });
|
|
72
69
|
}
|
|
73
70
|
i !== void 0 && i !== this.selectedLineStyle && (this.selectedLineStyle = i, this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({ style: i })), o !== void 0 && o !== this.selectedLineWidth && (this.selectedLineWidth = o, this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({ width: o }));
|
|
@@ -76,7 +73,7 @@ class x extends P {
|
|
|
76
73
|
const e = this.selectedColor;
|
|
77
74
|
return l`<div class=${n({
|
|
78
75
|
[c.jsAppFlyout]: !0
|
|
79
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${
|
|
76
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${b(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? l`<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(c.panelChildrenContainer)}>${this.isLineSymbol ? l`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
|
|
80
77
|
type: v.SLS,
|
|
81
78
|
style: this.selectedLineStyle,
|
|
82
79
|
width: this.selectedLineWidth,
|
|
@@ -84,7 +81,7 @@ class x extends P {
|
|
|
84
81
|
}} @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>`;
|
|
85
82
|
}
|
|
86
83
|
}
|
|
87
|
-
|
|
84
|
+
d("arcgis-charts-config-box-plot-series-popover", L);
|
|
88
85
|
export {
|
|
89
|
-
|
|
86
|
+
L as ArcgisChartsConfigBoxPlotSeriesPopover
|
|
90
87
|
};
|
|
@@ -4,15 +4,15 @@ import { repeat as d } from "lit/directives/repeat.js";
|
|
|
4
4
|
import { css as F, html as l } from "lit";
|
|
5
5
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
6
6
|
import L from "@arcgis/core/Color.js";
|
|
7
|
-
import { LitElement as
|
|
7
|
+
import { LitElement as T, createEvent as h, safeClassMap as r, nothing as g, safeStyleMap as P } from "@arcgis/lumina";
|
|
8
8
|
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
9
|
-
import { isEqual as
|
|
10
|
-
import { br as
|
|
9
|
+
import { isEqual as S } from "lodash-es";
|
|
10
|
+
import { br as A, cY as D, bM as E, bL as _, dj as b, ap as M } from "../../chunks/index.js";
|
|
11
11
|
import { u as v } from "../../chunks/useT9n.js";
|
|
12
12
|
import { d as c, W as $ } from "../../chunks/interfaces.js";
|
|
13
13
|
import "@arcgis/toolkit/type";
|
|
14
|
-
import { a as
|
|
15
|
-
import { R as
|
|
14
|
+
import { a as N, u as y, v as C } from "../../chunks/series-types.js";
|
|
15
|
+
import { R as B } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import "@arcgis/toolkit/intl";
|
|
17
17
|
import "luxon";
|
|
18
18
|
import "d3-array";
|
|
@@ -32,9 +32,9 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
32
32
|
import "@arcgis/core/time/TimeExtent.js";
|
|
33
33
|
import "@arcgis/core/core/promiseUtils.js";
|
|
34
34
|
import "@arcgis/toolkit/dom";
|
|
35
|
-
import { e as
|
|
36
|
-
import { b as x, a as
|
|
37
|
-
import { C as
|
|
35
|
+
import { e as H } from "../../chunks/popover-ui-utils.js";
|
|
36
|
+
import { b as x, a as j, c as m } from "../../chunks/chart-ui-utils2.js";
|
|
37
|
+
import { C as k, a as R } from "../../chunks/class-breaks.js";
|
|
38
38
|
const O = F`.hide{display:none}.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}.pick-list-item-label{font-size:small}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
|
|
39
39
|
jsAppFlyout: "js-app-flyout",
|
|
40
40
|
name: "bar-chart-data-popover",
|
|
@@ -53,9 +53,9 @@ const O = F`.hide{display:none}.am5-html-container{z-index:101!important}.am5-la
|
|
|
53
53
|
panelChildrenContainer: "panel-children-container",
|
|
54
54
|
colorRampPopoverFooter: "color-ramp-popover-footer"
|
|
55
55
|
};
|
|
56
|
-
class q extends
|
|
56
|
+
class q extends T {
|
|
57
57
|
constructor() {
|
|
58
|
-
super(...arguments), this._messages = v(), this.commonStrings = v({ name: "common", blocking: !0 }), this.picklist = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.availableColorRamps = [], this.selectedCategory =
|
|
58
|
+
super(...arguments), this._messages = v(), this.commonStrings = v({ name: "common", blocking: !0 }), this.picklist = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.availableColorRamps = [], this.selectedCategory = k.all, this.aggregationLabels = [], this.isFlipped = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigHeatChartColorRampChange = h(), this.arcgisChartsConfigHeatChartDataPopoverChange = h(), this.arcgisChartsConfigPopoverClose = h(), this.arcgisChartsConfigPopoverEmptyCellColorChange = h(), this.arcgisChartsConfigPopoverEmptyCellNameChange = h();
|
|
59
59
|
}
|
|
60
60
|
static {
|
|
61
61
|
this.properties = { availableColorRamps: 16, selectedColorRampName: 16, selectedCategory: 16, aggregationLabels: 16, isFlipped: 5, model: 0, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, colorRamps: 0 };
|
|
@@ -67,21 +67,19 @@ class q extends P {
|
|
|
67
67
|
await this.popoverElement.value?.reposition();
|
|
68
68
|
}
|
|
69
69
|
willUpdate() {
|
|
70
|
-
const e = x.map((t) =>
|
|
71
|
-
|
|
70
|
+
const e = x.map((t) => A(t, this.commonStrings));
|
|
71
|
+
S(this.aggregationLabels, e) || (this.aggregationLabels = e), this.colorRamps && this.colorRamps !== this.availableColorRamps && (this.availableColorRamps = this.colorRamps), this.contentKind === c.colorScheme && this.selectedContent && !this.selectedColorRampName && (this.selectedColorRampName = this.selectedContent);
|
|
72
72
|
}
|
|
73
73
|
updated() {
|
|
74
74
|
setTimeout(() => {
|
|
75
75
|
this.picklist.value?.setFocus();
|
|
76
|
-
},
|
|
77
|
-
this.popoverElement.value?.reposition();
|
|
78
|
-
}, k.PopoverTimer);
|
|
76
|
+
}, j.PopoverTimer), H(this.popoverElement.value, this.open);
|
|
79
77
|
}
|
|
80
78
|
buildAggregationListItems() {
|
|
81
|
-
return d(x.filter((e) => e !==
|
|
79
|
+
return d(x.filter((e) => e !== N.NoAggregation), (e) => e, (e, t) => l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e, this.selectedContent)}></calcite-list-item>`);
|
|
82
80
|
}
|
|
83
81
|
buildPickListItem(e) {
|
|
84
|
-
return f(e.name, l`<calcite-list-item .label=${
|
|
82
|
+
return f(e.name, l`<calcite-list-item .label=${D(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${m(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
85
83
|
}
|
|
86
84
|
buildPickListItems(e) {
|
|
87
85
|
const t = this.layerFieldsInfo?.length ?? 0, a = [];
|
|
@@ -91,14 +89,14 @@ class q extends P {
|
|
|
91
89
|
a.push(i);
|
|
92
90
|
for (let o = 0; o < t; o += 1) {
|
|
93
91
|
const n = this.layerFieldsInfo?.[o];
|
|
94
|
-
n &&
|
|
92
|
+
n && _(n) && a.push(this.buildPickListItem(n));
|
|
95
93
|
}
|
|
96
94
|
break;
|
|
97
95
|
}
|
|
98
96
|
case c.xAxisField: {
|
|
99
97
|
for (let i = 0; i < t; i += 1) {
|
|
100
98
|
const o = this.layerFieldsInfo?.[i];
|
|
101
|
-
o &&
|
|
99
|
+
o && E(o) && a.push(this.buildPickListItem(o));
|
|
102
100
|
}
|
|
103
101
|
break;
|
|
104
102
|
}
|
|
@@ -118,10 +116,10 @@ class q extends P {
|
|
|
118
116
|
}
|
|
119
117
|
filterColorRamps() {
|
|
120
118
|
let e = [];
|
|
121
|
-
if (this.selectedCategory ===
|
|
119
|
+
if (this.selectedCategory === k.all)
|
|
122
120
|
e = this.availableColorRamps;
|
|
123
121
|
else {
|
|
124
|
-
const t =
|
|
122
|
+
const t = R[this.selectedCategory];
|
|
125
123
|
e = this.availableColorRamps?.filter((a) => t.some((i) => a.tags.includes(i)));
|
|
126
124
|
}
|
|
127
125
|
return e;
|
|
@@ -139,7 +137,7 @@ class q extends P {
|
|
|
139
137
|
typeof a == "string" && a.length && (t = a);
|
|
140
138
|
} else if (Array.isArray(e)) {
|
|
141
139
|
const [a, i, o, n] = e;
|
|
142
|
-
[a, i, o].every((
|
|
140
|
+
[a, i, o].every((I) => typeof I == "number") && (t = `rgba(${a},${i},${o},${n ?? 1})`);
|
|
143
141
|
} else if (typeof e == "object" && e) {
|
|
144
142
|
const { r: a, g: i, b: o, a: n } = e;
|
|
145
143
|
if (a != null && i != null && o != null)
|
|
@@ -184,7 +182,7 @@ class q extends P {
|
|
|
184
182
|
this.model.emptyCellText !== t && (this.model.emptyCellText = t, this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({ name: t }));
|
|
185
183
|
}
|
|
186
184
|
colorChange(e) {
|
|
187
|
-
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n =
|
|
185
|
+
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n = M * 255;
|
|
188
186
|
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i, o, n] });
|
|
189
187
|
}
|
|
190
188
|
renderAggregationType() {
|
|
@@ -200,7 +198,7 @@ class q extends P {
|
|
|
200
198
|
return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
201
199
|
}
|
|
202
200
|
renderCalendarType() {
|
|
203
|
-
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !==
|
|
201
|
+
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !== B.DateOnly), a = d(t, (i) => i, (i) => {
|
|
204
202
|
const o = this._messages[i];
|
|
205
203
|
return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i, this.selectedContent)}></calcite-list-item>`;
|
|
206
204
|
});
|
|
@@ -271,9 +269,9 @@ class q extends P {
|
|
|
271
269
|
}
|
|
272
270
|
renderColorRampSelect() {
|
|
273
271
|
const e = this.filterColorRamps(), t = this._messages?.colorRampCategories ? this._messages.colorRampCategories[this.selectedCategory] : this.selectedCategory;
|
|
274
|
-
return l`<div class=${r(s.colorRampPopover)}><div class=${r(s.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories ?? "All color ramps" ?? g}>${Object.keys(
|
|
272
|
+
return l`<div class=${r(s.colorRampPopover)}><div class=${r(s.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories ?? "All color ramps" ?? g}>${Object.keys(R).map((a) => l`<calcite-dropdown-item data-tag=${a ?? g} .selected=${this.selectedCategory === a}>${this._messages?.colorRampCategories ? this._messages.colorRampCategories[a] : a}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${this.onFlipAll}>${this._messages?.colorRamp?.flipRampColors}</calcite-button></div><div class=${r(s.rampGrid)}>${e.length === 0 && l`<div class=${r(s.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${this.selectedCategory !== "all" ? `"${this.selectedCategory}"` : ""}</div>` || ""}${e.map((a) => {
|
|
275
273
|
const i = this.getRampColors(a), o = a.name === this.selectedColorRampName;
|
|
276
|
-
return l`<div class=${`${s.rampItem} ${o ? "selected" : ""}`} title=${a.name ?? g} @click=${() => this.onRampSelect(a)}><div class=${r(s.rampName)} aria-hidden=true>${a.name}</div><div class=${r(s.rampStrips)}>${d(i, (n) => n, (n) => l`<div class=${r(s.rampStrip)} style=${
|
|
274
|
+
return l`<div class=${`${s.rampItem} ${o ? "selected" : ""}`} title=${a.name ?? g} @click=${() => this.onRampSelect(a)}><div class=${r(s.rampName)} aria-hidden=true>${a.name}</div><div class=${r(s.rampStrips)}>${d(i, (n) => n, (n) => l`<div class=${r(s.rampStrip)} style=${P({ backgroundColor: this.rampColorToCss(n) })}></div>`)}${i.length === 0 && l`<div class=${`${s.rampStrip} ${s.rampStripFallback}`}></div>` || ""}</div></div>`;
|
|
277
275
|
})}</div><div class=${r(s.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`;
|
|
278
276
|
}
|
|
279
277
|
renderEmptyCellUI() {
|