@arcgis/charts-components 5.1.0-next.111 → 5.1.0-next.113
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 +2 -2
- package/dist/cdn/24TOMTMP.js +2 -0
- package/dist/cdn/2EPXIQFD.js +2 -0
- package/dist/cdn/2JUO3GP2.js +2 -0
- package/dist/cdn/2SVBUT3V.js +2 -0
- package/dist/cdn/2XTQT6TW.js +2 -0
- package/dist/cdn/{ANMNNZTA.js → 2YI4HWFY.js} +39 -39
- package/dist/cdn/34WNZMJY.js +2 -0
- package/dist/cdn/43P4WOC4.js +2 -0
- package/dist/cdn/4G5JOLEP.js +2 -0
- package/dist/cdn/4MZJZQDO.js +2 -0
- package/dist/cdn/52QMEXI6.js +2 -0
- package/dist/cdn/5I75UYWD.js +2 -0
- package/dist/cdn/5M72DGYL.js +2 -0
- package/dist/cdn/5PG6PXDG.js +2 -0
- package/dist/cdn/6FGRLBTA.js +2 -0
- package/dist/cdn/6JNHTWDQ.js +2 -0
- package/dist/cdn/6YSH3ROL.js +2 -0
- package/dist/cdn/75Y43JLP.js +2 -0
- package/dist/cdn/777EBGS5.js +2 -0
- package/dist/cdn/7AVVBDQS.js +4 -0
- package/dist/cdn/7EDHTVVK.js +2 -0
- package/dist/cdn/7MHEEH5F.js +2 -0
- package/dist/cdn/7MKAC33Z.js +2 -0
- package/dist/cdn/7Y76VKGS.js +2 -0
- package/dist/cdn/AC2XSIOU.js +2 -0
- package/dist/cdn/AEESEH6N.js +2 -0
- package/dist/cdn/AYY2C4BW.js +2 -0
- package/dist/cdn/BH7WDRGU.js +2 -0
- package/dist/cdn/BZUQTY3A.js +2 -0
- package/dist/cdn/CMPHBGKB.js +2 -0
- package/dist/cdn/DDA7NVBX.js +2 -0
- package/dist/cdn/DMDXALHQ.js +2 -0
- package/dist/cdn/DX5LK7LS.js +2 -0
- package/dist/cdn/ERUYMQOC.js +2 -0
- package/dist/cdn/{CSNF7XRL.js → ESUMWLYT.js} +1 -1
- package/dist/cdn/EULFJ5JL.js +2 -0
- package/dist/cdn/EX27CNDS.js +2 -0
- package/dist/cdn/FIMXZMTB.js +2 -0
- package/dist/cdn/FYI7J2KF.js +2 -0
- package/dist/cdn/G42X3FFH.js +2 -0
- package/dist/cdn/GGZNH26O.js +2 -0
- package/dist/cdn/HIQSXKPT.js +3 -0
- package/dist/cdn/HS2WQJEO.js +2 -0
- package/dist/cdn/IBCUXQZ4.js +2 -0
- package/dist/cdn/IC4OZCXG.js +2 -0
- package/dist/cdn/JGD2M47O.js +2 -0
- package/dist/cdn/KGOERXN5.js +2 -0
- package/dist/cdn/{JEQDHNEJ.js → KPXH2MNB.js} +1 -1
- package/dist/cdn/KSBWHMXE.js +2 -0
- package/dist/cdn/{6KFD2LHE.js → L3ULFQN3.js} +1 -1
- package/dist/cdn/LKHNZDEC.js +2 -0
- package/dist/cdn/LXVLBS7T.js +2 -0
- package/dist/cdn/M5E3NFDP.js +2 -0
- package/dist/cdn/MKEUDI3M.js +2 -0
- package/dist/cdn/MKQPW6B4.js +2 -0
- package/dist/cdn/MVAMHZ3Q.js +2 -0
- package/dist/cdn/{VTJXTTAB.js → MZ2UZAFW.js} +1 -1
- package/dist/cdn/N265ZHHU.js +2 -0
- package/dist/cdn/N2S6YV3I.js +2 -0
- package/dist/cdn/N3EATDXE.js +2 -0
- package/dist/cdn/NLWP2JOG.js +2 -0
- package/dist/cdn/NR3BCOHU.js +3 -0
- package/dist/cdn/O2JEDVIA.js +2 -0
- package/dist/cdn/OB7IDW6S.js +2 -0
- package/dist/cdn/OBPCKG62.js +2 -0
- package/dist/cdn/OCERCT4I.js +2 -0
- package/dist/cdn/OFN7ED75.js +2 -0
- package/dist/cdn/OQSFVGUL.js +2 -0
- package/dist/cdn/PA3PSUQ3.js +2 -0
- package/dist/cdn/PYFMKPMO.js +2 -0
- package/dist/cdn/QRZ32JMG.js +2 -0
- package/dist/cdn/R3GNKVFS.js +2 -0
- package/dist/cdn/R3Y2F64T.js +2 -0
- package/dist/cdn/RBVV7JGY.js +102 -0
- package/dist/cdn/RSXO7AZM.js +2 -0
- package/dist/cdn/S32VCEG7.js +2 -0
- package/dist/cdn/S7ASARWB.js +2 -0
- package/dist/cdn/SBS4J65N.js +2 -0
- package/dist/cdn/SVMC3JP5.js +2 -0
- package/dist/cdn/SYXU6NZX.js +2 -0
- package/dist/cdn/T3CSQ5DU.js +2 -0
- package/dist/cdn/T3NJTAF3.js +2 -0
- package/dist/cdn/T53WJZQN.js +2 -0
- package/dist/cdn/TES5ZESK.js +2 -0
- package/dist/cdn/{XSMRKVR2.js → TJQGGNGV.js} +1 -1
- package/dist/cdn/TOO3T62Y.js +2 -0
- package/dist/cdn/U5ZB4YD6.js +2 -0
- package/dist/cdn/UK2A3DRS.js +2 -0
- package/dist/cdn/UNDCO72C.js +2 -0
- package/dist/cdn/UR537UXK.js +2 -0
- package/dist/cdn/VMAOMKFN.js +2 -0
- package/dist/cdn/VV7JMGHL.js +2 -0
- package/dist/cdn/W6CIWZSM.js +2 -0
- package/dist/cdn/WA5XK3HC.js +2 -0
- package/dist/cdn/WD4QY4YU.js +2 -0
- package/dist/cdn/WESXMGHU.js +2 -0
- package/dist/cdn/WFDVEHVL.js +2 -0
- package/dist/cdn/WI3CE5TT.js +2 -0
- package/dist/cdn/WNZ2PSFZ.js +2 -0
- package/dist/cdn/XLJSZ42M.js +2 -0
- package/dist/cdn/XM6GBBOL.js +2 -0
- package/dist/cdn/XOB365BI.js +2 -0
- package/dist/cdn/Y2AULE2F.js +2 -0
- package/dist/cdn/YE5ASSSN.js +2 -0
- package/dist/cdn/ZBLRD77K.js +2 -0
- package/dist/cdn/{5RMUCBSG.js → ZZRH7LXO.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +12 -12
- package/dist/chunks/bar-chart-model.js +20 -47
- package/dist/chunks/bar-chart-series.js +10 -40
- package/dist/chunks/box-plot-data.js +132 -155
- package/dist/chunks/box-plot-model.js +18 -18
- package/dist/chunks/chart-model.js +76 -103
- package/dist/chunks/chart-object-literals.js +189 -0
- package/dist/chunks/chart-ui-utils.js +17 -16
- package/dist/chunks/chart-ui-utils2.js +91 -116
- package/dist/chunks/class-breaks.js +375 -196
- package/dist/chunks/combo-bar-line-chart-model.js +19 -18
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +56 -84
- package/dist/chunks/data.js +82 -105
- package/dist/chunks/default.js +6 -7
- package/dist/chunks/gauge-model.js +42 -69
- package/dist/chunks/generate-x-axis-title.js +39 -66
- package/dist/chunks/heat-chart-model.js +183 -183
- package/dist/chunks/histogram-data.js +56 -80
- package/dist/chunks/histogram-model.js +24 -24
- package/dist/chunks/index.js +560 -21042
- package/dist/chunks/index2.js +8706 -596
- package/dist/chunks/index3.js +873 -160
- package/dist/chunks/index4.js +701 -76
- package/dist/chunks/index5.js +10794 -62
- package/dist/chunks/index6.js +99 -0
- package/dist/chunks/index7.js +66 -0
- package/dist/chunks/interfaces.js +31 -32
- package/dist/chunks/line-chart-model.js +12 -11
- package/dist/chunks/model-setter.js +44 -41
- package/dist/chunks/model-types.js +43 -0
- package/dist/chunks/model-with-y-guides.js +89 -116
- package/dist/chunks/negative-values-stacked-to-baseline.js +50 -79
- package/dist/chunks/pie-chart-data.js +89 -111
- package/dist/chunks/pie-chart-model.js +46 -70
- package/dist/chunks/radar-chart-model.js +35 -62
- package/dist/chunks/resource.js +8 -10
- package/dist/chunks/rotated-state.js +24 -52
- package/dist/chunks/scatterplot-model.js +90 -112
- package/dist/chunks/serial-chart-data.js +540 -530
- package/dist/chunks/serial-chart-model.js +90 -115
- package/dist/chunks/series-length.js +25 -53
- package/dist/chunks/series-types.js +21 -206
- package/dist/chunks/series.js +9 -38
- package/dist/chunks/time-zone.js +14 -15
- package/dist/chunks/type-guards.js +23 -132
- package/dist/chunks/type-guards2.js +100 -192
- package/dist/chunks/type-guards3.js +173 -0
- package/dist/chunks/utils.js +75 -97
- package/dist/chunks/utils2.js +34 -63
- package/dist/chunks/web-component-utils.js +85 -83
- package/dist/chunks/x-bounds.js +69 -95
- package/dist/components/arcgis-chart/customElement.js +3670 -3637
- package/dist/components/arcgis-charts-action-bar/customElement.js +8 -9
- package/dist/components/arcgis-charts-config-axis/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +33 -60
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +47 -70
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +33 -54
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +37 -64
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +15 -43
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +12 -39
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +87 -111
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +41 -65
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +13 -40
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +18 -45
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +17 -45
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +47 -68
- package/dist/components/arcgis-charts-config-font-style/customElement.js +21 -48
- package/dist/components/arcgis-charts-config-format/customElement.js +55 -82
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +12 -41
- package/dist/components/arcgis-charts-config-general/customElement.js +29 -55
- package/dist/components/arcgis-charts-config-guide/customElement.js +44 -68
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +14 -43
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -3
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +10 -39
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +29 -56
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +153 -175
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +56 -79
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -55
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +39 -62
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -50
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +27 -54
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +23 -46
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +46 -69
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +33 -61
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +14 -42
- package/dist/components/arcgis-charts-config-line-style/customElement.js +9 -11
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +28 -55
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +24 -49
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +42 -66
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +38 -65
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +15 -43
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +31 -58
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +31 -55
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +16 -42
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +10 -38
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +21 -50
- package/dist/components/arcgis-charts-info-modal/customElement.js +17 -43
- 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.d.ts +57 -3
- package/dist/index.js +464 -459
- package/dist/json-schema/index.d.ts +4839 -4825
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -0
- package/dist/model.js +77 -39
- package/dist/spec/web-chart.d.ts +5 -1
- package/dist/utils/layer/index.d.ts +3 -1
- package/dist/utils/layer/utils/index.d.ts +16 -4
- package/package.json +3 -3
- package/dist/cdn/2NCZCQJQ.js +0 -2
- package/dist/cdn/2QWN4KMQ.js +0 -2
- package/dist/cdn/3HHF7GDV.js +0 -2
- package/dist/cdn/43EPRNLY.js +0 -2
- package/dist/cdn/53YROF54.js +0 -2
- package/dist/cdn/57M5BGHO.js +0 -2
- package/dist/cdn/5Y2AIQMX.js +0 -2
- package/dist/cdn/6CGECXEP.js +0 -2
- package/dist/cdn/6MDEAZCW.js +0 -2
- package/dist/cdn/6YLXJOBN.js +0 -2
- package/dist/cdn/7LE76H3V.js +0 -2
- package/dist/cdn/7OK6DOOJ.js +0 -2
- package/dist/cdn/7QJ77UCB.js +0 -2
- package/dist/cdn/7XCTW7TF.js +0 -2
- package/dist/cdn/ABPBMLW4.js +0 -4
- package/dist/cdn/ACBNPWST.js +0 -2
- package/dist/cdn/AU5NU5OU.js +0 -2
- package/dist/cdn/AUKWLONZ.js +0 -2
- package/dist/cdn/B3TAQSVG.js +0 -2
- package/dist/cdn/B7BDZS5Q.js +0 -2
- package/dist/cdn/B7OT7NHE.js +0 -2
- package/dist/cdn/BIW46U2E.js +0 -2
- package/dist/cdn/BNMVFWWL.js +0 -2
- package/dist/cdn/BUPTELGR.js +0 -2
- package/dist/cdn/C3EG6JVL.js +0 -2
- package/dist/cdn/CEML6AMG.js +0 -2
- package/dist/cdn/CSISDIV5.js +0 -2
- package/dist/cdn/CXSBPI44.js +0 -2
- package/dist/cdn/DEWZASZK.js +0 -2
- package/dist/cdn/FJFVBE6K.js +0 -2
- package/dist/cdn/FLBXUDIS.js +0 -2
- package/dist/cdn/FQKOG42T.js +0 -2
- package/dist/cdn/FTXNBE44.js +0 -2
- package/dist/cdn/FU6JT3UD.js +0 -2
- package/dist/cdn/H7SXQSDY.js +0 -2
- package/dist/cdn/HFHPPFTL.js +0 -2
- package/dist/cdn/IQ5ZYJIB.js +0 -2
- package/dist/cdn/IVSSNIVI.js +0 -2
- package/dist/cdn/J27JNN6U.js +0 -2
- package/dist/cdn/J5O4KJG3.js +0 -2
- package/dist/cdn/KJHX7M5S.js +0 -2
- package/dist/cdn/KKDZFW5O.js +0 -2
- package/dist/cdn/KRZLTTVV.js +0 -2
- package/dist/cdn/KUOSDD5D.js +0 -2
- package/dist/cdn/L767SIJD.js +0 -2
- package/dist/cdn/LSF52M7M.js +0 -2
- package/dist/cdn/LW3BORFM.js +0 -2
- package/dist/cdn/M3ATYECI.js +0 -2
- package/dist/cdn/M6BMA2X5.js +0 -2
- package/dist/cdn/MCSGNGSS.js +0 -2
- package/dist/cdn/MJEMDC6S.js +0 -2
- package/dist/cdn/MY2TTPFJ.js +0 -2
- package/dist/cdn/MZQHYO73.js +0 -2
- package/dist/cdn/N6ZYLQ35.js +0 -2
- package/dist/cdn/ODM6XDHJ.js +0 -2
- package/dist/cdn/PAPWPFW4.js +0 -2
- package/dist/cdn/PDDEFX6K.js +0 -2
- package/dist/cdn/PNQ6VVJK.js +0 -2
- package/dist/cdn/QCO44WFX.js +0 -2
- package/dist/cdn/QCZO6SPY.js +0 -2
- package/dist/cdn/QJQCXQZQ.js +0 -2
- package/dist/cdn/QLBJVTC3.js +0 -2
- package/dist/cdn/QLRYZVYC.js +0 -2
- package/dist/cdn/QRJS3CVV.js +0 -2
- package/dist/cdn/QWCMSPHD.js +0 -2
- package/dist/cdn/RCS3DD7Z.js +0 -104
- package/dist/cdn/S52W7JS7.js +0 -2
- package/dist/cdn/SDWC5FQU.js +0 -2
- package/dist/cdn/SLGQSOZB.js +0 -2
- package/dist/cdn/SNQFOXQP.js +0 -2
- package/dist/cdn/STPMMRCH.js +0 -2
- package/dist/cdn/SUYBENSN.js +0 -2
- package/dist/cdn/TAW7DR2R.js +0 -2
- package/dist/cdn/TUM7FWOK.js +0 -2
- package/dist/cdn/UFCW5HCY.js +0 -2
- package/dist/cdn/URPIV4FP.js +0 -2
- package/dist/cdn/URX6VCYJ.js +0 -2
- package/dist/cdn/V2LSSOBU.js +0 -2
- package/dist/cdn/V7JH3U65.js +0 -2
- package/dist/cdn/VFOLCHS4.js +0 -2
- package/dist/cdn/VFZ5WZJL.js +0 -2
- package/dist/cdn/WEAUUIMY.js +0 -2
- package/dist/cdn/WHL3PAOM.js +0 -2
- package/dist/cdn/WQRH2BWD.js +0 -2
- package/dist/cdn/WQRXJQDO.js +0 -2
- package/dist/cdn/WTIY4H4L.js +0 -2
- package/dist/cdn/WXEJ47F6.js +0 -2
- package/dist/cdn/XUAJWZRU.js +0 -2
- package/dist/cdn/XYTCID73.js +0 -2
- package/dist/cdn/Z7L63G6V.js +0 -2
- package/dist/cdn/ZJOBVONS.js +0 -2
- package/dist/cdn/ZZQFMONS.js +0 -2
- package/dist/chunks/setup-utils.js +0 -80
- package/dist/model/index.d.ts +0 -19
- package/dist/spec/index.d.ts +0 -8
- package/dist/utils/index.d.ts +0 -33
- /package/dist/cdn/{S5OM65RV.js → COYWSD6X.js} +0 -0
|
@@ -1,42 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as $ } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as F } from "lit/directives/keyed.js";
|
|
4
|
-
import "@arcgis/toolkit/type";
|
|
5
|
-
import { r as c, s as b, m } from "../../chunks/series-types.js";
|
|
6
4
|
import { LitElement as x, createEvent as g, renderElement as A, safeClassMap as s } from "@arcgis/lumina";
|
|
7
5
|
import { css as I, html as r } from "lit";
|
|
8
|
-
import { createRef as
|
|
9
|
-
import { u as
|
|
6
|
+
import { createRef as m, ref as d } from "lit/directives/ref.js";
|
|
7
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
10
8
|
import { L as l } from "../../chunks/interfaces.js";
|
|
11
9
|
import { d as B, s as u, r as T, a as S } from "../../chunks/store.js";
|
|
12
|
-
import "@arcgis/toolkit/intl";
|
|
13
10
|
import { isEqual as k } from "lodash-es";
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
17
|
-
import "
|
|
18
|
-
import {
|
|
19
|
-
import "
|
|
20
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
21
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
22
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
23
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
24
|
-
import "@arcgis/core/intl.js";
|
|
25
|
-
import "@arcgis/core/request.js";
|
|
26
|
-
import "simple-statistics";
|
|
27
|
-
import "@arcgis/core/core/sql.js";
|
|
28
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
29
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
30
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
31
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
32
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
33
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
34
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
35
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
36
|
-
import "@arcgis/core/geometry/Point.js";
|
|
37
|
-
import "@arcgis/toolkit/dom";
|
|
38
|
-
import { r as _ } from "../../chunks/popover-ui-utils.js";
|
|
39
|
-
import { x as N } from "../../chunks/data.js";
|
|
11
|
+
import { x as E } from "../../chunks/data.js";
|
|
12
|
+
import { r as c, s as f, m as h } from "../../chunks/chart-object-literals.js";
|
|
13
|
+
import { t as L, ag as P } from "../../chunks/index.js";
|
|
14
|
+
import { d as v, m as w } from "../../chunks/index3.js";
|
|
15
|
+
import { an as C, ba as _ } from "../../chunks/index2.js";
|
|
16
|
+
import { r as N } from "../../chunks/popover-ui-utils.js";
|
|
40
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 = {
|
|
41
18
|
label: "label",
|
|
42
19
|
fieldList: "field-list",
|
|
@@ -47,7 +24,7 @@ const D = I`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
47
24
|
};
|
|
48
25
|
class U extends x {
|
|
49
26
|
constructor() {
|
|
50
|
-
super(...arguments), this._messages =
|
|
27
|
+
super(...arguments), this._messages = b(), this.commonStrings = b({ name: "common", blocking: !0 }), this.lineChartPopover = null, this.aggregationElement = m(), this.xAxisFieldElement = m(), this.numericFieldsElement = m(), this.splitByFieldElement = m(), this.intervalAlignmentElement = m(), this.intervalElement = m(), this.onLineChartDataChange = (e) => {
|
|
51
28
|
try {
|
|
52
29
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
53
30
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
@@ -99,9 +76,9 @@ class U extends x {
|
|
|
99
76
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
100
77
|
}
|
|
101
78
|
willUpdate(e) {
|
|
102
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel =
|
|
79
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel = L(this.model.aggregationType, this.commonStrings);
|
|
103
80
|
const t = this.model.timeAggregationType;
|
|
104
|
-
t !== void 0 && (this.timeAggregationLabel =
|
|
81
|
+
t !== void 0 && (this.timeAggregationLabel = P(t, this.commonStrings)), this.disableSplitBy = this.model.numericFields.length > 1;
|
|
105
82
|
}
|
|
106
83
|
disconnectedCallback() {
|
|
107
84
|
super.disconnectedCallback(), this.removeLineChartDataPopover(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -141,7 +118,7 @@ class U extends x {
|
|
|
141
118
|
return this.model.splitByField === "" || this.model.numericFields.length > 1 ? "" : v(this.layerFieldsInfo, this.model.splitByField);
|
|
142
119
|
}
|
|
143
120
|
getCorrectedXAxisValue() {
|
|
144
|
-
return
|
|
121
|
+
return E({
|
|
145
122
|
fieldName: this.model.xAxisField,
|
|
146
123
|
fieldList: this.layerFieldsInfo
|
|
147
124
|
}) ? "" : v(this.layerFieldsInfo, this.model.xAxisField);
|
|
@@ -157,13 +134,13 @@ class U extends x {
|
|
|
157
134
|
}
|
|
158
135
|
shouldShowTimeBinning() {
|
|
159
136
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !== c.NoAggregation;
|
|
160
|
-
return e !== void 0 &&
|
|
137
|
+
return e !== void 0 && _(e) && t;
|
|
161
138
|
}
|
|
162
139
|
setupPopover(e) {
|
|
163
140
|
e.stopImmediatePropagation(), this.removeLineChartDataPopover();
|
|
164
141
|
const t = {
|
|
165
142
|
size: this.model.temporalBinningSize ?? 1,
|
|
166
|
-
unit: this.model.temporalBinningUnit ??
|
|
143
|
+
unit: this.model.temporalBinningUnit ?? f.Second
|
|
167
144
|
};
|
|
168
145
|
let i, a, o;
|
|
169
146
|
switch (this.contentKind) {
|
|
@@ -189,41 +166,41 @@ class U extends x {
|
|
|
189
166
|
this.lineChartPopover = A(r`<arcgis-charts-config-line-chart-popover .headingTitle=${a} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${o} @arcgisChartsConfigLineChartDataPopoverChange=${this.onLineChartDataChange} @arcgisChartsConfigLineChartPopoverClose=${this.popoverClose}></arcgis-charts-config-line-chart-popover>`), !document.body.contains(this.lineChartPopover) && this.lineChartPopover !== null && document.body.appendChild(this.lineChartPopover);
|
|
190
167
|
}
|
|
191
168
|
removeLineChartDataPopover() {
|
|
192
|
-
this.lineChartPopover !== null && (this.lineChartPopover.open = !1, this.lineChartPopover =
|
|
169
|
+
this.lineChartPopover !== null && (this.lineChartPopover.open = !1, this.lineChartPopover = N(this.lineChartPopover));
|
|
193
170
|
}
|
|
194
171
|
renderAggregation() {
|
|
195
|
-
return r`<arcgis-charts-config-field-select .label=${this.model.aggregationType === c.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${
|
|
172
|
+
return r`<arcgis-charts-config-field-select .label=${this.model.aggregationType === c.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${d(this.aggregationElement)}></arcgis-charts-config-field-select>`;
|
|
196
173
|
}
|
|
197
174
|
renderXAxisField() {
|
|
198
175
|
const e = this.getCorrectedXAxisValue();
|
|
199
|
-
return r`<arcgis-charts-config-field-select .label=${e} @click=${this.onXAxisFieldSelect} ${
|
|
176
|
+
return r`<arcgis-charts-config-field-select .label=${e} @click=${this.onXAxisFieldSelect} ${d(this.xAxisFieldElement)}></arcgis-charts-config-field-select>`;
|
|
200
177
|
}
|
|
201
178
|
renderSplitBy() {
|
|
202
179
|
const e = this.getCorrectedSplitByValue();
|
|
203
|
-
return r`<arcgis-charts-config-field-select .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${
|
|
180
|
+
return r`<arcgis-charts-config-field-select .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${d(this.splitByFieldElement)}></arcgis-charts-config-field-select>`;
|
|
204
181
|
}
|
|
205
182
|
renderNumericFields(e) {
|
|
206
183
|
const t = C(this.model.layer).idField, i = [];
|
|
207
184
|
for (const a of e)
|
|
208
185
|
a !== t && i.push(this.buildNumericFieldItem(a));
|
|
209
|
-
return r`<calcite-list label class=${s(n.fieldList)} ${
|
|
186
|
+
return r`<calcite-list label class=${s(n.fieldList)} ${d(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
210
187
|
}
|
|
211
188
|
renderInterval() {
|
|
212
|
-
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = w(this.model.temporalBinningUnit ??
|
|
189
|
+
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = w(this.model.temporalBinningUnit ?? f.Second, this._messages) ?? "", a = S(u), o = {
|
|
213
190
|
size: this.model.temporalBinningSize,
|
|
214
191
|
unit: this.model.temporalBinningUnit
|
|
215
192
|
}, p = k(o, a);
|
|
216
193
|
return [
|
|
217
194
|
r`<calcite-list label selection-appearance=border><calcite-list-item .value=${e ? "" : `${t} ${i}`} .label=${e ? "" : `${t} ${i}`} @click=${e ? () => {
|
|
218
|
-
} : this.onIntervalSelect} ${
|
|
195
|
+
} : this.onIntervalSelect} ${d(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,
|
|
219
196
|
r`<div class=${s(n.linkContainer)}><calcite-button .disabled=${p} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`
|
|
220
197
|
];
|
|
221
198
|
}
|
|
222
199
|
renderIntervalAlignment() {
|
|
223
|
-
return r`<arcgis-charts-config-field-select .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${
|
|
200
|
+
return r`<arcgis-charts-config-field-select .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${d(this.intervalAlignmentElement)}></arcgis-charts-config-field-select>`;
|
|
224
201
|
}
|
|
225
202
|
renderEmptyBins() {
|
|
226
|
-
return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${
|
|
203
|
+
return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Zero} .checked=${this.model.nullPolicy === h.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Interpolate} .checked=${this.model.nullPolicy === h.Interpolate}></calcite-radio-button>${this._messages.connectLine}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Null} .checked=${this.model.nullPolicy === h.Null}></calcite-radio-button>${this._messages.breakLine}</calcite-label></calcite-radio-button-group>`;
|
|
227
204
|
}
|
|
228
205
|
render() {
|
|
229
206
|
const e = this.renderAggregation(), t = this.renderXAxisField(), i = this.renderSplitBy(), a = this.renderNumericFields([...this.model.numericFields]), o = this.renderInterval(), p = this.renderIntervalAlignment(), y = this.renderEmptyBins();
|
|
@@ -1,44 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as u } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
5
|
-
import "@arcgis/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "
|
|
9
|
-
import {
|
|
10
|
-
import "luxon";
|
|
11
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
12
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
13
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
14
|
-
import { ay as F, bi as I, bp as P, cW as A, c_ as v, cN as T, dg as x, cc as D } from "../../chunks/index.js";
|
|
15
|
-
import "@arcgis/core/Graphic.js";
|
|
16
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
17
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
18
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
19
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
20
|
-
import "@arcgis/core/intl.js";
|
|
21
|
-
import "@arcgis/core/request.js";
|
|
22
|
-
import "simple-statistics";
|
|
23
|
-
import "@arcgis/core/core/sql.js";
|
|
24
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
25
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
26
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
27
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
28
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
29
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
30
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
31
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
32
|
-
import "@arcgis/core/geometry/Point.js";
|
|
33
|
-
import "@arcgis/toolkit/dom";
|
|
34
|
-
import { e as E, p as S } from "../../chunks/popover-ui-utils.js";
|
|
35
|
-
import { LitElement as z, createEvent as C, safeClassMap as o } from "@arcgis/lumina";
|
|
36
|
-
import { css as N, html as n } from "lit";
|
|
37
|
-
import { createRef as d, ref as m } from "lit/directives/ref.js";
|
|
38
|
-
import { u as L } from "../../chunks/useT9n.js";
|
|
5
|
+
import { LitElement as k, createEvent as b, safeClassMap as o } from "@arcgis/lumina";
|
|
6
|
+
import { css as F, html as n } from "lit";
|
|
7
|
+
import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
8
|
+
import { isEqual as v } from "lodash-es";
|
|
9
|
+
import { u as C } from "../../chunks/useT9n.js";
|
|
39
10
|
import { L as a } from "../../chunks/interfaces.js";
|
|
40
|
-
import { b as
|
|
41
|
-
|
|
11
|
+
import { b as L, a as I, c as d, e as P, s as A } from "../../chunks/chart-ui-utils2.js";
|
|
12
|
+
import { R as T } from "../../chunks/rest-js-object-literals.js";
|
|
13
|
+
import { t as g, s as r } from "../../chunks/chart-object-literals.js";
|
|
14
|
+
import { e as x, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
|
+
import { t as E, ag as S } from "../../chunks/index.js";
|
|
16
|
+
import { d as z, m as N } from "../../chunks/index3.js";
|
|
17
|
+
import { bg as w, bj as $, ba as K, bs as B } from "../../chunks/index2.js";
|
|
18
|
+
const _ = F`.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}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, c = {
|
|
42
19
|
jsAppFlyout: "js-app-flyout",
|
|
43
20
|
name: "line-chart-data-popover",
|
|
44
21
|
numericFieldPickList: "line-chart-data-numeric-fields-pick-list",
|
|
@@ -48,9 +25,9 @@ const _ = N`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
48
25
|
sizeSection: "size-section",
|
|
49
26
|
applyButton: "apply-button"
|
|
50
27
|
};
|
|
51
|
-
class H extends
|
|
28
|
+
class H extends k {
|
|
52
29
|
constructor() {
|
|
53
|
-
super(...arguments), this._messages =
|
|
30
|
+
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist = h(), this.intervalSizeElement = h(), this.intervalTypeElement = h(), this.popoverElement = h(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigLineChartDataPopoverChange = b(), this.arcgisChartsConfigLineChartPopoverClose = b();
|
|
54
31
|
}
|
|
55
32
|
static {
|
|
56
33
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
@@ -63,28 +40,28 @@ class H extends z {
|
|
|
63
40
|
}
|
|
64
41
|
willUpdate(e) {
|
|
65
42
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
66
|
-
const t =
|
|
67
|
-
|
|
68
|
-
const l = [
|
|
69
|
-
|
|
43
|
+
const t = L.map((i) => E(i, this.commonStrings));
|
|
44
|
+
v(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
45
|
+
const l = [g.Start, g.End].map((i) => S(i, this.commonStrings));
|
|
46
|
+
v(this.timeAggregationLabels, l) || (this.timeAggregationLabels = l);
|
|
70
47
|
}
|
|
71
48
|
updated() {
|
|
72
49
|
setTimeout(() => {
|
|
73
50
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
74
|
-
},
|
|
51
|
+
}, I.PopoverTimer), x(this.popoverElement.value, this.open);
|
|
75
52
|
}
|
|
76
53
|
selectedContentChange(e, t) {
|
|
77
|
-
this.pickListHasChanged =
|
|
54
|
+
this.pickListHasChanged = D(e, t);
|
|
78
55
|
}
|
|
79
56
|
buildAggregationPickListItems() {
|
|
80
|
-
return u(
|
|
57
|
+
return u(L, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels?.[t]} .value=${e} .selected=${d(e, this.selectedContent)}></calcite-list-item>`);
|
|
81
58
|
}
|
|
82
59
|
buildIntervalAlignmentPickListItems() {
|
|
83
|
-
const e = [
|
|
84
|
-
return u(e, (t) => t, (t, s) => n`<calcite-list-item .label=${this.timeAggregationLabels?.[s]} .value=${t} .selected=${
|
|
60
|
+
const e = [g.Start, g.End];
|
|
61
|
+
return u(e, (t) => t, (t, s) => n`<calcite-list-item .label=${this.timeAggregationLabels?.[s]} .value=${t} .selected=${d(t, this.selectedContent)}></calcite-list-item>`);
|
|
85
62
|
}
|
|
86
63
|
buildPickListItem(e) {
|
|
87
|
-
return f(e.name, n`<calcite-list-item .label=${
|
|
64
|
+
return f(e.name, n`<calcite-list-item .label=${z(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${d(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
88
65
|
}
|
|
89
66
|
buildPickListItems(e) {
|
|
90
67
|
const t = this.layerFieldsInfo?.length ?? 0, s = [];
|
|
@@ -92,23 +69,23 @@ class H extends z {
|
|
|
92
69
|
case a.numericFields: {
|
|
93
70
|
for (let l = 0; l < t; l += 1) {
|
|
94
71
|
const i = this.layerFieldsInfo?.[l];
|
|
95
|
-
i &&
|
|
72
|
+
i && $(i) && s.push(this.buildPickListItem(i));
|
|
96
73
|
}
|
|
97
74
|
break;
|
|
98
75
|
}
|
|
99
76
|
case a.xAxisField: {
|
|
100
77
|
for (let l = 0; l < t; l += 1) {
|
|
101
78
|
const i = this.layerFieldsInfo?.[l];
|
|
102
|
-
i && (
|
|
79
|
+
i && ($(i) || K(i) || B(i)) && s.push(this.buildPickListItem(i));
|
|
103
80
|
}
|
|
104
81
|
break;
|
|
105
82
|
}
|
|
106
83
|
case a.splitByField: {
|
|
107
|
-
const l = f(" ", n`<calcite-list-item label=" " value=" " .selected=${
|
|
84
|
+
const l = f(" ", n`<calcite-list-item label=" " value=" " .selected=${d("", this.selectedContent)}></calcite-list-item>`);
|
|
108
85
|
s.push(l);
|
|
109
86
|
for (let i = 0; i < t; i += 1) {
|
|
110
87
|
const p = this.layerFieldsInfo?.[i];
|
|
111
|
-
p && (
|
|
88
|
+
p && (w(p) || p.type === T.String) && s.push(this.buildPickListItem(p));
|
|
112
89
|
}
|
|
113
90
|
break;
|
|
114
91
|
}
|
|
@@ -122,7 +99,7 @@ class H extends z {
|
|
|
122
99
|
eventEmitter: this.arcgisChartsConfigLineChartDataPopoverChange,
|
|
123
100
|
contentKind: this.contentKind
|
|
124
101
|
};
|
|
125
|
-
|
|
102
|
+
P(e);
|
|
126
103
|
}
|
|
127
104
|
this.open = !1, this.arcgisChartsConfigLineChartPopoverClose.emit();
|
|
128
105
|
}
|
|
@@ -149,35 +126,35 @@ class H extends z {
|
|
|
149
126
|
}
|
|
150
127
|
renderAggregationType() {
|
|
151
128
|
const e = this.buildAggregationPickListItems();
|
|
152
|
-
return n`<calcite-list label class=${o(
|
|
129
|
+
return n`<calcite-list label class=${o(c.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
153
130
|
}
|
|
154
131
|
renderXAxisField() {
|
|
155
132
|
const e = this.buildPickListItems(a.xAxisField);
|
|
156
|
-
return n`<calcite-list label class=${o(
|
|
133
|
+
return n`<calcite-list label class=${o(c.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
157
134
|
}
|
|
158
135
|
renderNumericFields() {
|
|
159
136
|
const e = this.buildPickListItems(a.numericFields);
|
|
160
|
-
return n`<calcite-list label class=${o(
|
|
137
|
+
return n`<calcite-list label class=${o(c.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
161
138
|
}
|
|
162
139
|
renderSplitByField() {
|
|
163
140
|
const e = this.buildPickListItems(a.splitByField);
|
|
164
|
-
return n`<calcite-list label class=${o(
|
|
141
|
+
return n`<calcite-list label class=${o(c.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
165
142
|
}
|
|
166
143
|
renderIntervalAlignment() {
|
|
167
144
|
const e = this.buildIntervalAlignmentPickListItems();
|
|
168
|
-
return n`<calcite-list label class=${o(
|
|
145
|
+
return n`<calcite-list label class=${o(c.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
169
146
|
}
|
|
170
147
|
renderInterval() {
|
|
171
148
|
const e = this.selectedContent, t = [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
149
|
+
r.Second,
|
|
150
|
+
r.Minute,
|
|
151
|
+
r.Hour,
|
|
152
|
+
r.Day,
|
|
153
|
+
r.Week,
|
|
154
|
+
r.Month,
|
|
155
|
+
r.Year
|
|
179
156
|
];
|
|
180
|
-
return n`<div><div class=${o(
|
|
157
|
+
return n`<div><div class=${o(c.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${A(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=${N(s, this._messages)} .selected=${e?.unit === s}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(c.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
181
158
|
}
|
|
182
159
|
renderPopoverInfo() {
|
|
183
160
|
let e;
|
|
@@ -205,10 +182,10 @@ class H extends z {
|
|
|
205
182
|
}
|
|
206
183
|
render() {
|
|
207
184
|
let e;
|
|
208
|
-
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(
|
|
185
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(c.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div class=${o(c.jsAppFlyout)}><calcite-popover class=${o(c.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(c.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
209
186
|
}
|
|
210
187
|
}
|
|
211
|
-
|
|
188
|
+
y("arcgis-charts-config-line-chart-popover", H);
|
|
212
189
|
export {
|
|
213
190
|
H as ArcgisChartsConfigLineChartPopover
|
|
214
191
|
};
|
|
@@ -1,67 +1,39 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as u } from "lit/directives/keyed.js";
|
|
4
|
-
import "@arcgis/
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../chunks/
|
|
9
|
-
import "
|
|
10
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
11
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
12
|
-
import { C as I } from "../../chunks/index.js";
|
|
13
|
-
import "@arcgis/core/Graphic.js";
|
|
14
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
16
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
17
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
18
|
-
import "@esri/arcgis-html-sanitizer";
|
|
19
|
-
import "@arcgis/core/intl.js";
|
|
20
|
-
import "@arcgis/core/request.js";
|
|
21
|
-
import "simple-statistics";
|
|
22
|
-
import "@arcgis/core/core/sql.js";
|
|
23
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
24
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
25
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
26
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
27
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
28
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
29
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
30
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
31
|
-
import "@arcgis/core/geometry/Point.js";
|
|
32
|
-
import "@arcgis/toolkit/dom";
|
|
4
|
+
import { LitElement as I, renderElement as $, safeStyleMap as L } from "@arcgis/lumina";
|
|
5
|
+
import { css as x, html as o } from "lit";
|
|
6
|
+
import { repeat as P } from "lit/directives/repeat.js";
|
|
7
|
+
import { u as y } from "../../chunks/useT9n.js";
|
|
8
|
+
import { g as b } from "../../chunks/chart-ui-utils2.js";
|
|
9
|
+
import { C as M } from "../../chunks/index3.js";
|
|
33
10
|
import { r as d } from "../../chunks/popover-ui-utils.js";
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
import { repeat as y } from "lit/directives/repeat.js";
|
|
37
|
-
import { u as b } from "../../chunks/useT9n.js";
|
|
38
|
-
import { g as M } from "../../chunks/chart-ui-utils2.js";
|
|
39
|
-
const O = P`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`;
|
|
40
|
-
class k extends $ {
|
|
11
|
+
const O = x`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`;
|
|
12
|
+
class k extends I {
|
|
41
13
|
constructor() {
|
|
42
|
-
super(...arguments), this._messages =
|
|
14
|
+
super(...arguments), this._messages = y(), this.seriesPopover = null, this.open = !1, this.seriesNameChange = (e) => {
|
|
43
15
|
if (e.detail !== null || e.detail !== void 0) {
|
|
44
|
-
const
|
|
45
|
-
this.model.setSeriesName(
|
|
16
|
+
const s = e.detail?.name;
|
|
17
|
+
this.model.setSeriesName(s, this.selectedSeriesIndex ?? -1);
|
|
46
18
|
}
|
|
47
19
|
}, this.seriesColorChange = (e) => {
|
|
48
20
|
if (e.detail !== null && e.detail !== void 0) {
|
|
49
|
-
const { color:
|
|
50
|
-
this.model.colorMatch = !1,
|
|
21
|
+
const { color: s } = e.detail;
|
|
22
|
+
this.model.colorMatch = !1, s !== void 0 && (this.model.setSeriesColor(s, this.selectedSeriesIndex ?? -1), this.model.setSeriesMarkerColor(s, this.selectedSeriesIndex ?? -1));
|
|
51
23
|
}
|
|
52
24
|
}, this.seriesLineStyleChange = (e) => {
|
|
53
25
|
if (e.detail !== null && e.detail !== void 0) {
|
|
54
|
-
const { lineStyle:
|
|
55
|
-
|
|
26
|
+
const { lineStyle: s } = e.detail;
|
|
27
|
+
s !== void 0 && this.model.setSeriesLineStyle(s, this.selectedSeriesIndex ?? -1);
|
|
56
28
|
}
|
|
57
29
|
}, this.seriesLineWidthChange = (e) => {
|
|
58
30
|
if (e.detail !== null && e.detail !== void 0) {
|
|
59
|
-
const { lineWidth:
|
|
60
|
-
|
|
31
|
+
const { lineWidth: s } = e.detail;
|
|
32
|
+
s !== void 0 && (this.model.setSeriesLineWidth(s, this.selectedSeriesIndex ?? -1), this.model.setSeriesMarkerSize(s * 2, this.selectedSeriesIndex ?? -1));
|
|
61
33
|
}
|
|
62
34
|
}, this.seriesPopoverClose = (e) => {
|
|
63
|
-
const { selectedSeriesIndex:
|
|
64
|
-
this.selectedSeriesIndex ===
|
|
35
|
+
const { selectedSeriesIndex: s } = e.detail;
|
|
36
|
+
this.selectedSeriesIndex === s && (this.seriesPopover = d(this.seriesPopover), this.selectedSeriesIndex = void 0);
|
|
65
37
|
}, this.onModelConfigChange = () => {
|
|
66
38
|
this.requestUpdate();
|
|
67
39
|
}, this.seriesOrderResetCounter = 0, this.activeColorMatch = !1, this.popoverPlacement = "leading";
|
|
@@ -81,26 +53,26 @@ class k extends $ {
|
|
|
81
53
|
disconnectedCallback() {
|
|
82
54
|
super.disconnectedCallback(), this.removeSeriesPopover(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
83
55
|
}
|
|
84
|
-
modelChange(e,
|
|
85
|
-
|
|
56
|
+
modelChange(e, s) {
|
|
57
|
+
s?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
86
58
|
}
|
|
87
59
|
selectedSeriesIndexChange() {
|
|
88
|
-
this.selectedSeriesIndex !== void 0 && (this.seriesPopover =
|
|
60
|
+
this.selectedSeriesIndex !== void 0 && (this.seriesPopover = $(o`<arcgis-charts-config-line-chart-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .placement=${this.popoverPlacement} .open=${this.open} .selectedSeriesIndex=${this.selectedSeriesIndex} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-line-chart-series-popover>`), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover));
|
|
89
61
|
}
|
|
90
62
|
removeSeriesPopover() {
|
|
91
63
|
this.seriesPopover !== void 0 && this.seriesPopover !== null && (this.seriesPopover.open = !1, this.seriesPopover = d(this.seriesPopover));
|
|
92
64
|
}
|
|
93
65
|
buildSeriesListItems() {
|
|
94
|
-
const e = this.model.seriesLength,
|
|
95
|
-
return
|
|
96
|
-
const t = this.model.getSeriesId(
|
|
66
|
+
const e = this.model.seriesLength, s = Array.from({ length: e }, (i, t) => t);
|
|
67
|
+
return P(s, (i) => this.model.getSeriesId(i), (i) => {
|
|
68
|
+
const t = this.model.getSeriesId(i), l = this.model.getSeriesColor(i), h = this.model.getSeriesName(i), c = this.model.chartSubType === M.BarAndLineFromFields ? this._messages.series : t, m = this.model.getSeriesLineStyle(i), g = b(m);
|
|
97
69
|
let n = "#CCCCCC", a = "minus-circle";
|
|
98
70
|
if ((e > 1 || !this.activeColorMatch) && l !== void 0) {
|
|
99
|
-
a = `line-${
|
|
100
|
-
const [
|
|
101
|
-
n = `rgba(${
|
|
71
|
+
a = `line-${g}`;
|
|
72
|
+
const [C, p, S, v] = [...l];
|
|
73
|
+
n = `rgba(${C},${p},${S},${v / 255})`;
|
|
102
74
|
}
|
|
103
|
-
return o`<calcite-list-item .label=${h ?? t ?? ""} .description=${c} .value=${t} .selected=${this.selectedSeriesIndex ===
|
|
75
|
+
return o`<calcite-list-item .label=${h ?? t ?? ""} .description=${c} .value=${t} .selected=${this.selectedSeriesIndex === i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${a} style=${L({ color: n })}></calcite-icon></calcite-list-item>`;
|
|
104
76
|
});
|
|
105
77
|
}
|
|
106
78
|
buildSeriesList() {
|
|
@@ -111,14 +83,14 @@ class k extends $ {
|
|
|
111
83
|
}
|
|
112
84
|
onCalciteListOrderChange(e) {
|
|
113
85
|
if (e.detail !== null && e.detail !== void 0) {
|
|
114
|
-
const { newIndex:
|
|
115
|
-
this.model.moveSeries(r,
|
|
86
|
+
const { newIndex: s, oldIndex: r } = e.detail;
|
|
87
|
+
this.model.moveSeries(r, s), this.seriesOrderResetCounter += 1;
|
|
116
88
|
}
|
|
117
89
|
}
|
|
118
90
|
openSeriesPopOver(e) {
|
|
119
91
|
e.stopImmediatePropagation(), this.removeSeriesPopover();
|
|
120
|
-
const
|
|
121
|
-
this.open = this.selectedSeriesIndex !==
|
|
92
|
+
const s = e.target, r = s.localName === "calcite-list-item" ? s : s.parentNode, i = this.model.getSeriesIndex(r.value);
|
|
93
|
+
this.open = this.selectedSeriesIndex !== i, this.selectedSeriesIndex = this.selectedSeriesIndex !== i ? i : void 0;
|
|
122
94
|
}
|
|
123
95
|
render() {
|
|
124
96
|
return o`<calcite-panel .heading=${this._messages.series}><calcite-button slot=header-actions-end @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent scale=s icon-end=reset>${this._messages.reset}</calcite-button>${this.buildSeriesList()}</calcite-panel>`;
|