@arcgis/charts-components 5.2.0-next.2 → 5.2.0-next.20
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/dist/cdn/{ZRFHAQL6.js → 2OXJ5CIC.js} +1 -1
- package/dist/cdn/2YRBTD5E.js +2 -0
- package/dist/cdn/{VVKV5KKN.js → 3CRUKP7D.js} +1 -1
- package/dist/cdn/3MKY6UCO.js +2 -0
- package/dist/cdn/3SBYV6BW.js +2 -0
- package/dist/cdn/{LRNADJJG.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/4MBX554Q.js +2 -0
- package/dist/cdn/4ZGGMYAW.js +2 -0
- package/dist/cdn/{HCMD362H.js → 54CA4NEA.js} +1 -1
- package/dist/cdn/5B7SUFIW.js +2 -0
- package/dist/cdn/{VDG54AIC.js → 62ECX35C.js} +1 -1
- package/dist/cdn/{HCV34H6X.js → 6ECU76VK.js} +1 -1
- package/dist/cdn/7473JWME.js +2 -0
- package/dist/cdn/74UHJFPH.js +2 -0
- package/dist/cdn/{PVJEBBA7.js → 7532DIDI.js} +1 -1
- package/dist/cdn/{JVHJMPFE.js → 7C6E54U5.js} +1 -1
- package/dist/cdn/7X5P6K2W.js +2 -0
- package/dist/cdn/A636YSNA.js +2 -0
- package/dist/cdn/{TNB3MBXR.js → ABAERFCU.js} +1 -1
- package/dist/cdn/AH2UFHXP.js +2 -0
- package/dist/cdn/AHTGZ4MH.js +2 -0
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/{KOBNV5AQ.js → B34ZX3IO.js} +1 -1
- package/dist/cdn/BMAAWO5F.js +2 -0
- package/dist/cdn/CG6MYXFY.js +2 -0
- package/dist/cdn/{LONASKGH.js → CPT6BODA.js} +1 -1
- package/dist/cdn/CRCAJAFA.js +2 -0
- package/dist/cdn/DG2OI6R3.js +3 -0
- package/dist/cdn/DKENYDHS.js +233 -0
- package/dist/cdn/{YRBE7MBU.js → DSHN2EGI.js} +1 -1
- package/dist/cdn/E44C5J3E.js +2 -0
- package/dist/cdn/{LZYN55O4.js → EHMSOPGV.js} +1 -1
- package/dist/cdn/{KLC6NTPC.js → ETXHDKUU.js} +1 -1
- package/dist/cdn/{GL3IXVRN.js → F4WIDKYH.js} +1 -1
- package/dist/cdn/{TZB57XD4.js → FGRHILPJ.js} +1 -1
- package/dist/cdn/FYDWWQCT.js +2 -0
- package/dist/cdn/GIBMAXXC.js +2 -0
- package/dist/cdn/{24LTTBTF.js → HJIWACZ5.js} +1 -1
- package/dist/cdn/HKF4PBPJ.js +58 -0
- package/dist/cdn/{WEQBZOH7.js → HNHNP7BI.js} +1 -1
- package/dist/cdn/{TYMKFCF4.js → HXR7LXG4.js} +1 -1
- package/dist/cdn/I4MM4T5T.js +2 -0
- package/dist/cdn/IHHPUKGG.js +2 -0
- package/dist/cdn/{R45FWF7D.js → IJNPEW4W.js} +1 -1
- package/dist/cdn/{OE3UFORR.js → ILMYZIWD.js} +1 -1
- package/dist/cdn/{U4XLNCOU.js → IQ3T72TK.js} +1 -1
- package/dist/cdn/{3YT44D4Z.js → IRJ2YA3P.js} +1 -1
- package/dist/cdn/{A5GIBV5W.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/{MRTKZZTF.js → JHANH4UG.js} +1 -1
- package/dist/cdn/JMLS3OCC.js +2 -0
- package/dist/cdn/JQ7KK2TT.js +2 -0
- package/dist/cdn/K5AZMQ5Q.js +2 -0
- package/dist/cdn/KNYJJN7R.js +2 -0
- package/dist/cdn/{FDXE5JLT.js → L3XXFSDJ.js} +1 -1
- package/dist/cdn/L52YJC6U.js +2 -0
- package/dist/cdn/{GES3HRXE.js → LKAKZYML.js} +1 -1
- package/dist/cdn/{CJ4POAPM.js → LNRU4KNE.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{RAQZUMC6.js → LYRIOMLM.js} +1 -1
- package/dist/cdn/{RFQBUWOW.js → NI4KTOCF.js} +1 -1
- package/dist/cdn/O533LNDP.js +2 -0
- package/dist/cdn/{UKDTXHZT.js → OKMRX4U5.js} +1 -1
- package/dist/cdn/{LDPHZHSF.js → OYQK2TIQ.js} +1 -1
- package/dist/cdn/{NQQW4GKA.js → PKCOYJHN.js} +1 -1
- package/dist/cdn/{PK5XIIZY.js → POIIR3QR.js} +1 -1
- package/dist/cdn/PSUB3KL5.js +4 -0
- package/dist/cdn/{KI4HS3AM.js → PWNFUWUN.js} +1 -1
- package/dist/cdn/Q5J2S3DE.js +2 -0
- package/dist/cdn/{5JML3JUR.js → QEC5EZ6Q.js} +1 -1
- package/dist/cdn/QID7XRNR.js +2 -0
- package/dist/cdn/QKL4PXPG.js +2 -0
- package/dist/cdn/{2K4ODNJ4.js → QN7MXGGV.js} +1 -1
- package/dist/cdn/{WASEMNYV.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/R7QGZ7QJ.js +2 -0
- package/dist/cdn/RGFQCA4L.js +102 -0
- package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/RQN3DHRN.js +2 -0
- package/dist/cdn/{N524VXQ2.js → RY3TJU7J.js} +1 -1
- package/dist/cdn/{7ABIELGZ.js → RZGDZC44.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/SCX3TUEG.js +2 -0
- package/dist/cdn/STTG3UAJ.js +2 -0
- package/dist/cdn/{VEA5ZR5D.js → SZOAGNYC.js} +1 -1
- package/dist/cdn/{PZGIXDMC.js → T5KLEUNC.js} +1 -1
- package/dist/cdn/{23YH7MTF.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/{PC7IKOIB.js → TH2F4GPI.js} +1 -1
- package/dist/cdn/{TU3UF32Y.js → U555MUVU.js} +1 -1
- package/dist/cdn/V2H2UI2W.js +2 -0
- package/dist/cdn/{RX3RNE7F.js → V6UMDO6X.js} +1 -1
- package/dist/cdn/{3DK6M5E7.js → VK4OJOVV.js} +1 -1
- package/dist/cdn/{5QO32XSX.js → VM6CF4WH.js} +1 -1
- package/dist/cdn/{TAI4RIWT.js → WE2J37H5.js} +1 -1
- package/dist/cdn/{5G7DSKI7.js → XAO2DW32.js} +1 -1
- package/dist/cdn/XRLVJJBT.js +2 -0
- package/dist/cdn/{U2LJZ4ML.js → XVW5DABR.js} +1 -1
- package/dist/cdn/YVOKQFAW.js +2 -0
- package/dist/cdn/{PSO5AURI.js → Z2Z3DPFE.js} +1 -1
- package/dist/cdn/ZW4PF3UK.js +2 -0
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -0
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +8 -8
- package/dist/chunks/chart-model.js +170 -138
- package/dist/chunks/class-breaks.js +18 -18
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/index2.js +2259 -2226
- package/dist/chunks/index3.js +32 -29
- package/dist/chunks/index4.js +107 -49
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/pie-chart-data.js +42 -36
- package/dist/chunks/pie-chart-model.js +175 -162
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +591 -579
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/utils.js +67 -56
- package/dist/chunks/web-component-utils.js +601 -491
- package/dist/components/arcgis-chart/customElement.d.ts +145 -138
- package/dist/components/arcgis-chart/customElement.js +6352 -6352
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +35 -36
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -16
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -27
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +29 -31
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +38 -40
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
- 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 +66 -70
- package/dist/index.js +212 -210
- package/dist/json-schema/index.d.ts +59 -2
- package/dist/loader.js +1 -1
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +8 -2
- package/dist/utils/chart-config/converter/index.js +264 -264
- package/dist/utils/chart-config/utils/index.d.ts +36 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
- package/dist/utils/data/index.d.ts +8 -11
- package/dist/utils/defaults/index.d.ts +1 -2
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +5 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/layer/query-parser/index.d.ts +3 -3
- package/dist/utils/localization/interfaces.d.ts +4 -0
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +6 -6
- package/dist/cdn/26FWESH3.js +0 -102
- package/dist/cdn/3XHZ677O.js +0 -2
- package/dist/cdn/5FMEOIBS.js +0 -3
- package/dist/cdn/74JAZF7U.js +0 -2
- package/dist/cdn/7HIZH35G.js +0 -2
- package/dist/cdn/CCR46UHB.js +0 -2
- package/dist/cdn/CRFJ2GGS.js +0 -2
- package/dist/cdn/CXQOEN77.js +0 -2
- package/dist/cdn/DYC3Q36R.js +0 -2
- package/dist/cdn/E2N2S7BH.js +0 -2
- package/dist/cdn/E43KEVHT.js +0 -2
- package/dist/cdn/EXTKNE2L.js +0 -2
- package/dist/cdn/F7Y6EWWB.js +0 -2
- package/dist/cdn/G5HVFOIO.js +0 -2
- package/dist/cdn/G7TRU7JI.js +0 -2
- package/dist/cdn/IHQ7R6L4.js +0 -4
- package/dist/cdn/IUFXFWXH.js +0 -2
- package/dist/cdn/JHYH555K.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/KVGEY3IQ.js +0 -2
- package/dist/cdn/KXNZEPLT.js +0 -58
- package/dist/cdn/LWODMEOP.js +0 -2
- package/dist/cdn/LYZGRYQV.js +0 -2
- package/dist/cdn/MF3FGXHI.js +0 -2
- package/dist/cdn/MUPHTV55.js +0 -2
- package/dist/cdn/N5ERJZPG.js +0 -2
- package/dist/cdn/NGPMU4T3.js +0 -2
- package/dist/cdn/NJCZ6UTM.js +0 -2
- package/dist/cdn/NMB6TWC2.js +0 -2
- package/dist/cdn/NNNTZU5J.js +0 -2
- package/dist/cdn/NS3THLCD.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/P2NPQAJ3.js +0 -2
- package/dist/cdn/PJUAU42S.js +0 -2
- package/dist/cdn/PY5Q3V6E.js +0 -2
- package/dist/cdn/RMYZGOBM.js +0 -2
- package/dist/cdn/TXSWWAOF.js +0 -2
- package/dist/cdn/UAJGYF4S.js +0 -2
- package/dist/cdn/UT6G7RV7.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/WO6JBNMU.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/cdn/ZRZEKOEF.js +0 -2
- /package/dist/cdn/{2HGBRW4I.js → 3HAB3JR6.js} +0 -0
- /package/dist/cdn/{AJBEE7WE.js → 3YOOX2CV.js} +0 -0
- /package/dist/cdn/{53FG76LL.js → 4DSO7LUF.js} +0 -0
- /package/dist/cdn/{2X75KJPF.js → 5HRLHWQ5.js} +0 -0
- /package/dist/cdn/{I36OAVW3.js → 732EZ6WJ.js} +0 -0
- /package/dist/cdn/{3V4HRXIT.js → 7IS6QE6S.js} +0 -0
- /package/dist/cdn/{VFM2EV3M.js → 7XZZ5OZL.js} +0 -0
- /package/dist/cdn/{4E7C5QPS.js → AN2NRYQV.js} +0 -0
- /package/dist/cdn/{O2ERVMSN.js → ASUGYCJ6.js} +0 -0
- /package/dist/cdn/{TSI3C3OV.js → BICQEJYZ.js} +0 -0
- /package/dist/cdn/{66KSEDOR.js → C2I4WPWM.js} +0 -0
- /package/dist/cdn/{NFDXH5B3.js → C47AIJTI.js} +0 -0
- /package/dist/cdn/{B4KT2HUE.js → C5YJ7J3A.js} +0 -0
- /package/dist/cdn/{4QQVKRJ5.js → DPV2ZJLF.js} +0 -0
- /package/dist/cdn/{ZFM5RGWD.js → E4535ZTP.js} +0 -0
- /package/dist/cdn/{M4AQLWZU.js → FJNRPAMO.js} +0 -0
- /package/dist/cdn/{PH6UOHRS.js → GI54JT4O.js} +0 -0
- /package/dist/cdn/{YIIPYKTL.js → GYTYFBNU.js} +0 -0
- /package/dist/cdn/{RDTBZUT7.js → J5QUGI2J.js} +0 -0
- /package/dist/cdn/{XIJ5VLER.js → JPEN5TFK.js} +0 -0
- /package/dist/cdn/{DD4QUBOF.js → KBQM3DLQ.js} +0 -0
- /package/dist/cdn/{75P3QRL4.js → LEMJA72W.js} +0 -0
- /package/dist/cdn/{NHDVOYQ2.js → MMO2QPOA.js} +0 -0
- /package/dist/cdn/{NG2IHVZ4.js → PS7IL5JZ.js} +0 -0
- /package/dist/cdn/{5AOYADA3.js → R2RRMPOC.js} +0 -0
- /package/dist/cdn/{ABIVSH72.js → RV6E7KKQ.js} +0 -0
- /package/dist/cdn/{OA7FHTCA.js → RYLXJPKL.js} +0 -0
- /package/dist/cdn/{I5VHQW7B.js → S2R72ISR.js} +0 -0
- /package/dist/cdn/{N3VOUI25.js → T4NEEFOY.js} +0 -0
- /package/dist/cdn/{4JQ2RRLY.js → TEERYUCS.js} +0 -0
- /package/dist/cdn/{XWKBJDZT.js → V454JYTQ.js} +0 -0
- /package/dist/cdn/{LNF44ZGQ.js → V7JF5I5M.js} +0 -0
- /package/dist/cdn/{N6OT5IBC.js → VIZWWEG5.js} +0 -0
- /package/dist/cdn/{SGOYJFLO.js → W5SPX6WM.js} +0 -0
- /package/dist/cdn/{OYHKUGS6.js → X2IOJECM.js} +0 -0
- /package/dist/cdn/{O6SNP6QE.js → X33RIIGI.js} +0 -0
- /package/dist/cdn/{UAZ34KDJ.js → YBTVIOHQ.js} +0 -0
- /package/dist/cdn/{7ILH7ZG2.js → YFQHZWLO.js} +0 -0
- /package/dist/cdn/{FLO3N6JD.js → YX4EVVJM.js} +0 -0
- /package/dist/cdn/{CODAXMWM.js → YXH22GJ6.js} +0 -0
- /package/dist/cdn/{DIKQ7BPQ.js → ZMQTYGGT.js} +0 -0
|
@@ -1,43 +1,40 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { P as
|
|
5
|
-
import { u } from "../../chunks/useT9n.js";
|
|
6
|
-
import { css as
|
|
7
|
-
import { createRef as n, ref as
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { x as
|
|
10
|
-
import { d as
|
|
11
|
-
import { m as
|
|
2
|
+
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as p } from "lit/directives/keyed.js";
|
|
4
|
+
import { P as r } from "../../chunks/interfaces.js";
|
|
5
|
+
import { u as C } from "../../chunks/useT9n.js";
|
|
6
|
+
import { css as u, html as s } from "lit";
|
|
7
|
+
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
|
+
import { LitElement as b, createEvent as h, renderElement as v, safeClassMap as o } from "@arcgis/lumina";
|
|
9
|
+
import { x as y } from "../../chunks/data.js";
|
|
10
|
+
import { d as m } from "../../chunks/index3.js";
|
|
11
|
+
import { m as g, an as F } from "../../chunks/index2.js";
|
|
12
12
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
13
|
-
import { r as
|
|
14
|
-
import { P as f } from "../../chunks/common.js";
|
|
13
|
+
import { r as P } from "../../chunks/chart-object-literals.js";
|
|
15
14
|
const l = {
|
|
16
15
|
label: "label",
|
|
17
16
|
fieldList: "field-list",
|
|
18
17
|
fab: "fab"
|
|
19
|
-
},
|
|
20
|
-
class
|
|
18
|
+
}, E = u`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`;
|
|
19
|
+
class k extends b {
|
|
21
20
|
constructor() {
|
|
22
|
-
super(...arguments), this._messages =
|
|
21
|
+
super(...arguments), this._messages = C(), this.pieChartPopover = null, this.sortOrderElement = n(), this.categoryElement = n(), this.numericFieldsElement = n(), this.onPieChartDataChange = (e) => {
|
|
23
22
|
try {
|
|
24
23
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
25
24
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
26
25
|
switch (t) {
|
|
27
|
-
case
|
|
28
|
-
this.model.aggregationType = i[0] !==
|
|
26
|
+
case r.aggregation:
|
|
27
|
+
this.model.aggregationType = i[0] !== P.NoAggregation ? i[0] : "";
|
|
29
28
|
break;
|
|
30
|
-
case
|
|
31
|
-
const
|
|
32
|
-
this.
|
|
33
|
-
const h = this.model.numericFields;
|
|
34
|
-
h.length > 1 && r !== c && (this.model.numericFields = [h[0]]), this.model.category = r, this.model.colorMatch = !0;
|
|
29
|
+
case r.category: {
|
|
30
|
+
const a = i[0]?.trim() || "", d = this.model.numericFields;
|
|
31
|
+
d.length > 1 && a !== g && (this.model.numericFields = [d[0]]), this.model.category = a, this.model.colorMatch = !0;
|
|
35
32
|
break;
|
|
36
33
|
}
|
|
37
|
-
case
|
|
38
|
-
i.length > 1 && (this.
|
|
34
|
+
case r.numericFields:
|
|
35
|
+
i.length > 1 && (this.model.category = g), this.model.numericFields = i;
|
|
39
36
|
break;
|
|
40
|
-
case
|
|
37
|
+
case r.sortOrder:
|
|
41
38
|
this.model.setSortOrder(i[0]);
|
|
42
39
|
break;
|
|
43
40
|
default:
|
|
@@ -52,13 +49,13 @@ class w extends v {
|
|
|
52
49
|
this.requestUpdate();
|
|
53
50
|
}, this.popoverClose = (e) => {
|
|
54
51
|
this.pieChartPopover === e?.target && this.removePieChartDataPopover();
|
|
55
|
-
}, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError =
|
|
52
|
+
}, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = h(), this.arcgisChartsConfigPieChartDataNumericFieldValidate = h();
|
|
56
53
|
}
|
|
57
54
|
static {
|
|
58
55
|
this.properties = { messageOverrides: 0, model: 0, layerFieldsInfo: 0 };
|
|
59
56
|
}
|
|
60
57
|
static {
|
|
61
|
-
this.styles =
|
|
58
|
+
this.styles = E;
|
|
62
59
|
}
|
|
63
60
|
load() {
|
|
64
61
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
@@ -73,16 +70,16 @@ class w extends v {
|
|
|
73
70
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
74
71
|
}
|
|
75
72
|
buildNumericFieldItem(e) {
|
|
76
|
-
return
|
|
73
|
+
return p(e, s`<calcite-list-item .label=${m(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
77
74
|
}
|
|
78
75
|
onSortOrderSelect(e) {
|
|
79
|
-
this.contentKind =
|
|
76
|
+
this.contentKind = r.sortOrder, this.setupPopover(e);
|
|
80
77
|
}
|
|
81
78
|
onCategorySelect(e) {
|
|
82
|
-
this.contentKind =
|
|
79
|
+
this.contentKind = r.category, this.setupPopover(e);
|
|
83
80
|
}
|
|
84
81
|
onAddNumericFields(e) {
|
|
85
|
-
this.contentKind =
|
|
82
|
+
this.contentKind = r.numericFields, this.setupPopover(e);
|
|
86
83
|
}
|
|
87
84
|
onRemoveNumericField(e) {
|
|
88
85
|
const t = e.target.value;
|
|
@@ -91,57 +88,53 @@ class w extends v {
|
|
|
91
88
|
onShowDataLabelsChange(e) {
|
|
92
89
|
this.model.dataLabelsVisibility = e.target.checked;
|
|
93
90
|
}
|
|
94
|
-
updateMode(e) {
|
|
95
|
-
const t = e !== c && e.trim() !== "";
|
|
96
|
-
this.model.mode = t ? f.Category : f.Fields;
|
|
97
|
-
}
|
|
98
91
|
setupPopover(e) {
|
|
99
92
|
e.stopImmediatePropagation(), this.removePieChartDataPopover();
|
|
100
|
-
let t, i,
|
|
93
|
+
let t, i, a;
|
|
101
94
|
switch (this.contentKind) {
|
|
102
|
-
case
|
|
103
|
-
t = this.categoryElement.value, i = this._messages.categoryHeader,
|
|
95
|
+
case r.category:
|
|
96
|
+
t = this.categoryElement.value, i = this._messages.categoryHeader, a = this.model.category;
|
|
104
97
|
break;
|
|
105
|
-
case
|
|
106
|
-
t = this.numericFieldsElement.value, i = this._messages.numericFieldsMultipleHeader,
|
|
98
|
+
case r.numericFields:
|
|
99
|
+
t = this.numericFieldsElement.value, i = this._messages.numericFieldsMultipleHeader, a = this.model.numericFields;
|
|
107
100
|
break;
|
|
108
|
-
case
|
|
109
|
-
t = this.sortOrderElement.value, i = this._messages.sortOrderHeader,
|
|
101
|
+
case r.sortOrder:
|
|
102
|
+
t = this.sortOrderElement.value, i = this._messages.sortOrderHeader, a = this.model.getSortOrder();
|
|
110
103
|
break;
|
|
111
104
|
}
|
|
112
|
-
this.pieChartPopover =
|
|
105
|
+
this.pieChartPopover = v(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${a} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`), !document.body.contains(this.pieChartPopover) && this.pieChartPopover !== null && document.body.appendChild(this.pieChartPopover);
|
|
113
106
|
}
|
|
114
107
|
getCorrectedCategoryValue() {
|
|
115
|
-
return
|
|
108
|
+
return y({
|
|
116
109
|
fieldName: this.model.category,
|
|
117
110
|
fieldList: this.layerFieldsInfo
|
|
118
|
-
}) ? "" :
|
|
111
|
+
}) ? "" : m(this.layerFieldsInfo, this.model.category);
|
|
119
112
|
}
|
|
120
113
|
removePieChartDataPopover() {
|
|
121
114
|
this.pieChartPopover !== null && (this.pieChartPopover.open = !1, this.pieChartPopover = $(this.pieChartPopover));
|
|
122
115
|
}
|
|
123
116
|
renderSorting() {
|
|
124
|
-
return
|
|
117
|
+
return s`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${c(this.sortOrderElement)}></arcgis-charts-config-field-select>`;
|
|
125
118
|
}
|
|
126
119
|
renderCategory() {
|
|
127
120
|
const e = this.getCorrectedCategoryValue();
|
|
128
|
-
return
|
|
121
|
+
return s`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${c(this.categoryElement)}></arcgis-charts-config-field-select>`;
|
|
129
122
|
}
|
|
130
123
|
renderNumericFields(e) {
|
|
131
|
-
const t =
|
|
132
|
-
for (const
|
|
133
|
-
|
|
134
|
-
return
|
|
124
|
+
const t = F(this.model.layer).idField, i = [];
|
|
125
|
+
for (const a of e)
|
|
126
|
+
a !== t && i.push(this.buildNumericFieldItem(a));
|
|
127
|
+
return s`<calcite-list label class=${o(l.fieldList)} ${c(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
135
128
|
}
|
|
136
129
|
render() {
|
|
137
130
|
const e = this.renderCategory(), t = this.renderSorting(), i = this.renderNumericFields([...this.model.numericFields]);
|
|
138
|
-
return
|
|
139
|
-
|
|
140
|
-
|
|
131
|
+
return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[
|
|
132
|
+
s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${i}</calcite-label>`,
|
|
133
|
+
s`<div class=${o(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div>`
|
|
141
134
|
]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`;
|
|
142
135
|
}
|
|
143
136
|
}
|
|
144
|
-
|
|
137
|
+
f("arcgis-charts-config-pie-chart-data", k);
|
|
145
138
|
export {
|
|
146
|
-
|
|
139
|
+
k as ArcgisChartsConfigPieChartData
|
|
147
140
|
};
|
|
@@ -1,100 +1,98 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
-
import { repeat as
|
|
3
|
+
import { repeat as p } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as g } from "lit/directives/keyed.js";
|
|
5
5
|
import { isEqual as k } from "lodash-es";
|
|
6
6
|
import { P as a } from "../../chunks/interfaces.js";
|
|
7
|
-
import { p as
|
|
8
|
-
import { u
|
|
9
|
-
import { css as
|
|
10
|
-
import { createRef as b, ref as
|
|
11
|
-
import { LitElement as P, createEvent as C, safeClassMap as
|
|
12
|
-
import { e as
|
|
7
|
+
import { p as f, b as $, e as h, f as L } from "../../chunks/chart-ui-utils2.js";
|
|
8
|
+
import { u } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as y, html as n } from "lit";
|
|
10
|
+
import { createRef as b, ref as d } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as P, createEvent as C, safeClassMap as r } from "@arcgis/lumina";
|
|
12
|
+
import { e as I, p as F } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { t as D } from "../../chunks/index.js";
|
|
14
14
|
import { d as x } from "../../chunks/index3.js";
|
|
15
|
-
import {
|
|
15
|
+
import { bh as S, bk as T } from "../../chunks/index2.js";
|
|
16
16
|
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
-
import { a as
|
|
17
|
+
import { a as o } from "../../chunks/common.js";
|
|
18
18
|
const l = {
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
20
19
|
name: "pie-chart-data-popover",
|
|
21
|
-
numericFieldPickList: "pie-chart-data-numeric-fields-pick-list",
|
|
22
20
|
header: "header",
|
|
23
21
|
fab: "fab",
|
|
24
22
|
pickListItemLabel: "pick-list-item-label",
|
|
25
23
|
flipClass: "sort-counter-clockwise",
|
|
26
24
|
panel: "panel"
|
|
27
|
-
},
|
|
28
|
-
class
|
|
25
|
+
}, w = y`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-counter-clockwise{transform:scaleX(-1)}.panel{max-height:60vh}`;
|
|
26
|
+
class A extends P {
|
|
29
27
|
constructor() {
|
|
30
|
-
super(...arguments), this._messages =
|
|
28
|
+
super(...arguments), this._messages = u(), this.commonStrings = u({ name: "common", blocking: !0 }), this.picklist = b(), this.popoverElement = b(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPieChartDataPopoverChange = C(), this.arcgisChartsConfigPopoverClose = C();
|
|
31
29
|
}
|
|
32
30
|
static {
|
|
33
31
|
this.properties = { aggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
34
32
|
}
|
|
35
33
|
static {
|
|
36
|
-
this.styles =
|
|
34
|
+
this.styles = w;
|
|
37
35
|
}
|
|
38
36
|
async reposition() {
|
|
39
37
|
await this.popoverElement.value?.reposition();
|
|
40
38
|
}
|
|
41
39
|
willUpdate(e) {
|
|
42
40
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
43
|
-
const t =
|
|
41
|
+
const t = f.map((i) => D(i, this.commonStrings));
|
|
44
42
|
k(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
45
43
|
}
|
|
46
44
|
updated() {
|
|
47
|
-
|
|
45
|
+
I(this.popoverElement.value, this.open), setTimeout(() => {
|
|
48
46
|
this.picklist.value?.setFocus();
|
|
49
47
|
}, $.PopoverTimer);
|
|
50
48
|
}
|
|
51
49
|
selectedContentChange(e, t) {
|
|
52
|
-
this.pickListHasChanged =
|
|
50
|
+
this.pickListHasChanged = F(e, t);
|
|
53
51
|
}
|
|
54
52
|
buildAggregationPickListItems() {
|
|
55
|
-
return
|
|
53
|
+
return p(f, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${h(e, this.selectedContent)}></calcite-list-item>`);
|
|
56
54
|
}
|
|
57
55
|
buildSortOrder() {
|
|
58
|
-
const e = Object.keys(
|
|
59
|
-
return e.splice(e.indexOf(
|
|
56
|
+
const e = Object.keys(o);
|
|
57
|
+
return e.splice(e.indexOf(o.customSort), 1), p(e, (t) => t, (t) => {
|
|
60
58
|
let i = "string";
|
|
61
|
-
const
|
|
59
|
+
const c = "rotate";
|
|
62
60
|
let s = "";
|
|
63
61
|
switch (t) {
|
|
64
|
-
case
|
|
62
|
+
case o.labelAsc:
|
|
65
63
|
i = "string";
|
|
66
64
|
break;
|
|
67
|
-
case
|
|
65
|
+
case o.labelDesc:
|
|
68
66
|
i = "string", s = l.flipClass;
|
|
69
67
|
break;
|
|
70
|
-
case
|
|
68
|
+
case o.valueAsc:
|
|
71
69
|
i = "number";
|
|
72
70
|
break;
|
|
73
|
-
case
|
|
71
|
+
case o.valueDesc:
|
|
74
72
|
i = "number", s = l.flipClass;
|
|
75
73
|
break;
|
|
76
74
|
// Do nothing for customSort for now
|
|
77
|
-
case
|
|
75
|
+
case o.customSort:
|
|
78
76
|
}
|
|
79
|
-
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${
|
|
77
|
+
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${o[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${r(s)} slot=content-end .icon=${c}></calcite-icon></calcite-list-item>`;
|
|
80
78
|
});
|
|
81
79
|
}
|
|
82
80
|
buildPickListItem(e) {
|
|
83
|
-
return g(e.name, n`<calcite-list-item .label=${x(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${
|
|
81
|
+
return g(e.name, n`<calcite-list-item .label=${x(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
84
82
|
}
|
|
85
83
|
buildPickListItems(e) {
|
|
86
84
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
87
85
|
switch (e) {
|
|
88
86
|
case a.numericFields: {
|
|
89
|
-
for (let
|
|
90
|
-
const s = this.layerFieldsInfo[
|
|
87
|
+
for (let c = 0; c < t; c += 1) {
|
|
88
|
+
const s = this.layerFieldsInfo[c];
|
|
91
89
|
T(s) && i.push(this.buildPickListItem(s));
|
|
92
90
|
}
|
|
93
91
|
break;
|
|
94
92
|
}
|
|
95
93
|
case a.category: {
|
|
96
|
-
const
|
|
97
|
-
i.push(
|
|
94
|
+
const c = g(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
95
|
+
i.push(c);
|
|
98
96
|
for (let s = 0; s < t; s += 1) {
|
|
99
97
|
const m = this.layerFieldsInfo[s];
|
|
100
98
|
(S(m) || m.type === E.String) && i.push(this.buildPickListItem(m));
|
|
@@ -111,7 +109,7 @@ class w extends P {
|
|
|
111
109
|
eventEmitter: this.arcgisChartsConfigPieChartDataPopoverChange,
|
|
112
110
|
contentKind: this.contentKind
|
|
113
111
|
};
|
|
114
|
-
|
|
112
|
+
L(e);
|
|
115
113
|
}
|
|
116
114
|
this.arcgisChartsConfigPopoverClose.emit();
|
|
117
115
|
}
|
|
@@ -131,15 +129,15 @@ class w extends P {
|
|
|
131
129
|
}
|
|
132
130
|
renderAggregationType() {
|
|
133
131
|
const e = this.buildAggregationPickListItems();
|
|
134
|
-
return n`<calcite-list label class=${
|
|
132
|
+
return n`<calcite-list label class=${r(l.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
135
133
|
}
|
|
136
134
|
renderCategory() {
|
|
137
135
|
const e = this.buildPickListItems(a.category);
|
|
138
|
-
return n`<calcite-list label class=${
|
|
136
|
+
return n`<calcite-list label class=${r(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
139
137
|
}
|
|
140
138
|
renderNumericFields() {
|
|
141
139
|
const e = this.buildPickListItems(a.numericFields);
|
|
142
|
-
return n`<calcite-list label
|
|
140
|
+
return n`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
143
141
|
}
|
|
144
142
|
renderSortOrder() {
|
|
145
143
|
const e = this.buildSortOrder();
|
|
@@ -165,10 +163,10 @@ class w extends P {
|
|
|
165
163
|
}
|
|
166
164
|
render() {
|
|
167
165
|
let e;
|
|
168
|
-
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${
|
|
166
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${r(l.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div><calcite-popover class=${r(l.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${d(this.popoverElement)}><calcite-panel class=${r(l.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(l.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
|
-
v("arcgis-charts-config-pie-chart-popover",
|
|
169
|
+
v("arcgis-charts-config-pie-chart-popover", A);
|
|
172
170
|
export {
|
|
173
|
-
|
|
171
|
+
A as ArcgisChartsConfigPieChartPopover
|
|
174
172
|
};
|
|
@@ -10,7 +10,7 @@ import { LitElement as w, renderElement as S, safeStyleMap as u, safeClassMap as
|
|
|
10
10
|
import { b as h } from "../../chunks/common.js";
|
|
11
11
|
import { aw as I, ax as y } from "../../chunks/index.js";
|
|
12
12
|
import { r as P } from "../../chunks/popover-ui-utils.js";
|
|
13
|
-
import { i as
|
|
13
|
+
import { i as z } from "../../chunks/rest-js-object-literals.js";
|
|
14
14
|
const a = {
|
|
15
15
|
sectionLabel: "section-label",
|
|
16
16
|
label: "label",
|
|
@@ -20,7 +20,7 @@ const a = {
|
|
|
20
20
|
sliderInputContainer: "slider-input-container",
|
|
21
21
|
groupingLabelContainer: "grouping-label-container",
|
|
22
22
|
numberInput: "number-input"
|
|
23
|
-
},
|
|
23
|
+
}, 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)}.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)}.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}.label .grouping-label-container{display:flex;justify-content:space-between}.label .slider-input-container{display:flex}.label .slider-input-container calcite-slider{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important;margin-right:var(--arcgis-charts-config-margin-minor);flex-grow:1}.label .slider-input-container .number-input{width:8rem}.slice-list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.radio-group{margin-top:var(--arcgis-charts-config-margin-minor)}.pie-donut-labels-container{display:flex;justify-content:space-between;margin-top:calc(var(--arcgis-charts-config-margin-minor) * -3)}`;
|
|
24
24
|
class k extends w {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments), this._messages = G(), this.slicesPopover = null, this.donutSizeSliderElement = m(), this.groupingThresholdElement = m(), this.groupingThresholdSliderElement = m(), this.labelCharacterLimitElement = m(), this.decimalPlacesElement = m(), this.open = !1, this.onDonutSizeSliderChange = C(() => {
|
|
@@ -43,7 +43,7 @@ class k extends w {
|
|
|
43
43
|
...t,
|
|
44
44
|
fillSymbol: {
|
|
45
45
|
...t.fillSymbol,
|
|
46
|
-
type:
|
|
46
|
+
type: z.SFS,
|
|
47
47
|
color: l
|
|
48
48
|
}
|
|
49
49
|
});
|
|
@@ -59,7 +59,7 @@ class k extends w {
|
|
|
59
59
|
this.properties = { selectedSliceId: 16, messageOverrides: 0, model: 0, popoverPlacement: 1, chartData: 0 };
|
|
60
60
|
}
|
|
61
61
|
static {
|
|
62
|
-
this.styles =
|
|
62
|
+
this.styles = M;
|
|
63
63
|
}
|
|
64
64
|
load() {
|
|
65
65
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
@@ -148,7 +148,7 @@ class k extends w {
|
|
|
148
148
|
}
|
|
149
149
|
onDisplayTypeChange(e) {
|
|
150
150
|
const l = e.target.selectedItem;
|
|
151
|
-
this.model.displayType = l
|
|
151
|
+
this.model.displayType = l?.value;
|
|
152
152
|
}
|
|
153
153
|
resetSlicesOriginal() {
|
|
154
154
|
this.selectedSliceId = void 0, this.model.colorMatch = !0, this.model.resetSlices();
|
|
@@ -156,7 +156,7 @@ class k extends w {
|
|
|
156
156
|
onCalciteListOrderChange(e) {
|
|
157
157
|
if (e.detail !== null && e.detail !== void 0) {
|
|
158
158
|
const { newIndex: l, oldIndex: i } = e.detail;
|
|
159
|
-
this.model.moveSeries(i, l);
|
|
159
|
+
this.model.moveSeries(i ?? 0, l ?? i ?? 0);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
openSlicesPopover(e) {
|
|
@@ -3,11 +3,10 @@ import { c as n } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as p, html as h } from "lit";
|
|
4
4
|
import { u as m } from "../../chunks/useT9n.js";
|
|
5
5
|
import { createRef as d, ref as g } from "lit/directives/ref.js";
|
|
6
|
-
import { LitElement as C, createEvent as s, safeClassMap as
|
|
6
|
+
import { LitElement as C, createEvent as s, safeClassMap as r } from "@arcgis/lumina";
|
|
7
7
|
import { e as v } from "../../chunks/popover-ui-utils.js";
|
|
8
8
|
import { aB as f } from "../../chunks/index.js";
|
|
9
|
-
const
|
|
10
|
-
jsAppFlyout: "js-app-flyout",
|
|
9
|
+
const c = {
|
|
11
10
|
panelChildrenContainer: "panel-children-container"
|
|
12
11
|
}, u = p`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
13
12
|
class y extends C {
|
|
@@ -36,14 +35,12 @@ class y extends C {
|
|
|
36
35
|
});
|
|
37
36
|
}
|
|
38
37
|
colorChange(e) {
|
|
39
|
-
const t = e instanceof CustomEvent ? e.detail : e, [
|
|
40
|
-
this.selectedColor = [
|
|
38
|
+
const t = e instanceof CustomEvent ? e.detail : e, [i, o, a] = t, l = f * 255;
|
|
39
|
+
this.selectedColor = [i, o, a, l], this.arcgisChartsConfigSlicesPopoverColorChange.emit({ color: [i, o, a, l] });
|
|
41
40
|
}
|
|
42
41
|
render() {
|
|
43
42
|
const e = this.selectedColor !== void 0 ? [...this.selectedColor] : void 0;
|
|
44
|
-
return h`<div class=${
|
|
45
|
-
[o.jsAppFlyout]: !0
|
|
46
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(o.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></calcite-input></calcite-label></div><div class=${i(o.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
43
|
+
return h`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${r(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></calcite-input></calcite-label></div><div class=${r(c.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
n("arcgis-charts-config-pie-chart-slices-popover", y);
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import { c as r } from "../../chunks/runtime.js";
|
|
3
3
|
import { isEqual as l } from "lodash-es";
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
|
-
import { css as c, html as
|
|
6
|
-
import { C as
|
|
7
|
-
import { ac as h,
|
|
8
|
-
import { h as
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { css as c, html as s } from "lit";
|
|
6
|
+
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
+
import { ac as h, bw as p, aw as f, I as m, ak as g } from "../../chunks/index2.js";
|
|
8
|
+
import { h as u } from "../../chunks/index5.js";
|
|
9
|
+
import { c as y } from "../../chunks/type-guards.js";
|
|
10
|
+
const F = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
11
|
+
class b extends n {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
13
14
|
const t = e?.detail.config ?? this.model.config;
|
|
@@ -18,7 +19,7 @@ class y extends n {
|
|
|
18
19
|
this.properties = { layerFieldsInfo: 16, model: 0, popoverPlacement: 1, r2: 9, calculatedDataMinMaxBounds: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5 };
|
|
19
20
|
}
|
|
20
21
|
static {
|
|
21
|
-
this.styles =
|
|
22
|
+
this.styles = F;
|
|
22
23
|
}
|
|
23
24
|
async load() {
|
|
24
25
|
await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
|
|
@@ -37,29 +38,33 @@ class y extends n {
|
|
|
37
38
|
const a = e ?? this.model.config;
|
|
38
39
|
let t = this.layer;
|
|
39
40
|
if (!t) {
|
|
40
|
-
const
|
|
41
|
-
|
|
41
|
+
const i = u(a) ? a.iLayer : void 0;
|
|
42
|
+
i && (t = await h(i));
|
|
43
|
+
}
|
|
44
|
+
if (t) {
|
|
45
|
+
await p(t);
|
|
46
|
+
const i = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
|
|
47
|
+
this.layerFieldsInfo = y(t) ? f({ layer: t, popupTemplateFieldInfosEnabled: i, chartType: a?.type }) : m(t, i);
|
|
42
48
|
}
|
|
43
|
-
t && (await f(t), this.layerFieldsInfo = p(t, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
|
|
44
49
|
}
|
|
45
50
|
render() {
|
|
46
51
|
let e;
|
|
47
52
|
switch (this.page) {
|
|
48
|
-
case
|
|
53
|
+
case o.Data:
|
|
49
54
|
const a = g(this.layer), t = a && "isTable" in a ? a.isTable : !1;
|
|
50
|
-
e =
|
|
55
|
+
e = s`<arcgis-charts-config-scatter-plot-data .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${t}></arcgis-charts-config-scatter-plot-data>`;
|
|
51
56
|
break;
|
|
52
|
-
case
|
|
53
|
-
e =
|
|
57
|
+
case o.Axes:
|
|
58
|
+
e = s`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;
|
|
54
59
|
break;
|
|
55
|
-
case
|
|
56
|
-
e =
|
|
60
|
+
case o.Guides:
|
|
61
|
+
e = s`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide enable-y-axis-guide></arcgis-charts-config-guides>`;
|
|
57
62
|
break;
|
|
58
|
-
case
|
|
59
|
-
e =
|
|
63
|
+
case o.Format:
|
|
64
|
+
e = s`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;
|
|
60
65
|
break;
|
|
61
|
-
case
|
|
62
|
-
e =
|
|
66
|
+
case o.General:
|
|
67
|
+
e = s`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;
|
|
63
68
|
break;
|
|
64
69
|
default:
|
|
65
70
|
e = "";
|
|
@@ -68,7 +73,7 @@ class y extends n {
|
|
|
68
73
|
return e;
|
|
69
74
|
}
|
|
70
75
|
}
|
|
71
|
-
r("arcgis-charts-config-scatter-plot",
|
|
76
|
+
r("arcgis-charts-config-scatter-plot", b);
|
|
72
77
|
export {
|
|
73
|
-
|
|
78
|
+
b as ArcgisChartsConfigScatterplot
|
|
74
79
|
};
|