@arcgis/charts-components 5.1.0-next.7 → 5.1.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/{TSQ75643.js → 24ZMVNPY.js} +1 -1
- package/dist/cdn/2E6UOES5.js +2 -0
- package/dist/cdn/{E2OGP7R4.js → 37TFH77K.js} +1 -1
- package/dist/cdn/{KGYOF4HQ.js → 3J7OE25D.js} +1 -1
- package/dist/cdn/{T4P6X62H.js → 3KPOZY7U.js} +1 -1
- package/dist/cdn/{RHSZB5ZH.js → 3MBJIZXQ.js} +1 -1
- package/dist/cdn/{ZWABUONN.js → 3MJNDW3O.js} +1 -1
- package/dist/cdn/{SBJDJQ5W.js → 3V24TSG3.js} +1 -1
- package/dist/cdn/472LMJV5.js +2 -0
- package/dist/cdn/{25UJ6G2G.js → 4KLIA33J.js} +1 -1
- package/dist/cdn/{SJ74QWGI.js → 4RTN2F3A.js} +1 -1
- package/dist/cdn/{MBFKIRCK.js → 5IBIN5PX.js} +1 -1
- package/dist/cdn/5UNMJRBV.js +2 -0
- package/dist/cdn/{X2S3V4HD.js → 6PFSSXHO.js} +1 -1
- package/dist/cdn/7EMMEDLK.js +2 -0
- package/dist/cdn/{ZY42XS5N.js → APM2UUMS.js} +1 -1
- package/dist/cdn/{BRRSD3O4.js → BIAHCUQC.js} +1 -1
- package/dist/cdn/{BVFVLX3U.js → CKEEXG7J.js} +7 -7
- package/dist/cdn/CMRNFSZC.js +4 -0
- package/dist/cdn/{F3M5Q4I6.js → CONUNOKN.js} +1 -1
- package/dist/cdn/{UWJ3DRYN.js → CPWMQOWE.js} +1 -1
- package/dist/cdn/CYO4M5FA.js +2 -0
- package/dist/cdn/{AYMM5RTN.js → DCSM57NL.js} +1 -1
- package/dist/cdn/{3KP75DDX.js → DU6SCSWY.js} +1 -1
- package/dist/cdn/{6ZZVPJTU.js → DUCASUB5.js} +1 -1
- package/dist/cdn/{D2NLBPAB.js → E2DPW452.js} +1 -1
- package/dist/cdn/{FG2SKN2Q.js → E7WKMXBN.js} +1 -1
- package/dist/cdn/{LKK7N2C5.js → EO756WDD.js} +1 -1
- package/dist/cdn/{AHJME35X.js → FFYDXNXA.js} +1 -1
- package/dist/cdn/{FHI4UU5O.js → FJSIGPKS.js} +1 -1
- package/dist/cdn/FM4O2SFI.js +56 -0
- package/dist/cdn/{5PUNMMSL.js → FPZLQV2G.js} +1 -1
- package/dist/cdn/{ESIO74ER.js → G6QUYWLP.js} +1 -1
- package/dist/cdn/{BYIBXD4Q.js → G76ZI2ZC.js} +1 -1
- package/dist/cdn/{XG3LUWT6.js → GD3XF3YV.js} +1 -1
- package/dist/cdn/GLSDBV72.js +2 -0
- package/dist/cdn/{MXLNSW6C.js → GYWWWJWB.js} +1 -1
- package/dist/cdn/{YC2QAZQ5.js → IDCUWB47.js} +1 -1
- package/dist/cdn/{NXDHPVLZ.js → IPU3GNA6.js} +1 -1
- package/dist/cdn/IRNA25SY.js +2 -0
- package/dist/cdn/{MOU5IBB7.js → ITDXKVUB.js} +1 -1
- package/dist/cdn/{QWZNK3OV.js → JA7R63SP.js} +1 -1
- package/dist/cdn/{FJUBR4KW.js → KFQTTMZU.js} +1 -1
- package/dist/cdn/{76YPTUIV.js → KITWKIQT.js} +1 -1
- package/dist/cdn/L32OCJD2.js +2 -0
- package/dist/cdn/{FSNIJZ4N.js → LGBK4T3V.js} +1 -1
- package/dist/cdn/{S2T2KPSE.js → LN2MYFKL.js} +1 -1
- package/dist/cdn/{BHF54XO4.js → LQ3P2GFC.js} +1 -1
- package/dist/cdn/LRRJCSJK.js +2 -0
- package/dist/cdn/{NKSFFZ43.js → M4QXPKAQ.js} +1 -1
- package/dist/cdn/MMPVU2IV.js +2 -0
- package/dist/cdn/{3IBNI7DB.js → MTYGJ44X.js} +1 -1
- package/dist/cdn/{JLFJWDPQ.js → MZD5VJSC.js} +1 -1
- package/dist/cdn/{3V3NUR6Q.js → N2ZRK46C.js} +1 -1
- package/dist/cdn/{64NE6NLA.js → N6YCO6NE.js} +1 -1
- package/dist/cdn/{VL4N7T3G.js → O4MXHOEX.js} +1 -1
- package/dist/cdn/{L4E7PSXN.js → OBSMBH62.js} +1 -1
- package/dist/cdn/{2JUKPBNE.js → OZ7IZCS5.js} +1 -1
- package/dist/cdn/{LKI3UTOI.js → PCHLTJ76.js} +1 -1
- package/dist/cdn/{STQIUWAA.js → PCYK43OC.js} +1 -1
- package/dist/cdn/{IU5GCIOV.js → R4MVTPEY.js} +1 -1
- package/dist/cdn/{W3E73SQV.js → R7UV3FXZ.js} +1 -1
- package/dist/cdn/{ZD2OFLRT.js → RDF2VETY.js} +1 -1
- package/dist/cdn/RZEX2MXS.js +2 -0
- package/dist/cdn/{OZLXNKH5.js → S4NHHCVM.js} +1 -1
- package/dist/cdn/{BF3HDW6F.js → SIICUGBH.js} +1 -1
- package/dist/cdn/{AND6TXZC.js → SLC3TO6I.js} +1 -1
- package/dist/cdn/{U3YXEG4D.js → SPJB74EZ.js} +1 -1
- package/dist/cdn/{VK546WZD.js → SQ2LPEU6.js} +1 -1
- package/dist/cdn/{ZPBTQ3VC.js → TADL5VDR.js} +1 -1
- package/dist/cdn/U57WLEFE.js +2 -0
- package/dist/cdn/{LR3V4CJY.js → U7RUXGWS.js} +1 -1
- package/dist/cdn/{SD2G2LCW.js → UZXMOHSJ.js} +1 -1
- package/dist/cdn/{5RX4R45J.js → VKTCJE62.js} +1 -1
- package/dist/cdn/{6LS2WSZ5.js → W4GPDO26.js} +1 -1
- package/dist/cdn/{JF4TYCG5.js → W62POWRZ.js} +1 -1
- package/dist/cdn/{T2ZLECUS.js → WDVEXO33.js} +1 -1
- package/dist/cdn/{IUWWS4XW.js → WL34DGXY.js} +1 -1
- package/dist/cdn/{RJN6DNHI.js → WVNSR4SR.js} +1 -1
- package/dist/cdn/{LY46M2NC.js → XKYZJAX2.js} +1 -1
- package/dist/cdn/{HYEINZ2W.js → YAIXJAXB.js} +1 -1
- package/dist/cdn/{RUB23UKZ.js → YPJL3ONL.js} +1 -1
- package/dist/cdn/{LIWSW6ON.js → YXTRZZW6.js} +1 -1
- package/dist/cdn/YYIKPG5C.js +2 -0
- package/dist/cdn/{DFBK7RTI.js → Z3THOKP3.js} +1 -1
- package/dist/cdn/{BPBBMXA3.js → ZDOG5ZE7.js} +1 -1
- package/dist/cdn/{MY4FFGT5.js → ZTZHFZ2Q.js} +1 -1
- package/dist/cdn/{4XV6HEXY.js → ZUGZLTC4.js} +1 -1
- package/dist/cdn/{36Z3PUIB.js → ZX2U6NZL.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/bar-chart-series.js +5 -3
- package/dist/chunks/index.js +16 -16
- package/dist/chunks/index6.js +18 -0
- package/dist/components/arcgis-chart/customElement.js +2011 -2044
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +21 -23
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -16
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +16 -18
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +24 -26
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +21 -23
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +23 -25
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +8 -10
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +11 -14
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +19 -21
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +11 -14
- package/dist/components/arcgis-charts-info-modal/customElement.js +29 -14
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/json-schema/index.d.ts +2 -2
- package/dist/loader.js +3 -3
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +2 -2
- package/dist/spec/rest-js-types.d.ts +15 -0
- package/dist/spec/web-chart.d.ts +4 -4
- package/dist/utils/chart-config/utils/index.d.ts +3 -0
- package/dist/utils/layer/query-parser/index.d.ts +4 -1
- package/dist/utils/localization/interfaces.d.ts +1 -0
- package/dist/utils/misc/index.d.ts +13 -7
- package/dist/utils/type-guards/index.d.ts +15 -8
- package/package.json +3 -3
- package/dist/cdn/6PIJSBNU.js +0 -2
- package/dist/cdn/7OXO43LP.js +0 -58
- package/dist/cdn/FRATWU4Z.js +0 -2
- package/dist/cdn/IBQT5TXA.js +0 -2
- package/dist/cdn/J3OY6YTK.js +0 -2
- package/dist/cdn/JQVTSKVB.js +0 -2
- package/dist/cdn/JWTZ3Q2T.js +0 -2
- package/dist/cdn/NLXKYZUI.js +0 -2
- package/dist/cdn/OX7HOZ72.js +0 -2
- package/dist/cdn/PJPMROB7.js +0 -2
- package/dist/cdn/RWYS4UGQ.js +0 -2
- package/dist/cdn/RX4COZVH.js +0 -2
- package/dist/cdn/Z6343LZG.js +0 -2
- package/dist/cdn/ZYEUKPGT.js +0 -2
|
@@ -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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as g } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as f, 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 "../../chunks/series-types.js";
|
|
@@ -9,7 +9,7 @@ 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 v, cY as y } 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 u } from "../../chunks/popover-ui-utils.js";
|
|
30
30
|
import { S as n } from "../../chunks/interfaces.js";
|
|
31
|
-
import { a as
|
|
32
|
-
import { u as
|
|
33
|
-
import { createRef as
|
|
34
|
-
import { LitElement as
|
|
31
|
+
import { a as S, l as $, c as h } from "../../chunks/chart-ui-utils2.js";
|
|
32
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
33
|
+
import { createRef as m, ref as d } from "lit/directives/ref.js";
|
|
34
|
+
import { LitElement as P, createEvent as l, safeClassMap as a } from "@arcgis/lumina";
|
|
35
35
|
const r = {
|
|
36
36
|
jsAppFlyout: "js-app-flyout",
|
|
37
37
|
scatterplotPopover: "scatter-plot-popover",
|
|
@@ -39,10 +39,10 @@ const r = {
|
|
|
39
39
|
header: "header",
|
|
40
40
|
pickListItemLabel: "pick-list-item-label",
|
|
41
41
|
pickListPanel: "pick-list-panel"
|
|
42
|
-
}, F =
|
|
43
|
-
class L extends
|
|
42
|
+
}, F = 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)}:host{width:100%}.pick-list-panel{max-height:60vh}`;
|
|
43
|
+
class L extends P {
|
|
44
44
|
constructor() {
|
|
45
|
-
super(...arguments), this.picklist =
|
|
45
|
+
super(...arguments), this.picklist = m(), this._messages = b(), this.popoverElement = m(), this.layerFieldsInfo = [], this.arcgisChartsConfigPopoverClose = l(), this.arcgisChartsConfigScatterplotFillColorChange = l(), this.arcgisChartsConfigScatterplotLineStyleChange = l(), this.arcgisChartsConfigScatterplotSizeVariableFieldChange = l(), this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange = l(), this.arcgisChartsConfigScatterplotXYFieldChange = l();
|
|
46
46
|
}
|
|
47
47
|
static {
|
|
48
48
|
this.properties = { messageOverrides: 0, headingTitle: 1, contentKind: 1, selectedContent: 1, referenceElement: 0, placement: 1, open: 5, layerFieldsInfo: 0 };
|
|
@@ -56,9 +56,7 @@ class L extends b {
|
|
|
56
56
|
updated() {
|
|
57
57
|
setTimeout(() => {
|
|
58
58
|
this.picklist.value?.setFocus();
|
|
59
|
-
},
|
|
60
|
-
this.popoverElement.value?.reposition();
|
|
61
|
-
}, h.PopoverTimer);
|
|
59
|
+
}, S.PopoverTimer), u(this.popoverElement.value, this.open);
|
|
62
60
|
}
|
|
63
61
|
seriesPopoverClose() {
|
|
64
62
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
@@ -78,22 +76,22 @@ class L extends b {
|
|
|
78
76
|
}
|
|
79
77
|
render() {
|
|
80
78
|
const e = this.selectedContent, t = this.selectedContent;
|
|
81
|
-
return o`<div class=${a({ [r.jsAppFlyout]: !0 })}><calcite-popover class=${a(r.scatterplotPopover)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${$(this.placement)} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${
|
|
79
|
+
return o`<div class=${a({ [r.jsAppFlyout]: !0 })}><calcite-popover class=${a(r.scatterplotPopover)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${$(this.placement)} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${d(this.popoverElement)}>${Array.isArray(e) ? o`<arcgis-charts-config-color-style .header=${this._messages.fillColor} class=${a(r.fillColor)} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` : null}${t?.type === p.SLS ? o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` : null}${!Array.isArray(e) && t?.type !== p.SLS ? this.renderVariablePickList() : null}</calcite-popover></div>`;
|
|
82
80
|
}
|
|
83
81
|
renderVariablePickList() {
|
|
84
82
|
const e = this.layerFieldsInfo?.length ?? 0, t = [];
|
|
85
|
-
(this.contentKind === n.sizeVariable || this.contentKind === n.additionalTooltipFields) && t.push(c(" ", o`<calcite-list-item label=" " value=" " .selected=${
|
|
83
|
+
(this.contentKind === n.sizeVariable || this.contentKind === n.additionalTooltipFields) && t.push(c(" ", o`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`));
|
|
86
84
|
for (let i = 0; i < e; i += 1) {
|
|
87
85
|
const s = this.layerFieldsInfo?.[i] ?? void 0;
|
|
88
|
-
if (s !== void 0 && (this.contentKind === n.additionalTooltipFields ||
|
|
89
|
-
const
|
|
90
|
-
t.push(c(s.name, o`<calcite-list-item .label=${
|
|
86
|
+
if (s !== void 0 && (this.contentKind === n.additionalTooltipFields || v(s))) {
|
|
87
|
+
const C = y(this.layerFieldsInfo, s.name);
|
|
88
|
+
t.push(c(s.name, o`<calcite-list-item .label=${C} .value=${s.name} .selected=${h(s.name, this.selectedContent)}></calcite-list-item>`));
|
|
91
89
|
}
|
|
92
90
|
}
|
|
93
|
-
return o`<calcite-panel class=${a(r.pickListPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${a(r.header)}>${this.headingTitle ?? ""}</div><calcite-list label class=${a(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onFieldSelectionChange} ${
|
|
91
|
+
return o`<calcite-panel class=${a(r.pickListPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${a(r.header)}>${this.headingTitle ?? ""}</div><calcite-list label class=${a(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onFieldSelectionChange} ${d(this.picklist)}>${t}</calcite-list></calcite-panel>`;
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
|
-
|
|
94
|
+
g("arcgis-charts-config-scatter-plot-popover", L);
|
|
97
95
|
export {
|
|
98
96
|
L as ArcgisChartsConfigScatterplotPopover
|
|
99
97
|
};
|
|
@@ -26,33 +26,30 @@ 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 r } from "../../chunks/popover-ui-utils.js";
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { LitElement as d, createEvent as s, safeClassMap as o } from "@arcgis/lumina";
|
|
29
|
+
import { u as p } from "../../chunks/useT9n.js";
|
|
30
|
+
import { createRef as n, ref as h } from "lit/directives/ref.js";
|
|
31
|
+
import { LitElement as m, createEvent as s, safeClassMap as o } from "@arcgis/lumina";
|
|
33
32
|
import { M as e } from "../../chunks/common.js";
|
|
34
33
|
const i = {
|
|
35
34
|
selectChartComponent: "select-chart-component",
|
|
36
35
|
jsAppFlyout: "js-app-flyout",
|
|
37
36
|
panel: "panel"
|
|
38
|
-
},
|
|
39
|
-
class
|
|
37
|
+
}, d = l`.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)}.select-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}calcite-block{width:var(--arcgis-charts-config-calcite-block-default-width);height:var(--arcgis-charts-config-calcite-block-default-height);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.header{margin:0}.panel{max-height:60vh}`;
|
|
38
|
+
class g extends m {
|
|
40
39
|
constructor() {
|
|
41
|
-
super(...arguments), this._messages =
|
|
40
|
+
super(...arguments), this._messages = p(), this.selectChartTypePopover = n(), this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSelectChartTypeChange = s();
|
|
42
41
|
}
|
|
43
42
|
static {
|
|
44
43
|
this.properties = { messageOverrides: 0, headerTitle: 1, layerId: 1, open: 5, referenceElement: 0, popoverPlacement: 1, selectedModelType: 1 };
|
|
45
44
|
}
|
|
46
45
|
static {
|
|
47
|
-
this.styles =
|
|
46
|
+
this.styles = d;
|
|
48
47
|
}
|
|
49
48
|
async reposition() {
|
|
50
49
|
await this.selectChartTypePopover.value?.reposition();
|
|
51
50
|
}
|
|
52
51
|
updated() {
|
|
53
|
-
r(this.selectChartTypePopover.value, this.open)
|
|
54
|
-
this.selectChartTypePopover.value?.reposition();
|
|
55
|
-
}, p.PopoverTimer);
|
|
52
|
+
r(this.selectChartTypePopover.value, this.open);
|
|
56
53
|
}
|
|
57
54
|
buildChartTypesList() {
|
|
58
55
|
return a`<calcite-list label @click=${this.onChartTypeClick}><calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType === e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.lineChart} .value=${e.LineChart} .selected=${this.selectedModelType === e.LineChart}><calcite-icon slot=content-start icon=graph-time-series></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.pieChart} .value=${e.PieChart} .selected=${this.selectedModelType === e.PieChart}><calcite-icon slot=content-start icon=pie-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType === e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType === e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.boxPlot} .value=${e.BoxPlot} .selected=${this.selectedModelType === e.BoxPlot}><calcite-icon slot=content-start icon=box-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.calendarHeatChart} .value=${e.HeatChart} .selected=${this.selectedModelType === e.HeatChart}><calcite-icon slot=content-start icon=calendar-heat-chart></calcite-icon></calcite-list-item></calcite-list>`;
|
|
@@ -74,10 +71,10 @@ class C extends d {
|
|
|
74
71
|
return a`<div class=${o({
|
|
75
72
|
[i.selectChartComponent]: !0,
|
|
76
73
|
[i.jsAppFlyout]: !0
|
|
77
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top", "bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${
|
|
74
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top", "bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${h(this.selectChartTypePopover)}><calcite-panel class=${o(i.panel)} .heading=${this.headerTitle ?? this._messages.chooseChartType} closable @calcitePanelClose=${this.popoverClose} .closed=${!this.open}>${this.buildChartTypesList()}</calcite-panel></calcite-popover></div>`;
|
|
78
75
|
}
|
|
79
76
|
}
|
|
80
|
-
c("arcgis-charts-config-select-chart-type-popover",
|
|
77
|
+
c("arcgis-charts-config-select-chart-type-popover", g);
|
|
81
78
|
export {
|
|
82
|
-
|
|
79
|
+
g as ArcgisChartsConfigSelectChartTypePopover
|
|
83
80
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
2
|
+
import { c as s } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as n, html as i } from "lit";
|
|
4
|
+
import { LitElement as c, safeClassMap as e, safeStyleMap as r } from "@arcgis/lumina";
|
|
5
|
+
import { i as a } from "../../chunks/index6.js";
|
|
5
6
|
import "@arcgis/toolkit/intl";
|
|
6
7
|
import "lodash-es";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "d3-array";
|
|
9
10
|
import "@arcgis/toolkit/type";
|
|
10
11
|
import "../../chunks/series-types.js";
|
|
11
|
-
import { d6 as
|
|
12
|
+
import { d6 as d } from "../../chunks/index.js";
|
|
12
13
|
import "@arcgis/core/Graphic.js";
|
|
13
14
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
15
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -25,26 +26,40 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
25
26
|
import "@arcgis/core/time/TimeExtent.js";
|
|
26
27
|
import "@arcgis/core/core/promiseUtils.js";
|
|
27
28
|
import "@arcgis/toolkit/dom";
|
|
28
|
-
const
|
|
29
|
-
class
|
|
29
|
+
const h = n`.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{display:block;width:100%;height:100%;overflow:auto}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.container{box-sizing:border-box;width:100%;height:100%;display:grid;place-items:center;align-content:center;justify-content:center;padding:1rem;background-color:var(--calcite-color-foreground-1);text-align:left}.container h3.heading-true{color:var(--calcite-color-text-1);margin-bottom:auto;background:#0000000d;height:30px;padding-left:.5rem;padding-top:.5rem;justify-self:stretch;text-align:left}.container h3.heading-false{background:var(--calcite-color-foreground-1);margin-bottom:auto}.container p{color:var(--calcite-color-text-1);justify-self:stretch;text-align:left}.chart-loader-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1001;background:var(--calcite-color-foreground-1)}`, l = { Container: "container", ChartLoaderOverlay: "chart-loader-overlay" };
|
|
30
|
+
class p extends c {
|
|
30
31
|
constructor() {
|
|
31
32
|
super(...arguments), this.message = "", this.heading = "", this.showErrorModalInfo = !1;
|
|
32
33
|
}
|
|
33
34
|
static {
|
|
34
|
-
this.properties = { message: 1, heading: 1, showErrorModalInfo: 5, showLoader: 5,
|
|
35
|
+
this.properties = { message: 1, heading: 1, showErrorModalInfo: 5, showLoader: 5, loaderColors: 0, calciteThemeApplied: 1 };
|
|
35
36
|
}
|
|
36
37
|
static {
|
|
37
|
-
this.styles =
|
|
38
|
+
this.styles = h;
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
|
-
let t = null;
|
|
41
|
-
return this.
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
let t = null, o;
|
|
42
|
+
return this.loaderColors?.curtainColor && (this.calciteThemeApplied === "dark" ? o = a({
|
|
43
|
+
r: this.loaderColors.curtainColor[0],
|
|
44
|
+
g: this.loaderColors.curtainColor[1],
|
|
45
|
+
b: this.loaderColors.curtainColor[2],
|
|
46
|
+
a: this.loaderColors.curtainColor[3] / 255
|
|
47
|
+
}) ? "var(--calcite-color-text-inverse)" : "var(--calcite-color-text-1)" : o = a({
|
|
48
|
+
r: this.loaderColors.curtainColor[0],
|
|
49
|
+
g: this.loaderColors.curtainColor[1],
|
|
50
|
+
b: this.loaderColors.curtainColor[2],
|
|
51
|
+
a: this.loaderColors.curtainColor[3] / 255
|
|
52
|
+
}) ? "var(--calcite-color-text-1)" : "var(--calcite-color-text-inverse)"), this.showErrorModalInfo ? t = i`<div class=${e(l.Container)} style=${r(this.loaderColors?.curtainColor ? { background: `rgb(${this.loaderColors?.curtainColor.toString()})` } : void 0)}><h3 class=${e(this.heading !== "" ? "heading-true" : "heading-false")} style=${r(o ? { color: o } : void 0)}>${this.heading}</h3><p style=${r(o ? { color: o } : void 0)} .innerHTML=${d(this.message) ?? ""}></p></div>` : this.showLoader && (t = i`<div class=${e(l.ChartLoaderOverlay)} style=${r({
|
|
53
|
+
...this.loaderColors?.curtainColor && {
|
|
54
|
+
background: `rgb(${this.loaderColors.curtainColor.toString()})`
|
|
55
|
+
},
|
|
56
|
+
...this.loaderColors?.spinnerColor && {
|
|
57
|
+
"--calcite-loader-progress-color": `rgb(${this.loaderColors.spinnerColor.toString()})`
|
|
58
|
+
}
|
|
44
59
|
})}><calcite-loader scale=s label=Loading></calcite-loader></div>`), t;
|
|
45
60
|
}
|
|
46
61
|
}
|
|
47
|
-
|
|
62
|
+
s("arcgis-charts-info-modal", p);
|
|
48
63
|
export {
|
|
49
|
-
|
|
64
|
+
p as ArcgisChartsInfoModal
|
|
50
65
|
};
|