@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,41 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { m as n, f as
|
|
4
|
-
import { i as
|
|
5
|
-
import "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { u } from "../../chunks/useT9n.js";
|
|
10
|
-
import { css as C, html as a } from "lit";
|
|
2
|
+
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
+
import { m as n, f as r, k as c } from "../../chunks/type-guards2.js";
|
|
4
|
+
import { i as h, c as m, d as g } from "../../chunks/generate-x-axis-title.js";
|
|
5
|
+
import { isEmpty as x } from "lodash-es";
|
|
6
|
+
import { m as u, U as b } from "../../chunks/chart-ui-utils2.js";
|
|
7
|
+
import { u as p } from "../../chunks/useT9n.js";
|
|
8
|
+
import { css as C, html as l } from "lit";
|
|
11
9
|
import { createRef as f, ref as $ } from "lit/directives/ref.js";
|
|
12
10
|
import { LitElement as v, safeClassMap as i } from "@arcgis/lumina";
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
16
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
17
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
18
|
-
import { c$ as y } from "../../chunks/index.js";
|
|
19
|
-
import "@arcgis/core/Graphic.js";
|
|
20
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
21
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
22
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
23
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
24
|
-
import "@esri/arcgis-html-sanitizer";
|
|
25
|
-
import "@arcgis/core/intl.js";
|
|
26
|
-
import "@arcgis/core/request.js";
|
|
27
|
-
import "simple-statistics";
|
|
28
|
-
import "@arcgis/core/core/sql.js";
|
|
29
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
30
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
31
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
32
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
33
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
34
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
35
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
36
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
37
|
-
import "@arcgis/core/geometry/Point.js";
|
|
38
|
-
import "@arcgis/toolkit/dom";
|
|
11
|
+
import { k as a } from "../../chunks/chart-object-literals.js";
|
|
12
|
+
import { i as y } from "../../chunks/index5.js";
|
|
39
13
|
const s = {
|
|
40
14
|
textInput: "text-input",
|
|
41
15
|
label: "label",
|
|
@@ -44,20 +18,20 @@ const s = {
|
|
|
44
18
|
}, A = 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:flex;flex-direction:column;margin-top:var(--arcgis-charts-top-section-margin)}.text-input,.select{margin-bottom:var(--arcgis-charts-inter-section-margin)}.label{display:flex;justify-content:space-between}.label-container{display:flex;flex-direction:column;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}`;
|
|
45
19
|
class I extends v {
|
|
46
20
|
constructor() {
|
|
47
|
-
super(...arguments), this._messages =
|
|
21
|
+
super(...arguments), this._messages = p(), this.characterLimitInputElement = f(), this.onModelConfigChange = () => {
|
|
48
22
|
this.requestUpdate();
|
|
49
23
|
}, this.resetChartTitleToBeDynamic = () => {
|
|
50
24
|
const e = this.model.generateChartTitle();
|
|
51
25
|
this.model.titleText = e, this.disableResetButtonForChartTitle = !1;
|
|
52
26
|
}, this.resetXAxisTitleToBeDynamic = () => {
|
|
53
|
-
if (
|
|
27
|
+
if (h(this.model) && m(this.model)) {
|
|
54
28
|
const e = this.model.generateXAxisTitle();
|
|
55
29
|
this.model.xAxisTitleText = e;
|
|
56
30
|
}
|
|
57
31
|
this.disableResetButtonForXAxisTitle = !1;
|
|
58
32
|
}, this.resetYAxisTitleToBeDynamic = () => {
|
|
59
33
|
if (n(this.model)) {
|
|
60
|
-
const e =
|
|
34
|
+
const e = r(this.model) ? this.model.getDefaultXAxisTitleText() : this.model.generateYAxisTitle();
|
|
61
35
|
this.model.setAxisTitleText(e, 1);
|
|
62
36
|
}
|
|
63
37
|
this.disableResetButtonForYAxisTitle = !1;
|
|
@@ -81,13 +55,13 @@ class I extends v {
|
|
|
81
55
|
handleResetButtons() {
|
|
82
56
|
this.isPartialConfig = y(this.model.config);
|
|
83
57
|
const e = this.model.generateChartTitle(), t = this.model.titleText;
|
|
84
|
-
if (this.disableResetButtonForChartTitle = this.isPartialConfig || e === t,
|
|
85
|
-
const o = this.model.generateXAxisTitle(),
|
|
86
|
-
this.disableResetButtonForXAxisTitle = this.isPartialConfig || o ===
|
|
58
|
+
if (this.disableResetButtonForChartTitle = this.isPartialConfig || e === t, h(this.model) && m(this.model)) {
|
|
59
|
+
const o = this.model.generateXAxisTitle(), d = this.model.xAxisTitleText;
|
|
60
|
+
this.disableResetButtonForXAxisTitle = this.isPartialConfig || o === d;
|
|
87
61
|
}
|
|
88
62
|
if (n(this.model)) {
|
|
89
|
-
const o =
|
|
90
|
-
this.disableResetButtonForYAxisTitle = this.isPartialConfig || o ===
|
|
63
|
+
const o = r(this.model) ? this.model.getDefaultXAxisTitleText() : this.model.generateYAxisTitle(), d = this.model.getAxisTitleText(1);
|
|
64
|
+
this.disableResetButtonForYAxisTitle = this.isPartialConfig || o === d;
|
|
91
65
|
}
|
|
92
66
|
}
|
|
93
67
|
modelChange(e, t) {
|
|
@@ -95,9 +69,9 @@ class I extends v {
|
|
|
95
69
|
}
|
|
96
70
|
setChartTitle(e) {
|
|
97
71
|
const { value: t } = e.target;
|
|
98
|
-
this.isChartTitleInvalid =
|
|
72
|
+
this.isChartTitleInvalid = x(t.trim()), this.characterLimitInputElement.value && u({
|
|
99
73
|
inputElement: this.characterLimitInputElement.value,
|
|
100
|
-
status: this.isChartTitleInvalid ?
|
|
74
|
+
status: this.isChartTitleInvalid ? b.INVALID : b.IDLE
|
|
101
75
|
}), this.isChartTitleInvalid || (this.model.titleText = t);
|
|
102
76
|
}
|
|
103
77
|
setChartLegendTitle(e) {
|
|
@@ -106,7 +80,7 @@ class I extends v {
|
|
|
106
80
|
}
|
|
107
81
|
setChartXAxisTitle(e) {
|
|
108
82
|
const { value: t } = e.target;
|
|
109
|
-
t !== void 0 &&
|
|
83
|
+
t !== void 0 && h(this.model) && (this.model.xAxisTitleText = t);
|
|
110
84
|
}
|
|
111
85
|
setChartYAxisTitle(e) {
|
|
112
86
|
const { value: t } = e.target;
|
|
@@ -142,20 +116,20 @@ class I extends v {
|
|
|
142
116
|
}
|
|
143
117
|
renderLegendPositions() {
|
|
144
118
|
return c(this.model) ? [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
119
|
+
l`<calcite-combobox-item .value=${a.Right} .heading=${this._messages.legendRightPosition ?? ""} .selected=${this.model.legendPosition === a.Right} icon=right-edge></calcite-combobox-item>`,
|
|
120
|
+
l`<calcite-combobox-item .value=${a.Left} .heading=${this._messages.legendLeftPosition ?? ""} .selected=${this.model.legendPosition === a.Left} icon=left-edge></calcite-combobox-item>`,
|
|
121
|
+
l`<calcite-combobox-item .value=${a.Top} .heading=${this._messages.legendTopPosition ?? ""} .selected=${this.model.legendPosition === a.Top} icon=upload-to></calcite-combobox-item>`,
|
|
122
|
+
l`<calcite-combobox-item .value=${a.Bottom} .heading=${this._messages.legendBottomPosition ?? ""} .selected=${this.model.legendPosition === a.Bottom} icon=download-to></calcite-combobox-item>`
|
|
149
123
|
] : [];
|
|
150
124
|
}
|
|
151
125
|
render() {
|
|
152
|
-
return
|
|
153
|
-
|
|
154
|
-
n(this.model) ?
|
|
155
|
-
] : null}${c(this.model) ?
|
|
126
|
+
return l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.chartTitle}<div><calcite-button @click=${this.resetChartTitleToBeDynamic} .disabled=${this.disableResetButtonForChartTitle} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button><calcite-switch .checked=${this.model.chartTitleVisibility} @calciteSwitchChange=${this.enableChartTitle}></calcite-switch></div></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.chartTitleVisibility} .value=${this.isPartialConfig ? "" : this.model.titleText} @calciteInputInput=${this.setChartTitle} ${$(this.characterLimitInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.emptyChartTitle} .isInvalid=${this.isChartTitleInvalid}></arcgis-charts-config-invalid-input-message></div>${h(this.model) && g(this.model) ? [
|
|
127
|
+
l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.xAxisTitle}<div><calcite-button @click=${this.resetXAxisTitleToBeDynamic} .disabled=${this.disableResetButtonForXAxisTitle} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button><calcite-switch .checked=${this.model.xAxisTitleVisibility} @calciteSwitchChange=${this.enableXAxisTitle}></calcite-switch></div></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.xAxisTitleVisibility} .value=${this.isPartialConfig ? "" : this.model.xAxisTitleText} @calciteInputInput=${this.setChartXAxisTitle}></calcite-input></div>`,
|
|
128
|
+
n(this.model) ? l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.yAxisTitle}<div><calcite-button @click=${this.resetYAxisTitleToBeDynamic} .disabled=${this.disableResetButtonForYAxisTitle} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button><calcite-switch .checked=${this.model.getAxisTitleVisibility(1)} @calciteSwitchChange=${this.enableYAxisTitle}></calcite-switch></div></calcite-label><calcite-input class=${i(s.textInput)} tabindex=1 type=text .disabled=${!this.model.getAxisTitleVisibility(1)} .value=${this.model.getAxisTitleText(1)} @calciteInputInput=${this.setChartYAxisTitle}></calcite-input></div>` : null
|
|
129
|
+
] : null}${c(this.model) ? l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.legendTitle}<calcite-switch .checked=${this.model.legendTitleVisibility} @calciteSwitchChange=${this.enableLegendTitle}></calcite-switch></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.legendTitleVisibility} .value=${this.model.legendTitleText} @calciteInputInput=${this.setChartLegendTitle}></calcite-input></div>` : null}<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.legendPosition}</calcite-label><calcite-combobox clear-disabled label class=${i(s.select)} @calciteComboboxChange=${this.legendPositionChange} selection-mode=single>${this.renderLegendPositions()}</calcite-combobox></div><div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.description}<calcite-switch .checked=${this.model.descriptionVisibility} @calciteSwitchChange=${this.enableDescription}></calcite-switch></calcite-label><calcite-text-area .disabled=${!this.model.descriptionVisibility} .value=${this.model.descriptionText} @calciteTextAreaInput=${this.setChartDescription} resize=vertical></calcite-text-area></div>`;
|
|
156
130
|
}
|
|
157
131
|
}
|
|
158
|
-
|
|
132
|
+
T("arcgis-charts-config-general", I);
|
|
159
133
|
export {
|
|
160
134
|
I as ArcgisChartsConfigGeneral
|
|
161
135
|
};
|
|
@@ -1,59 +1,35 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as R } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as X } from "lit/directives/keyed.js";
|
|
4
|
-
import "@arcgis/toolkit/intl";
|
|
5
4
|
import { cloneDeep as E } from "lodash-es";
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
import "@arcgis/
|
|
13
|
-
import {
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
17
|
-
import "
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
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 { p, o as O } from "../../chunks/index4.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 { r as V } from "../../chunks/popover-ui-utils.js";
|
|
35
|
-
import { m as G, d as U, g as W, h as L, U as S } from "../../chunks/chart-ui-utils2.js";
|
|
36
|
-
import { d as M } from "../../chunks/default.js";
|
|
37
|
-
import { g as Y } from "../../chunks/resource.js";
|
|
38
|
-
import { u as j } from "../../chunks/useT9n.js";
|
|
39
|
-
import { css as H, html as c } from "lit";
|
|
40
|
-
import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
41
|
-
import { LitElement as J, createEvent as K, renderElement as A, safeStyleMap as _, safeClassMap as o } from "@arcgis/lumina";
|
|
5
|
+
import { m as G, d as N, g as Z, h as k, U as S } from "../../chunks/chart-ui-utils2.js";
|
|
6
|
+
import { d as F } from "../../chunks/default.js";
|
|
7
|
+
import { g as q } from "../../chunks/resource.js";
|
|
8
|
+
import { u as z } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as O, html as d } from "lit";
|
|
10
|
+
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as V, createEvent as U, renderElement as M, safeStyleMap as L, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
+
import { m as W, p as Y, q as j } from "../../chunks/type-guards2.js";
|
|
13
|
+
import { M as p, i as H, a1 as A, aI as _ } from "../../chunks/index2.js";
|
|
14
|
+
import { Z as J } from "../../chunks/index.js";
|
|
15
|
+
import { p as m, o as K } from "../../chunks/index6.js";
|
|
16
|
+
import { r as Q } from "../../chunks/popover-ui-utils.js";
|
|
17
|
+
import { i as g, g as ee } from "../../chunks/rest-js-object-literals.js";
|
|
18
|
+
import { u as te } from "../../chunks/chart-object-literals.js";
|
|
42
19
|
import { G as b } from "../../chunks/common.js";
|
|
43
|
-
import { m as Q, p as ee, q as te } from "../../chunks/type-guards.js";
|
|
44
20
|
const n = {
|
|
45
21
|
row: "row",
|
|
46
22
|
column: "column",
|
|
47
23
|
colorPicker: "color-picker"
|
|
48
|
-
}, ie =
|
|
49
|
-
class se extends
|
|
24
|
+
}, ie = 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)}:host{display:flex;flex-direction:column}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`;
|
|
25
|
+
class se extends V {
|
|
50
26
|
constructor() {
|
|
51
|
-
super(...arguments), this._messages =
|
|
27
|
+
super(...arguments), this._messages = z(), this.startCalciteInput = h(), this.endCalciteInput = h(), this.startDateCalciteInput = h(), this.endDateCalciteInput = h(), this.startTimeCalciteInput = h(), this.endTimeCalciteInput = h(), this.colorElement = h(), this.colorChange = (e) => {
|
|
52
28
|
const t = e.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
53
|
-
if (
|
|
54
|
-
const l = E(
|
|
29
|
+
if (p(i, a) === g.SLS) {
|
|
30
|
+
const l = E(F.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
55
31
|
...l,
|
|
56
|
-
...
|
|
32
|
+
...m(s) ? s : {},
|
|
57
33
|
color: t
|
|
58
34
|
};
|
|
59
35
|
this.lineStyleChange({ detail: r });
|
|
@@ -61,17 +37,17 @@ class se extends J {
|
|
|
61
37
|
this.setColor(t);
|
|
62
38
|
}, this.symbolChange = (e) => {
|
|
63
39
|
const t = e?.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
64
|
-
if (
|
|
65
|
-
const l = E(
|
|
40
|
+
if (p(i, a) === g.SLS) {
|
|
41
|
+
const l = E(F.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
66
42
|
...l,
|
|
67
|
-
...
|
|
68
|
-
...
|
|
43
|
+
...m(s) ? s : {},
|
|
44
|
+
...m(t) ? t : {}
|
|
69
45
|
};
|
|
70
46
|
this.lineStyleChange({ detail: r });
|
|
71
47
|
} else t?.color !== void 0 && this.setColor(t.color);
|
|
72
48
|
}, this.onModelConfigChange = () => {
|
|
73
49
|
this.requestUpdate();
|
|
74
|
-
}, this.guidePopover = null, this.latestGuidePosition = 0, this.arcgisChartsConfigGuideChange =
|
|
50
|
+
}, this.guidePopover = null, this.latestGuidePosition = 0, this.arcgisChartsConfigGuideChange = U();
|
|
75
51
|
}
|
|
76
52
|
static {
|
|
77
53
|
this.properties = { guidePopover: 16, messageOverrides: 0, model: 0, timeZone: 1, calculatedMinMaxBounds: 0, index: 9, orientation: 1, latestGuidePosition: 9 };
|
|
@@ -80,7 +56,7 @@ class se extends J {
|
|
|
80
56
|
this.styles = ie;
|
|
81
57
|
}
|
|
82
58
|
get isXAxisDateField() {
|
|
83
|
-
return this.orientation === b.X &&
|
|
59
|
+
return this.orientation === b.X && W(this.model) && this.model.getAxisValueFormat(0)?.type === te.DateAxisFormat;
|
|
84
60
|
}
|
|
85
61
|
load() {
|
|
86
62
|
this.modelChange(this.model);
|
|
@@ -126,15 +102,15 @@ class se extends J {
|
|
|
126
102
|
})), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
127
103
|
}
|
|
128
104
|
setGuideDateTimeRange() {
|
|
129
|
-
const e = this.calculatedMinMaxBounds?.find((
|
|
105
|
+
const e = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s), B = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x, w = this.endTimeCalciteInput.value?.value ?? "", P = w === "" ? B : w;
|
|
130
106
|
let $ = !1;
|
|
131
107
|
if (!Array.isArray(C) && C !== void 0 && I !== void 0) {
|
|
132
|
-
const
|
|
133
|
-
this.model.setGuideStart(
|
|
108
|
+
const c = `${C}T${I}`;
|
|
109
|
+
this.model.setGuideStart(c, this.index, this.orientation), $ = !0;
|
|
134
110
|
}
|
|
135
111
|
if (!Array.isArray(y) && y !== void 0 && P !== void 0) {
|
|
136
|
-
const
|
|
137
|
-
this.model.setGuideEnd(
|
|
112
|
+
const c = x === "" ? void 0 : `${y}T${P}`;
|
|
113
|
+
this.model.setGuideEnd(c, this.index, this.orientation), $ = !0;
|
|
138
114
|
}
|
|
139
115
|
$ && (this.symbolChange(), this.arcgisChartsConfigGuideChange.emit({
|
|
140
116
|
index: this.index,
|
|
@@ -181,17 +157,17 @@ class se extends J {
|
|
|
181
157
|
e.stopImmediatePropagation();
|
|
182
158
|
const t = this.model.getGuideStyle(this.index, this.orientation), i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
183
159
|
let l;
|
|
184
|
-
|
|
160
|
+
p(i, a) === g.SLS ? l = m(t) ? t : void 0 : l = t?.color;
|
|
185
161
|
const s = this.colorElement.value;
|
|
186
|
-
Array.isArray(t?.color) ? (this.guidePopover =
|
|
162
|
+
Array.isArray(t?.color) ? (this.guidePopover = M(d`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`), this.guidePopover !== void 0 && !document.body.contains(this.guidePopover) && document.body.appendChild(this.guidePopover)) : this.removeGuidePopover();
|
|
187
163
|
}
|
|
188
164
|
removeGuidePopover() {
|
|
189
|
-
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover =
|
|
165
|
+
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover = Q(this.guidePopover));
|
|
190
166
|
}
|
|
191
167
|
setColor(e) {
|
|
192
|
-
const t =
|
|
193
|
-
...
|
|
194
|
-
type:
|
|
168
|
+
const t = J({ opacity: 0 }), i = this.model.getGuideStyle(this.index, this.orientation), a = {
|
|
169
|
+
...K(i) ? i : {},
|
|
170
|
+
type: g.SFS,
|
|
195
171
|
color: e,
|
|
196
172
|
outline: t
|
|
197
173
|
};
|
|
@@ -221,32 +197,32 @@ class se extends J {
|
|
|
221
197
|
i = this._messages.deleteGuide ?? "";
|
|
222
198
|
break;
|
|
223
199
|
}
|
|
224
|
-
this.tooltip =
|
|
200
|
+
this.tooltip = M(d`<calcite-tooltip style=${L({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
225
201
|
}
|
|
226
202
|
toggleGuide() {
|
|
227
203
|
const e = this.model.getGuideVisibility(this.index, this.orientation);
|
|
228
204
|
this.model.setGuideVisibility(!e, this.index, this.orientation);
|
|
229
205
|
}
|
|
230
206
|
destroyTooltip() {
|
|
231
|
-
|
|
207
|
+
N(this.tooltip);
|
|
232
208
|
}
|
|
233
209
|
deleteGuide() {
|
|
234
|
-
this.destroyTooltip(), this.orientation === b.X &&
|
|
210
|
+
this.destroyTooltip(), this.orientation === b.X && Y(this.model) ? this.model.deleteXAxisGuide(this.index) : this.orientation === b.Y && j(this.model) && this.model.deleteYAxisGuide(this.index), this.arcgisChartsConfigGuideChange.emit({
|
|
235
211
|
index: this.index,
|
|
236
212
|
orientation: this.orientation,
|
|
237
213
|
isDelete: !0
|
|
238
214
|
});
|
|
239
215
|
}
|
|
240
216
|
renderColorElement() {
|
|
241
|
-
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v =
|
|
242
|
-
return
|
|
217
|
+
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ? Z(e.style) : ee.Solid, f = p(s, r) === g.SLS ? `line-${v}` : "square-f";
|
|
218
|
+
return d`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${L({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
243
219
|
}
|
|
244
220
|
render() {
|
|
245
221
|
const e = this.model.getGuideStart(this.index, this.orientation), t = this.model.getGuideEnd(this.index, this.orientation), i = this.model.getGuideName(this.index, this.orientation), a = this.model.getGuideLabelText(this.index, this.orientation), l = this.model.getGuideAbove(this.index, this.orientation), s = this.model.getGuideVisibility(this.index, this.orientation), r = this.isXAxisDateField;
|
|
246
|
-
return
|
|
222
|
+
return d`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition === q(this.index, this.orientation, this.model)} collapsible .messageOverrides=${{
|
|
247
223
|
expand: this._messages.expand,
|
|
248
224
|
collapse: this._messages.collapse
|
|
249
|
-
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${r ?
|
|
225
|
+
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${r ? d`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : d`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${k} number-button-type=none .value=${e?.toString()} ${u(this.startCalciteInput)}></calcite-input>`}</calcite-label><calcite-label class=${o(n.column)}>${this._messages.end}${r ? d`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.endDateCalciteInput)}></calcite-input-date-picker>` : d`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${k} number-button-type=none .value=${t?.toString()} ${u(this.endCalciteInput)}></calcite-input>`}</calcite-label></div>${r ? X("time-picker-row", d`<div class=${o(n.row)}>${e != null ? d`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}${t != null ? d`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}</div>`) : null}<div class=${o(n.row)}><div class=${o(n.column)}>${this.renderColorElement()}</div></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`;
|
|
250
226
|
}
|
|
251
227
|
}
|
|
252
228
|
R("arcgis-charts-config-guide", se);
|
|
@@ -1,47 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as r } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as t } from "lit";
|
|
4
|
-
import "
|
|
5
|
-
import "../../chunks/
|
|
6
|
-
import {
|
|
7
|
-
import "@arcgis/
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
11
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
12
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
13
|
-
import "../../chunks/index.js";
|
|
14
|
-
import "@arcgis/core/Graphic.js";
|
|
15
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
16
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
17
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
18
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
19
|
-
import "@esri/arcgis-html-sanitizer";
|
|
20
|
-
import "@arcgis/core/intl.js";
|
|
21
|
-
import "@arcgis/core/request.js";
|
|
22
|
-
import "simple-statistics";
|
|
23
|
-
import "@arcgis/core/core/sql.js";
|
|
24
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
25
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
26
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
27
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
28
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
29
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
30
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
31
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
32
|
-
import "@arcgis/core/geometry/Point.js";
|
|
33
|
-
import "@arcgis/toolkit/dom";
|
|
34
|
-
import { e as l } from "../../chunks/popover-ui-utils.js";
|
|
35
|
-
import { g as r } from "../../chunks/default.js";
|
|
36
|
-
import { u as a } from "../../chunks/useT9n.js";
|
|
37
|
-
import { createRef as n, ref as m } from "lit/directives/ref.js";
|
|
38
|
-
import { LitElement as c, createEvent as i, safeClassMap as h } from "@arcgis/lumina";
|
|
4
|
+
import { g as i } from "../../chunks/default.js";
|
|
5
|
+
import { u as l } from "../../chunks/useT9n.js";
|
|
6
|
+
import { createRef as a, ref as n } from "lit/directives/ref.js";
|
|
7
|
+
import { LitElement as p, createEvent as s, safeClassMap as c } from "@arcgis/lumina";
|
|
8
|
+
import { i as h } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
+
import { e as m } from "../../chunks/popover-ui-utils.js";
|
|
39
10
|
const g = {
|
|
40
11
|
jsAppFlyout: "js-app-flyout"
|
|
41
12
|
};
|
|
42
|
-
class C extends
|
|
13
|
+
class C extends p {
|
|
43
14
|
constructor() {
|
|
44
|
-
super(...arguments), this._messages =
|
|
15
|
+
super(...arguments), this._messages = l(), this.popoverElement = a(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigGuidePopoverColorChange = s(), this.arcgisChartsConfigGuidePopoverSymbolChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
45
16
|
}
|
|
46
17
|
static {
|
|
47
18
|
this.properties = { messageOverrides: 0, selectedElement: 0, referenceElement: 0, placement: 1, open: 5 };
|
|
@@ -50,25 +21,25 @@ class C extends c {
|
|
|
50
21
|
await this.popoverElement.value?.reposition();
|
|
51
22
|
}
|
|
52
23
|
updated() {
|
|
53
|
-
|
|
24
|
+
m(this.popoverElement.value, this.open);
|
|
54
25
|
}
|
|
55
26
|
guidePopoverClose() {
|
|
56
27
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
57
28
|
}
|
|
58
29
|
updateColorProperties(o) {
|
|
59
30
|
const e = o.detail;
|
|
60
|
-
e !== void 0 && (e[3] =
|
|
31
|
+
e !== void 0 && (e[3] = i), this.selectedElement = e, this.arcgisChartsConfigGuidePopoverColorChange.emit(this.selectedElement);
|
|
61
32
|
}
|
|
62
33
|
updateSymbolProperties(o) {
|
|
63
34
|
const { lineStyle: e } = o.target;
|
|
64
|
-
e?.color !== void 0 && (e.color[3] =
|
|
35
|
+
e?.color !== void 0 && (e.color[3] = i), this.selectedElement = e, this.arcgisChartsConfigGuidePopoverSymbolChange.emit(o.detail);
|
|
65
36
|
}
|
|
66
37
|
render() {
|
|
67
38
|
const o = this.selectedElement, e = this.selectedElement;
|
|
68
|
-
return t`<div class=${
|
|
39
|
+
return t`<div class=${c(g.jsAppFlyout)}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} offset-distance=20 offset-skidding=60 label pointer-disabled @calcitePopoverClose=${this.guidePopoverClose} auto-close ${n(this.popoverElement)}>${Array.isArray(o) && t`<arcgis-charts-config-color-style .header=${this._messages.fillStyle} enable-close .open=${this.open} .selectedColor=${o} @arcgisChartsConfigColorStyleClose=${this.guidePopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` || ""}${e?.type === h.SLS && t`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${e} @arcgisChartsConfigLineStyleClose=${this.guidePopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` || ""}</calcite-popover></div>`;
|
|
69
40
|
}
|
|
70
41
|
}
|
|
71
|
-
|
|
42
|
+
r("arcgis-charts-config-guide-popover", C);
|
|
72
43
|
export {
|
|
73
44
|
C as ArcgisChartsConfigGuidePopover
|
|
74
45
|
};
|
|
@@ -7,10 +7,8 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as A, html as a } from "lit";
|
|
8
8
|
import { createRef as x, ref as C } from "lit/directives/ref.js";
|
|
9
9
|
import { LitElement as b, renderElement as v, safeClassMap as c } from "@arcgis/lumina";
|
|
10
|
+
import { p as h, q as u } from "../../chunks/type-guards2.js";
|
|
10
11
|
import { G as s } from "../../chunks/common.js";
|
|
11
|
-
import { p as h, q as u } from "../../chunks/type-guards.js";
|
|
12
|
-
import "@arcgis/toolkit/type";
|
|
13
|
-
import "../../chunks/series-types.js";
|
|
14
12
|
const P = A`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.add-guide{display:flex;justify-content:center;padding:.5rem}.add-guide-btn{width:100%}.no-guides{border-radius:2rem}.no-messages{text-align:center}.guide-icon{padding-left:.5rem;padding-top:.5rem;width:1.5rem;height:1.5rem}`;
|
|
15
13
|
class $ extends b {
|
|
16
14
|
constructor() {
|
|
@@ -1,42 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as s } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as e } from "lit";
|
|
4
|
-
import { LitElement as
|
|
4
|
+
import { LitElement as t, createEvent as i } from "@arcgis/lumina";
|
|
5
5
|
import { u as o } from "../../chunks/useT9n.js";
|
|
6
|
-
import { createRef as
|
|
7
|
-
import "
|
|
8
|
-
|
|
9
|
-
import "luxon";
|
|
10
|
-
import "@arcgis/toolkit/type";
|
|
11
|
-
import "../../chunks/series-types.js";
|
|
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 "../../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 "@esri/arcgis-html-sanitizer";
|
|
22
|
-
import "@arcgis/core/intl.js";
|
|
23
|
-
import "@arcgis/core/request.js";
|
|
24
|
-
import "simple-statistics";
|
|
25
|
-
import "@arcgis/core/core/sql.js";
|
|
26
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
27
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
28
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
29
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
30
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
31
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
32
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
33
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
34
|
-
import "@arcgis/core/geometry/Point.js";
|
|
35
|
-
import "@arcgis/toolkit/dom";
|
|
36
|
-
import { e as p } from "../../chunks/popover-ui-utils.js";
|
|
37
|
-
class l extends s {
|
|
6
|
+
import { createRef as a, ref as l } from "lit/directives/ref.js";
|
|
7
|
+
import { e as r } from "../../chunks/popover-ui-utils.js";
|
|
8
|
+
class d extends t {
|
|
38
9
|
constructor() {
|
|
39
|
-
super(...arguments), this._messages = o(), this.popoverElement =
|
|
10
|
+
super(...arguments), this._messages = o(), this.popoverElement = a(), this.onAddXGuide = () => {
|
|
40
11
|
this.open = !1, this.arcgisChartsAddXAxisGuide.emit();
|
|
41
12
|
}, this.onAddYGuide = () => {
|
|
42
13
|
this.open = !1, this.arcgisChartsAddYAxisGuide.emit();
|
|
@@ -49,16 +20,16 @@ class l extends s {
|
|
|
49
20
|
await this.popoverElement.value?.reposition();
|
|
50
21
|
}
|
|
51
22
|
updated() {
|
|
52
|
-
|
|
23
|
+
r(this.popoverElement.value, this.open);
|
|
53
24
|
}
|
|
54
25
|
guidePopoverClose() {
|
|
55
26
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
56
27
|
}
|
|
57
28
|
render() {
|
|
58
|
-
return e`<calcite-popover .open=${this.open} .referenceElement=${this.referenceElement ?? document.body} flip-disabled pointer-disabled offset-distance=-18 @calcitePopoverClose=${this.guidePopoverClose} .placement=${this.placement} auto-close label ${
|
|
29
|
+
return e`<calcite-popover .open=${this.open} .referenceElement=${this.referenceElement ?? document.body} flip-disabled pointer-disabled offset-distance=-18 @calcitePopoverClose=${this.guidePopoverClose} .placement=${this.placement} auto-close label ${l(this.popoverElement)}><calcite-panel .heading=${this._messages.guideType} closable @calcitePanelClose=${this.guidePopoverClose}>${this.enableXAxisGuide ? e`<calcite-action .label=${this._messages.addXAxisGuide} .text=${this._messages.addXAxisGuide ?? ""} @click=${this.onAddXGuide} icon=x-axis-guide text-enabled></calcite-action>` : null}${this.enableYAxisGuide ? e`<calcite-action .label=${this._messages.addYAxisGuide} .text=${this._messages.addYAxisGuide ?? ""} @click=${this.onAddYGuide} icon=y-axis-guide text-enabled></calcite-action>` : null}</calcite-panel></calcite-popover>`;
|
|
59
30
|
}
|
|
60
31
|
}
|
|
61
|
-
|
|
32
|
+
s("arcgis-charts-config-guides-type-popover", d);
|
|
62
33
|
export {
|
|
63
|
-
|
|
34
|
+
d as ArcgisChartsConfigGuidesTypePopover
|
|
64
35
|
};
|