@arcgis/charts-components 5.2.0-next.11 → 5.2.0-next.111
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/LICENSE.md +4 -2
- package/README.md +2 -2
- package/dist/cdn/{7YXTWBT4.js → 225VUGML.js} +3 -3
- package/dist/cdn/{SERX6V5M.js → 22DIZM2P.js} +1 -1
- package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
- package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
- package/dist/cdn/{N5ZUO6F3.js → 2O2ZA6UO.js} +1 -1
- package/dist/cdn/2PWEWSG6.js +2 -0
- package/dist/cdn/{VY3KBD6N.js → 2YDNWOWT.js} +1 -1
- package/dist/cdn/3A6N7WAM.js +2 -0
- package/dist/cdn/3CIO2C6J.js +2 -0
- package/dist/cdn/3ECXJYBU.js +2 -0
- package/dist/cdn/3NXCG3O2.js +2 -0
- package/dist/cdn/3S6ZGK3H.js +2 -0
- package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
- package/dist/cdn/{TFPQDMER.js → 4MZSVX5W.js} +1 -1
- package/dist/cdn/4NIKYLE5.js +2 -0
- package/dist/cdn/56242OEE.js +2 -0
- package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
- package/dist/cdn/5HJSLXLN.js +2 -0
- package/dist/cdn/{UYXCGSXU.js → 5KJE3IGJ.js} +1 -1
- package/dist/cdn/{H3EXGCE7.js → 5N2TLPKQ.js} +1 -1
- package/dist/cdn/5O2Y7SWC.js +2 -0
- package/dist/cdn/5QBKM6NC.js +2 -0
- package/dist/cdn/5SXFY4KT.js +2 -0
- package/dist/cdn/5SYHQWPP.js +2 -0
- package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
- package/dist/cdn/62GSQDTE.js +2 -0
- package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
- package/dist/cdn/{ZBIVDGNH.js → 6JQTSYII.js} +1 -1
- package/dist/cdn/{I6UPUSLQ.js → 6M2ZNCH6.js} +1 -1
- package/dist/cdn/{XY4TRZCG.js → 6OBSUHMH.js} +1 -1
- package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
- package/dist/cdn/724I3SBO.js +2 -0
- package/dist/cdn/73R5I52R.js +2 -0
- package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
- package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
- package/dist/cdn/7CP5MYX6.js +2 -0
- package/dist/cdn/{VDKFC44J.js → 7QCDHUXE.js} +1 -1
- package/dist/cdn/7TM4LYGN.js +2 -0
- package/dist/cdn/7UUCZOKN.js +2 -0
- package/dist/cdn/{2XXW3WF3.js → A55ZLPZQ.js} +1 -1
- package/dist/cdn/{BDGHBTPU.js → A6K5NPU6.js} +1 -1
- package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
- package/dist/cdn/ADKPM4DW.js +2 -0
- package/dist/cdn/AEC7S556.js +2 -0
- package/dist/cdn/{Y6ZCTPJW.js → AEJ4OWWK.js} +1 -1
- package/dist/cdn/AHOCGFB7.js +2 -0
- package/dist/cdn/{SX6SDBU7.js → AOVXHBJK.js} +1 -1
- package/dist/cdn/AYCQHDDV.js +2 -0
- package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
- package/dist/cdn/{7QXRWMUN.js → B3KKBK7R.js} +1 -1
- package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
- package/dist/cdn/{ANN3O54W.js → BK52OYAM.js} +1 -1
- package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
- package/dist/cdn/BYSUABOV.js +2 -0
- package/dist/cdn/{P2F2O6MH.js → CHBL4DXX.js} +1 -1
- package/dist/cdn/CLL7X6DF.js +2 -0
- package/dist/cdn/CREJLRJS.js +2 -0
- package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
- package/dist/cdn/D5DOFLCS.js +2 -0
- package/dist/cdn/DAQT4YNQ.js +2 -0
- package/dist/cdn/{S3ZSZXYG.js → DWWJB3RS.js} +1 -1
- package/dist/cdn/E2YQ7BBF.js +2 -0
- package/dist/cdn/EEKAD6DT.js +2 -0
- package/dist/cdn/EHUV23QJ.js +2 -0
- package/dist/cdn/{DFKVPDMJ.js → EMOJZ4XR.js} +15 -13
- package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
- package/dist/cdn/{MK5ZYSOD.js → EVKBZUDE.js} +1 -1
- package/dist/cdn/EWNXVZMV.js +2 -0
- package/dist/cdn/EWPEPYH7.js +2 -0
- package/dist/cdn/EY3OIDVL.js +2 -0
- package/dist/cdn/{LROW4Y6O.js → F65OW2NU.js} +1 -1
- package/dist/cdn/FBS4RBSA.js +2 -0
- package/dist/cdn/{FWAXKDYV.js → FCFAN63J.js} +1 -1
- package/dist/cdn/FCWOV4NW.js +2 -0
- package/dist/cdn/FTVVGZ4Z.js +4 -0
- package/dist/cdn/FY7T4YLN.js +2 -0
- package/dist/cdn/FZHZIZUN.js +2 -0
- package/dist/cdn/{7JIHGRTB.js → G22GCRXH.js} +1 -1
- package/dist/cdn/GQLSM5Q7.js +2 -0
- package/dist/cdn/{N4L5KE23.js → GRRD6G34.js} +1 -1
- package/dist/cdn/GU4EQDNJ.js +2 -0
- package/dist/cdn/H7K6D57Z.js +2 -0
- package/dist/cdn/HW7O5QZ4.js +2 -0
- package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
- package/dist/cdn/I4RZDDUM.js +2 -0
- package/dist/cdn/IBUI4UOV.js +2 -0
- package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
- package/dist/cdn/{O4HUYRYL.js → IGOJGDYE.js} +1 -1
- package/dist/cdn/IHOTDAKI.js +2 -0
- package/dist/cdn/J5JKYZZW.js +2 -0
- package/dist/cdn/JJJRAQMT.js +2 -0
- package/dist/cdn/JTP6IREK.js +2 -0
- package/dist/cdn/{FEKSPYHM.js → JV4CEAY2.js} +1 -1
- package/dist/cdn/{OFWEHJDH.js → K6V7ODNF.js} +1 -1
- package/dist/cdn/{5SIAOUPO.js → K7OYAJNO.js} +1 -1
- package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
- package/dist/cdn/{ULWJ57VT.js → KYEVNAYY.js} +1 -1
- package/dist/cdn/KYVBQUIS.js +2 -0
- package/dist/cdn/KZSCAJDG.js +2 -0
- package/dist/cdn/L5JZ5COY.js +2 -0
- package/dist/cdn/L76QTUHW.js +2 -0
- package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
- package/dist/cdn/{IYA7HQMS.js → LAPLSGZY.js} +1 -1
- package/dist/cdn/LMXFW6NW.js +2 -0
- package/dist/cdn/{L47EGLUH.js → LNR2Y4AV.js} +1 -1
- package/dist/cdn/{AASL4RKT.js → LXTENPD7.js} +1 -1
- package/dist/cdn/{XDMGH7YU.js → LYKD4O7U.js} +1 -1
- package/dist/cdn/M624HH3K.js +2 -0
- package/dist/cdn/M7NERHZY.js +2 -0
- package/dist/cdn/MIA4DLUH.js +3 -0
- package/dist/cdn/MQI4ZLAS.js +2 -0
- package/dist/cdn/MQYMM7JO.js +2 -0
- package/dist/cdn/MRSEZPVC.js +2 -0
- package/dist/cdn/MSU36MJR.js +2 -0
- package/dist/cdn/N2Y3TMUH.js +2 -0
- package/dist/cdn/NITHPHM6.js +2 -0
- package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
- package/dist/cdn/{YKDW7ZW3.js → NLFZ76DJ.js} +1 -1
- package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
- package/dist/cdn/NT7D3WEH.js +2 -0
- package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
- package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
- package/dist/cdn/OIBX62RU.js +2 -0
- package/dist/cdn/OIQ76HQC.js +2 -0
- package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
- package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
- package/dist/cdn/OKKEWHMB.js +2 -0
- package/dist/cdn/{VRZ2SY6M.js → OQFM5DBD.js} +1 -1
- package/dist/cdn/{XYKXBWIT.js → OZPCANBC.js} +1 -1
- package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → P3AYFJRV.js} +1 -1
- package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
- package/dist/cdn/PDDYOVQM.js +2 -0
- package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
- package/dist/cdn/{QR2OOC4D.js → PVRAR67F.js} +1 -1
- package/dist/cdn/PWJBGZPW.js +2 -0
- package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
- package/dist/cdn/QKUFLZC3.js +2 -0
- package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
- package/dist/cdn/QXLY4SFY.js +2 -0
- package/dist/cdn/QYRHZJH3.js +2 -0
- package/dist/cdn/{4OH4NSIW.js → R3END4O2.js} +1 -1
- package/dist/cdn/{FOYOG3G7.js → RBQG2UIF.js} +1 -1
- package/dist/cdn/RPUEIRTH.js +2 -0
- package/dist/cdn/RZJQJ43Y.js +2 -0
- package/dist/cdn/{RSNZMJ6I.js → SIZ6M6MJ.js} +1 -1
- package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
- package/dist/cdn/{3JYZJUOM.js → SWBYVQVE.js} +1 -1
- package/dist/cdn/{I5T7JUDH.js → SZYIWW3C.js} +1 -1
- package/dist/cdn/T7Z4DZ7V.js +2 -0
- package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
- package/dist/cdn/{AK7X7SGI.js → TENIFMA5.js} +1 -1
- package/dist/cdn/{PMIWXHTG.js → TK4E37D6.js} +1 -1
- package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
- package/dist/cdn/U7NEGO4Z.js +2 -0
- package/dist/cdn/{OXYJKZEP.js → UBGDVDOX.js} +1 -1
- package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
- package/dist/cdn/UNRHPYXW.js +45 -0
- package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
- package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
- package/dist/cdn/UVLCXTG4.js +2 -0
- package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
- package/dist/cdn/{77A4T4FJ.js → VMHDTE3U.js} +1 -1
- package/dist/cdn/VQHPI3CU.js +2 -0
- package/dist/cdn/VQRSXCKD.js +2 -0
- package/dist/cdn/VQU2TVX7.js +3 -0
- package/dist/cdn/{WAINRCCJ.js → VSBDAO7G.js} +1 -1
- package/dist/cdn/VSN5E7Y4.js +2 -0
- package/dist/cdn/{L5DROI2A.js → VYD2S5WA.js} +1 -1
- package/dist/cdn/VZ7OCBNK.js +2 -0
- package/dist/cdn/WDDGKBBJ.js +2 -0
- package/dist/cdn/{X2LW7GTR.js → WE5T6HME.js} +1 -1
- package/dist/cdn/WJQHEITU.js +2 -0
- package/dist/cdn/WOGALV3T.js +2 -0
- package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
- package/dist/cdn/WTMEWLUJ.js +2 -0
- package/dist/cdn/WVOXFKFO.js +2 -0
- package/dist/cdn/{2OHFSVV5.js → X4BQWX3B.js} +1 -1
- package/dist/cdn/{SSQ3VCZ2.js → XDBVOUI2.js} +1 -1
- package/dist/cdn/XIBI3WA6.js +2 -0
- package/dist/cdn/{UE5VX2RL.js → XZVJMTU2.js} +1 -1
- package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
- package/dist/cdn/YFU2NPYA.js +2 -0
- package/dist/cdn/YHON6N45.js +2 -0
- package/dist/cdn/YJURFFSP.js +2 -0
- package/dist/cdn/YK5VKE7I.js +2 -0
- package/dist/cdn/ZHFQTE2B.js +2 -0
- package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
- package/dist/cdn/{3TZEMBXR.js → ZOC5OCZL.js} +1 -1
- package/dist/cdn/ZYHMZQ7E.js +2 -0
- 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/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +104 -66
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +37 -45
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +46 -38
- package/dist/chunks/box-plot-data.js +291 -274
- package/dist/chunks/box-plot-model.js +143 -130
- package/dist/chunks/chart-model.js +65 -56
- package/dist/chunks/chart-object-literals.js +26 -25
- package/dist/chunks/chart-ui-utils.js +148 -66
- package/dist/chunks/chart-ui-utils2.js +68 -149
- package/dist/chunks/class-breaks.js +270 -238
- package/dist/chunks/combo-bar-line-chart-model.js +122 -101
- package/dist/chunks/data-labels-symbol.js +39 -24
- package/dist/chunks/data-labels-visibility.js +8 -8
- package/dist/chunks/data.js +41 -41
- package/dist/chunks/default.js +6 -6
- package/dist/chunks/gauge-model.js +61 -61
- package/dist/chunks/generate-x-axis-title.js +19 -15
- package/dist/chunks/heat-chart-model.js +95 -66
- package/dist/chunks/histogram-data.js +23 -23
- package/dist/chunks/histogram-model.js +10 -10
- package/dist/chunks/index.js +9348 -1079
- package/dist/chunks/index2.js +851 -8757
- package/dist/chunks/index3.js +1169 -849
- package/dist/chunks/index4.js +411 -251
- package/dist/chunks/index5.js +66 -100
- package/dist/chunks/interfaces.js +9 -9
- package/dist/chunks/line-chart-model.js +40 -24
- package/dist/chunks/model-setter.js +59 -64
- package/dist/chunks/model-types.js +1 -1
- package/dist/chunks/model-with-line-marker-styling.js +72 -47
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +251 -271
- package/dist/chunks/negative-values-stacked-to-baseline.js +122 -71
- package/dist/chunks/pie-chart-data.js +175 -193
- package/dist/chunks/pie-chart-model.js +388 -320
- package/dist/chunks/radar-chart-model.js +413 -46
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +10 -10
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +90 -0
- package/dist/chunks/scatterplot-model.js +22 -22
- package/dist/chunks/serial-chart-data.js +934 -818
- package/dist/chunks/serial-chart-model.js +145 -123
- package/dist/chunks/series-length.js +17 -17
- package/dist/chunks/series-types.js +22 -18
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +49 -23
- package/dist/chunks/type-guards2.js +61 -52
- package/dist/chunks/utils.js +110 -87
- package/dist/chunks/utils2.js +54 -37
- package/dist/chunks/web-component-utils.js +413 -383
- package/dist/chunks/x-bounds.js +103 -98
- package/dist/components/arcgis-chart/customElement.d.ts +728 -255
- package/dist/components/arcgis-chart/customElement.js +10870 -10606
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +8 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +34 -31
- package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +39 -33
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +27 -27
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +43 -43
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +54 -53
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -12
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +31 -39
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +48 -49
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +244 -230
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-format/customElement.js +89 -82
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-general/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-guide/customElement.js +21 -22
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +4 -4
- 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 +55 -55
- package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +27 -27
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +38 -38
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +56 -63
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +54 -53
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +17 -17
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
- package/dist/components/arcgis-charts-info-modal/customElement.js +7 -7
- 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 +1 -1
- package/dist/index.js +488 -464
- package/dist/interfaces.d.ts +57 -14
- package/dist/json-schema/index.d.ts +154 -6
- package/dist/loader.js +2 -2
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -4
- package/dist/model/box-plot-model/box-plot-model.d.ts +11 -5
- package/dist/model/chart-model/chart-model-base.d.ts +10 -0
- package/dist/model/chart-model/chart-model-wrapper.d.ts +24 -0
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +33 -21
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +41 -8
- package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
- package/dist/model/mixins/model-with-guides.d.ts +1 -1
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +28 -19
- package/dist/model/mixins/model-with-multi-axes.d.ts +69 -106
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +61 -2
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
- 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/setup-utils.d.ts +3 -3
- package/dist/model/shared/type-guards.d.ts +38 -22
- package/dist/spec/chart-object-literals.d.ts +4 -3
- package/dist/spec/data-source.d.ts +17 -3
- package/dist/spec/web-chart.d.ts +34 -4
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +3 -3
- package/dist/utils/chart-config/converter/index.js +368 -349
- package/dist/utils/chart-config/utils/index.d.ts +28 -10
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +1 -0
- package/dist/utils/components/interfaces.d.ts +2 -0
- package/dist/utils/cursor/interfaces.d.ts +21 -0
- package/dist/utils/data/categorical-data/index.d.ts +18 -2
- package/dist/utils/data/index.d.ts +28 -22
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +30 -4
- package/dist/utils/defaults/interfaces.d.ts +73 -4
- package/dist/utils/layer/index.d.ts +23 -5
- package/dist/utils/layer/interfaces.d.ts +0 -12
- package/dist/utils/layer/query-features/index.d.ts +8 -3
- package/dist/utils/layer/query-parser/index.d.ts +10 -6
- package/dist/utils/layer/utils/index.d.ts +22 -5
- package/dist/utils/localization/interfaces.d.ts +9 -1
- package/dist/utils/misc/interfaces.d.ts +1 -0
- package/dist/utils/type-guards/chart-types.d.ts +10 -0
- package/dist/utils/type-guards/series-types.d.ts +9 -2
- package/package.json +8 -9
- package/dist/cdn/24AOJE7B.js +0 -2
- package/dist/cdn/3KRPCKJZ.js +0 -2
- package/dist/cdn/3TBK72EK.js +0 -3
- package/dist/cdn/425PZ2QJ.js +0 -2
- package/dist/cdn/4PHYDOBF.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/567CLBG4.js +0 -2
- package/dist/cdn/5IIF22XN.js +0 -2
- package/dist/cdn/5IN5WK2R.js +0 -2
- package/dist/cdn/5LXX2PUM.js +0 -2
- package/dist/cdn/5NTIKQP4.js +0 -2
- package/dist/cdn/5YEADAVZ.js +0 -2
- package/dist/cdn/6R7VSDDU.js +0 -2
- package/dist/cdn/76MOP26H.js +0 -2
- package/dist/cdn/AHYYQWKY.js +0 -2
- package/dist/cdn/ASI7RDYV.js +0 -2
- package/dist/cdn/AXS3UMQJ.js +0 -2
- package/dist/cdn/BHUFE4DA.js +0 -2
- package/dist/cdn/CEWH3LQO.js +0 -2
- package/dist/cdn/CTBQ5Y4Z.js +0 -2
- package/dist/cdn/CVK7KFEC.js +0 -2
- package/dist/cdn/DJGEQ42V.js +0 -2
- package/dist/cdn/DL43NPDO.js +0 -2
- package/dist/cdn/E2DO2HQ6.js +0 -2
- package/dist/cdn/E4LJWBRC.js +0 -2
- package/dist/cdn/EDSF5KGV.js +0 -233
- package/dist/cdn/EE3KEIAT.js +0 -2
- package/dist/cdn/EJCGZPIV.js +0 -2
- package/dist/cdn/ETSB7KD3.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/F6QRLYSF.js +0 -2
- package/dist/cdn/FBMA7FW4.js +0 -2
- package/dist/cdn/FFS73X36.js +0 -142
- package/dist/cdn/FUAA6IFR.js +0 -4
- package/dist/cdn/FWRMJQXY.js +0 -2
- package/dist/cdn/G5FULTB5.js +0 -2
- package/dist/cdn/GISGGO3Z.js +0 -2
- package/dist/cdn/GQPOEX7B.js +0 -58
- package/dist/cdn/GYXK3DV7.js +0 -2
- package/dist/cdn/H45LPCQ2.js +0 -2
- package/dist/cdn/HW6MJJSX.js +0 -2
- package/dist/cdn/HZFHTWL6.js +0 -2
- package/dist/cdn/I2EERAZ3.js +0 -2
- package/dist/cdn/IE3GLZJZ.js +0 -2
- package/dist/cdn/IL2FG26D.js +0 -2
- package/dist/cdn/JBPYGZPJ.js +0 -2
- package/dist/cdn/JEOBO5JM.js +0 -2
- package/dist/cdn/KPWHYSA5.js +0 -2
- package/dist/cdn/KXUQJ6GE.js +0 -2
- package/dist/cdn/KZQFX7LH.js +0 -2
- package/dist/cdn/LL7NH3VV.js +0 -2
- package/dist/cdn/LUMOL7ZP.js +0 -2
- package/dist/cdn/LYJFZA2M.js +0 -2
- package/dist/cdn/MBSMC77K.js +0 -2
- package/dist/cdn/MVGAATR7.js +0 -2
- package/dist/cdn/NNZCIR7W.js +0 -2
- package/dist/cdn/NZXQ5BWP.js +0 -2
- package/dist/cdn/O4LKWTBY.js +0 -2
- package/dist/cdn/OW2DLJGU.js +0 -2
- package/dist/cdn/P4HSSZRL.js +0 -2
- package/dist/cdn/P4UJJCPG.js +0 -2
- package/dist/cdn/P56ROGSK.js +0 -2
- package/dist/cdn/PAIRUVLU.js +0 -2
- package/dist/cdn/PXIAM4CZ.js +0 -2
- package/dist/cdn/QPSJ6XOX.js +0 -2
- package/dist/cdn/R7HW5WVG.js +0 -2
- package/dist/cdn/RJCJ3F5C.js +0 -2
- package/dist/cdn/RKB6QZNW.js +0 -2
- package/dist/cdn/S6LH7YS6.js +0 -2
- package/dist/cdn/S74GCXXK.js +0 -3
- package/dist/cdn/SA22QZNW.js +0 -2
- package/dist/cdn/SJVVFOAX.js +0 -2
- package/dist/cdn/SOKKWGPA.js +0 -2
- package/dist/cdn/SQYOFBS6.js +0 -2
- package/dist/cdn/SVGAVKBQ.js +0 -2
- package/dist/cdn/THTYR6IL.js +0 -2
- package/dist/cdn/TTBRUBXY.js +0 -2
- package/dist/cdn/U5IM4KAQ.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/UIRKQREJ.js +0 -2
- package/dist/cdn/UIY2PSG4.js +0 -2
- package/dist/cdn/UNTIPIBS.js +0 -2
- package/dist/cdn/VIY3BCJZ.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/WHJU66P4.js +0 -2
- package/dist/cdn/WJ2VDT6B.js +0 -2
- package/dist/cdn/WNKDEOFZ.js +0 -2
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/cdn/WU3C7BQU.js +0 -2
- package/dist/cdn/WWO326JE.js +0 -2
- package/dist/cdn/XJFVSX2E.js +0 -2
- package/dist/cdn/XNWSVHA3.js +0 -2
- package/dist/cdn/XOM6LSIW.js +0 -2
- package/dist/cdn/XP4S2M7F.js +0 -2
- package/dist/cdn/XUERYUEG.js +0 -2
- package/dist/cdn/Y3CXVO2M.js +0 -2
- package/dist/cdn/Y7HBWU3M.js +0 -2
- package/dist/cdn/YALB4GSA.js +0 -2
- package/dist/cdn/YUF4ZSA5.js +0 -2
- package/dist/cdn/ZJHV3UVG.js +0 -2
- package/dist/cdn/ZQ2WG55W.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
|
@@ -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
|
+
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { c as h } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as m, html as o } from "lit";
|
|
4
4
|
import { merge as i } from "lodash-es";
|
|
5
|
-
import { i as p, m as c,
|
|
5
|
+
import { i as p, m as c, U as r, s as y } from "../../chunks/chart-ui-utils.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 {
|
|
10
|
-
import {
|
|
9
|
+
import { N as b } from "../../chunks/index3.js";
|
|
10
|
+
import { b as v } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const C = {
|
|
12
12
|
arial: "Arial",
|
|
13
13
|
arialBlack: "Arial Black",
|
|
@@ -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 = {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { ref as
|
|
4
|
-
import {
|
|
5
|
-
import { i as
|
|
6
|
-
import { i as
|
|
7
|
-
import {
|
|
8
|
-
import { h as
|
|
9
|
-
import {
|
|
2
|
+
import { c as B } from "../../chunks/runtime.js";
|
|
3
|
+
import { ref as M } from "lit/directives/ref.js";
|
|
4
|
+
import { l as y, j as d, g as h, m as S, a as V, h as w } from "../../chunks/type-guards2.js";
|
|
5
|
+
import { i as T } from "../../chunks/data-labels-symbol.js";
|
|
6
|
+
import { i as C, a as L, b as P } from "../../chunks/axis-lines-symbol.js";
|
|
7
|
+
import { cloneDeep as n, isArray as F, isObject as A, mergeWith as D, isEmpty as E } from "lodash-es";
|
|
8
|
+
import { h as G } from "../../chunks/chart-ui-utils.js";
|
|
9
|
+
import { R as W, b } from "../../chunks/rest-js-object-literals.js";
|
|
10
10
|
import { u as N } from "../../chunks/useT9n.js";
|
|
11
|
-
import { css as z, html as
|
|
12
|
-
import { LitElement as H, renderElement as
|
|
13
|
-
import { C as
|
|
14
|
-
import {
|
|
11
|
+
import { css as z, html as f } from "lit";
|
|
12
|
+
import { LitElement as H, renderElement as R, safeClassMap as p } from "@arcgis/lumina";
|
|
13
|
+
import { C as j, F as i, L as m } from "../../chunks/common.js";
|
|
14
|
+
import { b as u, bJ as r } from "../../chunks/index.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
|
-
import {
|
|
16
|
+
import { C as I } from "../../chunks/index2.js";
|
|
17
|
+
import { a } from "../../chunks/chart-object-literals.js";
|
|
17
18
|
const v = {
|
|
18
19
|
type: b.TS,
|
|
19
20
|
color: [1, 1, 1, 255],
|
|
@@ -27,14 +28,14 @@ const v = {
|
|
|
27
28
|
}, k = {
|
|
28
29
|
type: b.SLS,
|
|
29
30
|
color: [1, 1, 1, 255],
|
|
30
|
-
style:
|
|
31
|
+
style: W.Solid,
|
|
31
32
|
width: 2
|
|
32
33
|
}, g = {
|
|
33
34
|
element: "chart-element",
|
|
34
35
|
elementList: "element-list",
|
|
35
36
|
sectionLabel: "section-label"
|
|
36
37
|
}, O = 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{width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.element-list{margin:var(--arcgis-charts-config-margin-minor)}.element{user-select:none}`;
|
|
37
|
-
class
|
|
38
|
+
class X extends H {
|
|
38
39
|
constructor() {
|
|
39
40
|
super(...arguments), this._messages = N(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
|
|
40
41
|
const e = t;
|
|
@@ -44,7 +45,7 @@ class R extends H {
|
|
|
44
45
|
this.selectedSymbols = [], this.updateSelectedElement(this.selectedSymbols);
|
|
45
46
|
else {
|
|
46
47
|
const o = this.getFormatValue(s);
|
|
47
|
-
this.selectedSymbols = [s], this.initSelectedSymbols(
|
|
48
|
+
this.selectedSymbols = [s], this.initSelectedSymbols(u(o) ? o : k);
|
|
48
49
|
}
|
|
49
50
|
this.setupFormatPopover();
|
|
50
51
|
}, this.textPropertyChange = (t) => {
|
|
@@ -53,9 +54,9 @@ class R extends H {
|
|
|
53
54
|
let s;
|
|
54
55
|
if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedBackground = [], e.shiftKey) {
|
|
55
56
|
this.selectedTexts = [];
|
|
56
|
-
const o = this.textProperties.indexOf(this.lastSelectedText ?? s),
|
|
57
|
-
this.textProperties.forEach((
|
|
58
|
-
|
|
57
|
+
const o = this.textProperties.indexOf(this.lastSelectedText ?? s), l = this.textProperties.indexOf(s);
|
|
58
|
+
this.textProperties.forEach((c, x) => {
|
|
59
|
+
x >= Math.min(o, l) && x <= Math.max(o, l) && this.selectedTexts.push(c);
|
|
59
60
|
}), this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
|
|
60
61
|
} else if (e.ctrlKey)
|
|
61
62
|
this.selectedTexts.includes(s) ? (this.selectedTexts = this.selectedTexts.filter((o) => o !== s), this.updateSelectedElement(this.selectedTexts)) : (this.selectedTexts = [...this.selectedTexts, s], this.updateSelectedElement(this.selectedTexts)), this.setupFormatPopover();
|
|
@@ -63,32 +64,38 @@ class R extends H {
|
|
|
63
64
|
this.selectedTexts = [], this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
|
|
64
65
|
else {
|
|
65
66
|
const o = this.getFormatValue(s);
|
|
66
|
-
this.selectedTexts = [s], this.initSelectedTexts(
|
|
67
|
+
this.selectedTexts = [s], this.initSelectedTexts(r(o) ? o : v), this.setupFormatPopover();
|
|
67
68
|
}
|
|
68
69
|
this.lastSelectedText = s;
|
|
69
70
|
}, this.backgroundChange = (t) => {
|
|
70
71
|
const e = t;
|
|
71
72
|
e.stopImmediatePropagation();
|
|
72
73
|
let s;
|
|
73
|
-
e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedTexts = [], this.selectedBackground.includes(s)
|
|
74
|
+
if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedTexts = [], this.selectedBackground.includes(s))
|
|
75
|
+
this.selectedBackground = [], this.selectedElement = void 0;
|
|
76
|
+
else {
|
|
77
|
+
const o = this.getFormatValue(s), l = [...I.backgroundColor];
|
|
78
|
+
this.selectedBackground = [s], this.selectedElement = o ?? l;
|
|
79
|
+
}
|
|
80
|
+
this.setupFormatPopover();
|
|
74
81
|
}, this.updateSymbolProps = (t) => {
|
|
75
82
|
const e = t.detail;
|
|
76
83
|
this.selectedSymbols.forEach((s) => {
|
|
77
84
|
this.setFormatValue(s, e);
|
|
78
|
-
}), this.selectedElement =
|
|
85
|
+
}), this.selectedElement = n(t.target.selectedElement);
|
|
79
86
|
}, this.updateBackground = (t) => {
|
|
80
|
-
this.setFormatValue(
|
|
87
|
+
this.setFormatValue(j.Background, t.detail), this.selectedElement = t.detail;
|
|
81
88
|
}, this.updateTextProps = (t) => {
|
|
82
89
|
const { font: e, color: s } = t.detail;
|
|
83
90
|
this.selectedTexts.forEach((o) => {
|
|
84
|
-
const
|
|
91
|
+
const l = this.getFormatValue(o), c = r(l) ? l : void 0;
|
|
85
92
|
this.setFormatValue(o, {
|
|
86
|
-
...
|
|
93
|
+
...c,
|
|
87
94
|
type: b.TS,
|
|
88
|
-
font: { ...
|
|
89
|
-
color: s ??
|
|
95
|
+
font: { ...c?.font, ...e },
|
|
96
|
+
color: s ?? c?.color
|
|
90
97
|
});
|
|
91
|
-
}), this.selectedElement =
|
|
98
|
+
}), this.selectedElement = n(t.target.selectedElement);
|
|
92
99
|
}, this.onModelConfigChange = () => {
|
|
93
100
|
this.requestUpdate();
|
|
94
101
|
}, this.formatPopoverClose = (t) => {
|
|
@@ -128,29 +135,29 @@ class R extends H {
|
|
|
128
135
|
}
|
|
129
136
|
updateSelectedElement(t, e) {
|
|
130
137
|
if (this.selectedElement = void 0, e === void 0) {
|
|
131
|
-
const s =
|
|
132
|
-
this.selectedElement = t?.reduce((o,
|
|
133
|
-
const
|
|
134
|
-
return
|
|
138
|
+
const s = n(this.getFormatValue(t[0]));
|
|
139
|
+
this.selectedElement = t?.reduce((o, l) => {
|
|
140
|
+
const c = this.getFormatValue(l);
|
|
141
|
+
return D(o, c, this.mergeFormatValues);
|
|
135
142
|
}, s);
|
|
136
143
|
} else {
|
|
137
|
-
let s =
|
|
138
|
-
|
|
144
|
+
let s = n(e);
|
|
145
|
+
E(e) && (this.selectedSymbols?.length > 0 && (s = n(k)), this.selectedTexts?.length > 0 && (s = n(v))), this.selectedElement = s;
|
|
139
146
|
}
|
|
140
147
|
}
|
|
141
148
|
initSelectedTexts(t) {
|
|
142
|
-
let e =
|
|
143
|
-
|
|
149
|
+
let e = n(t);
|
|
150
|
+
E(t) && (e = n(v)), this.selectedElement = e;
|
|
144
151
|
}
|
|
145
152
|
initSelectedSymbols(t) {
|
|
146
|
-
let e =
|
|
147
|
-
|
|
153
|
+
let e = n(t);
|
|
154
|
+
E(t) && (e = n(k)), this.selectedElement = e;
|
|
148
155
|
}
|
|
149
156
|
setupFormatPopover() {
|
|
150
157
|
this.formatPopover = $(this.formatPopover);
|
|
151
158
|
const t = this.selectedElement;
|
|
152
159
|
t?.type === b.TS || t?.type === b.SLS || // To check if the selected element is background.
|
|
153
|
-
Array.isArray(this.selectedElement) ? (this.formatPopover =
|
|
160
|
+
Array.isArray(this.selectedElement) ? (this.formatPopover = R(f`<arcgis-charts-config-format-popover .selectedElement=${this.selectedElement} .referenceElement=${this.el} @arcgisChartsConfigFormatPopoverSymbolChange=${this.updateSymbolProps} @arcgisChartsConfigFormatPopoverTextChange=${this.updateTextProps} @arcgisChartsConfigFormatPopoverColorChange=${this.updateBackground} placement=auto @arcgisChartsConfigPopoverClose=${this.formatPopoverClose} open></arcgis-charts-config-format-popover>`), this.formatPopover !== null && !document.body.contains(this.formatPopover) && document.body.appendChild(this.formatPopover)) : this.removeFormatPopover();
|
|
154
161
|
}
|
|
155
162
|
removeFormatPopover() {
|
|
156
163
|
this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = $(this.formatPopover));
|
|
@@ -162,25 +169,25 @@ class R extends H {
|
|
|
162
169
|
case i.Description:
|
|
163
170
|
return this.model.descriptionSymbol;
|
|
164
171
|
case i.XAxisTitle:
|
|
165
|
-
return
|
|
172
|
+
return P(this.model) ? this.model.xAxisTitleSymbol : void 0;
|
|
166
173
|
case i.YAxisTitle:
|
|
167
174
|
return d(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
|
|
168
175
|
case i.AxisLabels:
|
|
169
|
-
return
|
|
176
|
+
return L(this.model) ? this.model.axisLabelsSymbol : void 0;
|
|
170
177
|
case i.GuideLabels:
|
|
171
|
-
return
|
|
178
|
+
return S(this.model) ? this.model.guideLabelsSymbol : void 0;
|
|
172
179
|
case i.LegendText:
|
|
173
180
|
return h(this.model) ? this.model.legendTextSymbol : void 0;
|
|
174
181
|
case i.LegendTitle:
|
|
175
182
|
return h(this.model) ? this.model.legendTitleSymbol : void 0;
|
|
176
183
|
case i.DataLabels:
|
|
177
|
-
return
|
|
178
|
-
case
|
|
179
|
-
return
|
|
180
|
-
case
|
|
184
|
+
return T(this.model) ? this.model.dataLabelsSymbol : void 0;
|
|
185
|
+
case m.AxisLines:
|
|
186
|
+
return C(this.model) ? this.model.axisLinesSymbol : void 0;
|
|
187
|
+
case m.GridLines:
|
|
181
188
|
return d(this.model) ? this.model.getGridLinesSymbol() : void 0;
|
|
182
|
-
case
|
|
183
|
-
return
|
|
189
|
+
case m.LeaderLines:
|
|
190
|
+
return y(this.model) ? this.model.ticksSymbol : void 0;
|
|
184
191
|
case i.Background:
|
|
185
192
|
return this.model.backgroundColor;
|
|
186
193
|
default:
|
|
@@ -190,37 +197,37 @@ class R extends H {
|
|
|
190
197
|
setFormatValue(t, e) {
|
|
191
198
|
switch (t) {
|
|
192
199
|
case i.Title:
|
|
193
|
-
|
|
200
|
+
r(e) && (this.model.titleSymbol = e);
|
|
194
201
|
break;
|
|
195
202
|
case i.Description:
|
|
196
|
-
|
|
203
|
+
r(e) && (this.model.descriptionSymbol = e);
|
|
197
204
|
break;
|
|
198
205
|
case i.XAxisTitle:
|
|
199
|
-
|
|
206
|
+
P(this.model) && r(e) && (this.model.xAxisTitleSymbol = e);
|
|
200
207
|
break;
|
|
201
208
|
case i.YAxisTitle:
|
|
202
|
-
d(this.model) &&
|
|
209
|
+
d(this.model) && r(e) && this.model.setAxisTitleSymbol(e, 1);
|
|
203
210
|
break;
|
|
204
211
|
case i.AxisLabels:
|
|
205
|
-
|
|
212
|
+
L(this.model) && r(e) && (this.model.axisLabelsSymbol = e);
|
|
206
213
|
break;
|
|
207
214
|
case i.GuideLabels:
|
|
208
|
-
|
|
215
|
+
S(this.model) && r(e) && (this.model.guideLabelsSymbol = e);
|
|
209
216
|
break;
|
|
210
217
|
case i.LegendText:
|
|
211
|
-
h(this.model) &&
|
|
218
|
+
h(this.model) && r(e) && (this.model.legendTextSymbol = e);
|
|
212
219
|
break;
|
|
213
220
|
case i.LegendTitle:
|
|
214
|
-
h(this.model) &&
|
|
221
|
+
h(this.model) && r(e) && (this.model.legendTitleSymbol = e);
|
|
215
222
|
break;
|
|
216
223
|
case i.DataLabels:
|
|
217
|
-
|
|
224
|
+
T(this.model) && r(e) && (this.model.dataLabelsSymbol = e);
|
|
218
225
|
break;
|
|
219
|
-
case
|
|
220
|
-
|
|
226
|
+
case m.AxisLines:
|
|
227
|
+
C(this.model) && u(e) && (this.model.axisLinesSymbol = e);
|
|
221
228
|
break;
|
|
222
|
-
case
|
|
223
|
-
if (
|
|
229
|
+
case m.GridLines:
|
|
230
|
+
if (u(e)) {
|
|
224
231
|
if (V(this.model))
|
|
225
232
|
this.model.setGridLinesSymbol(e);
|
|
226
233
|
else if (d(this.model)) {
|
|
@@ -228,17 +235,17 @@ class R extends H {
|
|
|
228
235
|
let o = [];
|
|
229
236
|
switch (s) {
|
|
230
237
|
// set y-axis grid line for charts -Bar chart/Line chart, Histogram and Box plot
|
|
231
|
-
case
|
|
232
|
-
case
|
|
233
|
-
case
|
|
234
|
-
case
|
|
235
|
-
case
|
|
236
|
-
case
|
|
238
|
+
case a.BarSeries:
|
|
239
|
+
case a.LineSeries:
|
|
240
|
+
case a.ComboLineAndBarSeries:
|
|
241
|
+
case a.HistogramSeries:
|
|
242
|
+
case a.BoxPlotSeries:
|
|
243
|
+
case a.RadarSeries: {
|
|
237
244
|
o = [1];
|
|
238
245
|
break;
|
|
239
246
|
}
|
|
240
247
|
// set both x and y-axis grid lines for charts - Scatter chart
|
|
241
|
-
case
|
|
248
|
+
case a.ScatterSeries: {
|
|
242
249
|
o = [0, 1];
|
|
243
250
|
break;
|
|
244
251
|
}
|
|
@@ -247,8 +254,8 @@ class R extends H {
|
|
|
247
254
|
}
|
|
248
255
|
}
|
|
249
256
|
break;
|
|
250
|
-
case
|
|
251
|
-
|
|
257
|
+
case m.LeaderLines:
|
|
258
|
+
y(this.model) && u(e) && (this.model.ticksSymbol = e);
|
|
252
259
|
break;
|
|
253
260
|
case i.Background:
|
|
254
261
|
Array.isArray(e) && (this.model.backgroundColor = e);
|
|
@@ -258,33 +265,33 @@ class R extends H {
|
|
|
258
265
|
renderFormatElements() {
|
|
259
266
|
this.textProperties = [
|
|
260
267
|
i.Title,
|
|
261
|
-
...
|
|
268
|
+
...P(this.model) ? [i.XAxisTitle] : [],
|
|
262
269
|
...d(this.model) ? [i.YAxisTitle] : [],
|
|
263
270
|
...h(this.model) ? [i.LegendTitle] : [],
|
|
264
271
|
i.Description,
|
|
265
272
|
...h(this.model) ? [i.LegendText] : [],
|
|
266
|
-
...
|
|
267
|
-
...
|
|
268
|
-
...
|
|
273
|
+
...L(this.model) ? [i.AxisLabels] : [],
|
|
274
|
+
...S(this.model) && this.model.chartType !== a.HeatSeries ? [i.GuideLabels] : [],
|
|
275
|
+
...T(this.model) && this.model.chartType !== a.HeatSeries && this.model.chartType !== a.BoxPlotSeries ? [i.DataLabels] : []
|
|
269
276
|
], w(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
|
|
270
277
|
i.Background,
|
|
271
|
-
...
|
|
272
|
-
...d(this.model) ? [
|
|
273
|
-
...
|
|
278
|
+
...C(this.model) && this.model.chartType !== a.HeatSeries ? [m.AxisLines] : [],
|
|
279
|
+
...d(this.model) ? [m.GridLines] : [],
|
|
280
|
+
...y(this.model) ? [m.LeaderLines] : []
|
|
274
281
|
];
|
|
275
282
|
const t = this.textProperties.map((s) => this.renderTextElement(s, this.textPropertyChange)), e = this.symbolProperties.map((s) => s === i.Background ? this.renderTextElement(s, this.backgroundChange) : this.renderTextElement(s, this.symbolPropertyChange));
|
|
276
283
|
return { textElements: t, symbolElements: e };
|
|
277
284
|
}
|
|
278
285
|
renderTextElement(t, e) {
|
|
279
|
-
const s =
|
|
280
|
-
return
|
|
286
|
+
const s = G(t), o = this.getFormatValue(t), l = typeof o == "string" ? o : "", c = this.selectedTexts.includes(t) || this.selectedSymbols.includes(t) || this.selectedBackground.includes(t);
|
|
287
|
+
return f`<calcite-list-item class=${p(g.element)} .label=${this._messages[t]} .description=${l} .value=${t} .selected=${c} @click=${e} ${M(this.updateSelectableElements)}>${s !== void 0 ? f`<calcite-icon slot=content-start scale=s .icon=${s}></calcite-icon>` : null}</calcite-list-item>`;
|
|
281
288
|
}
|
|
282
289
|
render() {
|
|
283
290
|
const { textElements: t, symbolElements: e } = this.renderFormatElements();
|
|
284
|
-
return
|
|
291
|
+
return f`<div class=${p(g.sectionLabel)}>${this._messages.textElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=multiple selection-appearance=border @calciteListChange=${this.correctTextElementSelection}>${t}</calcite-list><div class=${p(g.sectionLabel)}>${this._messages.symbolElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=single selection-appearance=border>${e}</calcite-list>`;
|
|
285
292
|
}
|
|
286
293
|
}
|
|
287
|
-
|
|
294
|
+
B("arcgis-charts-config-format", X);
|
|
288
295
|
export {
|
|
289
|
-
|
|
296
|
+
X as ArcgisChartsConfigFormat
|
|
290
297
|
};
|
|
@@ -5,7 +5,7 @@ import { u as a } from "../../chunks/useT9n.js";
|
|
|
5
5
|
import { createRef as l, ref as n } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
7
7
|
import { e as p } from "../../chunks/popover-ui-utils.js";
|
|
8
|
-
import {
|
|
8
|
+
import { b as r } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
class h extends c {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments), this._messages = a(), this.popoverElement = l(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigFormatPopoverColorChange = s(), this.arcgisChartsConfigFormatPopoverSymbolChange = s(), this.arcgisChartsConfigFormatPopoverTextChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
@@ -33,7 +33,7 @@ class h extends c {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const e = this.selectedElement, t = this.selectedElement;
|
|
36
|
-
return o`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${!this.open} label @calcitePopoverClose=${this.closePopover} pointer-disabled auto-close ${n(this.popoverElement)}>${Array.isArray(e) ? o`<arcgis-charts-config-color-style .header=${this._messages.backgroundElement} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.closePopover} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` : null}${t?.type === r.SLS ? o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` : null}${t?.type === r.TS ? o`<arcgis-charts-config-font-style .header=${this._messages.textStyle} .open=${this.open} enable-close .fontStyle=${t} @arcgisChartsConfigFontStyleClose=${this.closePopover} @arcgisChartsConfigFontStyleChange=${this.updateTextProperties}></arcgis-charts-config-font-style>` : null}</calcite-popover></div>`;
|
|
36
|
+
return o`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${!this.open} label @calcitePopoverClose=${this.closePopover} pointer-disabled auto-close ${n(this.popoverElement)}>${Array.isArray(e) ? o`<arcgis-charts-config-color-style .header=${this._messages.backgroundElement} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.closePopover} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` : null}${t?.type === r.SLS ? o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close use-panel .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` : null}${t?.type === r.TS ? o`<arcgis-charts-config-font-style .header=${this._messages.textStyle} .open=${this.open} enable-close .fontStyle=${t} @arcgisChartsConfigFontStyleClose=${this.closePopover} @arcgisChartsConfigFontStyleChange=${this.updateTextProperties}></arcgis-charts-config-font-style>` : null}</calcite-popover></div>`;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
i("arcgis-charts-config-format-popover", h);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
-
import {
|
|
3
|
+
import { j as n, n as r, g as c } from "../../chunks/type-guards2.js";
|
|
4
4
|
import { i as h, a as m, b as g } from "../../chunks/generate-x-axis-title.js";
|
|
5
5
|
import { isEmpty as x } from "lodash-es";
|
|
6
|
-
import { m as u, U as b } from "../../chunks/chart-ui-
|
|
6
|
+
import { m as u, U as b } from "../../chunks/chart-ui-utils.js";
|
|
7
7
|
import { u as p } from "../../chunks/useT9n.js";
|
|
8
8
|
import { css as C, html as l } from "lit";
|
|
9
9
|
import { createRef as f, ref as $ } from "lit/directives/ref.js";
|
|
10
10
|
import { LitElement as v, safeClassMap as i } from "@arcgis/lumina";
|
|
11
|
-
import {
|
|
11
|
+
import { f as a } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { i as y } from "../../chunks/index4.js";
|
|
13
13
|
const s = {
|
|
14
14
|
textInput: "text-input",
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as B } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as X } from "lit/directives/keyed.js";
|
|
4
4
|
import { cloneDeep as E } from "lodash-es";
|
|
5
|
-
import { m as G, a as N, j as Z, k
|
|
5
|
+
import { m as G, U as S, a as N, j as Z, k } from "../../chunks/chart-ui-utils.js";
|
|
6
6
|
import { d as F } from "../../chunks/default.js";
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
9
|
-
import { css as
|
|
7
|
+
import { g as z } from "../../chunks/resource.js";
|
|
8
|
+
import { u as O } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as V, html as c } from "lit";
|
|
10
10
|
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
|
-
import { LitElement as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { q as m, p as K } from "../../chunks/index5.js";
|
|
11
|
+
import { LitElement as q, createEvent as U, renderElement as L, safeStyleMap as M, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
+
import { j as W, o as j, p as Y } from "../../chunks/type-guards2.js";
|
|
13
|
+
import { bK as p, b as m, bi as H, bL as A, bM as _, i as K } from "../../chunks/index.js";
|
|
14
|
+
import { t as J } from "../../chunks/index3.js";
|
|
16
15
|
import { r as Q } from "../../chunks/popover-ui-utils.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { b as g, R as ee } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
+
import { a as te } from "../../chunks/chart-object-literals.js";
|
|
19
18
|
import { G as b } from "../../chunks/common.js";
|
|
20
19
|
const n = {
|
|
21
20
|
row: "row",
|
|
22
21
|
column: "column",
|
|
23
22
|
colorPicker: "color-picker"
|
|
24
|
-
}, ie =
|
|
25
|
-
class se extends
|
|
23
|
+
}, ie = V`.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}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`;
|
|
24
|
+
class se extends q {
|
|
26
25
|
constructor() {
|
|
27
|
-
super(...arguments), this._messages =
|
|
26
|
+
super(...arguments), this._messages = O(), this.startCalciteInput = h(), this.endCalciteInput = h(), this.startDateCalciteInput = h(), this.endDateCalciteInput = h(), this.startTimeCalciteInput = h(), this.endTimeCalciteInput = h(), this.colorElement = h(), this.colorChange = (e) => {
|
|
28
27
|
const t = e.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
29
28
|
if (p(i, a) === g.SLS) {
|
|
30
29
|
const l = E(F.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
@@ -102,7 +101,7 @@ class se extends V {
|
|
|
102
101
|
})), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
103
102
|
}
|
|
104
103
|
setGuideDateTimeRange() {
|
|
105
|
-
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s),
|
|
104
|
+
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s), R = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x, w = this.endTimeCalciteInput.value?.value ?? "", P = w === "" ? R : w;
|
|
106
105
|
let $ = !1;
|
|
107
106
|
if (!Array.isArray(C) && C !== void 0 && I !== void 0) {
|
|
108
107
|
const d = `${C}T${I}`;
|
|
@@ -159,7 +158,7 @@ class se extends V {
|
|
|
159
158
|
let l;
|
|
160
159
|
p(i, a) === g.SLS ? l = m(t) ? t : void 0 : l = t?.color;
|
|
161
160
|
const s = this.colorElement.value;
|
|
162
|
-
Array.isArray(t?.color) ? (this.guidePopover =
|
|
161
|
+
Array.isArray(t?.color) ? (this.guidePopover = L(c`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`), this.guidePopover !== void 0 && !document.body.contains(this.guidePopover) && document.body.appendChild(this.guidePopover)) : this.removeGuidePopover();
|
|
163
162
|
}
|
|
164
163
|
removeGuidePopover() {
|
|
165
164
|
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover = Q(this.guidePopover));
|
|
@@ -197,7 +196,7 @@ class se extends V {
|
|
|
197
196
|
i = this._messages.deleteGuide ?? "";
|
|
198
197
|
break;
|
|
199
198
|
}
|
|
200
|
-
this.tooltip =
|
|
199
|
+
this.tooltip = L(c`<calcite-tooltip style=${M({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
201
200
|
}
|
|
202
201
|
toggleGuide() {
|
|
203
202
|
const e = this.model.getGuideVisibility(this.index, this.orientation);
|
|
@@ -207,7 +206,7 @@ class se extends V {
|
|
|
207
206
|
N(this.tooltip);
|
|
208
207
|
}
|
|
209
208
|
deleteGuide() {
|
|
210
|
-
this.destroyTooltip(), this.orientation === b.X &&
|
|
209
|
+
this.destroyTooltip(), this.orientation === b.X && j(this.model) ? this.model.deleteXAxisGuide(this.index) : this.orientation === b.Y && Y(this.model) && this.model.deleteYAxisGuide(this.index), this.arcgisChartsConfigGuideChange.emit({
|
|
211
210
|
index: this.index,
|
|
212
211
|
orientation: this.orientation,
|
|
213
212
|
isDelete: !0
|
|
@@ -215,17 +214,17 @@ class se extends V {
|
|
|
215
214
|
}
|
|
216
215
|
renderColorElement() {
|
|
217
216
|
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ? Z(e.style) : ee.Solid, f = p(s, r) === g.SLS ? `line-${v}` : "square-f";
|
|
218
|
-
return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${
|
|
217
|
+
return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${M({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
219
218
|
}
|
|
220
219
|
render() {
|
|
221
220
|
const e = this.model.getGuideStart(this.index, this.orientation), t = this.model.getGuideEnd(this.index, this.orientation), i = this.model.getGuideName(this.index, this.orientation), a = this.model.getGuideLabelText(this.index, this.orientation), l = this.model.getGuideAbove(this.index, this.orientation), s = this.model.getGuideVisibility(this.index, this.orientation), r = this.isXAxisDateField;
|
|
222
|
-
return c`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition ===
|
|
221
|
+
return c`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition === z(this.index, this.orientation, this.model)} collapsible .messageOverrides=${{
|
|
223
222
|
expand: this._messages.expand,
|
|
224
223
|
collapse: this._messages.collapse
|
|
225
224
|
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${k} number-button-type=none .value=${e?.toString()} ${u(this.startCalciteInput)}></calcite-input>`}</calcite-label><calcite-label class=${o(n.column)}>${this._messages.end}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.endDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${k} number-button-type=none .value=${t?.toString()} ${u(this.endCalciteInput)}></calcite-input>`}</calcite-label></div>${r ? X("time-picker-row", c`<div class=${o(n.row)}>${e != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}${t != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}</div>`) : null}<div class=${o(n.row)}><div class=${o(n.column)}>${this.renderColorElement()}</div></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`;
|
|
226
225
|
}
|
|
227
226
|
}
|
|
228
|
-
|
|
227
|
+
B("arcgis-charts-config-guide", se);
|
|
229
228
|
export {
|
|
230
229
|
se as ArcgisChartsConfigGuide
|
|
231
230
|
};
|
|
@@ -3,13 +3,13 @@ import { c as r } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { html as t } from "lit";
|
|
4
4
|
import { g as i } from "../../chunks/default.js";
|
|
5
5
|
import { u as l } from "../../chunks/useT9n.js";
|
|
6
|
-
import { createRef as
|
|
6
|
+
import { createRef as n, ref as a } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
8
|
-
import {
|
|
8
|
+
import { b as p } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
import { e as h } from "../../chunks/popover-ui-utils.js";
|
|
10
10
|
class m extends c {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(...arguments), this._messages = l(), this.popoverElement =
|
|
12
|
+
super(...arguments), this._messages = l(), this.popoverElement = n(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigGuidePopoverColorChange = s(), this.arcgisChartsConfigGuidePopoverSymbolChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
15
|
this.properties = { messageOverrides: 0, selectedElement: 0, referenceElement: 0, placement: 1, open: 5 };
|
|
@@ -33,7 +33,7 @@ class m extends c {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const o = this.selectedElement, e = this.selectedElement;
|
|
36
|
-
return t`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} offset-distance=20 offset-skidding=60 label pointer-disabled @calcitePopoverClose=${this.guidePopoverClose} auto-close ${
|
|
36
|
+
return t`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} offset-distance=20 offset-skidding=60 label pointer-disabled @calcitePopoverClose=${this.guidePopoverClose} auto-close ${a(this.popoverElement)}>${Array.isArray(o) ? t`<arcgis-charts-config-color-style .header=${this._messages.fillStyle} enable-close .open=${this.open} .selectedColor=${o} @arcgisChartsConfigColorStyleClose=${this.guidePopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` : null}${e?.type === p.SLS ? t`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close use-panel .lineStyle=${e} @arcgisChartsConfigLineStyleClose=${this.guidePopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` : null}</calcite-popover></div>`;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
r("arcgis-charts-config-guide-popover", m);
|
|
@@ -7,7 +7,7 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as A, html as a } from "lit";
|
|
8
8
|
import { createRef as x, ref as C } from "lit/directives/ref.js";
|
|
9
9
|
import { LitElement as b, renderElement as v, safeClassMap as c } from "@arcgis/lumina";
|
|
10
|
-
import {
|
|
10
|
+
import { o as h, p as u } from "../../chunks/type-guards2.js";
|
|
11
11
|
import { G as s } from "../../chunks/common.js";
|
|
12
12
|
const P = A`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.add-guide{display:flex;justify-content:center;padding:.5rem}.add-guide-btn{width:100%}.no-guides{border-radius:2rem}.no-messages{text-align:center}.guide-icon{padding-left:.5rem;padding-top:.5rem;width:1.5rem;height:1.5rem}`;
|
|
13
13
|
class $ extends b {
|