@arcgis/charts-components 5.2.0-next.6 → 5.2.0-next.61
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/README.md +2 -2
- package/dist/cdn/{FF4DUQDZ.js → 22WGB4CQ.js} +1 -1
- package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
- package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
- package/dist/cdn/2G65P262.js +2 -0
- package/dist/cdn/2RYKKN36.js +2 -0
- package/dist/cdn/3AYXOX4U.js +2 -0
- package/dist/cdn/{ZFZ5AEUQ.js → 3CGAUDYD.js} +1 -1
- package/dist/cdn/{JBHGSSHS.js → 3FZCVKWJ.js} +1 -1
- package/dist/cdn/{DCZWZOPF.js → 3GVTYZ2I.js} +1 -1
- package/dist/cdn/3YCGBAQY.js +2 -0
- package/dist/cdn/3ZGG7Q5M.js +2 -0
- package/dist/cdn/46PXO7ZC.js +4 -0
- package/dist/cdn/4COV22K4.js +2 -0
- package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
- package/dist/cdn/{AM2TOTX6.js → 4EBMUPEV.js} +1 -1
- package/dist/cdn/4ITNOJXC.js +2 -0
- package/dist/cdn/{E7OAEGSE.js → 4VL2SBHK.js} +1 -1
- package/dist/cdn/54W4C75M.js +2 -0
- package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
- package/dist/cdn/{GDQBQQUP.js → 5JXEO4VE.js} +1 -1
- package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
- package/dist/cdn/5YP7P6S3.js +2 -0
- package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
- package/dist/cdn/67QYTLMM.js +2 -0
- package/dist/cdn/6AI3ZXL5.js +2 -0
- package/dist/cdn/6MNV7FJC.js +2 -0
- package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
- package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
- package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
- package/dist/cdn/{JRHMUFED.js → 7DIQIFKR.js} +1 -1
- package/dist/cdn/{ETKPMU7Z.js → 7WVTY3XI.js} +1 -1
- package/dist/cdn/{A5AECJXP.js → A2NFOGT2.js} +1 -1
- package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
- package/dist/cdn/ANHW36VW.js +2 -0
- package/dist/cdn/{DKAHZ7IX.js → ASZ6YFIL.js} +1 -1
- package/dist/cdn/{VY3KBD6N.js → AYQ4HHL6.js} +1 -1
- package/dist/cdn/AYUYEY5H.js +2 -0
- package/dist/cdn/{JJIGLOJA.js → AZKX3FMB.js} +1 -1
- package/dist/cdn/{AJWYIBGC.js → AZMQPJO3.js} +1 -1
- package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
- package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
- package/dist/cdn/BDTKAMUN.js +2 -0
- package/dist/cdn/BGOWDCTO.js +2 -0
- package/dist/cdn/BHGOAHMJ.js +2 -0
- package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
- package/dist/cdn/BKK57XHL.js +2 -0
- package/dist/cdn/BLZLMGO6.js +2 -0
- package/dist/cdn/BYSUABOV.js +2 -0
- package/dist/cdn/{BJDRJUEJ.js → CDJRYMBP.js} +1 -1
- package/dist/cdn/{6XTKJ7DO.js → CHMLTTRN.js} +1 -1
- package/dist/cdn/{HVO4LIXR.js → CL5G6D6W.js} +1 -1
- package/dist/cdn/{AWF4R7WL.js → CMGCZ4MF.js} +1 -1
- package/dist/cdn/{QMSINFQX.js → CVJSVWF3.js} +1 -1
- package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
- package/dist/cdn/{K3GNHGEW.js → D3KIBJKD.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → DAFNQT4C.js} +1 -1
- package/dist/cdn/DBAM7MH7.js +2 -0
- package/dist/cdn/DGV6S2W3.js +2 -0
- package/dist/cdn/{TF7TE7K5.js → DJPMW6UC.js} +1 -1
- package/dist/cdn/DPTA2AET.js +2 -0
- package/dist/cdn/DQXO7PWX.js +2 -0
- package/dist/cdn/EAV3KAS7.js +2 -0
- package/dist/cdn/EMBMJCFZ.js +2 -0
- package/dist/cdn/EOHKNJSJ.js +2 -0
- package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
- package/dist/cdn/EUOJG5H6.js +2 -0
- package/dist/cdn/{2HUAW34Q.js → EXS2KOEA.js} +1 -1
- package/dist/cdn/FHBCVW5T.js +2 -0
- package/dist/cdn/FJGG2VVZ.js +2 -0
- package/dist/cdn/FQLRMWNL.js +2 -0
- package/dist/cdn/{QFEZPP3R.js → GARBFC7Q.js} +1 -1
- package/dist/cdn/{CLXVAIQX.js → GP3LPIRJ.js} +1 -1
- package/dist/cdn/GRL5SM6K.js +2 -0
- package/dist/cdn/{ADGMA3ST.js → H57XAQPI.js} +2 -2
- package/dist/cdn/{L4G6FO7A.js → HBOYEK6P.js} +1 -1
- package/dist/cdn/{MVHQR4FJ.js → HOIPLQXD.js} +1 -1
- package/dist/cdn/{LFQGH44F.js → HQMOMCWF.js} +1 -1
- package/dist/cdn/{N6AOFBBX.js → HSQ32NUA.js} +1 -1
- package/dist/cdn/{7HGVEE7A.js → HUNN3ERX.js} +1 -1
- package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
- package/dist/cdn/I3XBTQKJ.js +2 -0
- package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
- package/dist/cdn/INISFVAK.js +2 -0
- package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
- package/dist/cdn/{KCMZSNBL.js → ISK4QVLY.js} +1 -1
- package/dist/cdn/{DEGBVJ76.js → IUOORM26.js} +1 -1
- package/dist/cdn/J3CL6KB6.js +2 -0
- package/dist/cdn/JGESKW6S.js +2 -0
- package/dist/cdn/JH3NSZUT.js +2 -0
- package/dist/cdn/{ML3A3MYV.js → JS6A5QAV.js} +1 -1
- package/dist/cdn/{4LPXOEML.js → JUON3AJY.js} +1 -1
- package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
- package/dist/cdn/JYITKARU.js +104 -0
- package/dist/cdn/{KUZR6CGB.js → JZ5HUNM5.js} +1 -1
- package/dist/cdn/K4APZJ2O.js +2 -0
- package/dist/cdn/KCES2YBJ.js +2 -0
- package/dist/cdn/KDCZQ6UT.js +2 -0
- package/dist/cdn/KJZTU3DV.js +2 -0
- package/dist/cdn/KLKI4XNW.js +2 -0
- package/dist/cdn/{5XTQQOTT.js → KOCZJFY6.js} +1 -1
- package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
- package/dist/cdn/KWA7OWHO.js +2 -0
- package/dist/cdn/L7TUV2MY.js +2 -0
- package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
- package/dist/cdn/LGTXQIF7.js +2 -0
- package/dist/cdn/{IPM2XKST.js → LHDBHPXR.js} +1 -1
- package/dist/cdn/LIBE4XVH.js +2 -0
- package/dist/cdn/M744CFJ2.js +2 -0
- package/dist/cdn/{CHQDKVVQ.js → MARXRC6B.js} +1 -1
- package/dist/cdn/MI6AKTXQ.js +2 -0
- package/dist/cdn/MJTWR33N.js +2 -0
- package/dist/cdn/MPGHOXLW.js +2 -0
- package/dist/cdn/MU6ZYADT.js +2 -0
- package/dist/cdn/{XE3FKQFA.js → MVCB4RM7.js} +1 -1
- package/dist/cdn/MXE4VPZS.js +2 -0
- package/dist/cdn/{KFONSKQF.js → MZ2RZ62O.js} +1 -1
- package/dist/cdn/NK66D65H.js +2 -0
- package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
- package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
- package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
- package/dist/cdn/NZ2C5DJB.js +2 -0
- package/dist/cdn/O3VKOV2W.js +2 -0
- package/dist/cdn/{THTYR6IL.js → OAXHS4LE.js} +1 -1
- package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
- package/dist/cdn/OFFKJPQH.js +2 -0
- package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
- package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
- package/dist/cdn/ONKEO3Z2.js +2 -0
- package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
- package/dist/cdn/{A4GEWIPY.js → OSUM4CWA.js} +1 -1
- package/dist/cdn/OT7PLFBK.js +2 -0
- package/dist/cdn/OWWQ5SYW.js +2 -0
- package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
- package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
- package/dist/cdn/P5QEJOJS.js +2 -0
- package/dist/cdn/{5MEQANMY.js → PAQGR4DD.js} +1 -1
- package/dist/cdn/PBO5VH6A.js +2 -0
- package/dist/cdn/{ZXOO3X5P.js → PEEVY5UG.js} +1 -1
- package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
- package/dist/cdn/PLEC3GNT.js +2 -0
- package/dist/cdn/Q5OFF4FE.js +45 -0
- package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
- package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
- package/dist/cdn/QZCTLQBM.js +2 -0
- package/dist/cdn/RICA7GJM.js +2 -0
- package/dist/cdn/S5GVUYBL.js +2 -0
- package/dist/cdn/SCU3SBSN.js +2 -0
- package/dist/cdn/SQIKFO32.js +2 -0
- package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
- package/dist/cdn/SUNHJPBW.js +2 -0
- package/dist/cdn/SYVPFDIW.js +2 -0
- package/dist/cdn/T62EETHJ.js +2 -0
- package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
- package/dist/cdn/TEWEPSIO.js +2 -0
- package/dist/cdn/{QOOBNATX.js → TGEHTOWR.js} +1 -1
- package/dist/cdn/{DAB5R2BN.js → TQYJM66E.js} +1 -1
- package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
- package/dist/cdn/{SBYD2EKR.js → TSSN2OW3.js} +1 -1
- package/dist/cdn/TU3LYEK3.js +2 -0
- package/dist/cdn/TVG7KD3H.js +2 -0
- package/dist/cdn/{MRTKZZTF.js → U43KANH5.js} +1 -1
- package/dist/cdn/{7FZC3RZK.js → UB36FUCN.js} +1 -1
- package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
- package/dist/cdn/UM7RIOCE.js +2 -0
- package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
- package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
- package/dist/cdn/V6LKZUEZ.js +3 -0
- package/dist/cdn/{YOT6DVSU.js → V7AEHY25.js} +1 -1
- package/dist/cdn/VA6KJZ2Y.js +2 -0
- package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
- package/dist/cdn/VM4XLVMS.js +2 -0
- package/dist/cdn/{KZ7LPNX3.js → VNNTABNO.js} +1 -1
- package/dist/cdn/VPYL3RVN.js +2 -0
- package/dist/cdn/{XW4PBQNW.js → VT6X6QMA.js} +1 -1
- package/dist/cdn/WFW6BNDT.js +2 -0
- package/dist/cdn/{GV3TT7L5.js → WKQB6Z7Z.js} +1 -1
- package/dist/cdn/{Y7HBWU3M.js → WMUPNT4Q.js} +1 -1
- package/dist/cdn/WSL76GA5.js +2 -0
- package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
- package/dist/cdn/WTJ2NJ76.js +2 -0
- package/dist/cdn/WZOHQJFB.js +2 -0
- package/dist/cdn/X3S4M6JL.js +2 -0
- package/dist/cdn/XV4LD73L.js +2 -0
- package/dist/cdn/Y5ZH7VS4.js +2 -0
- package/dist/cdn/{WASEMNYV.js → YC4WZNPI.js} +1 -1
- package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
- package/dist/cdn/ZGBULDPL.js +2 -0
- package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → ZRX4BEOX.js} +1 -1
- package/dist/cdn/{S5UDCCRH.js → ZWIF7LHW.js} +1 -1
- package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
- package/dist/cdn/assets/charts-config-view-charts/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 +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +19 -21
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +27 -35
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +39 -36
- package/dist/chunks/box-plot-data.js +273 -282
- package/dist/chunks/box-plot-model.js +159 -144
- package/dist/chunks/chart-model.js +177 -145
- package/dist/chunks/chart-object-literals.js +2 -1
- package/dist/chunks/chart-ui-utils.js +24 -23
- package/dist/chunks/class-breaks.js +12 -12
- package/dist/chunks/combo-bar-line-chart-model.js +25 -26
- package/dist/chunks/data-labels-symbol.js +39 -24
- package/dist/chunks/data-labels-visibility.js +24 -24
- package/dist/chunks/data.js +69 -69
- package/dist/chunks/gauge-model.js +18 -18
- package/dist/chunks/generate-x-axis-title.js +12 -12
- package/dist/chunks/heat-chart-model.js +93 -64
- package/dist/chunks/histogram-data.js +22 -22
- package/dist/chunks/histogram-model.js +10 -10
- package/dist/chunks/index.js +190 -179
- package/dist/chunks/index2.js +6069 -5721
- package/dist/chunks/index3.js +96 -86
- package/dist/chunks/index4.js +312 -87
- package/dist/chunks/index5.js +63 -100
- package/dist/chunks/line-chart-model.js +12 -12
- package/dist/chunks/model-setter.js +16 -15
- package/dist/chunks/model-with-line-marker-styling.js +2 -3
- package/dist/chunks/model-with-y-guides.js +59 -74
- package/dist/chunks/negative-values-stacked-to-baseline.js +18 -18
- package/dist/chunks/pie-chart-data.js +174 -192
- package/dist/chunks/pie-chart-model.js +161 -148
- package/dist/chunks/radar-chart-model.js +397 -46
- package/dist/chunks/resource.js +5 -5
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +73 -0
- package/dist/chunks/scatterplot-model.js +3 -3
- package/dist/chunks/serial-chart-data.js +889 -774
- package/dist/chunks/serial-chart-model.js +145 -124
- package/dist/chunks/series-length.js +2 -2
- package/dist/chunks/series-types.js +22 -18
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +17 -13
- package/dist/chunks/type-guards2.js +41 -33
- package/dist/chunks/utils.js +108 -96
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +632 -492
- package/dist/chunks/x-bounds.js +41 -42
- package/dist/components/arcgis-chart/customElement.d.ts +277 -164
- package/dist/components/arcgis-chart/customElement.js +10323 -10325
- package/dist/components/arcgis-charts-action-bar/customElement.js +33 -30
- package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +44 -43
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -15
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-box-plot-data/index.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 +15 -18
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +18 -20
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +138 -136
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-format/customElement.js +93 -86
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide/customElement.js +17 -18
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +64 -76
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +53 -54
- package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -12
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
- 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 +6 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +41 -48
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +55 -56
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +65 -66
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +79 -79
- package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
- 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 +9 -11
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
- package/dist/components/arcgis-charts-info-modal/customElement.js +6 -6
- 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 +62 -67
- package/dist/index.js +471 -458
- package/dist/json-schema/index.d.ts +207 -6
- package/dist/loader.js +2 -2
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +8 -5
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +44 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +6 -5
- package/dist/model/mixins/model-with-multi-axes.d.ts +62 -99
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -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/properties/rounded-corners.d.ts +18 -0
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
- package/dist/model/shared/type-guards.d.ts +16 -2
- package/dist/spec/chart-object-literals.d.ts +1 -0
- package/dist/spec/data-source.d.ts +15 -3
- 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 +42 -6
- package/dist/utils/chart-config/converter/index.js +198 -179
- package/dist/utils/chart-config/utils/index.d.ts +54 -4
- 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/cursor/interfaces.d.ts +21 -0
- package/dist/utils/data/categorical-data/index.d.ts +2 -2
- package/dist/utils/data/index.d.ts +14 -10
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +16 -4
- package/dist/utils/defaults/interfaces.d.ts +7 -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/interfaces.d.ts +2 -1
- package/dist/utils/layer/query-features/index.d.ts +18 -1
- package/dist/utils/layer/query-parser/index.d.ts +5 -3
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/type-guards/chart-types.d.ts +10 -0
- package/dist/utils/type-guards/series-types.d.ts +9 -2
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +7 -8
- package/dist/cdn/24RLLXS6.js +0 -2
- package/dist/cdn/2N4MK6FQ.js +0 -2
- package/dist/cdn/32FR66QO.js +0 -2
- package/dist/cdn/3EIVHDDK.js +0 -2
- package/dist/cdn/3NUNWPAR.js +0 -2
- package/dist/cdn/43ZHPVBB.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/5YJNENER.js +0 -2
- package/dist/cdn/6AF2OTL6.js +0 -2
- package/dist/cdn/6CFIKYKR.js +0 -2
- package/dist/cdn/6GLTSMOR.js +0 -2
- package/dist/cdn/7EMCHGGV.js +0 -2
- package/dist/cdn/7OF2IANH.js +0 -2
- package/dist/cdn/7VN3A7S2.js +0 -2
- package/dist/cdn/7YWZG3ZS.js +0 -2
- package/dist/cdn/A5GIBV5W.js +0 -2
- package/dist/cdn/ADPDJISV.js +0 -2
- package/dist/cdn/B4KAJRUJ.js +0 -2
- package/dist/cdn/BBUPTHPL.js +0 -2
- package/dist/cdn/BBURKBKE.js +0 -2
- package/dist/cdn/BLZODYE2.js +0 -4
- package/dist/cdn/BO62KSB5.js +0 -2
- package/dist/cdn/C2FOUUEM.js +0 -2
- package/dist/cdn/CJPEW4LJ.js +0 -142
- package/dist/cdn/CVU3UPPF.js +0 -2
- package/dist/cdn/CZ5XRXCE.js +0 -2
- package/dist/cdn/D73VV2AZ.js +0 -2
- package/dist/cdn/DJACBOFO.js +0 -2
- package/dist/cdn/DPNTYHTH.js +0 -2
- package/dist/cdn/DZ72EIRH.js +0 -2
- package/dist/cdn/EGISZTGB.js +0 -2
- package/dist/cdn/EP34TF4L.js +0 -2
- package/dist/cdn/EZD3FBJU.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/FQT7V7QG.js +0 -2
- package/dist/cdn/G72TNKCS.js +0 -2
- package/dist/cdn/GQ5QBLRO.js +0 -2
- package/dist/cdn/HWJGWDU3.js +0 -2
- package/dist/cdn/HZR4NSZV.js +0 -2
- package/dist/cdn/ICFKKJWQ.js +0 -2
- package/dist/cdn/IWX5L226.js +0 -2
- package/dist/cdn/JNG6V7XC.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/JS2KOBA2.js +0 -2
- package/dist/cdn/JTTJ455Y.js +0 -2
- package/dist/cdn/JWO5WVTZ.js +0 -2
- package/dist/cdn/K4WI2SGM.js +0 -2
- package/dist/cdn/KLHZFPYK.js +0 -2
- package/dist/cdn/KO7HQLGV.js +0 -2
- package/dist/cdn/L5AQ4I5T.js +0 -2
- package/dist/cdn/LC6CY2HW.js +0 -2
- package/dist/cdn/MBVTB42G.js +0 -2
- package/dist/cdn/MGEW6X3Y.js +0 -102
- package/dist/cdn/NSOZIR5F.js +0 -2
- package/dist/cdn/NTSTL3FK.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/O5A25X5K.js +0 -2
- package/dist/cdn/OAAJ6CIN.js +0 -2
- package/dist/cdn/OGYY2Y22.js +0 -2
- package/dist/cdn/PAIRUVLU.js +0 -2
- package/dist/cdn/PRGFNLY7.js +0 -2
- package/dist/cdn/PROSIXIF.js +0 -2
- package/dist/cdn/Q5JDSPJA.js +0 -2
- package/dist/cdn/QJC3FDWG.js +0 -2
- package/dist/cdn/QRLILSSI.js +0 -2
- package/dist/cdn/QY53LXP2.js +0 -2
- package/dist/cdn/R75MHIRF.js +0 -2
- package/dist/cdn/RDA5NV6M.js +0 -2
- package/dist/cdn/RG3DO2OE.js +0 -2
- package/dist/cdn/RPNZL6AC.js +0 -2
- package/dist/cdn/S32NLOJ5.js +0 -2
- package/dist/cdn/SCAZDS2G.js +0 -2
- package/dist/cdn/SJGYHEMZ.js +0 -2
- package/dist/cdn/STU55UIS.js +0 -58
- package/dist/cdn/TCTQ4LMU.js +0 -2
- package/dist/cdn/TDHHWIIC.js +0 -2
- package/dist/cdn/TJMPLGQI.js +0 -2
- package/dist/cdn/TJMTF45U.js +0 -3
- package/dist/cdn/TW5DX7YP.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/UZEMSOA2.js +0 -2
- package/dist/cdn/VBHQFV2H.js +0 -2
- package/dist/cdn/VFREVEVA.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/VZTLODMQ.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/WNKDEOFZ.js +0 -2
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/cdn/XCUXUZXY.js +0 -2
- package/dist/cdn/XG3WW5GG.js +0 -2
- package/dist/cdn/XJFVSX2E.js +0 -2
- package/dist/cdn/Y3CXVO2M.js +0 -2
- package/dist/cdn/YEZL5KRS.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/chunks/bar-chart-series.js +0 -15
- package/dist/chunks/index6.js +0 -66
- package/dist/chunks/time-zone.js +0 -38
- package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
- /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
- /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { repeat as
|
|
2
|
+
import { c as A } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as N } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
|
-
import { createModel as
|
|
6
|
-
import { g as S, i as
|
|
7
|
-
import { i as
|
|
8
|
-
import { substitute as
|
|
5
|
+
import { createModel as _ } from "../../model/shared/setup-utils.js";
|
|
6
|
+
import { g as S, i as V, w as U, n as R, k as T, m as v } from "../../chunks/type-guards2.js";
|
|
7
|
+
import { i as z } from "../../chunks/rotated-state.js";
|
|
8
|
+
import { substitute as H } from "@arcgis/core/intl.js";
|
|
9
9
|
import { C as n } from "../../chunks/interfaces.js";
|
|
10
|
-
import { isEqual as
|
|
11
|
-
import { i as
|
|
12
|
-
import { D as
|
|
13
|
-
import { LitElement as W, createEvent as f, renderElement as
|
|
14
|
-
import { css as
|
|
10
|
+
import { isEqual as w } from "lodash-es";
|
|
11
|
+
import { i as D } from "../../chunks/index4.js";
|
|
12
|
+
import { D as F, w as E, F as O } from "../../chunks/index3.js";
|
|
13
|
+
import { LitElement as W, createEvent as f, renderElement as I, safeStyleMap as G, safeClassMap as d } from "@arcgis/lumina";
|
|
14
|
+
import { css as X, html as h } from "lit";
|
|
15
15
|
import { createRef as Z, ref as K } from "lit/directives/ref.js";
|
|
16
|
-
import { u as
|
|
16
|
+
import { u as L } from "../../chunks/useT9n.js";
|
|
17
17
|
import { c as j, a as x, g as q } from "../../chunks/store.js";
|
|
18
|
-
import {
|
|
18
|
+
import { dt as Y, _ as Q, du as J, K as ee, cp as te } from "../../chunks/index2.js";
|
|
19
19
|
import { A as ae } from "../../chunks/axis-model-wrapper.js";
|
|
20
|
-
import { h as
|
|
21
|
-
import { a as
|
|
22
|
-
import { C as M } from "../../chunks/
|
|
23
|
-
import { a as
|
|
24
|
-
import {
|
|
20
|
+
import { h as se, f as y } from "../../chunks/web-component-utils.js";
|
|
21
|
+
import { a as ie } from "../../chunks/chart-ui-utils2.js";
|
|
22
|
+
import { C as M } from "../../chunks/index5.js";
|
|
23
|
+
import { a as P } from "../../chunks/chart-ui-utils.js";
|
|
24
|
+
import { d as re, e as $ } from "../../chunks/type-guards.js";
|
|
25
25
|
import { r as oe } from "../../chunks/popover-ui-utils.js";
|
|
26
26
|
import { u as o, s as le } from "../../chunks/chart-object-literals.js";
|
|
27
27
|
const p = {
|
|
@@ -29,58 +29,58 @@ const p = {
|
|
|
29
29
|
tabBar: "tab-bar",
|
|
30
30
|
tab: "tab"
|
|
31
31
|
};
|
|
32
|
-
function
|
|
33
|
-
const
|
|
32
|
+
function B(m, e) {
|
|
33
|
+
const s = /* @__PURE__ */ new Set();
|
|
34
34
|
let t = e;
|
|
35
|
-
return m?.forEach((a,
|
|
35
|
+
return m?.forEach((a, i) => {
|
|
36
36
|
const r = a.chartId;
|
|
37
|
-
(
|
|
37
|
+
(s.has(r) || r === void 0 || r === "") && (a.chartId = `Chart_${Date.now()}_${i}`, e === r && (t = a.chartId)), s.add(r);
|
|
38
38
|
}), t;
|
|
39
39
|
}
|
|
40
|
-
function ne(m, e,
|
|
41
|
-
return m?.filter((t) =>
|
|
40
|
+
function ne(m, e, s) {
|
|
41
|
+
return m?.filter((t) => E(s, t.config) && t.layer?.id === e) ?? [];
|
|
42
42
|
}
|
|
43
43
|
function ce(m) {
|
|
44
|
-
const { modelList: e, layerList:
|
|
44
|
+
const { modelList: e, layerList: s, activeLayerId: t, disableEditing: a } = m, i = /* @__PURE__ */ new Map();
|
|
45
45
|
return e?.forEach((r) => {
|
|
46
46
|
const l = r.layer;
|
|
47
|
-
l &&
|
|
48
|
-
}), a ||
|
|
47
|
+
l && i.set(l.id, l);
|
|
48
|
+
}), a || s.forEach((r) => i.set(r.id, r)), Array.from(i.values()).filter((r) => !t || r.id === t);
|
|
49
49
|
}
|
|
50
50
|
function he(m, e) {
|
|
51
|
-
m.forEach((
|
|
51
|
+
m.forEach((s) => {
|
|
52
52
|
e.forEach((t) => {
|
|
53
|
-
|
|
53
|
+
s?.id === t.layer?.id && k(s, t);
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
const t = [...
|
|
61
|
-
let
|
|
62
|
-
a !== void 0 && a > -1 ? (
|
|
57
|
+
function k(m, e) {
|
|
58
|
+
const s = m;
|
|
59
|
+
if (s) {
|
|
60
|
+
const t = [...s?.charts ?? []], a = t?.findIndex((r) => r.id === e.chartId);
|
|
61
|
+
let i = !1;
|
|
62
|
+
a !== void 0 && a > -1 ? (i = !w(t[a], e.config), t[a] = e.config) : s && !D(e.config) && (i = !0, t.push(e.config)), i && (s.charts = t);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
function de(m, e) {
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
const t = [...
|
|
69
|
-
a > -1 && (t.splice(a, 1),
|
|
66
|
+
const s = m;
|
|
67
|
+
if (s) {
|
|
68
|
+
const t = [...s.charts ?? []], a = t.findIndex((i) => i.id === e);
|
|
69
|
+
a > -1 && (t.splice(a, 1), s.charts = t);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
function pe(m, e) {
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
let t = [...
|
|
76
|
-
t =
|
|
73
|
+
const s = m;
|
|
74
|
+
if (s) {
|
|
75
|
+
let t = [...s.charts ?? []];
|
|
76
|
+
t = F({
|
|
77
77
|
arrayA: t,
|
|
78
78
|
arrayB: e.map((a) => a.config),
|
|
79
79
|
getKey: (a) => a.id ?? a.title?.content.text ?? ""
|
|
80
|
-
}),
|
|
80
|
+
}), s.charts = t;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const me =
|
|
83
|
+
const me = X`.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;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
84
84
|
class ue extends W {
|
|
85
85
|
constructor() {
|
|
86
86
|
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = Z(), this.supportedChartTypes = [
|
|
@@ -91,10 +91,10 @@ class ue extends W {
|
|
|
91
91
|
o.HistogramSeries,
|
|
92
92
|
o.ScatterSeries,
|
|
93
93
|
o.HeatSeries
|
|
94
|
-
], this._messages =
|
|
95
|
-
const
|
|
96
|
-
if (a?.isSameChartAs(
|
|
97
|
-
switch (
|
|
94
|
+
], this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.chartDataProcessComplete = (e) => {
|
|
95
|
+
const s = e, { chartData: t, model: a } = s.detail, i = this.getModel(this.selectedChartId);
|
|
96
|
+
if (a?.isSameChartAs(i))
|
|
97
|
+
switch (i?.chartType) {
|
|
98
98
|
case o.HistogramSeries:
|
|
99
99
|
if (this.chartData = t, a && (a.dataStore.chartData = t, re(a.layer))) {
|
|
100
100
|
const l = a, c = t?.bins?.length;
|
|
@@ -108,21 +108,23 @@ class ue extends W {
|
|
|
108
108
|
case o.ScatterSeries: {
|
|
109
109
|
const l = t, { dataItems: c, r2: g, aggregated: u } = l;
|
|
110
110
|
let C = g;
|
|
111
|
-
Number.isFinite(g) || (C = void 0), this.r2 = C,
|
|
111
|
+
Number.isFinite(g) || (C = void 0), this.r2 = C, U(a) && (a.dataStore.r2 = C, a.dataStore.aggregated = u, u && (a.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(c), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
case o.LineSeries:
|
|
115
115
|
case o.BarSeries: {
|
|
116
116
|
const { dataItems: l, timeIntervalInfo: c } = t;
|
|
117
|
-
|
|
118
|
-
const g = s.xAxisField, u = l.some((N) => N[g] === null), C = s.nullCategory;
|
|
119
|
-
u && C === void 0 && (s.nullCategory = O.nullCategory);
|
|
120
|
-
}
|
|
117
|
+
(S(i) || V(i) && i.binTemporalData) && (c?.size !== void 0 && i.temporalBinningSize !== c?.size && (i.temporalBinningSize = c?.size), c?.unit !== void 0 && i.temporalBinningUnit !== c?.unit && c?.unit !== le.Quarter && (i.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && j(x, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(l), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds), this.applyDefaultNullCategoryIfNeeded(i, l);
|
|
121
118
|
break;
|
|
122
119
|
}
|
|
123
120
|
}
|
|
121
|
+
}, this.applyDefaultNullCategoryIfNeeded = (e, s) => {
|
|
122
|
+
if (R(e) && e.nullCategory === void 0) {
|
|
123
|
+
const t = e.xAxisField;
|
|
124
|
+
s.some((i) => i[t] === null) && (e.nullCategory = O.nullCategory);
|
|
125
|
+
}
|
|
124
126
|
}, this.chartAxesMinMaxChange = (e) => {
|
|
125
|
-
const
|
|
127
|
+
const s = e, { bounds: t, model: a } = s.detail, i = this.getModel(this.selectedChartId), r = a?.isSameChartAs(i), l = i?.chartType;
|
|
126
128
|
if (r)
|
|
127
129
|
switch (l) {
|
|
128
130
|
case o.BarSeries:
|
|
@@ -134,9 +136,9 @@ class ue extends W {
|
|
|
134
136
|
break;
|
|
135
137
|
}
|
|
136
138
|
}, this.chartSeriesColorChange = (e) => {
|
|
137
|
-
const
|
|
138
|
-
if (a?.isSameChartAs(
|
|
139
|
-
switch (
|
|
139
|
+
const s = e, { data: t, model: a } = s.detail, i = this.getModel(this.selectedChartId);
|
|
140
|
+
if (a?.isSameChartAs(i))
|
|
141
|
+
switch (i?.chartType) {
|
|
140
142
|
case o.BarSeries:
|
|
141
143
|
case o.BoxPlotSeries:
|
|
142
144
|
case o.LineSeries:
|
|
@@ -151,42 +153,42 @@ class ue extends W {
|
|
|
151
153
|
case o.ScatterSeries:
|
|
152
154
|
}
|
|
153
155
|
}, this.chartNoRenderPropChange = (e) => {
|
|
154
|
-
const
|
|
156
|
+
const s = e, { propName: t, value: a, model: i } = s.detail, r = this.modelList.find((l) => i?.isSameChartAs(l));
|
|
155
157
|
if (r)
|
|
156
158
|
switch (t) {
|
|
157
159
|
case "rotation":
|
|
158
|
-
typeof a == "boolean" &&
|
|
160
|
+
typeof a == "boolean" && z(r) && (r.rotated = a);
|
|
159
161
|
break;
|
|
160
162
|
case "legendPosition":
|
|
161
|
-
typeof a == "string" &&
|
|
163
|
+
typeof a == "string" && T(r) && (r.legendPosition = a);
|
|
162
164
|
break;
|
|
163
165
|
case "legendVisibility":
|
|
164
|
-
typeof a == "boolean" &&
|
|
166
|
+
typeof a == "boolean" && T(r) && (r.legendVisibility = a);
|
|
165
167
|
break;
|
|
166
168
|
}
|
|
167
169
|
}, this.chartLegendItemVisibilityChange = (e) => {
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
+
const s = e, { legendItemVisibility: t, model: a } = s.detail, i = this.modelList.find((r) => a?.isSameChartAs(r));
|
|
171
|
+
i?.setSeriesVisibility(t), v(i) && ((i.getMinBound(1) === null || Number.isNaN(i.getMinBound(1))) && i.setMinBound(null, 1), (i.getMaxBound(1) === null || Number.isNaN(i.getMaxBound(1))) && i.setMaxBound(null, 1), S(i) && ((i.getMinBound(0) === null || Number.isNaN(i.getMinBound(0))) && i.setMinBound(null, 0), (i.getMaxBound(0) === null || Number.isNaN(i.getMaxBound(0))) && i.setMaxBound(null, 0)));
|
|
170
172
|
}, this.onSelectChartTypeChange = (e) => {
|
|
171
173
|
this.currentChartTypeText = "", this.calculatedDataMinMaxBounds = void 0, this.calculatedMinMaxBounds = void 0, this.removeSelectChartTypePopover();
|
|
172
|
-
const { selectedModelType:
|
|
173
|
-
|
|
174
|
+
const { selectedModelType: s, layerId: t } = e.target;
|
|
175
|
+
s !== void 0 && (this.allowChartSyncing = !0, this.arcgisChartsConfigNewChart.emit({
|
|
174
176
|
key: "key",
|
|
175
|
-
chartType:
|
|
177
|
+
chartType: s,
|
|
176
178
|
layerId: t
|
|
177
179
|
}));
|
|
178
180
|
}, this.onAddChartClose = () => {
|
|
179
181
|
this.removeSelectChartTypePopover();
|
|
180
182
|
}, this.onModelConfigChange = (e) => {
|
|
181
183
|
if (this.syncChartsToLayers && this.allowChartSyncing) {
|
|
182
|
-
const
|
|
183
|
-
|
|
184
|
+
const s = e.target;
|
|
185
|
+
k(s?.layer, s);
|
|
184
186
|
}
|
|
185
187
|
this.requestUpdate();
|
|
186
188
|
}, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.close = !1, this.usePopupTemplateFieldsInfo = !1, this.panelNumber = 0, this.filterBySelection = !1, this.arcgisChartsConfigChartViewChartClose = f(), this.arcgisChartsConfigModelListChange = f(), this.arcgisChartsConfigNewChart = f(), this.arcgisChartsConfigPanelNumberChange = f(), this.arcgisChartsConfigSelectedChartChange = f(), this.addChartEventListeners(), this.listen("arcgisChartsConfigModelListReorder", this.modelListReorderChangeListener);
|
|
187
189
|
}
|
|
188
190
|
static {
|
|
189
|
-
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: y }], layerList: [0, { hasChanged: y }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1, close: 5, chartData: [0, { hasChanged: y }], r2: 9, calculatedDataMinMaxBounds: [0, { hasChanged: y }], calculatedMinMaxBounds: [0, { hasChanged: y }], seriesColor: [0, { hasChanged:
|
|
191
|
+
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: y }], layerList: [0, { hasChanged: y }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1, close: 5, chartData: [0, { hasChanged: y }], r2: 9, calculatedDataMinMaxBounds: [0, { hasChanged: y }], calculatedMinMaxBounds: [0, { hasChanged: y }], seriesColor: [0, { hasChanged: se }], popoverPlacement: 1, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5, panelNumber: 9, filterBySelection: 5 };
|
|
190
192
|
}
|
|
191
193
|
static {
|
|
192
194
|
this.styles = me;
|
|
@@ -206,22 +208,22 @@ class ue extends W {
|
|
|
206
208
|
super.disconnectedCallback(), this.clearPartialModels(), this.removeSelectChartTypePopover();
|
|
207
209
|
}
|
|
208
210
|
modelListReorderChangeListener(e) {
|
|
209
|
-
const { modelList:
|
|
210
|
-
if (this.modelList =
|
|
211
|
+
const { modelList: s } = e.detail;
|
|
212
|
+
if (this.modelList = F({
|
|
211
213
|
arrayA: this.modelList,
|
|
212
|
-
arrayB:
|
|
214
|
+
arrayB: s,
|
|
213
215
|
getKey: (t) => t.chartId ?? t.titleText ?? ""
|
|
214
216
|
}), this.syncChartsToLayers) {
|
|
215
|
-
const t =
|
|
217
|
+
const t = s.find((a) => a.layer?.id !== void 0)?.layer?.id;
|
|
216
218
|
if (t) {
|
|
217
|
-
const a = this.layerList.find((
|
|
218
|
-
a && pe(a,
|
|
219
|
+
const a = this.layerList.find((i) => i.id.toString() === t);
|
|
220
|
+
a && pe(a, s);
|
|
219
221
|
}
|
|
220
222
|
}
|
|
221
223
|
}
|
|
222
224
|
async layerListChange() {
|
|
223
|
-
const e = [],
|
|
224
|
-
let t = [...this.modelList.filter((a) =>
|
|
225
|
+
const e = [], s = this.layerList.map((a) => a.id.toString());
|
|
226
|
+
let t = [...this.modelList.filter((a) => s.includes(a.layer?.id ?? ""))];
|
|
225
227
|
for (let a of this.layerList ?? []) {
|
|
226
228
|
if (a.type === "sublayer") {
|
|
227
229
|
const l = await a.createFeatureLayer();
|
|
@@ -231,7 +233,7 @@ class ue extends W {
|
|
|
231
233
|
}
|
|
232
234
|
const r = a.charts;
|
|
233
235
|
for (const l of r ?? []) {
|
|
234
|
-
const c = await
|
|
236
|
+
const c = await _({
|
|
235
237
|
layer: a,
|
|
236
238
|
config: l,
|
|
237
239
|
commonStrings: this.commonStrings
|
|
@@ -239,18 +241,18 @@ class ue extends W {
|
|
|
239
241
|
c !== void 0 && e.push(c);
|
|
240
242
|
}
|
|
241
243
|
}
|
|
242
|
-
|
|
244
|
+
B(e), e.forEach((a) => {
|
|
243
245
|
t.find((r) => r.isSameChartAs(a)) === void 0 && t.push(a);
|
|
244
246
|
}), t = t.filter((a) => !Y(a.config)), this.modelList = t;
|
|
245
247
|
}
|
|
246
|
-
modelListChange(e,
|
|
247
|
-
this.selectedChartId =
|
|
248
|
+
modelListChange(e, s) {
|
|
249
|
+
this.selectedChartId = B(e, this.selectedChartId), s?.forEach((a) => {
|
|
248
250
|
a.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
249
251
|
}), e.forEach((a) => {
|
|
250
252
|
a.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
251
253
|
});
|
|
252
254
|
const t = this.getModel(this.selectedChartId);
|
|
253
|
-
this.currentChartTypeText = t?.chartType !== void 0 ?
|
|
255
|
+
this.currentChartTypeText = t?.chartType !== void 0 ? P({
|
|
254
256
|
chartType: t.chartType,
|
|
255
257
|
commonStrings: this.commonStrings,
|
|
256
258
|
config: t.config
|
|
@@ -258,14 +260,14 @@ class ue extends W {
|
|
|
258
260
|
}
|
|
259
261
|
selectedChartIdChange(e) {
|
|
260
262
|
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = n.Data;
|
|
261
|
-
const
|
|
262
|
-
this.setEventBasedPropsFromModelData(
|
|
263
|
-
chartType:
|
|
263
|
+
const s = this.getModel(e);
|
|
264
|
+
this.setEventBasedPropsFromModelData(s), this.currentChartTypeText = s?.chartType !== void 0 ? P({
|
|
265
|
+
chartType: s.chartType,
|
|
264
266
|
commonStrings: this.commonStrings,
|
|
265
|
-
config:
|
|
267
|
+
config: s.config
|
|
266
268
|
}) : "", e !== void 0 && e !== x.selectedChartId && (x.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
267
269
|
key: "key",
|
|
268
|
-
model:
|
|
270
|
+
model: s
|
|
269
271
|
});
|
|
270
272
|
}
|
|
271
273
|
panelNumberChange(e) {
|
|
@@ -275,24 +277,24 @@ class ue extends W {
|
|
|
275
277
|
this.listenOn(document, M.DataProcessComplete, this.chartDataProcessComplete), this.listenOn(document, M.AxesMinMaxChange, this.chartAxesMinMaxChange), this.listenOn(document, M.SeriesColorChange, this.chartSeriesColorChange), this.listenOn(document, M.NoRenderPropChange, this.chartNoRenderPropChange), this.listenOn(document, M.LegendItemVisibilityChange, this.chartLegendItemVisibilityChange);
|
|
276
278
|
}
|
|
277
279
|
getDataExtent(e) {
|
|
278
|
-
const
|
|
280
|
+
const s = this.getModel(this.selectedChartId)?.config;
|
|
279
281
|
let t = [];
|
|
280
|
-
if (
|
|
282
|
+
if (s !== void 0 && e !== void 0) {
|
|
281
283
|
const a = Q({
|
|
282
|
-
chartConfig:
|
|
284
|
+
chartConfig: s,
|
|
283
285
|
chartData: e
|
|
284
|
-
}), { minY:
|
|
286
|
+
}), { minY: i, maxY: r, minX: l, maxX: c } = a;
|
|
285
287
|
t = [
|
|
286
288
|
{ isXAxis: !0, minimum: l, maximum: c },
|
|
287
|
-
{ isXAxis: !1, minimum:
|
|
289
|
+
{ isXAxis: !1, minimum: i, maximum: r }
|
|
288
290
|
];
|
|
289
291
|
}
|
|
290
292
|
return t;
|
|
291
293
|
}
|
|
292
294
|
updateAxesBoundsInAppState(e) {
|
|
293
|
-
e?.forEach((
|
|
294
|
-
const { isXAxis: t, maximum: a, minimum:
|
|
295
|
-
if (r !== void 0 &&
|
|
295
|
+
e?.forEach((s) => {
|
|
296
|
+
const { isXAxis: t, maximum: a, minimum: i } = s, r = this.getModel(this.selectedChartId);
|
|
297
|
+
if (r !== void 0 && v(r) && this.selectedChartId !== void 0) {
|
|
296
298
|
const l = new ae(r, t), c = q({
|
|
297
299
|
chartId: this.selectedChartId,
|
|
298
300
|
isXAxis: t,
|
|
@@ -300,49 +302,49 @@ class ue extends W {
|
|
|
300
302
|
}), g = x.chartAxesBoundDataMap;
|
|
301
303
|
g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
|
|
302
304
|
const u = g[this.selectedChartId]?.[c], C = {
|
|
303
|
-
defaultMinBound: u?.defaultMinBound === u?.currMinBound ?
|
|
304
|
-
currMinBound:
|
|
305
|
+
defaultMinBound: u?.defaultMinBound === u?.currMinBound ? i : u?.defaultMinBound,
|
|
306
|
+
currMinBound: i,
|
|
305
307
|
defaultMaxBound: u?.defaultMaxBound === u?.currMaxBound ? a : u?.defaultMaxBound,
|
|
306
308
|
currMaxBound: a
|
|
307
309
|
};
|
|
308
|
-
!
|
|
310
|
+
!w(u, C) && this.selectedChartId !== void 0 && g?.[this.selectedChartId] !== void 0 && (g[this.selectedChartId][c] = C);
|
|
309
311
|
}
|
|
310
312
|
});
|
|
311
313
|
}
|
|
312
314
|
getPlacement() {
|
|
313
315
|
let e;
|
|
314
|
-
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) =>
|
|
316
|
+
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) => E(J, a.config)).length <= 2 ? "bottom" : "top", e;
|
|
315
317
|
}
|
|
316
318
|
onBackFlow() {
|
|
317
319
|
this.panelNumber -= 1;
|
|
318
320
|
}
|
|
319
321
|
async onAddChartClick(e) {
|
|
320
|
-
const { referenceElement:
|
|
321
|
-
let
|
|
322
|
+
const { referenceElement: s, layerId: t, layerType: a } = e.detail;
|
|
323
|
+
let i = !0;
|
|
322
324
|
if ($(a) && t) {
|
|
323
325
|
const r = this.layerList.find((l) => l.id === t);
|
|
324
|
-
$(r?.type) && (
|
|
326
|
+
$(r?.type) && (i = !!(await ee(r))?.attributeTable);
|
|
325
327
|
}
|
|
326
|
-
this.setupSelectChartTypePopover(
|
|
328
|
+
this.setupSelectChartTypePopover(s, t, a, i);
|
|
327
329
|
}
|
|
328
|
-
setupSelectChartTypePopover(e,
|
|
329
|
-
const
|
|
330
|
-
this.removeSelectChartTypePopover(), this.selectChartTypePopover =
|
|
330
|
+
setupSelectChartTypePopover(e, s, t, a = !0) {
|
|
331
|
+
const i = this.getPlacement();
|
|
332
|
+
this.removeSelectChartTypePopover(), this.selectChartTypePopover = I(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${s} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${i} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`), !document.body.contains(this.selectChartTypePopover) && this.selectChartTypePopover !== null && document.body.appendChild(this.selectChartTypePopover);
|
|
331
333
|
}
|
|
332
334
|
getModel(e) {
|
|
333
|
-
return this.modelList?.find((
|
|
335
|
+
return this.modelList?.find((s) => s.chartId === e);
|
|
334
336
|
}
|
|
335
337
|
removeSelectChartTypePopover() {
|
|
336
338
|
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = oe(this.selectChartTypePopover));
|
|
337
339
|
}
|
|
338
340
|
clearPartialModels() {
|
|
339
|
-
this.modelList = this.modelList.filter((e) => !
|
|
341
|
+
this.modelList = this.modelList.filter((e) => !D(e.config));
|
|
340
342
|
}
|
|
341
343
|
onViewChartDelete(e) {
|
|
342
|
-
const { chartId:
|
|
343
|
-
if (
|
|
344
|
-
const t = this.modelList.find((
|
|
345
|
-
this.modelList = [...this.modelList.filter((
|
|
344
|
+
const { chartId: s } = e.detail;
|
|
345
|
+
if (s !== void 0) {
|
|
346
|
+
const t = this.modelList.find((i) => i.chartId === s), a = this.layerList.find((i) => i.id === t?.layer?.id);
|
|
347
|
+
this.modelList = [...this.modelList.filter((i) => i.chartId !== s)], a && this.syncChartsToLayers && this.allowChartSyncing && de(a, s);
|
|
346
348
|
}
|
|
347
349
|
}
|
|
348
350
|
onViewChartsSelect(e) {
|
|
@@ -361,9 +363,9 @@ class ue extends W {
|
|
|
361
363
|
this.chartData = e?.dataStore.chartData, this.r2 = e?.dataStore.r2, this.seriesColor = e?.dataStore.seriesColor, this.calculatedMinMaxBounds = e?.dataStore.calculatedMinMaxBounds, this.calculatedDataMinMaxBounds = e?.dataStore.calculatedDataMinMaxBounds;
|
|
362
364
|
}
|
|
363
365
|
createTooltip(e) {
|
|
364
|
-
const
|
|
366
|
+
const s = e.target;
|
|
365
367
|
let t = "";
|
|
366
|
-
switch (
|
|
368
|
+
switch (s.icon) {
|
|
367
369
|
case "configure":
|
|
368
370
|
t = this._messages.data ?? "";
|
|
369
371
|
break;
|
|
@@ -391,10 +393,10 @@ class ue extends W {
|
|
|
391
393
|
t = "";
|
|
392
394
|
break;
|
|
393
395
|
}
|
|
394
|
-
this.tooltip =
|
|
396
|
+
this.tooltip = I(h`<calcite-tooltip style=${G({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${s} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
395
397
|
}
|
|
396
398
|
destroyTooltip() {
|
|
397
|
-
|
|
399
|
+
ie(this.tooltip);
|
|
398
400
|
}
|
|
399
401
|
renderViewCharts() {
|
|
400
402
|
const e = ce({
|
|
@@ -403,67 +405,67 @@ class ue extends W {
|
|
|
403
405
|
activeLayerId: this.activeLayerId,
|
|
404
406
|
disableEditing: this.disableEditing
|
|
405
407
|
});
|
|
406
|
-
return
|
|
408
|
+
return N(e, (s) => s.id, (s) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ne(this.modelList, s.id.toString(), $(s.type) ? te : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${s} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
407
409
|
}
|
|
408
410
|
render() {
|
|
409
411
|
return this.close ? null : h`<calcite-flow>${b("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${K(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
410
412
|
}
|
|
411
413
|
renderTabs() {
|
|
412
414
|
const e = this.getModel(this.selectedChartId);
|
|
413
|
-
return b("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ?
|
|
415
|
+
return b("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? H(this._messages.pageFlowTitle, {
|
|
414
416
|
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
415
417
|
layerName: e?.layer?.title ?? ""
|
|
416
418
|
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(p.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(p.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === n.Data || this.selectedPanel === void 0} @click=${() => {
|
|
417
419
|
this.selectedPanel = n.Data;
|
|
418
420
|
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
419
421
|
this.selectedPanel = n.Series;
|
|
420
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
422
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
421
423
|
this.selectedPanel = n.Series;
|
|
422
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(p.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
424
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(p.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
423
425
|
this.selectedPanel = n.Series;
|
|
424
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === n.Slices} @click=${() => {
|
|
426
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === n.Slices} @click=${() => {
|
|
425
427
|
this.selectedPanel = n.Slices;
|
|
426
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === n.Axes} @click=${() => {
|
|
428
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices ?? ""}></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === n.Axes} @click=${() => {
|
|
427
429
|
this.selectedPanel = n.Axes;
|
|
428
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === n.Guides} @click=${() => {
|
|
430
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes ?? ""}></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === n.Guides} @click=${() => {
|
|
429
431
|
this.selectedPanel = n.Guides;
|
|
430
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}<calcite-action class=${d(p.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === n.Format} @click=${() => {
|
|
432
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides ?? ""}></calcite-action>` : null}<calcite-action class=${d(p.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === n.Format} @click=${() => {
|
|
431
433
|
this.selectedPanel = n.Format;
|
|
432
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${d(p.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === n.General} @click=${() => {
|
|
434
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format ?? ""}></calcite-action><calcite-action class=${d(p.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === n.General} @click=${() => {
|
|
433
435
|
this.selectedPanel = n.General;
|
|
434
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
436
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general ?? ""}></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
435
437
|
}
|
|
436
438
|
renderChartUIComponent() {
|
|
437
|
-
const e = this.getModel(this.selectedChartId),
|
|
439
|
+
const e = this.getModel(this.selectedChartId), s = e?.layer;
|
|
438
440
|
let t = null;
|
|
439
441
|
if (e !== void 0 && !this.disableEditing)
|
|
440
442
|
switch (e?.chartType) {
|
|
441
443
|
case o.BarSeries:
|
|
442
|
-
t = h`<arcgis-charts-config-bar-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
444
|
+
t = h`<arcgis-charts-config-bar-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
|
|
443
445
|
break;
|
|
444
446
|
case o.LineSeries:
|
|
445
|
-
t = h`<arcgis-charts-config-line-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
447
|
+
t = h`<arcgis-charts-config-line-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
|
|
446
448
|
break;
|
|
447
449
|
case o.PieSeries:
|
|
448
|
-
t = h`<arcgis-charts-config-pie-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
450
|
+
t = h`<arcgis-charts-config-pie-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .chartData=${this.chartData} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
|
|
449
451
|
break;
|
|
450
452
|
case o.HistogramSeries:
|
|
451
|
-
t = h`<arcgis-charts-config-histogram class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
453
|
+
t = h`<arcgis-charts-config-histogram class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
|
|
452
454
|
break;
|
|
453
455
|
case o.ScatterSeries:
|
|
454
|
-
t = h`<arcgis-charts-config-scatter-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
456
|
+
t = h`<arcgis-charts-config-scatter-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
|
|
455
457
|
break;
|
|
456
458
|
case o.BoxPlotSeries:
|
|
457
|
-
t = h`<arcgis-charts-config-box-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
459
|
+
t = h`<arcgis-charts-config-box-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
|
|
458
460
|
break;
|
|
459
461
|
case o.HeatSeries:
|
|
460
|
-
t = h`<arcgis-charts-config-heat-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${
|
|
462
|
+
t = h`<arcgis-charts-config-heat-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data}></arcgis-charts-config-heat-chart>`;
|
|
461
463
|
break;
|
|
462
464
|
}
|
|
463
465
|
return t;
|
|
464
466
|
}
|
|
465
467
|
}
|
|
466
|
-
|
|
468
|
+
A("arcgis-charts-config-create-flow", ue);
|
|
467
469
|
export {
|
|
468
470
|
ue as ArcgisChartsConfigCreateFlow
|
|
469
471
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as s, html as c } from "lit";
|
|
4
|
+
import { LitElement as a, safeClassMap as e } from "@arcgis/lumina";
|
|
5
|
+
const i = {
|
|
6
|
+
fieldPickerButtonSection: "field-picker-btn-section",
|
|
7
|
+
fieldPickerButton: "field-picker-btn",
|
|
8
|
+
fieldPickerButtonText: "field-picker-btn-text",
|
|
9
|
+
fieldPickerButtonIcon: "field-picker-btn-icon",
|
|
10
|
+
fieldPickerButtonInvalid: "field-picker-btn-invalid"
|
|
11
|
+
}, n = s`.field-picker-btn-section{background-color:var(--arcgis-charts-input-background);min-width:100%}.field-picker-btn{background:var(--arcgis-charts-background-clear);border:1px solid;border-radius:var(--arcgis-charts-border-radius);display:flex;align-items:center;justify-content:space-between;padding:var(--arcgis-charts-side-spacing-half) var(--arcgis-charts-side-spacing-quarter);cursor:pointer;width:100%;text-align:unset}.field-picker-btn:not(.field-picker-btn-invalid){border-color:var(--arcgis-charts-border)}.field-picker-btn.field-picker-btn-invalid{border-color:var(--arcgis-charts-border-invalid)}.field-picker-btn-exp{width:calc(100% - 32px)}.field-picker-btn-exp .field-picker-btn{border:none;border-radius:0;border-right:1px solid var(--arcgis-charts-border)}.field-picker-btn-text{flex:0 1 auto;overflow:hidden;padding:0 var(--arcgis-charts-side-spacing-eighth);text-overflow:ellipsis;white-space:nowrap}.field-picker-btn-icon{flex:0 0 0%;padding:0 var(--arcgis-charts-side-spacing-half)}.field-picker-btn:disabled{cursor:default}`;
|
|
12
|
+
class d extends a {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.disabled = !1, this.invalid = !1;
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.properties = { label: 1, disabled: 5, invalid: 5 };
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
this.styles = n;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
const r = `${i.fieldPickerButton} ${this.invalid ? i.fieldPickerButtonInvalid : ""}`;
|
|
24
|
+
return c`<div class=${e(i.fieldPickerButtonSection)}><button class=${e(r)} .disabled=${this.disabled}><span class=${e(i.fieldPickerButtonText)}>${this.label}</span><slot name=fieldPickerSlot></slot><span class=${e(i.fieldPickerButtonIcon)}><calcite-icon scale=s icon=chevron-down></calcite-icon></span></button></div>`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
t("arcgis-charts-config-field-picker", d);
|
|
28
|
+
export {
|
|
29
|
+
d as ArcgisChartsConfigFieldPicker
|
|
30
|
+
};
|
|
@@ -6,7 +6,7 @@ import { i as p, m as c, s as y, U as r } from "../../chunks/chart-ui-utils2.js"
|
|
|
6
6
|
import { u } from "../../chunks/useT9n.js";
|
|
7
7
|
import { createRef as S, ref as d } from "lit/directives/ref.js";
|
|
8
8
|
import { LitElement as g, createEvent as f, safeClassMap as n } from "@arcgis/lumina";
|
|
9
|
-
import {
|
|
9
|
+
import { ai as b } from "../../chunks/index.js";
|
|
10
10
|
import { i as v } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const C = {
|
|
12
12
|
arial: "Arial",
|
|
@@ -28,7 +28,7 @@ const C = {
|
|
|
28
28
|
font: "font",
|
|
29
29
|
numberInput: "number-input",
|
|
30
30
|
inputLabel: "input-label"
|
|
31
|
-
}, $ = m`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto}:host calcite-panel .font-style-container
|
|
31
|
+
}, $ = m`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto}:host calcite-panel .font-style-container .input-label{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important}:host calcite-panel .font-style-container .number-input{margin-bottom:.5rem;display:flex}:host calcite-panel .font-style-container .number-input>div{width:100%}:host calcite-panel .font-style-container{display:flex}:host calcite-panel .font-style-container calcite-action,:host calcite-panel .font-style-container calcite-label{flex:1 1 0px;display:flex;flex-grow:inherit;width:80px}:host calcite-panel .font-style-container calcite-label{flex-grow:2}:host calcite-panel .font-style-container{padding:0 1rem}:host calcite-panel calcite-label.font{display:block;margin-top:1rem}`;
|
|
32
32
|
class E extends g {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments), this._messages = u(), this.fontSizeInputElement = S(), this.fontStyle = {
|