@arcgis/charts-components 5.2.0-next.29 → 5.2.0-next.30
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/3NKDMMC2.js +2 -0
- package/dist/cdn/4TRUG37X.js +2 -0
- package/dist/cdn/5UO6L27Q.js +2 -0
- package/dist/cdn/AZR6HVRW.js +2 -0
- package/dist/cdn/BI54CNMR.js +2 -0
- package/dist/cdn/IPALCXFF.js +2 -0
- package/dist/cdn/M7QZTQSD.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +40 -40
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +45 -46
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +44 -44
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +23 -23
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +31 -31
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +50 -49
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +10 -10
- 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/2SPURZEN.js +0 -2
- package/dist/cdn/AXRHJ55P.js +0 -2
- package/dist/cdn/DVAQXOL6.js +0 -2
- package/dist/cdn/EXQXLQRA.js +0 -2
- package/dist/cdn/L5PCPBED.js +0 -2
- package/dist/cdn/MRNQGHRD.js +0 -2
- package/dist/cdn/YF6HKRXX.js +0 -2
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as v } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as p } from "lit/directives/keyed.js";
|
|
4
|
-
import { repeat as
|
|
4
|
+
import { repeat as k } from "lit/directives/repeat.js";
|
|
5
5
|
import { substitute as $ } from "@arcgis/core/intl.js";
|
|
6
|
-
import { a } from "../../chunks/interfaces.js";
|
|
7
|
-
import { b as
|
|
6
|
+
import { a as l } from "../../chunks/interfaces.js";
|
|
7
|
+
import { b as f, f as y, e as h, a as P } from "../../chunks/chart-ui-utils2.js";
|
|
8
8
|
import { u as F } from "../../chunks/useT9n.js";
|
|
9
|
-
import { css as
|
|
10
|
-
import { createRef as
|
|
11
|
-
import { LitElement as
|
|
9
|
+
import { css as L, html as n } from "lit";
|
|
10
|
+
import { createRef as u, ref as m } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as x, createEvent as g, renderElement as I, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
12
12
|
import { B as r } from "../../chunks/common.js";
|
|
13
13
|
import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
14
14
|
import { bh as b, bk as E, a2 as w } from "../../chunks/index2.js";
|
|
15
15
|
import { d as B } from "../../chunks/index3.js";
|
|
16
16
|
import { R as C } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
-
const
|
|
17
|
+
const o = {
|
|
18
18
|
name: "bar-chart-data-popover",
|
|
19
|
-
numericFieldPickList: "bar-chart-data-numeric-fields-pick-list",
|
|
20
19
|
header: "header",
|
|
21
20
|
fab: "fab",
|
|
22
|
-
|
|
21
|
+
popoverPickList: "popover-pick-list",
|
|
23
22
|
sortMean: "sort-mean",
|
|
24
23
|
sortMedian: "sort-median",
|
|
25
24
|
sortOrderPickList: "sort-order-pick-list",
|
|
26
25
|
panel: "panel"
|
|
27
|
-
}, N =
|
|
28
|
-
class K extends
|
|
26
|
+
}, N = L`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
27
|
+
class K extends x {
|
|
29
28
|
constructor() {
|
|
30
|
-
super(...arguments), this._messages = F(), this.picklist =
|
|
29
|
+
super(...arguments), this._messages = F(), this.picklist = u(), this.placement = "leading", this.popoverElement = u(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = g(), this.arcgisChartsConfigPopoverClose = g();
|
|
31
30
|
}
|
|
32
31
|
static {
|
|
33
32
|
this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
|
|
@@ -44,13 +43,13 @@ class K extends I {
|
|
|
44
43
|
updated() {
|
|
45
44
|
setTimeout(() => {
|
|
46
45
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
47
|
-
},
|
|
46
|
+
}, f.PopoverTimer), S(this.popoverElement.value, this.open);
|
|
48
47
|
}
|
|
49
48
|
selectedContentChange(e, t) {
|
|
50
49
|
this.pickListHasChanged = T(e, t);
|
|
51
50
|
}
|
|
52
51
|
closePopover() {
|
|
53
|
-
if (this.contentKind ===
|
|
52
|
+
if (this.contentKind === l.numericFields && this.pickListHasChanged) {
|
|
54
53
|
const e = {
|
|
55
54
|
pickListElement: this.picklist.value,
|
|
56
55
|
eventEmitter: this.arcgisChartsConfigBoxPlotDataPopoverChange,
|
|
@@ -74,27 +73,27 @@ class K extends I {
|
|
|
74
73
|
buildPickListItems(e) {
|
|
75
74
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
76
75
|
switch (e) {
|
|
77
|
-
case
|
|
76
|
+
case l.numericFields: {
|
|
78
77
|
for (let s = 0; s < t; s += 1) {
|
|
79
|
-
const
|
|
80
|
-
E(
|
|
78
|
+
const a = this.layerFieldsInfo[s];
|
|
79
|
+
E(a) && i.push(this.buildPickListItem(a));
|
|
81
80
|
}
|
|
82
81
|
break;
|
|
83
82
|
}
|
|
84
|
-
case
|
|
83
|
+
case l.category: {
|
|
85
84
|
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
86
85
|
i.push(s);
|
|
87
|
-
for (let
|
|
88
|
-
const c = this.layerFieldsInfo[
|
|
86
|
+
for (let a = 0; a < t; a += 1) {
|
|
87
|
+
const c = this.layerFieldsInfo[a];
|
|
89
88
|
(b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
|
|
90
89
|
}
|
|
91
90
|
break;
|
|
92
91
|
}
|
|
93
|
-
case
|
|
92
|
+
case l.splitByField: {
|
|
94
93
|
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
95
94
|
i.push(s);
|
|
96
|
-
for (let
|
|
97
|
-
const c = this.layerFieldsInfo[
|
|
95
|
+
for (let a = 0; a < t; a += 1) {
|
|
96
|
+
const c = this.layerFieldsInfo[a];
|
|
98
97
|
(b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
|
|
99
98
|
}
|
|
100
99
|
break;
|
|
@@ -108,7 +107,7 @@ class K extends I {
|
|
|
108
107
|
buildSortOrder() {
|
|
109
108
|
const e = Object.keys(r);
|
|
110
109
|
let t;
|
|
111
|
-
return
|
|
110
|
+
return k(e, (i) => i, (i) => {
|
|
112
111
|
let s = "";
|
|
113
112
|
switch (i) {
|
|
114
113
|
case r.xAxisAsc: {
|
|
@@ -120,18 +119,18 @@ class K extends I {
|
|
|
120
119
|
break;
|
|
121
120
|
}
|
|
122
121
|
case r.meanAsc:
|
|
123
|
-
t = "sort-descending", s =
|
|
122
|
+
t = "sort-descending", s = o.sortMean;
|
|
124
123
|
break;
|
|
125
124
|
case r.meanDesc: {
|
|
126
|
-
t = "sort-ascending", s =
|
|
125
|
+
t = "sort-ascending", s = o.sortMean;
|
|
127
126
|
break;
|
|
128
127
|
}
|
|
129
128
|
case r.medianAsc: {
|
|
130
|
-
t = "sort-descending", s =
|
|
129
|
+
t = "sort-descending", s = o.sortMedian;
|
|
131
130
|
break;
|
|
132
131
|
}
|
|
133
132
|
case r.medianDesc: {
|
|
134
|
-
t = "sort-ascending", s =
|
|
133
|
+
t = "sort-ascending", s = o.sortMedian;
|
|
135
134
|
break;
|
|
136
135
|
}
|
|
137
136
|
case r.customSort: {
|
|
@@ -147,44 +146,44 @@ class K extends I {
|
|
|
147
146
|
}
|
|
148
147
|
createTooltip(e) {
|
|
149
148
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
150
|
-
const t = e.target, i = w(t),
|
|
151
|
-
totalLimit:
|
|
149
|
+
const t = e.target, i = w(t), a = new Intl.NumberFormat(i).format(f.customSortLimit), c = $(this._messages.customSortLimit ?? "", {
|
|
150
|
+
totalLimit: a
|
|
152
151
|
});
|
|
153
|
-
this.tooltip =
|
|
152
|
+
this.tooltip = I(n`<calcite-tooltip style=${D({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
154
153
|
}
|
|
155
154
|
}
|
|
156
155
|
destroyTooltip() {
|
|
157
|
-
|
|
156
|
+
P(this.tooltip);
|
|
158
157
|
}
|
|
159
158
|
renderCategory() {
|
|
160
|
-
const e = this.buildPickListItems(
|
|
161
|
-
return n`<calcite-list label class=${d(
|
|
159
|
+
const e = this.buildPickListItems(l.category);
|
|
160
|
+
return n`<calcite-list label class=${d(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
162
161
|
}
|
|
163
162
|
renderNumericFields() {
|
|
164
|
-
const e = this.buildPickListItems(
|
|
165
|
-
return n`<calcite-list label class=${d(
|
|
163
|
+
const e = this.buildPickListItems(l.numericFields);
|
|
164
|
+
return n`<calcite-list label class=${d(o.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
166
165
|
}
|
|
167
166
|
renderSplitByField() {
|
|
168
|
-
const e = this.buildPickListItems(
|
|
169
|
-
return n`<calcite-list label class=${d(
|
|
167
|
+
const e = this.buildPickListItems(l.splitByField);
|
|
168
|
+
return n`<calcite-list label class=${d(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
170
169
|
}
|
|
171
170
|
renderSortOrder() {
|
|
172
171
|
const e = this.buildSortOrder();
|
|
173
|
-
return n`<calcite-list label class=${
|
|
172
|
+
return n`<calcite-list label class=${`${o.popoverPickList} ${o.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
174
173
|
}
|
|
175
174
|
renderPopoverInfo() {
|
|
176
175
|
let e;
|
|
177
176
|
switch (this.contentKind) {
|
|
178
|
-
case
|
|
177
|
+
case l.category:
|
|
179
178
|
e = this.renderCategory();
|
|
180
179
|
break;
|
|
181
|
-
case
|
|
180
|
+
case l.numericFields:
|
|
182
181
|
e = this.renderNumericFields();
|
|
183
182
|
break;
|
|
184
|
-
case
|
|
183
|
+
case l.splitByField:
|
|
185
184
|
e = this.renderSplitByField();
|
|
186
185
|
break;
|
|
187
|
-
case
|
|
186
|
+
case l.sortOrder:
|
|
188
187
|
e = this.renderSortOrder();
|
|
189
188
|
break;
|
|
190
189
|
}
|
|
@@ -192,10 +191,10 @@ class K extends I {
|
|
|
192
191
|
}
|
|
193
192
|
render() {
|
|
194
193
|
let e;
|
|
195
|
-
return this.contentKind ===
|
|
194
|
+
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${d(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><calcite-popover class=${d(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel class=${d(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${d(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
196
195
|
}
|
|
197
196
|
}
|
|
198
|
-
|
|
197
|
+
v("arcgis-charts-config-box-plot-popover", K);
|
|
199
198
|
export {
|
|
200
199
|
K as ArcgisChartsConfigBoxPlotPopover
|
|
201
200
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as F } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as d } from "lit/directives/repeat.js";
|
|
4
|
-
import { css as
|
|
4
|
+
import { css as T, html as l } from "lit";
|
|
5
5
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
6
|
-
import
|
|
7
|
-
import { LitElement as
|
|
6
|
+
import P from "@arcgis/core/Color.js";
|
|
7
|
+
import { LitElement as I, createEvent as h, safeClassMap as r, nothing as g, safeStyleMap as L } from "@arcgis/lumina";
|
|
8
8
|
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as S } from "lodash-es";
|
|
10
|
-
import { d as D, F as
|
|
11
|
-
import { u as
|
|
10
|
+
import { d as D, F as v } from "../../chunks/index3.js";
|
|
11
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
12
12
|
import { e as c, W as $ } from "../../chunks/interfaces.js";
|
|
13
13
|
import { c as y, b as A, e as m } from "../../chunks/chart-ui-utils2.js";
|
|
14
14
|
import { C as x, k } from "../../chunks/class-breaks.js";
|
|
@@ -17,10 +17,10 @@ import { r as _, i as R, e as C } from "../../chunks/chart-object-literals.js";
|
|
|
17
17
|
import { e as B } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { t as N, aB as M } from "../../chunks/index.js";
|
|
19
19
|
import { bb as H, bk as O } from "../../chunks/index2.js";
|
|
20
|
-
const q =
|
|
20
|
+
const q = T`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.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 = {
|
|
21
21
|
name: "bar-chart-data-popover",
|
|
22
22
|
header: "header",
|
|
23
|
-
|
|
23
|
+
popoverPickList: "popover-pick-list",
|
|
24
24
|
panel: "panel",
|
|
25
25
|
colorRampPopover: "color-ramp-popover",
|
|
26
26
|
colorRampToolbar: "color-ramp-toolbar",
|
|
@@ -34,9 +34,9 @@ const q = F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
34
34
|
panelChildrenContainer: "panel-children-container",
|
|
35
35
|
colorRampPopoverFooter: "color-ramp-popover-footer"
|
|
36
36
|
};
|
|
37
|
-
class W extends
|
|
37
|
+
class W extends I {
|
|
38
38
|
constructor() {
|
|
39
|
-
super(...arguments), this._messages =
|
|
39
|
+
super(...arguments), this._messages = b(), this.commonStrings = b({ name: "common", blocking: !0 }), this.picklist = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.availableColorRamps = [], this.selectedCategory = x.all, this.aggregationLabels = [], this.isFlipped = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigHeatChartColorRampChange = h(), this.arcgisChartsConfigHeatChartDataPopoverChange = h(), this.arcgisChartsConfigPopoverClose = h(), this.arcgisChartsConfigPopoverEmptyCellColorChange = h(), this.arcgisChartsConfigPopoverEmptyCellNameChange = h();
|
|
40
40
|
}
|
|
41
41
|
static {
|
|
42
42
|
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 };
|
|
@@ -57,27 +57,27 @@ class W extends T {
|
|
|
57
57
|
}, A.PopoverTimer), B(this.popoverElement.value, this.open);
|
|
58
58
|
}
|
|
59
59
|
buildAggregationListItems() {
|
|
60
|
-
return d(y.filter((e) => e !== _.NoAggregation), (e) => e, (e, t) =>
|
|
60
|
+
return d(y.filter((e) => e !== _.NoAggregation), (e) => e, (e, t) => l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e, this.selectedContent)}></calcite-list-item>`);
|
|
61
61
|
}
|
|
62
62
|
buildPickListItem(e) {
|
|
63
|
-
return f(e.name,
|
|
63
|
+
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>`);
|
|
64
64
|
}
|
|
65
65
|
buildPickListItems(e) {
|
|
66
66
|
const t = this.layerFieldsInfo?.length ?? 0, a = [];
|
|
67
67
|
switch (e) {
|
|
68
68
|
case c.numericFields: {
|
|
69
|
-
const i = f(" ",
|
|
69
|
+
const i = f(" ", l`<calcite-list-item label=" " value=" " .selected=${m("", this.selectedContent)}></calcite-list-item>`);
|
|
70
70
|
a.push(i);
|
|
71
|
-
for (let
|
|
72
|
-
const n = this.layerFieldsInfo?.[
|
|
71
|
+
for (let o = 0; o < t; o += 1) {
|
|
72
|
+
const n = this.layerFieldsInfo?.[o];
|
|
73
73
|
n && O(n) && a.push(this.buildPickListItem(n));
|
|
74
74
|
}
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
77
|
case c.xAxisField: {
|
|
78
78
|
for (let i = 0; i < t; i += 1) {
|
|
79
|
-
const
|
|
80
|
-
|
|
79
|
+
const o = this.layerFieldsInfo?.[i];
|
|
80
|
+
o && H(o) && a.push(this.buildPickListItem(o));
|
|
81
81
|
}
|
|
82
82
|
break;
|
|
83
83
|
}
|
|
@@ -113,16 +113,16 @@ class W extends T {
|
|
|
113
113
|
let t = "#000000";
|
|
114
114
|
try {
|
|
115
115
|
if (e) {
|
|
116
|
-
if (e instanceof
|
|
116
|
+
if (e instanceof P) {
|
|
117
117
|
const a = e.toHex();
|
|
118
118
|
typeof a == "string" && a.length && (t = a);
|
|
119
119
|
} else if (Array.isArray(e)) {
|
|
120
|
-
const [a, i,
|
|
121
|
-
[a, i,
|
|
120
|
+
const [a, i, o, n] = e;
|
|
121
|
+
[a, i, o].every((w) => typeof w == "number") && (t = `rgba(${a},${i},${o},${n ?? 1})`);
|
|
122
122
|
} else if (typeof e == "object" && e) {
|
|
123
|
-
const { r: a, g: i, b:
|
|
124
|
-
if (a != null && i != null &&
|
|
125
|
-
return `rgba(${a},${i},${
|
|
123
|
+
const { r: a, g: i, b: o, a: n } = e;
|
|
124
|
+
if (a != null && i != null && o != null)
|
|
125
|
+
return `rgba(${a},${i},${o},${n ?? 1})`;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
} catch {
|
|
@@ -163,34 +163,34 @@ class W extends T {
|
|
|
163
163
|
this.model.emptyCellText !== t && (this.model.emptyCellText = t, this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({ name: t }));
|
|
164
164
|
}
|
|
165
165
|
colorChange(e) {
|
|
166
|
-
const t = e instanceof CustomEvent ? e.detail : e, [a, i,
|
|
167
|
-
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i,
|
|
166
|
+
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n = M * 255;
|
|
167
|
+
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i, o, n] });
|
|
168
168
|
}
|
|
169
169
|
renderAggregationType() {
|
|
170
170
|
const e = this.buildAggregationListItems();
|
|
171
|
-
return
|
|
171
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
172
172
|
}
|
|
173
173
|
renderXAxisFieldSelect() {
|
|
174
174
|
const e = this.buildPickListItems(c.xAxisField);
|
|
175
|
-
return
|
|
175
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
176
176
|
}
|
|
177
177
|
renderNumericFields() {
|
|
178
178
|
const e = this.buildPickListItems(c.numericFields);
|
|
179
|
-
return
|
|
179
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
180
180
|
}
|
|
181
181
|
renderCalendarType() {
|
|
182
182
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !== E.DateOnly), a = d(t, (i) => i, (i) => {
|
|
183
|
-
const
|
|
184
|
-
return
|
|
183
|
+
const o = this._messages[i];
|
|
184
|
+
return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i, this.selectedContent)}></calcite-list-item>`;
|
|
185
185
|
});
|
|
186
|
-
return
|
|
186
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${a}</calcite-list>`;
|
|
187
187
|
}
|
|
188
188
|
renderCalendarViewType() {
|
|
189
189
|
const e = d(Object.values(R), (t) => t, (t) => {
|
|
190
190
|
const a = this._messages[t];
|
|
191
|
-
return
|
|
191
|
+
return l`<calcite-list-item .label=${a} .value=${t} .disabled=${t !== R.singleCalendarView} .selected=${m(t, this.selectedContent)}></calcite-list-item>`;
|
|
192
192
|
});
|
|
193
|
-
return
|
|
193
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
194
194
|
}
|
|
195
195
|
renderClassBreakMethod() {
|
|
196
196
|
const e = [
|
|
@@ -210,10 +210,10 @@ class W extends T {
|
|
|
210
210
|
msg: this._messages?.classBreaksMethod?.quantileMsg
|
|
211
211
|
}
|
|
212
212
|
], t = d(Object.values(e), ({ value: a }) => a, (a) => {
|
|
213
|
-
const { title: i, msg:
|
|
214
|
-
return
|
|
213
|
+
const { title: i, msg: o, value: n } = a;
|
|
214
|
+
return l`<calcite-list-item .label=${i} .description=${o} .value=${n} .selected=${m(n, this.selectedContent)}></calcite-list-item>`;
|
|
215
215
|
});
|
|
216
|
-
return
|
|
216
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${t}</calcite-list>`;
|
|
217
217
|
}
|
|
218
218
|
renderPopoverInfo() {
|
|
219
219
|
let e;
|
|
@@ -243,27 +243,27 @@ class W extends T {
|
|
|
243
243
|
e = this.renderEmptyCellUI();
|
|
244
244
|
break;
|
|
245
245
|
default:
|
|
246
|
-
e =
|
|
246
|
+
e = l`<div></div>`;
|
|
247
247
|
break;
|
|
248
248
|
}
|
|
249
249
|
return e;
|
|
250
250
|
}
|
|
251
251
|
renderColorRampSelect() {
|
|
252
252
|
const e = this.filterColorRamps(), t = this._messages?.colorRampCategories ? this._messages.colorRampCategories[this.selectedCategory] : this.selectedCategory;
|
|
253
|
-
return
|
|
254
|
-
const i = this.getRampColors(a),
|
|
255
|
-
return
|
|
253
|
+
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(k).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) => {
|
|
254
|
+
const i = this.getRampColors(a), o = a.name === this.selectedColorRampName;
|
|
255
|
+
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=${L({ backgroundColor: this.rampColorToCss(n) })}></div>`)}${i.length === 0 && l`<div class=${`${s.rampStrip} ${s.rampStripFallback}`}></div>` || ""}</div></div>`;
|
|
256
256
|
})}</div><div class=${r(s.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`;
|
|
257
257
|
}
|
|
258
258
|
renderEmptyCellUI() {
|
|
259
|
-
const e = this.model.emptyCellSymbol?.color ??
|
|
260
|
-
return
|
|
259
|
+
const e = this.model.emptyCellSymbol?.color ?? v.grayColor, t = this.model.emptyCellText ?? v.nullCategory?.text ?? "";
|
|
260
|
+
return l`<div><div class=${r(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${r(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`;
|
|
261
261
|
}
|
|
262
262
|
render() {
|
|
263
|
-
return
|
|
263
|
+
return l`<div><calcite-popover class=${r(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
F("arcgis-charts-config-heat-chart-popover", W);
|
|
267
267
|
export {
|
|
268
268
|
W as ArcgisChartsConfigHeatChartPopover
|
|
269
269
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
3
|
+
import { css as v, html as t } from "lit";
|
|
4
4
|
import { keyed as c } from "lit/directives/keyed.js";
|
|
5
5
|
import { H as i } from "../../chunks/interfaces.js";
|
|
6
|
-
import { b as
|
|
7
|
-
import { u
|
|
6
|
+
import { b as y, o as C } from "../../chunks/chart-ui-utils2.js";
|
|
7
|
+
import { u } from "../../chunks/useT9n.js";
|
|
8
8
|
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
9
|
-
import { LitElement as
|
|
9
|
+
import { LitElement as b, createEvent as p, safeClassMap as o } from "@arcgis/lumina";
|
|
10
10
|
import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import { g as
|
|
11
|
+
import { g as s } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { d as S } from "../../chunks/index3.js";
|
|
14
14
|
import { bk as k } from "../../chunks/index2.js";
|
|
15
|
-
import { aB as
|
|
15
|
+
import { aB as T } from "../../chunks/index.js";
|
|
16
16
|
const l = {
|
|
17
17
|
symbolPropertyPopover: "symbol-property-popover",
|
|
18
18
|
colorPicker: "color-picker",
|
|
19
19
|
header: "header",
|
|
20
|
-
|
|
20
|
+
popoverPickList: "popover-pick-list",
|
|
21
21
|
fieldSelectPanel: "field-select-panel",
|
|
22
22
|
transformationPanel: "transformation-panel"
|
|
23
|
-
},
|
|
24
|
-
class
|
|
23
|
+
}, w = v`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.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}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.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)}`;
|
|
24
|
+
class x extends b {
|
|
25
25
|
constructor() {
|
|
26
|
-
super(...arguments), this._messages =
|
|
26
|
+
super(...arguments), this._messages = u(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
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 };
|
|
30
30
|
}
|
|
31
31
|
static {
|
|
32
|
-
this.styles =
|
|
32
|
+
this.styles = w;
|
|
33
33
|
}
|
|
34
34
|
async reposition() {
|
|
35
35
|
await this.popoverElement.value?.reposition();
|
|
@@ -37,7 +37,7 @@ class F extends u {
|
|
|
37
37
|
updated() {
|
|
38
38
|
setTimeout(() => {
|
|
39
39
|
this.picklist.value?.setFocus();
|
|
40
|
-
},
|
|
40
|
+
}, y.PopoverTimer), P(this.popoverElement.value, this.open);
|
|
41
41
|
}
|
|
42
42
|
buildPickListItems(e) {
|
|
43
43
|
const n = [];
|
|
@@ -48,9 +48,9 @@ class F extends u {
|
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
const r = [
|
|
51
|
-
c(
|
|
52
|
-
c(
|
|
53
|
-
c(
|
|
51
|
+
c(s.None, t`<calcite-list-item .label=${this._messages.none} .value=${s.None} .selected=${this.selectedTransformationType === s.None}></calcite-list-item>`),
|
|
52
|
+
c(s.Log, t`<calcite-list-item .label=${this._messages.log} .value=${s.Log} .selected=${this.selectedTransformationType === s.Log}></calcite-list-item>`),
|
|
53
|
+
c(s.Sqrt, t`<calcite-list-item .label=${this._messages.sqRt} .value=${s.Sqrt} .selected=${this.selectedTransformationType === s.Sqrt}></calcite-list-item>`)
|
|
54
54
|
];
|
|
55
55
|
n.push(...r);
|
|
56
56
|
}
|
|
@@ -66,7 +66,7 @@ class F extends u {
|
|
|
66
66
|
this.arcgisChartsConfigHistogramPopoverSymbolChange.emit(e.detail);
|
|
67
67
|
}
|
|
68
68
|
fillColorChange(e) {
|
|
69
|
-
const n = e.detail, [r, a, d] = n, g =
|
|
69
|
+
const n = e.detail, [r, a, d] = n, g = T * 255;
|
|
70
70
|
this.arcgisChartsConfigHistogramPopoverSymbolChange.emit({
|
|
71
71
|
type: $.SFS,
|
|
72
72
|
color: [r, a, d, g]
|
|
@@ -79,21 +79,21 @@ class F extends u {
|
|
|
79
79
|
}), this.open = !1);
|
|
80
80
|
}
|
|
81
81
|
renderFillColor() {
|
|
82
|
-
return t`<arcgis-charts-config-color-style class=${
|
|
82
|
+
return t`<arcgis-charts-config-color-style class=${o(l.colorPicker)} .header=${this.headingTitle ?? this._messages.fillColor} enable-close .open=${this.open} .selectedColor=${this.selectedBinColor?.color} @arcgisChartsConfigColorStyleChange=${this.fillColorChange} @arcgisChartsConfigColorStyleClose=${this.closePopover}></arcgis-charts-config-color-style>`;
|
|
83
83
|
}
|
|
84
84
|
renderOverlayStyle() {
|
|
85
|
-
return t`<arcgis-charts-config-line-style class=${
|
|
85
|
+
return t`<arcgis-charts-config-line-style class=${o(l.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle ?? this._messages.lineStyle} .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`;
|
|
86
86
|
}
|
|
87
87
|
renderFieldSelect() {
|
|
88
88
|
const e = this.buildPickListItems(i.numericFields);
|
|
89
|
-
return t`<calcite-panel class=${
|
|
89
|
+
return t`<calcite-panel class=${o(l.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(l.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${o(l.popoverPickList)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`;
|
|
90
90
|
}
|
|
91
91
|
renderTransformationSelect() {
|
|
92
92
|
const e = this.buildPickListItems(i.transformation);
|
|
93
|
-
return t`<calcite-panel class=${
|
|
93
|
+
return t`<calcite-panel class=${o(l.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(l.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${o(l.popoverPickList)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`;
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
|
-
return t`<div><calcite-popover class=${
|
|
96
|
+
return t`<div><calcite-popover class=${o(this.getPopoverClass())} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${C(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`;
|
|
97
97
|
}
|
|
98
98
|
renderContentType() {
|
|
99
99
|
switch (this.contentKind) {
|
|
@@ -110,7 +110,7 @@ class F extends u {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
f("arcgis-charts-config-histogram-popover",
|
|
113
|
+
f("arcgis-charts-config-histogram-popover", x);
|
|
114
114
|
export {
|
|
115
|
-
|
|
115
|
+
x as ArcgisChartsConfigHistogramPopover
|
|
116
116
|
};
|