@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,45 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as b } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
4
|
-
import { B as c } from "../../chunks/common.js";
|
|
5
|
-
import "@arcgis/toolkit/type";
|
|
6
|
-
import { u as y } from "../../chunks/series-types.js";
|
|
7
|
-
import "@arcgis/toolkit/intl";
|
|
8
4
|
import { isEqual as C } from "lodash-es";
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
13
|
-
import {
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import "@arcgis/
|
|
17
|
-
import "
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
20
|
-
import "
|
|
21
|
-
import "simple-statistics";
|
|
22
|
-
import "@arcgis/core/core/sql.js";
|
|
23
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
24
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
25
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
26
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
27
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
28
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
29
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
30
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
31
|
-
import "@arcgis/core/geometry/Point.js";
|
|
32
|
-
import "@arcgis/toolkit/dom";
|
|
5
|
+
import { repeat as y } from "lit/directives/repeat.js";
|
|
6
|
+
import { a as l, d } from "../../chunks/interfaces.js";
|
|
7
|
+
import { d as S, s as v } from "../../chunks/store.js";
|
|
8
|
+
import { a as $ } from "../../chunks/chart-ui-utils2.js";
|
|
9
|
+
import { u as F } from "../../chunks/useT9n.js";
|
|
10
|
+
import { css as x, nothing as I, html as a } from "lit";
|
|
11
|
+
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
12
|
+
import { LitElement as B, createEvent as P, safeClassMap as o, renderElement as O } from "@arcgis/lumina";
|
|
13
|
+
import { x as L } from "../../chunks/data.js";
|
|
14
|
+
import { B as c } from "../../chunks/common.js";
|
|
15
|
+
import { g as u } from "../../chunks/index.js";
|
|
16
|
+
import { f as w, d as g } from "../../chunks/index3.js";
|
|
33
17
|
import { r as p } from "../../chunks/popover-ui-utils.js";
|
|
34
|
-
import {
|
|
35
|
-
import { a as l, d as m } from "../../chunks/interfaces.js";
|
|
36
|
-
import { d as $, s as F } from "../../chunks/store.js";
|
|
37
|
-
import { a as x } from "../../chunks/chart-ui-utils2.js";
|
|
38
|
-
import { u as I } from "../../chunks/useT9n.js";
|
|
39
|
-
import { css as B, nothing as P, html as a } from "lit";
|
|
40
|
-
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
41
|
-
import { LitElement as O, createEvent as L, safeClassMap as o, renderElement as w } from "@arcgis/lumina";
|
|
42
|
-
import { x as E } from "../../chunks/data.js";
|
|
18
|
+
import { u as E } from "../../chunks/chart-object-literals.js";
|
|
43
19
|
const r = {
|
|
44
20
|
label: "label",
|
|
45
21
|
fieldList: "field-list",
|
|
@@ -47,20 +23,20 @@ const r = {
|
|
|
47
23
|
dimText: "dim-text",
|
|
48
24
|
list: "list",
|
|
49
25
|
customSortButtons: "custom-sort-buttons"
|
|
50
|
-
}, k =
|
|
51
|
-
class D extends
|
|
26
|
+
}, k = x`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left: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}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`;
|
|
27
|
+
class D extends B {
|
|
52
28
|
constructor() {
|
|
53
|
-
super(...arguments), this._messages =
|
|
29
|
+
super(...arguments), this._messages = F(), this.boxPlotPopover = null, this.categoryElement = m(), this.numericFieldsElement = m(), this.splitByFieldElement = m(), this.sortOrderElement = m(), this.originalCustomSortLabels = [], this.isCustomSortDisabled = !1, this.onModelConfigChange = () => {
|
|
54
30
|
this.requestUpdate();
|
|
55
|
-
}, this.popoverClose = (
|
|
56
|
-
this.boxPlotPopover ===
|
|
57
|
-
}, this.onBoxPlotDataChange = async (
|
|
31
|
+
}, this.popoverClose = (e) => {
|
|
32
|
+
this.boxPlotPopover === e?.target && (this.boxPlotPopover = p(this.boxPlotPopover));
|
|
33
|
+
}, this.onBoxPlotDataChange = async (e) => {
|
|
58
34
|
try {
|
|
59
|
-
if (
|
|
60
|
-
const { contentKind:
|
|
61
|
-
switch (
|
|
35
|
+
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
36
|
+
const { contentKind: t } = e.detail, s = [...e.detail.value];
|
|
37
|
+
switch (S(v), t) {
|
|
62
38
|
case l.category: {
|
|
63
|
-
const i = s[0]?.trim() ||
|
|
39
|
+
const i = s[0]?.trim() || u;
|
|
64
40
|
if (this.model.category = i, this.model.getSortOrder() === c.customSort) {
|
|
65
41
|
const n = await this.updateCustomSortProps();
|
|
66
42
|
this.model.orderByList = n, this.sortOrderResetCounter += 1;
|
|
@@ -96,11 +72,11 @@ class D extends O {
|
|
|
96
72
|
break;
|
|
97
73
|
}
|
|
98
74
|
}
|
|
99
|
-
} catch (
|
|
100
|
-
throw
|
|
75
|
+
} catch (t) {
|
|
76
|
+
throw t instanceof Error && this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
101
77
|
}
|
|
102
78
|
this.requestUpdate();
|
|
103
|
-
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError =
|
|
79
|
+
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = P();
|
|
104
80
|
}
|
|
105
81
|
static {
|
|
106
82
|
this.properties = { selectedCustomSortItemId: 16, sortOrderResetCounter: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0 };
|
|
@@ -111,98 +87,98 @@ class D extends O {
|
|
|
111
87
|
load() {
|
|
112
88
|
this.modelChange(this.model), this.onModelConfigChange(), this.currentDataFilter = this.model.getDataFilters(), this.updateCustomSortProps();
|
|
113
89
|
}
|
|
114
|
-
willUpdate(
|
|
115
|
-
|
|
90
|
+
willUpdate(e) {
|
|
91
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), C(this.model.getDataFilters(), this.currentDataFilter) || (this.updateCustomSortProps(), this.currentDataFilter = this.model.getDataFilters()), this.disableSplitBy = this.model.numericFields.length === 0 || this.model.numericFields.length > 1 && this.model.category !== u;
|
|
116
92
|
}
|
|
117
93
|
disconnectedCallback() {
|
|
118
94
|
super.disconnectedCallback(), this.boxPlotPopover = p(this.boxPlotPopover), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
119
95
|
}
|
|
120
|
-
modelChange(
|
|
121
|
-
|
|
96
|
+
modelChange(e, t) {
|
|
97
|
+
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
122
98
|
}
|
|
123
|
-
onCalciteListOrderChange(
|
|
124
|
-
if (
|
|
125
|
-
const { newIndex:
|
|
126
|
-
this.model.moveCustomSortValuesInOrderByList(s,
|
|
99
|
+
onCalciteListOrderChange(e) {
|
|
100
|
+
if (e.detail !== null && e.detail !== void 0) {
|
|
101
|
+
const { newIndex: t, oldIndex: s } = e.detail;
|
|
102
|
+
this.model.moveCustomSortValuesInOrderByList(s, t);
|
|
127
103
|
}
|
|
128
104
|
}
|
|
129
|
-
onCustomSortItemSelected(
|
|
130
|
-
const { id:
|
|
131
|
-
this.selectedCustomSortItemId = this.selectedCustomSortItemId ===
|
|
105
|
+
onCustomSortItemSelected(e) {
|
|
106
|
+
const { id: t } = e.target;
|
|
107
|
+
this.selectedCustomSortItemId = this.selectedCustomSortItemId === t ? "" : t;
|
|
132
108
|
}
|
|
133
|
-
onCustomSortItemMoved(
|
|
134
|
-
const { id:
|
|
109
|
+
onCustomSortItemMoved(e) {
|
|
110
|
+
const { id: t } = e.target;
|
|
135
111
|
let s = this.model.orderByList.length;
|
|
136
112
|
const i = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
137
|
-
|
|
113
|
+
t === d.Up ? s = i - 1 : t === d.Down && (s = i + 1), i >= 0 && s >= 0 && s < this.model.orderByList.length && (this.model.moveCustomSortValuesInOrderByList(i, s), this.sortOrderResetCounter += 1);
|
|
138
114
|
}
|
|
139
115
|
buildCustomSortListItems() {
|
|
140
|
-
return
|
|
141
|
-
const s =
|
|
142
|
-
return a`<calcite-list-item id=${
|
|
116
|
+
return y(this.model.orderByList, (t) => t, (t) => {
|
|
117
|
+
const s = w(this.layerFieldsInfo, t);
|
|
118
|
+
return a`<calcite-list-item id=${t ?? I} .label=${t ?? ""} .description=${s} .value=${t} .selected=${this.selectedCustomSortItemId === t} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`;
|
|
143
119
|
});
|
|
144
120
|
}
|
|
145
121
|
buildCustomSortList() {
|
|
146
122
|
return f(this.sortOrderResetCounter, a`<calcite-list label class=${o(r.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`);
|
|
147
123
|
}
|
|
148
|
-
buildNumericFieldItem(
|
|
149
|
-
return f(
|
|
124
|
+
buildNumericFieldItem(e) {
|
|
125
|
+
return f(e, a`<calcite-list-item .label=${g(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
150
126
|
}
|
|
151
|
-
onCategorySelect(
|
|
152
|
-
this.categoryElement.value && !this.categoryElement.value.disabled && (this.contentKind = l.category, this.setupPopover(
|
|
127
|
+
onCategorySelect(e) {
|
|
128
|
+
this.categoryElement.value && !this.categoryElement.value.disabled && (this.contentKind = l.category, this.setupPopover(e));
|
|
153
129
|
}
|
|
154
|
-
async onRemoveNumericField(
|
|
155
|
-
const
|
|
156
|
-
if (this.model.numericFields = this.model.numericFields.filter((s) => s !==
|
|
130
|
+
async onRemoveNumericField(e) {
|
|
131
|
+
const t = e.target.value;
|
|
132
|
+
if (this.model.numericFields = this.model.numericFields.filter((s) => s !== t), this.model.numericFields.length === 0 && this.model.resetConfig(), this.model.getSortOrder() === c.customSort) {
|
|
157
133
|
const s = await this.updateCustomSortProps();
|
|
158
134
|
this.model.orderByList = s, this.sortOrderResetCounter += 1;
|
|
159
135
|
}
|
|
160
136
|
}
|
|
161
137
|
async updateCustomSortProps() {
|
|
162
|
-
const
|
|
163
|
-
this.originalCustomSortLabels = [...
|
|
164
|
-
const
|
|
165
|
-
return
|
|
138
|
+
const e = await this.model.getCustomSortValues();
|
|
139
|
+
this.originalCustomSortLabels = [...e];
|
|
140
|
+
const t = e.length > $.customSortLimit;
|
|
141
|
+
return t && (this.sortOrderElement.value && (this.sortOrderElement.value.label = this._messages.xAxisAsc), this.model.setSortOrder(c.xAxisAsc)), this.isCustomSortDisabled = t, e;
|
|
166
142
|
}
|
|
167
|
-
onStandardizeValuesChange(
|
|
168
|
-
this.model.standardizeValues =
|
|
143
|
+
onStandardizeValuesChange(e) {
|
|
144
|
+
this.model.standardizeValues = e.target.checked;
|
|
169
145
|
}
|
|
170
|
-
onShowOutliersChange(
|
|
171
|
-
this.model.showOutliers =
|
|
146
|
+
onShowOutliersChange(e) {
|
|
147
|
+
this.model.showOutliers = e.target.checked;
|
|
172
148
|
}
|
|
173
|
-
onSplitBySelect(
|
|
174
|
-
this.splitByFieldElement.value && !this.splitByFieldElement.value.disabled && (this.contentKind = l.splitByField, this.setupPopover(
|
|
149
|
+
onSplitBySelect(e) {
|
|
150
|
+
this.splitByFieldElement.value && !this.splitByFieldElement.value.disabled && (this.contentKind = l.splitByField, this.setupPopover(e));
|
|
175
151
|
}
|
|
176
|
-
onSortOrderSelect(
|
|
177
|
-
this.contentKind = l.sortOrder, this.setupPopover(
|
|
152
|
+
onSortOrderSelect(e) {
|
|
153
|
+
this.contentKind = l.sortOrder, this.setupPopover(e);
|
|
178
154
|
}
|
|
179
|
-
setupPopover(
|
|
180
|
-
|
|
181
|
-
let
|
|
155
|
+
setupPopover(e) {
|
|
156
|
+
e.stopImmediatePropagation(), this.boxPlotPopover = p(this.boxPlotPopover);
|
|
157
|
+
let t, s, i, n = !1;
|
|
182
158
|
switch (this.contentKind) {
|
|
183
159
|
case l.category:
|
|
184
|
-
|
|
160
|
+
t = this.categoryElement.value, s = this._messages.categoryHeader, i = this.model.category === u ? "" : this.model.category;
|
|
185
161
|
break;
|
|
186
162
|
case l.numericFields:
|
|
187
|
-
|
|
163
|
+
t = this.numericFieldsElement.value, s = this._messages.numericFieldsHeader, i = this.model.numericFields;
|
|
188
164
|
break;
|
|
189
165
|
case l.splitByField:
|
|
190
|
-
|
|
166
|
+
t = this.splitByFieldElement.value, s = this._messages.splitByFieldHeader, i = this.model.splitByField;
|
|
191
167
|
break;
|
|
192
168
|
case l.sortOrder:
|
|
193
|
-
|
|
169
|
+
t = this.sortOrderElement.value, s = this._messages.selectSortOrder, i = this.model.getSortOrder(), n = this.isCustomSortDisabled;
|
|
194
170
|
break;
|
|
195
171
|
}
|
|
196
|
-
this.boxPlotPopover =
|
|
172
|
+
this.boxPlotPopover = O(a`<arcgis-charts-config-box-plot-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} .isCustomSortDisabled=${n} @arcgisChartsConfigBoxPlotDataPopoverChange=${this.onBoxPlotDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-box-plot-popover>`), !document.body.contains(this.boxPlotPopover) && this.boxPlotPopover !== null && document.body.appendChild(this.boxPlotPopover);
|
|
197
173
|
}
|
|
198
|
-
onAddNumericFields(
|
|
199
|
-
this.contentKind = l.numericFields, this.setupPopover(
|
|
174
|
+
onAddNumericFields(e) {
|
|
175
|
+
this.contentKind = l.numericFields, this.setupPopover(e);
|
|
200
176
|
}
|
|
201
177
|
getCorrectedSplitByValue() {
|
|
202
178
|
return this.model.splitByField?.trim() === "" ? "" : g(this.layerFieldsInfo, this.model.splitByField);
|
|
203
179
|
}
|
|
204
180
|
getCorrectedCategoryValue() {
|
|
205
|
-
return
|
|
181
|
+
return L({
|
|
206
182
|
fieldName: this.model.category,
|
|
207
183
|
fieldList: this.layerFieldsInfo
|
|
208
184
|
}) ? "" : g(this.layerFieldsInfo, this.model.category);
|
|
@@ -211,29 +187,29 @@ class D extends O {
|
|
|
211
187
|
this.selectedCustomSortItemId = "", this.model.orderByList = [...this.originalCustomSortLabels], this.sortOrderResetCounter += 1;
|
|
212
188
|
}
|
|
213
189
|
renderCustomSortUI() {
|
|
214
|
-
const
|
|
215
|
-
return
|
|
190
|
+
const e = this.model.getSortOrder(), t = this.model.getAxisValueFormat(0)?.type, s = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
191
|
+
return t === E.CategoryAxisFormat && e === c.customSort && !this.isCustomSortDisabled ? a`<calcite-label class=${o(r.label)}><div class=${o(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s === 0 || s === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${d.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s === -1 || s === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${d.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${C(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.model.category === u ? this._messages.values : this._messages.category}${this.buildCustomSortList()}</calcite-label>` : null;
|
|
216
192
|
}
|
|
217
|
-
renderNumericFields(
|
|
218
|
-
const
|
|
219
|
-
for (const s of
|
|
220
|
-
|
|
221
|
-
return a`<calcite-list label class=${o(r.fieldList)} ${
|
|
193
|
+
renderNumericFields(e) {
|
|
194
|
+
const t = [];
|
|
195
|
+
for (const s of e)
|
|
196
|
+
t.push(this.buildNumericFieldItem(s));
|
|
197
|
+
return a`<calcite-list label class=${o(r.fieldList)} ${h(this.numericFieldsElement)}>${t}</calcite-list>`;
|
|
222
198
|
}
|
|
223
199
|
renderCategory() {
|
|
224
|
-
const
|
|
225
|
-
return a`<arcgis-charts-config-field-select .label=${
|
|
200
|
+
const e = this.getCorrectedCategoryValue(), t = this.model.numericFields.length === 0 || (this.model.numericFields ?? []).length > 1 && this.model.splitByField !== "";
|
|
201
|
+
return a`<arcgis-charts-config-field-select .label=${e} .disabled=${t} @click=${this.onCategorySelect} ${h(this.categoryElement)}></arcgis-charts-config-field-select>`;
|
|
226
202
|
}
|
|
227
203
|
renderSplitBy() {
|
|
228
|
-
const
|
|
229
|
-
return a`<arcgis-charts-config-field-select .label=${
|
|
204
|
+
const e = this.getCorrectedSplitByValue();
|
|
205
|
+
return a`<arcgis-charts-config-field-select .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${h(this.splitByFieldElement)}></arcgis-charts-config-field-select>`;
|
|
230
206
|
}
|
|
231
207
|
renderSorting() {
|
|
232
|
-
return a`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${
|
|
208
|
+
return a`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${h(this.sortOrderElement)}></arcgis-charts-config-field-select>`;
|
|
233
209
|
}
|
|
234
210
|
render() {
|
|
235
|
-
const
|
|
236
|
-
return a`<calcite-label class=${o(r.label)}>${this._messages.numericFields}${
|
|
211
|
+
const e = this.renderCategory(), t = this.renderNumericFields([...this.model.numericFields ?? []]), s = this.renderSplitBy(), i = this.renderSorting(), n = this.renderCustomSortUI();
|
|
212
|
+
return a`<calcite-label class=${o(r.label)}>${this._messages.numericFields}${t}</calcite-label><div class=${o(r.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div><calcite-label class=${o(r.label)}><div>${this._messages.category} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${e}</calcite-label><calcite-label class=${o(r.label)}><div class=${o(this.disableSplitBy ? r.dimText : "")}>${this._messages.splitBy} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${s}</calcite-label><div>${(this.model.numericFields ?? []).length > 1 ? a`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.standardizeValues}<calcite-switch .checked=${this.model.standardizeValues} @calciteSwitchChange=${this.onStandardizeValuesChange}></calcite-switch></calcite-label>` : null}</div><calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.showOutliers}<calcite-switch .checked=${this.model.showOutliers} @calciteSwitchChange=${this.onShowOutliersChange}></calcite-switch></calcite-label><calcite-label class=${o(r.label)}>${this._messages.sortOrder}${i}</calcite-label>${n}`;
|
|
237
213
|
}
|
|
238
214
|
}
|
|
239
215
|
b("arcgis-charts-config-box-plot-data", D);
|
|
@@ -1,43 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
-
import { keyed as
|
|
3
|
+
import { keyed as p } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as v } from "lit/directives/repeat.js";
|
|
5
|
-
import {
|
|
6
|
-
import "@arcgis/toolkit/type";
|
|
7
|
-
import "../../chunks/series-types.js";
|
|
8
|
-
import { R as u } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
-
import "@arcgis/toolkit/intl";
|
|
10
|
-
import "lodash-es";
|
|
11
|
-
import "luxon";
|
|
12
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
13
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
14
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
15
|
-
import { bp as $, cW as f, c_ as y, bn as F } from "../../chunks/index.js";
|
|
16
|
-
import "@arcgis/core/Graphic.js";
|
|
17
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
18
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
19
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
20
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
21
|
-
import { substitute as L } from "@arcgis/core/intl.js";
|
|
22
|
-
import "@arcgis/core/request.js";
|
|
23
|
-
import "simple-statistics";
|
|
24
|
-
import "@arcgis/core/core/sql.js";
|
|
25
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
26
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
27
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
28
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
29
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
30
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
31
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
32
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
33
|
-
import "@arcgis/core/geometry/Point.js";
|
|
34
|
-
import { e as P, p as I } from "../../chunks/popover-ui-utils.js";
|
|
5
|
+
import { substitute as $ } from "@arcgis/core/intl.js";
|
|
35
6
|
import { a as l } from "../../chunks/interfaces.js";
|
|
36
|
-
import { a as
|
|
37
|
-
import { u as
|
|
38
|
-
import { css as
|
|
39
|
-
import { createRef as
|
|
40
|
-
import { LitElement as
|
|
7
|
+
import { a as u, e as y, c as h, d as F } from "../../chunks/chart-ui-utils2.js";
|
|
8
|
+
import { u as L } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as P, html as n } from "lit";
|
|
10
|
+
import { createRef as f, ref as m } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as I, createEvent as g, renderElement as x, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
12
|
+
import { B as r } from "../../chunks/common.js";
|
|
13
|
+
import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
14
|
+
import { bg as b, bj as E, a2 as w } from "../../chunks/index2.js";
|
|
15
|
+
import { d as B } from "../../chunks/index3.js";
|
|
16
|
+
import { R as C } from "../../chunks/rest-js-object-literals.js";
|
|
41
17
|
const o = {
|
|
42
18
|
jsAppFlyout: "js-app-flyout",
|
|
43
19
|
name: "bar-chart-data-popover",
|
|
@@ -49,10 +25,10 @@ const o = {
|
|
|
49
25
|
sortMedian: "sort-median",
|
|
50
26
|
sortOrderPickList: "sort-order-pick-list",
|
|
51
27
|
panel: "panel"
|
|
52
|
-
}, N =
|
|
53
|
-
class K extends
|
|
28
|
+
}, N = P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
29
|
+
class K extends I {
|
|
54
30
|
constructor() {
|
|
55
|
-
super(...arguments), this._messages =
|
|
31
|
+
super(...arguments), this._messages = L(), this.picklist = f(), this.placement = "leading", this.popoverElement = f(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = g(), this.arcgisChartsConfigPopoverClose = g();
|
|
56
32
|
}
|
|
57
33
|
static {
|
|
58
34
|
this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
|
|
@@ -69,10 +45,10 @@ class K extends E {
|
|
|
69
45
|
updated() {
|
|
70
46
|
setTimeout(() => {
|
|
71
47
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
72
|
-
},
|
|
48
|
+
}, u.PopoverTimer), S(this.popoverElement.value, this.open);
|
|
73
49
|
}
|
|
74
50
|
selectedContentChange(e, t) {
|
|
75
|
-
this.pickListHasChanged =
|
|
51
|
+
this.pickListHasChanged = T(e, t);
|
|
76
52
|
}
|
|
77
53
|
closePopover() {
|
|
78
54
|
if (this.contentKind === l.numericFields && this.pickListHasChanged) {
|
|
@@ -81,7 +57,7 @@ class K extends E {
|
|
|
81
57
|
eventEmitter: this.arcgisChartsConfigBoxPlotDataPopoverChange,
|
|
82
58
|
contentKind: this.contentKind
|
|
83
59
|
};
|
|
84
|
-
|
|
60
|
+
y(e);
|
|
85
61
|
}
|
|
86
62
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
87
63
|
}
|
|
@@ -94,7 +70,7 @@ class K extends E {
|
|
|
94
70
|
}), this.open = !1;
|
|
95
71
|
}
|
|
96
72
|
buildPickListItem(e) {
|
|
97
|
-
return
|
|
73
|
+
return p(e.name, n`<calcite-list-item .label=${B(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
98
74
|
}
|
|
99
75
|
buildPickListItems(e) {
|
|
100
76
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
@@ -102,25 +78,25 @@ class K extends E {
|
|
|
102
78
|
case l.numericFields: {
|
|
103
79
|
for (let s = 0; s < t; s += 1) {
|
|
104
80
|
const a = this.layerFieldsInfo[s];
|
|
105
|
-
|
|
81
|
+
E(a) && i.push(this.buildPickListItem(a));
|
|
106
82
|
}
|
|
107
83
|
break;
|
|
108
84
|
}
|
|
109
85
|
case l.category: {
|
|
110
|
-
const s =
|
|
86
|
+
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
111
87
|
i.push(s);
|
|
112
88
|
for (let a = 0; a < t; a += 1) {
|
|
113
89
|
const c = this.layerFieldsInfo[a];
|
|
114
|
-
(
|
|
90
|
+
(b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
|
|
115
91
|
}
|
|
116
92
|
break;
|
|
117
93
|
}
|
|
118
94
|
case l.splitByField: {
|
|
119
|
-
const s =
|
|
95
|
+
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
120
96
|
i.push(s);
|
|
121
97
|
for (let a = 0; a < t; a += 1) {
|
|
122
98
|
const c = this.layerFieldsInfo[a];
|
|
123
|
-
(
|
|
99
|
+
(b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
|
|
124
100
|
}
|
|
125
101
|
break;
|
|
126
102
|
}
|
|
@@ -131,40 +107,40 @@ class K extends E {
|
|
|
131
107
|
e.target !== null && (this.selectedContent = e.target.selectedItems.map((t) => t.value));
|
|
132
108
|
}
|
|
133
109
|
buildSortOrder() {
|
|
134
|
-
const e = Object.keys(
|
|
110
|
+
const e = Object.keys(r);
|
|
135
111
|
let t;
|
|
136
112
|
return v(e, (i) => i, (i) => {
|
|
137
113
|
let s = "";
|
|
138
114
|
switch (i) {
|
|
139
|
-
case
|
|
115
|
+
case r.xAxisAsc: {
|
|
140
116
|
t = "a-z-down";
|
|
141
117
|
break;
|
|
142
118
|
}
|
|
143
|
-
case
|
|
119
|
+
case r.xAxisDesc: {
|
|
144
120
|
t = "a-z-up";
|
|
145
121
|
break;
|
|
146
122
|
}
|
|
147
|
-
case
|
|
123
|
+
case r.meanAsc:
|
|
148
124
|
t = "sort-descending", s = o.sortMean;
|
|
149
125
|
break;
|
|
150
|
-
case
|
|
126
|
+
case r.meanDesc: {
|
|
151
127
|
t = "sort-ascending", s = o.sortMean;
|
|
152
128
|
break;
|
|
153
129
|
}
|
|
154
|
-
case
|
|
130
|
+
case r.medianAsc: {
|
|
155
131
|
t = "sort-descending", s = o.sortMedian;
|
|
156
132
|
break;
|
|
157
133
|
}
|
|
158
|
-
case
|
|
134
|
+
case r.medianDesc: {
|
|
159
135
|
t = "sort-ascending", s = o.sortMedian;
|
|
160
136
|
break;
|
|
161
137
|
}
|
|
162
|
-
case
|
|
138
|
+
case r.customSort: {
|
|
163
139
|
t = "arrow-up-down";
|
|
164
140
|
break;
|
|
165
141
|
}
|
|
166
142
|
}
|
|
167
|
-
return
|
|
143
|
+
return n`<calcite-list-item .disabled=${this.isCustomSortDisabled && i === r.customSort} .label=${this._messages[i]} .selected=${this.selectedContent === i} .value=${r[i]} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}><calcite-icon class=${`sort-icon-color ${s}`} slot=content-start .icon=${t}></calcite-icon></calcite-list-item>`;
|
|
168
144
|
});
|
|
169
145
|
}
|
|
170
146
|
onNumericFieldSelectionDone() {
|
|
@@ -172,30 +148,30 @@ class K extends E {
|
|
|
172
148
|
}
|
|
173
149
|
createTooltip(e) {
|
|
174
150
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
175
|
-
const t = e.target, i =
|
|
151
|
+
const t = e.target, i = w(t), a = new Intl.NumberFormat(i).format(u.customSortLimit), c = $(this._messages.customSortLimit ?? "", {
|
|
176
152
|
totalLimit: a
|
|
177
153
|
});
|
|
178
|
-
this.tooltip =
|
|
154
|
+
this.tooltip = x(n`<calcite-tooltip style=${D({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
179
155
|
}
|
|
180
156
|
}
|
|
181
157
|
destroyTooltip() {
|
|
182
|
-
|
|
158
|
+
F(this.tooltip);
|
|
183
159
|
}
|
|
184
160
|
renderCategory() {
|
|
185
161
|
const e = this.buildPickListItems(l.category);
|
|
186
|
-
return
|
|
162
|
+
return n`<calcite-list label class=${d(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
187
163
|
}
|
|
188
164
|
renderNumericFields() {
|
|
189
165
|
const e = this.buildPickListItems(l.numericFields);
|
|
190
|
-
return
|
|
166
|
+
return n`<calcite-list label class=${d(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
191
167
|
}
|
|
192
168
|
renderSplitByField() {
|
|
193
169
|
const e = this.buildPickListItems(l.splitByField);
|
|
194
|
-
return
|
|
170
|
+
return n`<calcite-list label class=${d(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
195
171
|
}
|
|
196
172
|
renderSortOrder() {
|
|
197
173
|
const e = this.buildSortOrder();
|
|
198
|
-
return
|
|
174
|
+
return n`<calcite-list label class=${d(o.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
199
175
|
}
|
|
200
176
|
renderPopoverInfo() {
|
|
201
177
|
let e;
|
|
@@ -217,7 +193,7 @@ class K extends E {
|
|
|
217
193
|
}
|
|
218
194
|
render() {
|
|
219
195
|
let e;
|
|
220
|
-
return this.contentKind === l.numericFields && (e =
|
|
196
|
+
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${d(o.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=${d(o.jsAppFlyout)}><calcite-popover class=${d(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel class=${d(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${d(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
221
197
|
}
|
|
222
198
|
}
|
|
223
199
|
k("arcgis-charts-config-box-plot-popover", K);
|