@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,50 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as u } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as C, html as v } from "lit";
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "@arcgis/
|
|
8
|
-
import "../../chunks/
|
|
4
|
+
import { i as f, m, s as y, U as g } from "../../chunks/chart-ui-utils2.js";
|
|
5
|
+
import { u as S } from "../../chunks/useT9n.js";
|
|
6
|
+
import { createRef as a, ref as o } from "lit/directives/ref.js";
|
|
7
|
+
import { LitElement as $, createEvent as s, safeClassMap as l, nothing as c } from "@arcgis/lumina";
|
|
8
|
+
import { e as b } from "../../chunks/popover-ui-utils.js";
|
|
9
|
+
import { aB as E } from "../../chunks/index.js";
|
|
9
10
|
import { g as i } from "../../chunks/rest-js-object-literals.js";
|
|
10
|
-
|
|
11
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
12
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
13
|
-
import { dT as f } from "../../chunks/index.js";
|
|
14
|
-
import "@arcgis/core/Graphic.js";
|
|
15
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
16
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
17
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
18
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
19
|
-
import "@esri/arcgis-html-sanitizer";
|
|
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 y } from "../../chunks/popover-ui-utils.js";
|
|
35
|
-
import { i as S, m, s as $, U as g } from "../../chunks/chart-ui-utils2.js";
|
|
36
|
-
import { u as b } from "../../chunks/useT9n.js";
|
|
37
|
-
import { createRef as n, ref as a } from "lit/directives/ref.js";
|
|
38
|
-
import { LitElement as E, createEvent as s, safeClassMap as l, nothing as r } from "@arcgis/lumina";
|
|
39
|
-
const o = {
|
|
11
|
+
const n = {
|
|
40
12
|
jsAppFlyout: "js-app-flyout",
|
|
41
13
|
sizeSection: "size-section",
|
|
42
14
|
dropdownText: "dropdown-text",
|
|
43
15
|
panelChildrenContainer: "panel-children-container"
|
|
44
16
|
}, w = C`.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 calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
45
|
-
class x extends
|
|
17
|
+
class x extends $ {
|
|
46
18
|
constructor() {
|
|
47
|
-
super(...arguments), this._messages =
|
|
19
|
+
super(...arguments), this._messages = S(), this.popoverElement = a(), this.lineWidthInputElement = a(), this.lineStyleDropdownElement = a(), this.open = !1, this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSeriesPopoverColorChange = s(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = s(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = s(), this.arcgisChartsConfigSeriesPopoverNameChange = s();
|
|
48
20
|
}
|
|
49
21
|
static {
|
|
50
22
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedSeriesIndex: 9, selectedLineWidth: 9, placement: 1, open: 5 };
|
|
@@ -56,7 +28,7 @@ class x extends E {
|
|
|
56
28
|
await this.popoverElement.value?.reposition();
|
|
57
29
|
}
|
|
58
30
|
updated() {
|
|
59
|
-
|
|
31
|
+
b(this.popoverElement.value, this.open);
|
|
60
32
|
}
|
|
61
33
|
seriesNameChange(e) {
|
|
62
34
|
const t = e.target.value;
|
|
@@ -68,8 +40,8 @@ class x extends E {
|
|
|
68
40
|
});
|
|
69
41
|
}
|
|
70
42
|
colorChange(e) {
|
|
71
|
-
const t = e instanceof CustomEvent ? e.detail : e, [
|
|
72
|
-
this.selectedColor = [
|
|
43
|
+
const t = e instanceof CustomEvent ? e.detail : e, [r, d, h] = t, p = E * 255;
|
|
44
|
+
this.selectedColor = [r, d, h, p], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [r, d, h, p] });
|
|
73
45
|
}
|
|
74
46
|
lineStyleChange() {
|
|
75
47
|
const e = this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;
|
|
@@ -77,7 +49,7 @@ class x extends E {
|
|
|
77
49
|
}
|
|
78
50
|
lineWidthChange() {
|
|
79
51
|
const e = Number.parseInt(this.lineWidthInputElement.value?.value ?? "");
|
|
80
|
-
this.lineWidthInputElement.value?.value !== void 0 &&
|
|
52
|
+
this.lineWidthInputElement.value?.value !== void 0 && f(e, this.lineWidthInputElement.value.min, this.lineWidthInputElement.value.max) ? (this.selectedLineWidth = e, this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({ lineWidth: e }), m({
|
|
81
53
|
inputElement: this.lineWidthInputElement.value,
|
|
82
54
|
status: g.IDLE
|
|
83
55
|
})) : this.lineWidthInputElement.value && m({
|
|
@@ -103,7 +75,7 @@ class x extends E {
|
|
|
103
75
|
}
|
|
104
76
|
render() {
|
|
105
77
|
const e = this.selectedColor;
|
|
106
|
-
return v`<div class=${l({ [
|
|
78
|
+
return v`<div class=${l({ [n.jsAppFlyout]: !0 })}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${o(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${l(n.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${l(n.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${o(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${l(n.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle === i.Solid} accesskey=${i.Solid ?? c}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle === i.Dot} accesskey=${i.Dot ?? c}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle === i.Dash} accesskey=${i.Dash ?? c}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${y(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${o(this.lineWidthInputElement)}></calcite-input></calcite-label></div><div class=${l(n.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
107
79
|
}
|
|
108
80
|
}
|
|
109
81
|
u("arcgis-charts-config-line-chart-series-popover", x);
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as m, html as s } from "lit";
|
|
4
|
-
import "
|
|
5
|
-
import "../../chunks/
|
|
6
|
-
import { i as y, g as t } from "../../chunks/rest-js-object-literals.js";
|
|
7
|
-
import { i as u, m as o, s as g, U as c } from "../../chunks/chart-ui-utils2.js";
|
|
8
|
-
import { u as S } from "../../chunks/useT9n.js";
|
|
4
|
+
import { i as y, m as o, s as u, U as c } from "../../chunks/chart-ui-utils2.js";
|
|
5
|
+
import { u as g } from "../../chunks/useT9n.js";
|
|
9
6
|
import { createRef as r, ref as h } from "lit/directives/ref.js";
|
|
10
|
-
import { LitElement as
|
|
7
|
+
import { LitElement as S, createEvent as d, safeClassMap as l, nothing as n } from "@arcgis/lumina";
|
|
8
|
+
import { i as f, g as t } from "../../chunks/rest-js-object-literals.js";
|
|
11
9
|
const a = {
|
|
12
10
|
sizeSection: "size-section",
|
|
13
11
|
dropdownText: "dropdown-text",
|
|
14
12
|
colorPickerContainer: "color-picker-container"
|
|
15
13
|
}, w = m`.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{overflow-y:auto}:host arcgis-charts-config-colors{padding:var(--arcgis-charts-panel-padding);padding-bottom:1rem}:host .size-section{padding:1rem;display:flex}:host .size-section calcite-label{flex:1 1 0px;width:0}:host .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}:host .color-picker-container{display:flex}:host .color-picker-container calcite-label{flex:1 1 0px;width:0}:host .color-picker-container calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}`;
|
|
16
|
-
class b extends
|
|
14
|
+
class b extends S {
|
|
17
15
|
constructor() {
|
|
18
|
-
super(...arguments), this._messages =
|
|
19
|
-
type:
|
|
16
|
+
super(...arguments), this._messages = g(), this.lineWidthInputElement = r(), this.lineStyleDropdownElement = r(), this.lineStyle = {
|
|
17
|
+
type: f.SLS
|
|
20
18
|
}, this.open = !1, this.enableClose = !1, this.usePanel = !1, this.arcgisChartsConfigLineStyleChange = d(), this.arcgisChartsConfigLineStyleClose = d();
|
|
21
19
|
}
|
|
22
20
|
static {
|
|
@@ -53,7 +51,7 @@ class b extends f {
|
|
|
53
51
|
}
|
|
54
52
|
widthChange() {
|
|
55
53
|
const e = this.lineWidthInputElement.value?.value;
|
|
56
|
-
e !== void 0 &&
|
|
54
|
+
e !== void 0 && y(e, this.lineWidthInputElement.value?.min, this.lineWidthInputElement.value?.max) ? (this.lineStyle.width = Number.parseInt(e), this.emitLineStyleEvent(), this.lineWidthInputElement.value && o({
|
|
57
55
|
inputElement: this.lineWidthInputElement.value,
|
|
58
56
|
status: c.IDLE
|
|
59
57
|
})) : this.lineWidthInputElement.value && o({
|
|
@@ -66,7 +64,7 @@ class b extends f {
|
|
|
66
64
|
}
|
|
67
65
|
render() {
|
|
68
66
|
const e = [
|
|
69
|
-
s`<div class=${l(a.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${h(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.selectedLineStyle().icon} slot=trigger kind=neutral appearance=outline-fill scale=m><label class=${l(a.dropdownText)}>${this.selectedLineStyle().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.lineStyle?.style === t.Solid} accesskey=${t.Solid ?? n}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.lineStyle?.style === t.Dot} accesskey=${t.Dot ?? n}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.lineStyle?.style === t.Dash} accesskey=${t.Dash ?? n}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${
|
|
67
|
+
s`<div class=${l(a.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${h(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.selectedLineStyle().icon} slot=trigger kind=neutral appearance=outline-fill scale=m><label class=${l(a.dropdownText)}>${this.selectedLineStyle().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.lineStyle?.style === t.Solid} accesskey=${t.Solid ?? n}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.lineStyle?.style === t.Dot} accesskey=${t.Dot ?? n}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.lineStyle?.style === t.Dash} accesskey=${t.Dash ?? n}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${u(this.lineStyle?.width)} @calciteInputInput=${this.widthChange} ${h(this.lineWidthInputElement)}></calcite-input></calcite-label></div>`,
|
|
70
68
|
s`<div class=${l(a.colorPickerContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${this.lineStyle?.color ?? void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div>`
|
|
71
69
|
];
|
|
72
70
|
return this.usePanel ? s`<calcite-panel .heading=${this.header ?? this._messages.header} .closed=${!this.open} .closable=${this.enableClose} @calcitePanelClose=${this.closePanel}>${e}</calcite-panel>` : e;
|
|
@@ -1,46 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as u } from "../../chunks/runtime.js";
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "@arcgis/toolkit/type";
|
|
7
|
-
import "../../chunks/series-types.js";
|
|
8
|
-
import { i as C } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
10
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
11
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
12
|
-
import { bB as y, a8 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 { h as F } from "../../chunks/index4.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 { LitElement as v, createEvent as f } from "@arcgis/lumina";
|
|
35
|
-
import { css as b, html as c } from "lit";
|
|
3
|
+
import { isEqual as n, cloneDeep as h } from "lodash-es";
|
|
4
|
+
import { LitElement as C, createEvent as m } from "@arcgis/lumina";
|
|
5
|
+
import { css as y, html as c } from "lit";
|
|
36
6
|
import { C as d } from "../../chunks/interfaces.js";
|
|
37
|
-
|
|
38
|
-
|
|
7
|
+
import { ac as I, I as F } from "../../chunks/index2.js";
|
|
8
|
+
import { h as v } from "../../chunks/index6.js";
|
|
9
|
+
import { i as b } from "../../chunks/rest-js-object-literals.js";
|
|
10
|
+
const S = y`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
11
|
+
class L extends C {
|
|
39
12
|
constructor() {
|
|
40
13
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
41
|
-
const
|
|
42
|
-
this.layer === void 0 && await this.updateFetchLayerFieldsInfo(
|
|
43
|
-
}, this.popoverPlacement = "leading", this.usePopupTemplateFieldsInfo = !1, this.filterBySelection = !1, this.arcgisChartsConfigNoSeriesUpdate =
|
|
14
|
+
const s = e?.detail.config ?? this.model.config;
|
|
15
|
+
this.layer === void 0 && await this.updateFetchLayerFieldsInfo(s);
|
|
16
|
+
}, this.popoverPlacement = "leading", this.usePopupTemplateFieldsInfo = !1, this.filterBySelection = !1, this.arcgisChartsConfigNoSeriesUpdate = m(), this.arcgisChartsConfigWebChartChange = m();
|
|
44
17
|
}
|
|
45
18
|
static {
|
|
46
19
|
this.properties = { layerFieldsInfo: 16, model: 0, popoverPlacement: 1, seriesColor: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5, filterBySelection: 5, chartData: 0 };
|
|
@@ -62,29 +35,29 @@ class L extends v {
|
|
|
62
35
|
i?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
63
36
|
}
|
|
64
37
|
seriesColorChange(e) {
|
|
65
|
-
const { slices: i, groupedSlices:
|
|
66
|
-
let
|
|
67
|
-
this.filterBySelection ?
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
...
|
|
73
|
-
type:
|
|
74
|
-
color:
|
|
38
|
+
const { slices: i, groupedSlices: s, groupOfSlices: a } = e?.get(0) ?? {};
|
|
39
|
+
let o = [];
|
|
40
|
+
this.filterBySelection ? o = this.model.slices?.map((l) => i?.find((t) => t.sliceId === l.sliceId) ?? s?.find((t) => t.sliceId === l.sliceId) ?? l) ?? [] : o = (i ?? []).concat(s ?? []), o.forEach((l, t) => {
|
|
41
|
+
const p = this.model.slices?.find((g) => g.sliceId === o[t].sliceId);
|
|
42
|
+
p && (o[t] = { ...o[t], ...p });
|
|
43
|
+
const r = o[t].fillSymbol;
|
|
44
|
+
r !== void 0 && !n(r?.outline?.color, r?.color) && (r.outline = {
|
|
45
|
+
...r.outline ?? {},
|
|
46
|
+
type: b.SLS,
|
|
47
|
+
color: r.color
|
|
75
48
|
});
|
|
76
49
|
});
|
|
77
|
-
const
|
|
78
|
-
|
|
50
|
+
const f = (s ?? []).map((l) => l.sliceId);
|
|
51
|
+
s !== void 0 && !n(f, this.model.groupedSliceIds) && (this.model.groupedSliceIds = h(f)), n(o, this.model.slices) || (this.model.slices = h(o)), a !== void 0 && !n(a, this.model.sliceGrouping) && (this.model.sliceGrouping = h(a));
|
|
79
52
|
}
|
|
80
53
|
async updateFetchLayerFieldsInfo(e) {
|
|
81
54
|
const i = e ?? this.model.config;
|
|
82
|
-
let
|
|
83
|
-
if (!
|
|
84
|
-
const a =
|
|
85
|
-
a && (
|
|
55
|
+
let s = this.layer;
|
|
56
|
+
if (!s) {
|
|
57
|
+
const a = v(i) ? i.iLayer : void 0;
|
|
58
|
+
a && (s = await I(a));
|
|
86
59
|
}
|
|
87
|
-
|
|
60
|
+
s && (await s.load(), this.layerFieldsInfo = F(s, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
|
|
88
61
|
}
|
|
89
62
|
render() {
|
|
90
63
|
let e;
|
|
@@ -1,56 +1,31 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as C } from "lit/directives/keyed.js";
|
|
4
|
-
import "@arcgis/toolkit/intl";
|
|
5
|
-
import "lodash-es";
|
|
6
|
-
import "luxon";
|
|
7
|
-
import "@arcgis/toolkit/type";
|
|
8
|
-
import { r as u } from "../../chunks/series-types.js";
|
|
9
|
-
import { M as c, bp as m, bM as b } from "../../chunks/index.js";
|
|
10
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
11
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
12
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.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 "@arcgis/core/intl.js";
|
|
19
|
-
import "@arcgis/core/request.js";
|
|
20
|
-
import "simple-statistics";
|
|
21
|
-
import "@arcgis/core/core/sql.js";
|
|
22
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
23
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
24
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
25
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
26
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
27
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
28
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
29
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
30
|
-
import "@arcgis/core/geometry/Point.js";
|
|
31
|
-
import "@arcgis/toolkit/dom";
|
|
32
|
-
import { r as v } from "../../chunks/popover-ui-utils.js";
|
|
33
|
-
import { P as g } from "../../chunks/common.js";
|
|
34
4
|
import { P as s } from "../../chunks/interfaces.js";
|
|
35
|
-
import { u
|
|
36
|
-
import { css as
|
|
5
|
+
import { u } from "../../chunks/useT9n.js";
|
|
6
|
+
import { css as b, html as a } from "lit";
|
|
37
7
|
import { createRef as n, ref as d } from "lit/directives/ref.js";
|
|
38
|
-
import { LitElement as
|
|
39
|
-
import { x as
|
|
8
|
+
import { LitElement as v, createEvent as m, renderElement as y, safeClassMap as o } from "@arcgis/lumina";
|
|
9
|
+
import { x as F } from "../../chunks/data.js";
|
|
10
|
+
import { d as g } from "../../chunks/index3.js";
|
|
11
|
+
import { m as c, an as P } from "../../chunks/index2.js";
|
|
12
|
+
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
13
|
+
import { r as E } from "../../chunks/chart-object-literals.js";
|
|
14
|
+
import { P as f } from "../../chunks/common.js";
|
|
40
15
|
const l = {
|
|
41
16
|
label: "label",
|
|
42
17
|
fieldList: "field-list",
|
|
43
18
|
fab: "fab"
|
|
44
|
-
}, k =
|
|
45
|
-
class
|
|
19
|
+
}, k = b`: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: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}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`;
|
|
20
|
+
class w extends v {
|
|
46
21
|
constructor() {
|
|
47
|
-
super(...arguments), this._messages =
|
|
22
|
+
super(...arguments), this._messages = u(), this.pieChartPopover = null, this.sortOrderElement = n(), this.categoryElement = n(), this.numericFieldsElement = n(), this.onPieChartDataChange = (e) => {
|
|
48
23
|
try {
|
|
49
24
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
50
25
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
51
26
|
switch (t) {
|
|
52
27
|
case s.aggregation:
|
|
53
|
-
this.model.aggregationType = i[0] !==
|
|
28
|
+
this.model.aggregationType = i[0] !== E.NoAggregation ? i[0] : "";
|
|
54
29
|
break;
|
|
55
30
|
case s.category: {
|
|
56
31
|
const r = i[0]?.trim() || "";
|
|
@@ -77,7 +52,7 @@ class M extends P {
|
|
|
77
52
|
this.requestUpdate();
|
|
78
53
|
}, this.popoverClose = (e) => {
|
|
79
54
|
this.pieChartPopover === e?.target && this.removePieChartDataPopover();
|
|
80
|
-
}, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError =
|
|
55
|
+
}, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = m(), this.arcgisChartsConfigPieChartDataNumericFieldValidate = m();
|
|
81
56
|
}
|
|
82
57
|
static {
|
|
83
58
|
this.properties = { messageOverrides: 0, model: 0, layerFieldsInfo: 0 };
|
|
@@ -98,7 +73,7 @@ class M extends P {
|
|
|
98
73
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
99
74
|
}
|
|
100
75
|
buildNumericFieldItem(e) {
|
|
101
|
-
return C(e, a`<calcite-list-item .label=${
|
|
76
|
+
return C(e, a`<calcite-list-item .label=${g(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
102
77
|
}
|
|
103
78
|
onSortOrderSelect(e) {
|
|
104
79
|
this.contentKind = s.sortOrder, this.setupPopover(e);
|
|
@@ -118,7 +93,7 @@ class M extends P {
|
|
|
118
93
|
}
|
|
119
94
|
updateMode(e) {
|
|
120
95
|
const t = e !== c && e.trim() !== "";
|
|
121
|
-
this.model.mode = t ?
|
|
96
|
+
this.model.mode = t ? f.Category : f.Fields;
|
|
122
97
|
}
|
|
123
98
|
setupPopover(e) {
|
|
124
99
|
e.stopImmediatePropagation(), this.removePieChartDataPopover();
|
|
@@ -134,16 +109,16 @@ class M extends P {
|
|
|
134
109
|
t = this.sortOrderElement.value, i = this._messages.sortOrderHeader, r = this.model.getSortOrder();
|
|
135
110
|
break;
|
|
136
111
|
}
|
|
137
|
-
this.pieChartPopover =
|
|
112
|
+
this.pieChartPopover = y(a`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${r} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`), !document.body.contains(this.pieChartPopover) && this.pieChartPopover !== null && document.body.appendChild(this.pieChartPopover);
|
|
138
113
|
}
|
|
139
114
|
getCorrectedCategoryValue() {
|
|
140
|
-
return
|
|
115
|
+
return F({
|
|
141
116
|
fieldName: this.model.category,
|
|
142
117
|
fieldList: this.layerFieldsInfo
|
|
143
|
-
}) ? "" :
|
|
118
|
+
}) ? "" : g(this.layerFieldsInfo, this.model.category);
|
|
144
119
|
}
|
|
145
120
|
removePieChartDataPopover() {
|
|
146
|
-
this.pieChartPopover !== null && (this.pieChartPopover.open = !1, this.pieChartPopover =
|
|
121
|
+
this.pieChartPopover !== null && (this.pieChartPopover.open = !1, this.pieChartPopover = $(this.pieChartPopover));
|
|
147
122
|
}
|
|
148
123
|
renderSorting() {
|
|
149
124
|
return a`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${d(this.sortOrderElement)}></arcgis-charts-config-field-select>`;
|
|
@@ -153,7 +128,7 @@ class M extends P {
|
|
|
153
128
|
return a`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${d(this.categoryElement)}></arcgis-charts-config-field-select>`;
|
|
154
129
|
}
|
|
155
130
|
renderNumericFields(e) {
|
|
156
|
-
const t =
|
|
131
|
+
const t = P(this.model.layer).idField, i = [];
|
|
157
132
|
for (const r of e)
|
|
158
133
|
r !== t && i.push(this.buildNumericFieldItem(r));
|
|
159
134
|
return a`<calcite-list label class=${o(l.fieldList)} ${d(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
@@ -166,7 +141,7 @@ class M extends P {
|
|
|
166
141
|
]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`;
|
|
167
142
|
}
|
|
168
143
|
}
|
|
169
|
-
|
|
144
|
+
p("arcgis-charts-config-pie-chart-data", w);
|
|
170
145
|
export {
|
|
171
|
-
|
|
146
|
+
w as ArcgisChartsConfigPieChartData
|
|
172
147
|
};
|
|
@@ -2,44 +2,20 @@
|
|
|
2
2
|
import { c as v } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as h } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as g } from "lit/directives/keyed.js";
|
|
5
|
-
import "@arcgis/toolkit/intl";
|
|
6
5
|
import { isEqual as k } from "lodash-es";
|
|
7
|
-
import "luxon";
|
|
8
|
-
import "@arcgis/toolkit/type";
|
|
9
|
-
import "../../chunks/series-types.js";
|
|
10
|
-
import { R as $ } from "../../chunks/rest-js-object-literals.js";
|
|
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 y, bp as L, cW as P, c_ as F } 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 I, p as D } from "../../chunks/popover-ui-utils.js";
|
|
35
|
-
import { a as r } from "../../chunks/common.js";
|
|
36
6
|
import { P as a } from "../../chunks/interfaces.js";
|
|
37
|
-
import { p as u, a as
|
|
7
|
+
import { p as u, a as $, c as d, e as y } from "../../chunks/chart-ui-utils2.js";
|
|
38
8
|
import { u as f } from "../../chunks/useT9n.js";
|
|
39
|
-
import { css as
|
|
40
|
-
import { createRef as C, ref as
|
|
41
|
-
import { LitElement as
|
|
42
|
-
|
|
9
|
+
import { css as L, html as n } from "lit";
|
|
10
|
+
import { createRef as C, ref as p } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as P, createEvent as b, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
+
import { e as F, p as I } from "../../chunks/popover-ui-utils.js";
|
|
13
|
+
import { t as D } from "../../chunks/index.js";
|
|
14
|
+
import { d as x } from "../../chunks/index3.js";
|
|
15
|
+
import { bg as S, bj as T } from "../../chunks/index2.js";
|
|
16
|
+
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
+
import { a as c } from "../../chunks/common.js";
|
|
18
|
+
const l = {
|
|
43
19
|
jsAppFlyout: "js-app-flyout",
|
|
44
20
|
name: "pie-chart-data-popover",
|
|
45
21
|
numericFieldPickList: "pie-chart-data-numeric-fields-pick-list",
|
|
@@ -48,8 +24,8 @@ const n = {
|
|
|
48
24
|
pickListItemLabel: "pick-list-item-label",
|
|
49
25
|
flipClass: "sort-counter-clockwise",
|
|
50
26
|
panel: "panel"
|
|
51
|
-
}, A =
|
|
52
|
-
class w extends
|
|
27
|
+
}, A = L`.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-counter-clockwise{transform:scaleX(-1)}.panel{max-height:60vh}`;
|
|
28
|
+
class w extends P {
|
|
53
29
|
constructor() {
|
|
54
30
|
super(...arguments), this._messages = f(), this.commonStrings = f({ name: "common", blocking: !0 }), this.picklist = C(), this.popoverElement = C(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPieChartDataPopoverChange = b(), this.arcgisChartsConfigPopoverClose = b();
|
|
55
31
|
}
|
|
@@ -64,64 +40,64 @@ class w extends E {
|
|
|
64
40
|
}
|
|
65
41
|
willUpdate(e) {
|
|
66
42
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
67
|
-
const t = u.map((i) =>
|
|
43
|
+
const t = u.map((i) => D(i, this.commonStrings));
|
|
68
44
|
k(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
69
45
|
}
|
|
70
46
|
updated() {
|
|
71
|
-
|
|
47
|
+
F(this.popoverElement.value, this.open), setTimeout(() => {
|
|
72
48
|
this.picklist.value?.setFocus();
|
|
73
|
-
},
|
|
49
|
+
}, $.PopoverTimer);
|
|
74
50
|
}
|
|
75
51
|
selectedContentChange(e, t) {
|
|
76
|
-
this.pickListHasChanged =
|
|
52
|
+
this.pickListHasChanged = I(e, t);
|
|
77
53
|
}
|
|
78
54
|
buildAggregationPickListItems() {
|
|
79
|
-
return h(u, (e) => e, (e, t) =>
|
|
55
|
+
return h(u, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${d(e, this.selectedContent)}></calcite-list-item>`);
|
|
80
56
|
}
|
|
81
57
|
buildSortOrder() {
|
|
82
|
-
const e = Object.keys(
|
|
83
|
-
return e.splice(e.indexOf(
|
|
58
|
+
const e = Object.keys(c);
|
|
59
|
+
return e.splice(e.indexOf(c.customSort), 1), h(e, (t) => t, (t) => {
|
|
84
60
|
let i = "string";
|
|
85
|
-
const
|
|
61
|
+
const r = "rotate";
|
|
86
62
|
let s = "";
|
|
87
63
|
switch (t) {
|
|
88
|
-
case
|
|
64
|
+
case c.labelAsc:
|
|
89
65
|
i = "string";
|
|
90
66
|
break;
|
|
91
|
-
case
|
|
92
|
-
i = "string", s =
|
|
67
|
+
case c.labelDesc:
|
|
68
|
+
i = "string", s = l.flipClass;
|
|
93
69
|
break;
|
|
94
|
-
case
|
|
70
|
+
case c.valueAsc:
|
|
95
71
|
i = "number";
|
|
96
72
|
break;
|
|
97
|
-
case
|
|
98
|
-
i = "number", s =
|
|
73
|
+
case c.valueDesc:
|
|
74
|
+
i = "number", s = l.flipClass;
|
|
99
75
|
break;
|
|
100
76
|
// Do nothing for customSort for now
|
|
101
|
-
case
|
|
77
|
+
case c.customSort:
|
|
102
78
|
}
|
|
103
|
-
return
|
|
79
|
+
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${c[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${o(s)} slot=content-end .icon=${r}></calcite-icon></calcite-list-item>`;
|
|
104
80
|
});
|
|
105
81
|
}
|
|
106
82
|
buildPickListItem(e) {
|
|
107
|
-
return g(e.name,
|
|
83
|
+
return g(e.name, n`<calcite-list-item .label=${x(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${d(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
108
84
|
}
|
|
109
85
|
buildPickListItems(e) {
|
|
110
86
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
111
87
|
switch (e) {
|
|
112
88
|
case a.numericFields: {
|
|
113
|
-
for (let
|
|
114
|
-
const s = this.layerFieldsInfo[
|
|
115
|
-
|
|
89
|
+
for (let r = 0; r < t; r += 1) {
|
|
90
|
+
const s = this.layerFieldsInfo[r];
|
|
91
|
+
T(s) && i.push(this.buildPickListItem(s));
|
|
116
92
|
}
|
|
117
93
|
break;
|
|
118
94
|
}
|
|
119
95
|
case a.category: {
|
|
120
|
-
const
|
|
121
|
-
i.push(
|
|
96
|
+
const r = g(" ", n`<calcite-list-item label=" " value=" " .selected=${d("", this.selectedContent)}></calcite-list-item>`);
|
|
97
|
+
i.push(r);
|
|
122
98
|
for (let s = 0; s < t; s += 1) {
|
|
123
99
|
const m = this.layerFieldsInfo[s];
|
|
124
|
-
(
|
|
100
|
+
(S(m) || m.type === E.String) && i.push(this.buildPickListItem(m));
|
|
125
101
|
}
|
|
126
102
|
break;
|
|
127
103
|
}
|
|
@@ -135,7 +111,7 @@ class w extends E {
|
|
|
135
111
|
eventEmitter: this.arcgisChartsConfigPieChartDataPopoverChange,
|
|
136
112
|
contentKind: this.contentKind
|
|
137
113
|
};
|
|
138
|
-
|
|
114
|
+
y(e);
|
|
139
115
|
}
|
|
140
116
|
this.arcgisChartsConfigPopoverClose.emit();
|
|
141
117
|
}
|
|
@@ -155,19 +131,19 @@ class w extends E {
|
|
|
155
131
|
}
|
|
156
132
|
renderAggregationType() {
|
|
157
133
|
const e = this.buildAggregationPickListItems();
|
|
158
|
-
return
|
|
134
|
+
return n`<calcite-list label class=${o(l.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
159
135
|
}
|
|
160
136
|
renderCategory() {
|
|
161
137
|
const e = this.buildPickListItems(a.category);
|
|
162
|
-
return
|
|
138
|
+
return n`<calcite-list label class=${o(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
163
139
|
}
|
|
164
140
|
renderNumericFields() {
|
|
165
141
|
const e = this.buildPickListItems(a.numericFields);
|
|
166
|
-
return
|
|
142
|
+
return n`<calcite-list label class=${o(l.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
167
143
|
}
|
|
168
144
|
renderSortOrder() {
|
|
169
145
|
const e = this.buildSortOrder();
|
|
170
|
-
return
|
|
146
|
+
return n`<calcite-list label selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
171
147
|
}
|
|
172
148
|
renderPopoverInfo() {
|
|
173
149
|
let e;
|
|
@@ -189,7 +165,7 @@ class w extends E {
|
|
|
189
165
|
}
|
|
190
166
|
render() {
|
|
191
167
|
let e;
|
|
192
|
-
return this.contentKind === a.numericFields && (e =
|
|
168
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(l.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(l.jsAppFlyout)}><calcite-popover class=${o(l.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel class=${o(l.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(l.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
193
169
|
}
|
|
194
170
|
}
|
|
195
171
|
v("arcgis-charts-config-pie-chart-popover", w);
|