@arcgis/charts-components 5.2.0-next.7 → 5.2.0-next.71
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/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
- package/dist/cdn/25MA553Z.js +2 -0
- package/dist/cdn/{2HUAW34Q.js → 274L47ID.js} +1 -1
- package/dist/cdn/27RKQQPS.js +2 -0
- package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
- package/dist/cdn/2K4MIK4T.js +2 -0
- package/dist/cdn/2QGFLRRI.js +2 -0
- package/dist/cdn/{S5UDCCRH.js → 2SLJKRSD.js} +1 -1
- package/dist/cdn/33JR3GH6.js +2 -0
- package/dist/cdn/3B6QE7OV.js +2 -0
- package/dist/cdn/3FM3YR57.js +2 -0
- package/dist/cdn/3PDVKKKZ.js +2 -0
- package/dist/cdn/{CLXVAIQX.js → 3QPQ3RE5.js} +1 -1
- package/dist/cdn/3U6ESLPG.js +2 -0
- package/dist/cdn/3V4ZETXH.js +2 -0
- package/dist/cdn/3WOYVXSZ.js +2 -0
- package/dist/cdn/3XB2RWHK.js +2 -0
- package/dist/cdn/{A5AECJXP.js → 47E3TKSH.js} +1 -1
- package/dist/cdn/{JBHGSSHS.js → 4BQ22DKZ.js} +1 -1
- package/dist/cdn/4DC4ARHU.js +2 -0
- package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
- package/dist/cdn/4IO3VF3L.js +2 -0
- package/dist/cdn/4JUR3VIE.js +2 -0
- package/dist/cdn/4JWIBRGO.js +2 -0
- package/dist/cdn/4M4SAEH4.js +2 -0
- package/dist/cdn/4ODTQZJK.js +2 -0
- package/dist/cdn/54VUGIAU.js +2 -0
- package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
- package/dist/cdn/5GZDXWTQ.js +2 -0
- package/dist/cdn/{GDQBQQUP.js → 5NVOWYWZ.js} +1 -1
- package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
- package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
- package/dist/cdn/{DEGBVJ76.js → 64F7QNUM.js} +1 -1
- package/dist/cdn/{HVO4LIXR.js → 6LACIKDG.js} +1 -1
- package/dist/cdn/{7FZC3RZK.js → 6PDO75JM.js} +1 -1
- package/dist/cdn/6TJIHHQF.js +2 -0
- package/dist/cdn/{SBYD2EKR.js → 6WJKLKEZ.js} +1 -1
- 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/{7HGVEE7A.js → 7KNUJIOC.js} +1 -1
- package/dist/cdn/{TF7TE7K5.js → 7PC3VBMY.js} +1 -1
- package/dist/cdn/7REEJ3OW.js +2 -0
- package/dist/cdn/{CHQDKVVQ.js → 7SBVBD4E.js} +1 -1
- package/dist/cdn/{6XTKJ7DO.js → 7XHAJY6Q.js} +1 -1
- package/dist/cdn/7XWR4EVM.js +2 -0
- package/dist/cdn/{DKAHZ7IX.js → ACRMB7MU.js} +1 -1
- package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
- package/dist/cdn/{VY3KBD6N.js → ASYRUV4T.js} +1 -1
- package/dist/cdn/AVE3KXWQ.js +2 -0
- package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
- package/dist/cdn/{KFONSKQF.js → B4RCAP3J.js} +1 -1
- package/dist/cdn/BAFCVCT4.js +2 -0
- package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
- package/dist/cdn/BGOWDCTO.js +2 -0
- package/dist/cdn/{LFQGH44F.js → BJC2AIS3.js} +1 -1
- package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
- package/dist/cdn/BNNBHYRP.js +2 -0
- package/dist/cdn/BQORJ3LU.js +2 -0
- package/dist/cdn/BYSUABOV.js +2 -0
- package/dist/cdn/BZ6FUIQF.js +2 -0
- package/dist/cdn/{K3GNHGEW.js → C3A3UXVR.js} +1 -1
- package/dist/cdn/{ZFZ5AEUQ.js → CKIF4L44.js} +1 -1
- package/dist/cdn/CNI32IL3.js +2 -0
- package/dist/cdn/{ADGMA3ST.js → CRNIOME2.js} +2 -2
- package/dist/cdn/CRQK4CKK.js +2 -0
- package/dist/cdn/CVFKL3S2.js +2 -0
- package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
- package/dist/cdn/D3YWSIAT.js +2 -0
- package/dist/cdn/{KDJ5RVHA.js → DAFNQT4C.js} +1 -1
- package/dist/cdn/DB2GBCE3.js +2 -0
- package/dist/cdn/DGYLORDT.js +2 -0
- package/dist/cdn/{KCMZSNBL.js → DT5BOM5F.js} +1 -1
- package/dist/cdn/{DCZWZOPF.js → DWYBKGOM.js} +1 -1
- package/dist/cdn/E7QFC64H.js +2 -0
- package/dist/cdn/EJWHEBKW.js +2 -0
- package/dist/cdn/{ZXOO3X5P.js → EQD2B3I6.js} +1 -1
- package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
- package/dist/cdn/F5AR3N3Z.js +2 -0
- package/dist/cdn/F7UO7P33.js +2 -0
- package/dist/cdn/{XW4PBQNW.js → FBLOPEXC.js} +1 -1
- package/dist/cdn/FJGG2VVZ.js +2 -0
- package/dist/cdn/{N6AOFBBX.js → GBOCN364.js} +1 -1
- package/dist/cdn/GIH3U7YP.js +2 -0
- package/dist/cdn/GKEW5JYD.js +2 -0
- package/dist/cdn/{L4G6FO7A.js → HDYL2BOC.js} +1 -1
- package/dist/cdn/{QMSINFQX.js → HP3GIDT5.js} +1 -1
- package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
- package/dist/cdn/I5DMUUEL.js +2 -0
- package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
- package/dist/cdn/IJWJOXQC.js +2 -0
- package/dist/cdn/{JRHMUFED.js → IK4FPUFJ.js} +1 -1
- package/dist/cdn/IO6A77U4.js +2 -0
- package/dist/cdn/IODRBLGT.js +2 -0
- package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
- package/dist/cdn/IPEJCIHO.js +2 -0
- package/dist/cdn/{A4GEWIPY.js → IR2W7UQ3.js} +1 -1
- package/dist/cdn/{QOOBNATX.js → J3VAMS5Z.js} +1 -1
- package/dist/cdn/{QFEZPP3R.js → JAQYU6KP.js} +1 -1
- package/dist/cdn/{IPM2XKST.js → JWEGCP5P.js} +1 -1
- package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
- package/dist/cdn/JYLEN3VQ.js +2 -0
- package/dist/cdn/{YOT6DVSU.js → K2PVLPOV.js} +1 -1
- package/dist/cdn/K4APZJ2O.js +2 -0
- package/dist/cdn/{MVHQR4FJ.js → K6F2LRKI.js} +1 -1
- package/dist/cdn/KJZTU3DV.js +2 -0
- package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
- package/dist/cdn/L6DFXTSQ.js +104 -0
- package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
- package/dist/cdn/LAPBDR32.js +2 -0
- package/dist/cdn/{AJWYIBGC.js → LC4YFJSM.js} +1 -1
- package/dist/cdn/LIDWAYQH.js +45 -0
- package/dist/cdn/LJTJTGIW.js +2 -0
- package/dist/cdn/LPYRKK25.js +2 -0
- package/dist/cdn/MAC4MPUA.js +2 -0
- package/dist/cdn/{KZ7LPNX3.js → MGAMMXJW.js} +1 -1
- package/dist/cdn/MOG5ZVLX.js +2 -0
- package/dist/cdn/{ETKPMU7Z.js → MSB6J66X.js} +1 -1
- package/dist/cdn/NAGOJPIX.js +3 -0
- package/dist/cdn/NF4EBNLN.js +2 -0
- package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
- package/dist/cdn/NP24UZGI.js +2 -0
- package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
- package/dist/cdn/NUHPR7BM.js +2 -0
- package/dist/cdn/{BJDRJUEJ.js → NWHLFMAD.js} +1 -1
- package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
- package/dist/cdn/O2BQ374Y.js +2 -0
- package/dist/cdn/{UT4TYXFO.js → O7LPETXX.js} +1 -1
- package/dist/cdn/{THTYR6IL.js → OAXHS4LE.js} +1 -1
- package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
- package/dist/cdn/OE7FIKPS.js +2 -0
- package/dist/cdn/OE7Q4MG5.js +2 -0
- package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
- package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
- package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
- package/dist/cdn/{4LPXOEML.js → OTFA727N.js} +1 -1
- package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
- package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
- package/dist/cdn/P6DBPQZO.js +2 -0
- package/dist/cdn/{DAB5R2BN.js → PIEX577B.js} +1 -1
- package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
- package/dist/cdn/{FF4DUQDZ.js → PMAHEVYY.js} +1 -1
- package/dist/cdn/{AM2TOTX6.js → PQVUA4T4.js} +1 -1
- package/dist/cdn/PTUMQCFF.js +2 -0
- package/dist/cdn/{5XTQQOTT.js → Q2OIHROC.js} +1 -1
- package/dist/cdn/{E7OAEGSE.js → Q2WDEGUQ.js} +1 -1
- package/dist/cdn/QAXXYD6N.js +2 -0
- package/dist/cdn/QC3FMJKL.js +2 -0
- package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
- package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
- package/dist/cdn/QSGJ3MAT.js +2 -0
- package/dist/cdn/QT64PB4L.js +2 -0
- package/dist/cdn/QWCNHH6G.js +2 -0
- package/dist/cdn/RCLHFY6O.js +2 -0
- package/dist/cdn/RCZLTGQI.js +2 -0
- package/dist/cdn/ROG3HFDT.js +2 -0
- package/dist/cdn/RQ5RKGH5.js +2 -0
- package/dist/cdn/SL7NRRSJ.js +2 -0
- package/dist/cdn/{MRTKZZTF.js → SN4KBI42.js} +1 -1
- package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
- package/dist/cdn/SSQPRUUN.js +2 -0
- package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
- package/dist/cdn/TMGMKM5F.js +2 -0
- package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
- package/dist/cdn/{WASEMNYV.js → TS7M5QXS.js} +1 -1
- package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
- package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
- package/dist/cdn/USNJZCHH.js +2 -0
- package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
- package/dist/cdn/V2FHLWYC.js +2 -0
- package/dist/cdn/VAF3UIVA.js +2 -0
- package/dist/cdn/VHW4OAKG.js +4 -0
- package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
- package/dist/cdn/VNYRZDY5.js +2 -0
- package/dist/cdn/VUHFYOLC.js +2 -0
- package/dist/cdn/{Y7HBWU3M.js → WDMYVS4F.js} +1 -1
- package/dist/cdn/WDUTZ6EO.js +2 -0
- package/dist/cdn/WM6SCZHN.js +2 -0
- package/dist/cdn/WPLHZAZ3.js +2 -0
- package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
- package/dist/cdn/{GV3TT7L5.js → XDNGNOOK.js} +1 -1
- package/dist/cdn/XH57C72H.js +2 -0
- package/dist/cdn/{JJIGLOJA.js → XJVFIGWI.js} +1 -1
- package/dist/cdn/{5MEQANMY.js → Y2NESTSK.js} +1 -1
- package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
- package/dist/cdn/{XE3FKQFA.js → YFHCD7R2.js} +1 -1
- package/dist/cdn/{AWF4R7WL.js → YW6IZCRW.js} +1 -1
- package/dist/cdn/{KUZR6CGB.js → ZK2KMZEI.js} +1 -1
- package/dist/cdn/ZK5Z6BOX.js +2 -0
- package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.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 +42 -38
- package/dist/chunks/box-plot-data.js +273 -282
- package/dist/chunks/box-plot-model.js +137 -122
- 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 +76 -76
- 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 +191 -180
- package/dist/chunks/index2.js +6422 -6009
- package/dist/chunks/index3.js +97 -86
- package/dist/chunks/index4.js +316 -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 +267 -250
- 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 +873 -753
- package/dist/chunks/serial-chart-model.js +146 -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 +104 -94
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +592 -541
- package/dist/chunks/x-bounds.js +41 -42
- package/dist/components/arcgis-chart/customElement.d.ts +547 -224
- package/dist/components/arcgis-chart/customElement.js +10300 -10278
- 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 +40 -27
- 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 +243 -229
- 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 +10 -13
- 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 +16 -17
- 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 +470 -458
- package/dist/json-schema/index.d.ts +211 -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 +17 -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 +56 -6
- 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 +1 -1
- package/dist/utils/data/index.d.ts +22 -19
- 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 +8 -3
- package/dist/utils/layer/query-parser/index.d.ts +9 -5
- 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 +6 -7
- 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/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/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/J6WQX4UD.js +0 -58
- 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/ML3A3MYV.js +0 -2
- 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/OHF3AEWY.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/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/WGYJBMRM.js +0 -4
- 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,89 +1,89 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { repeat as
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { createModel as
|
|
6
|
-
import { g as
|
|
7
|
-
import { i as
|
|
8
|
-
import { substitute as
|
|
9
|
-
import { C as
|
|
10
|
-
import { isEqual as
|
|
11
|
-
import { i as
|
|
12
|
-
import { D as
|
|
13
|
-
import { LitElement as
|
|
14
|
-
import { css as
|
|
15
|
-
import { createRef as
|
|
16
|
-
import { u as
|
|
17
|
-
import { c as
|
|
18
|
-
import {
|
|
19
|
-
import { A as
|
|
20
|
-
import { h as
|
|
21
|
-
import { a as
|
|
22
|
-
import { C as M } from "../../chunks/
|
|
23
|
-
import { a as
|
|
24
|
-
import {
|
|
25
|
-
import { r as
|
|
26
|
-
import { u as o, s as
|
|
27
|
-
const
|
|
2
|
+
import { c as A } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as N } from "lit/directives/repeat.js";
|
|
4
|
+
import { keyed as $ } from "lit/directives/keyed.js";
|
|
5
|
+
import { createModel as _ } from "../../model/shared/setup-utils.js";
|
|
6
|
+
import { g as x, i as V, w as U, k as T, m as v, n as R } 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
|
+
import { C as c } from "../../chunks/interfaces.js";
|
|
10
|
+
import { isEqual as w, cloneDeep as O } from "lodash-es";
|
|
11
|
+
import { i as D } from "../../chunks/index4.js";
|
|
12
|
+
import { D as k, w as F, F as W } from "../../chunks/index3.js";
|
|
13
|
+
import { LitElement as G, createEvent as f, renderElement as I, safeStyleMap as X, safeClassMap as d } from "@arcgis/lumina";
|
|
14
|
+
import { css as Z, html as h } from "lit";
|
|
15
|
+
import { createRef as K, ref as j } from "lit/directives/ref.js";
|
|
16
|
+
import { u as L } from "../../chunks/useT9n.js";
|
|
17
|
+
import { c as q, a as S, g as Y } from "../../chunks/store.js";
|
|
18
|
+
import { dv as Q, _ as J, dw as ee, K as te, co as ae } from "../../chunks/index2.js";
|
|
19
|
+
import { A as ie } from "../../chunks/axis-model-wrapper.js";
|
|
20
|
+
import { h as se, f as y } from "../../chunks/web-component-utils.js";
|
|
21
|
+
import { a as re } 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 oe, e as b } from "../../chunks/type-guards.js";
|
|
25
|
+
import { r as le } from "../../chunks/popover-ui-utils.js";
|
|
26
|
+
import { u as o, s as ne } from "../../chunks/chart-object-literals.js";
|
|
27
|
+
const m = {
|
|
28
28
|
chartUIComponent: "chart-ui-component",
|
|
29
29
|
tabBar: "tab-bar",
|
|
30
30
|
tab: "tab"
|
|
31
31
|
};
|
|
32
|
-
function
|
|
33
|
-
const
|
|
34
|
-
let
|
|
35
|
-
return
|
|
36
|
-
const r =
|
|
37
|
-
(
|
|
38
|
-
}),
|
|
32
|
+
function B(p, e) {
|
|
33
|
+
const t = /* @__PURE__ */ new Set();
|
|
34
|
+
let a = e;
|
|
35
|
+
return p?.forEach((i, s) => {
|
|
36
|
+
const r = i.chartId;
|
|
37
|
+
(t.has(r) || r === void 0 || r === "") && (i.chartId = `Chart_${Date.now()}_${s}`, e === r && (a = i.chartId)), t.add(r);
|
|
38
|
+
}), a;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
40
|
+
function ce(p, e, t) {
|
|
41
|
+
return p?.filter((a) => F(t, a.config) && a.layer?.id === e) ?? [];
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
const { modelList: e, layerList:
|
|
43
|
+
function he(p) {
|
|
44
|
+
const { modelList: e, layerList: t, activeLayerId: a, disableEditing: i } = p, s = /* @__PURE__ */ new Map();
|
|
45
45
|
return e?.forEach((r) => {
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
}),
|
|
46
|
+
const n = r.layer;
|
|
47
|
+
n && s.set(n.id, n);
|
|
48
|
+
}), i || t.forEach((r) => s.set(r.id, r)), Array.from(s.values()).filter((r) => !a || r.id === a);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
e.forEach((
|
|
53
|
-
|
|
50
|
+
function de(p, e) {
|
|
51
|
+
p.forEach((t) => {
|
|
52
|
+
e.forEach((a) => {
|
|
53
|
+
t?.id === a.layer?.id && E(t, a);
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
const
|
|
57
|
+
function E(p, e) {
|
|
58
|
+
const t = p;
|
|
59
|
+
if (t) {
|
|
60
|
+
const a = [...t?.charts ?? []], i = a?.findIndex((r) => r.id === e.chartId);
|
|
61
61
|
let s = !1;
|
|
62
|
-
|
|
62
|
+
i !== void 0 && i > -1 ? (s = !w(a[i], e.config), a[i] = e.config) : t && !D(e.config) && (s = !0, a.push(e.config)), s && (t.charts = a);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
const
|
|
69
|
-
|
|
65
|
+
function me(p, e) {
|
|
66
|
+
const t = p;
|
|
67
|
+
if (t) {
|
|
68
|
+
const a = [...t.charts ?? []], i = a.findIndex((s) => s.id === e);
|
|
69
|
+
i > -1 && (a.splice(i, 1), t.charts = a);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function pe(
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
arrayA:
|
|
78
|
-
arrayB: e.map((
|
|
79
|
-
getKey: (
|
|
80
|
-
}),
|
|
72
|
+
function pe(p, e) {
|
|
73
|
+
const t = p;
|
|
74
|
+
if (t) {
|
|
75
|
+
let a = [...t.charts ?? []];
|
|
76
|
+
a = k({
|
|
77
|
+
arrayA: a,
|
|
78
|
+
arrayB: e.map((i) => i.config),
|
|
79
|
+
getKey: (i) => i.id ?? i.title?.content.text ?? ""
|
|
80
|
+
}), t.charts = a;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
class
|
|
83
|
+
const ue = Z`.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
|
+
class ge extends G {
|
|
85
85
|
constructor() {
|
|
86
|
-
super(), this.selectChartTypePopover = null, this.chartsListFlowItem =
|
|
86
|
+
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = K(), this.supportedChartTypes = [
|
|
87
87
|
o.BarSeries,
|
|
88
88
|
o.BoxPlotSeries,
|
|
89
89
|
o.LineSeries,
|
|
@@ -91,105 +91,106 @@ class ue extends W {
|
|
|
91
91
|
o.HistogramSeries,
|
|
92
92
|
o.ScatterSeries,
|
|
93
93
|
o.HeatSeries
|
|
94
|
-
], this._messages =
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
94
|
+
], this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.chartDataProcessComplete = async (e) => {
|
|
95
|
+
const t = e, { chartData: a, model: i } = t.detail, s = this.getModel(this.selectedChartId);
|
|
96
|
+
if (i?.isSameChartAs(s))
|
|
97
97
|
switch (s?.chartType) {
|
|
98
98
|
case o.HistogramSeries:
|
|
99
|
-
if (this.chartData =
|
|
100
|
-
const
|
|
101
|
-
|
|
99
|
+
if (this.chartData = a, i && (i.dataStore.chartData = a, oe(i.layer))) {
|
|
100
|
+
const n = i, l = a?.bins?.length;
|
|
101
|
+
l !== void 0 && n.binCount !== l && (n.binCount = l);
|
|
102
102
|
}
|
|
103
103
|
break;
|
|
104
104
|
case o.PieSeries: {
|
|
105
|
-
this.chartData =
|
|
105
|
+
this.chartData = a, i && (i.dataStore.chartData = a);
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
108
|
case o.ScatterSeries: {
|
|
109
|
-
const
|
|
109
|
+
const n = a, { dataItems: l, r2: g, aggregated: u } = n;
|
|
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(i) && (i.dataStore.r2 = C, i.dataStore.aggregated = u, u && (i.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(l), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
case o.LineSeries:
|
|
115
115
|
case o.BarSeries: {
|
|
116
|
-
const { dataItems:
|
|
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
|
-
}
|
|
116
|
+
const { dataItems: n, timeIntervalInfo: l } = a;
|
|
117
|
+
(x(s) || V(s) && s.binTemporalData) && (l?.size !== void 0 && s.temporalBinningSize !== l?.size && (s.temporalBinningSize = l?.size), l?.unit !== void 0 && s.temporalBinningUnit !== l?.unit && l?.unit !== ne.Quarter && (s.temporalBinningUnit = l?.unit), l?.size !== void 0 && l?.unit !== void 0 && q(S, { size: l.size, unit: l.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(n), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
121
118
|
break;
|
|
122
119
|
}
|
|
123
120
|
}
|
|
124
121
|
}, this.chartAxesMinMaxChange = (e) => {
|
|
125
|
-
const
|
|
122
|
+
const t = e, { bounds: a, model: i } = t.detail, s = this.getModel(this.selectedChartId), r = i?.isSameChartAs(s), n = s?.chartType;
|
|
126
123
|
if (r)
|
|
127
|
-
switch (
|
|
124
|
+
switch (n) {
|
|
128
125
|
case o.BarSeries:
|
|
129
126
|
case o.BoxPlotSeries:
|
|
130
127
|
case o.LineSeries:
|
|
131
128
|
case o.HistogramSeries:
|
|
132
129
|
case o.ScatterSeries:
|
|
133
|
-
this.calculatedMinMaxBounds =
|
|
130
|
+
this.calculatedMinMaxBounds = a, i && (i.dataStore.calculatedMinMaxBounds = a), this.updateAxesBoundsInAppState(a);
|
|
134
131
|
break;
|
|
135
132
|
}
|
|
136
133
|
}, this.chartSeriesColorChange = (e) => {
|
|
137
|
-
const
|
|
138
|
-
if (
|
|
139
|
-
switch (
|
|
134
|
+
const t = e, { colorMatchApplied: a, data: i, model: s } = t.detail, r = this.getModel(this.selectedChartId);
|
|
135
|
+
if (s?.isSameChartAs(r))
|
|
136
|
+
switch (r?.chartType) {
|
|
140
137
|
case o.BarSeries:
|
|
141
138
|
case o.BoxPlotSeries:
|
|
142
139
|
case o.LineSeries:
|
|
143
140
|
case o.HistogramSeries:
|
|
144
|
-
this.seriesColor =
|
|
141
|
+
this.seriesColor = i, s && (s.dataStore.seriesColor = i), this.applyNullCategorySeriesColor({
|
|
142
|
+
colorMatchApplied: a,
|
|
143
|
+
data: i,
|
|
144
|
+
model: r
|
|
145
|
+
});
|
|
145
146
|
break;
|
|
146
147
|
case o.PieSeries: {
|
|
147
|
-
const l = /* @__PURE__ */ new Map([[0,
|
|
148
|
-
this.seriesColor = l,
|
|
148
|
+
const l = /* @__PURE__ */ new Map([[0, i]]);
|
|
149
|
+
this.seriesColor = l, s && (s.dataStore.seriesColor = l);
|
|
149
150
|
break;
|
|
150
151
|
}
|
|
151
152
|
case o.ScatterSeries:
|
|
152
153
|
}
|
|
153
154
|
}, this.chartNoRenderPropChange = (e) => {
|
|
154
|
-
const
|
|
155
|
+
const t = e, { propName: a, value: i, model: s } = t.detail, r = this.modelList.find((n) => s?.isSameChartAs(n));
|
|
155
156
|
if (r)
|
|
156
|
-
switch (
|
|
157
|
+
switch (a) {
|
|
157
158
|
case "rotation":
|
|
158
|
-
typeof
|
|
159
|
+
typeof i == "boolean" && z(r) && (r.rotated = i);
|
|
159
160
|
break;
|
|
160
161
|
case "legendPosition":
|
|
161
|
-
typeof
|
|
162
|
+
typeof i == "string" && T(r) && (r.legendPosition = i);
|
|
162
163
|
break;
|
|
163
164
|
case "legendVisibility":
|
|
164
|
-
typeof
|
|
165
|
+
typeof i == "boolean" && T(r) && (r.legendVisibility = i);
|
|
165
166
|
break;
|
|
166
167
|
}
|
|
167
168
|
}, this.chartLegendItemVisibilityChange = (e) => {
|
|
168
|
-
const
|
|
169
|
-
s?.setSeriesVisibility(
|
|
169
|
+
const t = e, { legendItemVisibility: a, model: i } = t.detail, s = this.modelList.find((r) => i?.isSameChartAs(r));
|
|
170
|
+
s?.setSeriesVisibility(a), v(s) && ((s.getMinBound(1) === null || Number.isNaN(s.getMinBound(1))) && s.setMinBound(null, 1), (s.getMaxBound(1) === null || Number.isNaN(s.getMaxBound(1))) && s.setMaxBound(null, 1), x(s) && ((s.getMinBound(0) === null || Number.isNaN(s.getMinBound(0))) && s.setMinBound(null, 0), (s.getMaxBound(0) === null || Number.isNaN(s.getMaxBound(0))) && s.setMaxBound(null, 0)));
|
|
170
171
|
}, this.onSelectChartTypeChange = (e) => {
|
|
171
172
|
this.currentChartTypeText = "", this.calculatedDataMinMaxBounds = void 0, this.calculatedMinMaxBounds = void 0, this.removeSelectChartTypePopover();
|
|
172
|
-
const { selectedModelType:
|
|
173
|
-
|
|
173
|
+
const { selectedModelType: t, layerId: a } = e.target;
|
|
174
|
+
t !== void 0 && (this.allowChartSyncing = !0, this.arcgisChartsConfigNewChart.emit({
|
|
174
175
|
key: "key",
|
|
175
|
-
chartType:
|
|
176
|
-
layerId:
|
|
176
|
+
chartType: t,
|
|
177
|
+
layerId: a
|
|
177
178
|
}));
|
|
178
179
|
}, this.onAddChartClose = () => {
|
|
179
180
|
this.removeSelectChartTypePopover();
|
|
180
181
|
}, this.onModelConfigChange = (e) => {
|
|
181
182
|
if (this.syncChartsToLayers && this.allowChartSyncing) {
|
|
182
|
-
const
|
|
183
|
-
|
|
183
|
+
const t = e.target;
|
|
184
|
+
E(t?.layer, t);
|
|
184
185
|
}
|
|
185
186
|
this.requestUpdate();
|
|
186
187
|
}, 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
188
|
}
|
|
188
189
|
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:
|
|
190
|
+
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
191
|
}
|
|
191
192
|
static {
|
|
192
|
-
this.styles =
|
|
193
|
+
this.styles = ue;
|
|
193
194
|
}
|
|
194
195
|
async setFocus() {
|
|
195
196
|
await this.chartsListFlowItem.value?.setFocus();
|
|
@@ -205,67 +206,80 @@ class ue extends W {
|
|
|
205
206
|
disconnectedCallback() {
|
|
206
207
|
super.disconnectedCallback(), this.clearPartialModels(), this.removeSelectChartTypePopover();
|
|
207
208
|
}
|
|
209
|
+
applyNullCategorySeriesColor(e) {
|
|
210
|
+
const { colorMatchApplied: t, data: a, model: i } = e;
|
|
211
|
+
R(i) && i.nullCategory === void 0 && (i.nullCategory = this.getDefaultNullCategory(t ? this.getSeriesColor(a) : void 0));
|
|
212
|
+
}
|
|
213
|
+
getSeriesColor(e) {
|
|
214
|
+
const t = e.get(0);
|
|
215
|
+
let a;
|
|
216
|
+
return t && "color" in t ? a = t.color : t && "lineSymbol" in t && (a = t.markerSymbol?.color ?? t.lineSymbol.color), a;
|
|
217
|
+
}
|
|
218
|
+
getDefaultNullCategory(e) {
|
|
219
|
+
const t = O(W.nullCategory);
|
|
220
|
+
return e !== void 0 && (t.fillSymbol && (t.fillSymbol.color = e, t.fillSymbol.outline && (t.fillSymbol.outline.color = e)), t.markerSymbol && (t.markerSymbol.color = e, t.markerSymbol.outline && (t.markerSymbol.outline.color = e))), t;
|
|
221
|
+
}
|
|
208
222
|
modelListReorderChangeListener(e) {
|
|
209
|
-
const { modelList:
|
|
210
|
-
if (this.modelList =
|
|
223
|
+
const { modelList: t } = e.detail;
|
|
224
|
+
if (this.modelList = k({
|
|
211
225
|
arrayA: this.modelList,
|
|
212
|
-
arrayB:
|
|
213
|
-
getKey: (
|
|
226
|
+
arrayB: t,
|
|
227
|
+
getKey: (a) => a.chartId ?? a.titleText ?? ""
|
|
214
228
|
}), this.syncChartsToLayers) {
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
|
|
229
|
+
const a = t.find((i) => i.layer?.id !== void 0)?.layer?.id;
|
|
230
|
+
if (a) {
|
|
231
|
+
const i = this.layerList.find((s) => s.id.toString() === a);
|
|
232
|
+
i && pe(i, t);
|
|
219
233
|
}
|
|
220
234
|
}
|
|
221
235
|
}
|
|
222
236
|
async layerListChange() {
|
|
223
|
-
const e = [],
|
|
224
|
-
let
|
|
225
|
-
for (let
|
|
226
|
-
if (
|
|
227
|
-
const
|
|
228
|
-
if (!
|
|
237
|
+
const e = [], t = this.layerList.map((i) => i.id.toString());
|
|
238
|
+
let a = [...this.modelList.filter((i) => t.includes(i.layer?.id ?? ""))];
|
|
239
|
+
for (let i of this.layerList ?? []) {
|
|
240
|
+
if (i.type === "sublayer") {
|
|
241
|
+
const n = await i.createFeatureLayer();
|
|
242
|
+
if (!n)
|
|
229
243
|
continue;
|
|
230
|
-
|
|
244
|
+
i = n;
|
|
231
245
|
}
|
|
232
|
-
const r =
|
|
233
|
-
for (const
|
|
234
|
-
const
|
|
235
|
-
layer:
|
|
236
|
-
config:
|
|
246
|
+
const r = i.charts;
|
|
247
|
+
for (const n of r ?? []) {
|
|
248
|
+
const l = await _({
|
|
249
|
+
layer: i,
|
|
250
|
+
config: n,
|
|
237
251
|
commonStrings: this.commonStrings
|
|
238
252
|
});
|
|
239
|
-
|
|
253
|
+
l !== void 0 && e.push(l);
|
|
240
254
|
}
|
|
241
255
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}),
|
|
245
|
-
}
|
|
246
|
-
modelListChange(e,
|
|
247
|
-
this.selectedChartId =
|
|
248
|
-
|
|
249
|
-
}), e.forEach((
|
|
250
|
-
|
|
256
|
+
B(e), e.forEach((i) => {
|
|
257
|
+
a.find((r) => r.isSameChartAs(i)) === void 0 && a.push(i);
|
|
258
|
+
}), a = a.filter((i) => !Q(i.config)), this.modelList = a;
|
|
259
|
+
}
|
|
260
|
+
modelListChange(e, t) {
|
|
261
|
+
this.selectedChartId = B(e, this.selectedChartId), t?.forEach((i) => {
|
|
262
|
+
i.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
263
|
+
}), e.forEach((i) => {
|
|
264
|
+
i.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
251
265
|
});
|
|
252
|
-
const
|
|
253
|
-
this.currentChartTypeText =
|
|
254
|
-
chartType:
|
|
266
|
+
const a = this.getModel(this.selectedChartId);
|
|
267
|
+
this.currentChartTypeText = a?.chartType !== void 0 ? P({
|
|
268
|
+
chartType: a.chartType,
|
|
255
269
|
commonStrings: this.commonStrings,
|
|
256
|
-
config:
|
|
257
|
-
}) : "", this.syncChartsToLayers && this.allowChartSyncing &&
|
|
270
|
+
config: a.config
|
|
271
|
+
}) : "", this.syncChartsToLayers && this.allowChartSyncing && de(this.layerList, e), this.arcgisChartsConfigModelListChange.emit({ modelList: e });
|
|
258
272
|
}
|
|
259
273
|
selectedChartIdChange(e) {
|
|
260
|
-
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel =
|
|
261
|
-
const
|
|
262
|
-
this.setEventBasedPropsFromModelData(
|
|
263
|
-
chartType:
|
|
274
|
+
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = c.Data;
|
|
275
|
+
const t = this.getModel(e);
|
|
276
|
+
this.setEventBasedPropsFromModelData(t), this.currentChartTypeText = t?.chartType !== void 0 ? P({
|
|
277
|
+
chartType: t.chartType,
|
|
264
278
|
commonStrings: this.commonStrings,
|
|
265
|
-
config:
|
|
266
|
-
}) : "", e !== void 0 && e !==
|
|
279
|
+
config: t.config
|
|
280
|
+
}) : "", e !== void 0 && e !== S.selectedChartId && (S.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
267
281
|
key: "key",
|
|
268
|
-
model:
|
|
282
|
+
model: t
|
|
269
283
|
});
|
|
270
284
|
}
|
|
271
285
|
panelNumberChange(e) {
|
|
@@ -275,74 +289,74 @@ class ue extends W {
|
|
|
275
289
|
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
290
|
}
|
|
277
291
|
getDataExtent(e) {
|
|
278
|
-
const
|
|
279
|
-
let
|
|
280
|
-
if (
|
|
281
|
-
const
|
|
282
|
-
chartConfig:
|
|
292
|
+
const t = this.getModel(this.selectedChartId)?.config;
|
|
293
|
+
let a = [];
|
|
294
|
+
if (t !== void 0 && e !== void 0) {
|
|
295
|
+
const i = J({
|
|
296
|
+
chartConfig: t,
|
|
283
297
|
chartData: e
|
|
284
|
-
}), { minY: s, maxY: r, minX:
|
|
285
|
-
|
|
286
|
-
{ isXAxis: !0, minimum:
|
|
298
|
+
}), { minY: s, maxY: r, minX: n, maxX: l } = i;
|
|
299
|
+
a = [
|
|
300
|
+
{ isXAxis: !0, minimum: n, maximum: l },
|
|
287
301
|
{ isXAxis: !1, minimum: s, maximum: r }
|
|
288
302
|
];
|
|
289
303
|
}
|
|
290
|
-
return
|
|
304
|
+
return a;
|
|
291
305
|
}
|
|
292
306
|
updateAxesBoundsInAppState(e) {
|
|
293
|
-
e?.forEach((
|
|
294
|
-
const { isXAxis:
|
|
295
|
-
if (r !== void 0 &&
|
|
296
|
-
const
|
|
307
|
+
e?.forEach((t) => {
|
|
308
|
+
const { isXAxis: a, maximum: i, minimum: s } = t, r = this.getModel(this.selectedChartId);
|
|
309
|
+
if (r !== void 0 && v(r) && this.selectedChartId !== void 0) {
|
|
310
|
+
const n = new ie(r, a), l = Y({
|
|
297
311
|
chartId: this.selectedChartId,
|
|
298
|
-
isXAxis:
|
|
299
|
-
isLogarithmic:
|
|
300
|
-
}), g =
|
|
312
|
+
isXAxis: a,
|
|
313
|
+
isLogarithmic: n.getLogarithmic()
|
|
314
|
+
}), g = S.chartAxesBoundDataMap;
|
|
301
315
|
g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
|
|
302
|
-
const u = g[this.selectedChartId]?.[
|
|
316
|
+
const u = g[this.selectedChartId]?.[l], C = {
|
|
303
317
|
defaultMinBound: u?.defaultMinBound === u?.currMinBound ? s : u?.defaultMinBound,
|
|
304
318
|
currMinBound: s,
|
|
305
|
-
defaultMaxBound: u?.defaultMaxBound === u?.currMaxBound ?
|
|
306
|
-
currMaxBound:
|
|
319
|
+
defaultMaxBound: u?.defaultMaxBound === u?.currMaxBound ? i : u?.defaultMaxBound,
|
|
320
|
+
currMaxBound: i
|
|
307
321
|
};
|
|
308
|
-
!
|
|
322
|
+
!w(u, C) && this.selectedChartId !== void 0 && g?.[this.selectedChartId] !== void 0 && (g[this.selectedChartId][l] = C);
|
|
309
323
|
}
|
|
310
324
|
});
|
|
311
325
|
}
|
|
312
326
|
getPlacement() {
|
|
313
327
|
let e;
|
|
314
|
-
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((
|
|
328
|
+
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((i) => F(ee, i.config)).length <= 2 ? "bottom" : "top", e;
|
|
315
329
|
}
|
|
316
330
|
onBackFlow() {
|
|
317
331
|
this.panelNumber -= 1;
|
|
318
332
|
}
|
|
319
333
|
async onAddChartClick(e) {
|
|
320
|
-
const { referenceElement:
|
|
334
|
+
const { referenceElement: t, layerId: a, layerType: i } = e.detail;
|
|
321
335
|
let s = !0;
|
|
322
|
-
if (
|
|
323
|
-
const r = this.layerList.find((
|
|
324
|
-
|
|
336
|
+
if (b(i) && a) {
|
|
337
|
+
const r = this.layerList.find((n) => n.id === a);
|
|
338
|
+
b(r?.type) && (s = !!(await te(r))?.attributeTable);
|
|
325
339
|
}
|
|
326
|
-
this.setupSelectChartTypePopover(
|
|
340
|
+
this.setupSelectChartTypePopover(t, a, i, s);
|
|
327
341
|
}
|
|
328
|
-
setupSelectChartTypePopover(e,
|
|
342
|
+
setupSelectChartTypePopover(e, t, a, i = !0) {
|
|
329
343
|
const s = this.getPlacement();
|
|
330
|
-
this.removeSelectChartTypePopover(), this.selectChartTypePopover =
|
|
344
|
+
this.removeSelectChartTypePopover(), this.selectChartTypePopover = I(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${t} .layerType=${a} .isRasterBarChartSupported=${i} .popoverPlacement=${s} @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
345
|
}
|
|
332
346
|
getModel(e) {
|
|
333
|
-
return this.modelList?.find((
|
|
347
|
+
return this.modelList?.find((t) => t.chartId === e);
|
|
334
348
|
}
|
|
335
349
|
removeSelectChartTypePopover() {
|
|
336
|
-
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover =
|
|
350
|
+
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = le(this.selectChartTypePopover));
|
|
337
351
|
}
|
|
338
352
|
clearPartialModels() {
|
|
339
|
-
this.modelList = this.modelList.filter((e) => !
|
|
353
|
+
this.modelList = this.modelList.filter((e) => !D(e.config));
|
|
340
354
|
}
|
|
341
355
|
onViewChartDelete(e) {
|
|
342
|
-
const { chartId:
|
|
343
|
-
if (
|
|
344
|
-
const
|
|
345
|
-
this.modelList = [...this.modelList.filter((s) => s.chartId !==
|
|
356
|
+
const { chartId: t } = e.detail;
|
|
357
|
+
if (t !== void 0) {
|
|
358
|
+
const a = this.modelList.find((s) => s.chartId === t), i = this.layerList.find((s) => s.id === a?.layer?.id);
|
|
359
|
+
this.modelList = [...this.modelList.filter((s) => s.chartId !== t)], i && this.syncChartsToLayers && this.allowChartSyncing && me(i, t);
|
|
346
360
|
}
|
|
347
361
|
}
|
|
348
362
|
onViewChartsSelect(e) {
|
|
@@ -361,109 +375,109 @@ class ue extends W {
|
|
|
361
375
|
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
376
|
}
|
|
363
377
|
createTooltip(e) {
|
|
364
|
-
const
|
|
365
|
-
let
|
|
366
|
-
switch (
|
|
378
|
+
const t = e.target;
|
|
379
|
+
let a = "";
|
|
380
|
+
switch (t.icon) {
|
|
367
381
|
case "configure":
|
|
368
|
-
|
|
382
|
+
a = this._messages.data ?? "";
|
|
369
383
|
break;
|
|
370
384
|
case "graph-bar-stacked":
|
|
371
385
|
case "graph-line-series":
|
|
372
386
|
case "box-chart-series":
|
|
373
|
-
|
|
387
|
+
a = this._messages.series ?? "";
|
|
374
388
|
break;
|
|
375
389
|
case "graph-pie-slice":
|
|
376
|
-
|
|
390
|
+
a = this._messages.slices ?? "";
|
|
377
391
|
break;
|
|
378
392
|
case "graph-axis":
|
|
379
|
-
|
|
393
|
+
a = this._messages.axes ?? "";
|
|
380
394
|
break;
|
|
381
395
|
case "graph-guides":
|
|
382
|
-
|
|
396
|
+
a = this._messages.guides ?? "";
|
|
383
397
|
break;
|
|
384
398
|
case "palette":
|
|
385
|
-
|
|
399
|
+
a = this._messages.format ?? "";
|
|
386
400
|
break;
|
|
387
401
|
case "text":
|
|
388
|
-
|
|
402
|
+
a = this._messages.general ?? "";
|
|
389
403
|
break;
|
|
390
404
|
default:
|
|
391
|
-
|
|
405
|
+
a = "";
|
|
392
406
|
break;
|
|
393
407
|
}
|
|
394
|
-
this.tooltip =
|
|
408
|
+
this.tooltip = I(h`<calcite-tooltip style=${X({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
395
409
|
}
|
|
396
410
|
destroyTooltip() {
|
|
397
|
-
|
|
411
|
+
re(this.tooltip);
|
|
398
412
|
}
|
|
399
413
|
renderViewCharts() {
|
|
400
|
-
const e =
|
|
414
|
+
const e = he({
|
|
401
415
|
modelList: this.modelList,
|
|
402
416
|
layerList: this.layerList,
|
|
403
417
|
activeLayerId: this.activeLayerId,
|
|
404
418
|
disableEditing: this.disableEditing
|
|
405
419
|
});
|
|
406
|
-
return
|
|
420
|
+
return N(e, (t) => t.id, (t) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ce(this.modelList, t.id.toString(), b(t.type) ? ae : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
407
421
|
}
|
|
408
422
|
render() {
|
|
409
|
-
return this.close ? null : h`<calcite-flow>${
|
|
423
|
+
return this.close ? null : h`<calcite-flow>${$("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${j(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
410
424
|
}
|
|
411
425
|
renderTabs() {
|
|
412
426
|
const e = this.getModel(this.selectedChartId);
|
|
413
|
-
return
|
|
427
|
+
return $("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? c.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? H(this._messages.pageFlowTitle, {
|
|
414
428
|
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
415
429
|
layerName: e?.layer?.title ?? ""
|
|
416
|
-
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(
|
|
417
|
-
this.selectedPanel =
|
|
418
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(
|
|
419
|
-
this.selectedPanel =
|
|
420
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(
|
|
421
|
-
this.selectedPanel =
|
|
422
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(
|
|
423
|
-
this.selectedPanel =
|
|
424
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(
|
|
425
|
-
this.selectedPanel =
|
|
426
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(
|
|
427
|
-
this.selectedPanel =
|
|
428
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(
|
|
429
|
-
this.selectedPanel =
|
|
430
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}<calcite-action class=${d(
|
|
431
|
-
this.selectedPanel =
|
|
432
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${d(
|
|
433
|
-
this.selectedPanel =
|
|
434
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
430
|
+
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(m.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(m.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === c.Data || this.selectedPanel === void 0} @click=${() => {
|
|
431
|
+
this.selectedPanel = c.Data;
|
|
432
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel === c.Series} @click=${() => {
|
|
433
|
+
this.selectedPanel = c.Series;
|
|
434
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === c.Series} @click=${() => {
|
|
435
|
+
this.selectedPanel = c.Series;
|
|
436
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(m.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === c.Series} @click=${() => {
|
|
437
|
+
this.selectedPanel = c.Series;
|
|
438
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === c.Slices} @click=${() => {
|
|
439
|
+
this.selectedPanel = c.Slices;
|
|
440
|
+
}} @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(m.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === c.Axes} @click=${() => {
|
|
441
|
+
this.selectedPanel = c.Axes;
|
|
442
|
+
}} @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(m.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === c.Guides} @click=${() => {
|
|
443
|
+
this.selectedPanel = c.Guides;
|
|
444
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides ?? ""}></calcite-action>` : null}<calcite-action class=${d(m.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === c.Format} @click=${() => {
|
|
445
|
+
this.selectedPanel = c.Format;
|
|
446
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format ?? ""}></calcite-action><calcite-action class=${d(m.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === c.General} @click=${() => {
|
|
447
|
+
this.selectedPanel = c.General;
|
|
448
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general ?? ""}></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
435
449
|
}
|
|
436
450
|
renderChartUIComponent() {
|
|
437
|
-
const e = this.getModel(this.selectedChartId),
|
|
438
|
-
let
|
|
451
|
+
const e = this.getModel(this.selectedChartId), t = e?.layer;
|
|
452
|
+
let a = null;
|
|
439
453
|
if (e !== void 0 && !this.disableEditing)
|
|
440
454
|
switch (e?.chartType) {
|
|
441
455
|
case o.BarSeries:
|
|
442
|
-
|
|
456
|
+
a = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
|
|
443
457
|
break;
|
|
444
458
|
case o.LineSeries:
|
|
445
|
-
|
|
459
|
+
a = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
|
|
446
460
|
break;
|
|
447
461
|
case o.PieSeries:
|
|
448
|
-
|
|
462
|
+
a = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel ?? c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
|
|
449
463
|
break;
|
|
450
464
|
case o.HistogramSeries:
|
|
451
|
-
|
|
465
|
+
a = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
|
|
452
466
|
break;
|
|
453
467
|
case o.ScatterSeries:
|
|
454
|
-
|
|
468
|
+
a = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
|
|
455
469
|
break;
|
|
456
470
|
case o.BoxPlotSeries:
|
|
457
|
-
|
|
471
|
+
a = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
|
|
458
472
|
break;
|
|
459
473
|
case o.HeatSeries:
|
|
460
|
-
|
|
474
|
+
a = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data}></arcgis-charts-config-heat-chart>`;
|
|
461
475
|
break;
|
|
462
476
|
}
|
|
463
|
-
return
|
|
477
|
+
return a;
|
|
464
478
|
}
|
|
465
479
|
}
|
|
466
|
-
|
|
480
|
+
A("arcgis-charts-config-create-flow", ge);
|
|
467
481
|
export {
|
|
468
|
-
|
|
482
|
+
ge as ArcgisChartsConfigCreateFlow
|
|
469
483
|
};
|