@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
|
@@ -5,7 +5,7 @@ import "@arcgis/toolkit/intl";
|
|
|
5
5
|
import { isEqual as f } from "lodash-es";
|
|
6
6
|
import "luxon";
|
|
7
7
|
import "d3-array";
|
|
8
|
-
import { bK as I, br as k, bs as O, b as D, cY as y, cZ as E,
|
|
8
|
+
import { bK as I, br as k, bs as O, b as D, cY as y, cZ as E, dj as P, o as F, dg as B, bM as _, d3 as N } from "../../chunks/index.js";
|
|
9
9
|
import { a as g, i as A, W as p, m as b } from "../../chunks/series-types.js";
|
|
10
10
|
import "@arcgis/toolkit/type";
|
|
11
11
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
@@ -15,6 +15,7 @@ import "@arcgis/core/time/TimeExtent.js";
|
|
|
15
15
|
import "@arcgis/core/core/promiseUtils.js";
|
|
16
16
|
import "@arcgis/core/request.js";
|
|
17
17
|
import "@arcgis/toolkit/dom";
|
|
18
|
+
import "@arcgis/core/intl.js";
|
|
18
19
|
import { r as U } from "../../chunks/popover-ui-utils.js";
|
|
19
20
|
import { S as d } from "../../chunks/common.js";
|
|
20
21
|
import { repeat as V } from "lit/directives/repeat.js";
|
|
@@ -3,20 +3,20 @@ import { c as S } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { repeat as b } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
5
5
|
import "@arcgis/toolkit/type";
|
|
6
|
-
import { n as g, a as
|
|
7
|
-
import { R as
|
|
8
|
-
import { LitElement as
|
|
6
|
+
import { n as g, a as F, i as p } from "../../chunks/series-types.js";
|
|
7
|
+
import { R as v } from "../../chunks/rest-js-object-literals.js";
|
|
8
|
+
import { LitElement as T, createEvent as y, renderElement as A, safeStyleMap as P, safeClassMap as r } from "@arcgis/lumina";
|
|
9
9
|
import { substitute as D } from "@arcgis/core/intl.js";
|
|
10
10
|
import { css as x, html as a } from "lit";
|
|
11
11
|
import { createRef as u, ref as d } from "lit/directives/ref.js";
|
|
12
|
-
import { isEqual as
|
|
13
|
-
import { u as
|
|
12
|
+
import { isEqual as $ } from "lodash-es";
|
|
13
|
+
import { u as L } from "../../chunks/useT9n.js";
|
|
14
14
|
import { B as n } from "../../chunks/interfaces.js";
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
16
|
import "@arcgis/toolkit/intl";
|
|
17
17
|
import "luxon";
|
|
18
18
|
import "d3-array";
|
|
19
|
-
import { br as E, bs as N, cN as z, cY as w, bN as
|
|
19
|
+
import { br as E, bs as N, cN as z, cY as w, bN as k, bM as B, bL as K, d3 as _ } from "../../chunks/index.js";
|
|
20
20
|
import "@arcgis/core/Graphic.js";
|
|
21
21
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
22
22
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -32,7 +32,7 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
32
32
|
import "@arcgis/core/time/TimeExtent.js";
|
|
33
33
|
import "@arcgis/core/core/promiseUtils.js";
|
|
34
34
|
import { e as H, p as M } from "../../chunks/popover-ui-utils.js";
|
|
35
|
-
import { b as
|
|
35
|
+
import { b as C, a as I, c as h, d as j, e as O, s as U } from "../../chunks/chart-ui-utils2.js";
|
|
36
36
|
const W = x`.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)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, o = {
|
|
37
37
|
jsAppFlyout: "js-app-flyout",
|
|
38
38
|
name: "bar-chart-data-popover",
|
|
@@ -46,9 +46,9 @@ const W = x`.hide{display:none}.am5-html-container{z-index:101!important}.am5-la
|
|
|
46
46
|
applyButton: "apply-button",
|
|
47
47
|
panel: "panel"
|
|
48
48
|
};
|
|
49
|
-
class R extends
|
|
49
|
+
class R extends T {
|
|
50
50
|
constructor() {
|
|
51
|
-
super(...arguments), this._messages =
|
|
51
|
+
super(...arguments), this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.picklist = u(), this.intervalSizeElement = u(), this.intervalTypeElement = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.isNoAggregationDisabled = !1, this.arcgisChartsConfigBarChartDataPopoverChange = y(), this.arcgisChartsConfigPopoverClose = y();
|
|
52
52
|
}
|
|
53
53
|
static {
|
|
54
54
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, isCustomSortDisabled: 5, isNoAggregationDisabled: 5 };
|
|
@@ -61,35 +61,33 @@ class R extends F {
|
|
|
61
61
|
}
|
|
62
62
|
willUpdate(e) {
|
|
63
63
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
64
|
-
const t =
|
|
65
|
-
|
|
64
|
+
const t = C.map((s) => E(s, this.commonStrings));
|
|
65
|
+
$(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
66
66
|
const l = [g.Start, g.End].map((s) => N(s, this.commonStrings));
|
|
67
|
-
|
|
67
|
+
$(this.timeAggregationLabels, l) || (this.timeAggregationLabels = l);
|
|
68
68
|
}
|
|
69
69
|
updated() {
|
|
70
70
|
setTimeout(() => {
|
|
71
71
|
this.picklist.value?.setFocus();
|
|
72
|
-
},
|
|
73
|
-
this.popoverElement.value?.reposition();
|
|
74
|
-
}, C.PopoverTimer);
|
|
72
|
+
}, I.PopoverTimer), H(this.popoverElement.value, this.open);
|
|
75
73
|
}
|
|
76
74
|
selectedContentChange(e, t) {
|
|
77
75
|
this.pickListHasChanged = M(e, t);
|
|
78
76
|
}
|
|
79
77
|
buildAggregationListItems() {
|
|
80
|
-
const e = this.isNoAggregationDisabled ?
|
|
78
|
+
const e = this.isNoAggregationDisabled ? C.filter((t) => t !== F.NoAggregation) : C;
|
|
81
79
|
return b(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.aggregationLabels[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
|
|
82
80
|
}
|
|
83
81
|
createTooltip(e) {
|
|
84
82
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
85
|
-
const t = e.target, i = z(t), s = new Intl.NumberFormat(i).format(
|
|
83
|
+
const t = e.target, i = z(t), s = new Intl.NumberFormat(i).format(I.customSortLimit), c = D(this._messages.customSortLimit ?? "", {
|
|
86
84
|
totalLimit: s
|
|
87
85
|
});
|
|
88
|
-
this.tooltip =
|
|
86
|
+
this.tooltip = A(a`<calcite-tooltip style=${P({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
89
87
|
}
|
|
90
88
|
}
|
|
91
89
|
destroyTooltip() {
|
|
92
|
-
|
|
90
|
+
j(this.tooltip);
|
|
93
91
|
}
|
|
94
92
|
buildSortOrder() {
|
|
95
93
|
const e = Object.keys(m);
|
|
@@ -139,7 +137,7 @@ class R extends F {
|
|
|
139
137
|
i.push(l);
|
|
140
138
|
for (let s = 0; s < t; s += 1) {
|
|
141
139
|
const c = this.layerFieldsInfo?.[s];
|
|
142
|
-
c && (c.type ===
|
|
140
|
+
c && (c.type === v.String || k(c) || B(c)) && i.push(this.buildPickListItem(c));
|
|
143
141
|
}
|
|
144
142
|
break;
|
|
145
143
|
}
|
|
@@ -148,7 +146,7 @@ class R extends F {
|
|
|
148
146
|
i.push(l);
|
|
149
147
|
for (let s = 0; s < t; s += 1) {
|
|
150
148
|
const c = this.layerFieldsInfo?.[s];
|
|
151
|
-
c && (
|
|
149
|
+
c && (k(c) || c.type === v.String) && i.push(this.buildPickListItem(c));
|
|
152
150
|
}
|
|
153
151
|
break;
|
|
154
152
|
}
|
|
@@ -162,7 +160,7 @@ class R extends F {
|
|
|
162
160
|
eventEmitter: this.arcgisChartsConfigBarChartDataPopoverChange,
|
|
163
161
|
contentKind: this.contentKind
|
|
164
162
|
};
|
|
165
|
-
|
|
163
|
+
O(e);
|
|
166
164
|
}
|
|
167
165
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
168
166
|
}
|
|
@@ -224,7 +222,7 @@ class R extends F {
|
|
|
224
222
|
p.Month,
|
|
225
223
|
p.Year
|
|
226
224
|
];
|
|
227
|
-
return a`<div><div class=${r(o.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${
|
|
225
|
+
return a`<div><div class=${r(o.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${U(e?.size, 1)} ${d(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${d(this.intervalTypeElement)}>${t.map((i) => a`<calcite-option .value=${i} .label=${_(i, this._messages)} .selected=${e?.unit === i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${r(o.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
228
226
|
}
|
|
229
227
|
renderPopoverInfo() {
|
|
230
228
|
let e;
|
|
@@ -7,7 +7,7 @@ import "luxon";
|
|
|
7
7
|
import "d3-array";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
9
|
import { e as r, a as u } from "../../chunks/series-types.js";
|
|
10
|
-
import {
|
|
10
|
+
import { dg as T, dj as C } from "../../chunks/index.js";
|
|
11
11
|
import "@arcgis/core/Graphic.js";
|
|
12
12
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c
|
|
3
|
-
import { css as
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as p, html as m } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "luxon";
|
|
@@ -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.arcgisChartsConfigPopoverClose = o(), this.arcgisChartsConfigSeriesPopoverColorChange = o(), this.arcgisChartsConfigSeriesPopoverNameChange = o();
|
|
40
39
|
}
|
|
41
40
|
static {
|
|
42
41
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedSeriesIndex: 9, placement: 1, open: 5, nullCategory: 0 };
|
|
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
|
seriesNameChange(e) {
|
|
56
53
|
const t = e.target.value;
|
|
@@ -69,10 +66,10 @@ class x extends u {
|
|
|
69
66
|
const e = this.nullCategory?.symbol?.color ?? this.selectedColor, t = this.nullCategory?.text ?? this.selectedName;
|
|
70
67
|
return m`<div class=${i({
|
|
71
68
|
[s.jsAppFlyout]: !0
|
|
72
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${
|
|
69
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${v(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></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
|
-
|
|
72
|
+
c("arcgis-charts-config-bar-chart-series-popover", y);
|
|
76
73
|
export {
|
|
77
|
-
|
|
74
|
+
y as ArcgisChartsConfigBarChartSeriesPopover
|
|
78
75
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
-
import { keyed as
|
|
3
|
+
import { keyed as p } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as v } from "lit/directives/repeat.js";
|
|
5
5
|
import { B as r } from "../../chunks/common.js";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
7
|
import "../../chunks/series-types.js";
|
|
8
|
-
import { R as
|
|
8
|
+
import { R as u } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
import "@arcgis/toolkit/intl";
|
|
10
10
|
import "lodash-es";
|
|
11
11
|
import "luxon";
|
|
12
12
|
import "d3-array";
|
|
13
|
-
import { cY as $, bN as
|
|
13
|
+
import { cY as $, bN as f, bL as y, cN as L } from "../../chunks/index.js";
|
|
14
14
|
import "@arcgis/core/Graphic.js";
|
|
15
15
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
16
16
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -28,10 +28,10 @@ import "@arcgis/core/time/TimeExtent.js";
|
|
|
28
28
|
import "@arcgis/core/core/promiseUtils.js";
|
|
29
29
|
import { e as P, p as I } from "../../chunks/popover-ui-utils.js";
|
|
30
30
|
import { a as l } from "../../chunks/interfaces.js";
|
|
31
|
-
import { a as
|
|
31
|
+
import { a as g, e as x, c as h, d as D } from "../../chunks/chart-ui-utils2.js";
|
|
32
32
|
import { u as S } from "../../chunks/useT9n.js";
|
|
33
33
|
import { css as T, html as n } from "lit";
|
|
34
|
-
import { createRef as b, ref as
|
|
34
|
+
import { createRef as b, ref as d } from "lit/directives/ref.js";
|
|
35
35
|
import { LitElement as E, createEvent as C, renderElement as w, safeStyleMap as B, safeClassMap as m } from "@arcgis/lumina";
|
|
36
36
|
const o = {
|
|
37
37
|
jsAppFlyout: "js-app-flyout",
|
|
@@ -64,9 +64,7 @@ class K extends E {
|
|
|
64
64
|
updated() {
|
|
65
65
|
setTimeout(() => {
|
|
66
66
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
67
|
-
},
|
|
68
|
-
this.popoverElement.value?.reposition();
|
|
69
|
-
}, h.PopoverTimer);
|
|
67
|
+
}, g.PopoverTimer), P(this.popoverElement.value, this.open);
|
|
70
68
|
}
|
|
71
69
|
selectedContentChange(e, t) {
|
|
72
70
|
this.pickListHasChanged = I(e, t);
|
|
@@ -91,7 +89,7 @@ class K extends E {
|
|
|
91
89
|
}), this.open = !1;
|
|
92
90
|
}
|
|
93
91
|
buildPickListItem(e) {
|
|
94
|
-
return
|
|
92
|
+
return p(e.name, n`<calcite-list-item .label=${$(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
95
93
|
}
|
|
96
94
|
buildPickListItems(e) {
|
|
97
95
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
@@ -104,20 +102,20 @@ class K extends E {
|
|
|
104
102
|
break;
|
|
105
103
|
}
|
|
106
104
|
case l.category: {
|
|
107
|
-
const s =
|
|
105
|
+
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
108
106
|
i.push(s);
|
|
109
107
|
for (let a = 0; a < t; a += 1) {
|
|
110
108
|
const c = this.layerFieldsInfo[a];
|
|
111
|
-
(
|
|
109
|
+
(f(c) || c.type === u.String) && i.push(this.buildPickListItem(c));
|
|
112
110
|
}
|
|
113
111
|
break;
|
|
114
112
|
}
|
|
115
113
|
case l.splitByField: {
|
|
116
|
-
const s =
|
|
114
|
+
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
117
115
|
i.push(s);
|
|
118
116
|
for (let a = 0; a < t; a += 1) {
|
|
119
117
|
const c = this.layerFieldsInfo[a];
|
|
120
|
-
(
|
|
118
|
+
(f(c) || c.type === u.String) && i.push(this.buildPickListItem(c));
|
|
121
119
|
}
|
|
122
120
|
break;
|
|
123
121
|
}
|
|
@@ -169,7 +167,7 @@ class K extends E {
|
|
|
169
167
|
}
|
|
170
168
|
createTooltip(e) {
|
|
171
169
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
172
|
-
const t = e.target, i = L(t), a = new Intl.NumberFormat(i).format(
|
|
170
|
+
const t = e.target, i = L(t), a = new Intl.NumberFormat(i).format(g.customSortLimit), c = F(this._messages.customSortLimit ?? "", {
|
|
173
171
|
totalLimit: a
|
|
174
172
|
});
|
|
175
173
|
this.tooltip = w(n`<calcite-tooltip style=${B({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
@@ -180,15 +178,15 @@ class K extends E {
|
|
|
180
178
|
}
|
|
181
179
|
renderCategory() {
|
|
182
180
|
const e = this.buildPickListItems(l.category);
|
|
183
|
-
return n`<calcite-list label class=${m(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${
|
|
181
|
+
return n`<calcite-list label class=${m(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
184
182
|
}
|
|
185
183
|
renderNumericFields() {
|
|
186
184
|
const e = this.buildPickListItems(l.numericFields);
|
|
187
|
-
return n`<calcite-list label class=${m(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${
|
|
185
|
+
return n`<calcite-list label class=${m(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
188
186
|
}
|
|
189
187
|
renderSplitByField() {
|
|
190
188
|
const e = this.buildPickListItems(l.splitByField);
|
|
191
|
-
return n`<calcite-list label class=${m(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${
|
|
189
|
+
return n`<calcite-list label class=${m(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
192
190
|
}
|
|
193
191
|
renderSortOrder() {
|
|
194
192
|
const e = this.buildSortOrder();
|
|
@@ -214,7 +212,7 @@ class K extends E {
|
|
|
214
212
|
}
|
|
215
213
|
render() {
|
|
216
214
|
let e;
|
|
217
|
-
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${m(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div class=${m(o.jsAppFlyout)}><calcite-popover class=${m(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${
|
|
215
|
+
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${m(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div class=${m(o.jsAppFlyout)}><calcite-popover class=${m(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${d(this.popoverElement)}><calcite-panel class=${m(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${m(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
218
216
|
}
|
|
219
217
|
}
|
|
220
218
|
k("arcgis-charts-config-box-plot-popover", K);
|
|
@@ -8,7 +8,7 @@ import "luxon";
|
|
|
8
8
|
import "d3-array";
|
|
9
9
|
import "@arcgis/toolkit/type";
|
|
10
10
|
import { f as d } from "../../chunks/series-types.js";
|
|
11
|
-
import {
|
|
11
|
+
import { dg as S } from "../../chunks/index.js";
|
|
12
12
|
import "@arcgis/core/Graphic.js";
|
|
13
13
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
14
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as C, html as l } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import { isEqual as f } from "lodash-es";
|
|
@@ -8,7 +8,7 @@ import "d3-array";
|
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
9
|
import "../../chunks/series-types.js";
|
|
10
10
|
import { f as v } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import { ap as
|
|
11
|
+
import { ap as g } from "../../chunks/index.js";
|
|
12
12
|
import "@arcgis/core/Graphic.js";
|
|
13
13
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
14
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -27,31 +27,28 @@ 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 { a as u } from "../../chunks/chart-ui-utils2.js";
|
|
31
30
|
import { u as S } from "../../chunks/useT9n.js";
|
|
32
|
-
import { createRef as
|
|
33
|
-
import { LitElement as
|
|
31
|
+
import { createRef as u, ref as b } from "lit/directives/ref.js";
|
|
32
|
+
import { LitElement as $, createEvent as a, safeClassMap as n } from "@arcgis/lumina";
|
|
34
33
|
const c = {
|
|
35
34
|
jsAppFlyout: "js-app-flyout",
|
|
36
35
|
panelChildrenContainer: "panel-children-container"
|
|
37
|
-
},
|
|
38
|
-
class
|
|
36
|
+
}, P = 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{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}`;
|
|
37
|
+
class L extends $ {
|
|
39
38
|
constructor() {
|
|
40
|
-
super(...arguments), this._messages = S(), this.popoverElement =
|
|
39
|
+
super(...arguments), this._messages = S(), this.popoverElement = u(), this.isLineSymbol = !1, this.arcgisChartsConfigPopoverClose = a(), this.arcgisChartsConfigSeriesPopoverColorChange = a(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = a(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = a(), this.arcgisChartsConfigSeriesPopoverNameChange = a();
|
|
41
40
|
}
|
|
42
41
|
static {
|
|
43
42
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedLineWidth: 9, selectedSeriesIndex: 9, isLineSymbol: 5, placement: 1, open: 5, labelCanBeConfigured: 5 };
|
|
44
43
|
}
|
|
45
44
|
static {
|
|
46
|
-
this.styles =
|
|
45
|
+
this.styles = P;
|
|
47
46
|
}
|
|
48
47
|
async reposition() {
|
|
49
48
|
await this.popoverElement.value?.reposition();
|
|
50
49
|
}
|
|
51
50
|
updated() {
|
|
52
|
-
y(this.popoverElement.value, this.open)
|
|
53
|
-
this.popoverElement.value?.reposition();
|
|
54
|
-
}, u.PopoverTimer);
|
|
51
|
+
y(this.popoverElement.value, this.open);
|
|
55
52
|
}
|
|
56
53
|
seriesNameChange(e) {
|
|
57
54
|
const t = e.target.value;
|
|
@@ -61,13 +58,13 @@ class x extends P {
|
|
|
61
58
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
62
59
|
}
|
|
63
60
|
colorChange(e) {
|
|
64
|
-
const t = e instanceof CustomEvent ? e.detail : e, [s, i, o] = t, r =
|
|
61
|
+
const t = e instanceof CustomEvent ? e.detail : e, [s, i, o] = t, r = g * 255;
|
|
65
62
|
this.selectedColor = [s, i, o, r], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [s, i, o, r] });
|
|
66
63
|
}
|
|
67
64
|
lineSymbolChange(e) {
|
|
68
65
|
const { lineStyle: t } = e.target, { color: s, style: i, width: o } = t;
|
|
69
66
|
if (s !== void 0 && !f(s, this.selectedColor)) {
|
|
70
|
-
const [r, p, h] = s, m =
|
|
67
|
+
const [r, p, h] = s, m = g * 255;
|
|
71
68
|
this.selectedColor = [r, p, h, m], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [r, p, h, m] });
|
|
72
69
|
}
|
|
73
70
|
i !== void 0 && i !== this.selectedLineStyle && (this.selectedLineStyle = i, this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({ style: i })), o !== void 0 && o !== this.selectedLineWidth && (this.selectedLineWidth = o, this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({ width: o }));
|
|
@@ -76,7 +73,7 @@ class x extends P {
|
|
|
76
73
|
const e = this.selectedColor;
|
|
77
74
|
return l`<div class=${n({
|
|
78
75
|
[c.jsAppFlyout]: !0
|
|
79
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${
|
|
76
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${b(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? l`<div class=${n(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${n(c.panelChildrenContainer)}>${this.isLineSymbol ? l`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
|
|
80
77
|
type: v.SLS,
|
|
81
78
|
style: this.selectedLineStyle,
|
|
82
79
|
width: this.selectedLineWidth,
|
|
@@ -84,7 +81,7 @@ class x extends P {
|
|
|
84
81
|
}} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>` : l`<arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors>`}</div></calcite-panel></calcite-popover></div>`;
|
|
85
82
|
}
|
|
86
83
|
}
|
|
87
|
-
|
|
84
|
+
d("arcgis-charts-config-box-plot-series-popover", L);
|
|
88
85
|
export {
|
|
89
|
-
|
|
86
|
+
L as ArcgisChartsConfigBoxPlotSeriesPopover
|
|
90
87
|
};
|
|
@@ -8,7 +8,7 @@ import { i as H } from "../../chunks/rotated-state.js";
|
|
|
8
8
|
import "@arcgis/toolkit/intl";
|
|
9
9
|
import { isEqual as w } from "lodash-es";
|
|
10
10
|
import "luxon";
|
|
11
|
-
import { Z as D, dd as k, c$ as F,
|
|
11
|
+
import { Z as D, dd as k, c$ as F, dj as z, dl as O, af as R } from "../../chunks/index.js";
|
|
12
12
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
14
14
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
@@ -32,8 +32,8 @@ import { C as f } from "../../chunks/index5.js";
|
|
|
32
32
|
import { a as L } from "../../chunks/chart-ui-utils.js";
|
|
33
33
|
import { r as G } from "../../chunks/popover-ui-utils.js";
|
|
34
34
|
import { C as l } from "../../chunks/interfaces.js";
|
|
35
|
-
import { LitElement as X, createEvent as y, renderElement as I, safeStyleMap as
|
|
36
|
-
import { css as
|
|
35
|
+
import { LitElement as X, createEvent as y, renderElement as I, safeStyleMap as j, safeClassMap as d } from "@arcgis/lumina";
|
|
36
|
+
import { css as K, html as h } from "lit";
|
|
37
37
|
import { createRef as q, ref as Y } from "lit/directives/ref.js";
|
|
38
38
|
import { u as P } from "../../chunks/useT9n.js";
|
|
39
39
|
import { b as Q, s as x, g as J } from "../../chunks/store.js";
|
|
@@ -96,7 +96,7 @@ function ne(p, e) {
|
|
|
96
96
|
}), i.charts = t;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
const ce =
|
|
99
|
+
const ce = K`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
100
100
|
class he extends X {
|
|
101
101
|
constructor() {
|
|
102
102
|
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = q(), this.supportedChartTypes = [
|
|
@@ -119,22 +119,22 @@ class he extends X {
|
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
case r.ScatterSeries: {
|
|
122
|
-
const n = t, { dataItems: c, r2:
|
|
123
|
-
let C =
|
|
124
|
-
Number.isFinite(
|
|
122
|
+
const n = t, { dataItems: c, r2: u, aggregated: g } = n;
|
|
123
|
+
let C = u;
|
|
124
|
+
Number.isFinite(u) || (C = void 0), this.r2 = C, _(a) && (a.dataStore.r2 = C, a.dataStore.aggregated = g, g && (a.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(c), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
127
|
case r.LineSeries:
|
|
128
128
|
case r.BarSeries: {
|
|
129
129
|
const { dataItems: n, timeIntervalInfo: c } = t;
|
|
130
130
|
if ((S(s) || b(s) && s.binTemporalData) && (c?.size !== void 0 && s.temporalBinningSize !== c?.size && (s.temporalBinningSize = c?.size), c?.unit !== void 0 && s.temporalBinningUnit !== c?.unit && c?.unit !== W.Quarter && (s.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && Q(x, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(n), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds), b(s)) {
|
|
131
|
-
const
|
|
132
|
-
|
|
131
|
+
const u = s.xAxisField, g = n.some((A) => A[u] === null), C = s.nullCategory;
|
|
132
|
+
g && C === void 0 && (s.nullCategory = z.nullCategory);
|
|
133
133
|
}
|
|
134
134
|
break;
|
|
135
135
|
}
|
|
136
136
|
case r.HeatSeries: {
|
|
137
|
-
this.chartData = t;
|
|
137
|
+
this.chartData = t, a && (a.dataStore.chartData = t);
|
|
138
138
|
break;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -266,12 +266,20 @@ class he extends X {
|
|
|
266
266
|
a.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
267
267
|
});
|
|
268
268
|
const t = this.getModel(this.selectedChartId);
|
|
269
|
-
this.currentChartTypeText = t?.chartType !== void 0 ? L(
|
|
269
|
+
this.currentChartTypeText = t?.chartType !== void 0 ? L({
|
|
270
|
+
chartType: t.chartType,
|
|
271
|
+
commonStrings: this.commonStrings,
|
|
272
|
+
config: t.config
|
|
273
|
+
}) : "", this.syncChartsToLayers && this.allowChartSyncing && oe(this.layerList, e), this.arcgisChartsConfigModelListChange.emit({ modelList: e });
|
|
270
274
|
}
|
|
271
275
|
selectedChartIdChange(e) {
|
|
272
276
|
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = l.Data;
|
|
273
277
|
const i = this.getModel(e);
|
|
274
|
-
this.setEventBasedPropsFromModelData(i), this.currentChartTypeText = i?.chartType !== void 0 ? L(
|
|
278
|
+
this.setEventBasedPropsFromModelData(i), this.currentChartTypeText = i?.chartType !== void 0 ? L({
|
|
279
|
+
chartType: i.chartType,
|
|
280
|
+
commonStrings: this.commonStrings,
|
|
281
|
+
config: i.config
|
|
282
|
+
}) : "", e !== void 0 && e !== x.selectedChartId && (x.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
275
283
|
key: "key",
|
|
276
284
|
model: i
|
|
277
285
|
});
|
|
@@ -305,15 +313,15 @@ class he extends X {
|
|
|
305
313
|
chartId: this.selectedChartId,
|
|
306
314
|
isXAxis: t,
|
|
307
315
|
isLogarithmic: n.getLogarithmic()
|
|
308
|
-
}),
|
|
309
|
-
|
|
310
|
-
const
|
|
311
|
-
defaultMinBound:
|
|
316
|
+
}), u = x.chartAxesBoundDataMap;
|
|
317
|
+
u[this.selectedChartId] === void 0 && (u[this.selectedChartId] = {});
|
|
318
|
+
const g = u[this.selectedChartId]?.[c], C = {
|
|
319
|
+
defaultMinBound: g?.defaultMinBound === g?.currMinBound ? s : g?.defaultMinBound,
|
|
312
320
|
currMinBound: s,
|
|
313
|
-
defaultMaxBound:
|
|
321
|
+
defaultMaxBound: g?.defaultMaxBound === g?.currMaxBound ? a : g?.defaultMaxBound,
|
|
314
322
|
currMaxBound: a
|
|
315
323
|
};
|
|
316
|
-
!w(
|
|
324
|
+
!w(g, C) && this.selectedChartId !== void 0 && u?.[this.selectedChartId] !== void 0 && (u[this.selectedChartId][c] = C);
|
|
317
325
|
}
|
|
318
326
|
});
|
|
319
327
|
}
|
|
@@ -394,7 +402,7 @@ class he extends X {
|
|
|
394
402
|
t = "";
|
|
395
403
|
break;
|
|
396
404
|
}
|
|
397
|
-
this.tooltip = I(h`<calcite-tooltip style=${
|
|
405
|
+
this.tooltip = I(h`<calcite-tooltip style=${j({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
398
406
|
}
|
|
399
407
|
destroyTooltip() {
|
|
400
408
|
ie(this.tooltip);
|
|
@@ -409,7 +417,7 @@ class he extends X {
|
|
|
409
417
|
return V(e, (i) => i.id, (i) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${se(this.modelList, i.id.toString(), this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${i} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
410
418
|
}
|
|
411
419
|
render() {
|
|
412
|
-
return this.open !== !1 ? h`<calcite-flow>${$("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${Y(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.renderTabs()}</calcite-flow>` : null;
|
|
420
|
+
return this.open !== !1 ? h`<calcite-flow>${$("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${Y(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>` : null;
|
|
413
421
|
}
|
|
414
422
|
renderTabs() {
|
|
415
423
|
const e = this.getModel(this.selectedChartId);
|