@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,31 +1,31 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as u } from "lit/directives/repeat.js";
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { LitElement as k, createEvent as
|
|
6
|
-
import { css as
|
|
7
|
-
import { createRef as
|
|
8
|
-
import { isEqual as
|
|
4
|
+
import { keyed as f } from "lit/directives/keyed.js";
|
|
5
|
+
import { LitElement as k, createEvent as v, safeClassMap as o } from "@arcgis/lumina";
|
|
6
|
+
import { css as P, html as n } from "lit";
|
|
7
|
+
import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
8
|
+
import { isEqual as b } from "lodash-es";
|
|
9
9
|
import { u as C } from "../../chunks/useT9n.js";
|
|
10
10
|
import { L as a } from "../../chunks/interfaces.js";
|
|
11
|
-
import { c as
|
|
12
|
-
import { R as
|
|
11
|
+
import { c as $, b as F, e as d, f as I, s as T } from "../../chunks/chart-ui-utils2.js";
|
|
12
|
+
import { R as x } from "../../chunks/rest-js-object-literals.js";
|
|
13
13
|
import { t as g, s as c } from "../../chunks/chart-object-literals.js";
|
|
14
|
-
import { e as
|
|
14
|
+
import { e as A, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
15
|
import { t as E, ag as S } from "../../chunks/index.js";
|
|
16
|
-
import { d as z, m as
|
|
17
|
-
import { bh as
|
|
18
|
-
const _ =
|
|
16
|
+
import { d as z, m as w } from "../../chunks/index3.js";
|
|
17
|
+
import { bh as N, bk as L, bb as K, bu as B } from "../../chunks/index2.js";
|
|
18
|
+
const _ = P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}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 = {
|
|
19
19
|
name: "line-chart-data-popover",
|
|
20
20
|
header: "header",
|
|
21
21
|
fab: "fab",
|
|
22
|
-
|
|
22
|
+
popoverPickList: "popover-pick-list",
|
|
23
23
|
sizeSection: "size-section",
|
|
24
24
|
applyButton: "apply-button"
|
|
25
25
|
};
|
|
26
26
|
class H extends k {
|
|
27
27
|
constructor() {
|
|
28
|
-
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist =
|
|
28
|
+
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist = h(), this.intervalSizeElement = h(), this.intervalTypeElement = h(), this.popoverElement = h(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigLineChartDataPopoverChange = v(), this.arcgisChartsConfigLineChartPopoverClose = v();
|
|
29
29
|
}
|
|
30
30
|
static {
|
|
31
31
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
@@ -38,28 +38,28 @@ class H extends k {
|
|
|
38
38
|
}
|
|
39
39
|
willUpdate(e) {
|
|
40
40
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
41
|
-
const t =
|
|
42
|
-
|
|
41
|
+
const t = $.map((i) => E(i, this.commonStrings));
|
|
42
|
+
b(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
43
43
|
const l = [g.Start, g.End].map((i) => S(i, this.commonStrings));
|
|
44
|
-
|
|
44
|
+
b(this.timeAggregationLabels, l) || (this.timeAggregationLabels = l);
|
|
45
45
|
}
|
|
46
46
|
updated() {
|
|
47
47
|
setTimeout(() => {
|
|
48
48
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
49
|
-
}, F.PopoverTimer),
|
|
49
|
+
}, F.PopoverTimer), A(this.popoverElement.value, this.open);
|
|
50
50
|
}
|
|
51
51
|
selectedContentChange(e, t) {
|
|
52
52
|
this.pickListHasChanged = D(e, t);
|
|
53
53
|
}
|
|
54
54
|
buildAggregationPickListItems() {
|
|
55
|
-
return u(
|
|
55
|
+
return u($, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels?.[t]} .value=${e} .selected=${d(e, this.selectedContent)}></calcite-list-item>`);
|
|
56
56
|
}
|
|
57
57
|
buildIntervalAlignmentPickListItems() {
|
|
58
58
|
const e = [g.Start, g.End];
|
|
59
59
|
return u(e, (t) => t, (t, s) => n`<calcite-list-item .label=${this.timeAggregationLabels?.[s]} .value=${t} .selected=${d(t, this.selectedContent)}></calcite-list-item>`);
|
|
60
60
|
}
|
|
61
61
|
buildPickListItem(e) {
|
|
62
|
-
return
|
|
62
|
+
return f(e.name, n`<calcite-list-item .label=${z(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${d(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
63
63
|
}
|
|
64
64
|
buildPickListItems(e) {
|
|
65
65
|
const t = this.layerFieldsInfo?.length ?? 0, s = [];
|
|
@@ -67,23 +67,23 @@ class H extends k {
|
|
|
67
67
|
case a.numericFields: {
|
|
68
68
|
for (let l = 0; l < t; l += 1) {
|
|
69
69
|
const i = this.layerFieldsInfo?.[l];
|
|
70
|
-
i &&
|
|
70
|
+
i && L(i) && s.push(this.buildPickListItem(i));
|
|
71
71
|
}
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
case a.xAxisField: {
|
|
75
75
|
for (let l = 0; l < t; l += 1) {
|
|
76
76
|
const i = this.layerFieldsInfo?.[l];
|
|
77
|
-
i && (
|
|
77
|
+
i && (L(i) || K(i) || B(i)) && s.push(this.buildPickListItem(i));
|
|
78
78
|
}
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
81
81
|
case a.splitByField: {
|
|
82
|
-
const l =
|
|
82
|
+
const l = f(" ", n`<calcite-list-item label=" " value=" " .selected=${d("", this.selectedContent)}></calcite-list-item>`);
|
|
83
83
|
s.push(l);
|
|
84
84
|
for (let i = 0; i < t; i += 1) {
|
|
85
|
-
const
|
|
86
|
-
|
|
85
|
+
const p = this.layerFieldsInfo?.[i];
|
|
86
|
+
p && (N(p) || p.type === x.String) && s.push(this.buildPickListItem(p));
|
|
87
87
|
}
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
@@ -97,7 +97,7 @@ class H extends k {
|
|
|
97
97
|
eventEmitter: this.arcgisChartsConfigLineChartDataPopoverChange,
|
|
98
98
|
contentKind: this.contentKind
|
|
99
99
|
};
|
|
100
|
-
|
|
100
|
+
I(e);
|
|
101
101
|
}
|
|
102
102
|
this.open = !1, this.arcgisChartsConfigLineChartPopoverClose.emit();
|
|
103
103
|
}
|
|
@@ -124,23 +124,23 @@ class H extends k {
|
|
|
124
124
|
}
|
|
125
125
|
renderAggregationType() {
|
|
126
126
|
const e = this.buildAggregationPickListItems();
|
|
127
|
-
return n`<calcite-list label class=${o(r.
|
|
127
|
+
return n`<calcite-list label class=${o(r.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
128
128
|
}
|
|
129
129
|
renderXAxisField() {
|
|
130
130
|
const e = this.buildPickListItems(a.xAxisField);
|
|
131
|
-
return n`<calcite-list label class=${o(r.
|
|
131
|
+
return n`<calcite-list label class=${o(r.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
132
132
|
}
|
|
133
133
|
renderNumericFields() {
|
|
134
134
|
const e = this.buildPickListItems(a.numericFields);
|
|
135
|
-
return n`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
135
|
+
return n`<calcite-list label class=${o(r.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
136
136
|
}
|
|
137
137
|
renderSplitByField() {
|
|
138
138
|
const e = this.buildPickListItems(a.splitByField);
|
|
139
|
-
return n`<calcite-list label class=${o(r.
|
|
139
|
+
return n`<calcite-list label class=${o(r.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
140
140
|
}
|
|
141
141
|
renderIntervalAlignment() {
|
|
142
142
|
const e = this.buildIntervalAlignmentPickListItems();
|
|
143
|
-
return n`<calcite-list label class=${o(r.
|
|
143
|
+
return n`<calcite-list label class=${o(r.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
144
144
|
}
|
|
145
145
|
renderInterval() {
|
|
146
146
|
const e = this.selectedContent, t = [
|
|
@@ -152,7 +152,7 @@ class H extends k {
|
|
|
152
152
|
c.Month,
|
|
153
153
|
c.Year
|
|
154
154
|
];
|
|
155
|
-
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=${T(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=${
|
|
155
|
+
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=${T(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=${w(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>`;
|
|
156
156
|
}
|
|
157
157
|
renderPopoverInfo() {
|
|
158
158
|
let e;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
-
import { repeat as
|
|
3
|
+
import { repeat as m } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as g } from "lit/directives/keyed.js";
|
|
5
5
|
import { isEqual as k } from "lodash-es";
|
|
6
|
-
import { P as
|
|
7
|
-
import { p as f, b as $, e as
|
|
6
|
+
import { P as o } from "../../chunks/interfaces.js";
|
|
7
|
+
import { p as f, b as $, e as d, f as P } from "../../chunks/chart-ui-utils2.js";
|
|
8
8
|
import { u } from "../../chunks/useT9n.js";
|
|
9
|
-
import { css as
|
|
10
|
-
import { createRef as
|
|
11
|
-
import { LitElement as
|
|
12
|
-
import { e as
|
|
9
|
+
import { css as L, html as n } from "lit";
|
|
10
|
+
import { createRef as C, ref as h } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as y, createEvent as b, safeClassMap as l } from "@arcgis/lumina";
|
|
12
|
+
import { e as F, p as I } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { t as D } from "../../chunks/index.js";
|
|
14
14
|
import { d as x } from "../../chunks/index3.js";
|
|
15
15
|
import { bh as S, bk as T } from "../../chunks/index2.js";
|
|
16
16
|
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
-
import { a as
|
|
18
|
-
const
|
|
17
|
+
import { a as r } from "../../chunks/common.js";
|
|
18
|
+
const s = {
|
|
19
19
|
name: "pie-chart-data-popover",
|
|
20
20
|
header: "header",
|
|
21
21
|
fab: "fab",
|
|
22
|
-
|
|
22
|
+
popoverPickList: "popover-pick-list",
|
|
23
23
|
flipClass: "sort-counter-clockwise",
|
|
24
|
+
sortOrderPickList: "sort-order-pick-list",
|
|
24
25
|
panel: "panel"
|
|
25
|
-
}, w =
|
|
26
|
-
class A extends
|
|
26
|
+
}, w = L`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.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-counter-clockwise{transform:scaleX(-1)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
27
|
+
class A extends y {
|
|
27
28
|
constructor() {
|
|
28
|
-
super(...arguments), this._messages = u(), this.commonStrings = u({ name: "common", blocking: !0 }), this.picklist =
|
|
29
|
+
super(...arguments), this._messages = u(), this.commonStrings = u({ name: "common", blocking: !0 }), this.picklist = C(), this.popoverElement = C(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPieChartDataPopoverChange = b(), this.arcgisChartsConfigPopoverClose = b();
|
|
29
30
|
}
|
|
30
31
|
static {
|
|
31
32
|
this.properties = { aggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
@@ -42,60 +43,60 @@ class A extends P {
|
|
|
42
43
|
k(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
43
44
|
}
|
|
44
45
|
updated() {
|
|
45
|
-
|
|
46
|
+
F(this.popoverElement.value, this.open), setTimeout(() => {
|
|
46
47
|
this.picklist.value?.setFocus();
|
|
47
48
|
}, $.PopoverTimer);
|
|
48
49
|
}
|
|
49
50
|
selectedContentChange(e, t) {
|
|
50
|
-
this.pickListHasChanged =
|
|
51
|
+
this.pickListHasChanged = I(e, t);
|
|
51
52
|
}
|
|
52
53
|
buildAggregationPickListItems() {
|
|
53
|
-
return
|
|
54
|
+
return m(f, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${d(e, this.selectedContent)}></calcite-list-item>`);
|
|
54
55
|
}
|
|
55
56
|
buildSortOrder() {
|
|
56
|
-
const e = Object.keys(
|
|
57
|
-
return e.splice(e.indexOf(
|
|
57
|
+
const e = Object.keys(r);
|
|
58
|
+
return e.splice(e.indexOf(r.customSort), 1), m(e, (t) => t, (t) => {
|
|
58
59
|
let i = "string";
|
|
59
60
|
const c = "rotate";
|
|
60
|
-
let
|
|
61
|
+
let a = "";
|
|
61
62
|
switch (t) {
|
|
62
|
-
case
|
|
63
|
+
case r.labelAsc:
|
|
63
64
|
i = "string";
|
|
64
65
|
break;
|
|
65
|
-
case
|
|
66
|
-
i = "string",
|
|
66
|
+
case r.labelDesc:
|
|
67
|
+
i = "string", a = s.flipClass;
|
|
67
68
|
break;
|
|
68
|
-
case
|
|
69
|
+
case r.valueAsc:
|
|
69
70
|
i = "number";
|
|
70
71
|
break;
|
|
71
|
-
case
|
|
72
|
-
i = "number",
|
|
72
|
+
case r.valueDesc:
|
|
73
|
+
i = "number", a = s.flipClass;
|
|
73
74
|
break;
|
|
74
75
|
// Do nothing for customSort for now
|
|
75
|
-
case
|
|
76
|
+
case r.customSort:
|
|
76
77
|
}
|
|
77
|
-
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${
|
|
78
|
+
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${r[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${l(a)} slot=content-end .icon=${c}></calcite-icon></calcite-list-item>`;
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
81
|
buildPickListItem(e) {
|
|
81
|
-
return g(e.name, n`<calcite-list-item .label=${x(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${
|
|
82
|
+
return g(e.name, n`<calcite-list-item .label=${x(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${d(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
82
83
|
}
|
|
83
84
|
buildPickListItems(e) {
|
|
84
85
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
85
86
|
switch (e) {
|
|
86
|
-
case
|
|
87
|
+
case o.numericFields: {
|
|
87
88
|
for (let c = 0; c < t; c += 1) {
|
|
88
|
-
const
|
|
89
|
-
T(
|
|
89
|
+
const a = this.layerFieldsInfo[c];
|
|
90
|
+
T(a) && i.push(this.buildPickListItem(a));
|
|
90
91
|
}
|
|
91
92
|
break;
|
|
92
93
|
}
|
|
93
|
-
case
|
|
94
|
-
const c = g(" ", n`<calcite-list-item label=" " value=" " .selected=${
|
|
94
|
+
case o.category: {
|
|
95
|
+
const c = g(" ", n`<calcite-list-item label=" " value=" " .selected=${d("", this.selectedContent)}></calcite-list-item>`);
|
|
95
96
|
i.push(c);
|
|
96
|
-
for (let
|
|
97
|
-
const
|
|
98
|
-
(S(
|
|
97
|
+
for (let a = 0; a < t; a += 1) {
|
|
98
|
+
const p = this.layerFieldsInfo[a];
|
|
99
|
+
(S(p) || p.type === E.String) && i.push(this.buildPickListItem(p));
|
|
99
100
|
}
|
|
100
101
|
break;
|
|
101
102
|
}
|
|
@@ -103,13 +104,13 @@ class A extends P {
|
|
|
103
104
|
return i;
|
|
104
105
|
}
|
|
105
106
|
closePopover() {
|
|
106
|
-
if (this.contentKind ===
|
|
107
|
+
if (this.contentKind === o.numericFields && this.pickListHasChanged) {
|
|
107
108
|
const e = {
|
|
108
109
|
pickListElement: this.picklist.value,
|
|
109
110
|
eventEmitter: this.arcgisChartsConfigPieChartDataPopoverChange,
|
|
110
111
|
contentKind: this.contentKind
|
|
111
112
|
};
|
|
112
|
-
|
|
113
|
+
P(e);
|
|
113
114
|
}
|
|
114
115
|
this.arcgisChartsConfigPopoverClose.emit();
|
|
115
116
|
}
|
|
@@ -129,33 +130,33 @@ class A extends P {
|
|
|
129
130
|
}
|
|
130
131
|
renderAggregationType() {
|
|
131
132
|
const e = this.buildAggregationPickListItems();
|
|
132
|
-
return n`<calcite-list label class=${
|
|
133
|
+
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
133
134
|
}
|
|
134
135
|
renderCategory() {
|
|
135
|
-
const e = this.buildPickListItems(
|
|
136
|
-
return n`<calcite-list label class=${
|
|
136
|
+
const e = this.buildPickListItems(o.category);
|
|
137
|
+
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${h(this.picklist)}>${e}</calcite-list>`;
|
|
137
138
|
}
|
|
138
139
|
renderNumericFields() {
|
|
139
|
-
const e = this.buildPickListItems(
|
|
140
|
-
return n`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${
|
|
140
|
+
const e = this.buildPickListItems(o.numericFields);
|
|
141
|
+
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${h(this.picklist)}>${e}</calcite-list>`;
|
|
141
142
|
}
|
|
142
143
|
renderSortOrder() {
|
|
143
144
|
const e = this.buildSortOrder();
|
|
144
|
-
return n`<calcite-list label selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
145
|
+
return n`<calcite-list label class=${`${s.popoverPickList} ${s.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
145
146
|
}
|
|
146
147
|
renderPopoverInfo() {
|
|
147
148
|
let e;
|
|
148
149
|
switch (this.contentKind) {
|
|
149
|
-
case
|
|
150
|
+
case o.aggregation:
|
|
150
151
|
e = this.renderAggregationType();
|
|
151
152
|
break;
|
|
152
|
-
case
|
|
153
|
+
case o.category:
|
|
153
154
|
e = this.renderCategory();
|
|
154
155
|
break;
|
|
155
|
-
case
|
|
156
|
+
case o.numericFields:
|
|
156
157
|
e = this.renderNumericFields();
|
|
157
158
|
break;
|
|
158
|
-
case
|
|
159
|
+
case o.sortOrder:
|
|
159
160
|
e = this.renderSortOrder();
|
|
160
161
|
break;
|
|
161
162
|
}
|
|
@@ -163,7 +164,7 @@ class A extends P {
|
|
|
163
164
|
}
|
|
164
165
|
render() {
|
|
165
166
|
let e;
|
|
166
|
-
return this.contentKind ===
|
|
167
|
+
return this.contentKind === o.numericFields && (e = n`<div slot=footer><calcite-fab class=${l(s.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=${l(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${h(this.popoverElement)}><calcite-panel class=${l(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
v("arcgis-charts-config-pie-chart-popover", A);
|
|
@@ -9,16 +9,16 @@ import { createRef as h, ref as d } from "lit/directives/ref.js";
|
|
|
9
9
|
import { LitElement as u, createEvent as l, safeClassMap as r } from "@arcgis/lumina";
|
|
10
10
|
import { i as m } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
import { e as $ } from "../../chunks/popover-ui-utils.js";
|
|
12
|
-
import { d as
|
|
13
|
-
import { bk as
|
|
12
|
+
import { d as P } from "../../chunks/index3.js";
|
|
13
|
+
import { bk as b } from "../../chunks/index2.js";
|
|
14
14
|
const n = {
|
|
15
15
|
scatterplotPopover: "scatter-plot-popover",
|
|
16
16
|
fillColor: "fill-color",
|
|
17
17
|
header: "header",
|
|
18
|
-
|
|
18
|
+
popoverPickList: "popover-pick-list",
|
|
19
19
|
pickListPanel: "pick-list-panel"
|
|
20
|
-
}, F = f`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{width:100%}.pick-list-panel{max-height:60vh}`;
|
|
21
|
-
class
|
|
20
|
+
}, F = f`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{width:100%}.pick-list-panel{max-height:60vh}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}`;
|
|
21
|
+
class k extends u {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments), this.picklist = h(), this._messages = S(), this.popoverElement = h(), this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPopoverClose = l(), this.arcgisChartsConfigScatterplotFillColorChange = l(), this.arcgisChartsConfigScatterplotLineStyleChange = l(), this.arcgisChartsConfigScatterplotSizeVariableFieldChange = l(), this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange = l(), this.arcgisChartsConfigScatterplotXYFieldChange = l();
|
|
24
24
|
}
|
|
@@ -61,15 +61,15 @@ class L extends u {
|
|
|
61
61
|
(this.contentKind === a.sizeVariable || this.contentKind === a.additionalTooltipFields) && t.push(c(" ", o`<calcite-list-item label=" " value=" " .selected=${p("", this.selectedContent)}></calcite-list-item>`));
|
|
62
62
|
for (let i = 0; i < e; i += 1) {
|
|
63
63
|
const s = this.layerFieldsInfo?.[i] ?? void 0;
|
|
64
|
-
if (s !== void 0 && (this.contentKind === a.additionalTooltipFields ||
|
|
65
|
-
const C =
|
|
64
|
+
if (s !== void 0 && (this.contentKind === a.additionalTooltipFields || b(s))) {
|
|
65
|
+
const C = P(this.layerFieldsInfo, s.name);
|
|
66
66
|
t.push(c(s.name, o`<calcite-list-item .label=${C} .value=${s.name} .selected=${p(s.name, this.selectedContent)}></calcite-list-item>`));
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
return o`<calcite-panel class=${r(n.pickListPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(n.header)}>${this.headingTitle ?? ""}</div><calcite-list label class=${r(n.
|
|
69
|
+
return o`<calcite-panel class=${r(n.pickListPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(n.header)}>${this.headingTitle ?? ""}</div><calcite-list label class=${r(n.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onFieldSelectionChange} ${d(this.picklist)}>${t}</calcite-list></calcite-panel>`;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
g("arcgis-charts-config-scatter-plot-popover",
|
|
72
|
+
g("arcgis-charts-config-scatter-plot-popover", k);
|
|
73
73
|
export {
|
|
74
|
-
|
|
74
|
+
k as ArcgisChartsConfigScatterplotPopover
|
|
75
75
|
};
|