@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
|
@@ -2,40 +2,13 @@
|
|
|
2
2
|
import { c as I } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as P, html as n } from "lit";
|
|
4
4
|
import { keyed as y } from "lit/directives/keyed.js";
|
|
5
|
-
import "@arcgis/toolkit/intl";
|
|
6
|
-
import "lodash-es";
|
|
7
|
-
import "luxon";
|
|
8
|
-
import "@arcgis/toolkit/type";
|
|
9
|
-
import { b as d } from "../../chunks/series-types.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 { C as S } 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 { r as f } from "../../chunks/popover-ui-utils.js";
|
|
35
5
|
import { repeat as M } from "lit/directives/repeat.js";
|
|
36
6
|
import { u as B } from "../../chunks/useT9n.js";
|
|
37
|
-
import { LitElement as O, renderElement as
|
|
7
|
+
import { LitElement as O, renderElement as d, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
|
|
38
8
|
import { d as w } from "../../chunks/chart-ui-utils2.js";
|
|
9
|
+
import { C as S } from "../../chunks/index3.js";
|
|
10
|
+
import { r as f } from "../../chunks/popover-ui-utils.js";
|
|
11
|
+
import { b as m } from "../../chunks/chart-object-literals.js";
|
|
39
12
|
const l = {
|
|
40
13
|
topSection: "top-section",
|
|
41
14
|
sectionLabel: "section-label",
|
|
@@ -49,7 +22,7 @@ class N extends O {
|
|
|
49
22
|
}, this.onMultipleSeriesSelect = (e) => {
|
|
50
23
|
if (!this.shouldDisableMeanLinesOption()) {
|
|
51
24
|
const i = e.target, t = i.value ?? i.parentElement.value ?? "";
|
|
52
|
-
this.model.showMeanLines = t ===
|
|
25
|
+
this.model.showMeanLines = t === m.MeanLines;
|
|
53
26
|
}
|
|
54
27
|
}, this.seriesNameChange = (e) => {
|
|
55
28
|
if (e.detail !== null || e.detail !== void 0) {
|
|
@@ -91,7 +64,7 @@ class N extends O {
|
|
|
91
64
|
}
|
|
92
65
|
}, this.createTooltip = (e, i) => {
|
|
93
66
|
const t = e.target;
|
|
94
|
-
this.tooltip =
|
|
67
|
+
this.tooltip = d(n`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i ?? ""}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
95
68
|
}, this.destroyTooltip = () => {
|
|
96
69
|
w(this.tooltip);
|
|
97
70
|
}, this.onModelConfigChange = () => {
|
|
@@ -128,21 +101,21 @@ class N extends O {
|
|
|
128
101
|
buildSeriesListItems() {
|
|
129
102
|
const e = this.model.seriesLength, i = this.model.boxPlotSeriesIndexWhenMeanLinesShown, t = Array.from({ length: e }, (s, o) => o);
|
|
130
103
|
return M(t, (s) => this.model.getSeriesId(s), (s) => {
|
|
131
|
-
const o = this.model.getSeriesId(s), c = this.model.getSeriesColor(s), v = this.model.getSeriesName(s),
|
|
132
|
-
let
|
|
104
|
+
const o = this.model.getSeriesId(s), c = this.model.getSeriesColor(s), v = this.model.getSeriesName(s), g = this.model.chartSubType, u = g === S.BoxPlotMonoField || g === S.BoxPlotMultiFields ? this._messages.series : o;
|
|
105
|
+
let p = "#CCCCCC", C = "minus-square";
|
|
133
106
|
if ((e > 1 || !this.activeColorMatch) && c !== void 0) {
|
|
134
107
|
C = this.model.showMeanLines === !0 ? "line-solid" : "square-f";
|
|
135
108
|
const [x, $, L, b] = [...c];
|
|
136
|
-
|
|
109
|
+
p = `rgba(${x},${$},${L},${b / 255})`;
|
|
137
110
|
}
|
|
138
|
-
return i !== s ? n`<calcite-list-item .label=${v ?? o ?? ""} .description=${u} .value=${o} .selected=${this.selectedSeriesIndex === s} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${C} style=${
|
|
111
|
+
return i !== s ? n`<calcite-list-item .label=${v ?? o ?? ""} .description=${u} .value=${o} .selected=${this.selectedSeriesIndex === s} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${C} style=${h({ color: p })}></calcite-icon></calcite-list-item>` : null;
|
|
139
112
|
});
|
|
140
113
|
}
|
|
141
114
|
buildSeriesList() {
|
|
142
115
|
return y(this.seriesOrderResetCounter, n`<calcite-list label class=${a(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
|
|
143
116
|
}
|
|
144
117
|
setupSeriesPopover() {
|
|
145
|
-
this.removeSeriesPopover(), this.meanLinesBoxColorIsSelected ? this.seriesPopover =
|
|
118
|
+
this.removeSeriesPopover(), this.meanLinesBoxColorIsSelected ? this.seriesPopover = d(n`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedColor=${this.model.meanLinesBoxColor} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`) : this.selectedSeriesIndex !== void 0 && (this.seriesPopover = d(n`<arcgis-charts-config-box-plot-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)} .isLineSymbol=${this.model.showMeanLines} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`)), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover);
|
|
146
119
|
}
|
|
147
120
|
shouldDisableMeanLinesOption() {
|
|
148
121
|
return this.model.splitByField === "" || this.model.splitByField === void 0;
|
|
@@ -155,13 +128,13 @@ class N extends O {
|
|
|
155
128
|
const [r, s, o, c] = [...t];
|
|
156
129
|
e = `rgba(${r},${s},${o},${c / 255})`;
|
|
157
130
|
}
|
|
158
|
-
return n`<calcite-list label class=${a(l.list)}><calcite-list-item value=box-plot-color .label=${this._messages.boxPlotColor} .selected=${this.meanLinesBoxColorIsSelected} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${i} style=${
|
|
131
|
+
return n`<calcite-list label class=${a(l.list)}><calcite-list-item value=box-plot-color .label=${this._messages.boxPlotColor} .selected=${this.meanLinesBoxColorIsSelected} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${i} style=${h({ color: e })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
159
132
|
}
|
|
160
133
|
renderMultipleSeriesOption() {
|
|
161
134
|
const e = this.shouldDisableMeanLinesOption();
|
|
162
135
|
return e ? [] : [
|
|
163
136
|
n`<div class=${`${l.sectionLabel} ${l.topSection}`}>${this._messages.displayMultipleSeries}</div>`,
|
|
164
|
-
n`<calcite-list label class=${a(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleSeriesSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${
|
|
137
|
+
n`<calcite-list label class=${a(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleSeriesSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${m.Side} .selected=${this.model.showMeanLines !== !0}><calcite-icon slot=content-start scale=l icon=graph-box-side-by-side></calcite-icon><calcite-icon class=${a(l.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${(i) => this.createTooltip(i, this._messages.sideBySideTooltip ?? "")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.meanLines} .value=${m.MeanLines} .disabled=${e} .selected=${this.model.showMeanLines === !0}><calcite-icon slot=content-start scale=l icon=graph-box-mean-lines></calcite-icon><calcite-icon class=${a(l.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${(i) => this.createTooltip(i, this._messages.meanLinesTooltip ?? "")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item></calcite-list>`,
|
|
165
138
|
this.model.showMeanLines === !0 ? this.renderMeanLinesBoxColorItem() : null
|
|
166
139
|
];
|
|
167
140
|
}
|
|
@@ -1,47 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as g } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as C, html as a } from "lit";
|
|
4
|
-
import "@arcgis/toolkit/intl";
|
|
5
4
|
import { isEqual as f } from "lodash-es";
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import {
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
13
|
-
import { dT as d } 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 { u as S } from "../../chunks/useT9n.js";
|
|
36
|
-
import { createRef as u, ref as b } from "lit/directives/ref.js";
|
|
37
|
-
import { LitElement as $, createEvent as l, safeClassMap as n } from "@arcgis/lumina";
|
|
5
|
+
import { u as v } from "../../chunks/useT9n.js";
|
|
6
|
+
import { createRef as y, ref as S } from "lit/directives/ref.js";
|
|
7
|
+
import { LitElement as u, createEvent as r, safeClassMap as n } from "@arcgis/lumina";
|
|
8
|
+
import { e as b } from "../../chunks/popover-ui-utils.js";
|
|
9
|
+
import { aB as d } from "../../chunks/index.js";
|
|
10
|
+
import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
38
11
|
const c = {
|
|
39
12
|
jsAppFlyout: "js-app-flyout",
|
|
40
13
|
panelChildrenContainer: "panel-children-container"
|
|
41
14
|
}, L = 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{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
42
|
-
class P extends
|
|
15
|
+
class P extends u {
|
|
43
16
|
constructor() {
|
|
44
|
-
super(...arguments), this._messages =
|
|
17
|
+
super(...arguments), this._messages = v(), this.popoverElement = y(), this.isLineSymbol = !1, this.open = !1, this.labelCanBeConfigured = !1, this.arcgisChartsConfigPopoverClose = r(), this.arcgisChartsConfigSeriesPopoverColorChange = r(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = r(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = r(), this.arcgisChartsConfigSeriesPopoverNameChange = r();
|
|
45
18
|
}
|
|
46
19
|
static {
|
|
47
20
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedLineWidth: 9, selectedSeriesIndex: 9, isLineSymbol: 5, placement: 1, open: 5, labelCanBeConfigured: 5 };
|
|
@@ -53,7 +26,7 @@ class P extends $ {
|
|
|
53
26
|
await this.popoverElement.value?.reposition();
|
|
54
27
|
}
|
|
55
28
|
updated() {
|
|
56
|
-
|
|
29
|
+
b(this.popoverElement.value, this.open);
|
|
57
30
|
}
|
|
58
31
|
seriesNameChange(e) {
|
|
59
32
|
const i = e.target.value;
|
|
@@ -63,23 +36,23 @@ class P extends $ {
|
|
|
63
36
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
64
37
|
}
|
|
65
38
|
colorChange(e) {
|
|
66
|
-
const i = e instanceof CustomEvent ? e.detail : e, [
|
|
67
|
-
this.selectedColor = [
|
|
39
|
+
const i = e instanceof CustomEvent ? e.detail : e, [o, t, s] = i, l = d * 255;
|
|
40
|
+
this.selectedColor = [o, t, s, l], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [o, t, s, l] });
|
|
68
41
|
}
|
|
69
42
|
lineSymbolChange(e) {
|
|
70
|
-
const { lineStyle: i } = e.target, { color:
|
|
71
|
-
if (
|
|
72
|
-
const [
|
|
73
|
-
this.selectedColor = [
|
|
43
|
+
const { lineStyle: i } = e.target, { color: o, style: t, width: s } = i;
|
|
44
|
+
if (o !== void 0 && !f(o, this.selectedColor)) {
|
|
45
|
+
const [l, h, p] = o, m = d * 255;
|
|
46
|
+
this.selectedColor = [l, h, p, m], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [l, h, p, m] });
|
|
74
47
|
}
|
|
75
|
-
t !== void 0 && t !== this.selectedLineStyle && (this.selectedLineStyle = t, this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({ style: t })),
|
|
48
|
+
t !== void 0 && t !== this.selectedLineStyle && (this.selectedLineStyle = t, this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({ style: t })), s !== void 0 && s !== this.selectedLineWidth && (this.selectedLineWidth = s, this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({ width: s }));
|
|
76
49
|
}
|
|
77
50
|
render() {
|
|
78
51
|
const e = this.selectedColor;
|
|
79
52
|
return a`<div class=${n({
|
|
80
53
|
[c.jsAppFlyout]: !0
|
|
81
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${
|
|
82
|
-
type:
|
|
54
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${S(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? a`<div class=${n(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${n(this.isLineSymbol ? "" : c.panelChildrenContainer)}>${this.isLineSymbol ? a`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
|
|
55
|
+
type: $.SLS,
|
|
83
56
|
style: this.selectedLineStyle,
|
|
84
57
|
width: this.selectedLineWidth,
|
|
85
58
|
color: e
|
|
@@ -1,49 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "@arcgis/
|
|
9
|
-
import "
|
|
10
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
11
|
-
import "../../chunks/index.js";
|
|
12
|
-
import "@arcgis/core/Graphic.js";
|
|
13
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
15
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
16
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
17
|
-
import "@esri/arcgis-html-sanitizer";
|
|
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 { e as c } from "../../chunks/popover-ui-utils.js";
|
|
33
|
-
import { m as p, U as s } from "../../chunks/chart-ui-utils2.js";
|
|
34
|
-
import { u as h } from "../../chunks/useT9n.js";
|
|
35
|
-
import { css as d, html as u } from "lit";
|
|
36
|
-
import { createRef as r, ref as n } from "lit/directives/ref.js";
|
|
37
|
-
import { LitElement as g, createEvent as o, safeClassMap as i } from "@arcgis/lumina";
|
|
2
|
+
import { c as o } from "../../chunks/runtime.js";
|
|
3
|
+
import { isEmpty as c } from "lodash-es";
|
|
4
|
+
import { m as h, U as s } from "../../chunks/chart-ui-utils2.js";
|
|
5
|
+
import { u as m } from "../../chunks/useT9n.js";
|
|
6
|
+
import { css as p, html as d } from "lit";
|
|
7
|
+
import { createRef as n, ref as l } from "lit/directives/ref.js";
|
|
8
|
+
import { LitElement as u, createEvent as r, safeClassMap as a } from "@arcgis/lumina";
|
|
9
|
+
import { e as g } from "../../chunks/popover-ui-utils.js";
|
|
38
10
|
const e = {
|
|
39
11
|
jsAppFlyout: "js-app-flyout",
|
|
40
12
|
chartRenameComponent: "chart-rename-component",
|
|
41
13
|
renameLabelContainer: "rename-label-container",
|
|
42
14
|
renamePanel: "rename-panel"
|
|
43
|
-
}, v =
|
|
44
|
-
class C extends
|
|
15
|
+
}, v = p`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.chart-rename-component{width:var(--arcgis-charts-config-panel-width-medium);height:var(--arcgis-charts-config-panel-height)}:host{overflow-y:auto;width:min-content}.rename-label-container{display:flex;padding:0 1rem;margin-top:1rem}.rename-label-container calcite-label{flex:1 1 0px;display:flex;width:0px}.rename-panel{width:calc(var(--calcite-panel-width-multiplier) * 20vw);max-width:calc(var(--calcite-panel-width-multiplier) * 420px);min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}`;
|
|
16
|
+
class C extends u {
|
|
45
17
|
constructor() {
|
|
46
|
-
super(...arguments), this._messages =
|
|
18
|
+
super(...arguments), this._messages = m(), this.characterLimitInputElement = n(), this.popoverElement = n(), this.isChartTitleInvalid = !1, this.changedName = "", this.name = "", this.open = !1, this.arcgisChartsConfigChartRenamePopoverChange = r(), this.arcgisChartsConfigPopoverClose = r();
|
|
47
19
|
}
|
|
48
20
|
static {
|
|
49
21
|
this.properties = { isChartTitleInvalid: 16, changedName: 16, messageOverrides: 0, name: 1, open: 5, referenceElement: 0 };
|
|
@@ -58,11 +30,11 @@ class C extends g {
|
|
|
58
30
|
t.has("name") && (this.changedName = this.name);
|
|
59
31
|
}
|
|
60
32
|
updated() {
|
|
61
|
-
this.popoverElement.value?.reposition(),
|
|
33
|
+
this.popoverElement.value?.reposition(), g(this.popoverElement.value, this.open);
|
|
62
34
|
}
|
|
63
35
|
onNameChange(t) {
|
|
64
|
-
const
|
|
65
|
-
this.changedName =
|
|
36
|
+
const i = t.target.value;
|
|
37
|
+
this.changedName = i, this.isChartTitleInvalid = c(i.trim()), this.characterLimitInputElement.value && h({
|
|
66
38
|
inputElement: this.characterLimitInputElement.value,
|
|
67
39
|
status: this.isChartTitleInvalid ? s.INVALID : s.IDLE
|
|
68
40
|
});
|
|
@@ -77,13 +49,13 @@ class C extends g {
|
|
|
77
49
|
this.changedName = this.name, this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
78
50
|
}
|
|
79
51
|
render() {
|
|
80
|
-
return
|
|
52
|
+
return d`<div class=${a({
|
|
81
53
|
[e.chartRenameComponent]: !0,
|
|
82
54
|
[e.jsAppFlyout]: !0
|
|
83
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} @calcitePopoverClose=${this.popoverClose} .open=${this.open} placement=bottom label auto-close ${
|
|
55
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} @calcitePopoverClose=${this.popoverClose} .open=${this.open} placement=bottom label auto-close ${l(this.popoverElement)}><calcite-panel class=${a(e.renamePanel)} closable .closed=${!this.open} @calcitePanelClose=${this.popoverClose} .heading=${this._messages.renameChart}><div class=${a(e.renameLabelContainer)}><calcite-label>${this._messages.chartName}<calcite-input required type=text .value=${this.changedName} @calciteInputInput=${this.onNameChange} ${l(this.characterLimitInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.emptyChartTitle} .isInvalid=${this.isChartTitleInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><calcite-button slot=footer appearance=solid scale=m width=half @click=${this.onSubmitClick}>${this._messages.submit}</calcite-button><calcite-button slot=footer appearance=outline-fill scale=m width=half @click=${this.onCancelClick}>${this._messages.cancel}</calcite-button></calcite-panel></calcite-popover></div>`;
|
|
84
56
|
}
|
|
85
57
|
}
|
|
86
|
-
|
|
58
|
+
o("arcgis-charts-config-chart-rename-popover", C);
|
|
87
59
|
export {
|
|
88
60
|
C as ArcgisChartsConfigChartRenamePopover
|
|
89
61
|
};
|
|
@@ -2,49 +2,28 @@
|
|
|
2
2
|
import { c as V } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as U } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
|
-
import {
|
|
6
|
-
import { g as S, i as T, u as _, k as v, m as I } from "../../chunks/type-
|
|
5
|
+
import { createModel as R } from "../../model.js";
|
|
6
|
+
import { g as S, i as T, u as _, k as v, m as I } from "../../chunks/type-guards2.js";
|
|
7
7
|
import { i as H } from "../../chunks/rotated-state.js";
|
|
8
|
-
import "@arcgis/
|
|
9
|
-
import { isEqual as D } from "lodash-es";
|
|
10
|
-
import "luxon";
|
|
11
|
-
import { c$ as F, d$ as E, db as k, ec as z, dd as O, ef as W, au as G, eg as X, de as x, aa as Z, e1 as K } from "../../chunks/index.js";
|
|
12
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
13
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
14
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
15
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
16
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
17
|
-
import "@arcgis/toolkit/type";
|
|
18
|
-
import { u as o, s as j } from "../../chunks/series-types.js";
|
|
19
|
-
import "@arcgis/core/Graphic.js";
|
|
20
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
21
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
22
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
23
|
-
import "@arcgis/core/request.js";
|
|
24
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
25
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
26
|
-
import "@arcgis/core/geometry/Point.js";
|
|
27
|
-
import "simple-statistics";
|
|
28
|
-
import "@arcgis/toolkit/dom";
|
|
29
|
-
import { C as f } from "../../chunks/index5.js";
|
|
30
|
-
import { a as L } from "../../chunks/chart-ui-utils.js";
|
|
31
|
-
import { r as q } from "../../chunks/popover-ui-utils.js";
|
|
32
|
-
import { substitute as Y } from "@arcgis/core/intl.js";
|
|
8
|
+
import { substitute as z } from "@arcgis/core/intl.js";
|
|
33
9
|
import { C as n } from "../../chunks/interfaces.js";
|
|
34
|
-
import "
|
|
35
|
-
import "
|
|
36
|
-
import "
|
|
37
|
-
import "@arcgis/
|
|
38
|
-
import "
|
|
39
|
-
import "
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
10
|
+
import { isEqual as D } from "lodash-es";
|
|
11
|
+
import { i as F } from "../../chunks/index5.js";
|
|
12
|
+
import { D as E, w as k, F as O } from "../../chunks/index3.js";
|
|
13
|
+
import { LitElement as W, createEvent as f, renderElement as L, safeStyleMap as X, safeClassMap as d } from "@arcgis/lumina";
|
|
14
|
+
import { css as G, html as h } from "lit";
|
|
15
|
+
import { createRef as Z, ref as K } from "lit/directives/ref.js";
|
|
16
|
+
import { u as P } from "../../chunks/useT9n.js";
|
|
17
|
+
import { b as j, s as x, g as q } from "../../chunks/store.js";
|
|
18
|
+
import { c5 as Y, _ as Q, c6 as J, K as ee, bX as te } from "../../chunks/index2.js";
|
|
19
|
+
import { A as ae } from "../../chunks/axis-model-wrapper.js";
|
|
20
|
+
import { h as ie, a as y } from "../../chunks/web-component-utils.js";
|
|
21
|
+
import { d as se } from "../../chunks/chart-ui-utils2.js";
|
|
22
|
+
import { C as M } from "../../chunks/index7.js";
|
|
23
|
+
import { a as B } from "../../chunks/chart-ui-utils.js";
|
|
24
|
+
import { c as re, d as $ } from "../../chunks/type-guards.js";
|
|
25
|
+
import { r as oe } from "../../chunks/popover-ui-utils.js";
|
|
26
|
+
import { u as o, s as le } from "../../chunks/chart-object-literals.js";
|
|
48
27
|
const p = {
|
|
49
28
|
chartUIComponent: "chart-ui-component",
|
|
50
29
|
tabBar: "tab-bar",
|
|
@@ -101,10 +80,10 @@ function pe(m, e) {
|
|
|
101
80
|
}), i.charts = t;
|
|
102
81
|
}
|
|
103
82
|
}
|
|
104
|
-
const me =
|
|
105
|
-
class ue extends
|
|
83
|
+
const me = G`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
84
|
+
class ue extends W {
|
|
106
85
|
constructor() {
|
|
107
|
-
super(), this.selectChartTypePopover = null, this.chartsListFlowItem =
|
|
86
|
+
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = Z(), this.supportedChartTypes = [
|
|
108
87
|
o.BarSeries,
|
|
109
88
|
o.BoxPlotSeries,
|
|
110
89
|
o.LineSeries,
|
|
@@ -112,12 +91,12 @@ class ue extends Q {
|
|
|
112
91
|
o.HistogramSeries,
|
|
113
92
|
o.ScatterSeries,
|
|
114
93
|
o.HeatSeries
|
|
115
|
-
], this._messages =
|
|
94
|
+
], this._messages = P(), this.commonStrings = P({ name: "common", blocking: !0 }), this.chartDataProcessComplete = (e) => {
|
|
116
95
|
const i = e, { chartData: t, model: a } = i.detail, s = this.getModel(this.selectedChartId);
|
|
117
96
|
if (a?.isSameChartAs(s))
|
|
118
97
|
switch (s?.chartType) {
|
|
119
98
|
case o.HistogramSeries:
|
|
120
|
-
if (this.chartData = t, a && (a.dataStore.chartData = t,
|
|
99
|
+
if (this.chartData = t, a && (a.dataStore.chartData = t, re(a.layer))) {
|
|
121
100
|
const l = a, c = t?.bins?.length;
|
|
122
101
|
c !== void 0 && l.binCount !== c && (l.binCount = c);
|
|
123
102
|
}
|
|
@@ -135,9 +114,9 @@ class ue extends Q {
|
|
|
135
114
|
case o.LineSeries:
|
|
136
115
|
case o.BarSeries: {
|
|
137
116
|
const { dataItems: l, timeIntervalInfo: c } = t;
|
|
138
|
-
if ((S(s) || T(s) && s.binTemporalData) && (c?.size !== void 0 && s.temporalBinningSize !== c?.size && (s.temporalBinningSize = c?.size), c?.unit !== void 0 && s.temporalBinningUnit !== c?.unit && c?.unit !==
|
|
117
|
+
if ((S(s) || T(s) && s.binTemporalData) && (c?.size !== void 0 && s.temporalBinningSize !== c?.size && (s.temporalBinningSize = c?.size), c?.unit !== void 0 && s.temporalBinningUnit !== c?.unit && c?.unit !== le.Quarter && (s.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && j(x, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(l), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds), T(s)) {
|
|
139
118
|
const g = s.xAxisField, u = l.some((N) => N[g] === null), C = s.nullCategory;
|
|
140
|
-
u && C === void 0 && (s.nullCategory =
|
|
119
|
+
u && C === void 0 && (s.nullCategory = O.nullCategory);
|
|
141
120
|
}
|
|
142
121
|
break;
|
|
143
122
|
}
|
|
@@ -204,10 +183,10 @@ class ue extends Q {
|
|
|
204
183
|
A(i?.layer, i);
|
|
205
184
|
}
|
|
206
185
|
this.requestUpdate();
|
|
207
|
-
}, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.close = !1, this.usePopupTemplateFieldsInfo = !1, this.panelNumber = 0, this.filterBySelection = !1, this.arcgisChartsConfigChartViewChartClose =
|
|
186
|
+
}, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.close = !1, this.usePopupTemplateFieldsInfo = !1, this.panelNumber = 0, this.filterBySelection = !1, this.arcgisChartsConfigChartViewChartClose = f(), this.arcgisChartsConfigModelListChange = f(), this.arcgisChartsConfigNewChart = f(), this.arcgisChartsConfigPanelNumberChange = f(), this.arcgisChartsConfigSelectedChartChange = f(), this.addChartEventListeners(), this.listen("arcgisChartsConfigModelListReorder", this.modelListReorderChangeListener);
|
|
208
187
|
}
|
|
209
188
|
static {
|
|
210
|
-
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged:
|
|
189
|
+
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: y }], layerList: [0, { hasChanged: y }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1, close: 5, chartData: [0, { hasChanged: y }], r2: 9, calculatedDataMinMaxBounds: [0, { hasChanged: y }], calculatedMinMaxBounds: [0, { hasChanged: y }], seriesColor: [0, { hasChanged: ie }], popoverPlacement: 1, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5, panelNumber: 9, filterBySelection: 5 };
|
|
211
190
|
}
|
|
212
191
|
static {
|
|
213
192
|
this.styles = me;
|
|
@@ -262,7 +241,7 @@ class ue extends Q {
|
|
|
262
241
|
}
|
|
263
242
|
w(e), e.forEach((a) => {
|
|
264
243
|
t.find((r) => r.isSameChartAs(a)) === void 0 && t.push(a);
|
|
265
|
-
}), t = t.filter((a) => !
|
|
244
|
+
}), t = t.filter((a) => !Y(a.config)), this.modelList = t;
|
|
266
245
|
}
|
|
267
246
|
modelListChange(e, i) {
|
|
268
247
|
this.selectedChartId = w(e, this.selectedChartId), i?.forEach((a) => {
|
|
@@ -271,7 +250,7 @@ class ue extends Q {
|
|
|
271
250
|
a.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
272
251
|
});
|
|
273
252
|
const t = this.getModel(this.selectedChartId);
|
|
274
|
-
this.currentChartTypeText = t?.chartType !== void 0 ?
|
|
253
|
+
this.currentChartTypeText = t?.chartType !== void 0 ? B({
|
|
275
254
|
chartType: t.chartType,
|
|
276
255
|
commonStrings: this.commonStrings,
|
|
277
256
|
config: t.config
|
|
@@ -280,11 +259,11 @@ class ue extends Q {
|
|
|
280
259
|
selectedChartIdChange(e) {
|
|
281
260
|
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = n.Data;
|
|
282
261
|
const i = this.getModel(e);
|
|
283
|
-
this.setEventBasedPropsFromModelData(i), this.currentChartTypeText = i?.chartType !== void 0 ?
|
|
262
|
+
this.setEventBasedPropsFromModelData(i), this.currentChartTypeText = i?.chartType !== void 0 ? B({
|
|
284
263
|
chartType: i.chartType,
|
|
285
264
|
commonStrings: this.commonStrings,
|
|
286
265
|
config: i.config
|
|
287
|
-
}) : "", e !== void 0 && e !==
|
|
266
|
+
}) : "", e !== void 0 && e !== x.selectedChartId && (x.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
288
267
|
key: "key",
|
|
289
268
|
model: i
|
|
290
269
|
});
|
|
@@ -293,13 +272,13 @@ class ue extends Q {
|
|
|
293
272
|
e === 0 ? this.clearPartialModels() : e === 1 && this.removeSelectChartTypePopover(), this.arcgisChartsConfigPanelNumberChange.emit({ panelNumber: e, modelList: this.modelList });
|
|
294
273
|
}
|
|
295
274
|
addChartEventListeners() {
|
|
296
|
-
this.listenOn(document,
|
|
275
|
+
this.listenOn(document, M.DataProcessComplete, this.chartDataProcessComplete), this.listenOn(document, M.AxesMinMaxChange, this.chartAxesMinMaxChange), this.listenOn(document, M.SeriesColorChange, this.chartSeriesColorChange), this.listenOn(document, M.NoRenderPropChange, this.chartNoRenderPropChange), this.listenOn(document, M.LegendItemVisibilityChange, this.chartLegendItemVisibilityChange);
|
|
297
276
|
}
|
|
298
277
|
getDataExtent(e) {
|
|
299
278
|
const i = this.getModel(this.selectedChartId)?.config;
|
|
300
279
|
let t = [];
|
|
301
280
|
if (i !== void 0 && e !== void 0) {
|
|
302
|
-
const a =
|
|
281
|
+
const a = Q({
|
|
303
282
|
chartConfig: i,
|
|
304
283
|
chartData: e
|
|
305
284
|
}), { minY: s, maxY: r, minX: l, maxX: c } = a;
|
|
@@ -314,11 +293,11 @@ class ue extends Q {
|
|
|
314
293
|
e?.forEach((i) => {
|
|
315
294
|
const { isXAxis: t, maximum: a, minimum: s } = i, r = this.getModel(this.selectedChartId);
|
|
316
295
|
if (r !== void 0 && I(r) && this.selectedChartId !== void 0) {
|
|
317
|
-
const l = new
|
|
296
|
+
const l = new ae(r, t), c = q({
|
|
318
297
|
chartId: this.selectedChartId,
|
|
319
298
|
isXAxis: t,
|
|
320
299
|
isLogarithmic: l.getLogarithmic()
|
|
321
|
-
}), g =
|
|
300
|
+
}), g = x.chartAxesBoundDataMap;
|
|
322
301
|
g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
|
|
323
302
|
const u = g[this.selectedChartId]?.[c], C = {
|
|
324
303
|
defaultMinBound: u?.defaultMinBound === u?.currMinBound ? s : u?.defaultMinBound,
|
|
@@ -332,7 +311,7 @@ class ue extends Q {
|
|
|
332
311
|
}
|
|
333
312
|
getPlacement() {
|
|
334
313
|
let e;
|
|
335
|
-
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) => k(
|
|
314
|
+
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) => k(J, a.config)).length <= 2 ? "bottom" : "top", e;
|
|
336
315
|
}
|
|
337
316
|
onBackFlow() {
|
|
338
317
|
this.panelNumber -= 1;
|
|
@@ -340,21 +319,21 @@ class ue extends Q {
|
|
|
340
319
|
async onAddChartClick(e) {
|
|
341
320
|
const { referenceElement: i, layerId: t, layerType: a } = e.detail;
|
|
342
321
|
let s = !0;
|
|
343
|
-
if (
|
|
322
|
+
if ($(a) && t) {
|
|
344
323
|
const r = this.layerList.find((l) => l.id === t);
|
|
345
|
-
|
|
324
|
+
$(r?.type) && (s = !!(await ee(r))?.attributeTable);
|
|
346
325
|
}
|
|
347
326
|
this.setupSelectChartTypePopover(i, t, a, s);
|
|
348
327
|
}
|
|
349
328
|
setupSelectChartTypePopover(e, i, t, a = !0) {
|
|
350
329
|
const s = this.getPlacement();
|
|
351
|
-
this.removeSelectChartTypePopover(), this.selectChartTypePopover =
|
|
330
|
+
this.removeSelectChartTypePopover(), this.selectChartTypePopover = L(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${i} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`), !document.body.contains(this.selectChartTypePopover) && this.selectChartTypePopover !== null && document.body.appendChild(this.selectChartTypePopover);
|
|
352
331
|
}
|
|
353
332
|
getModel(e) {
|
|
354
333
|
return this.modelList?.find((i) => i.chartId === e);
|
|
355
334
|
}
|
|
356
335
|
removeSelectChartTypePopover() {
|
|
357
|
-
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover =
|
|
336
|
+
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = oe(this.selectChartTypePopover));
|
|
358
337
|
}
|
|
359
338
|
clearPartialModels() {
|
|
360
339
|
this.modelList = this.modelList.filter((e) => !F(e.config));
|
|
@@ -412,10 +391,10 @@ class ue extends Q {
|
|
|
412
391
|
t = "";
|
|
413
392
|
break;
|
|
414
393
|
}
|
|
415
|
-
this.tooltip =
|
|
394
|
+
this.tooltip = L(h`<calcite-tooltip style=${X({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
416
395
|
}
|
|
417
396
|
destroyTooltip() {
|
|
418
|
-
|
|
397
|
+
se(this.tooltip);
|
|
419
398
|
}
|
|
420
399
|
renderViewCharts() {
|
|
421
400
|
const e = ce({
|
|
@@ -424,14 +403,14 @@ class ue extends Q {
|
|
|
424
403
|
activeLayerId: this.activeLayerId,
|
|
425
404
|
disableEditing: this.disableEditing
|
|
426
405
|
});
|
|
427
|
-
return U(e, (i) => i.id, (i) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ne(this.modelList, i.id.toString(),
|
|
406
|
+
return U(e, (i) => i.id, (i) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ne(this.modelList, i.id.toString(), $(i.type) ? te : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${i} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
428
407
|
}
|
|
429
408
|
render() {
|
|
430
|
-
return this.close ? null : h`<calcite-flow>${b("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${
|
|
409
|
+
return this.close ? null : h`<calcite-flow>${b("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${K(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
431
410
|
}
|
|
432
411
|
renderTabs() {
|
|
433
412
|
const e = this.getModel(this.selectedChartId);
|
|
434
|
-
return b("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ?
|
|
413
|
+
return b("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? z(this._messages.pageFlowTitle, {
|
|
435
414
|
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
436
415
|
layerName: e?.layer?.title ?? ""
|
|
437
416
|
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(p.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(p.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === n.Data || this.selectedPanel === void 0} @click=${() => {
|