@arcgis/charts-components 5.1.0-next.6 → 5.1.0-next.8
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/2LIJ6LL6.js +2 -0
- package/dist/cdn/{LY46M2NC.js → 2XUJZES7.js} +1 -1
- package/dist/cdn/{3KP75DDX.js → 3FSLSUSK.js} +1 -1
- package/dist/cdn/{X2S3V4HD.js → 3IKX7JF5.js} +1 -1
- package/dist/cdn/3LSZZLGN.js +2 -0
- package/dist/cdn/{AHJME35X.js → 3RGDIFXM.js} +1 -1
- package/dist/cdn/{LKK7N2C5.js → 3XL7ZAYC.js} +1 -1
- package/dist/cdn/4JKSKAIM.js +2 -0
- package/dist/cdn/{ZD2OFLRT.js → 5AGSNJFG.js} +1 -1
- package/dist/cdn/{RJN6DNHI.js → 5J43WZSR.js} +1 -1
- package/dist/cdn/{FSNIJZ4N.js → 5JLPD2NR.js} +1 -1
- package/dist/cdn/{MBFKIRCK.js → 5SE3ZDX2.js} +1 -1
- package/dist/cdn/{IU5GCIOV.js → 6JS63XSI.js} +1 -1
- package/dist/cdn/7BFETEN2.js +2 -0
- package/dist/cdn/{LIWSW6ON.js → 7EP32GQJ.js} +1 -1
- package/dist/cdn/{RHSZB5ZH.js → 7WH6VBY6.js} +1 -1
- package/dist/cdn/{AND6TXZC.js → A6FLP7SG.js} +1 -1
- package/dist/cdn/{YC2QAZQ5.js → ACHYJXNP.js} +1 -1
- package/dist/cdn/{NKSFFZ43.js → ANOLEK36.js} +1 -1
- package/dist/cdn/{76YPTUIV.js → ATIYLNFB.js} +1 -1
- package/dist/cdn/{3IBNI7DB.js → ATYJIBQA.js} +1 -1
- package/dist/cdn/{SJ74QWGI.js → B33AB3RQ.js} +1 -1
- package/dist/cdn/{QWZNK3OV.js → BHWSEWHV.js} +1 -1
- package/dist/cdn/{TSQ75643.js → BTMNCXKX.js} +1 -1
- package/dist/cdn/{5RX4R45J.js → BTOKHA76.js} +1 -1
- package/dist/cdn/{BPBBMXA3.js → CTXREB7E.js} +1 -1
- package/dist/cdn/{JF4TYCG5.js → D5XDNKEV.js} +1 -1
- package/dist/cdn/{FJUBR4KW.js → DAQJEXZA.js} +1 -1
- package/dist/cdn/{MOU5IBB7.js → DSRT3QGU.js} +1 -1
- package/dist/cdn/{SBJDJQ5W.js → E3KNK2QL.js} +1 -1
- package/dist/cdn/{64NE6NLA.js → EAMOK76F.js} +1 -1
- package/dist/cdn/ENHEXARD.js +2 -0
- package/dist/cdn/{LKI3UTOI.js → ERWSXC2D.js} +1 -1
- package/dist/cdn/{T4P6X62H.js → GUD54AQJ.js} +1 -1
- package/dist/cdn/{OZLXNKH5.js → H7ZDNA7W.js} +1 -1
- package/dist/cdn/{ZWABUONN.js → HOVLVPQH.js} +1 -1
- package/dist/cdn/{T2ZLECUS.js → HYAXYKZG.js} +1 -1
- package/dist/cdn/{U3YXEG4D.js → I7WRC44V.js} +1 -1
- package/dist/cdn/{SD2G2LCW.js → IASONEII.js} +1 -1
- package/dist/cdn/{ZPBTQ3VC.js → IEY3ZHXM.js} +1 -1
- package/dist/cdn/{JLFJWDPQ.js → JAKJRZFS.js} +1 -1
- package/dist/cdn/{7OXO43LP.js → JCW7HW3E.js} +2 -2
- package/dist/cdn/JGB4OLU5.js +2 -0
- package/dist/cdn/{NXDHPVLZ.js → JTA6HTV5.js} +1 -1
- package/dist/cdn/{ESIO74ER.js → K4VD72SG.js} +1 -1
- package/dist/cdn/{F3M5Q4I6.js → KACPA2Q3.js} +1 -1
- package/dist/cdn/{STQIUWAA.js → KFJXMRC6.js} +1 -1
- package/dist/cdn/{FRATWU4Z.js → KIMKCXB6.js} +1 -1
- package/dist/cdn/{S2T2KPSE.js → KKGG37KV.js} +1 -1
- package/dist/cdn/{BYIBXD4Q.js → KPYFZSB5.js} +1 -1
- package/dist/cdn/{FG2SKN2Q.js → KSYKVAYS.js} +1 -1
- package/dist/cdn/{VL4N7T3G.js → LRRTUMQS.js} +1 -1
- package/dist/cdn/{D2NLBPAB.js → M7ZR4HR7.js} +1 -1
- package/dist/cdn/MDLYTSBA.js +2 -0
- package/dist/cdn/{DFBK7RTI.js → MIH3XFE3.js} +1 -1
- package/dist/cdn/{6LS2WSZ5.js → MLDP5OXE.js} +1 -1
- package/dist/cdn/{KGYOF4HQ.js → MMZFC2VM.js} +1 -1
- package/dist/cdn/N2UJIZEU.js +2 -0
- package/dist/cdn/{36Z3PUIB.js → OEJ6ZA3E.js} +1 -1
- package/dist/cdn/{HYEINZ2W.js → OFRMMDZQ.js} +1 -1
- package/dist/cdn/{MY4FFGT5.js → OJGWQ3IH.js} +1 -1
- package/dist/cdn/{FHI4UU5O.js → PKWXSPJL.js} +1 -1
- package/dist/cdn/{MXLNSW6C.js → PUCPVH4M.js} +1 -1
- package/dist/cdn/{BF3HDW6F.js → Q5N6IPFC.js} +1 -1
- package/dist/cdn/{E2OGP7R4.js → QCF56OBO.js} +1 -1
- package/dist/cdn/{5PUNMMSL.js → R5CKMPU7.js} +1 -1
- package/dist/cdn/{ZY42XS5N.js → RF7C6WVN.js} +1 -1
- package/dist/cdn/{LR3V4CJY.js → RFHASMHJ.js} +1 -1
- package/dist/cdn/{VK546WZD.js → SM4LQF5M.js} +1 -1
- package/dist/cdn/{BVFVLX3U.js → TGNJ76AH.js} +1 -1
- package/dist/cdn/{3V3NUR6Q.js → THBEEC5Q.js} +1 -1
- package/dist/cdn/{L4E7PSXN.js → TS3WIN62.js} +1 -1
- package/dist/cdn/{25UJ6G2G.js → U2TWW4FY.js} +1 -1
- package/dist/cdn/{6ZZVPJTU.js → UJ2JV7FV.js} +1 -1
- package/dist/cdn/{4XV6HEXY.js → VBOUUUVO.js} +1 -1
- package/dist/cdn/{XG3LUWT6.js → VDXJP4RT.js} +1 -1
- package/dist/cdn/VKLPG37D.js +2 -0
- package/dist/cdn/{RUB23UKZ.js → W7KYGPSP.js} +1 -1
- package/dist/cdn/{IUWWS4XW.js → WYPEKQH6.js} +1 -1
- package/dist/cdn/{W3E73SQV.js → XHXTKPL6.js} +1 -1
- package/dist/cdn/{BHF54XO4.js → XJSBB5KR.js} +1 -1
- package/dist/cdn/{2JUKPBNE.js → XPM5OZBN.js} +1 -1
- package/dist/cdn/YFEYEBAA.js +2 -0
- package/dist/cdn/YXWXHEUY.js +2 -0
- package/dist/cdn/{BRRSD3O4.js → Z3EGNO5M.js} +1 -1
- package/dist/cdn/{AYMM5RTN.js → ZVVQECSL.js} +1 -1
- package/dist/cdn/{UWJ3DRYN.js → ZYMJEZKL.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +2 -2
- 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/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +3 -3
- package/dist/cdn/6PIJSBNU.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
|
@@ -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() {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as y, html as o } from "lit";
|
|
4
4
|
import { keyed as c } from "lit/directives/keyed.js";
|
|
5
5
|
import "@arcgis/toolkit/type";
|
|
6
6
|
import { b as s } from "../../chunks/series-types.js";
|
|
7
|
-
import { f as
|
|
7
|
+
import { f as v } from "../../chunks/rest-js-object-literals.js";
|
|
8
8
|
import "@arcgis/toolkit/intl";
|
|
9
9
|
import "lodash-es";
|
|
10
10
|
import "luxon";
|
|
11
11
|
import "d3-array";
|
|
12
|
-
import { bL as
|
|
12
|
+
import { bL as C, cY as u, ap as b } from "../../chunks/index.js";
|
|
13
13
|
import "@arcgis/core/Graphic.js";
|
|
14
14
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
15
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -26,12 +26,12 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
26
26
|
import "@arcgis/core/time/TimeExtent.js";
|
|
27
27
|
import "@arcgis/core/core/promiseUtils.js";
|
|
28
28
|
import "@arcgis/toolkit/dom";
|
|
29
|
-
import { e as
|
|
29
|
+
import { e as $ } from "../../chunks/popover-ui-utils.js";
|
|
30
30
|
import { H as l } from "../../chunks/interfaces.js";
|
|
31
|
-
import { a as
|
|
32
|
-
import { u as
|
|
33
|
-
import { createRef as
|
|
34
|
-
import { LitElement as
|
|
31
|
+
import { a as P, l as S } from "../../chunks/chart-ui-utils2.js";
|
|
32
|
+
import { u as k } from "../../chunks/useT9n.js";
|
|
33
|
+
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
34
|
+
import { LitElement as L, createEvent as p, safeClassMap as t } from "@arcgis/lumina";
|
|
35
35
|
const i = {
|
|
36
36
|
symbolPropertyPopover: "symbol-property-popover",
|
|
37
37
|
colorPicker: "color-picker",
|
|
@@ -40,16 +40,16 @@ const i = {
|
|
|
40
40
|
pickListItemLabel: "pick-list-item-label",
|
|
41
41
|
fieldSelectPanel: "field-select-panel",
|
|
42
42
|
transformationPanel: "transformation-panel"
|
|
43
|
-
},
|
|
44
|
-
class F extends
|
|
43
|
+
}, T = y`.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)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem;padding:0 1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.pick-list-item-label{font-size:small}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`;
|
|
44
|
+
class F extends L {
|
|
45
45
|
constructor() {
|
|
46
|
-
super(...arguments), this._messages =
|
|
46
|
+
super(...arguments), this._messages = k(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
|
|
47
47
|
}
|
|
48
48
|
static {
|
|
49
49
|
this.properties = { messageOverrides: 0, layerFieldsInfo: 0, headingTitle: 1, selectedNumericField: 1, selectedTransformationType: 1, selectedOverlaySymbol: 0, selectedBinColor: 0, referenceElement: 0, contentKind: 1, placement: 1, open: 5, selectedOverlaySymbolType: 1 };
|
|
50
50
|
}
|
|
51
51
|
static {
|
|
52
|
-
this.styles =
|
|
52
|
+
this.styles = T;
|
|
53
53
|
}
|
|
54
54
|
async reposition() {
|
|
55
55
|
await this.popoverElement.value?.reposition();
|
|
@@ -57,16 +57,14 @@ class F extends k {
|
|
|
57
57
|
updated() {
|
|
58
58
|
setTimeout(() => {
|
|
59
59
|
this.picklist.value?.setFocus();
|
|
60
|
-
},
|
|
61
|
-
this.popoverElement.value?.reposition();
|
|
62
|
-
}, m.PopoverTimer);
|
|
60
|
+
}, P.PopoverTimer), $(this.popoverElement.value, this.open);
|
|
63
61
|
}
|
|
64
62
|
buildPickListItems(e) {
|
|
65
63
|
const n = [];
|
|
66
64
|
if (e === l.numericFields)
|
|
67
65
|
for (let r = 0; r < this.layerFieldsInfo?.length; r += 1) {
|
|
68
66
|
const a = this.layerFieldsInfo[r];
|
|
69
|
-
|
|
67
|
+
C(a) && n.push(c(a.name, o`<calcite-list-item .label=${u(this.layerFieldsInfo, a.name)} .value=${a.name} .selected=${this.selectedNumericField === a.name}></calcite-list-item>`));
|
|
70
68
|
}
|
|
71
69
|
else {
|
|
72
70
|
const r = [
|
|
@@ -88,10 +86,10 @@ class F extends k {
|
|
|
88
86
|
this.arcgisChartsConfigHistogramPopoverSymbolChange.emit(e.detail);
|
|
89
87
|
}
|
|
90
88
|
fillColorChange(e) {
|
|
91
|
-
const n = e.detail, [r, a,
|
|
89
|
+
const n = e.detail, [r, a, d] = n, g = b * 255;
|
|
92
90
|
this.arcgisChartsConfigHistogramPopoverSymbolChange.emit({
|
|
93
|
-
type:
|
|
94
|
-
color: [r, a,
|
|
91
|
+
type: v.SFS,
|
|
92
|
+
color: [r, a, d, g]
|
|
95
93
|
});
|
|
96
94
|
}
|
|
97
95
|
onPickListChange(e) {
|
|
@@ -108,14 +106,14 @@ class F extends k {
|
|
|
108
106
|
}
|
|
109
107
|
renderFieldSelect() {
|
|
110
108
|
const e = this.buildPickListItems(l.numericFields);
|
|
111
|
-
return o`<calcite-panel class=${t(i.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${t(i.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${t(i.pickListItemLabel)} filter-enabled @calciteListChange=${this.onPickListChange} ${
|
|
109
|
+
return o`<calcite-panel class=${t(i.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${t(i.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${t(i.pickListItemLabel)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`;
|
|
112
110
|
}
|
|
113
111
|
renderTransformationSelect() {
|
|
114
112
|
const e = this.buildPickListItems(l.transformation);
|
|
115
113
|
return o`<calcite-panel class=${t(i.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${t(i.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${t(i.pickListItemLabel)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`;
|
|
116
114
|
}
|
|
117
115
|
render() {
|
|
118
|
-
return o`<div class=${t({ [i.jsAppFlyout]: !0 })}><calcite-popover class=${t(this.getPopoverClass())} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${S(this.placement)} label auto-close ${
|
|
116
|
+
return o`<div class=${t({ [i.jsAppFlyout]: !0 })}><calcite-popover class=${t(this.getPopoverClass())} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${S(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`;
|
|
119
117
|
}
|
|
120
118
|
renderContentType() {
|
|
121
119
|
switch (this.contentKind) {
|
|
@@ -132,7 +130,7 @@ class F extends k {
|
|
|
132
130
|
}
|
|
133
131
|
}
|
|
134
132
|
}
|
|
135
|
-
|
|
133
|
+
f("arcgis-charts-config-histogram-popover", F);
|
|
136
134
|
export {
|
|
137
135
|
F as ArcgisChartsConfigHistogramPopover
|
|
138
136
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as u } from "lit/directives/repeat.js";
|
|
4
|
-
import { keyed as
|
|
4
|
+
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
5
|
import "@arcgis/toolkit/type";
|
|
6
6
|
import { n as h, i as c } from "../../chunks/series-types.js";
|
|
7
|
-
import { R as
|
|
7
|
+
import { R as k } from "../../chunks/rest-js-object-literals.js";
|
|
8
8
|
import "@arcgis/toolkit/intl";
|
|
9
|
-
import { isEqual as
|
|
9
|
+
import { isEqual as f } from "lodash-es";
|
|
10
10
|
import "luxon";
|
|
11
11
|
import "d3-array";
|
|
12
|
-
import { br as
|
|
12
|
+
import { br as F, bs as I, cY as P, bN as A, bL as v, bM as T, d3 as x } from "../../chunks/index.js";
|
|
13
13
|
import "@arcgis/core/Graphic.js";
|
|
14
14
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
15
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -26,14 +26,14 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
26
26
|
import "@arcgis/core/time/TimeExtent.js";
|
|
27
27
|
import "@arcgis/core/core/promiseUtils.js";
|
|
28
28
|
import "@arcgis/toolkit/dom";
|
|
29
|
-
import { e as D, p as
|
|
30
|
-
import { LitElement as
|
|
31
|
-
import { css as
|
|
29
|
+
import { e as D, p as E } from "../../chunks/popover-ui-utils.js";
|
|
30
|
+
import { LitElement as S, createEvent as C, safeClassMap as o } from "@arcgis/lumina";
|
|
31
|
+
import { css as z, html as n } from "lit";
|
|
32
32
|
import { createRef as d, ref as m } from "lit/directives/ref.js";
|
|
33
33
|
import { u as L } from "../../chunks/useT9n.js";
|
|
34
34
|
import { L as a } from "../../chunks/interfaces.js";
|
|
35
|
-
import { b as $, a as
|
|
36
|
-
const B =
|
|
35
|
+
import { b as $, a as N, c as g, e as w, s as K } from "../../chunks/chart-ui-utils2.js";
|
|
36
|
+
const B = z`.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)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, r = {
|
|
37
37
|
jsAppFlyout: "js-app-flyout",
|
|
38
38
|
name: "line-chart-data-popover",
|
|
39
39
|
numericFieldPickList: "line-chart-data-numeric-fields-pick-list",
|
|
@@ -43,7 +43,7 @@ const B = N`.hide{display:none}.am5-html-container{z-index:101!important}.am5-la
|
|
|
43
43
|
sizeSection: "size-section",
|
|
44
44
|
applyButton: "apply-button"
|
|
45
45
|
};
|
|
46
|
-
class _ extends
|
|
46
|
+
class _ extends S {
|
|
47
47
|
constructor() {
|
|
48
48
|
super(...arguments), this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.picklist = d(), this.intervalSizeElement = d(), this.intervalTypeElement = d(), this.popoverElement = d(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigLineChartDataPopoverChange = C(), this.arcgisChartsConfigLineChartPopoverClose = C();
|
|
49
49
|
}
|
|
@@ -58,20 +58,18 @@ class _ extends z {
|
|
|
58
58
|
}
|
|
59
59
|
willUpdate(e) {
|
|
60
60
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
61
|
-
const t = $.map((i) =>
|
|
62
|
-
|
|
63
|
-
const l = [h.Start, h.End].map((i) =>
|
|
64
|
-
|
|
61
|
+
const t = $.map((i) => F(i, this.commonStrings));
|
|
62
|
+
f(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
63
|
+
const l = [h.Start, h.End].map((i) => I(i, this.commonStrings));
|
|
64
|
+
f(this.timeAggregationLabels, l) || (this.timeAggregationLabels = l);
|
|
65
65
|
}
|
|
66
66
|
updated() {
|
|
67
67
|
setTimeout(() => {
|
|
68
68
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
69
|
-
},
|
|
70
|
-
this.popoverElement.value?.reposition();
|
|
71
|
-
}, y.PopoverTimer);
|
|
69
|
+
}, N.PopoverTimer), D(this.popoverElement.value, this.open);
|
|
72
70
|
}
|
|
73
71
|
selectedContentChange(e, t) {
|
|
74
|
-
this.pickListHasChanged =
|
|
72
|
+
this.pickListHasChanged = E(e, t);
|
|
75
73
|
}
|
|
76
74
|
buildAggregationPickListItems() {
|
|
77
75
|
return u($, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels?.[t]} .value=${e} .selected=${g(e, this.selectedContent)}></calcite-list-item>`);
|
|
@@ -81,7 +79,7 @@ class _ extends z {
|
|
|
81
79
|
return u(e, (t) => t, (t, s) => n`<calcite-list-item .label=${this.timeAggregationLabels?.[s]} .value=${t} .selected=${g(t, this.selectedContent)}></calcite-list-item>`);
|
|
82
80
|
}
|
|
83
81
|
buildPickListItem(e) {
|
|
84
|
-
return
|
|
82
|
+
return b(e.name, n`<calcite-list-item .label=${P(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${g(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
85
83
|
}
|
|
86
84
|
buildPickListItems(e) {
|
|
87
85
|
const t = this.layerFieldsInfo?.length ?? 0, s = [];
|
|
@@ -96,16 +94,16 @@ class _ extends z {
|
|
|
96
94
|
case a.xAxisField: {
|
|
97
95
|
for (let l = 0; l < t; l += 1) {
|
|
98
96
|
const i = this.layerFieldsInfo?.[l];
|
|
99
|
-
i && (v(i) ||
|
|
97
|
+
i && (v(i) || T(i)) && s.push(this.buildPickListItem(i));
|
|
100
98
|
}
|
|
101
99
|
break;
|
|
102
100
|
}
|
|
103
101
|
case a.splitByField: {
|
|
104
|
-
const l =
|
|
102
|
+
const l = b(" ", n`<calcite-list-item label=" " value=" " .selected=${g("", this.selectedContent)}></calcite-list-item>`);
|
|
105
103
|
s.push(l);
|
|
106
104
|
for (let i = 0; i < t; i += 1) {
|
|
107
105
|
const p = this.layerFieldsInfo?.[i];
|
|
108
|
-
p && (A(p) || p.type ===
|
|
106
|
+
p && (A(p) || p.type === k.String) && s.push(this.buildPickListItem(p));
|
|
109
107
|
}
|
|
110
108
|
break;
|
|
111
109
|
}
|
|
@@ -174,7 +172,7 @@ class _ extends z {
|
|
|
174
172
|
c.Month,
|
|
175
173
|
c.Year
|
|
176
174
|
];
|
|
177
|
-
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${K(e?.size, 1)} ${m(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${m(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${
|
|
175
|
+
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${K(e?.size, 1)} ${m(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${m(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${x(s, this._messages)} .selected=${e?.unit === s}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
178
176
|
}
|
|
179
177
|
renderPopoverInfo() {
|
|
180
178
|
let e;
|
|
@@ -205,7 +203,7 @@ class _ extends z {
|
|
|
205
203
|
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(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>`), n`<div class=${o(r.jsAppFlyout)}><calcite-popover class=${o(r.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(r.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
206
204
|
}
|
|
207
205
|
}
|
|
208
|
-
|
|
206
|
+
y("arcgis-charts-config-line-chart-popover", _);
|
|
209
207
|
export {
|
|
210
208
|
_ as ArcgisChartsConfigLineChartPopover
|
|
211
209
|
};
|
|
@@ -27,19 +27,19 @@ 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 {
|
|
31
|
-
import { u as
|
|
30
|
+
import { i as S, m, s as $, U as g } from "../../chunks/chart-ui-utils2.js";
|
|
31
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
32
32
|
import { createRef as n, ref as a } from "lit/directives/ref.js";
|
|
33
|
-
import { LitElement as
|
|
33
|
+
import { LitElement as E, createEvent as s, safeClassMap as l, nothing as r } from "@arcgis/lumina";
|
|
34
34
|
const o = {
|
|
35
35
|
jsAppFlyout: "js-app-flyout",
|
|
36
36
|
sizeSection: "size-section",
|
|
37
37
|
dropdownText: "dropdown-text",
|
|
38
38
|
panelChildrenContainer: "panel-children-container"
|
|
39
39
|
}, w = 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 calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
40
|
-
class x extends
|
|
40
|
+
class x extends E {
|
|
41
41
|
constructor() {
|
|
42
|
-
super(...arguments), this._messages =
|
|
42
|
+
super(...arguments), this._messages = b(), this.popoverElement = n(), this.lineWidthInputElement = n(), this.lineStyleDropdownElement = n(), this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSeriesPopoverColorChange = s(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = s(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = s(), this.arcgisChartsConfigSeriesPopoverNameChange = s();
|
|
43
43
|
}
|
|
44
44
|
static {
|
|
45
45
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedSeriesIndex: 9, selectedLineWidth: 9, placement: 1, open: 5 };
|
|
@@ -51,9 +51,7 @@ class x extends I {
|
|
|
51
51
|
await this.popoverElement.value?.reposition();
|
|
52
52
|
}
|
|
53
53
|
updated() {
|
|
54
|
-
y(this.popoverElement.value, this.open)
|
|
55
|
-
this.popoverElement.value?.reposition();
|
|
56
|
-
}, S.PopoverTimer);
|
|
54
|
+
y(this.popoverElement.value, this.open);
|
|
57
55
|
}
|
|
58
56
|
seriesNameChange(e) {
|
|
59
57
|
const t = e.target.value;
|
|
@@ -74,7 +72,7 @@ class x extends I {
|
|
|
74
72
|
}
|
|
75
73
|
lineWidthChange() {
|
|
76
74
|
const e = Number.parseInt(this.lineWidthInputElement.value?.value ?? "");
|
|
77
|
-
this.lineWidthInputElement.value?.value !== void 0 &&
|
|
75
|
+
this.lineWidthInputElement.value?.value !== void 0 && S(e, this.lineWidthInputElement.value.min, this.lineWidthInputElement.value.max) ? (this.selectedLineWidth = e, this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({ lineWidth: e }), m({
|
|
78
76
|
inputElement: this.lineWidthInputElement.value,
|
|
79
77
|
status: g.IDLE
|
|
80
78
|
})) : this.lineWidthInputElement.value && m({
|
|
@@ -100,7 +98,7 @@ class x extends I {
|
|
|
100
98
|
}
|
|
101
99
|
render() {
|
|
102
100
|
const e = this.selectedColor;
|
|
103
|
-
return v`<div class=${l({ [o.jsAppFlyout]: !0 })}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${a(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${l(o.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${l(o.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${a(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${l(o.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle === i.Solid} accesskey=${i.Solid ?? r}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle === i.Dot} accesskey=${i.Dot ?? r}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle === i.Dash} accesskey=${i.Dash ?? r}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${
|
|
101
|
+
return v`<div class=${l({ [o.jsAppFlyout]: !0 })}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${a(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${l(o.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${l(o.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${a(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${l(o.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle === i.Solid} accesskey=${i.Solid ?? r}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle === i.Dot} accesskey=${i.Dot ?? r}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle === i.Dash} accesskey=${i.Dash ?? r}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${$(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${a(this.lineWidthInputElement)}></calcite-input></calcite-label></div><div class=${l(o.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
104
102
|
}
|
|
105
103
|
}
|
|
106
104
|
u("arcgis-charts-config-line-chart-series-popover", x);
|
|
@@ -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.selectedSliceId = "", this.arcgisChartsConfigPopoverClose = o(), this.arcgisChartsConfigSlicesPopoverColorChange = o(), this.arcgisChartsConfigSlicesPopoverNameChange = o();
|
|
40
39
|
}
|
|
41
40
|
static {
|
|
42
41
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedSliceId: 1, placement: 1, open: 5 };
|
|
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
|
sliceNameChange(e) {
|
|
56
53
|
const t = e.target.value;
|
|
@@ -69,10 +66,10 @@ class $ extends u {
|
|
|
69
66
|
const e = this.selectedColor !== void 0 ? [...this.selectedColor] : void 0;
|
|
70
67
|
return m`<div class=${i({
|
|
71
68
|
[s.jsAppFlyout]: !0
|
|
72
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${
|
|
69
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${v(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></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
|
-
n("arcgis-charts-config-pie-chart-slices-popover",
|
|
72
|
+
n("arcgis-charts-config-pie-chart-slices-popover", y);
|
|
76
73
|
export {
|
|
77
|
-
|
|
74
|
+
y as ArcgisChartsConfigPieChartSlicesPopover
|
|
78
75
|
};
|