@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
|
@@ -169,6 +169,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
|
|
|
169
169
|
};
|
|
170
170
|
notifications: {
|
|
171
171
|
invalidConfig: string;
|
|
172
|
+
invalidConfigForRaster: string;
|
|
173
|
+
invalidConfigTitle: string;
|
|
172
174
|
invalidSeriesConfig: string;
|
|
173
175
|
invalidSeriesConfigTitle: string;
|
|
174
176
|
validateAggregationTypeMsg: string;
|
|
@@ -434,6 +436,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
|
|
|
434
436
|
};
|
|
435
437
|
notifications: {
|
|
436
438
|
invalidConfig: string;
|
|
439
|
+
invalidConfigForRaster: string;
|
|
440
|
+
invalidConfigTitle: string;
|
|
437
441
|
invalidSeriesConfig: string;
|
|
438
442
|
invalidSeriesConfigTitle: string;
|
|
439
443
|
validateAggregationTypeMsg: string;
|
|
@@ -4,7 +4,7 @@ import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as c, html as s } from "lit";
|
|
5
5
|
import { isEqual as r } from "lodash-es";
|
|
6
6
|
import { C as t } from "../../chunks/interfaces.js";
|
|
7
|
-
import { ac as h,
|
|
7
|
+
import { ac as h, bw as f, I as p, bb as g } from "../../chunks/index2.js";
|
|
8
8
|
import { p as m, h as u } from "../../chunks/index5.js";
|
|
9
9
|
const C = c`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class F extends n {
|
|
@@ -12,7 +12,7 @@ import { createRef as c, ref as m } from "lit/directives/ref.js";
|
|
|
12
12
|
import { LitElement as U, createEvent as b, safeClassMap as l, renderElement as V } from "@arcgis/lumina";
|
|
13
13
|
import { d as S, f as z, F as M, C as F, m as R } from "../../chunks/index3.js";
|
|
14
14
|
import { x as K } from "../../chunks/data.js";
|
|
15
|
-
import { an as B, k as j, Y as A,
|
|
15
|
+
import { an as B, k as j, Y as A, bb as H } from "../../chunks/index2.js";
|
|
16
16
|
import { t as q, ag as W } from "../../chunks/index.js";
|
|
17
17
|
import { r as Z } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { r as d, s as L, u as C, m as f } from "../../chunks/chart-object-literals.js";
|
|
@@ -112,7 +112,7 @@ class Y extends U {
|
|
|
112
112
|
onCalciteListOrderChange(e) {
|
|
113
113
|
if (e.detail !== null && e.detail !== void 0) {
|
|
114
114
|
const { newIndex: t, oldIndex: i } = e.detail;
|
|
115
|
-
this.model.moveCustomSortValuesInOrderByList(i, t);
|
|
115
|
+
this.model.moveCustomSortValuesInOrderByList(i ?? 0, t ?? i ?? 0);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
onCustomSortItemSelected(e) {
|
|
@@ -235,7 +235,7 @@ class Y extends U {
|
|
|
235
235
|
this.model.trimIncompleteTimeInterval = e.target.checked;
|
|
236
236
|
}
|
|
237
237
|
onNullPolicyChange(e) {
|
|
238
|
-
this.model.nullPolicy = e.target.selectedItem
|
|
238
|
+
this.model.nullPolicy = e.target.selectedItem?.value;
|
|
239
239
|
}
|
|
240
240
|
shouldShowTimeBinning() {
|
|
241
241
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !== d.NoAggregation;
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { repeat as
|
|
2
|
+
import { c as S } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as u } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { substitute as
|
|
7
|
-
import { css as
|
|
5
|
+
import { LitElement as T, createEvent as C, renderElement as F, safeStyleMap as A, safeClassMap as c } from "@arcgis/lumina";
|
|
6
|
+
import { substitute as D } from "@arcgis/core/intl.js";
|
|
7
|
+
import { css as P, html as a } from "lit";
|
|
8
8
|
import { createRef as g, ref as d } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as y } from "lodash-es";
|
|
10
10
|
import { u as $ } from "../../chunks/useT9n.js";
|
|
11
11
|
import { B as n } from "../../chunks/interfaces.js";
|
|
12
12
|
import { c as v, b as L, e as h, a as x, f as E, s as z } from "../../chunks/chart-ui-utils2.js";
|
|
13
13
|
import { R as k } from "../../chunks/rest-js-object-literals.js";
|
|
14
|
-
import { t as
|
|
14
|
+
import { t as b, r as N, s as p } from "../../chunks/chart-object-literals.js";
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
16
|
import { e as w, p as B } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
import { t as K, ag as _ } from "../../chunks/index.js";
|
|
18
|
-
import { a2 as
|
|
19
|
-
import { d as
|
|
20
|
-
const R =
|
|
21
|
-
jsAppFlyout: "js-app-flyout",
|
|
18
|
+
import { a2 as O, bh as I, bb as H, bu as M, bk as U } from "../../chunks/index2.js";
|
|
19
|
+
import { d as W, m as j } from "../../chunks/index3.js";
|
|
20
|
+
const R = P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, r = {
|
|
22
21
|
name: "bar-chart-data-popover",
|
|
23
|
-
numericFieldPickList: "bar-chart-data-numeric-fields-pick-list",
|
|
24
22
|
header: "header",
|
|
25
23
|
fab: "fab",
|
|
26
24
|
pickListItemLabel: "pick-list-item-label",
|
|
@@ -30,7 +28,7 @@ const R = D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
30
28
|
applyButton: "apply-button",
|
|
31
29
|
panel: "panel"
|
|
32
30
|
};
|
|
33
|
-
class q extends
|
|
31
|
+
class q extends T {
|
|
34
32
|
constructor() {
|
|
35
33
|
super(...arguments), this._messages = $(), this.commonStrings = $({ name: "common", blocking: !0 }), this.picklist = g(), this.intervalSizeElement = g(), this.intervalTypeElement = g(), this.popoverElement = g(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.isNoAggregationDisabled = !1, this.arcgisChartsConfigBarChartDataPopoverChange = C(), this.arcgisChartsConfigPopoverClose = C();
|
|
36
34
|
}
|
|
@@ -47,7 +45,7 @@ class q extends S {
|
|
|
47
45
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
48
46
|
const t = v.map((s) => K(s, this.commonStrings));
|
|
49
47
|
y(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
50
|
-
const l = [
|
|
48
|
+
const l = [b.Start, b.End].map((s) => _(s, this.commonStrings));
|
|
51
49
|
y(this.timeAggregationLabels, l) || (this.timeAggregationLabels = l);
|
|
52
50
|
}
|
|
53
51
|
updated() {
|
|
@@ -60,14 +58,14 @@ class q extends S {
|
|
|
60
58
|
}
|
|
61
59
|
buildAggregationListItems() {
|
|
62
60
|
const e = this.isNoAggregationDisabled ? v.filter((t) => t !== N.NoAggregation) : v;
|
|
63
|
-
return
|
|
61
|
+
return u(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.aggregationLabels[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
|
|
64
62
|
}
|
|
65
63
|
createTooltip(e) {
|
|
66
64
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
67
|
-
const t = e.target, i =
|
|
65
|
+
const t = e.target, i = O(t), s = new Intl.NumberFormat(i).format(L.customSortLimit), o = D(this._messages.customSortLimit ?? "", {
|
|
68
66
|
totalLimit: s
|
|
69
67
|
});
|
|
70
|
-
this.tooltip =
|
|
68
|
+
this.tooltip = F(a`<calcite-tooltip style=${A({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${o}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
destroyTooltip() {
|
|
@@ -76,7 +74,7 @@ class q extends S {
|
|
|
76
74
|
buildSortOrder() {
|
|
77
75
|
const e = Object.keys(m);
|
|
78
76
|
let t;
|
|
79
|
-
return
|
|
77
|
+
return u(e, (i) => i, (i) => {
|
|
80
78
|
let l = "";
|
|
81
79
|
switch (i) {
|
|
82
80
|
case m.xAxisAsc: {
|
|
@@ -88,11 +86,11 @@ class q extends S {
|
|
|
88
86
|
break;
|
|
89
87
|
}
|
|
90
88
|
case m.yAxisAsc: {
|
|
91
|
-
t = "sort-descending", l =
|
|
89
|
+
t = "sort-descending", l = r.rotateClass;
|
|
92
90
|
break;
|
|
93
91
|
}
|
|
94
92
|
case m.yAxisDesc: {
|
|
95
|
-
t = "sort-ascending", l =
|
|
93
|
+
t = "sort-ascending", l = r.rotateClass;
|
|
96
94
|
break;
|
|
97
95
|
}
|
|
98
96
|
case m.customSort: {
|
|
@@ -104,7 +102,7 @@ class q extends S {
|
|
|
104
102
|
});
|
|
105
103
|
}
|
|
106
104
|
buildPickListItem(e) {
|
|
107
|
-
return f(e.name, a`<calcite-list-item .label=${
|
|
105
|
+
return f(e.name, a`<calcite-list-item .label=${W(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
108
106
|
}
|
|
109
107
|
buildPickListItems(e) {
|
|
110
108
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
@@ -112,7 +110,7 @@ class q extends S {
|
|
|
112
110
|
case n.numericFields: {
|
|
113
111
|
for (let l = 0; l < t; l += 1) {
|
|
114
112
|
const s = this.layerFieldsInfo?.[l];
|
|
115
|
-
s &&
|
|
113
|
+
s && U(s) && i.push(this.buildPickListItem(s));
|
|
116
114
|
}
|
|
117
115
|
break;
|
|
118
116
|
}
|
|
@@ -120,8 +118,8 @@ class q extends S {
|
|
|
120
118
|
const l = f(" ", a`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
121
119
|
i.push(l);
|
|
122
120
|
for (let s = 0; s < t; s += 1) {
|
|
123
|
-
const
|
|
124
|
-
|
|
121
|
+
const o = this.layerFieldsInfo?.[s];
|
|
122
|
+
o && (o.type === k.String || I(o) || H(o) || M(o)) && i.push(this.buildPickListItem(o));
|
|
125
123
|
}
|
|
126
124
|
break;
|
|
127
125
|
}
|
|
@@ -129,8 +127,8 @@ class q extends S {
|
|
|
129
127
|
const l = f(" ", a`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
130
128
|
i.push(l);
|
|
131
129
|
for (let s = 0; s < t; s += 1) {
|
|
132
|
-
const
|
|
133
|
-
|
|
130
|
+
const o = this.layerFieldsInfo?.[s];
|
|
131
|
+
o && (I(o) || o.type === k.String) && i.push(this.buildPickListItem(o));
|
|
134
132
|
}
|
|
135
133
|
break;
|
|
136
134
|
}
|
|
@@ -169,32 +167,32 @@ class q extends S {
|
|
|
169
167
|
this.closePopover();
|
|
170
168
|
}
|
|
171
169
|
buildIntervalAlignmentPickListItems() {
|
|
172
|
-
const e = [
|
|
173
|
-
return
|
|
170
|
+
const e = [b.Start, b.End];
|
|
171
|
+
return u(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.timeAggregationLabels?.[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
|
|
174
172
|
}
|
|
175
173
|
renderAggregationType() {
|
|
176
174
|
const e = this.buildAggregationListItems();
|
|
177
|
-
return a`<calcite-list label class=${c(
|
|
175
|
+
return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
178
176
|
}
|
|
179
177
|
renderCategory() {
|
|
180
178
|
const e = this.buildPickListItems(n.category);
|
|
181
|
-
return a`<calcite-list label class=${c(
|
|
179
|
+
return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
182
180
|
}
|
|
183
181
|
renderNumericFields() {
|
|
184
182
|
const e = this.buildPickListItems(n.numericFields);
|
|
185
|
-
return a`<calcite-list label
|
|
183
|
+
return a`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
186
184
|
}
|
|
187
185
|
renderSortOrder() {
|
|
188
186
|
const e = this.buildSortOrder();
|
|
189
|
-
return a`<calcite-list label class=${c(
|
|
187
|
+
return a`<calcite-list label class=${c(r.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
190
188
|
}
|
|
191
189
|
renderSplitByField() {
|
|
192
190
|
const e = this.buildPickListItems(n.splitByField);
|
|
193
|
-
return a`<calcite-list label class=${c(
|
|
191
|
+
return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
194
192
|
}
|
|
195
193
|
renderIntervalAlignment() {
|
|
196
194
|
const e = this.buildIntervalAlignmentPickListItems();
|
|
197
|
-
return a`<calcite-list label class=${c(
|
|
195
|
+
return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
198
196
|
}
|
|
199
197
|
renderInterval() {
|
|
200
198
|
const e = this.selectedContent, t = [
|
|
@@ -206,7 +204,7 @@ class q extends S {
|
|
|
206
204
|
p.Month,
|
|
207
205
|
p.Year
|
|
208
206
|
];
|
|
209
|
-
return a`<div><div class=${c(
|
|
207
|
+
return a`<div><div class=${c(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${z(e?.size, 1)} ${d(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${d(this.intervalTypeElement)}>${t.map((i) => a`<calcite-option .value=${i} .label=${j(i, this._messages)} .selected=${e?.unit === i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${c(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
210
208
|
}
|
|
211
209
|
renderPopoverInfo() {
|
|
212
210
|
let e;
|
|
@@ -237,10 +235,10 @@ class q extends S {
|
|
|
237
235
|
}
|
|
238
236
|
render() {
|
|
239
237
|
let e;
|
|
240
|
-
return this.contentKind === n.numericFields && (e = a`<div slot=footer><calcite-fab class=${c(
|
|
238
|
+
return this.contentKind === n.numericFields && (e = a`<div slot=footer><calcite-fab class=${c(r.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>`), a`<div><calcite-popover class=${c(r.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${d(this.popoverElement)}><calcite-panel class=${c(r.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(r.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
241
239
|
}
|
|
242
240
|
}
|
|
243
|
-
|
|
241
|
+
S("arcgis-charts-config-bar-chart-popover", q);
|
|
244
242
|
export {
|
|
245
243
|
q as ArcgisChartsConfigBarChartPopover
|
|
246
244
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as k } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as x } from "lit/directives/keyed.js";
|
|
4
|
-
import { repeat as
|
|
5
|
-
import { u as
|
|
4
|
+
import { repeat as P } from "lit/directives/repeat.js";
|
|
5
|
+
import { u as T } from "../../chunks/useT9n.js";
|
|
6
6
|
import { css as L, html as l } from "lit";
|
|
7
7
|
import { LitElement as M, createEvent as N, renderElement as u, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
|
|
8
8
|
import { a as O } from "../../chunks/chart-ui-utils2.js";
|
|
@@ -17,17 +17,17 @@ const E = {
|
|
|
17
17
|
list: "list",
|
|
18
18
|
disabledInfo: "disabled-info",
|
|
19
19
|
disabledStackingOption: "disabled-stacking-option"
|
|
20
|
-
}, w = L
|
|
20
|
+
}, w = L`.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)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right: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)}.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)}.disabled-info{margin:auto 1rem;pointer-events:auto}.disabled-info:active{margin:auto 1rem;pointer-events:none}.disabled-stacking-option{pointer-events:none;opacity:var(--calcite-opacity-disabled)}`;
|
|
21
21
|
class D extends M {
|
|
22
22
|
constructor() {
|
|
23
|
-
super(...arguments), this._messages =
|
|
23
|
+
super(...arguments), this._messages = T(), this.open = !1, this.seriesNameChange = (e) => {
|
|
24
24
|
if (e.detail !== null && e.detail !== void 0) {
|
|
25
25
|
const t = e.detail.name;
|
|
26
26
|
if (this.isNullCategorySelected) {
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
this.model.nullCategory =
|
|
27
|
+
const i = this.model.nullCategory;
|
|
28
|
+
if (i) {
|
|
29
|
+
const s = { ...i, text: t };
|
|
30
|
+
this.model.nullCategory = s;
|
|
31
31
|
}
|
|
32
32
|
} else
|
|
33
33
|
this.model.setSeriesName(t, this.selectedSeriesIndex ?? -1);
|
|
@@ -37,15 +37,15 @@ class D extends M {
|
|
|
37
37
|
const { color: t } = e.detail;
|
|
38
38
|
if (t !== void 0) {
|
|
39
39
|
if (this.isNullCategorySelected) {
|
|
40
|
-
const
|
|
41
|
-
...
|
|
40
|
+
const i = this.model.nullCategory, s = i?.symbol && {
|
|
41
|
+
...i,
|
|
42
42
|
symbol: {
|
|
43
|
-
...
|
|
43
|
+
...i.symbol,
|
|
44
44
|
color: t,
|
|
45
|
-
outline:
|
|
45
|
+
outline: i.symbol.outline && { ...i.symbol.outline, color: t }
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
this.model.nullCategory =
|
|
48
|
+
this.model.nullCategory = s;
|
|
49
49
|
} else
|
|
50
50
|
this.model.setSeriesColor(t, this.selectedSeriesIndex ?? -1);
|
|
51
51
|
this.model.colorMatch = !1;
|
|
@@ -83,24 +83,24 @@ class D extends M {
|
|
|
83
83
|
this.selectedSeriesIndex !== void 0 && (this.seriesPopover = u(l`<arcgis-charts-config-bar-chart-series-popover .referenceElement=${this.el} .selectedName=${this.selectedSeriesIndex != null ? this.model.getSeriesName(this.selectedSeriesIndex) : void 0} .selectedColor=${this.selectedSeriesIndex != null ? this.model.getSeriesColor(this.selectedSeriesIndex) : void 0} .placement=${this.popoverPlacement} .selectedSeriesIndex=${this.selectedSeriesIndex != null ? this.selectedSeriesIndex : void 0} .nullCategory=${this.isNullCategorySelected ? this.model.nullCategory : void 0} .open=${this.open} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-bar-chart-series-popover>`), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover));
|
|
84
84
|
}
|
|
85
85
|
buildSeriesListItems() {
|
|
86
|
-
const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (
|
|
87
|
-
return
|
|
88
|
-
const n = this.model.getSeriesId(
|
|
89
|
-
let
|
|
86
|
+
const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (s, n) => n);
|
|
87
|
+
return P(t, (s) => this.model.getSeriesId(s), (s) => {
|
|
88
|
+
const n = this.model.getSeriesId(s), c = this.model.getSeriesColor(s), d = this.model.getSeriesName(s), b = this.model.chartSubType === _.BarAndLineFromFields ? this._messages.series : n;
|
|
89
|
+
let g = "#CCCCCC", p = "minus-square";
|
|
90
90
|
if ((e > 1 || !this.activeColorMatch) && c !== void 0) {
|
|
91
91
|
p = "square-f";
|
|
92
|
-
const [
|
|
93
|
-
|
|
92
|
+
const [S, y, $, I] = [...c];
|
|
93
|
+
g = `rgba(${S},${y},${$},${I / 255})`;
|
|
94
94
|
}
|
|
95
|
-
return l`<calcite-list-item .label=${d ?? n ?? ""} .description=${
|
|
95
|
+
return l`<calcite-list-item .label=${d ?? n ?? ""} .description=${b} .value=${n} .selected=${this.selectedSeriesIndex === s} @click=${this.openSeriesPopOver}><calcite-icon .icon=${p} style=${h({ color: g })} slot=content-end></calcite-icon></calcite-list-item>`;
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
buildSeriesList() {
|
|
99
99
|
return x(this.seriesOrderResetCounter, l`<calcite-list label class=${a(o.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
|
|
100
100
|
}
|
|
101
101
|
buildNullCategoryUI() {
|
|
102
|
-
const e = this.model.nullCategory, t = this._messages.nullCategory,
|
|
103
|
-
return l`<calcite-list label class=${a(o.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesIndex === null} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${h({ color:
|
|
102
|
+
const e = this.model.nullCategory, t = this._messages.nullCategory, i = e?.symbol?.color ?? C.nullCategory?.symbol?.color ?? C.grayColor, [s, n, c, d] = [...i], m = `rgba(${s},${n},${c},${d / 255})`;
|
|
103
|
+
return l`<calcite-list label class=${a(o.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesIndex === null} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${h({ color: m })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
104
104
|
}
|
|
105
105
|
buildMultipleBarTypeList() {
|
|
106
106
|
const e = this.shouldDisableStacking();
|
|
@@ -117,18 +117,18 @@ class D extends M {
|
|
|
117
117
|
}
|
|
118
118
|
onCalciteListOrderChange(e) {
|
|
119
119
|
if (e.detail !== null && e.detail !== void 0) {
|
|
120
|
-
const { newIndex: t, oldIndex:
|
|
121
|
-
this.model.moveSeries(
|
|
120
|
+
const { newIndex: t, oldIndex: i } = e.detail;
|
|
121
|
+
this.model.moveSeries(i ?? 0, t ?? i ?? 0), this.seriesOrderResetCounter += 1;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
openSeriesPopOver(e) {
|
|
125
125
|
e.stopImmediatePropagation(), this.removeSeriesPopover();
|
|
126
|
-
const t = e.target,
|
|
127
|
-
this.open = this.selectedSeriesIndex !==
|
|
126
|
+
const t = e.target, i = t.localName === "calcite-list-item" ? t : t.parentNode, s = this.model.getSeriesIndex(i.value);
|
|
127
|
+
this.open = this.selectedSeriesIndex !== s, this.selectedSeriesIndex = this.selectedSeriesIndex !== s ? s : void 0, this.isNullCategorySelected = i.value === this._messages.nullCategory;
|
|
128
128
|
}
|
|
129
129
|
createTooltip(e) {
|
|
130
|
-
const t = e.target,
|
|
131
|
-
this.tooltip = u(l`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${
|
|
130
|
+
const t = e.target, i = (this.model.aggregationType === f.NoAggregation ? this._messages.noAggStackingDisabled : this._messages.singleStackingDisabled) ?? "";
|
|
131
|
+
this.tooltip = u(l`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
132
132
|
}
|
|
133
133
|
destroyTooltip() {
|
|
134
134
|
O(this.tooltip);
|
|
@@ -3,11 +3,10 @@ import { c } 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 n } 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 l = {
|
|
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, [o, i, a] = t, r = f * 255;
|
|
39
|
+
this.selectedColor = [o, i, a, r], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [o, i, a, r] });
|
|
41
40
|
}
|
|
42
41
|
render() {
|
|
43
42
|
const e = this.nullCategory?.symbol?.color ?? this.selectedColor, t = this.nullCategory?.text ?? this.selectedName;
|
|
44
|
-
return h`<div class=${
|
|
45
|
-
[i.jsAppFlyout]: !0
|
|
46
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${o(i.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${o(i.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} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${n(l.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${n(l.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
|
c("arcgis-charts-config-bar-chart-series-popover", y);
|
|
@@ -99,7 +99,7 @@ class D extends B {
|
|
|
99
99
|
onCalciteListOrderChange(e) {
|
|
100
100
|
if (e.detail !== null && e.detail !== void 0) {
|
|
101
101
|
const { newIndex: t, oldIndex: s } = e.detail;
|
|
102
|
-
this.model.moveCustomSortValuesInOrderByList(s, t);
|
|
102
|
+
this.model.moveCustomSortValuesInOrderByList(s ?? 0, t ?? s ?? 0);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
onCustomSortItemSelected(e) {
|
|
@@ -3,19 +3,18 @@ import { c as k } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed as p } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as v } from "lit/directives/repeat.js";
|
|
5
5
|
import { substitute as $ } from "@arcgis/core/intl.js";
|
|
6
|
-
import { a
|
|
7
|
-
import { b as u, f as y, e as h, a as
|
|
8
|
-
import { u as
|
|
6
|
+
import { a } from "../../chunks/interfaces.js";
|
|
7
|
+
import { b as u, f as y, e as h, a as L } from "../../chunks/chart-ui-utils2.js";
|
|
8
|
+
import { u as F } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as P, html as n } from "lit";
|
|
10
10
|
import { createRef as f, ref as m } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as I, createEvent as g, renderElement as x, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
12
12
|
import { B as r } from "../../chunks/common.js";
|
|
13
13
|
import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
14
|
-
import {
|
|
14
|
+
import { bh as b, bk as E, a2 as w } from "../../chunks/index2.js";
|
|
15
15
|
import { d as B } from "../../chunks/index3.js";
|
|
16
16
|
import { R as C } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
-
const
|
|
18
|
-
jsAppFlyout: "js-app-flyout",
|
|
17
|
+
const l = {
|
|
19
18
|
name: "bar-chart-data-popover",
|
|
20
19
|
numericFieldPickList: "bar-chart-data-numeric-fields-pick-list",
|
|
21
20
|
header: "header",
|
|
@@ -28,7 +27,7 @@ const o = {
|
|
|
28
27
|
}, N = P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
29
28
|
class K extends I {
|
|
30
29
|
constructor() {
|
|
31
|
-
super(...arguments), this._messages =
|
|
30
|
+
super(...arguments), this._messages = F(), this.picklist = f(), this.placement = "leading", this.popoverElement = f(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = g(), this.arcgisChartsConfigPopoverClose = g();
|
|
32
31
|
}
|
|
33
32
|
static {
|
|
34
33
|
this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
|
|
@@ -51,7 +50,7 @@ class K extends I {
|
|
|
51
50
|
this.pickListHasChanged = T(e, t);
|
|
52
51
|
}
|
|
53
52
|
closePopover() {
|
|
54
|
-
if (this.contentKind ===
|
|
53
|
+
if (this.contentKind === a.numericFields && this.pickListHasChanged) {
|
|
55
54
|
const e = {
|
|
56
55
|
pickListElement: this.picklist.value,
|
|
57
56
|
eventEmitter: this.arcgisChartsConfigBoxPlotDataPopoverChange,
|
|
@@ -75,27 +74,27 @@ class K extends I {
|
|
|
75
74
|
buildPickListItems(e) {
|
|
76
75
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
77
76
|
switch (e) {
|
|
78
|
-
case
|
|
77
|
+
case a.numericFields: {
|
|
79
78
|
for (let s = 0; s < t; s += 1) {
|
|
80
|
-
const
|
|
81
|
-
E(
|
|
79
|
+
const o = this.layerFieldsInfo[s];
|
|
80
|
+
E(o) && i.push(this.buildPickListItem(o));
|
|
82
81
|
}
|
|
83
82
|
break;
|
|
84
83
|
}
|
|
85
|
-
case
|
|
84
|
+
case a.category: {
|
|
86
85
|
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
87
86
|
i.push(s);
|
|
88
|
-
for (let
|
|
89
|
-
const c = this.layerFieldsInfo[
|
|
87
|
+
for (let o = 0; o < t; o += 1) {
|
|
88
|
+
const c = this.layerFieldsInfo[o];
|
|
90
89
|
(b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
|
|
91
90
|
}
|
|
92
91
|
break;
|
|
93
92
|
}
|
|
94
|
-
case
|
|
93
|
+
case a.splitByField: {
|
|
95
94
|
const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
96
95
|
i.push(s);
|
|
97
|
-
for (let
|
|
98
|
-
const c = this.layerFieldsInfo[
|
|
96
|
+
for (let o = 0; o < t; o += 1) {
|
|
97
|
+
const c = this.layerFieldsInfo[o];
|
|
99
98
|
(b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
|
|
100
99
|
}
|
|
101
100
|
break;
|
|
@@ -121,18 +120,18 @@ class K extends I {
|
|
|
121
120
|
break;
|
|
122
121
|
}
|
|
123
122
|
case r.meanAsc:
|
|
124
|
-
t = "sort-descending", s =
|
|
123
|
+
t = "sort-descending", s = l.sortMean;
|
|
125
124
|
break;
|
|
126
125
|
case r.meanDesc: {
|
|
127
|
-
t = "sort-ascending", s =
|
|
126
|
+
t = "sort-ascending", s = l.sortMean;
|
|
128
127
|
break;
|
|
129
128
|
}
|
|
130
129
|
case r.medianAsc: {
|
|
131
|
-
t = "sort-descending", s =
|
|
130
|
+
t = "sort-descending", s = l.sortMedian;
|
|
132
131
|
break;
|
|
133
132
|
}
|
|
134
133
|
case r.medianDesc: {
|
|
135
|
-
t = "sort-ascending", s =
|
|
134
|
+
t = "sort-ascending", s = l.sortMedian;
|
|
136
135
|
break;
|
|
137
136
|
}
|
|
138
137
|
case r.customSort: {
|
|
@@ -148,44 +147,44 @@ class K extends I {
|
|
|
148
147
|
}
|
|
149
148
|
createTooltip(e) {
|
|
150
149
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
151
|
-
const t = e.target, i = w(t),
|
|
152
|
-
totalLimit:
|
|
150
|
+
const t = e.target, i = w(t), o = new Intl.NumberFormat(i).format(u.customSortLimit), c = $(this._messages.customSortLimit ?? "", {
|
|
151
|
+
totalLimit: o
|
|
153
152
|
});
|
|
154
153
|
this.tooltip = x(n`<calcite-tooltip style=${D({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
155
154
|
}
|
|
156
155
|
}
|
|
157
156
|
destroyTooltip() {
|
|
158
|
-
|
|
157
|
+
L(this.tooltip);
|
|
159
158
|
}
|
|
160
159
|
renderCategory() {
|
|
161
|
-
const e = this.buildPickListItems(
|
|
162
|
-
return n`<calcite-list label class=${d(
|
|
160
|
+
const e = this.buildPickListItems(a.category);
|
|
161
|
+
return n`<calcite-list label class=${d(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
163
162
|
}
|
|
164
163
|
renderNumericFields() {
|
|
165
|
-
const e = this.buildPickListItems(
|
|
166
|
-
return n`<calcite-list label class=${d(
|
|
164
|
+
const e = this.buildPickListItems(a.numericFields);
|
|
165
|
+
return n`<calcite-list label class=${d(l.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
167
166
|
}
|
|
168
167
|
renderSplitByField() {
|
|
169
|
-
const e = this.buildPickListItems(
|
|
170
|
-
return n`<calcite-list label class=${d(
|
|
168
|
+
const e = this.buildPickListItems(a.splitByField);
|
|
169
|
+
return n`<calcite-list label class=${d(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
171
170
|
}
|
|
172
171
|
renderSortOrder() {
|
|
173
172
|
const e = this.buildSortOrder();
|
|
174
|
-
return n`<calcite-list label class=${d(
|
|
173
|
+
return n`<calcite-list label class=${d(l.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
175
174
|
}
|
|
176
175
|
renderPopoverInfo() {
|
|
177
176
|
let e;
|
|
178
177
|
switch (this.contentKind) {
|
|
179
|
-
case
|
|
178
|
+
case a.category:
|
|
180
179
|
e = this.renderCategory();
|
|
181
180
|
break;
|
|
182
|
-
case
|
|
181
|
+
case a.numericFields:
|
|
183
182
|
e = this.renderNumericFields();
|
|
184
183
|
break;
|
|
185
|
-
case
|
|
184
|
+
case a.splitByField:
|
|
186
185
|
e = this.renderSplitByField();
|
|
187
186
|
break;
|
|
188
|
-
case
|
|
187
|
+
case a.sortOrder:
|
|
189
188
|
e = this.renderSortOrder();
|
|
190
189
|
break;
|
|
191
190
|
}
|
|
@@ -193,7 +192,7 @@ class K extends I {
|
|
|
193
192
|
}
|
|
194
193
|
render() {
|
|
195
194
|
let e;
|
|
196
|
-
return this.contentKind ===
|
|
195
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${d(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=${d(l.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel class=${d(l.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${d(l.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
198
|
k("arcgis-charts-config-box-plot-popover", K);
|
|
@@ -14,7 +14,7 @@ const l = {
|
|
|
14
14
|
sectionLabel: "section-label",
|
|
15
15
|
list: "list",
|
|
16
16
|
infoIcon: "info-icon"
|
|
17
|
-
}, T = P
|
|
17
|
+
}, T = 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{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right: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)}.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)}.info-icon{margin:auto 1rem;pointer-events:auto}`;
|
|
18
18
|
class N extends O {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments), this._messages = B(), this.resetSeriesOriginal = () => {
|