@arcgis/charts-components 5.1.0-next.0 → 5.1.0-next.10
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/{N5LXTC5F.js → 26SLWYNT.js} +1 -1
- package/dist/cdn/{7HHTWL5X.js → 2CT3MIAY.js} +1 -1
- package/dist/cdn/{MR5ILWAE.js → 2OGUU3CF.js} +1 -1
- package/dist/cdn/{O3LWVBLQ.js → 2QDRHHCZ.js} +1 -1
- package/dist/cdn/{NZKAMZX6.js → 2VC2XQAN.js} +1 -1
- package/dist/cdn/3EX7KPVE.js +2 -0
- package/dist/cdn/{FGQCHT3Y.js → 4JOHPQNV.js} +1 -1
- package/dist/cdn/4TREKWIK.js +2 -0
- package/dist/cdn/4XC2ZKSZ.js +2 -0
- package/dist/cdn/{CGRJSESJ.js → 5OWNSM2U.js} +1 -1
- package/dist/cdn/{VCDTXXBB.js → 5SRYB3Z7.js} +1 -1
- package/dist/cdn/{UKLAAPT4.js → 5YJR5M2A.js} +1 -1
- package/dist/cdn/{CF4MUKBD.js → 63GL64M2.js} +1 -1
- package/dist/cdn/{VLDV4SLC.js → 6HU6FAC6.js} +1 -1
- package/dist/cdn/{5UWCB534.js → 6PLEWH4Q.js} +1 -1
- package/dist/cdn/{B227HROY.js → 6WQPKBUS.js} +1 -1
- package/dist/cdn/72ZNLDFS.js +56 -0
- package/dist/cdn/{MFY2WNGC.js → 756AAFX2.js} +1 -1
- package/dist/cdn/{PGRROSLP.js → 7CDRRFI2.js} +1 -1
- package/dist/cdn/{YFQBIEH6.js → 7FASRM4Q.js} +1 -1
- package/dist/cdn/{F7EELFJY.js → 7VTIDISQ.js} +1 -1
- package/dist/cdn/{CSMPPQK6.js → A6FIEHBR.js} +1 -1
- package/dist/cdn/{DSCSQG33.js → AIQKILAI.js} +1 -1
- package/dist/cdn/{RBLN6H3R.js → AVFCOOHZ.js} +1 -1
- package/dist/cdn/{H2ZHJTT5.js → AYYGDEVK.js} +1 -1
- package/dist/cdn/{GB3TK5D3.js → BJPCRXMJ.js} +1 -1
- package/dist/cdn/{E2XSIMND.js → CDL4GUV6.js} +1 -1
- package/dist/cdn/CMRNFSZC.js +4 -0
- package/dist/cdn/DBBUQUSM.js +2 -0
- package/dist/cdn/DEAMKFX3.js +2 -0
- package/dist/cdn/DGTF5KBL.js +2 -0
- package/dist/cdn/{7F454N3C.js → DN4LNEB4.js} +2 -2
- package/dist/cdn/{VPF4DANX.js → DRJ4R4EQ.js} +1 -1
- package/dist/cdn/DSJJ45NU.js +2 -0
- package/dist/cdn/{7XB4DP2Y.js → E3CLVG36.js} +1 -1
- package/dist/cdn/EGY5AQR3.js +2 -0
- package/dist/cdn/{7TA3GQ2P.js → EKWDEI6U.js} +1 -1
- package/dist/cdn/{XVD4CGMV.js → EVWSDR7F.js} +1 -1
- package/dist/cdn/{VQGWUSUK.js → EYLBOIDC.js} +1 -1
- package/dist/cdn/FS2NVQNE.js +2 -0
- package/dist/cdn/{I4JPIKWZ.js → GYNFKNOC.js} +1 -1
- package/dist/cdn/{7OIBV6LX.js → H7FCUZ5Q.js} +1 -1
- package/dist/cdn/{T6J2NNJR.js → HAJ2VWEU.js} +1 -1
- package/dist/cdn/{OBF3ZYVJ.js → HLTV3SZ3.js} +1 -1
- package/dist/cdn/{4SDMBWIH.js → HT3D2REX.js} +1 -1
- package/dist/cdn/IRNA25SY.js +2 -0
- package/dist/cdn/J5U7GGIA.js +2 -0
- package/dist/cdn/JD74DCCM.js +2 -0
- package/dist/cdn/JDVXA2CS.js +2 -0
- package/dist/cdn/{NKTG3HYP.js → JX35IVRI.js} +1 -1
- package/dist/cdn/{V3NRWE2B.js → K5QY4SRM.js} +1 -1
- package/dist/cdn/KG447AXN.js +2 -0
- package/dist/cdn/{EOT7WEOM.js → KYUASK4W.js} +1 -1
- package/dist/cdn/{AE43AFN2.js → KZ7WEJMS.js} +1 -1
- package/dist/cdn/LESACRNP.js +2 -0
- package/dist/cdn/{GV3FPWSE.js → LEUZZRL3.js} +1 -1
- package/dist/cdn/{Z3ATQCGU.js → LOVVVWQQ.js} +1 -1
- package/dist/cdn/{ILN66JCQ.js → LRHPJGAF.js} +1 -1
- package/dist/cdn/{TW7SDPY6.js → N2BJICO7.js} +1 -1
- package/dist/cdn/{YP55GB27.js → NXF4ANBF.js} +1 -1
- package/dist/cdn/PCLJVVSC.js +2 -0
- package/dist/cdn/{OLGKBPS4.js → PHKJ7FEL.js} +1 -1
- package/dist/cdn/{E4Z7JPW7.js → PMJXL2RO.js} +1 -1
- package/dist/cdn/PTVFXORI.js +2 -0
- package/dist/cdn/{ACIPSEQP.js → Q2KACZBE.js} +1 -1
- package/dist/cdn/Q3RD465X.js +2 -0
- package/dist/cdn/{Z5OGHBTB.js → QHIXRP3D.js} +1 -1
- package/dist/cdn/{L7BKIZJN.js → QN32RSSK.js} +1 -1
- package/dist/cdn/{6AMFQCS7.js → R3AFJXL2.js} +1 -1
- package/dist/cdn/{ZMTNSPCX.js → R7NXKFI4.js} +1 -1
- package/dist/cdn/RGFGKNTV.js +93 -0
- package/dist/cdn/{I45WQ4BL.js → RGSTYQHL.js} +1 -1
- package/dist/cdn/RJTSFOSP.js +2 -0
- package/dist/cdn/{3KIKTBU4.js → S5R4OEBU.js} +1 -1
- package/dist/cdn/S5XUWFFZ.js +2 -0
- package/dist/cdn/{SGOQQYBY.js → SPAXIJWK.js} +1 -1
- package/dist/cdn/{UR4SN4J4.js → ST7NVAV3.js} +1 -1
- package/dist/cdn/{TCKWKRVQ.js → SVUBBKM5.js} +1 -1
- package/dist/cdn/{YBWIUGMX.js → T4VBQWR4.js} +1 -1
- package/dist/cdn/T7XKFYU3.js +2 -0
- package/dist/cdn/{4YGTK6R4.js → TEGYSOJJ.js} +1 -1
- package/dist/cdn/{UNGIAYCA.js → THMNUUUE.js} +1 -1
- package/dist/cdn/{5SBX2OSZ.js → UE4N6ASZ.js} +1 -1
- package/dist/cdn/V4GE3B2F.js +2 -0
- package/dist/cdn/VLYQJ3YH.js +2 -0
- package/dist/cdn/{N7QH3COK.js → VMMTJWUZ.js} +1 -1
- package/dist/cdn/{ITCFNAZ2.js → VPTDXGKU.js} +1 -1
- package/dist/cdn/VTJWIN7U.js +2 -0
- package/dist/cdn/{YHXUQR6R.js → VWLR4WCT.js} +1 -1
- package/dist/cdn/WCZWAASA.js +2 -0
- package/dist/cdn/XF7VOPC6.js +2 -0
- package/dist/cdn/XHESCLJV.js +2 -0
- package/dist/cdn/{CCBSYUDL.js → XJLODBLD.js} +1 -1
- package/dist/cdn/{UVEAGNF2.js → XZE6IPW7.js} +1 -1
- package/dist/cdn/Y2CT4MJ4.js +2 -0
- package/dist/cdn/{JEOHGL3P.js → YF6EYCSY.js} +1 -1
- package/dist/cdn/{INA4MWOS.js → YUFKLXMQ.js} +1 -1
- package/dist/cdn/{UPWTKME3.js → YXUXX2XA.js} +1 -1
- package/dist/cdn/{IMMCY2GO.js → ZB4GBCOX.js} +1 -1
- package/dist/cdn/{MAYX7C4V.js → ZNLHWCJV.js} +1 -1
- package/dist/cdn/{ITMPO5LO.js → ZT6KWD4G.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +10 -9
- package/dist/chunks/bar-chart-model.js +1 -0
- package/dist/chunks/bar-chart-series.js +5 -3
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +5 -0
- package/dist/chunks/chart-ui-utils.js +53 -48
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +159 -94
- package/dist/chunks/combo-bar-line-chart-model.js +3 -0
- package/dist/chunks/data.js +20 -19
- package/dist/chunks/gauge-model.js +1 -0
- package/dist/chunks/heat-chart-model.js +84 -66
- package/dist/chunks/histogram-model.js +1 -0
- package/dist/chunks/index.js +3386 -3331
- package/dist/chunks/index2.js +33 -33
- package/dist/chunks/index6.js +18 -0
- package/dist/chunks/line-chart-model.js +2 -0
- package/dist/chunks/model-setter.js +4 -1
- package/dist/chunks/model-with-guides.js +7 -6
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +2 -1
- package/dist/chunks/radar-chart-model.js +11 -9
- package/dist/chunks/scatterplot-model.js +1 -0
- package/dist/chunks/serial-chart-data.js +380 -371
- package/dist/chunks/serial-chart-model.js +9 -4
- package/dist/chunks/web-component-utils.js +63 -63
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +3140 -3155
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +2 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +21 -23
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- 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/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +28 -20
- package/dist/components/arcgis-charts-config-format/customElement.js +20 -20
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +115 -105
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +2 -0
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +45 -34
- 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/customElement.js +1 -1
- 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 +52 -14
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +278 -277
- package/dist/json-schema/index.d.ts +7 -9
- package/dist/loader.js +4 -4
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +3 -12
- package/dist/model/box-plot-model/box-plot-model.d.ts +1 -34
- package/dist/model/chart-model/chart-model-base.d.ts +0 -46
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +1 -14
- package/dist/model/gauge-model/gauge-model.d.ts +2 -11
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +9 -10
- package/dist/model/histogram-model/histogram-model.d.ts +2 -11
- package/dist/model/line-chart-model/line-chart-model.d.ts +1 -14
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +0 -4
- package/dist/model/mixins/model-with-multi-axes.d.ts +0 -3
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -17
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +1 -14
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +2 -11
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +0 -42
- package/dist/spec/rest-js-types.d.ts +15 -0
- package/dist/spec/web-chart.d.ts +279 -243
- 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 +22 -7
- package/dist/utils/type-guards/index.d.ts +15 -8
- package/dist/utils/ui/chart-ui-utils.d.ts +9 -5
- package/package.json +4 -4
- package/dist/cdn/2BIDUUM3.js +0 -2
- package/dist/cdn/4OI742MI.js +0 -2
- package/dist/cdn/A2TYB4C2.js +0 -2
- package/dist/cdn/BJJLSSQL.js +0 -2
- package/dist/cdn/C3QBGU3R.js +0 -2
- package/dist/cdn/CSHLYYDR.js +0 -2
- package/dist/cdn/DISBHZRX.js +0 -2
- package/dist/cdn/DM36XG4Z.js +0 -2
- package/dist/cdn/FGQ6QTNI.js +0 -2
- package/dist/cdn/FIBU5QUG.js +0 -2
- package/dist/cdn/GRFJADFY.js +0 -2
- package/dist/cdn/GUN4GTO3.js +0 -2
- package/dist/cdn/HOPCZKQO.js +0 -2
- package/dist/cdn/JYAZY7C6.js +0 -2
- package/dist/cdn/MMVAIEM3.js +0 -2
- package/dist/cdn/OFZOPSWX.js +0 -2
- package/dist/cdn/OKE67HPM.js +0 -2
- package/dist/cdn/OQA4LU5O.js +0 -2
- package/dist/cdn/OX34MEOD.js +0 -2
- package/dist/cdn/RESJUXIH.js +0 -2
- package/dist/cdn/RREICBPO.js +0 -58
- package/dist/cdn/T6HUC3X4.js +0 -2
- package/dist/cdn/W2Z3VO3C.js +0 -2
- package/dist/cdn/WI7OSEXJ.js +0 -2
- package/dist/cdn/WQS6NQUO.js +0 -2
- package/dist/cdn/WZJQSJPK.js +0 -2
- package/dist/cdn/XAWIW6KZ.js +0 -32
- package/dist/cdn/XPATRR6S.js +0 -2
- package/dist/cdn/YWRPXNSI.js +0 -2
- package/dist/cdn/ZARMIUOQ.js +0 -2
|
@@ -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,27 +1,65 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
|
|
6
|
-
|
|
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";
|
|
6
|
+
import "@arcgis/toolkit/intl";
|
|
7
|
+
import "lodash-es";
|
|
8
|
+
import "luxon";
|
|
9
|
+
import "d3-array";
|
|
10
|
+
import "@arcgis/toolkit/type";
|
|
11
|
+
import "../../chunks/series-types.js";
|
|
12
|
+
import { d6 as d } from "../../chunks/index.js";
|
|
13
|
+
import "@arcgis/core/Graphic.js";
|
|
14
|
+
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
|
+
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
16
|
+
import "@arcgis/core/intl.js";
|
|
17
|
+
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
18
|
+
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
19
|
+
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
20
|
+
import "simple-statistics";
|
|
21
|
+
import "@arcgis/core/request.js";
|
|
22
|
+
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
23
|
+
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
24
|
+
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
25
|
+
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
26
|
+
import "@arcgis/core/time/TimeExtent.js";
|
|
27
|
+
import "@arcgis/core/core/promiseUtils.js";
|
|
28
|
+
import "@arcgis/toolkit/dom";
|
|
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 {
|
|
7
31
|
constructor() {
|
|
8
32
|
super(...arguments), this.message = "", this.heading = "", this.showErrorModalInfo = !1;
|
|
9
33
|
}
|
|
10
34
|
static {
|
|
11
|
-
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 };
|
|
12
36
|
}
|
|
13
37
|
static {
|
|
14
|
-
this.styles =
|
|
38
|
+
this.styles = h;
|
|
15
39
|
}
|
|
16
40
|
render() {
|
|
17
|
-
let
|
|
18
|
-
return this.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+
}
|
|
59
|
+
})}><calcite-loader scale=s label=Loading></calcite-loader></div>`), t;
|
|
22
60
|
}
|
|
23
61
|
}
|
|
24
|
-
|
|
62
|
+
s("arcgis-charts-info-modal", p);
|
|
25
63
|
export {
|
|
26
|
-
|
|
64
|
+
p as ArcgisChartsInfoModal
|
|
27
65
|
};
|