@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
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { isEqual as r } from "lodash-es";
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
|
-
import { css as h, html as
|
|
6
|
-
import { C as
|
|
7
|
-
import { ac as d,
|
|
8
|
-
import { p as
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { css as h, html as i } from "lit";
|
|
6
|
+
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
+
import { ac as d, bw as c, aw as m, I as f } from "../../chunks/index2.js";
|
|
8
|
+
import { p as g, h as p } from "../../chunks/index5.js";
|
|
9
|
+
import { c as u } from "../../chunks/type-guards.js";
|
|
10
|
+
const C = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
11
|
+
class y extends n {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
13
14
|
const s = e?.detail.config ?? this.model.config;
|
|
@@ -18,7 +19,7 @@ class u extends n {
|
|
|
18
19
|
this.properties = { layerFieldsInfo: 16, model: 0, chartData: 0, seriesColor: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5 };
|
|
19
20
|
}
|
|
20
21
|
static {
|
|
21
|
-
this.styles =
|
|
22
|
+
this.styles = C;
|
|
22
23
|
}
|
|
23
24
|
async load() {
|
|
24
25
|
this.seriesColor !== void 0 && this.seriesColorChange(this.seriesColor), await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
|
|
@@ -35,35 +36,39 @@ class u extends n {
|
|
|
35
36
|
}
|
|
36
37
|
seriesColorChange(e) {
|
|
37
38
|
this.model.colorMatch && e?.forEach((a) => {
|
|
38
|
-
|
|
39
|
+
g(a) && e?.get(0) !== void 0 && !r(this.model.binSymbol, a) && (this.model.binSymbol = a);
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
42
|
async updateFetchLayerFieldsInfo(e) {
|
|
42
43
|
const a = e ?? this.model.config;
|
|
43
44
|
let s = this.layer;
|
|
44
45
|
if (!s) {
|
|
45
|
-
const
|
|
46
|
-
|
|
46
|
+
const t = p(a) ? a.iLayer : void 0;
|
|
47
|
+
t && (s = await d(t));
|
|
48
|
+
}
|
|
49
|
+
if (s) {
|
|
50
|
+
await c(s);
|
|
51
|
+
const t = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
|
|
52
|
+
this.layerFieldsInfo = u(s) ? m({ layer: s, popupTemplateFieldInfosEnabled: t, chartType: a?.type }) : f(s, t);
|
|
47
53
|
}
|
|
48
|
-
s && (await c(s), this.layerFieldsInfo = m(s, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
|
|
49
54
|
}
|
|
50
55
|
render() {
|
|
51
56
|
let e;
|
|
52
57
|
switch (this.page) {
|
|
53
|
-
case
|
|
54
|
-
e =
|
|
58
|
+
case o.Data:
|
|
59
|
+
e = i`<arcgis-charts-config-histogram-data .model=${this.model} .meanValue=${this.chartData?.mean} .medianValue=${this.chartData?.median} .standardDevValue=${this.chartData?.stddev} .minValue=${this.chartData?.min} .maxValue=${this.chartData?.max} .sumValue=${this.chartData?.sum} .nullsValue=${this.chartData?.nulls} .countValue=${this.chartData?.count} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-histogram-data>`;
|
|
55
60
|
break;
|
|
56
|
-
case
|
|
57
|
-
e =
|
|
61
|
+
case o.Axes:
|
|
62
|
+
e = i`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;
|
|
58
63
|
break;
|
|
59
|
-
case
|
|
60
|
-
e =
|
|
64
|
+
case o.Guides:
|
|
65
|
+
e = i`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;
|
|
61
66
|
break;
|
|
62
|
-
case
|
|
63
|
-
e =
|
|
67
|
+
case o.Format:
|
|
68
|
+
e = i`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;
|
|
64
69
|
break;
|
|
65
|
-
case
|
|
66
|
-
e =
|
|
70
|
+
case o.General:
|
|
71
|
+
e = i`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;
|
|
67
72
|
break;
|
|
68
73
|
default:
|
|
69
74
|
e = "";
|
|
@@ -72,7 +77,7 @@ class u extends n {
|
|
|
72
77
|
return e;
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
|
-
l("arcgis-charts-config-histogram",
|
|
80
|
+
l("arcgis-charts-config-histogram", y);
|
|
76
81
|
export {
|
|
77
|
-
|
|
82
|
+
y as ArcgisChartsConfigHistogram
|
|
78
83
|
};
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as y, html as
|
|
3
|
+
import { css as y, html as t } from "lit";
|
|
4
4
|
import { keyed as c } from "lit/directives/keyed.js";
|
|
5
|
-
import { H as
|
|
5
|
+
import { H as i } from "../../chunks/interfaces.js";
|
|
6
6
|
import { b as v, o as C } from "../../chunks/chart-ui-utils2.js";
|
|
7
|
-
import { u } from "../../chunks/useT9n.js";
|
|
7
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
8
8
|
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
9
|
-
import { LitElement as
|
|
9
|
+
import { LitElement as u, createEvent as p, safeClassMap as s } from "@arcgis/lumina";
|
|
10
10
|
import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import { g as
|
|
11
|
+
import { g as o } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { d as S } from "../../chunks/index3.js";
|
|
14
|
-
import {
|
|
14
|
+
import { bk as k } from "../../chunks/index2.js";
|
|
15
15
|
import { aB as L } from "../../chunks/index.js";
|
|
16
|
-
const
|
|
16
|
+
const l = {
|
|
17
17
|
symbolPropertyPopover: "symbol-property-popover",
|
|
18
18
|
colorPicker: "color-picker",
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
20
19
|
header: "header",
|
|
21
20
|
pickListItemLabel: "pick-list-item-label",
|
|
22
21
|
fieldSelectPanel: "field-select-panel",
|
|
23
22
|
transformationPanel: "transformation-panel"
|
|
24
23
|
}, T = y`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem;padding:0 1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.pick-list-item-label{font-size:small}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`;
|
|
25
|
-
class F extends
|
|
24
|
+
class F extends u {
|
|
26
25
|
constructor() {
|
|
27
|
-
super(...arguments), this._messages =
|
|
26
|
+
super(...arguments), this._messages = b(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
|
|
28
27
|
}
|
|
29
28
|
static {
|
|
30
29
|
this.properties = { messageOverrides: 0, layerFieldsInfo: 0, headingTitle: 1, selectedNumericField: 1, selectedTransformationType: 1, selectedOverlaySymbol: 0, selectedBinColor: 0, referenceElement: 0, contentKind: 1, placement: 1, open: 5, selectedOverlaySymbolType: 1 };
|
|
@@ -42,23 +41,23 @@ class F extends b {
|
|
|
42
41
|
}
|
|
43
42
|
buildPickListItems(e) {
|
|
44
43
|
const n = [];
|
|
45
|
-
if (e ===
|
|
44
|
+
if (e === i.numericFields)
|
|
46
45
|
for (let r = 0; r < this.layerFieldsInfo?.length; r += 1) {
|
|
47
46
|
const a = this.layerFieldsInfo[r];
|
|
48
|
-
k(a) && n.push(c(a.name,
|
|
47
|
+
k(a) && n.push(c(a.name, t`<calcite-list-item .label=${S(this.layerFieldsInfo, a.name)} .value=${a.name} .selected=${this.selectedNumericField === a.name}></calcite-list-item>`));
|
|
49
48
|
}
|
|
50
49
|
else {
|
|
51
50
|
const r = [
|
|
52
|
-
c(
|
|
53
|
-
c(
|
|
54
|
-
c(
|
|
51
|
+
c(o.None, t`<calcite-list-item .label=${this._messages.none} .value=${o.None} .selected=${this.selectedTransformationType === o.None}></calcite-list-item>`),
|
|
52
|
+
c(o.Log, t`<calcite-list-item .label=${this._messages.log} .value=${o.Log} .selected=${this.selectedTransformationType === o.Log}></calcite-list-item>`),
|
|
53
|
+
c(o.Sqrt, t`<calcite-list-item .label=${this._messages.sqRt} .value=${o.Sqrt} .selected=${this.selectedTransformationType === o.Sqrt}></calcite-list-item>`)
|
|
55
54
|
];
|
|
56
55
|
n.push(...r);
|
|
57
56
|
}
|
|
58
57
|
return n;
|
|
59
58
|
}
|
|
60
59
|
getPopoverClass() {
|
|
61
|
-
return this.contentKind ===
|
|
60
|
+
return this.contentKind === i.fillSymbol || this.contentKind === i.lineSymbol ? l.symbolPropertyPopover : "";
|
|
62
61
|
}
|
|
63
62
|
closePopover() {
|
|
64
63
|
(this.open || this.popoverElement.value?.open === !1) && (this.open = !1, this.arcgisChartsConfigPopoverClose.emit());
|
|
@@ -80,31 +79,31 @@ class F extends b {
|
|
|
80
79
|
}), this.open = !1);
|
|
81
80
|
}
|
|
82
81
|
renderFillColor() {
|
|
83
|
-
return
|
|
82
|
+
return t`<arcgis-charts-config-color-style class=${s(l.colorPicker)} .header=${this.headingTitle ?? this._messages.fillColor} enable-close .open=${this.open} .selectedColor=${this.selectedBinColor?.color} @arcgisChartsConfigColorStyleChange=${this.fillColorChange} @arcgisChartsConfigColorStyleClose=${this.closePopover}></arcgis-charts-config-color-style>`;
|
|
84
83
|
}
|
|
85
84
|
renderOverlayStyle() {
|
|
86
|
-
return
|
|
85
|
+
return t`<arcgis-charts-config-line-style class=${s(l.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle ?? this._messages.lineStyle} .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`;
|
|
87
86
|
}
|
|
88
87
|
renderFieldSelect() {
|
|
89
|
-
const e = this.buildPickListItems(
|
|
90
|
-
return
|
|
88
|
+
const e = this.buildPickListItems(i.numericFields);
|
|
89
|
+
return t`<calcite-panel class=${s(l.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${s(l.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${s(l.pickListItemLabel)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`;
|
|
91
90
|
}
|
|
92
91
|
renderTransformationSelect() {
|
|
93
|
-
const e = this.buildPickListItems(
|
|
94
|
-
return
|
|
92
|
+
const e = this.buildPickListItems(i.transformation);
|
|
93
|
+
return t`<calcite-panel class=${s(l.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${s(l.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${s(l.pickListItemLabel)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`;
|
|
95
94
|
}
|
|
96
95
|
render() {
|
|
97
|
-
return
|
|
96
|
+
return t`<div><calcite-popover class=${s(this.getPopoverClass())} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${C(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`;
|
|
98
97
|
}
|
|
99
98
|
renderContentType() {
|
|
100
99
|
switch (this.contentKind) {
|
|
101
|
-
case
|
|
100
|
+
case i.fillSymbol:
|
|
102
101
|
return this.renderFillColor();
|
|
103
|
-
case
|
|
102
|
+
case i.lineSymbol:
|
|
104
103
|
return this.renderOverlayStyle();
|
|
105
|
-
case
|
|
104
|
+
case i.numericFields:
|
|
106
105
|
return this.renderFieldSelect();
|
|
107
|
-
case
|
|
106
|
+
case i.transformation:
|
|
108
107
|
return this.renderTransformationSelect();
|
|
109
108
|
default:
|
|
110
109
|
return;
|
|
@@ -4,7 +4,7 @@ import { isEqual as a } from "lodash-es";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import { ac as c, I as m,
|
|
7
|
+
import { ac as c, I as m, bk as f, bb as g } from "../../chunks/index2.js";
|
|
8
8
|
import { h as p } from "../../chunks/index5.js";
|
|
9
9
|
const u = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class C extends n {
|
|
@@ -12,7 +12,7 @@ import { x as E } from "../../chunks/data.js";
|
|
|
12
12
|
import { r as c, s as f, m as h } from "../../chunks/chart-object-literals.js";
|
|
13
13
|
import { t as L, ag as P } from "../../chunks/index.js";
|
|
14
14
|
import { d as v, m as w } from "../../chunks/index3.js";
|
|
15
|
-
import { an as C,
|
|
15
|
+
import { an as C, bb as _ } from "../../chunks/index2.js";
|
|
16
16
|
import { r as N } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
const D = I`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
18
18
|
label: "label",
|
|
@@ -130,7 +130,7 @@ class U extends x {
|
|
|
130
130
|
this.model.trimIncompleteTimeInterval = e.target.checked;
|
|
131
131
|
}
|
|
132
132
|
onNullPolicyChange(e) {
|
|
133
|
-
this.model.nullPolicy = e.target.selectedItem
|
|
133
|
+
this.model.nullPolicy = e.target.selectedItem?.value;
|
|
134
134
|
}
|
|
135
135
|
shouldShowTimeBinning() {
|
|
136
136
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !== c.NoAggregation;
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as u } from "lit/directives/repeat.js";
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { LitElement as k, createEvent as
|
|
6
|
-
import { css as
|
|
7
|
-
import { createRef as
|
|
4
|
+
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
|
+
import { LitElement as k, createEvent as f, safeClassMap as o } from "@arcgis/lumina";
|
|
6
|
+
import { css as I, html as n } from "lit";
|
|
7
|
+
import { createRef as p, ref as m } from "lit/directives/ref.js";
|
|
8
8
|
import { isEqual as v } from "lodash-es";
|
|
9
9
|
import { u as C } from "../../chunks/useT9n.js";
|
|
10
10
|
import { L as a } from "../../chunks/interfaces.js";
|
|
11
|
-
import { c as L, b as
|
|
12
|
-
import { R as
|
|
13
|
-
import { t as g, s as
|
|
11
|
+
import { c as L, b as F, e as d, f as P, s as T } from "../../chunks/chart-ui-utils2.js";
|
|
12
|
+
import { R as A } from "../../chunks/rest-js-object-literals.js";
|
|
13
|
+
import { t as g, s as c } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { e as x, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
15
|
import { t as E, ag as S } from "../../chunks/index.js";
|
|
16
16
|
import { d as z, m as N } from "../../chunks/index3.js";
|
|
17
|
-
import {
|
|
18
|
-
const _ =
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
17
|
+
import { bh as w, bk as $, bb as K, bu as B } from "../../chunks/index2.js";
|
|
18
|
+
const _ = I`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.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)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, r = {
|
|
20
19
|
name: "line-chart-data-popover",
|
|
21
|
-
numericFieldPickList: "line-chart-data-numeric-fields-pick-list",
|
|
22
20
|
header: "header",
|
|
23
21
|
fab: "fab",
|
|
24
22
|
pickListItemLabel: "pick-list-item-label",
|
|
@@ -27,7 +25,7 @@ const _ = F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
27
25
|
};
|
|
28
26
|
class H extends k {
|
|
29
27
|
constructor() {
|
|
30
|
-
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist =
|
|
28
|
+
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist = p(), this.intervalSizeElement = p(), this.intervalTypeElement = p(), this.popoverElement = p(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigLineChartDataPopoverChange = f(), this.arcgisChartsConfigLineChartPopoverClose = f();
|
|
31
29
|
}
|
|
32
30
|
static {
|
|
33
31
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
@@ -48,7 +46,7 @@ class H extends k {
|
|
|
48
46
|
updated() {
|
|
49
47
|
setTimeout(() => {
|
|
50
48
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
51
|
-
},
|
|
49
|
+
}, F.PopoverTimer), x(this.popoverElement.value, this.open);
|
|
52
50
|
}
|
|
53
51
|
selectedContentChange(e, t) {
|
|
54
52
|
this.pickListHasChanged = D(e, t);
|
|
@@ -61,7 +59,7 @@ class H extends k {
|
|
|
61
59
|
return u(e, (t) => t, (t, s) => n`<calcite-list-item .label=${this.timeAggregationLabels?.[s]} .value=${t} .selected=${d(t, this.selectedContent)}></calcite-list-item>`);
|
|
62
60
|
}
|
|
63
61
|
buildPickListItem(e) {
|
|
64
|
-
return
|
|
62
|
+
return b(e.name, n`<calcite-list-item .label=${z(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${d(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
65
63
|
}
|
|
66
64
|
buildPickListItems(e) {
|
|
67
65
|
const t = this.layerFieldsInfo?.length ?? 0, s = [];
|
|
@@ -81,11 +79,11 @@ class H extends k {
|
|
|
81
79
|
break;
|
|
82
80
|
}
|
|
83
81
|
case a.splitByField: {
|
|
84
|
-
const l =
|
|
82
|
+
const l = b(" ", n`<calcite-list-item label=" " value=" " .selected=${d("", this.selectedContent)}></calcite-list-item>`);
|
|
85
83
|
s.push(l);
|
|
86
84
|
for (let i = 0; i < t; i += 1) {
|
|
87
|
-
const
|
|
88
|
-
|
|
85
|
+
const h = this.layerFieldsInfo?.[i];
|
|
86
|
+
h && (w(h) || h.type === A.String) && s.push(this.buildPickListItem(h));
|
|
89
87
|
}
|
|
90
88
|
break;
|
|
91
89
|
}
|
|
@@ -126,35 +124,35 @@ class H extends k {
|
|
|
126
124
|
}
|
|
127
125
|
renderAggregationType() {
|
|
128
126
|
const e = this.buildAggregationPickListItems();
|
|
129
|
-
return n`<calcite-list label class=${o(
|
|
127
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
130
128
|
}
|
|
131
129
|
renderXAxisField() {
|
|
132
130
|
const e = this.buildPickListItems(a.xAxisField);
|
|
133
|
-
return n`<calcite-list label class=${o(
|
|
131
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
134
132
|
}
|
|
135
133
|
renderNumericFields() {
|
|
136
134
|
const e = this.buildPickListItems(a.numericFields);
|
|
137
|
-
return n`<calcite-list label
|
|
135
|
+
return n`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
138
136
|
}
|
|
139
137
|
renderSplitByField() {
|
|
140
138
|
const e = this.buildPickListItems(a.splitByField);
|
|
141
|
-
return n`<calcite-list label class=${o(
|
|
139
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
142
140
|
}
|
|
143
141
|
renderIntervalAlignment() {
|
|
144
142
|
const e = this.buildIntervalAlignmentPickListItems();
|
|
145
|
-
return n`<calcite-list label class=${o(
|
|
143
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
146
144
|
}
|
|
147
145
|
renderInterval() {
|
|
148
146
|
const e = this.selectedContent, t = [
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
c.Second,
|
|
148
|
+
c.Minute,
|
|
149
|
+
c.Hour,
|
|
150
|
+
c.Day,
|
|
151
|
+
c.Week,
|
|
152
|
+
c.Month,
|
|
153
|
+
c.Year
|
|
156
154
|
];
|
|
157
|
-
return n`<div><div class=${o(
|
|
155
|
+
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${T(e?.size, 1)} ${m(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${m(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${N(s, this._messages)} .selected=${e?.unit === s}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
158
156
|
}
|
|
159
157
|
renderPopoverInfo() {
|
|
160
158
|
let e;
|
|
@@ -182,7 +180,7 @@ class H extends k {
|
|
|
182
180
|
}
|
|
183
181
|
render() {
|
|
184
182
|
let e;
|
|
185
|
-
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(
|
|
183
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(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>`), n`<div><calcite-popover class=${o(r.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(r.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
186
184
|
}
|
|
187
185
|
}
|
|
188
186
|
y("arcgis-charts-config-line-chart-popover", H);
|
|
@@ -63,16 +63,16 @@ class k extends I {
|
|
|
63
63
|
this.seriesPopover !== void 0 && this.seriesPopover !== null && (this.seriesPopover.open = !1, this.seriesPopover = d(this.seriesPopover));
|
|
64
64
|
}
|
|
65
65
|
buildSeriesListItems() {
|
|
66
|
-
const e = this.model.seriesLength, s = Array.from({ length: e }, (i,
|
|
66
|
+
const e = this.model.seriesLength, s = Array.from({ length: e }, (i, r) => r);
|
|
67
67
|
return P(s, (i) => this.model.getSeriesId(i), (i) => {
|
|
68
|
-
const
|
|
68
|
+
const r = this.model.getSeriesId(i), l = this.model.getSeriesColor(i), h = this.model.getSeriesName(i), c = this.model.chartSubType === M.BarAndLineFromFields ? this._messages.series : r, m = this.model.getSeriesLineStyle(i), g = b(m);
|
|
69
69
|
let n = "#CCCCCC", a = "minus-circle";
|
|
70
70
|
if ((e > 1 || !this.activeColorMatch) && l !== void 0) {
|
|
71
71
|
a = `line-${g}`;
|
|
72
72
|
const [C, p, S, v] = [...l];
|
|
73
73
|
n = `rgba(${C},${p},${S},${v / 255})`;
|
|
74
74
|
}
|
|
75
|
-
return o`<calcite-list-item .label=${h ??
|
|
75
|
+
return o`<calcite-list-item .label=${h ?? r ?? ""} .description=${c} .value=${r} .selected=${this.selectedSeriesIndex === i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${a} style=${L({ color: n })}></calcite-icon></calcite-list-item>`;
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
buildSeriesList() {
|
|
@@ -83,13 +83,13 @@ class k extends I {
|
|
|
83
83
|
}
|
|
84
84
|
onCalciteListOrderChange(e) {
|
|
85
85
|
if (e.detail !== null && e.detail !== void 0) {
|
|
86
|
-
const { newIndex: s, oldIndex:
|
|
87
|
-
this.model.moveSeries(
|
|
86
|
+
const { newIndex: s, oldIndex: t } = e.detail;
|
|
87
|
+
this.model.moveSeries(t ?? 0, s ?? t ?? 0), this.seriesOrderResetCounter += 1;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
openSeriesPopOver(e) {
|
|
91
91
|
e.stopImmediatePropagation(), this.removeSeriesPopover();
|
|
92
|
-
const s = e.target,
|
|
92
|
+
const s = e.target, t = s.localName === "calcite-list-item" ? s : s.parentNode, i = this.model.getSeriesIndex(t.value);
|
|
93
93
|
this.open = this.selectedSeriesIndex !== i, this.selectedSeriesIndex = this.selectedSeriesIndex !== i ? i : void 0;
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as u } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as C, html as v } from "lit";
|
|
4
|
-
import { i as f, m, s as
|
|
5
|
-
import { u as
|
|
4
|
+
import { i as f, m, s as S, U as g } from "../../chunks/chart-ui-utils2.js";
|
|
5
|
+
import { u as y } from "../../chunks/useT9n.js";
|
|
6
6
|
import { createRef as a, ref as o } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement as $, createEvent as s, safeClassMap as l, nothing as c } from "@arcgis/lumina";
|
|
8
8
|
import { e as b } from "../../chunks/popover-ui-utils.js";
|
|
9
9
|
import { aB as E } from "../../chunks/index.js";
|
|
10
10
|
import { g as i } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const n = {
|
|
12
|
-
jsAppFlyout: "js-app-flyout",
|
|
13
12
|
sizeSection: "size-section",
|
|
14
13
|
dropdownText: "dropdown-text",
|
|
15
14
|
panelChildrenContainer: "panel-children-container"
|
|
16
15
|
}, w = C`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
17
16
|
class x extends $ {
|
|
18
17
|
constructor() {
|
|
19
|
-
super(...arguments), this._messages =
|
|
18
|
+
super(...arguments), this._messages = y(), this.popoverElement = a(), this.lineWidthInputElement = a(), this.lineStyleDropdownElement = a(), this.open = !1, this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSeriesPopoverColorChange = s(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = s(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = s(), this.arcgisChartsConfigSeriesPopoverNameChange = s();
|
|
20
19
|
}
|
|
21
20
|
static {
|
|
22
21
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedSeriesIndex: 9, selectedLineWidth: 9, placement: 1, open: 5 };
|
|
@@ -75,7 +74,7 @@ class x extends $ {
|
|
|
75
74
|
}
|
|
76
75
|
render() {
|
|
77
76
|
const e = this.selectedColor;
|
|
78
|
-
return v`<div
|
|
77
|
+
return v`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${o(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${l(n.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${l(n.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${o(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${l(n.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle === i.Solid} accesskey=${i.Solid ?? c}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle === i.Dot} accesskey=${i.Dot ?? c}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle === i.Dash} accesskey=${i.Dash ?? c}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${S(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${o(this.lineWidthInputElement)}></calcite-input></calcite-label></div><div class=${l(n.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
u("arcgis-charts-config-line-chart-series-popover", x);
|