@arcgis/charts-components 5.1.0-next.111 → 5.1.0-next.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cdn/24TOMTMP.js +2 -0
- package/dist/cdn/2EPXIQFD.js +2 -0
- package/dist/cdn/2JUO3GP2.js +2 -0
- package/dist/cdn/2SVBUT3V.js +2 -0
- package/dist/cdn/2XTQT6TW.js +2 -0
- package/dist/cdn/{ANMNNZTA.js → 2YI4HWFY.js} +39 -39
- package/dist/cdn/34WNZMJY.js +2 -0
- package/dist/cdn/43P4WOC4.js +2 -0
- package/dist/cdn/4G5JOLEP.js +2 -0
- package/dist/cdn/4MZJZQDO.js +2 -0
- package/dist/cdn/52QMEXI6.js +2 -0
- package/dist/cdn/5I75UYWD.js +2 -0
- package/dist/cdn/5M72DGYL.js +2 -0
- package/dist/cdn/5PG6PXDG.js +2 -0
- package/dist/cdn/6FGRLBTA.js +2 -0
- package/dist/cdn/6JNHTWDQ.js +2 -0
- package/dist/cdn/6YSH3ROL.js +2 -0
- package/dist/cdn/75Y43JLP.js +2 -0
- package/dist/cdn/777EBGS5.js +2 -0
- package/dist/cdn/7AVVBDQS.js +4 -0
- package/dist/cdn/7EDHTVVK.js +2 -0
- package/dist/cdn/7MHEEH5F.js +2 -0
- package/dist/cdn/7MKAC33Z.js +2 -0
- package/dist/cdn/7Y76VKGS.js +2 -0
- package/dist/cdn/AC2XSIOU.js +2 -0
- package/dist/cdn/AEESEH6N.js +2 -0
- package/dist/cdn/AYY2C4BW.js +2 -0
- package/dist/cdn/BH7WDRGU.js +2 -0
- package/dist/cdn/BZUQTY3A.js +2 -0
- package/dist/cdn/CMPHBGKB.js +2 -0
- package/dist/cdn/DDA7NVBX.js +2 -0
- package/dist/cdn/DMDXALHQ.js +2 -0
- package/dist/cdn/DX5LK7LS.js +2 -0
- package/dist/cdn/ERUYMQOC.js +2 -0
- package/dist/cdn/{CSNF7XRL.js → ESUMWLYT.js} +1 -1
- package/dist/cdn/EULFJ5JL.js +2 -0
- package/dist/cdn/EX27CNDS.js +2 -0
- package/dist/cdn/FIMXZMTB.js +2 -0
- package/dist/cdn/FYI7J2KF.js +2 -0
- package/dist/cdn/G42X3FFH.js +2 -0
- package/dist/cdn/GGZNH26O.js +2 -0
- package/dist/cdn/HIQSXKPT.js +3 -0
- package/dist/cdn/HS2WQJEO.js +2 -0
- package/dist/cdn/IBCUXQZ4.js +2 -0
- package/dist/cdn/IC4OZCXG.js +2 -0
- package/dist/cdn/JGD2M47O.js +2 -0
- package/dist/cdn/KGOERXN5.js +2 -0
- package/dist/cdn/{JEQDHNEJ.js → KPXH2MNB.js} +1 -1
- package/dist/cdn/KSBWHMXE.js +2 -0
- package/dist/cdn/{6KFD2LHE.js → L3ULFQN3.js} +1 -1
- package/dist/cdn/LKHNZDEC.js +2 -0
- package/dist/cdn/LXVLBS7T.js +2 -0
- package/dist/cdn/M5E3NFDP.js +2 -0
- package/dist/cdn/MKEUDI3M.js +2 -0
- package/dist/cdn/MKQPW6B4.js +2 -0
- package/dist/cdn/MVAMHZ3Q.js +2 -0
- package/dist/cdn/{VTJXTTAB.js → MZ2UZAFW.js} +1 -1
- package/dist/cdn/N265ZHHU.js +2 -0
- package/dist/cdn/N2S6YV3I.js +2 -0
- package/dist/cdn/N3EATDXE.js +2 -0
- package/dist/cdn/NLWP2JOG.js +2 -0
- package/dist/cdn/NR3BCOHU.js +3 -0
- package/dist/cdn/O2JEDVIA.js +2 -0
- package/dist/cdn/OB7IDW6S.js +2 -0
- package/dist/cdn/OBPCKG62.js +2 -0
- package/dist/cdn/OCERCT4I.js +2 -0
- package/dist/cdn/OFN7ED75.js +2 -0
- package/dist/cdn/OQSFVGUL.js +2 -0
- package/dist/cdn/PA3PSUQ3.js +2 -0
- package/dist/cdn/PYFMKPMO.js +2 -0
- package/dist/cdn/QRZ32JMG.js +2 -0
- package/dist/cdn/R3GNKVFS.js +2 -0
- package/dist/cdn/R3Y2F64T.js +2 -0
- package/dist/cdn/RBVV7JGY.js +102 -0
- package/dist/cdn/RSXO7AZM.js +2 -0
- package/dist/cdn/S32VCEG7.js +2 -0
- package/dist/cdn/S7ASARWB.js +2 -0
- package/dist/cdn/SBS4J65N.js +2 -0
- package/dist/cdn/SVMC3JP5.js +2 -0
- package/dist/cdn/SYXU6NZX.js +2 -0
- package/dist/cdn/T3CSQ5DU.js +2 -0
- package/dist/cdn/T3NJTAF3.js +2 -0
- package/dist/cdn/T53WJZQN.js +2 -0
- package/dist/cdn/TES5ZESK.js +2 -0
- package/dist/cdn/{XSMRKVR2.js → TJQGGNGV.js} +1 -1
- package/dist/cdn/TOO3T62Y.js +2 -0
- package/dist/cdn/U5ZB4YD6.js +2 -0
- package/dist/cdn/UK2A3DRS.js +2 -0
- package/dist/cdn/UNDCO72C.js +2 -0
- package/dist/cdn/UR537UXK.js +2 -0
- package/dist/cdn/VMAOMKFN.js +2 -0
- package/dist/cdn/VV7JMGHL.js +2 -0
- package/dist/cdn/W6CIWZSM.js +2 -0
- package/dist/cdn/WA5XK3HC.js +2 -0
- package/dist/cdn/WD4QY4YU.js +2 -0
- package/dist/cdn/WESXMGHU.js +2 -0
- package/dist/cdn/WFDVEHVL.js +2 -0
- package/dist/cdn/WI3CE5TT.js +2 -0
- package/dist/cdn/WNZ2PSFZ.js +2 -0
- package/dist/cdn/XLJSZ42M.js +2 -0
- package/dist/cdn/XM6GBBOL.js +2 -0
- package/dist/cdn/XOB365BI.js +2 -0
- package/dist/cdn/Y2AULE2F.js +2 -0
- package/dist/cdn/YE5ASSSN.js +2 -0
- package/dist/cdn/ZBLRD77K.js +2 -0
- package/dist/cdn/{5RMUCBSG.js → ZZRH7LXO.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +12 -12
- package/dist/chunks/bar-chart-model.js +20 -47
- package/dist/chunks/bar-chart-series.js +10 -40
- package/dist/chunks/box-plot-data.js +132 -155
- package/dist/chunks/box-plot-model.js +18 -18
- package/dist/chunks/chart-model.js +76 -103
- package/dist/chunks/chart-object-literals.js +189 -0
- package/dist/chunks/chart-ui-utils.js +17 -16
- package/dist/chunks/chart-ui-utils2.js +91 -116
- package/dist/chunks/class-breaks.js +375 -196
- package/dist/chunks/combo-bar-line-chart-model.js +19 -18
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +56 -84
- package/dist/chunks/data.js +82 -105
- package/dist/chunks/default.js +6 -7
- package/dist/chunks/gauge-model.js +42 -69
- package/dist/chunks/generate-x-axis-title.js +39 -66
- package/dist/chunks/heat-chart-model.js +183 -183
- package/dist/chunks/histogram-data.js +56 -80
- package/dist/chunks/histogram-model.js +24 -24
- package/dist/chunks/index.js +560 -21042
- package/dist/chunks/index2.js +8706 -596
- package/dist/chunks/index3.js +873 -160
- package/dist/chunks/index4.js +701 -76
- package/dist/chunks/index5.js +10794 -62
- package/dist/chunks/index6.js +99 -0
- package/dist/chunks/index7.js +66 -0
- package/dist/chunks/interfaces.js +31 -32
- package/dist/chunks/line-chart-model.js +12 -11
- package/dist/chunks/model-setter.js +44 -41
- package/dist/chunks/model-types.js +43 -0
- package/dist/chunks/model-with-y-guides.js +89 -116
- package/dist/chunks/negative-values-stacked-to-baseline.js +50 -79
- package/dist/chunks/pie-chart-data.js +89 -111
- package/dist/chunks/pie-chart-model.js +46 -70
- package/dist/chunks/radar-chart-model.js +35 -62
- package/dist/chunks/resource.js +8 -10
- package/dist/chunks/rotated-state.js +24 -52
- package/dist/chunks/scatterplot-model.js +90 -112
- package/dist/chunks/serial-chart-data.js +540 -530
- package/dist/chunks/serial-chart-model.js +90 -115
- package/dist/chunks/series-length.js +25 -53
- package/dist/chunks/series-types.js +21 -206
- package/dist/chunks/series.js +9 -38
- package/dist/chunks/time-zone.js +14 -15
- package/dist/chunks/type-guards.js +23 -132
- package/dist/chunks/type-guards2.js +100 -192
- package/dist/chunks/type-guards3.js +173 -0
- package/dist/chunks/utils.js +75 -97
- package/dist/chunks/utils2.js +34 -63
- package/dist/chunks/web-component-utils.js +85 -83
- package/dist/chunks/x-bounds.js +69 -95
- package/dist/components/arcgis-chart/customElement.js +3670 -3637
- package/dist/components/arcgis-charts-action-bar/customElement.js +8 -9
- package/dist/components/arcgis-charts-config-axis/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +33 -60
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +47 -70
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +33 -54
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +37 -64
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +15 -43
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +12 -39
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +87 -111
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +41 -65
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +13 -40
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +18 -45
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +17 -45
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +47 -68
- package/dist/components/arcgis-charts-config-font-style/customElement.js +21 -48
- package/dist/components/arcgis-charts-config-format/customElement.js +55 -82
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +12 -41
- package/dist/components/arcgis-charts-config-general/customElement.js +29 -55
- package/dist/components/arcgis-charts-config-guide/customElement.js +44 -68
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +14 -43
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -3
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +10 -39
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +29 -56
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +153 -175
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +56 -79
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -55
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +39 -62
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -50
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +27 -54
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +23 -46
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +46 -69
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +33 -61
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +14 -42
- package/dist/components/arcgis-charts-config-line-style/customElement.js +9 -11
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +28 -55
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +24 -49
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +42 -66
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +38 -65
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +15 -43
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +31 -58
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +31 -55
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +16 -42
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +10 -38
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +21 -50
- package/dist/components/arcgis-charts-info-modal/customElement.js +17 -43
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +57 -3
- package/dist/index.js +464 -459
- package/dist/json-schema/index.d.ts +4839 -4825
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -0
- package/dist/model.js +77 -39
- package/dist/spec/web-chart.d.ts +5 -1
- package/dist/utils/layer/index.d.ts +3 -1
- package/dist/utils/layer/utils/index.d.ts +16 -4
- package/package.json +3 -3
- package/dist/cdn/2NCZCQJQ.js +0 -2
- package/dist/cdn/2QWN4KMQ.js +0 -2
- package/dist/cdn/3HHF7GDV.js +0 -2
- package/dist/cdn/43EPRNLY.js +0 -2
- package/dist/cdn/53YROF54.js +0 -2
- package/dist/cdn/57M5BGHO.js +0 -2
- package/dist/cdn/5Y2AIQMX.js +0 -2
- package/dist/cdn/6CGECXEP.js +0 -2
- package/dist/cdn/6MDEAZCW.js +0 -2
- package/dist/cdn/6YLXJOBN.js +0 -2
- package/dist/cdn/7LE76H3V.js +0 -2
- package/dist/cdn/7OK6DOOJ.js +0 -2
- package/dist/cdn/7QJ77UCB.js +0 -2
- package/dist/cdn/7XCTW7TF.js +0 -2
- package/dist/cdn/ABPBMLW4.js +0 -4
- package/dist/cdn/ACBNPWST.js +0 -2
- package/dist/cdn/AU5NU5OU.js +0 -2
- package/dist/cdn/AUKWLONZ.js +0 -2
- package/dist/cdn/B3TAQSVG.js +0 -2
- package/dist/cdn/B7BDZS5Q.js +0 -2
- package/dist/cdn/B7OT7NHE.js +0 -2
- package/dist/cdn/BIW46U2E.js +0 -2
- package/dist/cdn/BNMVFWWL.js +0 -2
- package/dist/cdn/BUPTELGR.js +0 -2
- package/dist/cdn/C3EG6JVL.js +0 -2
- package/dist/cdn/CEML6AMG.js +0 -2
- package/dist/cdn/CSISDIV5.js +0 -2
- package/dist/cdn/CXSBPI44.js +0 -2
- package/dist/cdn/DEWZASZK.js +0 -2
- package/dist/cdn/FJFVBE6K.js +0 -2
- package/dist/cdn/FLBXUDIS.js +0 -2
- package/dist/cdn/FQKOG42T.js +0 -2
- package/dist/cdn/FTXNBE44.js +0 -2
- package/dist/cdn/FU6JT3UD.js +0 -2
- package/dist/cdn/H7SXQSDY.js +0 -2
- package/dist/cdn/HFHPPFTL.js +0 -2
- package/dist/cdn/IQ5ZYJIB.js +0 -2
- package/dist/cdn/IVSSNIVI.js +0 -2
- package/dist/cdn/J27JNN6U.js +0 -2
- package/dist/cdn/J5O4KJG3.js +0 -2
- package/dist/cdn/KJHX7M5S.js +0 -2
- package/dist/cdn/KKDZFW5O.js +0 -2
- package/dist/cdn/KRZLTTVV.js +0 -2
- package/dist/cdn/KUOSDD5D.js +0 -2
- package/dist/cdn/L767SIJD.js +0 -2
- package/dist/cdn/LSF52M7M.js +0 -2
- package/dist/cdn/LW3BORFM.js +0 -2
- package/dist/cdn/M3ATYECI.js +0 -2
- package/dist/cdn/M6BMA2X5.js +0 -2
- package/dist/cdn/MCSGNGSS.js +0 -2
- package/dist/cdn/MJEMDC6S.js +0 -2
- package/dist/cdn/MY2TTPFJ.js +0 -2
- package/dist/cdn/MZQHYO73.js +0 -2
- package/dist/cdn/N6ZYLQ35.js +0 -2
- package/dist/cdn/ODM6XDHJ.js +0 -2
- package/dist/cdn/PAPWPFW4.js +0 -2
- package/dist/cdn/PDDEFX6K.js +0 -2
- package/dist/cdn/PNQ6VVJK.js +0 -2
- package/dist/cdn/QCO44WFX.js +0 -2
- package/dist/cdn/QCZO6SPY.js +0 -2
- package/dist/cdn/QJQCXQZQ.js +0 -2
- package/dist/cdn/QLBJVTC3.js +0 -2
- package/dist/cdn/QLRYZVYC.js +0 -2
- package/dist/cdn/QRJS3CVV.js +0 -2
- package/dist/cdn/QWCMSPHD.js +0 -2
- package/dist/cdn/RCS3DD7Z.js +0 -104
- package/dist/cdn/S52W7JS7.js +0 -2
- package/dist/cdn/SDWC5FQU.js +0 -2
- package/dist/cdn/SLGQSOZB.js +0 -2
- package/dist/cdn/SNQFOXQP.js +0 -2
- package/dist/cdn/STPMMRCH.js +0 -2
- package/dist/cdn/SUYBENSN.js +0 -2
- package/dist/cdn/TAW7DR2R.js +0 -2
- package/dist/cdn/TUM7FWOK.js +0 -2
- package/dist/cdn/UFCW5HCY.js +0 -2
- package/dist/cdn/URPIV4FP.js +0 -2
- package/dist/cdn/URX6VCYJ.js +0 -2
- package/dist/cdn/V2LSSOBU.js +0 -2
- package/dist/cdn/V7JH3U65.js +0 -2
- package/dist/cdn/VFOLCHS4.js +0 -2
- package/dist/cdn/VFZ5WZJL.js +0 -2
- package/dist/cdn/WEAUUIMY.js +0 -2
- package/dist/cdn/WHL3PAOM.js +0 -2
- package/dist/cdn/WQRH2BWD.js +0 -2
- package/dist/cdn/WQRXJQDO.js +0 -2
- package/dist/cdn/WTIY4H4L.js +0 -2
- package/dist/cdn/WXEJ47F6.js +0 -2
- package/dist/cdn/XUAJWZRU.js +0 -2
- package/dist/cdn/XYTCID73.js +0 -2
- package/dist/cdn/Z7L63G6V.js +0 -2
- package/dist/cdn/ZJOBVONS.js +0 -2
- package/dist/cdn/ZZQFMONS.js +0 -2
- package/dist/chunks/setup-utils.js +0 -80
- package/dist/model/index.d.ts +0 -19
- package/dist/spec/index.d.ts +0 -8
- package/dist/utils/index.d.ts +0 -33
- /package/dist/cdn/{S5OM65RV.js → COYWSD6X.js} +0 -0
|
@@ -1,42 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as P } from "../../chunks/runtime.js";
|
|
3
|
-
import "@arcgis/toolkit/intl";
|
|
4
3
|
import { cloneDeep as T, isEmpty as F, toNumber as $ } from "lodash-es";
|
|
5
|
-
import "luxon";
|
|
6
|
-
import "@arcgis/toolkit/type";
|
|
7
|
-
import { u as f } from "../../chunks/series-types.js";
|
|
8
|
-
import { i as v } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
10
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
11
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
12
|
-
import { b0 as L, bp as b, aK as z, dT as A } from "../../chunks/index.js";
|
|
13
|
-
import "@arcgis/core/Graphic.js";
|
|
14
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
16
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
17
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
18
|
-
import "@arcgis/core/intl.js";
|
|
19
|
-
import "@arcgis/core/request.js";
|
|
20
|
-
import "simple-statistics";
|
|
21
|
-
import "@arcgis/core/core/sql.js";
|
|
22
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
23
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
24
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
25
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
26
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
27
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
28
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
29
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
30
|
-
import "@arcgis/core/geometry/Point.js";
|
|
31
|
-
import "@arcgis/toolkit/dom";
|
|
32
|
-
import { r as C } from "../../chunks/popover-ui-utils.js";
|
|
33
4
|
import { S as a, g as d } from "../../chunks/interfaces.js";
|
|
34
|
-
import { d as
|
|
35
|
-
import { i as
|
|
36
|
-
import { u as
|
|
37
|
-
import { css as
|
|
5
|
+
import { d as L, s as m } from "../../chunks/store.js";
|
|
6
|
+
import { i as f, m as g, k as A, s as y, D as k, U as u } from "../../chunks/chart-ui-utils2.js";
|
|
7
|
+
import { u as v } from "../../chunks/useT9n.js";
|
|
8
|
+
import { css as M, html as r } from "lit";
|
|
38
9
|
import { createRef as h, ref as c } from "lit/directives/ref.js";
|
|
39
|
-
import { LitElement as
|
|
10
|
+
import { LitElement as w, createEvent as z, renderElement as _, safeClassMap as i, safeStyleMap as C } from "@arcgis/lumina";
|
|
11
|
+
import { _ as V, F as x, aB as D } from "../../chunks/index.js";
|
|
12
|
+
import { d as b } from "../../chunks/index3.js";
|
|
13
|
+
import { r as E } from "../../chunks/popover-ui-utils.js";
|
|
14
|
+
import { i as I } from "../../chunks/rest-js-object-literals.js";
|
|
15
|
+
import { u as S } from "../../chunks/chart-object-literals.js";
|
|
40
16
|
const l = {
|
|
41
17
|
label: "label",
|
|
42
18
|
r2: "r2",
|
|
@@ -47,14 +23,14 @@ const l = {
|
|
|
47
23
|
sectionContainer: "section-container",
|
|
48
24
|
multiInputSection: "multi-input-section",
|
|
49
25
|
dimText: "dim-text"
|
|
50
|
-
}, N =
|
|
51
|
-
class K extends
|
|
26
|
+
}, N = M`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}:host .number-input{margin-bottom:.5rem;display:flex}:host .number-input>div{width:100%}calcite-list-item{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor)}calcite-slider{margin-top:-1.5rem}.r2{margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor)}.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}.section-container{display:flex;flex-direction:column}.icon-select{cursor:pointer}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.switch-element{margin-right:var(--arcgis-charts-config-margin-minor)}.multi-input-section{display:flex;justify-content:space-between;align-items:center}`;
|
|
27
|
+
class K extends w {
|
|
52
28
|
constructor() {
|
|
53
|
-
super(...arguments), this._messages =
|
|
29
|
+
super(...arguments), this._messages = v(), this.commonStrings = v({ name: "common", blocking: !0 }), this.scatterplotPopover = null, this.selectColorElement = h(), this.selectTrendLineElement = h(), this.xAxisElement = h(), this.yAxisElement = h(), this.tooltipFieldElement = h(), this.sizeVariableElement = h(), this.colorModeElement = h(), this.symbolSizeModeElement = h(), this.minSizeInputElement = h(), this.maxSizeInputElement = h(), this.items = [], this.setTrendLineSymbol = (e) => {
|
|
54
30
|
const t = e.detail;
|
|
55
31
|
this.model.linearTrendSymbol = T(t);
|
|
56
32
|
}, this.setFixedSymbolRGBAColor = (e) => {
|
|
57
|
-
const t = e.detail, [s, o, n] = t, p =
|
|
33
|
+
const t = e.detail, [s, o, n] = t, p = D * 255;
|
|
58
34
|
this.model.fixedMarkerSymbol = {
|
|
59
35
|
...this.model.fixedMarkerSymbol,
|
|
60
36
|
color: [s, o, n, p]
|
|
@@ -62,7 +38,7 @@ class K extends _ {
|
|
|
62
38
|
}, this.setXYField = (e) => {
|
|
63
39
|
try {
|
|
64
40
|
const t = e.detail;
|
|
65
|
-
|
|
41
|
+
L(m), this.contentKind === a.xAxisField ? this.model.xAxisField = t : this.model.yAxisField = t, this.removeScatterplotPopover();
|
|
66
42
|
} catch (t) {
|
|
67
43
|
throw t instanceof Error && this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
68
44
|
}
|
|
@@ -74,7 +50,7 @@ class K extends _ {
|
|
|
74
50
|
const t = e.detail;
|
|
75
51
|
t ? this.model.sizePolicy = {
|
|
76
52
|
...this.model.sizePolicy,
|
|
77
|
-
type:
|
|
53
|
+
type: S.SizePolicy,
|
|
78
54
|
field: t
|
|
79
55
|
} : this.model.sizePolicy = void 0, m.scatterplotData[m.selectedChartId] = {
|
|
80
56
|
...m.scatterplotData[m.selectedChartId],
|
|
@@ -88,13 +64,13 @@ class K extends _ {
|
|
|
88
64
|
}, this.onModelConfigChange = () => {
|
|
89
65
|
this.requestUpdate();
|
|
90
66
|
const { minSize: e, maxSize: t } = this.model.sizePolicy ?? {};
|
|
91
|
-
this.minSizeInputElement.value !== void 0 && e !== void 0 && (this.minSizeInputElement.value.value = `${e}`,
|
|
67
|
+
this.minSizeInputElement.value !== void 0 && e !== void 0 && (this.minSizeInputElement.value.value = `${e}`, f(this.minSizeInputElement.value.value, this.minSizeInputElement.value.min, this.minSizeInputElement.value.max) ? g({
|
|
92
68
|
inputElement: this.minSizeInputElement.value,
|
|
93
69
|
status: u.IDLE
|
|
94
70
|
}) : g({
|
|
95
71
|
inputElement: this.minSizeInputElement.value,
|
|
96
72
|
status: u.INVALID
|
|
97
|
-
})), this.maxSizeInputElement.value !== void 0 && t !== void 0 && (this.maxSizeInputElement.value.value = `${t}`,
|
|
73
|
+
})), this.maxSizeInputElement.value !== void 0 && t !== void 0 && (this.maxSizeInputElement.value.value = `${t}`, f(this.maxSizeInputElement.value.value, this.maxSizeInputElement.value.min, this.maxSizeInputElement.value.max) ? g({
|
|
98
74
|
inputElement: this.maxSizeInputElement.value,
|
|
99
75
|
status: u.IDLE
|
|
100
76
|
}) : g({
|
|
@@ -104,7 +80,7 @@ class K extends _ {
|
|
|
104
80
|
}, this.segmentedControlRef = (e) => {
|
|
105
81
|
e && (e.focus = () => {
|
|
106
82
|
}, this.items.push(e));
|
|
107
|
-
}, this.layerFieldsInfo = [], this.isTableLayer = !1, this.arcgisChartsConfigDataChangeError =
|
|
83
|
+
}, this.layerFieldsInfo = [], this.isTableLayer = !1, this.arcgisChartsConfigDataChangeError = z(), this.arcgisChartsConfigScatterplotPopoverChange = z();
|
|
108
84
|
}
|
|
109
85
|
static {
|
|
110
86
|
this.properties = { selectedElement: 16, selectedSizeType: 16, messageOverrides: 0, model: 0, r2: 9, layerFieldsInfo: 0, isTableLayer: 5 };
|
|
@@ -113,7 +89,7 @@ class K extends _ {
|
|
|
113
89
|
this.styles = N;
|
|
114
90
|
}
|
|
115
91
|
load() {
|
|
116
|
-
this.modelChange(this.model), this.onModelConfigChange(), this.defaultR2Label =
|
|
92
|
+
this.modelChange(this.model), this.onModelConfigChange(), this.defaultR2Label = V(this.commonStrings);
|
|
117
93
|
}
|
|
118
94
|
willUpdate(e) {
|
|
119
95
|
e.has("model") && (this.updateSymbolSizeInfoInAppState(), this.modelChange(this.model, e.get("model"))), e.has("selectedElement") && this.openPopover();
|
|
@@ -147,7 +123,7 @@ class K extends _ {
|
|
|
147
123
|
}
|
|
148
124
|
symbolSizeChange(e) {
|
|
149
125
|
const t = e.target, { value: s } = t;
|
|
150
|
-
if (s !== void 0 &&
|
|
126
|
+
if (s !== void 0 && f(s, t.min, t.max)) {
|
|
151
127
|
const o = Number.parseInt(s), n = this.model.sizePolicy, p = this.model.fixedMarkerSymbol;
|
|
152
128
|
switch (t.name) {
|
|
153
129
|
case "fixed-symbol-size":
|
|
@@ -197,11 +173,11 @@ class K extends _ {
|
|
|
197
173
|
const t = m.scatterplotData[m.selectedChartId]?.sizePolicyField;
|
|
198
174
|
e === d.Proportional && t !== void 0 ? this.model.sizePolicy = {
|
|
199
175
|
...this.model.sizePolicy,
|
|
200
|
-
type:
|
|
176
|
+
type: S.SizePolicy,
|
|
201
177
|
field: t
|
|
202
178
|
} : e === d.Fixed && (this.model.sizePolicy = {
|
|
203
179
|
...this.model.sizePolicy,
|
|
204
|
-
type:
|
|
180
|
+
type: S.SizePolicy,
|
|
205
181
|
field: ""
|
|
206
182
|
});
|
|
207
183
|
}
|
|
@@ -223,7 +199,7 @@ class K extends _ {
|
|
|
223
199
|
e.stopImmediatePropagation(), this.contentKind = a.sizeVariable, this.selectedElement = this.model.sizePolicy?.field ?? "";
|
|
224
200
|
}
|
|
225
201
|
setupPopover() {
|
|
226
|
-
this.scatterplotPopover =
|
|
202
|
+
this.scatterplotPopover = E(this.scatterplotPopover);
|
|
227
203
|
const e = [...this.layerFieldsInfo];
|
|
228
204
|
let t, s, o, n = "trailing";
|
|
229
205
|
switch (this.contentKind) {
|
|
@@ -242,17 +218,17 @@ class K extends _ {
|
|
|
242
218
|
case a.symbol:
|
|
243
219
|
case a.trendLine: {
|
|
244
220
|
const p = this.selectedElement;
|
|
245
|
-
o = this.selectedElement, n = "leading", Array.isArray(this.selectedElement) ? t = this.selectColorElement.value : p?.type ===
|
|
221
|
+
o = this.selectedElement, n = "leading", Array.isArray(this.selectedElement) ? t = this.selectColorElement.value : p?.type === I.SLS && (t = this.selectTrendLineElement.value);
|
|
246
222
|
break;
|
|
247
223
|
}
|
|
248
224
|
default:
|
|
249
225
|
this.contentKind = a.none, this.removeScatterplotPopover();
|
|
250
226
|
break;
|
|
251
227
|
}
|
|
252
|
-
this.scatterplotPopover =
|
|
228
|
+
this.scatterplotPopover = _(r`<arcgis-charts-config-scatter-plot-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${e} .selectedContent=${o} .placement=${n} @arcgisChartsConfigPopoverClose=${this.closeScatterplotPopover} @arcgisChartsConfigScatterplotFillColorChange=${this.setFixedSymbolRGBAColor} @arcgisChartsConfigScatterplotLineStyleChange=${this.setTrendLineSymbol} @arcgisChartsConfigScatterplotXYFieldChange=${this.setXYField} @arcgisChartsConfigScatterplotSizeVariableFieldChange=${this.setSizeVariableField} @arcgisChartsConfigScatterplotAdditionalTooltipFieldChange=${this.setAdditionalTooltipField}></arcgis-charts-config-scatter-plot-popover>`), !document.body.contains(this.scatterplotPopover) && this.scatterplotPopover !== null && document.body.appendChild(this.scatterplotPopover);
|
|
253
229
|
}
|
|
254
230
|
removeScatterplotPopover() {
|
|
255
|
-
this.scatterplotPopover !== null && (this.scatterplotPopover =
|
|
231
|
+
this.scatterplotPopover !== null && (this.scatterplotPopover = E(this.scatterplotPopover)), this.selectedElement = void 0;
|
|
256
232
|
}
|
|
257
233
|
getCurrentSymbolSizeType() {
|
|
258
234
|
const e = this.model.sizePolicy;
|
|
@@ -268,8 +244,8 @@ class K extends _ {
|
|
|
268
244
|
return r`<arcgis-charts-config-field-select .disabled=${this.model.dataStore.aggregated} .label=${b(this.layerFieldsInfo, this.model.additionalTooltipField?.[0] ?? "")} @click=${this.onAdditionalTooltipFieldSelectChange} ${c(this.tooltipFieldElement)}></arcgis-charts-config-field-select>`;
|
|
269
245
|
}
|
|
270
246
|
renderStatistics() {
|
|
271
|
-
const [e, t, s, o] = [...this.model.linearTrendSymbol?.color ??
|
|
272
|
-
return r`<div class=${i(l.sectionContainer)}><calcite-label class=${i(l.label)} layout=inline-space-between>${this._messages.showLinearTrend}<calcite-switch class=${i(l.switchElement)} .checked=${this.model.showLinearTrend} @calciteSwitchChange=${this.setShowTrendLine}></calcite-switch></calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.trendLineStyle} value=selectTrendLine .hidden=${!this.model.showLinearTrend} .selected=${this.selectedElement?.type ===
|
|
247
|
+
const [e, t, s, o] = [...this.model.linearTrendSymbol?.color ?? x(0)];
|
|
248
|
+
return r`<div class=${i(l.sectionContainer)}><calcite-label class=${i(l.label)} layout=inline-space-between>${this._messages.showLinearTrend}<calcite-switch class=${i(l.switchElement)} .checked=${this.model.showLinearTrend} @calciteSwitchChange=${this.setShowTrendLine}></calcite-switch></calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.trendLineStyle} value=selectTrendLine .hidden=${!this.model.showLinearTrend} .selected=${this.selectedElement?.type === I.SLS} @click=${this.changeElementStyle} ${c(this.selectTrendLineElement)}><calcite-icon slot=content-end icon=line-solid style=${C({ color: `rgba(${e},${t},${s},${o / 255})` })} class=${i(l.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list><div class=${i(l.r2)} .hidden=${!this.model.showLinearTrend}>${`${this._messages.r2}: ${Number.isNaN(this.r2) ? this.defaultR2Label : A(this.r2, k)}`}</div></div>`;
|
|
273
249
|
}
|
|
274
250
|
renderFixedSymbol() {
|
|
275
251
|
return r`<calcite-label class=${i(l.label)}>${this._messages.size}<calcite-input type=number name=fixed-symbol-size class=${i(l.numberInput)} min=1 max=100 step=1 .value=${y(this.model.fixedMarkerSymbol?.size)} @calciteInputInput=${this.symbolSizeChange}></calcite-input></calcite-label>`;
|
|
@@ -290,8 +266,8 @@ class K extends _ {
|
|
|
290
266
|
return r`<calcite-label class=${i(l.label)}>${this._messages.size}<calcite-segmented-control name=symbolSizeType layout=horizontal scale=s @calciteSegmentedControlChange=${this.changeSymbolSizeTypeToggle} ${c(this.symbolSizeModeElement)}><calcite-segmented-control-item .value=${d.Fixed} .checked=${d.Fixed === this.selectedSizeType} ${c(this.segmentedControlRef)}>${this._messages.fixed}</calcite-segmented-control-item><calcite-segmented-control-item .value=${d.Proportional} .checked=${d.Proportional === this.selectedSizeType} ${c(this.segmentedControlRef)}>${this._messages.proportional}</calcite-segmented-control-item></calcite-segmented-control></calcite-label>`;
|
|
291
267
|
}
|
|
292
268
|
renderSymbol() {
|
|
293
|
-
const [e, t, s, o] = [...this.model.fixedMarkerSymbol?.color ??
|
|
294
|
-
return r`<div class=${i(l.sectionContainer)}>${this.renderSymbolSizeType()}${this.selectedSizeType === d.Proportional ? this.renderProportionalSymbol() : this.renderFixedSymbol()}<calcite-label class=${i(l.label)}>${this._messages.color}${this.isTableLayer ? null : r`<calcite-segmented-control name=layerColor layout=horizontal scale=s @calciteSegmentedControlChange=${this.changeColorTypeToggle} ${c(this.colorModeElement)}><calcite-segmented-control-item .value=${this._messages.useLayerColors} .checked=${this.model.colorMatch} ${c(this.segmentedControlRef)}>${this._messages.useLayerColors}</calcite-segmented-control-item><calcite-segmented-control-item .value=${this._messages.singleColor} .checked=${!this.model.colorMatch} ${c(this.segmentedControlRef)}>${this._messages.singleColor}</calcite-segmented-control-item></calcite-segmented-control>`}</calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.color} value=selectColor .hidden=${this.model.colorMatch && !this.isTableLayer} .selected=${Array.isArray(this.selectedElement)} @click=${this.changeElementStyle} ${c(this.selectColorElement)}><calcite-icon slot=content-end icon=circle-f style=${
|
|
269
|
+
const [e, t, s, o] = [...this.model.fixedMarkerSymbol?.color ?? x(0)];
|
|
270
|
+
return r`<div class=${i(l.sectionContainer)}>${this.renderSymbolSizeType()}${this.selectedSizeType === d.Proportional ? this.renderProportionalSymbol() : this.renderFixedSymbol()}<calcite-label class=${i(l.label)}>${this._messages.color}${this.isTableLayer ? null : r`<calcite-segmented-control name=layerColor layout=horizontal scale=s @calciteSegmentedControlChange=${this.changeColorTypeToggle} ${c(this.colorModeElement)}><calcite-segmented-control-item .value=${this._messages.useLayerColors} .checked=${this.model.colorMatch} ${c(this.segmentedControlRef)}>${this._messages.useLayerColors}</calcite-segmented-control-item><calcite-segmented-control-item .value=${this._messages.singleColor} .checked=${!this.model.colorMatch} ${c(this.segmentedControlRef)}>${this._messages.singleColor}</calcite-segmented-control-item></calcite-segmented-control>`}</calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.color} value=selectColor .hidden=${this.model.colorMatch && !this.isTableLayer} .selected=${Array.isArray(this.selectedElement)} @click=${this.changeElementStyle} ${c(this.selectColorElement)}><calcite-icon slot=content-end icon=circle-f style=${C({ color: `rgba(${e},${t},${s},${o / 255})` })} class=${i(l.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list></div>`;
|
|
295
271
|
}
|
|
296
272
|
render() {
|
|
297
273
|
return r`<h3 class=${i(l.sectionLabel)}>${this._messages.variables}</h3><calcite-label class=${i(l.label)}>${this._messages.xAxisNumber}${this.renderXVariable()}</calcite-label><calcite-label class=${i(l.label)}>${this._messages.yAxisNumber}${this.renderYVariable()}</calcite-label><calcite-label class=${i(l.label)}><span class=${i(this.model.dataStore.aggregated ? l.dimText : "")}>${this._messages.additionalTooltipFields}</span>${this.renderTooltipField()}</calcite-label><h3 class=${i(l.sectionLabel)}>${this._messages.statistics}</h3>${this.renderStatistics()}<h3 class=${i(l.sectionLabel)}>${this._messages.symbol}</h3>${this.renderSymbol()}`;
|
|
@@ -2,41 +2,15 @@
|
|
|
2
2
|
import { c as g } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as f, html as o } from "lit";
|
|
4
4
|
import { keyed as c } from "lit/directives/keyed.js";
|
|
5
|
-
import "@arcgis/toolkit/type";
|
|
6
|
-
import "../../chunks/series-types.js";
|
|
7
|
-
import { i as p } from "../../chunks/rest-js-object-literals.js";
|
|
8
|
-
import "@arcgis/toolkit/intl";
|
|
9
|
-
import "lodash-es";
|
|
10
|
-
import "luxon";
|
|
11
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
12
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
13
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
14
|
-
import { c_ as v, bp as y } from "../../chunks/index.js";
|
|
15
|
-
import "@arcgis/core/Graphic.js";
|
|
16
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
17
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
18
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
19
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
20
|
-
import "@arcgis/core/intl.js";
|
|
21
|
-
import "@arcgis/core/request.js";
|
|
22
|
-
import "simple-statistics";
|
|
23
|
-
import "@arcgis/core/core/sql.js";
|
|
24
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
25
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
26
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
27
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
28
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
29
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
30
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
31
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
32
|
-
import "@arcgis/core/geometry/Point.js";
|
|
33
|
-
import "@arcgis/toolkit/dom";
|
|
34
|
-
import { e as u } from "../../chunks/popover-ui-utils.js";
|
|
35
5
|
import { S as n } from "../../chunks/interfaces.js";
|
|
36
|
-
import { a as
|
|
37
|
-
import { u
|
|
38
|
-
import { createRef as
|
|
39
|
-
import { LitElement as
|
|
6
|
+
import { a as v, l as y, c as p } from "../../chunks/chart-ui-utils2.js";
|
|
7
|
+
import { u } from "../../chunks/useT9n.js";
|
|
8
|
+
import { createRef as h, ref as d } from "lit/directives/ref.js";
|
|
9
|
+
import { LitElement as S, createEvent as l, safeClassMap as a } from "@arcgis/lumina";
|
|
10
|
+
import { i as m } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
+
import { e as $ } from "../../chunks/popover-ui-utils.js";
|
|
12
|
+
import { d as b } from "../../chunks/index3.js";
|
|
13
|
+
import { bj as P } from "../../chunks/index2.js";
|
|
40
14
|
const r = {
|
|
41
15
|
jsAppFlyout: "js-app-flyout",
|
|
42
16
|
scatterplotPopover: "scatter-plot-popover",
|
|
@@ -45,9 +19,9 @@ const r = {
|
|
|
45
19
|
pickListItemLabel: "pick-list-item-label",
|
|
46
20
|
pickListPanel: "pick-list-panel"
|
|
47
21
|
}, F = f`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{width:100%}.pick-list-panel{max-height:60vh}`;
|
|
48
|
-
class L extends
|
|
22
|
+
class L extends S {
|
|
49
23
|
constructor() {
|
|
50
|
-
super(...arguments), this.picklist =
|
|
24
|
+
super(...arguments), this.picklist = h(), this._messages = u(), this.popoverElement = h(), this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPopoverClose = l(), this.arcgisChartsConfigScatterplotFillColorChange = l(), this.arcgisChartsConfigScatterplotLineStyleChange = l(), this.arcgisChartsConfigScatterplotSizeVariableFieldChange = l(), this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange = l(), this.arcgisChartsConfigScatterplotXYFieldChange = l();
|
|
51
25
|
}
|
|
52
26
|
static {
|
|
53
27
|
this.properties = { messageOverrides: 0, headingTitle: 1, contentKind: 1, selectedContent: 1, referenceElement: 0, placement: 1, open: 5, layerFieldsInfo: 0 };
|
|
@@ -61,7 +35,7 @@ class L extends P {
|
|
|
61
35
|
updated() {
|
|
62
36
|
setTimeout(() => {
|
|
63
37
|
this.picklist.value?.setFocus();
|
|
64
|
-
},
|
|
38
|
+
}, v.PopoverTimer), $(this.popoverElement.value, this.open);
|
|
65
39
|
}
|
|
66
40
|
seriesPopoverClose() {
|
|
67
41
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
@@ -81,16 +55,16 @@ class L extends P {
|
|
|
81
55
|
}
|
|
82
56
|
render() {
|
|
83
57
|
const e = this.selectedContent, t = this.selectedContent;
|
|
84
|
-
return o`<div class=${a({ [r.jsAppFlyout]: !0 })}><calcite-popover class=${a(r.scatterplotPopover)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${
|
|
58
|
+
return o`<div class=${a({ [r.jsAppFlyout]: !0 })}><calcite-popover class=${a(r.scatterplotPopover)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${y(this.placement)} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${d(this.popoverElement)}>${Array.isArray(e) ? o`<arcgis-charts-config-color-style .header=${this._messages.fillColor} class=${a(r.fillColor)} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` : null}${t?.type === m.SLS ? o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` : null}${!Array.isArray(e) && t?.type !== m.SLS ? this.renderVariablePickList() : null}</calcite-popover></div>`;
|
|
85
59
|
}
|
|
86
60
|
renderVariablePickList() {
|
|
87
61
|
const e = this.layerFieldsInfo?.length ?? 0, t = [];
|
|
88
|
-
(this.contentKind === n.sizeVariable || this.contentKind === n.additionalTooltipFields) && t.push(c(" ", o`<calcite-list-item label=" " value=" " .selected=${
|
|
62
|
+
(this.contentKind === n.sizeVariable || this.contentKind === n.additionalTooltipFields) && t.push(c(" ", o`<calcite-list-item label=" " value=" " .selected=${p("", this.selectedContent)}></calcite-list-item>`));
|
|
89
63
|
for (let i = 0; i < e; i += 1) {
|
|
90
64
|
const s = this.layerFieldsInfo?.[i] ?? void 0;
|
|
91
|
-
if (s !== void 0 && (this.contentKind === n.additionalTooltipFields ||
|
|
92
|
-
const C =
|
|
93
|
-
t.push(c(s.name, o`<calcite-list-item .label=${C} .value=${s.name} .selected=${
|
|
65
|
+
if (s !== void 0 && (this.contentKind === n.additionalTooltipFields || P(s))) {
|
|
66
|
+
const C = b(this.layerFieldsInfo, s.name);
|
|
67
|
+
t.push(c(s.name, o`<calcite-list-item .label=${C} .value=${s.name} .selected=${p(s.name, this.selectedContent)}></calcite-list-item>`));
|
|
94
68
|
}
|
|
95
69
|
}
|
|
96
70
|
return o`<calcite-panel class=${a(r.pickListPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${a(r.header)}>${this.headingTitle ?? ""}</div><calcite-list label class=${a(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onFieldSelectionChange} ${d(this.picklist)}>${t}</calcite-list></calcite-panel>`;
|
|
@@ -1,48 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as o, html as i } from "lit";
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../chunks/
|
|
9
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
10
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
11
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
12
|
-
import { de as r } from "../../chunks/index.js";
|
|
13
|
-
import "@arcgis/core/Graphic.js";
|
|
14
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
16
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
17
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
18
|
-
import "@esri/arcgis-html-sanitizer";
|
|
19
|
-
import "@arcgis/core/intl.js";
|
|
20
|
-
import "@arcgis/core/request.js";
|
|
21
|
-
import "simple-statistics";
|
|
22
|
-
import "@arcgis/core/core/sql.js";
|
|
23
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
24
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
25
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
26
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
27
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
28
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
29
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
30
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
31
|
-
import "@arcgis/core/geometry/Point.js";
|
|
32
|
-
import "@arcgis/toolkit/dom";
|
|
33
|
-
import { e as p } from "../../chunks/popover-ui-utils.js";
|
|
34
|
-
import { u as n } from "../../chunks/useT9n.js";
|
|
35
|
-
import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
36
|
-
import { LitElement as d, createEvent as s, safeClassMap as l } from "@arcgis/lumina";
|
|
4
|
+
import { u as r } from "../../chunks/useT9n.js";
|
|
5
|
+
import { createRef as n, ref as h } from "lit/directives/ref.js";
|
|
6
|
+
import { LitElement as p, createEvent as s, safeClassMap as l } from "@arcgis/lumina";
|
|
7
|
+
import { e as m } from "../../chunks/popover-ui-utils.js";
|
|
8
|
+
import { d } from "../../chunks/type-guards.js";
|
|
37
9
|
import { M as e } from "../../chunks/common.js";
|
|
38
10
|
const a = {
|
|
39
11
|
selectChartComponent: "select-chart-component",
|
|
40
12
|
jsAppFlyout: "js-app-flyout",
|
|
41
13
|
panel: "panel"
|
|
42
14
|
}, g = o`.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)}.select-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}calcite-block{width:var(--arcgis-charts-config-calcite-block-default-width);height:var(--arcgis-charts-config-calcite-block-default-height);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.header{margin:0}.panel{max-height:60vh}`;
|
|
43
|
-
class C extends
|
|
15
|
+
class C extends p {
|
|
44
16
|
constructor() {
|
|
45
|
-
super(...arguments), this._messages =
|
|
17
|
+
super(...arguments), this._messages = r(), this.selectChartTypePopover = n(), this.open = !1, this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSelectChartTypeChange = s();
|
|
46
18
|
}
|
|
47
19
|
static {
|
|
48
20
|
this.properties = { messageOverrides: 0, headerTitle: 1, layerId: 1, layerType: 1, isRasterBarChartSupported: 5, open: 5, referenceElement: 0, popoverPlacement: 1, selectedModelType: 1 };
|
|
@@ -54,7 +26,7 @@ class C extends d {
|
|
|
54
26
|
await this.selectChartTypePopover.value?.reposition();
|
|
55
27
|
}
|
|
56
28
|
updated() {
|
|
57
|
-
|
|
29
|
+
m(this.selectChartTypePopover.value, this.open);
|
|
58
30
|
}
|
|
59
31
|
buildRasterChartTypesList() {
|
|
60
32
|
const t = this.isRasterBarChartSupported === !0;
|
|
@@ -62,7 +34,7 @@ class C extends d {
|
|
|
62
34
|
}
|
|
63
35
|
buildChartTypesList() {
|
|
64
36
|
let t;
|
|
65
|
-
return
|
|
37
|
+
return d(this.layerType) ? t = this.buildRasterChartTypesList() : t = i`<calcite-list label @click=${this.onChartTypeClick}><calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType === e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.lineChart} .value=${e.LineChart} .selected=${this.selectedModelType === e.LineChart}><calcite-icon slot=content-start icon=graph-time-series></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.pieChart} .value=${e.PieChart} .selected=${this.selectedModelType === e.PieChart}><calcite-icon slot=content-start icon=pie-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType === e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType === e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.boxPlot} .value=${e.BoxPlot} .selected=${this.selectedModelType === e.BoxPlot}><calcite-icon slot=content-start icon=box-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.calendarHeatChart} .value=${e.HeatChart} .selected=${this.selectedModelType === e.HeatChart}><calcite-icon slot=content-start icon=calendar-heat-chart></calcite-icon></calcite-list-item></calcite-list>`, t;
|
|
66
38
|
}
|
|
67
39
|
onChartTypeClick(t) {
|
|
68
40
|
t.target?.localName === "calcite-list-item" ? this.selectedModelType = t.target?.value : this.selectedModelType = t.target?.parentNode?.value, this.arcgisChartsConfigSelectChartTypeChange.emit();
|
|
@@ -81,7 +53,7 @@ class C extends d {
|
|
|
81
53
|
return i`<div class=${l({
|
|
82
54
|
[a.selectChartComponent]: !0,
|
|
83
55
|
[a.jsAppFlyout]: !0
|
|
84
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top", "bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${
|
|
56
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top", "bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${h(this.selectChartTypePopover)}><calcite-panel class=${l(a.panel)} .heading=${this.headerTitle ?? this._messages.chooseChartType} closable @calcitePanelClose=${this.popoverClose} .closed=${!this.open}>${this.buildChartTypesList()}</calcite-panel></calcite-popover></div>`;
|
|
85
57
|
}
|
|
86
58
|
}
|
|
87
59
|
c("arcgis-charts-config-select-chart-type-popover", C);
|
|
@@ -1,50 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as m } from "lit/directives/keyed.js";
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../chunks/
|
|
9
|
-
import "
|
|
10
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
11
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
12
|
-
import "../../chunks/index.js";
|
|
13
|
-
import "@arcgis/core/Graphic.js";
|
|
14
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
16
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
17
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
18
|
-
import "@esri/arcgis-html-sanitizer";
|
|
19
|
-
import "@arcgis/core/intl.js";
|
|
20
|
-
import "@arcgis/core/request.js";
|
|
21
|
-
import "simple-statistics";
|
|
22
|
-
import "@arcgis/core/core/sql.js";
|
|
23
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
24
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
25
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
26
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
27
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
28
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
29
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
30
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
31
|
-
import "@arcgis/core/geometry/Point.js";
|
|
32
|
-
import "@arcgis/toolkit/dom";
|
|
33
|
-
import { g as p } from "../../chunks/chart-ui-utils.js";
|
|
34
|
-
import { r as C } from "../../chunks/popover-ui-utils.js";
|
|
35
|
-
import { u as g } from "../../chunks/useT9n.js";
|
|
36
|
-
import { css as f, html as o } from "lit";
|
|
37
|
-
import { LitElement as v, createEvent as s, safeClassMap as c, renderElement as u } from "@arcgis/lumina";
|
|
38
|
-
import { repeat as w } from "lit/directives/repeat.js";
|
|
4
|
+
import { u as p } from "../../chunks/useT9n.js";
|
|
5
|
+
import { css as C, html as r } from "lit";
|
|
6
|
+
import { LitElement as g, createEvent as o, safeClassMap as c, renderElement as f } from "@arcgis/lumina";
|
|
7
|
+
import { repeat as v } from "lit/directives/repeat.js";
|
|
8
|
+
import { g as u } from "../../chunks/chart-ui-utils.js";
|
|
9
|
+
import { r as w } from "../../chunks/popover-ui-utils.js";
|
|
39
10
|
const n = {
|
|
40
11
|
addChartContainer: "add-chart-container",
|
|
41
12
|
viewChartComponent: "view-chart-component",
|
|
42
13
|
header: "header",
|
|
43
14
|
dropdownPopup: "dropdown-popup"
|
|
44
|
-
}, I =
|
|
45
|
-
class R extends
|
|
15
|
+
}, I = C`.view-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}.add-chart-container{display:flex;justify-content:center;padding:2rem 0;background-color:var(--calcite-color-background)}.header{margin-left:1rem}.dropdown-popup{position:relative}`;
|
|
16
|
+
class R extends g {
|
|
46
17
|
constructor() {
|
|
47
|
-
super(...arguments), this._messages =
|
|
18
|
+
super(...arguments), this._messages = p(), this.chartRenamePopover = null, this.popoverClose = () => {
|
|
48
19
|
const e = this.modelList?.find((t) => t.chartId === this.selectedChartId);
|
|
49
20
|
this.chartTitle = e?.titleText ?? "", this.selectedActionChartId = "", this.removeChartRenamePopover();
|
|
50
21
|
}, this.onChartRename = (e) => {
|
|
@@ -59,11 +30,11 @@ class R extends v {
|
|
|
59
30
|
if (e.detail !== null && e.detail !== void 0) {
|
|
60
31
|
const { newIndex: t, oldIndex: i } = e.detail;
|
|
61
32
|
if (this.modelList !== void 0 && this.modelList?.length > 0) {
|
|
62
|
-
const
|
|
63
|
-
|
|
33
|
+
const a = [...this.modelList], s = a?.[i], h = a?.[t];
|
|
34
|
+
s && h && (a.splice(i, 1), a.splice(t, 0, s)), this.chartsOrderReorderCounter += 1, this.arcgisChartsConfigModelListReorder.emit({ modelList: a });
|
|
64
35
|
}
|
|
65
36
|
}
|
|
66
|
-
}, this.isChartRenamePopoverOpen = !1, this.chartTitle = "", this.chartsOrderReorderCounter = 0, this.noGroup = !1, this.disableEditing = !1, this.arcgisChartsConfigModelListReorder =
|
|
37
|
+
}, this.isChartRenamePopoverOpen = !1, this.chartTitle = "", this.chartsOrderReorderCounter = 0, this.noGroup = !1, this.disableEditing = !1, this.arcgisChartsConfigModelListReorder = o(), this.arcgisChartsConfigViewChartAddChart = o(), this.arcgisChartsConfigViewChartDelete = o(), this.arcgisChartsConfigViewChartEdit = o(), this.arcgisChartsConfigViewChartSelect = o();
|
|
67
38
|
}
|
|
68
39
|
static {
|
|
69
40
|
this.properties = { isChartRenamePopoverOpen: 16, chartTitle: 16, selectedActionChartId: 16, chartsOrderReorderCounter: 16, messageOverrides: 0, selectedChartId: 1, layer: 0, modelList: 0, noGroup: 5, disableEditing: 5 };
|
|
@@ -92,11 +63,11 @@ class R extends v {
|
|
|
92
63
|
});
|
|
93
64
|
}
|
|
94
65
|
buildChartList() {
|
|
95
|
-
const e = this.modelList ?
|
|
96
|
-
const
|
|
97
|
-
return
|
|
66
|
+
const e = this.modelList ? v(this.modelList, (t) => t.chartId, (t, i) => {
|
|
67
|
+
const a = t.chartId, s = t.titleText, h = u(t.config);
|
|
68
|
+
return r`<calcite-list-item .label=${s ?? a ?? this._messages.chartTitle} .selected=${this.selectedChartId === (a?.toString() ?? i.toString())} .value=${a ?? i.toString()} @click=${this.onChartSelect}><calcite-icon slot=content-start .icon=${h}></calcite-icon>${this.disableEditing ? null : r`<calcite-dropdown slot=actions-end overlay-positioning=fixed placement=bottom-end .open=${this.selectedActionChartId === a} @calciteDropdownClose=${() => this.chartActionClosed(a ?? "")} @calciteDropdownOpen=${() => this.chartActionOpened(a ?? "")} class=${c(n.dropdownPopup)}><calcite-action scale=l .text=${this._messages.chartActions ?? ""} slot=trigger .active=${a === this.selectedActionChartId}><calcite-icon icon=ellipsis></calcite-icon></calcite-action><calcite-dropdown-group selection-mode=none><calcite-dropdown-item accesskey=edit @calciteDropdownItemSelect=${this.chartEditSelect}>${this._messages.edit}</calcite-dropdown-item><calcite-dropdown-item accesskey=rename @click=${(l) => l.stopPropagation()} @calciteDropdownItemSelect=${this.chartRenameSelect}>${this._messages.rename}</calcite-dropdown-item><calcite-dropdown-item accesskey=delete @calciteDropdownItemSelect=${this.chartDeleteSelect}>${this._messages.delete}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}</calcite-list-item>`;
|
|
98
69
|
}) : null;
|
|
99
|
-
return this.layer ?
|
|
70
|
+
return this.layer ? r`<div>${this.noGroup ? null : r`<p class=${c(n.header)}>${this.layer.title ?? this.layer.id.toString()}</p>`}${m(this.chartsOrderReorderCounter, r`<calcite-list label .dragEnabled=${!this.disableEditing} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${e}${this.disableEditing ? null : r`<div class=${c(n.addChartContainer)}><calcite-fab slot=fab appearance=outline-fill kind=neutral text-enabled .text=${this._messages.addChart} .label=${this._messages.addChart} @click=${this.onAddChartClick} scale=s></calcite-fab></div>`}</calcite-list>`)}</div>` : null;
|
|
100
71
|
}
|
|
101
72
|
onChartSelect(e) {
|
|
102
73
|
const t = e.currentTarget;
|
|
@@ -110,10 +81,10 @@ class R extends v {
|
|
|
110
81
|
}
|
|
111
82
|
chartRenameSelect(e) {
|
|
112
83
|
if (!this.disableEditing) {
|
|
113
|
-
const i = e.target.closest("calcite-list-item"),
|
|
84
|
+
const i = e.target.closest("calcite-list-item"), a = this.modelList?.find((s) => s.chartId === this.selectedActionChartId);
|
|
114
85
|
i !== null && (this.renameReferenceElement = i), this.arcgisChartsConfigViewChartSelect.emit({
|
|
115
86
|
chartId: this.selectedActionChartId
|
|
116
|
-
}), this.chartTitle =
|
|
87
|
+
}), this.chartTitle = a?.titleText ?? "", this.setupRenamePopover();
|
|
117
88
|
}
|
|
118
89
|
}
|
|
119
90
|
chartDeleteSelect() {
|
|
@@ -128,13 +99,13 @@ class R extends v {
|
|
|
128
99
|
this.selectedActionChartId = e;
|
|
129
100
|
}
|
|
130
101
|
setupRenamePopover() {
|
|
131
|
-
this.isChartRenamePopoverOpen = !0, this.chartRenamePopover !== null && (this.chartRenamePopover.name = this.chartTitle, this.chartRenamePopover.referenceElement = this.renameReferenceElement), this.chartRenamePopover =
|
|
102
|
+
this.isChartRenamePopoverOpen = !0, this.chartRenamePopover !== null && (this.chartRenamePopover.name = this.chartTitle, this.chartRenamePopover.referenceElement = this.renameReferenceElement), this.chartRenamePopover = f(r`<arcgis-charts-config-chart-rename-popover .name=${this.chartTitle} .referenceElement=${this.renameReferenceElement} .open=${this.isChartRenamePopoverOpen} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigChartRenamePopoverChange=${this.onChartRename}></arcgis-charts-config-chart-rename-popover>`), !document.body.contains(this.chartRenamePopover) && this.chartRenamePopover !== null && document.body.appendChild(this.chartRenamePopover);
|
|
132
103
|
}
|
|
133
104
|
removeChartRenamePopover() {
|
|
134
|
-
this.chartRenamePopover !== null && (this.isChartRenamePopoverOpen = !1, this.chartRenamePopover =
|
|
105
|
+
this.chartRenamePopover !== null && (this.isChartRenamePopoverOpen = !1, this.chartRenamePopover = w(this.chartRenamePopover));
|
|
135
106
|
}
|
|
136
107
|
render() {
|
|
137
|
-
return
|
|
108
|
+
return r`<div class=${c(n.viewChartComponent)}>${this.buildChartList()}</div>`;
|
|
138
109
|
}
|
|
139
110
|
}
|
|
140
111
|
d("arcgis-charts-config-view-charts", R);
|
|
@@ -1,38 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { H as
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "../../chunks/series-types.js";
|
|
11
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
12
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
13
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
14
|
-
import { dm as c, dn as h, dp as g, cM as f, u, dk as b, d_ as x } from "../../chunks/index.js";
|
|
15
|
-
import "@arcgis/core/Graphic.js";
|
|
16
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
17
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
18
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
19
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
20
|
-
import "@arcgis/core/intl.js";
|
|
21
|
-
import "@arcgis/core/request.js";
|
|
22
|
-
import "simple-statistics";
|
|
23
|
-
import "@arcgis/core/core/sql.js";
|
|
24
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
25
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
26
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
27
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
28
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
29
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
30
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
31
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
32
|
-
import "@arcgis/core/geometry/Point.js";
|
|
33
|
-
import "@arcgis/toolkit/dom";
|
|
34
|
-
const y = m`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:block;width:auto;height:auto;overflow:auto}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.info-modal-container{box-sizing:border-box;width:-webkit-fill-available;height:100%;display:grid;position:absolute;place-items:center;align-content:center;justify-content:center;padding:1rem;text-align:start}.info-modal-container h3.heading-true{display:flex;margin-bottom:auto;background:#0000000d;height:30px;padding:.5rem;justify-self:stretch;text-align:start;align-items:center}.info-modal-container h3.heading-false{background:#0000000d;margin-bottom:auto;text-align:start}.info-modal-container p{justify-self:stretch;text-align:start}.chart-loader-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1001}`;
|
|
35
|
-
class C extends p {
|
|
3
|
+
import { css as c, html as o } from "lit";
|
|
4
|
+
import { LitElement as h, safeClassMap as r, safeStyleMap as a } from "@arcgis/lumina";
|
|
5
|
+
import { H as i } from "../../chunks/resources.js";
|
|
6
|
+
import { as as g, at as m, au as p, e as f, ar as u } from "../../chunks/index.js";
|
|
7
|
+
import { p as b, B as x } from "../../chunks/index3.js";
|
|
8
|
+
const y = 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{display:block;width:auto;height:auto;overflow:auto}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.info-modal-container{box-sizing:border-box;width:-webkit-fill-available;height:100%;display:grid;position:absolute;place-items:center;align-content:center;justify-content:center;padding:1rem;text-align:start}.info-modal-container h3.heading-true{display:flex;margin-bottom:auto;background:#0000000d;height:30px;padding:.5rem;justify-self:stretch;text-align:start;align-items:center}.info-modal-container h3.heading-false{background:#0000000d;margin-bottom:auto;text-align:start}.info-modal-container p{justify-self:stretch;text-align:start}.chart-loader-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1001}`;
|
|
9
|
+
class C extends h {
|
|
36
10
|
constructor() {
|
|
37
11
|
super(...arguments), this.message = "", this.heading = "", this.showLoader = !1, this.enableAutoTheming = !1;
|
|
38
12
|
}
|
|
@@ -43,17 +17,17 @@ class C extends p {
|
|
|
43
17
|
this.styles = y;
|
|
44
18
|
}
|
|
45
19
|
render() {
|
|
46
|
-
let
|
|
47
|
-
const n = this.calciteThemeApplied === "dark" && this.enableAutoTheming,
|
|
48
|
-
r:
|
|
49
|
-
g:
|
|
50
|
-
b:
|
|
51
|
-
a:
|
|
52
|
-
}) ?
|
|
53
|
-
return this.showLoader ?
|
|
54
|
-
background: `rgb(${
|
|
20
|
+
let t = null;
|
|
21
|
+
const n = this.calciteThemeApplied === "dark" && this.enableAutoTheming, e = this.loaderColors?.curtainColor ?? (n ? g : m), l = this.loaderColors?.spinnerColor ?? p, s = b({
|
|
22
|
+
r: e[0],
|
|
23
|
+
g: e[1],
|
|
24
|
+
b: e[2],
|
|
25
|
+
a: e[3] / 255
|
|
26
|
+
}) ? f : u;
|
|
27
|
+
return this.showLoader ? t = o`<div class=${r(i.ChartLoaderOverlay)} style=${a({
|
|
28
|
+
background: `rgb(${e.toString()})`,
|
|
55
29
|
"--calcite-loader-progress-color": `rgb(${l.toString()})`
|
|
56
|
-
})}><calcite-loader scale=s label=Loading></calcite-loader></div>` : this.message !== void 0 ?
|
|
30
|
+
})}><calcite-loader scale=s label=Loading></calcite-loader></div>` : this.message !== void 0 ? t = o`<div class=${r(i.InfoModalContainer)} style=${a({ background: `rgb(${e.toString()})` })}><h3 class=${r(this.heading !== "" ? "heading-true" : "heading-false")} style=${a({ color: `rgb(${s.toString()})` })}>${this.heading}</h3><p style=${a({ color: `rgb(${s.toString()})` })} .innerHTML=${x(this.message) ?? ""}></p></div>` : t = o`<div class=${`${i.InfoModalContainer} ${i.Hide}`}></div>`, t;
|
|
57
31
|
}
|
|
58
32
|
}
|
|
59
33
|
d("arcgis-charts-info-modal", C);
|