@arcgis/charts-components 5.2.0-next.3 → 5.2.0-next.30
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
|
@@ -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,38 +1,36 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as S } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as b } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { substitute as
|
|
5
|
+
import { LitElement as I, createEvent as C, renderElement as T, safeStyleMap as F, safeClassMap as c } from "@arcgis/lumina";
|
|
6
|
+
import { substitute as A } from "@arcgis/core/intl.js";
|
|
7
7
|
import { css as D, html as a } from "lit";
|
|
8
8
|
import { createRef as g, ref as d } from "lit/directives/ref.js";
|
|
9
|
-
import { isEqual as
|
|
10
|
-
import { u as
|
|
9
|
+
import { isEqual as $ } from "lodash-es";
|
|
10
|
+
import { u as y } from "../../chunks/useT9n.js";
|
|
11
11
|
import { B as n } from "../../chunks/interfaces.js";
|
|
12
|
-
import { c as v, b as
|
|
13
|
-
import { R as
|
|
14
|
-
import { t as u, r as
|
|
12
|
+
import { c as v, b as k, e as h, a as x, f as E, s as w } from "../../chunks/chart-ui-utils2.js";
|
|
13
|
+
import { R as L } from "../../chunks/rest-js-object-literals.js";
|
|
14
|
+
import { t as u, r as z, s as p } from "../../chunks/chart-object-literals.js";
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
|
-
import { e as
|
|
16
|
+
import { e as N, 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 = D`.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
|
|
21
|
-
jsAppFlyout: "js-app-flyout",
|
|
18
|
+
import { a2 as O, bh as P, 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 = D`.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}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.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}`, o = {
|
|
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
|
+
popoverPickList: "popover-pick-list",
|
|
27
25
|
rotateClass: "sort-y-axis",
|
|
28
26
|
sortOrderPickList: "sort-order-pick-list",
|
|
29
27
|
sizeSection: "size-section",
|
|
30
28
|
applyButton: "apply-button",
|
|
31
29
|
panel: "panel"
|
|
32
30
|
};
|
|
33
|
-
class q extends
|
|
31
|
+
class q extends I {
|
|
34
32
|
constructor() {
|
|
35
|
-
super(...arguments), this._messages =
|
|
33
|
+
super(...arguments), this._messages = y(), this.commonStrings = y({ 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
|
}
|
|
37
35
|
static {
|
|
38
36
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, isCustomSortDisabled: 5, isNoAggregationDisabled: 5 };
|
|
@@ -46,28 +44,28 @@ class q extends S {
|
|
|
46
44
|
willUpdate(e) {
|
|
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
|
+
$(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
50
48
|
const l = [u.Start, u.End].map((s) => _(s, this.commonStrings));
|
|
51
|
-
|
|
49
|
+
$(this.timeAggregationLabels, l) || (this.timeAggregationLabels = l);
|
|
52
50
|
}
|
|
53
51
|
updated() {
|
|
54
52
|
setTimeout(() => {
|
|
55
53
|
this.picklist.value?.setFocus();
|
|
56
|
-
},
|
|
54
|
+
}, k.PopoverTimer), N(this.popoverElement.value, this.open);
|
|
57
55
|
}
|
|
58
56
|
selectedContentChange(e, t) {
|
|
59
57
|
this.pickListHasChanged = B(e, t);
|
|
60
58
|
}
|
|
61
59
|
buildAggregationListItems() {
|
|
62
|
-
const e = this.isNoAggregationDisabled ? v.filter((t) => t !==
|
|
60
|
+
const e = this.isNoAggregationDisabled ? v.filter((t) => t !== z.NoAggregation) : v;
|
|
63
61
|
return b(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(k.customSortLimit), r = A(this._messages.customSortLimit ?? "", {
|
|
68
66
|
totalLimit: s
|
|
69
67
|
});
|
|
70
|
-
this.tooltip = T(a`<calcite-tooltip style=${
|
|
68
|
+
this.tooltip = T(a`<calcite-tooltip style=${F({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${r}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
destroyTooltip() {
|
|
@@ -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
|
}
|
|
@@ -121,7 +119,7 @@ class q extends S {
|
|
|
121
119
|
i.push(l);
|
|
122
120
|
for (let s = 0; s < t; s += 1) {
|
|
123
121
|
const r = this.layerFieldsInfo?.[s];
|
|
124
|
-
r && (r.type ===
|
|
122
|
+
r && (r.type === L.String || P(r) || H(r) || M(r)) && i.push(this.buildPickListItem(r));
|
|
125
123
|
}
|
|
126
124
|
break;
|
|
127
125
|
}
|
|
@@ -130,7 +128,7 @@ class q extends S {
|
|
|
130
128
|
i.push(l);
|
|
131
129
|
for (let s = 0; s < t; s += 1) {
|
|
132
130
|
const r = this.layerFieldsInfo?.[s];
|
|
133
|
-
r && (
|
|
131
|
+
r && (P(r) || r.type === L.String) && i.push(this.buildPickListItem(r));
|
|
134
132
|
}
|
|
135
133
|
break;
|
|
136
134
|
}
|
|
@@ -174,27 +172,27 @@ class q extends S {
|
|
|
174
172
|
}
|
|
175
173
|
renderAggregationType() {
|
|
176
174
|
const e = this.buildAggregationListItems();
|
|
177
|
-
return a`<calcite-list label class=${c(o.
|
|
175
|
+
return a`<calcite-list label class=${c(o.popoverPickList)} 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(o.
|
|
179
|
+
return a`<calcite-list label class=${c(o.popoverPickList)} 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 class=${c(o.
|
|
183
|
+
return a`<calcite-list label selection-mode=multiple class=${c(o.popoverPickList)} 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=${
|
|
187
|
+
return a`<calcite-list label class=${`${o.popoverPickList} ${o.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(o.
|
|
191
|
+
return a`<calcite-list label class=${c(o.popoverPickList)} 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(o.
|
|
195
|
+
return a`<calcite-list label class=${c(o.popoverPickList)} 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(o.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${
|
|
207
|
+
return a`<div><div class=${c(o.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${w(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(o.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(o.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
|
|
238
|
+
return this.contentKind === n.numericFields && (e = a`<div slot=footer><calcite-fab class=${c(o.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(o.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(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(o.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) {
|
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as v } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as p } from "lit/directives/keyed.js";
|
|
4
|
-
import { repeat as
|
|
4
|
+
import { repeat as k } from "lit/directives/repeat.js";
|
|
5
5
|
import { substitute as $ } from "@arcgis/core/intl.js";
|
|
6
6
|
import { a as l } from "../../chunks/interfaces.js";
|
|
7
|
-
import { b as
|
|
8
|
-
import { u as
|
|
9
|
-
import { css as
|
|
10
|
-
import { createRef as
|
|
11
|
-
import { LitElement as
|
|
7
|
+
import { b as f, f as y, e as h, a as P } from "../../chunks/chart-ui-utils2.js";
|
|
8
|
+
import { u as F } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as L, html as n } from "lit";
|
|
10
|
+
import { createRef as u, ref as m } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as x, createEvent as g, renderElement as I, 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
17
|
const o = {
|
|
18
|
-
jsAppFlyout: "js-app-flyout",
|
|
19
18
|
name: "bar-chart-data-popover",
|
|
20
|
-
numericFieldPickList: "bar-chart-data-numeric-fields-pick-list",
|
|
21
19
|
header: "header",
|
|
22
20
|
fab: "fab",
|
|
23
|
-
|
|
21
|
+
popoverPickList: "popover-pick-list",
|
|
24
22
|
sortMean: "sort-mean",
|
|
25
23
|
sortMedian: "sort-median",
|
|
26
24
|
sortOrderPickList: "sort-order-pick-list",
|
|
27
25
|
panel: "panel"
|
|
28
|
-
}, N =
|
|
29
|
-
class K extends
|
|
26
|
+
}, N = 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)}.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}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
27
|
+
class K extends x {
|
|
30
28
|
constructor() {
|
|
31
|
-
super(...arguments), this._messages =
|
|
29
|
+
super(...arguments), this._messages = F(), this.picklist = u(), this.placement = "leading", this.popoverElement = u(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = g(), this.arcgisChartsConfigPopoverClose = g();
|
|
32
30
|
}
|
|
33
31
|
static {
|
|
34
32
|
this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
|
|
@@ -45,7 +43,7 @@ class K extends I {
|
|
|
45
43
|
updated() {
|
|
46
44
|
setTimeout(() => {
|
|
47
45
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
48
|
-
},
|
|
46
|
+
}, f.PopoverTimer), S(this.popoverElement.value, this.open);
|
|
49
47
|
}
|
|
50
48
|
selectedContentChange(e, t) {
|
|
51
49
|
this.pickListHasChanged = T(e, t);
|
|
@@ -109,7 +107,7 @@ class K extends I {
|
|
|
109
107
|
buildSortOrder() {
|
|
110
108
|
const e = Object.keys(r);
|
|
111
109
|
let t;
|
|
112
|
-
return
|
|
110
|
+
return k(e, (i) => i, (i) => {
|
|
113
111
|
let s = "";
|
|
114
112
|
switch (i) {
|
|
115
113
|
case r.xAxisAsc: {
|
|
@@ -148,30 +146,30 @@ class K extends I {
|
|
|
148
146
|
}
|
|
149
147
|
createTooltip(e) {
|
|
150
148
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
151
|
-
const t = e.target, i = w(t), a = new Intl.NumberFormat(i).format(
|
|
149
|
+
const t = e.target, i = w(t), a = new Intl.NumberFormat(i).format(f.customSortLimit), c = $(this._messages.customSortLimit ?? "", {
|
|
152
150
|
totalLimit: a
|
|
153
151
|
});
|
|
154
|
-
this.tooltip =
|
|
152
|
+
this.tooltip = I(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
153
|
}
|
|
156
154
|
}
|
|
157
155
|
destroyTooltip() {
|
|
158
|
-
|
|
156
|
+
P(this.tooltip);
|
|
159
157
|
}
|
|
160
158
|
renderCategory() {
|
|
161
159
|
const e = this.buildPickListItems(l.category);
|
|
162
|
-
return n`<calcite-list label class=${d(o.
|
|
160
|
+
return n`<calcite-list label class=${d(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
163
161
|
}
|
|
164
162
|
renderNumericFields() {
|
|
165
163
|
const e = this.buildPickListItems(l.numericFields);
|
|
166
|
-
return n`<calcite-list label class=${d(o.
|
|
164
|
+
return n`<calcite-list label class=${d(o.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
167
165
|
}
|
|
168
166
|
renderSplitByField() {
|
|
169
167
|
const e = this.buildPickListItems(l.splitByField);
|
|
170
|
-
return n`<calcite-list label class=${d(o.
|
|
168
|
+
return n`<calcite-list label class=${d(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
171
169
|
}
|
|
172
170
|
renderSortOrder() {
|
|
173
171
|
const e = this.buildSortOrder();
|
|
174
|
-
return n`<calcite-list label class=${
|
|
172
|
+
return n`<calcite-list label class=${`${o.popoverPickList} ${o.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
175
173
|
}
|
|
176
174
|
renderPopoverInfo() {
|
|
177
175
|
let e;
|
|
@@ -193,10 +191,10 @@ class K extends I {
|
|
|
193
191
|
}
|
|
194
192
|
render() {
|
|
195
193
|
let e;
|
|
196
|
-
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${d(o.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
|
|
194
|
+
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${d(o.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(o.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(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${d(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
197
195
|
}
|
|
198
196
|
}
|
|
199
|
-
|
|
197
|
+
v("arcgis-charts-config-box-plot-popover", K);
|
|
200
198
|
export {
|
|
201
199
|
K as ArcgisChartsConfigBoxPlotPopover
|
|
202
200
|
};
|
|
@@ -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 = () => {
|