@arcgis/charts-components 5.2.0-next.3 → 5.2.0-next.31
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/2ODYZG66.js +2 -0
- package/dist/cdn/{TAI4RIWT.js → 2SPGX6AF.js} +1 -1
- package/dist/cdn/35NSJ3NJ.js +2 -0
- package/dist/cdn/3MKY6UCO.js +2 -0
- package/dist/cdn/3NKDMMC2.js +2 -0
- package/dist/cdn/3QO6REDF.js +102 -0
- package/dist/cdn/3SBYV6BW.js +2 -0
- package/dist/cdn/{LRNADJJG.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/{PC7IKOIB.js → 3UTF2CB3.js} +1 -1
- package/dist/cdn/3YN4EKSJ.js +2 -0
- package/dist/cdn/4BEGCEGA.js +4 -0
- package/dist/cdn/{TZB57XD4.js → 4P7URPRQ.js} +1 -1
- package/dist/cdn/4TRUG37X.js +2 -0
- package/dist/cdn/5UO6L27Q.js +2 -0
- package/dist/cdn/{PVJEBBA7.js → 5XCU5SR2.js} +1 -1
- package/dist/cdn/{YRBE7MBU.js → 6ANVHVX4.js} +1 -1
- package/dist/cdn/{VDG54AIC.js → 6CB5R4QQ.js} +1 -1
- package/dist/cdn/{U4XLNCOU.js → 6GV2QPKV.js} +1 -1
- package/dist/cdn/{JVHJMPFE.js → 6OCDFMFB.js} +1 -1
- package/dist/cdn/6VK54DG5.js +2 -0
- package/dist/cdn/{3YT44D4Z.js → 6XIDALQU.js} +1 -1
- package/dist/cdn/7VQXBQMZ.js +2 -0
- package/dist/cdn/{GL3IXVRN.js → 7Z7NOIH2.js} +1 -1
- package/dist/cdn/A636YSNA.js +2 -0
- package/dist/cdn/{5G7DSKI7.js → ADYDCO3M.js} +1 -1
- package/dist/cdn/{NQQW4GKA.js → AICTKGE3.js} +1 -1
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/AZR6HVRW.js +2 -0
- package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/BI54CNMR.js +2 -0
- package/dist/cdn/BJBNELDD.js +3 -0
- package/dist/cdn/BKU72IQC.js +2 -0
- package/dist/cdn/{N5ERJZPG.js → BQXXD2HU.js} +1 -1
- package/dist/cdn/BZFGE4LO.js +2 -0
- package/dist/cdn/C4TQOUPO.js +2 -0
- package/dist/cdn/{UKDTXHZT.js → CLN32L2L.js} +1 -1
- package/dist/cdn/CRCAJAFA.js +2 -0
- package/dist/cdn/DAF2U7TN.js +2 -0
- package/dist/cdn/DKENYDHS.js +233 -0
- package/dist/cdn/{5JML3JUR.js → DRFJC64L.js} +1 -1
- package/dist/cdn/{PK5XIIZY.js → G5EGTXMY.js} +1 -1
- package/dist/cdn/{KLC6NTPC.js → GCRQHIGQ.js} +1 -1
- package/dist/cdn/{HCMD362H.js → HBS6O3P3.js} +1 -1
- package/dist/cdn/{5QO32XSX.js → HIW5WRHR.js} +1 -1
- package/dist/cdn/IHHPUKGG.js +2 -0
- package/dist/cdn/IPALCXFF.js +2 -0
- package/dist/cdn/IWMWJN7M.js +2 -0
- package/dist/cdn/{A5GIBV5W.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/JBR6IJMK.js +2 -0
- package/dist/cdn/{MRTKZZTF.js → JHANH4UG.js} +1 -1
- package/dist/cdn/JIV6BQKG.js +2 -0
- package/dist/cdn/{RFQBUWOW.js → K27GKXGP.js} +1 -1
- package/dist/cdn/{VVKV5KKN.js → KFPJI52X.js} +1 -1
- package/dist/cdn/KQLAAGKI.js +2 -0
- package/dist/cdn/{FDXE5JLT.js → LFXRCL7K.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{7ABIELGZ.js → M4ZJRIYM.js} +1 -1
- package/dist/cdn/M7QZTQSD.js +2 -0
- package/dist/cdn/{LZYN55O4.js → MBPFBE3E.js} +1 -1
- package/dist/cdn/MEA74C44.js +2 -0
- package/dist/cdn/{U2LJZ4ML.js → MVUIKY5Y.js} +1 -1
- package/dist/cdn/{3DK6M5E7.js → N673JFHK.js} +1 -1
- package/dist/cdn/NKVZYKL5.js +2 -0
- package/dist/cdn/O533LNDP.js +2 -0
- package/dist/cdn/O5NKLK7V.js +2 -0
- package/dist/cdn/PEYVSFSE.js +58 -0
- package/dist/cdn/{KOBNV5AQ.js → PKQOLKTW.js} +1 -1
- package/dist/cdn/{TNB3MBXR.js → Q2GW5LB7.js} +1 -1
- package/dist/cdn/QGEFY4ND.js +2 -0
- package/dist/cdn/{WASEMNYV.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/{R45FWF7D.js → QV3NMKKZ.js} +1 -1
- package/dist/cdn/REZ2QR42.js +2 -0
- package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/{PZGIXDMC.js → RKG6CXUU.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/SAYLTYWY.js +2 -0
- package/dist/cdn/SOGVYNPI.js +2 -0
- package/dist/cdn/SSKHF7PO.js +2 -0
- package/dist/cdn/{RAQZUMC6.js → T5TFLMQL.js} +1 -1
- package/dist/cdn/{23YH7MTF.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/{LDPHZHSF.js → TOFVWGTG.js} +1 -1
- package/dist/cdn/TSA7UMSZ.js +2 -0
- package/dist/cdn/{KI4HS3AM.js → U3MRRFML.js} +1 -1
- package/dist/cdn/VWTJHXHI.js +2 -0
- package/dist/cdn/{PSO5AURI.js → WHVW3P3O.js} +1 -1
- package/dist/cdn/{WEQBZOH7.js → WJHIJTWS.js} +1 -1
- package/dist/cdn/{CJ4POAPM.js → WU62O2AU.js} +1 -1
- package/dist/cdn/X7YEBHBF.js +2 -0
- package/dist/cdn/X7Z4LEZH.js +2 -0
- package/dist/cdn/XRLVJJBT.js +2 -0
- package/dist/cdn/XRP6IFM4.js +2 -0
- package/dist/cdn/{TYMKFCF4.js → Y6CFEFZM.js} +1 -1
- package/dist/cdn/{LONASKGH.js → YFHB2EFH.js} +1 -1
- package/dist/cdn/YQIFZJTZ.js +2 -0
- package/dist/cdn/{2K4ODNJ4.js → YWCIV7ZZ.js} +1 -1
- package/dist/cdn/{VEA5ZR5D.js → YWKPGNHB.js} +1 -1
- package/dist/cdn/{ZRFHAQL6.js → Z43DVT6G.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/main.css +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 +57 -57
- package/dist/chunks/heat-chart-model.js +46 -26
- package/dist/chunks/index2.js +2319 -2284
- 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/model-with-y-guides.js +6 -6
- 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 +572 -526
- package/dist/chunks/serial-chart-model.js +107 -93
- package/dist/chunks/utils.js +67 -56
- package/dist/chunks/web-component-utils.js +632 -492
- package/dist/components/arcgis-chart/customElement.d.ts +145 -138
- package/dist/components/arcgis-chart/customElement.js +7178 -7164
- 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 +23 -25
- 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 +50 -51
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
- 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 +35 -37
- 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 +54 -55
- 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 +18 -19
- 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/heat-chart-model/heat-chart-model.d.ts +22 -0
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
- 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/model/serial-chart-model/serial-chart-model.d.ts +15 -0
- 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 +1 -1
- package/dist/utils/chart-config/utils/index.d.ts +35 -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 +9 -12
- 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/24LTTBTF.js +0 -2
- 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/GES3HRXE.js +0 -2
- package/dist/cdn/HCV34H6X.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/JRRFLDWX.js +0 -58
- package/dist/cdn/KVGEY3IQ.js +0 -2
- 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/N524VXQ2.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/OE3UFORR.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/RX3RNE7F.js +0 -2
- package/dist/cdn/TU3UF32Y.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/chunks/time-zone.js +0 -38
- /package/dist/cdn/{XE3FKQFA.js → 3HAB3JR6.js} +0 -0
- /package/dist/cdn/{DCZWZOPF.js → 3YOOX2CV.js} +0 -0
- /package/dist/cdn/{IPM2XKST.js → 4DSO7LUF.js} +0 -0
- /package/dist/cdn/{FF4DUQDZ.js → 5HRLHWQ5.js} +0 -0
- /package/dist/cdn/{ETKPMU7Z.js → 732EZ6WJ.js} +0 -0
- /package/dist/cdn/{AWF4R7WL.js → 7IS6QE6S.js} +0 -0
- /package/dist/cdn/{HVO4LIXR.js → 7XZZ5OZL.js} +0 -0
- /package/dist/cdn/{5MEQANMY.js → AN2NRYQV.js} +0 -0
- /package/dist/cdn/{L4G6FO7A.js → ASUGYCJ6.js} +0 -0
- /package/dist/cdn/{AM2TOTX6.js → BICQEJYZ.js} +0 -0
- /package/dist/cdn/{5XTQQOTT.js → C2I4WPWM.js} +0 -0
- /package/dist/cdn/{CLXVAIQX.js → C47AIJTI.js} +0 -0
- /package/dist/cdn/{N6AOFBBX.js → C5YJ7J3A.js} +0 -0
- /package/dist/cdn/{QOOBNATX.js → DPV2ZJLF.js} +0 -0
- /package/dist/cdn/{CJPEW4LJ.js → E4535ZTP.js} +0 -0
- /package/dist/cdn/{XW4PBQNW.js → FJNRPAMO.js} +0 -0
- /package/dist/cdn/{JBHGSSHS.js → GI54JT4O.js} +0 -0
- /package/dist/cdn/{5YJNENER.js → GYTYFBNU.js} +0 -0
- /package/dist/cdn/{AJWYIBGC.js → J5QUGI2J.js} +0 -0
- /package/dist/cdn/{TF7TE7K5.js → JPEN5TFK.js} +0 -0
- /package/dist/cdn/{SBYD2EKR.js → KBQM3DLQ.js} +0 -0
- /package/dist/cdn/{7FZC3RZK.js → LEMJA72W.js} +0 -0
- /package/dist/cdn/{6XTKJ7DO.js → MMO2QPOA.js} +0 -0
- /package/dist/cdn/{BJDRJUEJ.js → PS7IL5JZ.js} +0 -0
- /package/dist/cdn/{E7OAEGSE.js → R2RRMPOC.js} +0 -0
- /package/dist/cdn/{YOT6DVSU.js → RV6E7KKQ.js} +0 -0
- /package/dist/cdn/{GV3TT7L5.js → RYLXJPKL.js} +0 -0
- /package/dist/cdn/{LFQGH44F.js → S2R72ISR.js} +0 -0
- /package/dist/cdn/{2HUAW34Q.js → T4NEEFOY.js} +0 -0
- /package/dist/cdn/{K3GNHGEW.js → TEERYUCS.js} +0 -0
- /package/dist/cdn/{A4GEWIPY.js → V454JYTQ.js} +0 -0
- /package/dist/cdn/{ZFZ5AEUQ.js → V7JF5I5M.js} +0 -0
- /package/dist/cdn/{KFONSKQF.js → VIZWWEG5.js} +0 -0
- /package/dist/cdn/{KZ7LPNX3.js → W5SPX6WM.js} +0 -0
- /package/dist/cdn/{JJIGLOJA.js → X2IOJECM.js} +0 -0
- /package/dist/cdn/{QMSINFQX.js → X33RIIGI.js} +0 -0
- /package/dist/cdn/{ZXOO3X5P.js → YBTVIOHQ.js} +0 -0
- /package/dist/cdn/{KUZR6CGB.js → YFQHZWLO.js} +0 -0
- /package/dist/cdn/{DKAHZ7IX.js → YX4EVVJM.js} +0 -0
- /package/dist/cdn/{DEGBVJ76.js → YXH22GJ6.js} +0 -0
- /package/dist/cdn/{A5AECJXP.js → ZMQTYGGT.js} +0 -0
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as F } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as d } from "lit/directives/repeat.js";
|
|
4
|
-
import { css as
|
|
4
|
+
import { css as T, html as l } from "lit";
|
|
5
5
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
6
|
-
import
|
|
7
|
-
import { LitElement as
|
|
6
|
+
import P from "@arcgis/core/Color.js";
|
|
7
|
+
import { LitElement as I, createEvent as h, safeClassMap as r, nothing as g, safeStyleMap as L } from "@arcgis/lumina";
|
|
8
8
|
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as S } from "lodash-es";
|
|
10
|
-
import { d as
|
|
11
|
-
import { u as
|
|
10
|
+
import { d as D, F as v } from "../../chunks/index3.js";
|
|
11
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
12
12
|
import { e as c, W as $ } from "../../chunks/interfaces.js";
|
|
13
|
-
import { c as y, b as
|
|
13
|
+
import { c as y, b as A, e as m } from "../../chunks/chart-ui-utils2.js";
|
|
14
14
|
import { C as x, k } from "../../chunks/class-breaks.js";
|
|
15
15
|
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import { r as _, i as R, e as C } from "../../chunks/chart-object-literals.js";
|
|
17
17
|
import { e as B } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { t as N, aB as M } from "../../chunks/index.js";
|
|
19
|
-
import {
|
|
20
|
-
const
|
|
21
|
-
jsAppFlyout: "js-app-flyout",
|
|
19
|
+
import { bb as H, bk as O } from "../../chunks/index2.js";
|
|
20
|
+
const q = T`.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}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
|
|
22
21
|
name: "bar-chart-data-popover",
|
|
23
22
|
header: "header",
|
|
24
|
-
|
|
23
|
+
popoverPickList: "popover-pick-list",
|
|
25
24
|
panel: "panel",
|
|
26
25
|
colorRampPopover: "color-ramp-popover",
|
|
27
26
|
colorRampToolbar: "color-ramp-toolbar",
|
|
@@ -35,15 +34,15 @@ const O = w`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
35
34
|
panelChildrenContainer: "panel-children-container",
|
|
36
35
|
colorRampPopoverFooter: "color-ramp-popover-footer"
|
|
37
36
|
};
|
|
38
|
-
class
|
|
37
|
+
class W extends I {
|
|
39
38
|
constructor() {
|
|
40
|
-
super(...arguments), this._messages =
|
|
39
|
+
super(...arguments), this._messages = b(), this.commonStrings = b({ name: "common", blocking: !0 }), this.picklist = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.availableColorRamps = [], this.selectedCategory = x.all, this.aggregationLabels = [], this.isFlipped = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigHeatChartColorRampChange = h(), this.arcgisChartsConfigHeatChartDataPopoverChange = h(), this.arcgisChartsConfigPopoverClose = h(), this.arcgisChartsConfigPopoverEmptyCellColorChange = h(), this.arcgisChartsConfigPopoverEmptyCellNameChange = h();
|
|
41
40
|
}
|
|
42
41
|
static {
|
|
43
42
|
this.properties = { availableColorRamps: 16, selectedColorRampName: 16, selectedCategory: 16, aggregationLabels: 16, isFlipped: 5, model: 0, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, colorRamps: 0 };
|
|
44
43
|
}
|
|
45
44
|
static {
|
|
46
|
-
this.styles =
|
|
45
|
+
this.styles = q;
|
|
47
46
|
}
|
|
48
47
|
async reposition() {
|
|
49
48
|
await this.popoverElement.value?.reposition();
|
|
@@ -55,30 +54,30 @@ class q extends T {
|
|
|
55
54
|
updated() {
|
|
56
55
|
setTimeout(() => {
|
|
57
56
|
this.picklist.value?.setFocus();
|
|
58
|
-
},
|
|
57
|
+
}, A.PopoverTimer), B(this.popoverElement.value, this.open);
|
|
59
58
|
}
|
|
60
59
|
buildAggregationListItems() {
|
|
61
|
-
return d(y.filter((e) => e !== _.NoAggregation), (e) => e, (e, t) =>
|
|
60
|
+
return d(y.filter((e) => e !== _.NoAggregation), (e) => e, (e, t) => l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e, this.selectedContent)}></calcite-list-item>`);
|
|
62
61
|
}
|
|
63
62
|
buildPickListItem(e) {
|
|
64
|
-
return f(e.name,
|
|
63
|
+
return f(e.name, l`<calcite-list-item .label=${D(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${m(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
65
64
|
}
|
|
66
65
|
buildPickListItems(e) {
|
|
67
66
|
const t = this.layerFieldsInfo?.length ?? 0, a = [];
|
|
68
67
|
switch (e) {
|
|
69
68
|
case c.numericFields: {
|
|
70
|
-
const i = f(" ",
|
|
69
|
+
const i = f(" ", l`<calcite-list-item label=" " value=" " .selected=${m("", this.selectedContent)}></calcite-list-item>`);
|
|
71
70
|
a.push(i);
|
|
72
|
-
for (let
|
|
73
|
-
const n = this.layerFieldsInfo?.[
|
|
74
|
-
n &&
|
|
71
|
+
for (let o = 0; o < t; o += 1) {
|
|
72
|
+
const n = this.layerFieldsInfo?.[o];
|
|
73
|
+
n && O(n) && a.push(this.buildPickListItem(n));
|
|
75
74
|
}
|
|
76
75
|
break;
|
|
77
76
|
}
|
|
78
77
|
case c.xAxisField: {
|
|
79
78
|
for (let i = 0; i < t; i += 1) {
|
|
80
|
-
const
|
|
81
|
-
|
|
79
|
+
const o = this.layerFieldsInfo?.[i];
|
|
80
|
+
o && H(o) && a.push(this.buildPickListItem(o));
|
|
82
81
|
}
|
|
83
82
|
break;
|
|
84
83
|
}
|
|
@@ -114,16 +113,16 @@ class q extends T {
|
|
|
114
113
|
let t = "#000000";
|
|
115
114
|
try {
|
|
116
115
|
if (e) {
|
|
117
|
-
if (e instanceof
|
|
116
|
+
if (e instanceof P) {
|
|
118
117
|
const a = e.toHex();
|
|
119
118
|
typeof a == "string" && a.length && (t = a);
|
|
120
119
|
} else if (Array.isArray(e)) {
|
|
121
|
-
const [a, i,
|
|
122
|
-
[a, i,
|
|
120
|
+
const [a, i, o, n] = e;
|
|
121
|
+
[a, i, o].every((w) => typeof w == "number") && (t = `rgba(${a},${i},${o},${n ?? 1})`);
|
|
123
122
|
} else if (typeof e == "object" && e) {
|
|
124
|
-
const { r: a, g: i, b:
|
|
125
|
-
if (a != null && i != null &&
|
|
126
|
-
return `rgba(${a},${i},${
|
|
123
|
+
const { r: a, g: i, b: o, a: n } = e;
|
|
124
|
+
if (a != null && i != null && o != null)
|
|
125
|
+
return `rgba(${a},${i},${o},${n ?? 1})`;
|
|
127
126
|
}
|
|
128
127
|
}
|
|
129
128
|
} catch {
|
|
@@ -164,34 +163,34 @@ class q extends T {
|
|
|
164
163
|
this.model.emptyCellText !== t && (this.model.emptyCellText = t, this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({ name: t }));
|
|
165
164
|
}
|
|
166
165
|
colorChange(e) {
|
|
167
|
-
const t = e instanceof CustomEvent ? e.detail : e, [a, i,
|
|
168
|
-
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i,
|
|
166
|
+
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n = M * 255;
|
|
167
|
+
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i, o, n] });
|
|
169
168
|
}
|
|
170
169
|
renderAggregationType() {
|
|
171
170
|
const e = this.buildAggregationListItems();
|
|
172
|
-
return
|
|
171
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
173
172
|
}
|
|
174
173
|
renderXAxisFieldSelect() {
|
|
175
174
|
const e = this.buildPickListItems(c.xAxisField);
|
|
176
|
-
return
|
|
175
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
177
176
|
}
|
|
178
177
|
renderNumericFields() {
|
|
179
178
|
const e = this.buildPickListItems(c.numericFields);
|
|
180
|
-
return
|
|
179
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
181
180
|
}
|
|
182
181
|
renderCalendarType() {
|
|
183
182
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !== E.DateOnly), a = d(t, (i) => i, (i) => {
|
|
184
|
-
const
|
|
185
|
-
return
|
|
183
|
+
const o = this._messages[i];
|
|
184
|
+
return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i, this.selectedContent)}></calcite-list-item>`;
|
|
186
185
|
});
|
|
187
|
-
return
|
|
186
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${a}</calcite-list>`;
|
|
188
187
|
}
|
|
189
188
|
renderCalendarViewType() {
|
|
190
189
|
const e = d(Object.values(R), (t) => t, (t) => {
|
|
191
190
|
const a = this._messages[t];
|
|
192
|
-
return
|
|
191
|
+
return l`<calcite-list-item .label=${a} .value=${t} .disabled=${t !== R.singleCalendarView} .selected=${m(t, this.selectedContent)}></calcite-list-item>`;
|
|
193
192
|
});
|
|
194
|
-
return
|
|
193
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
195
194
|
}
|
|
196
195
|
renderClassBreakMethod() {
|
|
197
196
|
const e = [
|
|
@@ -211,10 +210,10 @@ class q extends T {
|
|
|
211
210
|
msg: this._messages?.classBreaksMethod?.quantileMsg
|
|
212
211
|
}
|
|
213
212
|
], t = d(Object.values(e), ({ value: a }) => a, (a) => {
|
|
214
|
-
const { title: i, msg:
|
|
215
|
-
return
|
|
213
|
+
const { title: i, msg: o, value: n } = a;
|
|
214
|
+
return l`<calcite-list-item .label=${i} .description=${o} .value=${n} .selected=${m(n, this.selectedContent)}></calcite-list-item>`;
|
|
216
215
|
});
|
|
217
|
-
return
|
|
216
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${t}</calcite-list>`;
|
|
218
217
|
}
|
|
219
218
|
renderPopoverInfo() {
|
|
220
219
|
let e;
|
|
@@ -244,27 +243,27 @@ class q extends T {
|
|
|
244
243
|
e = this.renderEmptyCellUI();
|
|
245
244
|
break;
|
|
246
245
|
default:
|
|
247
|
-
e =
|
|
246
|
+
e = l`<div></div>`;
|
|
248
247
|
break;
|
|
249
248
|
}
|
|
250
249
|
return e;
|
|
251
250
|
}
|
|
252
251
|
renderColorRampSelect() {
|
|
253
252
|
const e = this.filterColorRamps(), t = this._messages?.colorRampCategories ? this._messages.colorRampCategories[this.selectedCategory] : this.selectedCategory;
|
|
254
|
-
return
|
|
255
|
-
const i = this.getRampColors(a),
|
|
256
|
-
return
|
|
253
|
+
return l`<div class=${r(s.colorRampPopover)}><div class=${r(s.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories ?? "All color ramps" ?? g}>${Object.keys(k).map((a) => l`<calcite-dropdown-item data-tag=${a ?? g} .selected=${this.selectedCategory === a}>${this._messages?.colorRampCategories ? this._messages.colorRampCategories[a] : a}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${this.onFlipAll}>${this._messages?.colorRamp?.flipRampColors}</calcite-button></div><div class=${r(s.rampGrid)}>${e.length === 0 && l`<div class=${r(s.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${this.selectedCategory !== "all" ? `"${this.selectedCategory}"` : ""}</div>` || ""}${e.map((a) => {
|
|
254
|
+
const i = this.getRampColors(a), o = a.name === this.selectedColorRampName;
|
|
255
|
+
return l`<div class=${`${s.rampItem} ${o ? "selected" : ""}`} title=${a.name ?? g} @click=${() => this.onRampSelect(a)}><div class=${r(s.rampName)} aria-hidden=true>${a.name}</div><div class=${r(s.rampStrips)}>${d(i, (n) => n, (n) => l`<div class=${r(s.rampStrip)} style=${L({ backgroundColor: this.rampColorToCss(n) })}></div>`)}${i.length === 0 && l`<div class=${`${s.rampStrip} ${s.rampStripFallback}`}></div>` || ""}</div></div>`;
|
|
257
256
|
})}</div><div class=${r(s.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`;
|
|
258
257
|
}
|
|
259
258
|
renderEmptyCellUI() {
|
|
260
|
-
const e = this.model.emptyCellSymbol?.color ??
|
|
261
|
-
return
|
|
259
|
+
const e = this.model.emptyCellSymbol?.color ?? v.grayColor, t = this.model.emptyCellText ?? v.nullCategory?.text ?? "";
|
|
260
|
+
return l`<div><div class=${r(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${r(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`;
|
|
262
261
|
}
|
|
263
262
|
render() {
|
|
264
|
-
return
|
|
263
|
+
return l`<div><calcite-popover class=${r(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`;
|
|
265
264
|
}
|
|
266
265
|
}
|
|
267
|
-
|
|
266
|
+
F("arcgis-charts-config-heat-chart-popover", W);
|
|
268
267
|
export {
|
|
269
|
-
|
|
268
|
+
W as ArcgisChartsConfigHeatChartPopover
|
|
270
269
|
};
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { isEqual as r } from "lodash-es";
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
|
-
import { css as h, html as
|
|
6
|
-
import { C as
|
|
7
|
-
import { ac as d,
|
|
8
|
-
import { p as
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { css as h, html as i } from "lit";
|
|
6
|
+
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
+
import { ac as d, bw as c, aw as m, I as f } from "../../chunks/index2.js";
|
|
8
|
+
import { p as g, h as p } from "../../chunks/index5.js";
|
|
9
|
+
import { c as u } from "../../chunks/type-guards.js";
|
|
10
|
+
const C = h`: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 y extends n {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
13
14
|
const s = e?.detail.config ?? this.model.config;
|
|
@@ -18,7 +19,7 @@ class u extends n {
|
|
|
18
19
|
this.properties = { layerFieldsInfo: 16, model: 0, chartData: 0, seriesColor: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5 };
|
|
19
20
|
}
|
|
20
21
|
static {
|
|
21
|
-
this.styles =
|
|
22
|
+
this.styles = C;
|
|
22
23
|
}
|
|
23
24
|
async load() {
|
|
24
25
|
this.seriesColor !== void 0 && this.seriesColorChange(this.seriesColor), await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
|
|
@@ -35,35 +36,39 @@ class u extends n {
|
|
|
35
36
|
}
|
|
36
37
|
seriesColorChange(e) {
|
|
37
38
|
this.model.colorMatch && e?.forEach((a) => {
|
|
38
|
-
|
|
39
|
+
g(a) && e?.get(0) !== void 0 && !r(this.model.binSymbol, a) && (this.model.binSymbol = a);
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
42
|
async updateFetchLayerFieldsInfo(e) {
|
|
42
43
|
const a = e ?? this.model.config;
|
|
43
44
|
let s = this.layer;
|
|
44
45
|
if (!s) {
|
|
45
|
-
const
|
|
46
|
-
|
|
46
|
+
const t = p(a) ? a.iLayer : void 0;
|
|
47
|
+
t && (s = await d(t));
|
|
48
|
+
}
|
|
49
|
+
if (s) {
|
|
50
|
+
await c(s);
|
|
51
|
+
const t = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
|
|
52
|
+
this.layerFieldsInfo = u(s) ? m({ layer: s, popupTemplateFieldInfosEnabled: t, chartType: a?.type }) : f(s, t);
|
|
47
53
|
}
|
|
48
|
-
s && (await c(s), this.layerFieldsInfo = m(s, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
|
|
49
54
|
}
|
|
50
55
|
render() {
|
|
51
56
|
let e;
|
|
52
57
|
switch (this.page) {
|
|
53
|
-
case
|
|
54
|
-
e =
|
|
58
|
+
case o.Data:
|
|
59
|
+
e = i`<arcgis-charts-config-histogram-data .model=${this.model} .meanValue=${this.chartData?.mean} .medianValue=${this.chartData?.median} .standardDevValue=${this.chartData?.stddev} .minValue=${this.chartData?.min} .maxValue=${this.chartData?.max} .sumValue=${this.chartData?.sum} .nullsValue=${this.chartData?.nulls} .countValue=${this.chartData?.count} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-histogram-data>`;
|
|
55
60
|
break;
|
|
56
|
-
case
|
|
57
|
-
e =
|
|
61
|
+
case o.Axes:
|
|
62
|
+
e = i`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;
|
|
58
63
|
break;
|
|
59
|
-
case
|
|
60
|
-
e =
|
|
64
|
+
case o.Guides:
|
|
65
|
+
e = i`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;
|
|
61
66
|
break;
|
|
62
|
-
case
|
|
63
|
-
e =
|
|
67
|
+
case o.Format:
|
|
68
|
+
e = i`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;
|
|
64
69
|
break;
|
|
65
|
-
case
|
|
66
|
-
e =
|
|
70
|
+
case o.General:
|
|
71
|
+
e = i`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;
|
|
67
72
|
break;
|
|
68
73
|
default:
|
|
69
74
|
e = "";
|
|
@@ -72,7 +77,7 @@ class u extends n {
|
|
|
72
77
|
return e;
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
|
-
l("arcgis-charts-config-histogram",
|
|
80
|
+
l("arcgis-charts-config-histogram", y);
|
|
76
81
|
export {
|
|
77
|
-
|
|
82
|
+
y as ArcgisChartsConfigHistogram
|
|
78
83
|
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
3
|
+
import { css as v, html as t } from "lit";
|
|
4
4
|
import { keyed as c } from "lit/directives/keyed.js";
|
|
5
|
-
import { H as
|
|
6
|
-
import { b as
|
|
5
|
+
import { H as i } from "../../chunks/interfaces.js";
|
|
6
|
+
import { b as y, o as C } from "../../chunks/chart-ui-utils2.js";
|
|
7
7
|
import { u } from "../../chunks/useT9n.js";
|
|
8
8
|
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
9
|
-
import { LitElement as b, createEvent as p, safeClassMap as
|
|
9
|
+
import { LitElement as b, createEvent as p, safeClassMap as o } from "@arcgis/lumina";
|
|
10
10
|
import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import { g as
|
|
11
|
+
import { g as s } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { d as S } from "../../chunks/index3.js";
|
|
14
|
-
import {
|
|
15
|
-
import { aB as
|
|
16
|
-
const
|
|
14
|
+
import { bk as k } from "../../chunks/index2.js";
|
|
15
|
+
import { aB as T } from "../../chunks/index.js";
|
|
16
|
+
const l = {
|
|
17
17
|
symbolPropertyPopover: "symbol-property-popover",
|
|
18
18
|
colorPicker: "color-picker",
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
20
19
|
header: "header",
|
|
21
|
-
|
|
20
|
+
popoverPickList: "popover-pick-list",
|
|
22
21
|
fieldSelectPanel: "field-select-panel",
|
|
23
22
|
transformationPanel: "transformation-panel"
|
|
24
|
-
},
|
|
25
|
-
class
|
|
23
|
+
}, w = v`.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)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem;padding:0 1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`;
|
|
24
|
+
class x extends b {
|
|
26
25
|
constructor() {
|
|
27
26
|
super(...arguments), this._messages = u(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
|
|
28
27
|
}
|
|
@@ -30,7 +29,7 @@ class F extends b {
|
|
|
30
29
|
this.properties = { messageOverrides: 0, layerFieldsInfo: 0, headingTitle: 1, selectedNumericField: 1, selectedTransformationType: 1, selectedOverlaySymbol: 0, selectedBinColor: 0, referenceElement: 0, contentKind: 1, placement: 1, open: 5, selectedOverlaySymbolType: 1 };
|
|
31
30
|
}
|
|
32
31
|
static {
|
|
33
|
-
this.styles =
|
|
32
|
+
this.styles = w;
|
|
34
33
|
}
|
|
35
34
|
async reposition() {
|
|
36
35
|
await this.popoverElement.value?.reposition();
|
|
@@ -38,27 +37,27 @@ class F extends b {
|
|
|
38
37
|
updated() {
|
|
39
38
|
setTimeout(() => {
|
|
40
39
|
this.picklist.value?.setFocus();
|
|
41
|
-
},
|
|
40
|
+
}, y.PopoverTimer), P(this.popoverElement.value, this.open);
|
|
42
41
|
}
|
|
43
42
|
buildPickListItems(e) {
|
|
44
43
|
const n = [];
|
|
45
|
-
if (e ===
|
|
44
|
+
if (e === i.numericFields)
|
|
46
45
|
for (let r = 0; r < this.layerFieldsInfo?.length; r += 1) {
|
|
47
46
|
const a = this.layerFieldsInfo[r];
|
|
48
|
-
k(a) && n.push(c(a.name,
|
|
47
|
+
k(a) && n.push(c(a.name, t`<calcite-list-item .label=${S(this.layerFieldsInfo, a.name)} .value=${a.name} .selected=${this.selectedNumericField === a.name}></calcite-list-item>`));
|
|
49
48
|
}
|
|
50
49
|
else {
|
|
51
50
|
const r = [
|
|
52
|
-
c(
|
|
53
|
-
c(
|
|
54
|
-
c(
|
|
51
|
+
c(s.None, t`<calcite-list-item .label=${this._messages.none} .value=${s.None} .selected=${this.selectedTransformationType === s.None}></calcite-list-item>`),
|
|
52
|
+
c(s.Log, t`<calcite-list-item .label=${this._messages.log} .value=${s.Log} .selected=${this.selectedTransformationType === s.Log}></calcite-list-item>`),
|
|
53
|
+
c(s.Sqrt, t`<calcite-list-item .label=${this._messages.sqRt} .value=${s.Sqrt} .selected=${this.selectedTransformationType === s.Sqrt}></calcite-list-item>`)
|
|
55
54
|
];
|
|
56
55
|
n.push(...r);
|
|
57
56
|
}
|
|
58
57
|
return n;
|
|
59
58
|
}
|
|
60
59
|
getPopoverClass() {
|
|
61
|
-
return this.contentKind ===
|
|
60
|
+
return this.contentKind === i.fillSymbol || this.contentKind === i.lineSymbol ? l.symbolPropertyPopover : "";
|
|
62
61
|
}
|
|
63
62
|
closePopover() {
|
|
64
63
|
(this.open || this.popoverElement.value?.open === !1) && (this.open = !1, this.arcgisChartsConfigPopoverClose.emit());
|
|
@@ -67,7 +66,7 @@ class F extends b {
|
|
|
67
66
|
this.arcgisChartsConfigHistogramPopoverSymbolChange.emit(e.detail);
|
|
68
67
|
}
|
|
69
68
|
fillColorChange(e) {
|
|
70
|
-
const n = e.detail, [r, a, d] = n, g =
|
|
69
|
+
const n = e.detail, [r, a, d] = n, g = T * 255;
|
|
71
70
|
this.arcgisChartsConfigHistogramPopoverSymbolChange.emit({
|
|
72
71
|
type: $.SFS,
|
|
73
72
|
color: [r, a, d, g]
|
|
@@ -80,38 +79,38 @@ class F extends b {
|
|
|
80
79
|
}), this.open = !1);
|
|
81
80
|
}
|
|
82
81
|
renderFillColor() {
|
|
83
|
-
return
|
|
82
|
+
return t`<arcgis-charts-config-color-style class=${o(l.colorPicker)} .header=${this.headingTitle ?? this._messages.fillColor} enable-close .open=${this.open} .selectedColor=${this.selectedBinColor?.color} @arcgisChartsConfigColorStyleChange=${this.fillColorChange} @arcgisChartsConfigColorStyleClose=${this.closePopover}></arcgis-charts-config-color-style>`;
|
|
84
83
|
}
|
|
85
84
|
renderOverlayStyle() {
|
|
86
|
-
return
|
|
85
|
+
return t`<arcgis-charts-config-line-style class=${o(l.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle ?? this._messages.lineStyle} .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`;
|
|
87
86
|
}
|
|
88
87
|
renderFieldSelect() {
|
|
89
|
-
const e = this.buildPickListItems(
|
|
90
|
-
return
|
|
88
|
+
const e = this.buildPickListItems(i.numericFields);
|
|
89
|
+
return t`<calcite-panel class=${o(l.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(l.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${o(l.popoverPickList)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`;
|
|
91
90
|
}
|
|
92
91
|
renderTransformationSelect() {
|
|
93
|
-
const e = this.buildPickListItems(
|
|
94
|
-
return
|
|
92
|
+
const e = this.buildPickListItems(i.transformation);
|
|
93
|
+
return t`<calcite-panel class=${o(l.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(l.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${o(l.popoverPickList)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`;
|
|
95
94
|
}
|
|
96
95
|
render() {
|
|
97
|
-
return
|
|
96
|
+
return t`<div><calcite-popover class=${o(this.getPopoverClass())} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${C(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`;
|
|
98
97
|
}
|
|
99
98
|
renderContentType() {
|
|
100
99
|
switch (this.contentKind) {
|
|
101
|
-
case
|
|
100
|
+
case i.fillSymbol:
|
|
102
101
|
return this.renderFillColor();
|
|
103
|
-
case
|
|
102
|
+
case i.lineSymbol:
|
|
104
103
|
return this.renderOverlayStyle();
|
|
105
|
-
case
|
|
104
|
+
case i.numericFields:
|
|
106
105
|
return this.renderFieldSelect();
|
|
107
|
-
case
|
|
106
|
+
case i.transformation:
|
|
108
107
|
return this.renderTransformationSelect();
|
|
109
108
|
default:
|
|
110
109
|
return;
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
|
-
f("arcgis-charts-config-histogram-popover",
|
|
113
|
+
f("arcgis-charts-config-histogram-popover", x);
|
|
115
114
|
export {
|
|
116
|
-
|
|
115
|
+
x as ArcgisChartsConfigHistogramPopover
|
|
117
116
|
};
|
|
@@ -4,7 +4,7 @@ import { isEqual as a } from "lodash-es";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import { ac as c, I as m,
|
|
7
|
+
import { ac as c, I as m, bk as f, bb as g } from "../../chunks/index2.js";
|
|
8
8
|
import { h as p } from "../../chunks/index5.js";
|
|
9
9
|
const u = h`: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%}`;
|
|
10
10
|
class C extends n {
|
|
@@ -12,7 +12,7 @@ import { x as E } from "../../chunks/data.js";
|
|
|
12
12
|
import { r as c, s as f, m as h } from "../../chunks/chart-object-literals.js";
|
|
13
13
|
import { t as L, ag as P } from "../../chunks/index.js";
|
|
14
14
|
import { d as v, m as w } from "../../chunks/index3.js";
|
|
15
|
-
import { an as C,
|
|
15
|
+
import { an as C, bb as _ } from "../../chunks/index2.js";
|
|
16
16
|
import { r as N } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
const D = I`.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:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
18
18
|
label: "label",
|
|
@@ -130,7 +130,7 @@ class U extends x {
|
|
|
130
130
|
this.model.trimIncompleteTimeInterval = e.target.checked;
|
|
131
131
|
}
|
|
132
132
|
onNullPolicyChange(e) {
|
|
133
|
-
this.model.nullPolicy = e.target.selectedItem
|
|
133
|
+
this.model.nullPolicy = e.target.selectedItem?.value;
|
|
134
134
|
}
|
|
135
135
|
shouldShowTimeBinning() {
|
|
136
136
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !== c.NoAggregation;
|