@arcgis/charts-components 5.2.0-next.57 → 5.2.0-next.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{A6QLIVFM.js → 26UUSCOV.js} +20 -20
- package/dist/cdn/2B27HWX2.js +2 -0
- package/dist/cdn/44DVV3KE.js +2 -0
- package/dist/cdn/54M3LLQH.js +2 -0
- package/dist/cdn/5NZ537SN.js +2 -0
- package/dist/cdn/5RC76C5H.js +2 -0
- package/dist/cdn/{OEYB3NZZ.js → 5RWZRHLN.js} +1 -1
- package/dist/cdn/64CBZCW7.js +2 -0
- package/dist/cdn/{PHUJHKPW.js → 6HIK7EBX.js} +1 -1
- package/dist/cdn/6KMPIGFU.js +2 -0
- package/dist/cdn/6KTWKIGJ.js +2 -0
- package/dist/cdn/{UGOWEOTC.js → AYQ4HHL6.js} +1 -1
- package/dist/cdn/AZDPAG65.js +2 -0
- package/dist/cdn/B2XDPYOL.js +2 -0
- package/dist/cdn/{LOEMTYZB.js → B5KB7HXA.js} +1 -1
- package/dist/cdn/BFT5CL7V.js +2 -0
- package/dist/cdn/BU3IX333.js +2 -0
- package/dist/cdn/COLTSCAS.js +2 -0
- package/dist/cdn/CU6R7UXF.js +2 -0
- package/dist/cdn/{NYFHPR6N.js → DAFNQT4C.js} +1 -1
- package/dist/cdn/{OS5TUH4X.js → DDUKKQIZ.js} +1 -1
- package/dist/cdn/{FQ6B5P53.js → DG6ENZ35.js} +1 -1
- package/dist/cdn/E5G6IGUP.js +2 -0
- package/dist/cdn/EFRELYIP.js +2 -0
- package/dist/cdn/EQ2X422F.js +2 -0
- package/dist/cdn/{J64IDIEG.js → EQDTX4JX.js} +1 -1
- package/dist/cdn/FHCIXPMQ.js +3 -0
- package/dist/cdn/FJGG2VVZ.js +2 -0
- package/dist/cdn/G3MWFZDW.js +2 -0
- package/dist/cdn/GC7ISTDF.js +2 -0
- package/dist/cdn/{GVUHKCSZ.js → GJ4JGGKT.js} +1 -1
- package/dist/cdn/GPABWWGF.js +2 -0
- package/dist/cdn/{DRHDCMI3.js → GQGII3CK.js} +1 -1
- package/dist/cdn/{JXZJXDU5.js → GWNHO3MZ.js} +11 -9
- package/dist/cdn/H3CYQU3L.js +2 -0
- package/dist/cdn/{HDCSZ2BJ.js → H57XAQPI.js} +2 -2
- package/dist/cdn/HD72K7JQ.js +2 -0
- package/dist/cdn/{FJPWWKHZ.js → HSVZTTYF.js} +1 -1
- package/dist/cdn/IJYXP34M.js +2 -0
- package/dist/cdn/IKSW6TU5.js +2 -0
- package/dist/cdn/{BGTNSGMQ.js → INUVRMMG.js} +1 -1
- package/dist/cdn/{6Z7SZ44K.js → IOE5YG7Q.js} +1 -1
- package/dist/cdn/IPMCTC6B.js +2 -0
- package/dist/cdn/IW7AZIV6.js +2 -0
- package/dist/cdn/{4B5XCGIW.js → J6M4AA5V.js} +1 -1
- package/dist/cdn/JWWSIFDA.js +2 -0
- package/dist/cdn/KBOIN2ZI.js +2 -0
- package/dist/cdn/KDLRVDVQ.js +2 -0
- package/dist/cdn/KJZTU3DV.js +2 -0
- package/dist/cdn/{GSD4ZLN6.js → KR7A5JG4.js} +1 -1
- package/dist/cdn/KUI3SQHQ.js +2 -0
- package/dist/cdn/KVAWYWYK.js +2 -0
- package/dist/cdn/{5PAOUYHV.js → LA5FTE2U.js} +2 -2
- package/dist/cdn/LU6YEMXO.js +2 -0
- package/dist/cdn/MJLDF2FQ.js +2 -0
- package/dist/cdn/{UYQBMPSN.js → MLLV2GML.js} +1 -1
- package/dist/cdn/MO5LDVWE.js +2 -0
- package/dist/cdn/MYDNPSD6.js +2 -0
- package/dist/cdn/NCHIDM4H.js +2 -0
- package/dist/cdn/NYDW2I5M.js +2 -0
- package/dist/cdn/{2EDBRZSQ.js → NZT3J3KJ.js} +1 -1
- package/dist/cdn/{QYNNPEED.js → OAXHS4LE.js} +1 -1
- package/dist/cdn/OKZBV5LB.js +2 -0
- package/dist/cdn/{QRJMT2DB.js → OTH3FQJJ.js} +1 -1
- package/dist/cdn/P2L3OTIA.js +2 -0
- package/dist/cdn/PA4NRD4I.js +2 -0
- package/dist/cdn/PDYOXU7M.js +2 -0
- package/dist/cdn/PXTBSPEA.js +2 -0
- package/dist/cdn/{ALOMPW5P.js → Q6VW7H3A.js} +1 -1
- package/dist/cdn/QRNP4SNY.js +2 -0
- package/dist/cdn/QTD2QGHC.js +2 -0
- package/dist/cdn/{GXGUKV7H.js → RA3GUNR3.js} +1 -1
- package/dist/cdn/{VPJVWP7S.js → RQ6HACQP.js} +1 -1
- package/dist/cdn/{2ULHNXRJ.js → SCU3SBSN.js} +1 -1
- package/dist/cdn/T3WULYNA.js +2 -0
- package/dist/cdn/TCKFUPRR.js +2 -0
- package/dist/cdn/TQYULR2I.js +2 -0
- package/dist/cdn/UL2ASLY7.js +2 -0
- package/dist/cdn/{MEQOANO2.js → UMYQZXPT.js} +1 -1
- package/dist/cdn/USNCFQ5L.js +2 -0
- package/dist/cdn/{EZ6DGROJ.js → UYMLDXJI.js} +1 -1
- package/dist/cdn/V6TEH3XV.js +2 -0
- package/dist/cdn/VME2NH7X.js +2 -0
- package/dist/cdn/{KI2XMATI.js → VXQLTYHF.js} +1 -1
- package/dist/cdn/WKCITUA3.js +2 -0
- package/dist/cdn/{CB6BIIF2.js → WMUPNT4Q.js} +1 -1
- package/dist/cdn/WWKZYBCF.js +2 -0
- package/dist/cdn/XYBOIKE4.js +2 -0
- package/dist/cdn/{2DHUAIBZ.js → YIWJ2NPY.js} +1 -1
- package/dist/cdn/YL27XTUT.js +2 -0
- package/dist/cdn/{TT6WOAKC.js → ZESW7TCR.js} +1 -1
- package/dist/cdn/ZH3BXRLT.js +2 -0
- package/dist/cdn/{6HFL4FZL.js → ZZ5FKECR.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +11 -8
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/box-plot-data.js +55 -56
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +6 -7
- package/dist/chunks/data.js +9 -9
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/generate-x-axis-title.js +4 -4
- package/dist/chunks/heat-chart-model.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/index2.js +1576 -1467
- package/dist/chunks/index3.js +77 -67
- package/dist/chunks/index4.js +25 -13
- package/dist/chunks/index5.js +63 -100
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/resource.js +5 -5
- package/dist/chunks/rounded-corners.js +5 -5
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +631 -620
- package/dist/chunks/serial-chart-model.js +63 -64
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series-types.js +22 -18
- package/dist/chunks/type-guards2.js +30 -26
- package/dist/chunks/utils.js +50 -51
- package/dist/chunks/web-component-utils.js +2 -2
- package/dist/chunks/x-bounds.js +21 -22
- package/dist/components/arcgis-chart/customElement.d.ts +64 -23
- package/dist/components/arcgis-chart/customElement.js +6128 -6148
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +54 -53
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +10 -9
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +48 -46
- package/dist/components/arcgis-charts-config-format/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +18 -19
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- 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 +286 -283
- package/dist/json-schema/index.d.ts +12 -2
- package/dist/model/shared/type-guards.d.ts +9 -2
- package/dist/spec/web-chart.d.ts +26 -4
- package/dist/utils/chart-config/converter/index.js +185 -166
- package/dist/utils/chart-config/utils/index.d.ts +18 -3
- package/dist/utils/cursor/interfaces.d.ts +21 -0
- package/dist/utils/type-guards/series-types.d.ts +9 -2
- package/package.json +3 -3
- package/dist/cdn/2B7R5EPU.js +0 -2
- package/dist/cdn/37UC5ORG.js +0 -2
- package/dist/cdn/3MGWFTQH.js +0 -2
- package/dist/cdn/3Z4FG2HV.js +0 -2
- package/dist/cdn/4L2YTJ24.js +0 -2
- package/dist/cdn/4MQOMRB6.js +0 -2
- package/dist/cdn/4MSUALRF.js +0 -2
- package/dist/cdn/4PMNY6J6.js +0 -2
- package/dist/cdn/4SFDTXQJ.js +0 -2
- package/dist/cdn/53DFPXFT.js +0 -2
- package/dist/cdn/5GXB34LE.js +0 -2
- package/dist/cdn/5WIDEL4K.js +0 -2
- package/dist/cdn/7IK6J5VF.js +0 -2
- package/dist/cdn/A34ROM33.js +0 -2
- package/dist/cdn/BM62ZXFE.js +0 -2
- package/dist/cdn/BNBZEIMG.js +0 -2
- package/dist/cdn/C3YMGEUW.js +0 -2
- package/dist/cdn/C64W7ELG.js +0 -2
- package/dist/cdn/CD2NGAV3.js +0 -2
- package/dist/cdn/CPRSIFTK.js +0 -2
- package/dist/cdn/DTNHSQRD.js +0 -2
- package/dist/cdn/DUAMGCAK.js +0 -2
- package/dist/cdn/E4T5VUXT.js +0 -2
- package/dist/cdn/EDYZLWGW.js +0 -3
- package/dist/cdn/EKWX6BR7.js +0 -2
- package/dist/cdn/EQXKSMAG.js +0 -2
- package/dist/cdn/F64XESDA.js +0 -2
- package/dist/cdn/G5DDARQJ.js +0 -2
- package/dist/cdn/G5FTVXQF.js +0 -2
- package/dist/cdn/GHTCOHC2.js +0 -2
- package/dist/cdn/I6LYDJKQ.js +0 -2
- package/dist/cdn/IDAMYFLT.js +0 -2
- package/dist/cdn/IH2BBWAQ.js +0 -2
- package/dist/cdn/J4C4QWY4.js +0 -2
- package/dist/cdn/JYROXMJN.js +0 -2
- package/dist/cdn/LDBJRKCM.js +0 -2
- package/dist/cdn/M5K6IJLD.js +0 -2
- package/dist/cdn/M7ZANON3.js +0 -2
- package/dist/cdn/MCJTQ4YF.js +0 -2
- package/dist/cdn/MLA3N4MI.js +0 -2
- package/dist/cdn/MR7KELUF.js +0 -2
- package/dist/cdn/MY2W3RH7.js +0 -2
- package/dist/cdn/MYK7BBLS.js +0 -2
- package/dist/cdn/N7D4B5LO.js +0 -2
- package/dist/cdn/NFU76HOO.js +0 -2
- package/dist/cdn/NZVEN4LR.js +0 -2
- package/dist/cdn/OKK5OJ6S.js +0 -2
- package/dist/cdn/PXTV6Y3K.js +0 -2
- package/dist/cdn/QJMUS3VS.js +0 -2
- package/dist/cdn/QMJ75W7D.js +0 -2
- package/dist/cdn/RKGAXZQB.js +0 -2
- package/dist/cdn/RP2TRPHY.js +0 -2
- package/dist/cdn/UIU5UYBO.js +0 -2
- package/dist/cdn/V23GYHYZ.js +0 -2
- package/dist/cdn/XWJ4GDXQ.js +0 -2
- package/dist/cdn/ZAAMSMQB.js +0 -2
- package/dist/cdn/ZALJA7E5.js +0 -2
- package/dist/cdn/ZCACFAKY.js +0 -2
- package/dist/cdn/ZKZOXEXY.js +0 -2
- package/dist/cdn/ZMBNBTJQ.js +0 -2
- package/dist/chunks/index6.js +0 -66
- /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
|
@@ -4,8 +4,7 @@ import { isEqual as a } from "lodash-es";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
8
|
-
import { h as p } from "../../chunks/index5.js";
|
|
7
|
+
import { a$ as c, ac as m, I as f, bx as g, bj as p } from "../../chunks/index2.js";
|
|
9
8
|
const u = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
9
|
class C extends n {
|
|
11
10
|
constructor() {
|
|
@@ -42,13 +41,13 @@ class C extends n {
|
|
|
42
41
|
const e = t ?? this.model.config;
|
|
43
42
|
let i = this.layer;
|
|
44
43
|
if (!i) {
|
|
45
|
-
const r =
|
|
46
|
-
r && (i = await
|
|
44
|
+
const r = c(e) ? e.iLayer : void 0;
|
|
45
|
+
r && (i = await m(r));
|
|
47
46
|
}
|
|
48
|
-
i && (await i.load(), this.layerFieldsInfo =
|
|
47
|
+
i && (await i.load(), this.layerFieldsInfo = f(i, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
|
|
49
48
|
}
|
|
50
49
|
render() {
|
|
51
|
-
const t = this.layerFieldsInfo?.find((r) => r.name === this.model.xAxisField), e = t !== void 0 && (
|
|
50
|
+
const t = this.layerFieldsInfo?.find((r) => r.name === this.model.xAxisField), e = t !== void 0 && (g(t) || p(t));
|
|
52
51
|
let i;
|
|
53
52
|
switch (this.page) {
|
|
54
53
|
case s.Data:
|
|
@@ -12,7 +12,7 @@ import { x as E } from "../../chunks/data.js";
|
|
|
12
12
|
import { r as c, s as f, m as h } from "../../chunks/chart-object-literals.js";
|
|
13
13
|
import { w as L, aj as P } from "../../chunks/index.js";
|
|
14
14
|
import { d as v, m as w } from "../../chunks/index3.js";
|
|
15
|
-
import {
|
|
15
|
+
import { ap as C, bj as _ } from "../../chunks/index2.js";
|
|
16
16
|
import { r as N } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
const D = I`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
18
18
|
label: "label",
|
|
@@ -8,13 +8,13 @@ import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
|
8
8
|
import { isEqual as b } from "lodash-es";
|
|
9
9
|
import { u as C } from "../../chunks/useT9n.js";
|
|
10
10
|
import { L as a } from "../../chunks/interfaces.js";
|
|
11
|
-
import { c as $, b as F, e as d, f as I, s as
|
|
12
|
-
import { R as
|
|
11
|
+
import { c as $, b as F, e as d, f as I, s as x } from "../../chunks/chart-ui-utils2.js";
|
|
12
|
+
import { R as T } from "../../chunks/rest-js-object-literals.js";
|
|
13
13
|
import { t as g, s as c } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { e as A, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
15
|
import { w as E, aj as S } from "../../chunks/index.js";
|
|
16
16
|
import { d as z, m as w } from "../../chunks/index3.js";
|
|
17
|
-
import {
|
|
17
|
+
import { br as N, bx as L, bj as K, bP as B } from "../../chunks/index2.js";
|
|
18
18
|
const _ = P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, r = {
|
|
19
19
|
name: "line-chart-data-popover",
|
|
20
20
|
header: "header",
|
|
@@ -83,7 +83,7 @@ class H extends k {
|
|
|
83
83
|
s.push(l);
|
|
84
84
|
for (let i = 0; i < t; i += 1) {
|
|
85
85
|
const p = this.layerFieldsInfo?.[i];
|
|
86
|
-
p && (N(p) || p.type ===
|
|
86
|
+
p && (N(p) || p.type === T.String) && s.push(this.buildPickListItem(p));
|
|
87
87
|
}
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
@@ -152,7 +152,7 @@ class H extends k {
|
|
|
152
152
|
c.Month,
|
|
153
153
|
c.Year
|
|
154
154
|
];
|
|
155
|
-
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${
|
|
155
|
+
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${x(e?.size, 1)} ${m(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${m(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${w(s, this._messages)} .selected=${e?.unit === s}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
156
156
|
}
|
|
157
157
|
renderPopoverInfo() {
|
|
158
158
|
let e;
|
|
@@ -4,8 +4,7 @@ import { isEqual as n, cloneDeep as h } from "lodash-es";
|
|
|
4
4
|
import { LitElement as C, createEvent as m } from "@arcgis/lumina";
|
|
5
5
|
import { css as y, html as c } from "lit";
|
|
6
6
|
import { C as d } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
8
|
-
import { h as v } from "../../chunks/index5.js";
|
|
7
|
+
import { a$ as I, ac as F, I as v } from "../../chunks/index2.js";
|
|
9
8
|
import { i as b } from "../../chunks/rest-js-object-literals.js";
|
|
10
9
|
const S = y`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
11
10
|
class L extends C {
|
|
@@ -54,10 +53,10 @@ class L extends C {
|
|
|
54
53
|
const i = e ?? this.model.config;
|
|
55
54
|
let s = this.layer;
|
|
56
55
|
if (!s) {
|
|
57
|
-
const a =
|
|
58
|
-
a && (s = await
|
|
56
|
+
const a = I(i) ? i.iLayer : void 0;
|
|
57
|
+
a && (s = await F(a));
|
|
59
58
|
}
|
|
60
|
-
s && (await s.load(), this.layerFieldsInfo =
|
|
59
|
+
s && (await s.load(), this.layerFieldsInfo = v(s, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
|
|
61
60
|
}
|
|
62
61
|
render() {
|
|
63
62
|
let e;
|
|
@@ -8,7 +8,7 @@ import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
|
8
8
|
import { LitElement as b, createEvent as h, renderElement as v, safeClassMap as o } from "@arcgis/lumina";
|
|
9
9
|
import { x as y } from "../../chunks/data.js";
|
|
10
10
|
import { d as m } from "../../chunks/index3.js";
|
|
11
|
-
import { m as g,
|
|
11
|
+
import { m as g, ap as F } from "../../chunks/index2.js";
|
|
12
12
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { r as P } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
const l = {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
-
import { repeat as
|
|
3
|
+
import { repeat as h } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as g } from "lit/directives/keyed.js";
|
|
5
5
|
import { isEqual as k } from "lodash-es";
|
|
6
6
|
import { P as o } from "../../chunks/interfaces.js";
|
|
7
7
|
import { p as f, b as $, e as d, f as P } from "../../chunks/chart-ui-utils2.js";
|
|
8
8
|
import { u } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as L, html as n } from "lit";
|
|
10
|
-
import { createRef as C, ref as
|
|
11
|
-
import { LitElement as y, createEvent as b, safeClassMap as
|
|
10
|
+
import { createRef as C, ref as m } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as y, createEvent as b, safeClassMap as r } from "@arcgis/lumina";
|
|
12
12
|
import { e as F, p as I } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { w as D } from "../../chunks/index.js";
|
|
14
14
|
import { d as x } from "../../chunks/index3.js";
|
|
15
|
-
import {
|
|
15
|
+
import { br as S, bx as T } from "../../chunks/index2.js";
|
|
16
16
|
import { R as w } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
-
import { a as
|
|
17
|
+
import { a as l } from "../../chunks/common.js";
|
|
18
18
|
const s = {
|
|
19
19
|
name: "pie-chart-data-popover",
|
|
20
20
|
header: "header",
|
|
@@ -51,31 +51,31 @@ class A extends y {
|
|
|
51
51
|
this.pickListHasChanged = I(e, t);
|
|
52
52
|
}
|
|
53
53
|
buildAggregationPickListItems() {
|
|
54
|
-
return
|
|
54
|
+
return h(f, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${d(e, this.selectedContent)}></calcite-list-item>`);
|
|
55
55
|
}
|
|
56
56
|
buildSortOrder() {
|
|
57
|
-
const e = Object.keys(
|
|
58
|
-
return e.splice(e.indexOf(
|
|
57
|
+
const e = Object.keys(l);
|
|
58
|
+
return e.splice(e.indexOf(l.customSort), 1), h(e, (t) => t, (t) => {
|
|
59
59
|
let i = "string";
|
|
60
60
|
const c = "rotate";
|
|
61
61
|
let a = "";
|
|
62
62
|
switch (t) {
|
|
63
|
-
case
|
|
63
|
+
case l.labelAsc:
|
|
64
64
|
i = "string";
|
|
65
65
|
break;
|
|
66
|
-
case
|
|
66
|
+
case l.labelDesc:
|
|
67
67
|
i = "string", a = s.flipClass;
|
|
68
68
|
break;
|
|
69
|
-
case
|
|
69
|
+
case l.valueAsc:
|
|
70
70
|
i = "number";
|
|
71
71
|
break;
|
|
72
|
-
case
|
|
72
|
+
case l.valueDesc:
|
|
73
73
|
i = "number", a = s.flipClass;
|
|
74
74
|
break;
|
|
75
75
|
// Do nothing for customSort for now
|
|
76
|
-
case
|
|
76
|
+
case l.customSort:
|
|
77
77
|
}
|
|
78
|
-
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${
|
|
78
|
+
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${l[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${r(a)} slot=content-end .icon=${c}></calcite-icon></calcite-list-item>`;
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
buildPickListItem(e) {
|
|
@@ -130,15 +130,15 @@ class A extends y {
|
|
|
130
130
|
}
|
|
131
131
|
renderAggregationType() {
|
|
132
132
|
const e = this.buildAggregationPickListItems();
|
|
133
|
-
return n`<calcite-list label class=${
|
|
133
|
+
return n`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
134
134
|
}
|
|
135
135
|
renderCategory() {
|
|
136
136
|
const e = this.buildPickListItems(o.category);
|
|
137
|
-
return n`<calcite-list label class=${
|
|
137
|
+
return n`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
138
138
|
}
|
|
139
139
|
renderNumericFields() {
|
|
140
140
|
const e = this.buildPickListItems(o.numericFields);
|
|
141
|
-
return n`<calcite-list label class=${
|
|
141
|
+
return n`<calcite-list label class=${r(s.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
142
142
|
}
|
|
143
143
|
renderSortOrder() {
|
|
144
144
|
const e = this.buildSortOrder();
|
|
@@ -164,7 +164,7 @@ class A extends y {
|
|
|
164
164
|
}
|
|
165
165
|
render() {
|
|
166
166
|
let e;
|
|
167
|
-
return this.contentKind === o.numericFields && (e = n`<div slot=footer><calcite-fab class=${
|
|
167
|
+
return this.contentKind === o.numericFields && (e = n`<div slot=footer><calcite-fab class=${r(s.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div><calcite-popover class=${r(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel class=${r(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
v("arcgis-charts-config-pie-chart-popover", A);
|
|
@@ -4,8 +4,7 @@ import { isEqual as l } from "lodash-es";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as c, html as s } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
8
|
-
import { h as u } from "../../chunks/index5.js";
|
|
7
|
+
import { a$ as h, ac as p, bX as f, ay as g, I as m, ak as u } from "../../chunks/index2.js";
|
|
9
8
|
import { d as y } from "../../chunks/type-guards.js";
|
|
10
9
|
const F = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
11
10
|
class b extends n {
|
|
@@ -38,20 +37,20 @@ class b extends n {
|
|
|
38
37
|
const a = e ?? this.model.config;
|
|
39
38
|
let t = this.layer;
|
|
40
39
|
if (!t) {
|
|
41
|
-
const i =
|
|
42
|
-
i && (t = await
|
|
40
|
+
const i = h(a) ? a.iLayer : void 0;
|
|
41
|
+
i && (t = await p(i));
|
|
43
42
|
}
|
|
44
43
|
if (t) {
|
|
45
|
-
await
|
|
44
|
+
await f(t);
|
|
46
45
|
const i = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
|
|
47
|
-
this.layerFieldsInfo = y(t) ?
|
|
46
|
+
this.layerFieldsInfo = y(t) ? g({ layer: t, popupTemplateFieldInfosEnabled: i, chartType: a?.type }) : m(t, i);
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
render() {
|
|
51
50
|
let e;
|
|
52
51
|
switch (this.page) {
|
|
53
52
|
case o.Data:
|
|
54
|
-
const a =
|
|
53
|
+
const a = u(this.layer), t = a && "isTable" in a ? a.isTable : !1;
|
|
55
54
|
e = s`<arcgis-charts-config-scatter-plot-data .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${t}></arcgis-charts-config-scatter-plot-data>`;
|
|
56
55
|
break;
|
|
57
56
|
case o.Axes:
|
|
@@ -10,7 +10,7 @@ import { LitElement as u, createEvent as l, safeClassMap as r } from "@arcgis/lu
|
|
|
10
10
|
import { i as m } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
import { e as $ } from "../../chunks/popover-ui-utils.js";
|
|
12
12
|
import { d as P } from "../../chunks/index3.js";
|
|
13
|
-
import {
|
|
13
|
+
import { bx as b } from "../../chunks/index2.js";
|
|
14
14
|
const n = {
|
|
15
15
|
scatterplotPopover: "scatter-plot-popover",
|
|
16
16
|
fillColor: "fill-color",
|
|
@@ -7,7 +7,7 @@ import { LitElement as v, createEvent as c, safeClassMap as n, renderElement as
|
|
|
7
7
|
import { repeat as $ } from "lit/directives/repeat.js";
|
|
8
8
|
import { g as R } from "../../chunks/chart-ui-utils.js";
|
|
9
9
|
import { r as I } from "../../chunks/popover-ui-utils.js";
|
|
10
|
-
import {
|
|
10
|
+
import { cU as b } from "../../chunks/index2.js";
|
|
11
11
|
import { c as L } from "../../chunks/model-types.js";
|
|
12
12
|
import { M as s } from "../../chunks/common.js";
|
|
13
13
|
const h = {
|