@arcgis/charts-components 5.2.0-next.79 → 5.2.0-next.84
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/2BA2QD2A.js +3 -0
- package/dist/cdn/{3EO4F26F.js → 2MF442VT.js} +1 -1
- package/dist/cdn/{52MUPDJX.js → 2YDNWOWT.js} +1 -1
- package/dist/cdn/{XUHTILLV.js → 3AYNHY7J.js} +1 -1
- package/dist/cdn/3H3PFQTD.js +2 -0
- package/dist/cdn/{SN4KBI42.js → 3KDTVBIG.js} +1 -1
- package/dist/cdn/{KBBPAMMT.js → 3SSQPYQA.js} +1 -1
- package/dist/cdn/{2GAKZXA7.js → 3YPGCLG4.js} +1 -1
- package/dist/cdn/{VMLRM5N5.js → 3ZKNY2GI.js} +1 -1
- package/dist/cdn/{JZFIYS3Q.js → 4KF7SUJE.js} +1 -1
- package/dist/cdn/{2ASLWSZG.js → 4U2HIMOR.js} +1 -1
- package/dist/cdn/{OILO7FSO.js → 52NR6B2J.js} +1 -1
- package/dist/cdn/{KOLRCFJY.js → 5DHMYPPF.js} +1 -1
- package/dist/cdn/5NGIGJYR.js +2 -0
- package/dist/cdn/62GSQDTE.js +2 -0
- package/dist/cdn/{IJWJOXQC.js → 6LV3ASGE.js} +1 -1
- package/dist/cdn/{UQQUQB2A.js → 6SQNRMJG.js} +1 -1
- package/dist/cdn/{O7LPETXX.js → 6WWEQU3O.js} +1 -1
- package/dist/cdn/{LJTJTGIW.js → 72KEQM4K.js} +1 -1
- package/dist/cdn/{Y3WKQVWR.js → 72VGCAR5.js} +1 -1
- package/dist/cdn/{DWGM7Z44.js → 7CZMR2WF.js} +1 -1
- package/dist/cdn/{JBDNBUXX.js → 7JA63ENU.js} +6 -6
- package/dist/cdn/{D3YWSIAT.js → 7P3FHJUU.js} +1 -1
- package/dist/cdn/{2AYYSMS5.js → 7SIKOCYK.js} +3 -3
- package/dist/cdn/{PBMWAGSX.js → 7ZAT46VE.js} +1 -1
- package/dist/cdn/{J6SZNFHT.js → ACMHG3RB.js} +1 -1
- package/dist/cdn/{EVXW4JIN.js → BV7UUWYI.js} +1 -1
- package/dist/cdn/{JILQHU4L.js → C5UI5MYS.js} +1 -1
- package/dist/cdn/{X7KNPTRQ.js → C7F4AVQU.js} +2 -2
- package/dist/cdn/{HVNUPBQA.js → CFOB77PI.js} +1 -1
- package/dist/cdn/{C5O4MQR2.js → CSOYZJU5.js} +1 -1
- package/dist/cdn/{4UZZHUBR.js → CVWT6DGY.js} +1 -1
- package/dist/cdn/{QK73NKPD.js → CXWBQG5O.js} +1 -1
- package/dist/cdn/{KBADZKOP.js → DE3CJJG3.js} +1 -1
- package/dist/cdn/{DB2GBCE3.js → DKC4NIUA.js} +1 -1
- package/dist/cdn/{3OW3AP7E.js → DW5NK2B3.js} +1 -1
- package/dist/cdn/{JMYWZDZT.js → DZWIVB6V.js} +1 -1
- package/dist/cdn/EMOHROY3.js +2 -0
- package/dist/cdn/{55MAADXE.js → EYYTKCXM.js} +1 -1
- package/dist/cdn/{HEVW64SC.js → EZLKMWI5.js} +1 -1
- package/dist/cdn/{PCAFQL35.js → F3LVXDV4.js} +1 -1
- package/dist/cdn/{CPTM5D3G.js → FBU4ODQE.js} +1 -1
- package/dist/cdn/{FWLBHMGZ.js → FQKGQHVK.js} +1 -1
- package/dist/cdn/{WIU4Z5RB.js → FRTPDJGW.js} +1 -1
- package/dist/cdn/{TS7M5QXS.js → G45UKTNI.js} +1 -1
- package/dist/cdn/{4B2OSQ56.js → GDGYKODO.js} +1 -1
- package/dist/cdn/{YWYUS2YB.js → GX64OP3A.js} +1 -1
- package/dist/cdn/{TVQYI2GA.js → GZEVPH4Y.js} +1 -1
- package/dist/cdn/{5UKSJH54.js → HDIBDW52.js} +1 -1
- package/dist/cdn/{SCBFWKS5.js → HOASAQAB.js} +1 -1
- package/dist/cdn/{FNTOEKMU.js → HQ2JPCTQ.js} +1 -1
- package/dist/cdn/{LYE5P3IM.js → I3BMYY7N.js} +1 -1
- package/dist/cdn/{BRQQTNPP.js → IN2IL6T2.js} +1 -1
- package/dist/cdn/IVM37XFX.js +2 -0
- package/dist/cdn/JMMNRCD4.js +2 -0
- package/dist/cdn/JQM5R6XW.js +2 -0
- package/dist/cdn/{6WE5NXCL.js → JUU3BZT7.js} +1 -1
- package/dist/cdn/{IC7XPCCD.js → KAQ5XSCQ.js} +1 -1
- package/dist/cdn/{ARBNJ22B.js → KG574LAE.js} +1 -1
- package/dist/cdn/{REUSRETW.js → KHJC5P5T.js} +1 -1
- package/dist/cdn/{RZHWMERW.js → KYOBS7XL.js} +1 -1
- package/dist/cdn/KZSCAJDG.js +2 -0
- package/dist/cdn/{IPEJCIHO.js → L4BZX57U.js} +1 -1
- package/dist/cdn/L5JZ5COY.js +2 -0
- package/dist/cdn/LCTDNI27.js +2 -0
- package/dist/cdn/{XGOJWQ2M.js → LM6VCILT.js} +1 -1
- package/dist/cdn/{L4E3VJVV.js → LMTSW3JM.js} +1 -1
- package/dist/cdn/{3U6ESLPG.js → LPS3VU35.js} +1 -1
- package/dist/cdn/{6IQK654E.js → M6OCFMDB.js} +1 -1
- package/dist/cdn/{N7C7MXPK.js → MITW5XKW.js} +1 -1
- package/dist/cdn/{RXIRNKPO.js → MJHVSD5B.js} +1 -1
- package/dist/cdn/{KS5BBSHY.js → MNYNXHXE.js} +1 -1
- package/dist/cdn/{4V4XGO3V.js → NH2A5QEU.js} +1 -1
- package/dist/cdn/NIDXK3GN.js +2 -0
- package/dist/cdn/{OTCRP3JF.js → OMORDJT2.js} +1 -1
- package/dist/cdn/{GRFUVWBR.js → OYXDCECZ.js} +1 -1
- package/dist/cdn/{DAFNQT4C.js → P3AYFJRV.js} +1 -1
- package/dist/cdn/{DNBUCAK5.js → PF6QOHZR.js} +1 -1
- package/dist/cdn/{TGP4YGPD.js → PMTNALXO.js} +1 -1
- package/dist/cdn/{K4APZJ2O.js → PWJBGZPW.js} +1 -1
- package/dist/cdn/{7MXV56XK.js → QIG7WTJF.js} +1 -1
- package/dist/cdn/{F4YJZZ3Z.js → QXQC4CH5.js} +1 -1
- package/dist/cdn/{KJZTU3DV.js → QYRHZJH3.js} +1 -1
- package/dist/cdn/{NIDK3VNZ.js → R5VDQBUH.js} +1 -1
- package/dist/cdn/{HHZOC34D.js → RCAPTQFV.js} +1 -1
- package/dist/cdn/{UROIIO5G.js → RPUEIRTH.js} +1 -1
- package/dist/cdn/S2HIF3ZX.js +2 -0
- package/dist/cdn/{6ILCVW7Y.js → SC26LLWP.js} +1 -1
- package/dist/cdn/{AGPCWGX5.js → SILDOKXS.js} +1 -1
- package/dist/cdn/{ZFVW3OFJ.js → TBW6K2TY.js} +1 -1
- package/dist/cdn/{JYC77MVD.js → TENIFMA5.js} +1 -1
- package/dist/cdn/{JQU6SHEI.js → TSU6UVTL.js} +1 -1
- package/dist/cdn/{TMGMKM5F.js → U3542JBJ.js} +1 -1
- package/dist/cdn/U7GQGHZY.js +2 -0
- package/dist/cdn/{ANIGKAAB.js → UYDDYD3O.js} +1 -1
- package/dist/cdn/{F7UO7P33.js → V3ITNIER.js} +1 -1
- package/dist/cdn/VQU2TVX7.js +3 -0
- package/dist/cdn/{OAGFPD22.js → VSPKBQS6.js} +1 -1
- package/dist/cdn/{XPWRCAVM.js → WC22SRVJ.js} +1 -1
- package/dist/cdn/{5TACWRME.js → XBRRJQVR.js} +1 -1
- package/dist/cdn/{AVJGLPDW.js → XFCDAI5T.js} +1 -1
- package/dist/cdn/{O3I5M2SH.js → XHZAAQMF.js} +1 -1
- package/dist/cdn/{DEEDTMN2.js → XU7TGV75.js} +1 -1
- package/dist/cdn/XVCBLLWW.js +2 -0
- package/dist/cdn/{EUTOQQ3S.js → YAWW63A5.js} +1 -1
- package/dist/cdn/ZDUW3TBJ.js +2 -0
- package/dist/cdn/{4XM7Q33B.js → ZGIM53IQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +17 -17
- package/dist/chunks/axis-lines-symbol.js +1 -1
- package/dist/chunks/bar-chart-model.js +11 -11
- package/dist/chunks/box-plot-data.js +73 -73
- package/dist/chunks/box-plot-model.js +8 -8
- package/dist/chunks/chart-model.js +33 -33
- package/dist/chunks/chart-object-literals.js +24 -24
- package/dist/chunks/chart-ui-utils.js +149 -68
- package/dist/chunks/chart-ui-utils2.js +68 -149
- package/dist/chunks/class-breaks.js +14 -14
- package/dist/chunks/combo-bar-line-chart-model.js +35 -35
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +30 -30
- package/dist/chunks/data.js +40 -40
- package/dist/chunks/default.js +6 -6
- package/dist/chunks/gauge-model.js +58 -58
- package/dist/chunks/generate-x-axis-title.js +22 -22
- package/dist/chunks/heat-chart-model.js +11 -11
- package/dist/chunks/histogram-data.js +21 -21
- package/dist/chunks/histogram-model.js +12 -12
- package/dist/chunks/index.js +9364 -1103
- package/dist/chunks/index2.js +836 -9337
- package/dist/chunks/index3.js +1166 -865
- package/dist/chunks/index4.js +8 -8
- package/dist/chunks/index5.js +5 -5
- package/dist/chunks/interfaces.js +9 -9
- package/dist/chunks/line-chart-model.js +9 -9
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-types.js +1 -1
- package/dist/chunks/model-with-y-guides.js +13 -13
- package/dist/chunks/negative-values-stacked-to-baseline.js +7 -7
- package/dist/chunks/pie-chart-data.js +10 -10
- package/dist/chunks/pie-chart-model.js +35 -35
- package/dist/chunks/radar-chart-model.js +14 -14
- package/dist/chunks/resource.js +5 -5
- package/dist/chunks/rest-js-object-literals.js +10 -10
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +7 -7
- package/dist/chunks/scatterplot-model.js +11 -11
- package/dist/chunks/serial-chart-data.js +165 -165
- package/dist/chunks/serial-chart-model.js +14 -14
- package/dist/chunks/series-length.js +17 -17
- package/dist/chunks/series-types.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +7 -7
- package/dist/chunks/type-guards2.js +25 -25
- package/dist/chunks/utils.js +23 -23
- package/dist/chunks/utils2.js +9 -9
- package/dist/chunks/web-component-utils.js +63 -63
- package/dist/chunks/x-bounds.js +28 -28
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +11 -11
- package/dist/components/arcgis-charts-action-bar/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +11 -18
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +17 -17
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +16 -16
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +29 -36
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +21 -21
- package/dist/components/arcgis-charts-config-font-style/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-format/customElement.js +17 -17
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +31 -31
- package/dist/components/arcgis-charts-config-histogram/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +22 -22
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +2 -2
- package/dist/components/arcgis-charts-info-modal/customElement.js +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +175 -175
- package/dist/utils/chart-config/converter/index.js +36 -36
- package/dist/utils/defaults/index.d.ts +15 -2
- package/dist/utils/defaults/interfaces.d.ts +66 -8
- package/package.json +5 -5
- package/dist/cdn/37TEXJ7K.js +0 -2
- package/dist/cdn/4DPFB567.js +0 -3
- package/dist/cdn/FDXSZJWC.js +0 -2
- package/dist/cdn/HXSSY2BO.js +0 -2
- package/dist/cdn/IAMJ6CBO.js +0 -3
- package/dist/cdn/IONJLIQQ.js +0 -2
- package/dist/cdn/JKT2UC2C.js +0 -2
- package/dist/cdn/JZVACQMQ.js +0 -2
- package/dist/cdn/N6FMZQZN.js +0 -2
- package/dist/cdn/PCHCBNEX.js +0 -2
- package/dist/cdn/QPTQD3ZH.js +0 -2
- package/dist/cdn/RPQJ6RNZ.js +0 -2
- package/dist/cdn/U43J5GMJ.js +0 -2
- package/dist/cdn/UEUCI74S.js +0 -2
- package/dist/cdn/WFNHDRCX.js +0 -2
- package/dist/cdn/WVIP7B4W.js +0 -2
- package/dist/cdn/ZAGOBG3W.js +0 -2
- /package/dist/cdn/{7SBVBD4E.js → KWN3N6VE.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
3
|
import { isEmpty as c } from "lodash-es";
|
|
4
|
-
import { m as h, U as n } from "../../chunks/chart-ui-
|
|
4
|
+
import { m as h, U as n } from "../../chunks/chart-ui-utils.js";
|
|
5
5
|
import { u as m } from "../../chunks/useT9n.js";
|
|
6
6
|
import { css as p, html as d } from "lit";
|
|
7
7
|
import { createRef as s, ref as l } from "lit/directives/ref.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as l, html as c } from "lit";
|
|
4
|
-
import { g } from "../../chunks/chart-ui-
|
|
4
|
+
import { g } from "../../chunks/chart-ui-utils.js";
|
|
5
5
|
import { u as h } from "../../chunks/useT9n.js";
|
|
6
6
|
import { LitElement as m, createEvent as n } from "@arcgis/lumina";
|
|
7
7
|
const u = "arcgis-charts-config-storage-colors", v = l`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`;
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
import { c as A } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as N } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as $ } from "lit/directives/keyed.js";
|
|
5
|
-
import { createModel as
|
|
6
|
-
import {
|
|
5
|
+
import { createModel as V } from "../../model/shared/setup-utils.js";
|
|
6
|
+
import { d as x, c as _, h as U, g as T, j as v, k as R } from "../../chunks/type-guards2.js";
|
|
7
7
|
import { i as z } from "../../chunks/rotated-state.js";
|
|
8
8
|
import { substitute as H } from "@arcgis/core/intl.js";
|
|
9
9
|
import { C as c } from "../../chunks/interfaces.js";
|
|
10
10
|
import { isEqual as w, cloneDeep as O } from "lodash-es";
|
|
11
11
|
import { i as D } from "../../chunks/index4.js";
|
|
12
|
-
import {
|
|
12
|
+
import { q as k, r as F, C as W } from "../../chunks/index2.js";
|
|
13
13
|
import { LitElement as G, createEvent as f, renderElement as I, safeStyleMap as X, safeClassMap as d } from "@arcgis/lumina";
|
|
14
14
|
import { css as Z, html as h } from "lit";
|
|
15
|
-
import { createRef as
|
|
15
|
+
import { createRef as j, ref as q } from "lit/directives/ref.js";
|
|
16
16
|
import { u as L } from "../../chunks/useT9n.js";
|
|
17
|
-
import { c as
|
|
18
|
-
import {
|
|
17
|
+
import { c as K, a as M, g as Y } from "../../chunks/store.js";
|
|
18
|
+
import { bE as Q, ah as J, bF as ee, bG as te, bH as ae } from "../../chunks/index.js";
|
|
19
19
|
import { A as ie } from "../../chunks/axis-model-wrapper.js";
|
|
20
20
|
import { h as se, f as y } from "../../chunks/web-component-utils.js";
|
|
21
|
-
import { a as re } from "../../chunks/chart-ui-
|
|
22
|
-
import { C as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
21
|
+
import { a as re } from "../../chunks/chart-ui-utils.js";
|
|
22
|
+
import { C as b } from "../../chunks/index5.js";
|
|
23
|
+
import { g as P } from "../../chunks/chart-ui-utils2.js";
|
|
24
|
+
import { i as oe, b as S } from "../../chunks/type-guards.js";
|
|
25
25
|
import { r as le } from "../../chunks/popover-ui-utils.js";
|
|
26
|
-
import {
|
|
26
|
+
import { a as o, e as ne } from "../../chunks/chart-object-literals.js";
|
|
27
27
|
const m = {
|
|
28
28
|
chartUIComponent: "chart-ui-component",
|
|
29
29
|
tabBar: "tab-bar",
|
|
@@ -83,7 +83,7 @@ function pe(p, e) {
|
|
|
83
83
|
const ue = Z`.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;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}`;
|
|
84
84
|
class ge extends G {
|
|
85
85
|
constructor() {
|
|
86
|
-
super(), this.selectChartTypePopover = null, this.chartsListFlowItem =
|
|
86
|
+
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = j(), this.supportedChartTypes = [
|
|
87
87
|
o.BarSeries,
|
|
88
88
|
o.BoxPlotSeries,
|
|
89
89
|
o.LineSeries,
|
|
@@ -114,7 +114,7 @@ class ge extends G {
|
|
|
114
114
|
case o.LineSeries:
|
|
115
115
|
case o.BarSeries: {
|
|
116
116
|
const { dataItems: n, timeIntervalInfo: l } = a;
|
|
117
|
-
(x(s) ||
|
|
117
|
+
(x(s) || _(s) && s.binTemporalData) && (l?.size !== void 0 && s.temporalBinningSize !== l?.size && (s.temporalBinningSize = l?.size), l?.unit !== void 0 && s.temporalBinningUnit !== l?.unit && l?.unit !== ne.Quarter && (s.temporalBinningUnit = l?.unit), l?.size !== void 0 && l?.unit !== void 0 && K(M, { size: l.size, unit: l.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(n), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -245,7 +245,7 @@ class ge extends G {
|
|
|
245
245
|
}
|
|
246
246
|
const r = i.charts;
|
|
247
247
|
for (const n of r ?? []) {
|
|
248
|
-
const l = await
|
|
248
|
+
const l = await V({
|
|
249
249
|
layer: i,
|
|
250
250
|
config: n,
|
|
251
251
|
commonStrings: this.commonStrings
|
|
@@ -277,7 +277,7 @@ class ge extends G {
|
|
|
277
277
|
chartType: t.chartType,
|
|
278
278
|
commonStrings: this.commonStrings,
|
|
279
279
|
config: t.config
|
|
280
|
-
}) : "", e !== void 0 && e !==
|
|
280
|
+
}) : "", e !== void 0 && e !== M.selectedChartId && (M.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
281
281
|
key: "key",
|
|
282
282
|
model: t
|
|
283
283
|
});
|
|
@@ -286,7 +286,7 @@ class ge extends G {
|
|
|
286
286
|
e === 0 ? this.clearPartialModels() : e === 1 && this.removeSelectChartTypePopover(), this.arcgisChartsConfigPanelNumberChange.emit({ panelNumber: e, modelList: this.modelList });
|
|
287
287
|
}
|
|
288
288
|
addChartEventListeners() {
|
|
289
|
-
this.listenOn(document,
|
|
289
|
+
this.listenOn(document, b.DataProcessComplete, this.chartDataProcessComplete), this.listenOn(document, b.AxesMinMaxChange, this.chartAxesMinMaxChange), this.listenOn(document, b.SeriesColorChange, this.chartSeriesColorChange), this.listenOn(document, b.NoRenderPropChange, this.chartNoRenderPropChange), this.listenOn(document, b.LegendItemVisibilityChange, this.chartLegendItemVisibilityChange);
|
|
290
290
|
}
|
|
291
291
|
getDataExtent(e) {
|
|
292
292
|
const t = this.getModel(this.selectedChartId)?.config;
|
|
@@ -311,7 +311,7 @@ class ge extends G {
|
|
|
311
311
|
chartId: this.selectedChartId,
|
|
312
312
|
isXAxis: a,
|
|
313
313
|
isLogarithmic: n.getLogarithmic()
|
|
314
|
-
}), g =
|
|
314
|
+
}), g = M.chartAxesBoundDataMap;
|
|
315
315
|
g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
|
|
316
316
|
const u = g[this.selectedChartId]?.[l], C = {
|
|
317
317
|
defaultMinBound: u?.defaultMinBound === u?.currMinBound ? s : u?.defaultMinBound,
|
|
@@ -333,9 +333,9 @@ class ge extends G {
|
|
|
333
333
|
async onAddChartClick(e) {
|
|
334
334
|
const { referenceElement: t, layerId: a, layerType: i } = e.detail;
|
|
335
335
|
let s = !0;
|
|
336
|
-
if (
|
|
336
|
+
if (S(i) && a) {
|
|
337
337
|
const r = this.layerList.find((n) => n.id === a);
|
|
338
|
-
|
|
338
|
+
S(r?.type) && (s = !!(await te(r))?.attributeTable);
|
|
339
339
|
}
|
|
340
340
|
this.setupSelectChartTypePopover(t, a, i, s);
|
|
341
341
|
}
|
|
@@ -417,10 +417,10 @@ class ge extends G {
|
|
|
417
417
|
activeLayerId: this.activeLayerId,
|
|
418
418
|
disableEditing: this.disableEditing
|
|
419
419
|
});
|
|
420
|
-
return N(e, (t) => t.id, (t) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ce(this.modelList, t.id.toString(),
|
|
420
|
+
return N(e, (t) => t.id, (t) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ce(this.modelList, t.id.toString(), S(t.type) ? ae : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
421
421
|
}
|
|
422
422
|
render() {
|
|
423
|
-
return this.close ? null : 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} ${
|
|
423
|
+
return this.close ? null : 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} ${q(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
424
424
|
}
|
|
425
425
|
renderTabs() {
|
|
426
426
|
const e = this.getModel(this.selectedChartId);
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { c as h } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as m, html as o } from "lit";
|
|
4
4
|
import { merge as i } from "lodash-es";
|
|
5
|
-
import { i as p, m as c,
|
|
5
|
+
import { i as p, m as c, U as r, s as y } from "../../chunks/chart-ui-utils.js";
|
|
6
6
|
import { u } from "../../chunks/useT9n.js";
|
|
7
7
|
import { createRef as S, ref as d } from "lit/directives/ref.js";
|
|
8
8
|
import { LitElement as g, createEvent as f, safeClassMap as n } from "@arcgis/lumina";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { N as b } from "../../chunks/index3.js";
|
|
10
|
+
import { b as v } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const C = {
|
|
12
12
|
arial: "Arial",
|
|
13
13
|
arialBlack: "Arial Black",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as B } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as M } from "lit/directives/ref.js";
|
|
4
|
-
import {
|
|
4
|
+
import { l as y, j as d, g as h, m as S, a as V, h as w } from "../../chunks/type-guards2.js";
|
|
5
5
|
import { i as T } from "../../chunks/data-labels-symbol.js";
|
|
6
6
|
import { i as C, a as L, b as P } from "../../chunks/axis-lines-symbol.js";
|
|
7
|
-
import { cloneDeep as n, isArray as F, isObject as A, mergeWith as
|
|
8
|
-
import { h as
|
|
9
|
-
import {
|
|
7
|
+
import { cloneDeep as n, isArray as F, isObject as A, mergeWith as D, isEmpty as E } from "lodash-es";
|
|
8
|
+
import { h as G } from "../../chunks/chart-ui-utils.js";
|
|
9
|
+
import { R as W, b } from "../../chunks/rest-js-object-literals.js";
|
|
10
10
|
import { u as N } from "../../chunks/useT9n.js";
|
|
11
11
|
import { css as z, html as f } from "lit";
|
|
12
|
-
import { LitElement as H, renderElement as
|
|
13
|
-
import { C as
|
|
14
|
-
import {
|
|
12
|
+
import { LitElement as H, renderElement as R, safeClassMap as p } from "@arcgis/lumina";
|
|
13
|
+
import { C as j, F as i, L as m } from "../../chunks/common.js";
|
|
14
|
+
import { b as u, bJ as r } from "../../chunks/index.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { C as I } from "../../chunks/index2.js";
|
|
17
|
+
import { a } from "../../chunks/chart-object-literals.js";
|
|
18
18
|
const v = {
|
|
19
19
|
type: b.TS,
|
|
20
20
|
color: [1, 1, 1, 255],
|
|
@@ -28,13 +28,13 @@ const v = {
|
|
|
28
28
|
}, k = {
|
|
29
29
|
type: b.SLS,
|
|
30
30
|
color: [1, 1, 1, 255],
|
|
31
|
-
style:
|
|
31
|
+
style: W.Solid,
|
|
32
32
|
width: 2
|
|
33
33
|
}, g = {
|
|
34
34
|
element: "chart-element",
|
|
35
35
|
elementList: "element-list",
|
|
36
36
|
sectionLabel: "section-label"
|
|
37
|
-
},
|
|
37
|
+
}, O = z`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.element-list{margin:var(--arcgis-charts-config-margin-minor)}.element{user-select:none}`;
|
|
38
38
|
class X extends H {
|
|
39
39
|
constructor() {
|
|
40
40
|
super(...arguments), this._messages = N(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
|
|
@@ -74,7 +74,7 @@ class X extends H {
|
|
|
74
74
|
if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedTexts = [], this.selectedBackground.includes(s))
|
|
75
75
|
this.selectedBackground = [], this.selectedElement = void 0;
|
|
76
76
|
else {
|
|
77
|
-
const o = this.getFormatValue(s), l = [...
|
|
77
|
+
const o = this.getFormatValue(s), l = [...I.backgroundColor];
|
|
78
78
|
this.selectedBackground = [s], this.selectedElement = o ?? l;
|
|
79
79
|
}
|
|
80
80
|
this.setupFormatPopover();
|
|
@@ -84,7 +84,7 @@ class X extends H {
|
|
|
84
84
|
this.setFormatValue(s, e);
|
|
85
85
|
}), this.selectedElement = n(t.target.selectedElement);
|
|
86
86
|
}, this.updateBackground = (t) => {
|
|
87
|
-
this.setFormatValue(
|
|
87
|
+
this.setFormatValue(j.Background, t.detail), this.selectedElement = t.detail;
|
|
88
88
|
}, this.updateTextProps = (t) => {
|
|
89
89
|
const { font: e, color: s } = t.detail;
|
|
90
90
|
this.selectedTexts.forEach((o) => {
|
|
@@ -113,7 +113,7 @@ class X extends H {
|
|
|
113
113
|
this.properties = { selectedSymbols: 16, selectedTexts: 16, selectedBackground: 16, selectedElement: 16, messageOverrides: 0, model: 0 };
|
|
114
114
|
}
|
|
115
115
|
static {
|
|
116
|
-
this.styles =
|
|
116
|
+
this.styles = O;
|
|
117
117
|
}
|
|
118
118
|
load() {
|
|
119
119
|
this.modelChange(this.model);
|
|
@@ -138,7 +138,7 @@ class X extends H {
|
|
|
138
138
|
const s = n(this.getFormatValue(t[0]));
|
|
139
139
|
this.selectedElement = t?.reduce((o, l) => {
|
|
140
140
|
const c = this.getFormatValue(l);
|
|
141
|
-
return
|
|
141
|
+
return D(o, c, this.mergeFormatValues);
|
|
142
142
|
}, s);
|
|
143
143
|
} else {
|
|
144
144
|
let s = n(e);
|
|
@@ -157,7 +157,7 @@ class X extends H {
|
|
|
157
157
|
this.formatPopover = $(this.formatPopover);
|
|
158
158
|
const t = this.selectedElement;
|
|
159
159
|
t?.type === b.TS || t?.type === b.SLS || // To check if the selected element is background.
|
|
160
|
-
Array.isArray(this.selectedElement) ? (this.formatPopover =
|
|
160
|
+
Array.isArray(this.selectedElement) ? (this.formatPopover = R(f`<arcgis-charts-config-format-popover .selectedElement=${this.selectedElement} .referenceElement=${this.el} @arcgisChartsConfigFormatPopoverSymbolChange=${this.updateSymbolProps} @arcgisChartsConfigFormatPopoverTextChange=${this.updateTextProps} @arcgisChartsConfigFormatPopoverColorChange=${this.updateBackground} placement=auto @arcgisChartsConfigPopoverClose=${this.formatPopoverClose} open></arcgis-charts-config-format-popover>`), this.formatPopover !== null && !document.body.contains(this.formatPopover) && document.body.appendChild(this.formatPopover)) : this.removeFormatPopover();
|
|
161
161
|
}
|
|
162
162
|
removeFormatPopover() {
|
|
163
163
|
this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = $(this.formatPopover));
|
|
@@ -283,7 +283,7 @@ class X extends H {
|
|
|
283
283
|
return { textElements: t, symbolElements: e };
|
|
284
284
|
}
|
|
285
285
|
renderTextElement(t, e) {
|
|
286
|
-
const s =
|
|
286
|
+
const s = G(t), o = this.getFormatValue(t), l = typeof o == "string" ? o : "", c = this.selectedTexts.includes(t) || this.selectedSymbols.includes(t) || this.selectedBackground.includes(t);
|
|
287
287
|
return f`<calcite-list-item class=${p(g.element)} .label=${this._messages[t]} .description=${l} .value=${t} .selected=${c} @click=${e} ${M(this.updateSelectableElements)}>${s !== void 0 ? f`<calcite-icon slot=content-start scale=s .icon=${s}></calcite-icon>` : null}</calcite-list-item>`;
|
|
288
288
|
}
|
|
289
289
|
render() {
|
|
@@ -5,7 +5,7 @@ import { u as a } from "../../chunks/useT9n.js";
|
|
|
5
5
|
import { createRef as l, ref as n } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
7
7
|
import { e as p } from "../../chunks/popover-ui-utils.js";
|
|
8
|
-
import {
|
|
8
|
+
import { b as r } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
class h extends c {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments), this._messages = a(), this.popoverElement = l(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigFormatPopoverColorChange = s(), this.arcgisChartsConfigFormatPopoverSymbolChange = s(), this.arcgisChartsConfigFormatPopoverTextChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
-
import {
|
|
3
|
+
import { j as n, n as r, g as c } from "../../chunks/type-guards2.js";
|
|
4
4
|
import { i as h, a as m, b as g } from "../../chunks/generate-x-axis-title.js";
|
|
5
5
|
import { isEmpty as x } from "lodash-es";
|
|
6
|
-
import { m as u, U as b } from "../../chunks/chart-ui-
|
|
6
|
+
import { m as u, U as b } from "../../chunks/chart-ui-utils.js";
|
|
7
7
|
import { u as p } from "../../chunks/useT9n.js";
|
|
8
8
|
import { css as C, html as l } from "lit";
|
|
9
9
|
import { createRef as f, ref as $ } from "lit/directives/ref.js";
|
|
10
10
|
import { LitElement as v, safeClassMap as i } from "@arcgis/lumina";
|
|
11
|
-
import {
|
|
11
|
+
import { f as a } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { i as y } from "../../chunks/index4.js";
|
|
13
13
|
const s = {
|
|
14
14
|
textInput: "text-input",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as B } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as X } from "lit/directives/keyed.js";
|
|
4
4
|
import { cloneDeep as E } from "lodash-es";
|
|
5
|
-
import { m as G, a as N, j as Z, k
|
|
5
|
+
import { m as G, U as S, a as N, j as Z, k } from "../../chunks/chart-ui-utils.js";
|
|
6
6
|
import { d as F } from "../../chunks/default.js";
|
|
7
7
|
import { g as z } from "../../chunks/resource.js";
|
|
8
8
|
import { u as O } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as V, html as c } from "lit";
|
|
10
10
|
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
|
-
import { LitElement as q, createEvent as U, renderElement as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { LitElement as q, createEvent as U, renderElement as L, safeStyleMap as M, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
+
import { j as W, o as j, p as Y } from "../../chunks/type-guards2.js";
|
|
13
|
+
import { bK as p, b as m, bl as H, bL as A, bM as _, i as K } from "../../chunks/index.js";
|
|
14
|
+
import { t as J } from "../../chunks/index3.js";
|
|
15
15
|
import { r as Q } from "../../chunks/popover-ui-utils.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { b as g, R as ee } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
+
import { a as te } from "../../chunks/chart-object-literals.js";
|
|
18
18
|
import { G as b } from "../../chunks/common.js";
|
|
19
19
|
const n = {
|
|
20
20
|
row: "row",
|
|
@@ -101,7 +101,7 @@ class se extends q {
|
|
|
101
101
|
})), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
102
102
|
}
|
|
103
103
|
setGuideDateTimeRange() {
|
|
104
|
-
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s),
|
|
104
|
+
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s), R = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x, w = this.endTimeCalciteInput.value?.value ?? "", P = w === "" ? R : w;
|
|
105
105
|
let $ = !1;
|
|
106
106
|
if (!Array.isArray(C) && C !== void 0 && I !== void 0) {
|
|
107
107
|
const d = `${C}T${I}`;
|
|
@@ -158,7 +158,7 @@ class se extends q {
|
|
|
158
158
|
let l;
|
|
159
159
|
p(i, a) === g.SLS ? l = m(t) ? t : void 0 : l = t?.color;
|
|
160
160
|
const s = this.colorElement.value;
|
|
161
|
-
Array.isArray(t?.color) ? (this.guidePopover =
|
|
161
|
+
Array.isArray(t?.color) ? (this.guidePopover = L(c`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`), this.guidePopover !== void 0 && !document.body.contains(this.guidePopover) && document.body.appendChild(this.guidePopover)) : this.removeGuidePopover();
|
|
162
162
|
}
|
|
163
163
|
removeGuidePopover() {
|
|
164
164
|
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover = Q(this.guidePopover));
|
|
@@ -196,7 +196,7 @@ class se extends q {
|
|
|
196
196
|
i = this._messages.deleteGuide ?? "";
|
|
197
197
|
break;
|
|
198
198
|
}
|
|
199
|
-
this.tooltip =
|
|
199
|
+
this.tooltip = L(c`<calcite-tooltip style=${M({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
200
200
|
}
|
|
201
201
|
toggleGuide() {
|
|
202
202
|
const e = this.model.getGuideVisibility(this.index, this.orientation);
|
|
@@ -206,7 +206,7 @@ class se extends q {
|
|
|
206
206
|
N(this.tooltip);
|
|
207
207
|
}
|
|
208
208
|
deleteGuide() {
|
|
209
|
-
this.destroyTooltip(), this.orientation === b.X &&
|
|
209
|
+
this.destroyTooltip(), this.orientation === b.X && j(this.model) ? this.model.deleteXAxisGuide(this.index) : this.orientation === b.Y && Y(this.model) && this.model.deleteYAxisGuide(this.index), this.arcgisChartsConfigGuideChange.emit({
|
|
210
210
|
index: this.index,
|
|
211
211
|
orientation: this.orientation,
|
|
212
212
|
isDelete: !0
|
|
@@ -214,7 +214,7 @@ class se extends q {
|
|
|
214
214
|
}
|
|
215
215
|
renderColorElement() {
|
|
216
216
|
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ? Z(e.style) : ee.Solid, f = p(s, r) === g.SLS ? `line-${v}` : "square-f";
|
|
217
|
-
return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${
|
|
217
|
+
return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${M({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
220
220
|
const e = this.model.getGuideStart(this.index, this.orientation), t = this.model.getGuideEnd(this.index, this.orientation), i = this.model.getGuideName(this.index, this.orientation), a = this.model.getGuideLabelText(this.index, this.orientation), l = this.model.getGuideAbove(this.index, this.orientation), s = this.model.getGuideVisibility(this.index, this.orientation), r = this.isXAxisDateField;
|
|
@@ -224,7 +224,7 @@ class se extends q {
|
|
|
224
224
|
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${k} number-button-type=none .value=${e?.toString()} ${u(this.startCalciteInput)}></calcite-input>`}</calcite-label><calcite-label class=${o(n.column)}>${this._messages.end}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.endDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${k} number-button-type=none .value=${t?.toString()} ${u(this.endCalciteInput)}></calcite-input>`}</calcite-label></div>${r ? X("time-picker-row", c`<div class=${o(n.row)}>${e != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}${t != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}</div>`) : null}<div class=${o(n.row)}><div class=${o(n.column)}>${this.renderColorElement()}</div></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
B("arcgis-charts-config-guide", se);
|
|
228
228
|
export {
|
|
229
229
|
se as ArcgisChartsConfigGuide
|
|
230
230
|
};
|
|
@@ -5,7 +5,7 @@ import { g as i } from "../../chunks/default.js";
|
|
|
5
5
|
import { u as l } from "../../chunks/useT9n.js";
|
|
6
6
|
import { createRef as n, ref as a } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
8
|
-
import {
|
|
8
|
+
import { b as p } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
import { e as h } from "../../chunks/popover-ui-utils.js";
|
|
10
10
|
class m extends c {
|
|
11
11
|
constructor() {
|
|
@@ -7,7 +7,7 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as A, html as a } from "lit";
|
|
8
8
|
import { createRef as x, ref as C } from "lit/directives/ref.js";
|
|
9
9
|
import { LitElement as b, renderElement as v, safeClassMap as c } from "@arcgis/lumina";
|
|
10
|
-
import {
|
|
10
|
+
import { o as h, p as u } from "../../chunks/type-guards2.js";
|
|
11
11
|
import { G as s } from "../../chunks/common.js";
|
|
12
12
|
const P = A`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.add-guide{display:flex;justify-content:center;padding:.5rem}.add-guide-btn{width:100%}.no-guides{border-radius:2rem}.no-messages{text-align:center}.guide-icon{padding-left:.5rem;padding-top:.5rem;width:1.5rem;height:1.5rem}`;
|
|
13
13
|
class $ extends b {
|
|
@@ -4,7 +4,7 @@ import { LitElement as l } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as n, html as i } from "lit";
|
|
5
5
|
import { C as s } from "../../chunks/interfaces.js";
|
|
6
6
|
import { isEqual as d } from "lodash-es";
|
|
7
|
-
import {
|
|
7
|
+
import { bC as h, bD as c, t as f } from "../../chunks/index.js";
|
|
8
8
|
const p = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends l {
|
|
10
10
|
static {
|
|
@@ -5,20 +5,20 @@ import { normalizeLocale as w, defaultLocale as I } from "@arcgis/toolkit/intl";
|
|
|
5
5
|
import { getElementLocale as N } from "@arcgis/toolkit/intl/dom";
|
|
6
6
|
import { css as _, html as i } from "lit";
|
|
7
7
|
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
|
-
import { parseInt as H, camelCase as
|
|
9
|
-
import { DateTime as
|
|
10
|
-
import {
|
|
8
|
+
import { parseInt as H, camelCase as O } from "lodash-es";
|
|
9
|
+
import { DateTime as L } from "luxon";
|
|
10
|
+
import { C as T, b as x, t as U } from "../../chunks/index2.js";
|
|
11
11
|
import { u as R } from "../../chunks/useT9n.js";
|
|
12
|
-
import {
|
|
12
|
+
import { c as l, W as k } from "../../chunks/interfaces.js";
|
|
13
13
|
import { x as W } from "../../chunks/data.js";
|
|
14
|
-
import { l as v, s as q } from "../../chunks/chart-ui-
|
|
15
|
-
import {
|
|
14
|
+
import { l as v, s as q } from "../../chunks/chart-ui-utils.js";
|
|
15
|
+
import { c as $, g as K, a as V, b as z } from "../../chunks/class-breaks.js";
|
|
16
16
|
import { e as X, a as Z } from "../../chunks/store.js";
|
|
17
|
-
import { H as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
17
|
+
import { H as G } from "../../chunks/common.js";
|
|
18
|
+
import { b as j } from "../../chunks/rest-js-object-literals.js";
|
|
19
|
+
import { d as m, h, l as p, a as C, n as u, q as F, r as Y } from "../../chunks/chart-object-literals.js";
|
|
20
|
+
import { H as J, i as Q, O as d } from "../../chunks/index3.js";
|
|
21
|
+
import { r as S } from "../../chunks/index.js";
|
|
22
22
|
import { i as ee } from "../../chunks/index4.js";
|
|
23
23
|
import { r as ae } from "../../chunks/popover-ui-utils.js";
|
|
24
24
|
const te = _`.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{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`, r = {
|
|
@@ -87,7 +87,7 @@ class se extends A {
|
|
|
87
87
|
...t,
|
|
88
88
|
symbol: {
|
|
89
89
|
...t?.symbol,
|
|
90
|
-
type:
|
|
90
|
+
type: j.SFS,
|
|
91
91
|
color: a,
|
|
92
92
|
outline: t?.symbol?.outline && { ...t.symbol.outline, color: a }
|
|
93
93
|
}
|
|
@@ -122,11 +122,11 @@ class se extends A {
|
|
|
122
122
|
return this.model.colorRampName ?? (ee(this.model?.config) ? $.defaultColorRampForCharts?.name : void 0);
|
|
123
123
|
}
|
|
124
124
|
getRequestedBreaksCount() {
|
|
125
|
-
return this.requestedBreaksCount ?? this.model.breaksCount ??
|
|
125
|
+
return this.requestedBreaksCount ?? this.model.breaksCount ?? T.classBreaks.breaksCount;
|
|
126
126
|
}
|
|
127
127
|
getFirstDayOfWeek() {
|
|
128
128
|
const { lang: e } = N(this.el ?? document.documentElement), a = w(e);
|
|
129
|
-
return
|
|
129
|
+
return L.local().setLocale(e).startOf("week", { useLocaleWeeks: a !== I }).weekday;
|
|
130
130
|
}
|
|
131
131
|
applyCalendarTypePreset(e) {
|
|
132
132
|
switch (e) {
|
|
@@ -195,7 +195,7 @@ class se extends A {
|
|
|
195
195
|
return W({
|
|
196
196
|
fieldName: this.model.xAxisField,
|
|
197
197
|
fieldList: this.layerFieldsInfo
|
|
198
|
-
}) ? "" :
|
|
198
|
+
}) ? "" : x(this.layerFieldsInfo, this.model.xAxisField);
|
|
199
199
|
}
|
|
200
200
|
onXAxisFieldSelect(e) {
|
|
201
201
|
this.contentKind = l.xAxisField, this.setupPopover(e);
|
|
@@ -264,7 +264,7 @@ class se extends A {
|
|
|
264
264
|
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = ae(this.heatChartPopover));
|
|
265
265
|
}
|
|
266
266
|
setDefaultPropertiesForCalendarHeatChart() {
|
|
267
|
-
this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(
|
|
267
|
+
this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(G.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = F.naturalBreaks), this.model.heatRulesType !== u.Renderer && (this.model.heatRulesType = u.Renderer), this.model.viewType === void 0 && (this.model.viewType = Y.singleCalendarView), (this.model.aggregationType === m.Count || this.model.aggregationType === m.Sum) && this.model.nullPolicy !== h.Zero && (this.model.nullPolicy = h.Zero), this.model.colorRampName === void 0 && (this.model.colorRampName = $.defaultColorRampForCharts?.name);
|
|
268
268
|
}
|
|
269
269
|
renderXAxisFieldSelect() {
|
|
270
270
|
const e = this.getCorrectedXAxisFieldValue();
|
|
@@ -274,7 +274,7 @@ class se extends A {
|
|
|
274
274
|
return i`<arcgis-charts-config-field-picker .label=${this.model.aggregationType === m.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${c(this.aggregationElement)}></arcgis-charts-config-field-picker>`;
|
|
275
275
|
}
|
|
276
276
|
renderNumericFieldsSelect() {
|
|
277
|
-
const e = this.model.numericFields?.[0] === S(this.model.layer).idField ? "" :
|
|
277
|
+
const e = this.model.numericFields?.[0] === S(this.model.layer).idField ? "" : x(this.layerFieldsInfo, this.model.numericFields?.[0]);
|
|
278
278
|
return i`<arcgis-charts-config-field-picker .label=${e} @click=${this.onNumericFieldSelect} ${c(this.numericFieldsElement)}></arcgis-charts-config-field-picker>`;
|
|
279
279
|
}
|
|
280
280
|
renderCalendarTypeSelect() {
|
|
@@ -290,7 +290,7 @@ class se extends A {
|
|
|
290
290
|
manual: this._messages.classBreaksMethod?.manual,
|
|
291
291
|
naturalBreaks: this._messages.classBreaksMethod?.naturalBreaks,
|
|
292
292
|
quantile: this._messages.classBreaksMethod?.quantile
|
|
293
|
-
}, a = this.model.classificationMethod ? e[
|
|
293
|
+
}, a = this.model.classificationMethod ? e[O(this.model.classificationMethod)] ?? "" : "";
|
|
294
294
|
return i`<arcgis-charts-config-field-picker .label=${a} @click=${this.onClassBreakMethodSelect} ${c(this.classBreakMethodElement)}></arcgis-charts-config-field-picker>`;
|
|
295
295
|
}
|
|
296
296
|
renderColorRampSelect() {
|
|
@@ -305,7 +305,7 @@ class se extends A {
|
|
|
305
305
|
return i`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${this._messages.symbol}></calcite-table-header><calcite-table-header .heading=${this._messages.upperValue}></calcite-table-header></calcite-table-row>${e.map((a) => i`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${a.symbol.color?.[0]}, ${a.symbol.color?.[1]}, ${a.symbol.color?.[2]}, ${a.symbol.color?.[3] / 255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${a.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
|
|
306
306
|
}
|
|
307
307
|
renderNullUI() {
|
|
308
|
-
const e = this.model.emptyCell, a = this._messages.null, t = e?.symbol?.color ??
|
|
308
|
+
const e = this.model.emptyCell, a = this._messages.null, t = e?.symbol?.color ?? T.grayColor, [s, g, f, y] = [...t], b = `rgba(${s},${g},${f},${y / 255})`;
|
|
309
309
|
return i`<calcite-list label class=${o(r.list)} selection-mode=none ${c(this.nullElement)}><calcite-list-item .label=${a} .value=${a} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${B({ color: b })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
310
310
|
}
|
|
311
311
|
renderEmptyBins() {
|