@arcgis/charts-components 6.0.0-next.2 → 6.0.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{RKRR2KKS.js → 23PFUSK3.js} +1 -1
- package/dist/cdn/2GQTW4NH.js +2 -0
- package/dist/cdn/{FTEOTYTH.js → 2PUVZIJ6.js} +1 -1
- package/dist/cdn/{C27CFMVY.js → 33NEGHM6.js} +1 -1
- package/dist/cdn/3Q47Q67R.js +2 -0
- package/dist/cdn/3RQW57SE.js +2 -0
- package/dist/cdn/4GEBMO7W.js +2 -0
- package/dist/cdn/4V743NL4.js +2 -0
- package/dist/cdn/{RANPMLRU.js → 55OFHBXV.js} +1 -1
- package/dist/cdn/{H5VCT3XP.js → 5EAIW2ZK.js} +1 -1
- package/dist/cdn/5N5ZQZJO.js +2 -0
- package/dist/cdn/{NOWRHZV7.js → 5OSVKP4N.js} +1 -1
- package/dist/cdn/{RKWSCI6H.js → 5QLZ66AU.js} +1 -1
- package/dist/cdn/{2R2K5DTZ.js → 5SOADBYD.js} +1 -1
- package/dist/cdn/{IS6WNL3S.js → 5ZZZKI7V.js} +1 -1
- package/dist/cdn/{RPUVDZVR.js → 6HUXP73R.js} +1 -1
- package/dist/cdn/{D4SDXCEK.js → 6IIBIZJH.js} +1 -1
- package/dist/cdn/6OPPM5V2.js +2 -0
- package/dist/cdn/{QKV23ZMN.js → 6QY2OFUO.js} +1 -1
- package/dist/cdn/6R62GKMO.js +2 -0
- package/dist/cdn/6ZD3Z5YL.js +2 -0
- package/dist/cdn/{2HAZBMAW.js → 7AWJIBMG.js} +1 -1
- package/dist/cdn/7GGX5UIB.js +2 -0
- package/dist/cdn/{ZXXFRYTC.js → 7N2LSD5J.js} +1 -1
- package/dist/cdn/7QBDOZRN.js +2 -0
- package/dist/cdn/7UVDQBL4.js +2 -0
- package/dist/cdn/{IHAADQBV.js → A6DV5ILW.js} +1 -1
- package/dist/cdn/{3CSWEOBS.js → BGHJMVNV.js} +1 -1
- package/dist/cdn/{7YQKCXR4.js → BGVIOGAX.js} +1 -1
- package/dist/cdn/BR46WAT3.js +2 -0
- package/dist/cdn/{GPQCW5EO.js → BYG7ZIX2.js} +2 -2
- package/dist/cdn/C2WLLAJA.js +2 -0
- package/dist/cdn/CLFK7CD2.js +2 -0
- package/dist/cdn/CLPZTMER.js +2 -0
- package/dist/cdn/COM3OWDH.js +2 -0
- package/dist/cdn/{YR2F7I7M.js → CYZPIC2B.js} +1 -1
- package/dist/cdn/{RSII6PTR.js → CZKZMSFJ.js} +1 -1
- package/dist/cdn/{B6EROAY4.js → D66GTKJ7.js} +1 -1
- package/dist/cdn/D6XAU7NT.js +2 -0
- package/dist/cdn/DET6MJ7X.js +2 -0
- package/dist/cdn/{XAP5PIZ2.js → DH2G4KHH.js} +1 -1
- package/dist/cdn/{RY665VHB.js → DJGQM3EK.js} +1 -1
- package/dist/cdn/DUYJILM6.js +2 -0
- package/dist/cdn/DVS6MZT5.js +2 -0
- package/dist/cdn/E6ZQGTYB.js +2 -0
- package/dist/cdn/FKJRQZAC.js +2 -0
- package/dist/cdn/FNP7YROZ.js +2 -0
- package/dist/cdn/{WDUFLQ32.js → FOHR4IFG.js} +1 -1
- package/dist/cdn/FP2GSJQA.js +2 -0
- package/dist/cdn/GD5JTE7A.js +2 -0
- package/dist/cdn/{OXNMXLJF.js → GOVIUHKT.js} +1 -1
- package/dist/cdn/GTLHXKAJ.js +2 -0
- package/dist/cdn/{KK445MLC.js → GU6VG5TK.js} +1 -1
- package/dist/cdn/{P3D2YICV.js → H44RQIWN.js} +1 -1
- package/dist/cdn/H4SA3N6O.js +2 -0
- package/dist/cdn/HB4SJQ4W.js +2 -0
- package/dist/cdn/{GE5JXYB2.js → HBCVYIHS.js} +1 -1
- package/dist/cdn/HECZ3OT6.js +4 -0
- package/dist/cdn/HEI543JI.js +2 -0
- package/dist/cdn/HJCXMK5U.js +2 -0
- package/dist/cdn/{MPSFMJZL.js → HJUHYEJT.js} +1 -1
- package/dist/cdn/{UCADTSTO.js → HL6ANDJH.js} +1 -1
- package/dist/cdn/{4USN37PO.js → IDVYAUPY.js} +1 -1
- package/dist/cdn/IOK2V3P4.js +4 -0
- package/dist/cdn/IQRQDZJC.js +2 -0
- package/dist/cdn/{KBGVSXMS.js → IQSNWDU6.js} +1 -1
- package/dist/cdn/IUUDE4X5.js +2 -0
- package/dist/cdn/J4V3WB5U.js +2 -0
- package/dist/cdn/{ZAXERTST.js → J5HLHOFF.js} +1 -1
- package/dist/cdn/{Z4MPWA44.js → JANDMZGE.js} +1 -1
- package/dist/cdn/{SLZVSMMS.js → JE32QM44.js} +1 -1
- package/dist/cdn/{GYILUQLN.js → JETTF7E2.js} +1 -1
- package/dist/cdn/JGXLPTT7.js +2 -0
- package/dist/cdn/JIT5WKEB.js +2 -0
- package/dist/cdn/{3B2AC6Y3.js → JSOFN65T.js} +1 -1
- package/dist/cdn/{PME6JKVL.js → JWZGF724.js} +1 -1
- package/dist/cdn/JXF3DDAB.js +2 -0
- package/dist/cdn/{ZHWH7DPA.js → KMZIRJIR.js} +1 -1
- package/dist/cdn/{VTUFKWMW.js → KQ36C2RK.js} +1 -1
- package/dist/cdn/KZ6LW4NP.js +2 -0
- package/dist/cdn/LRTY76E6.js +2 -0
- package/dist/cdn/{QNK2HVPS.js → LXGEIC5F.js} +1 -1
- package/dist/cdn/LZPKYDMH.js +2 -0
- package/dist/cdn/{6WVZUW3A.js → M4AD4UJU.js} +1 -1
- package/dist/cdn/{PIGINE4M.js → M7MSRLEE.js} +1 -1
- package/dist/cdn/MSKHAI5B.js +2 -0
- package/dist/cdn/NF3BLC5K.js +2 -0
- package/dist/cdn/NK2I335H.js +2 -0
- package/dist/cdn/{S6FQN6HR.js → NUH2GAPZ.js} +1 -1
- package/dist/cdn/NX3KK4IQ.js +2 -0
- package/dist/cdn/O7O57T65.js +2 -0
- package/dist/cdn/OM6QKWFE.js +2 -0
- package/dist/cdn/OMJYE2MJ.js +2 -0
- package/dist/cdn/{T4YC5GXW.js → OU7UWTYV.js} +1 -1
- package/dist/cdn/{ICCD23OE.js → OWEVDN6C.js} +1 -1
- package/dist/cdn/{YPTG2SNF.js → PSKIJ3SM.js} +1 -1
- package/dist/cdn/{EYSSZWSX.js → Q3P2IG23.js} +1 -1
- package/dist/cdn/Q43ORQKU.js +2 -0
- package/dist/cdn/QBHNXPDC.js +2 -0
- package/dist/cdn/{2CNCTLOI.js → QCFAV626.js} +1 -1
- package/dist/cdn/QITW2GVD.js +2 -0
- package/dist/cdn/{4BAPCH7E.js → QMBHZ5JE.js} +1 -1
- package/dist/cdn/QNEORRGV.js +2 -0
- package/dist/cdn/QUVP5IS5.js +2 -0
- package/dist/cdn/{5LR2NVD4.js → QXY7MRR7.js} +1 -1
- package/dist/cdn/QYD2FVPD.js +2 -0
- package/dist/cdn/R2THCQP5.js +2 -0
- package/dist/cdn/R445444W.js +2 -0
- package/dist/cdn/RE3I2Z2X.js +2 -0
- package/dist/cdn/ROVVD6IW.js +2 -0
- package/dist/cdn/SBCL24E4.js +2 -0
- package/dist/cdn/SDPOEKHS.js +2 -0
- package/dist/cdn/SNIJO2GO.js +2 -0
- package/dist/cdn/SWEUOZRA.js +2 -0
- package/dist/cdn/{L3CL4LCS.js → SWHSL245.js} +1 -1
- package/dist/cdn/SX66PI5D.js +2 -0
- package/dist/cdn/{HN7A4IOJ.js → T7LKXFIZ.js} +1 -1
- package/dist/cdn/TDD6C2FX.js +2 -0
- package/dist/cdn/TRJRLHIN.js +2 -0
- package/dist/cdn/{FGJPWWIL.js → TTW6WNUD.js} +1 -1
- package/dist/cdn/TUIIWKKJ.js +2 -0
- package/dist/cdn/{ZH7H3YEB.js → U2JCCPS7.js} +27 -27
- package/dist/cdn/{TIKPLOJF.js → U6Y4QVXC.js} +1 -1
- package/dist/cdn/UNFDJW5A.js +2 -0
- package/dist/cdn/UYGZNX3E.js +2 -0
- package/dist/cdn/V3U7CLL3.js +2 -0
- package/dist/cdn/VGOKYLOA.js +2 -0
- package/dist/cdn/{INYMF2BQ.js → VKMVMHTT.js} +1 -1
- package/dist/cdn/VSYGSI4Q.js +2 -0
- package/dist/cdn/W6ND5MS4.js +2 -0
- package/dist/cdn/WCQX5APN.js +2 -0
- package/dist/cdn/WPAN7ZED.js +2 -0
- package/dist/cdn/XGBIB7YB.js +4 -0
- package/dist/cdn/XOXPFTIJ.js +2 -0
- package/dist/cdn/{ADIHYDO7.js → XQTLPFTW.js} +1 -1
- package/dist/cdn/XSZAO4QH.js +2 -0
- package/dist/cdn/{OZSHGMU6.js → Y6URECIF.js} +1 -1
- package/dist/cdn/YZJKK62F.js +2 -0
- package/dist/cdn/{BXQLCRCF.js → Z5DYKSTK.js} +1 -1
- package/dist/cdn/ZCH46ONB.js +2 -0
- package/dist/cdn/{DGDPNLJ6.js → ZDG7DMVN.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +7 -0
- package/dist/chunks/action-bar-utils.js +18 -20
- package/dist/chunks/axis-lines-symbol.js +6 -6
- package/dist/chunks/bar-chart-model.js +6 -8
- package/dist/chunks/box-plot-data.js +164 -163
- package/dist/chunks/box-plot-model.js +40 -38
- package/dist/chunks/chart-model.js +37 -39
- package/dist/chunks/chart-ui-utils.js +45 -47
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +11 -11
- package/dist/chunks/combo-bar-line-chart-model.js +15 -16
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +1 -1
- package/dist/chunks/data.js +52 -54
- package/dist/chunks/gauge-model.js +64 -64
- package/dist/chunks/generate-x-axis-title.js +19 -19
- package/dist/chunks/heat-chart-model.js +13 -14
- package/dist/chunks/histogram-data.js +47 -48
- package/dist/chunks/histogram-model.js +2 -2
- package/dist/chunks/index.js +5422 -4250
- package/dist/chunks/index2.js +1165 -871
- package/dist/chunks/index3.js +11040 -1173
- package/dist/chunks/index4.js +65 -11086
- package/dist/chunks/line-chart-model.js +17 -18
- package/dist/chunks/model-setter.js +6 -6
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +25 -25
- package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
- package/dist/chunks/pie-chart-data.js +25 -27
- package/dist/chunks/pie-chart-model.js +26 -25
- package/dist/chunks/radar-chart-model.js +6 -7
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +2 -2
- package/dist/chunks/scatterplot-model.js +20 -22
- package/dist/chunks/serial-chart-data.js +513 -513
- package/dist/chunks/serial-chart-model.js +61 -58
- package/dist/chunks/series-length.js +4 -4
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +109 -55
- package/dist/chunks/utils.js +146 -212
- package/dist/chunks/web-component-utils.js +55 -56
- package/dist/chunks/x-bounds.js +20 -21
- package/dist/components/arcgis-chart/customElement.d.ts +175 -46
- package/dist/components/arcgis-chart/customElement.js +8334 -8106
- package/dist/components/arcgis-charts-action-bar/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +63 -58
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +51 -45
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +114 -112
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +52 -46
- package/dist/components/arcgis-charts-config-box-plot-series-popover/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 +189 -184
- package/dist/components/arcgis-charts-config-font-style/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-format/customElement.js +37 -38
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +14 -15
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +32 -33
- package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -3
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +2 -3
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +23 -24
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +38 -33
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +21 -22
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +9 -10
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +20 -24
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +79 -79
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +21 -25
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +20 -21
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -4
- 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.js +322 -322
- package/dist/loader.js +3 -3
- package/dist/model/box-plot-model/box-plot-model.d.ts +6 -2
- package/dist/model/mixins/model-with-multi-axes.d.ts +29 -1
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +6 -2
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +6 -2
- 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 +1 -1
- package/dist/utils/chart-config/converter/index.js +79 -81
- package/dist/utils/chart-config/utils/index.d.ts +10 -3
- package/dist/utils/components/interfaces.d.ts +7 -0
- package/dist/utils/data/categorical-data/index.d.ts +1 -0
- package/dist/utils/misc/index.d.ts +4 -4
- package/package.json +7 -7
- package/dist/cdn/26JXKZ7A.js +0 -2
- package/dist/cdn/3DUAM7RK.js +0 -2
- package/dist/cdn/3PZWFW3T.js +0 -2
- package/dist/cdn/3W5KLNGL.js +0 -2
- package/dist/cdn/3YK3KIWI.js +0 -2
- package/dist/cdn/44I6NO6U.js +0 -2
- package/dist/cdn/4DZ3REFU.js +0 -2
- package/dist/cdn/4VNZG2VT.js +0 -2
- package/dist/cdn/53HMTYWA.js +0 -2
- package/dist/cdn/5OCPLZJD.js +0 -2
- package/dist/cdn/5UUI3TOG.js +0 -2
- package/dist/cdn/6TBNJO5J.js +0 -2
- package/dist/cdn/7GM6BQNN.js +0 -2
- package/dist/cdn/7TDWD3GC.js +0 -2
- package/dist/cdn/A33LL5AD.js +0 -2
- package/dist/cdn/AA6Q62S5.js +0 -2
- package/dist/cdn/AGGIZ74B.js +0 -2
- package/dist/cdn/AWKRU62U.js +0 -2
- package/dist/cdn/B6APNE72.js +0 -3
- package/dist/cdn/CCGAVRQQ.js +0 -2
- package/dist/cdn/CFMPJGNL.js +0 -2
- package/dist/cdn/D5WZ4UJC.js +0 -2
- package/dist/cdn/D66KCKCQ.js +0 -2
- package/dist/cdn/DSZIXRAL.js +0 -2
- package/dist/cdn/EPTOURLO.js +0 -2
- package/dist/cdn/EV5FQPUN.js +0 -2
- package/dist/cdn/FBUROOQZ.js +0 -2
- package/dist/cdn/FRFFG6VJ.js +0 -2
- package/dist/cdn/G3PLPDEP.js +0 -2
- package/dist/cdn/GD6OHLIR.js +0 -2
- package/dist/cdn/GSCC3FON.js +0 -2
- package/dist/cdn/HZQLPN4H.js +0 -2
- package/dist/cdn/IEOIKLLK.js +0 -2
- package/dist/cdn/ILEGHIRD.js +0 -2
- package/dist/cdn/IR5IIAYC.js +0 -2
- package/dist/cdn/J2HDKV47.js +0 -2
- package/dist/cdn/J7HDQGZM.js +0 -2
- package/dist/cdn/JI5EYK4Q.js +0 -2
- package/dist/cdn/KKNH7H7Q.js +0 -2
- package/dist/cdn/KQLTJETV.js +0 -2
- package/dist/cdn/KR5D7UAA.js +0 -2
- package/dist/cdn/LQG6JN2P.js +0 -2
- package/dist/cdn/MBMCCOYI.js +0 -2
- package/dist/cdn/MG6D45PY.js +0 -2
- package/dist/cdn/MJFMEOAZ.js +0 -2
- package/dist/cdn/MKG4JBMF.js +0 -2
- package/dist/cdn/MS6S4O2A.js +0 -2
- package/dist/cdn/N4RM5VSS.js +0 -2
- package/dist/cdn/ND72GIXE.js +0 -2
- package/dist/cdn/NOP2A3XL.js +0 -2
- package/dist/cdn/NZGQZZZ2.js +0 -2
- package/dist/cdn/O3P2WLI6.js +0 -2
- package/dist/cdn/OAEWLSKN.js +0 -2
- package/dist/cdn/OJN27UF2.js +0 -2
- package/dist/cdn/OSBZ6SF2.js +0 -2
- package/dist/cdn/OZSOICXE.js +0 -2
- package/dist/cdn/QG7ZBCDQ.js +0 -2
- package/dist/cdn/QZYHN3H3.js +0 -2
- package/dist/cdn/RD2X624K.js +0 -2
- package/dist/cdn/RHAWHDKW.js +0 -2
- package/dist/cdn/S3JZNDJK.js +0 -2
- package/dist/cdn/S7EQRXFW.js +0 -2
- package/dist/cdn/SKI5Z6UH.js +0 -2
- package/dist/cdn/SN4U2TYE.js +0 -2
- package/dist/cdn/SQOCBFAR.js +0 -2
- package/dist/cdn/STZNZAAW.js +0 -3
- package/dist/cdn/TCK5ZVBJ.js +0 -2
- package/dist/cdn/U6KRV4RA.js +0 -2
- package/dist/cdn/UD7VIM4I.js +0 -2
- package/dist/cdn/UQS25TZX.js +0 -2
- package/dist/cdn/UZRN5642.js +0 -2
- package/dist/cdn/VBYDJXIO.js +0 -2
- package/dist/cdn/W4LSI4AL.js +0 -2
- package/dist/cdn/W5DI7RYL.js +0 -2
- package/dist/cdn/WCM6N6ME.js +0 -2
- package/dist/cdn/WCONWQ4A.js +0 -2
- package/dist/cdn/WHUP2W37.js +0 -2
- package/dist/cdn/WMISD5B2.js +0 -4
- package/dist/cdn/XUY3ZVKB.js +0 -2
- package/dist/cdn/YDODEM4F.js +0 -2
- package/dist/cdn/YF6ML4P6.js +0 -4
- package/dist/cdn/YW3BJIXP.js +0 -2
- package/dist/cdn/YYOQY7YY.js +0 -2
- package/dist/chunks/index5.js +0 -69
- package/dist/chunks/type-guards2.js +0 -113
- package/dist/chunks/utils2.js +0 -63
- /package/dist/cdn/{OTV3YYDU.js → 7JMZPDM5.js} +0 -0
- /package/dist/cdn/{O6GVF76X.js → KRRYFLG4.js} +0 -0
- /package/dist/cdn/{27C6PCQ2.js → XXO5K6N4.js} +0 -0
|
@@ -3,73 +3,79 @@ import { c as x } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed as P } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as T } from "lit/directives/repeat.js";
|
|
5
5
|
import { u as L } from "../../chunks/useT9n.js";
|
|
6
|
-
import { css as
|
|
7
|
-
import { LitElement as
|
|
6
|
+
import { css as N, html as a } from "lit";
|
|
7
|
+
import { LitElement as M, createEvent as O, renderElement as C, safeStyleMap as h, safeClassMap as r } from "@arcgis/lumina";
|
|
8
8
|
import { a as _ } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import {
|
|
10
|
-
import { r as
|
|
11
|
-
import { c as n, d as
|
|
12
|
-
import { ar as m } from "../../chunks/index.js";
|
|
9
|
+
import { aH as g, x as E, C as v } from "../../chunks/index.js";
|
|
10
|
+
import { r as S } from "../../chunks/popover-ui-utils.js";
|
|
11
|
+
import { c as n, d as f } from "../../chunks/chart-object-literals.js";
|
|
13
12
|
const w = {
|
|
14
13
|
stackedType: "stacked-type"
|
|
15
|
-
},
|
|
14
|
+
}, l = {
|
|
16
15
|
topSection: "top-section",
|
|
17
16
|
sectionLabel: "section-label",
|
|
18
17
|
list: "list",
|
|
19
18
|
disabledInfo: "disabled-info",
|
|
20
19
|
disabledStackingOption: "disabled-stacking-option"
|
|
21
|
-
}, D =
|
|
22
|
-
class z extends
|
|
20
|
+
}, D = N`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.disabled-info{margin:auto 1rem;pointer-events:auto}.disabled-info:active{margin:auto 1rem;pointer-events:none}.disabled-stacking-option{pointer-events:none;opacity:var(--calcite-opacity-disabled)}`;
|
|
21
|
+
class z extends M {
|
|
23
22
|
constructor() {
|
|
24
23
|
super(...arguments), this._messages = L(), this.open = !1, this.seriesNameChange = (e) => {
|
|
25
24
|
if (e.detail !== null && e.detail !== void 0) {
|
|
26
25
|
const t = e.detail.name;
|
|
27
26
|
if (this.isNullCategorySelected) {
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
const
|
|
31
|
-
this.model.nullCategory =
|
|
27
|
+
const i = this.model.nullCategory;
|
|
28
|
+
if (i) {
|
|
29
|
+
const s = { ...i, text: t };
|
|
30
|
+
this.model.nullCategory = s;
|
|
32
31
|
}
|
|
33
|
-
} else
|
|
34
|
-
|
|
32
|
+
} else {
|
|
33
|
+
const i = this.selectedSeriesIndex;
|
|
34
|
+
i !== void 0 && i >= 0 && this.model.setSeriesName(t, i);
|
|
35
|
+
}
|
|
35
36
|
}
|
|
36
37
|
}, this.seriesColorChange = (e) => {
|
|
37
38
|
if (e.detail !== null && e.detail !== void 0) {
|
|
38
39
|
const { color: t } = e.detail;
|
|
39
40
|
if (t !== void 0) {
|
|
40
41
|
if (this.isNullCategorySelected) {
|
|
41
|
-
const
|
|
42
|
-
...
|
|
42
|
+
const i = this.model.nullCategory, s = g(i), o = i !== void 0 && s !== void 0 ? {
|
|
43
|
+
...i,
|
|
43
44
|
fillSymbol: {
|
|
44
|
-
...
|
|
45
|
+
...s,
|
|
45
46
|
color: t,
|
|
46
|
-
outline:
|
|
47
|
+
outline: s.outline && { ...s.outline, color: t }
|
|
47
48
|
}
|
|
48
49
|
} : void 0;
|
|
49
|
-
this.model.nullCategory =
|
|
50
|
-
} else
|
|
51
|
-
|
|
50
|
+
this.model.nullCategory = o;
|
|
51
|
+
} else {
|
|
52
|
+
const i = this.selectedSeriesIndex;
|
|
53
|
+
i !== void 0 && i >= 0 && this.model.setSeriesColor(t, i);
|
|
54
|
+
}
|
|
52
55
|
this.model.colorMatch = !1;
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
}, this.seriesPopoverClose = (e) => {
|
|
56
59
|
const { selectedSeriesIndex: t } = e.detail;
|
|
57
|
-
this.selectedSeriesIndex === t && (this.seriesPopover =
|
|
60
|
+
this.selectedSeriesIndex === t && (this.seriesPopover = S(this.seriesPopover), this.selectedSeriesId = void 0);
|
|
58
61
|
}, this.onModelConfigChange = () => {
|
|
59
|
-
this.requestUpdate();
|
|
62
|
+
this.selectedSeriesId !== void 0 && !this.isNullCategorySelected && this.selectedSeriesIndex === -1 ? (this.removeSeriesPopover(), this.selectedSeriesId = void 0) : this.seriesPopover && (this.seriesPopover.selectedSeriesIndex = this.selectedSeriesIndex), this.requestUpdate();
|
|
60
63
|
}, this.seriesOrderResetCounter = 0, this.activeColorMatch = !1, this.popoverPlacement = "leading", this.arcgisChartsConfigDataChangeError = O();
|
|
61
64
|
}
|
|
62
65
|
static {
|
|
63
|
-
this.properties = { seriesOrderResetCounter: 16,
|
|
66
|
+
this.properties = { seriesOrderResetCounter: 16, selectedSeriesId: 16, messageOverrides: 0, model: 0, activeColorMatch: 5, popoverPlacement: 1 };
|
|
64
67
|
}
|
|
65
68
|
static {
|
|
66
69
|
this.styles = D;
|
|
67
70
|
}
|
|
71
|
+
get selectedSeriesIndex() {
|
|
72
|
+
return this.selectedSeriesId === void 0 ? void 0 : this.model.getSeriesIndex(this.selectedSeriesId);
|
|
73
|
+
}
|
|
68
74
|
load() {
|
|
69
75
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
70
76
|
}
|
|
71
77
|
willUpdate(e) {
|
|
72
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("
|
|
78
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("selectedSeriesId") && this.selectedSeriesChange();
|
|
73
79
|
}
|
|
74
80
|
disconnectedCallback() {
|
|
75
81
|
super.disconnectedCallback(), this.removeSeriesPopover(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -78,37 +84,37 @@ class z extends N {
|
|
|
78
84
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
79
85
|
}
|
|
80
86
|
removeSeriesPopover() {
|
|
81
|
-
this.seriesPopover !== null && this.seriesPopover !== void 0 && (this.seriesPopover.open = !1, this.seriesPopover =
|
|
87
|
+
this.seriesPopover !== null && this.seriesPopover !== void 0 && (this.seriesPopover.open = !1, this.seriesPopover = S(this.seriesPopover));
|
|
82
88
|
}
|
|
83
|
-
|
|
89
|
+
selectedSeriesChange() {
|
|
84
90
|
this.selectedSeriesIndex !== void 0 && (this.seriesPopover = C(a`<arcgis-charts-config-bar-chart-series-popover .referenceElement=${this.el} .selectedName=${this.selectedSeriesIndex != null ? this.model.getSeriesName(this.selectedSeriesIndex) : void 0} .selectedColor=${this.selectedSeriesIndex != null ? this.model.getSeriesColor(this.selectedSeriesIndex) : void 0} .placement=${this.popoverPlacement} .selectedSeriesIndex=${this.selectedSeriesIndex != null ? this.selectedSeriesIndex : void 0} .nullCategory=${this.isNullCategorySelected ? this.model.nullCategory : void 0} .open=${this.open} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-bar-chart-series-popover>`), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover));
|
|
85
91
|
}
|
|
86
92
|
buildSeriesListItems() {
|
|
87
|
-
const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (
|
|
88
|
-
return T(t, (
|
|
89
|
-
const
|
|
93
|
+
const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (s, o) => o);
|
|
94
|
+
return T(t, (s) => this.model.getSeriesId(s), (s) => {
|
|
95
|
+
const o = this.model.getSeriesId(s), c = this.model.getSeriesColor(s), d = this.model.getSeriesName(s), b = this.model.chartSubType === E.BarAndLineFromFields ? this._messages.series : o;
|
|
90
96
|
let p = "#CCCCCC", u = "minus-square";
|
|
91
97
|
if ((e > 1 || !this.activeColorMatch) && c !== void 0) {
|
|
92
98
|
u = "square-f";
|
|
93
99
|
const [y, $, I, k] = [...c];
|
|
94
100
|
p = `rgba(${y},${$},${I},${k / 255})`;
|
|
95
101
|
}
|
|
96
|
-
return a`<calcite-list-item .label=${d ??
|
|
102
|
+
return a`<calcite-list-item .label=${d ?? o ?? ""} .description=${b} .value=${o} .selected=${this.selectedSeriesId === o} @click=${this.openSeriesPopOver}><calcite-icon .icon=${u} style=${h({ color: p })} slot=content-end></calcite-icon></calcite-list-item>`;
|
|
97
103
|
});
|
|
98
104
|
}
|
|
99
105
|
buildSeriesList() {
|
|
100
|
-
return P(this.seriesOrderResetCounter, a`<calcite-list label class=${r(
|
|
106
|
+
return P(this.seriesOrderResetCounter, a`<calcite-list label class=${r(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
|
|
101
107
|
}
|
|
102
108
|
buildNullCategoryUI() {
|
|
103
|
-
const e = this.model.nullCategory, t = this._messages.nullCategory,
|
|
104
|
-
return a`<calcite-list label class=${r(
|
|
109
|
+
const e = this.model.nullCategory, t = this._messages.nullCategory, i = g(e)?.color ?? g(v.nullCategory)?.color ?? v.grayColor, [s, o, c, d] = [...i], m = `rgba(${s},${o},${c},${d / 255})`;
|
|
110
|
+
return a`<calcite-list label class=${r(l.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesId !== void 0 && this.isNullCategorySelected} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${h({ color: m })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
105
111
|
}
|
|
106
112
|
buildMultipleBarTypeList() {
|
|
107
113
|
const e = this.shouldDisableStacking();
|
|
108
|
-
return e && this.model.stackedType !== n.Side && (this.model.stackedType = n.Side), a`<calcite-list label id=${w.stackedType} class=${r(
|
|
114
|
+
return e && this.model.stackedType !== n.Side && (this.model.stackedType = n.Side), a`<calcite-list label id=${w.stackedType} class=${r(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleBarSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${n.Side} .selected=${this.model.stackedType === void 0 || this.model.stackedType === n.Side}><calcite-icon scale=l icon=graph-bar-side-by-side slot=content-start></calcite-icon></calcite-list-item><calcite-list-item class=${r(e ? l.disabledStackingOption : "")} .label=${this._messages.stacked} .value=${n.Stacked} .selected=${this.model.stackedType === n.Stacked}><calcite-icon scale=l icon=graph-bar-stacked slot=content-start></calcite-icon>${e && a`<calcite-icon class=${r(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>` || ""}</calcite-list-item><calcite-list-item class=${r(e ? l.disabledStackingOption : "")} .label=${this._messages.stacked100} .value=${n.Stacked100} .selected=${this.model.stackedType === n.Stacked100}><calcite-icon scale=l icon=graph-bar100-stacked slot=content-start></calcite-icon>${e && a`<calcite-icon class=${r(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>` || ""}</calcite-list-item></calcite-list>`;
|
|
109
115
|
}
|
|
110
116
|
resetSeriesOriginal() {
|
|
111
|
-
this.
|
|
117
|
+
this.selectedSeriesId = void 0, this.model.resetSeriesStyling(), this.seriesOrderResetCounter += 1;
|
|
112
118
|
}
|
|
113
119
|
onMultipleBarSelect(e) {
|
|
114
120
|
if (!this.shouldDisableStacking()) {
|
|
@@ -118,27 +124,27 @@ class z extends N {
|
|
|
118
124
|
}
|
|
119
125
|
onCalciteListOrderChange(e) {
|
|
120
126
|
if (e.detail !== null && e.detail !== void 0) {
|
|
121
|
-
const { newIndex: t, oldIndex:
|
|
122
|
-
this.model.moveSeries(
|
|
127
|
+
const { newIndex: t, oldIndex: i } = e.detail;
|
|
128
|
+
this.model.moveSeries(i ?? 0, t ?? i ?? 0), this.seriesOrderResetCounter += 1;
|
|
123
129
|
}
|
|
124
130
|
}
|
|
125
131
|
openSeriesPopOver(e) {
|
|
126
132
|
e.stopImmediatePropagation(), this.removeSeriesPopover();
|
|
127
|
-
const t = e.target,
|
|
128
|
-
this.
|
|
133
|
+
const t = e.target, i = t.localName === "calcite-list-item" ? t : t.parentNode;
|
|
134
|
+
this.isNullCategorySelected = i.value === this._messages.nullCategory, this.open = this.selectedSeriesId !== i.value, this.selectedSeriesId = this.open ? i.value : void 0;
|
|
129
135
|
}
|
|
130
136
|
createTooltip(e) {
|
|
131
|
-
const t = e.target,
|
|
132
|
-
this.tooltip = C(a`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${
|
|
137
|
+
const t = e.target, i = (this.model.aggregationType === f.NoAggregation ? this._messages.noAggStackingDisabled : this._messages.singleStackingDisabled) ?? "";
|
|
138
|
+
this.tooltip = C(a`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
133
139
|
}
|
|
134
140
|
destroyTooltip() {
|
|
135
141
|
_(this.tooltip);
|
|
136
142
|
}
|
|
137
143
|
shouldDisableStacking() {
|
|
138
|
-
return (this.model.seriesLength ?? 0) <= 1 || this.model.aggregationType ===
|
|
144
|
+
return (this.model.seriesLength ?? 0) <= 1 || this.model.aggregationType === f.NoAggregation;
|
|
139
145
|
}
|
|
140
146
|
render() {
|
|
141
|
-
return a`<div class=${`${
|
|
147
|
+
return a`<div class=${`${l.sectionLabel} ${l.topSection}`}>${this._messages.displayMultiSeries}</div>${this.buildMultipleBarTypeList()}<div class=${r(l.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}${this.model.nullCategory !== void 0 && this.model.fetchNULLValues ? this.buildNullCategoryUI() : null}`;
|
|
142
148
|
}
|
|
143
149
|
}
|
|
144
150
|
x("arcgis-charts-config-bar-chart-series", z);
|
|
@@ -5,8 +5,8 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
5
5
|
import { createRef as d, ref as g } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement as C, createEvent as s, safeClassMap as l } from "@arcgis/lumina";
|
|
7
7
|
import { e as v } from "../../chunks/popover-ui-utils.js";
|
|
8
|
-
import { r as f } from "../../chunks/
|
|
9
|
-
import {
|
|
8
|
+
import { r as f } from "../../chunks/index2.js";
|
|
9
|
+
import { aH as u } from "../../chunks/index.js";
|
|
10
10
|
const n = {
|
|
11
11
|
panelChildrenContainer: "panel-children-container"
|
|
12
12
|
}, y = p`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}`;
|
|
@@ -4,7 +4,7 @@ import { LitElement as n } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as c, html as t } from "lit";
|
|
5
5
|
import { isEqual as l } from "es-toolkit/compat";
|
|
6
6
|
import { C as a } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { ca as d, cb as h, v as f } from "../../chunks/index.js";
|
|
8
8
|
const g = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends n {
|
|
10
10
|
constructor() {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as b } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
4
|
-
import { isEqual as
|
|
5
|
-
import { repeat as
|
|
6
|
-
import { b as
|
|
7
|
-
import { d as
|
|
8
|
-
import { b as
|
|
4
|
+
import { isEqual as y } from "es-toolkit/compat";
|
|
5
|
+
import { repeat as S } from "lit/directives/repeat.js";
|
|
6
|
+
import { b as a, a as c } from "../../chunks/interfaces.js";
|
|
7
|
+
import { d as v, a as $ } from "../../chunks/store.js";
|
|
8
|
+
import { b as g } from "../../chunks/chart-ui-utils.js";
|
|
9
9
|
import { u as F } from "../../chunks/useT9n.js";
|
|
10
|
-
import { css as x, nothing as I, html as
|
|
11
|
-
import { createRef as
|
|
12
|
-
import { LitElement as B, createEvent as
|
|
13
|
-
import { x as
|
|
14
|
-
import { B as
|
|
15
|
-
import { l as u } from "../../chunks/
|
|
16
|
-
import {
|
|
17
|
-
import { r as
|
|
10
|
+
import { css as x, nothing as I, html as l } from "lit";
|
|
11
|
+
import { createRef as d, ref as m } from "lit/directives/ref.js";
|
|
12
|
+
import { LitElement as B, createEvent as w, safeClassMap as o, renderElement as L } from "@arcgis/lumina";
|
|
13
|
+
import { x as P } from "../../chunks/data.js";
|
|
14
|
+
import { B as h } from "../../chunks/common.js";
|
|
15
|
+
import { l as u } from "../../chunks/index2.js";
|
|
16
|
+
import { c7 as O, B as p } from "../../chunks/index.js";
|
|
17
|
+
import { r as C } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { a as k } from "../../chunks/chart-object-literals.js";
|
|
19
19
|
const r = {
|
|
20
20
|
label: "label",
|
|
@@ -23,44 +23,45 @@ const r = {
|
|
|
23
23
|
dimText: "dim-text",
|
|
24
24
|
list: "list",
|
|
25
25
|
customSortButtons: "custom-sort-buttons"
|
|
26
|
-
}, D = x`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`;
|
|
26
|
+
}, D = x`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.fab>calcite-button{--calcite-button-shadow: var(--calcite-shadow-md)}.fab span{white-space:normal;overflow-wrap:anywhere}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`;
|
|
27
27
|
class E extends B {
|
|
28
28
|
constructor() {
|
|
29
|
-
super(...arguments), this._messages = F(), this.boxPlotPopover = null, this.categoryElement =
|
|
29
|
+
super(...arguments), this._messages = F(), this.boxPlotPopover = null, this.categoryElement = d(), this.numericFieldsElement = d(), this.splitByFieldElement = d(), this.sortOrderElement = d(), this.originalCustomSortLabels = [], this.isCustomSortDisabled = !1, this.onModelConfigChange = () => {
|
|
30
30
|
this.requestUpdate();
|
|
31
|
-
}, this.
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
}, this.onModelDataChange = async () => {
|
|
32
|
+
if (this.model.getDataSortOrder() === h.customSort) {
|
|
33
|
+
const e = await this.updateCustomSortProps();
|
|
34
|
+
this.model.orderByList = e, this.sortOrderResetCounter += 1;
|
|
35
|
+
} else
|
|
36
|
+
await this.updateCustomSortDisabled();
|
|
37
|
+
this.requestUpdate();
|
|
38
|
+
}, this.popoverClose = (e) => {
|
|
39
|
+
this.boxPlotPopover === e?.target && (this.boxPlotPopover = C(this.boxPlotPopover));
|
|
40
|
+
}, this.onBoxPlotDataChange = async (e) => {
|
|
34
41
|
try {
|
|
35
|
-
if (
|
|
36
|
-
const { contentKind:
|
|
37
|
-
switch (
|
|
38
|
-
case
|
|
42
|
+
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
43
|
+
const { contentKind: t } = e.detail, s = [...e.detail.value];
|
|
44
|
+
switch (v($), t) {
|
|
45
|
+
case a.category: {
|
|
39
46
|
const i = s[0]?.trim() || u;
|
|
40
|
-
|
|
41
|
-
const n = await this.updateCustomSortProps();
|
|
42
|
-
this.model.orderByList = n, this.sortOrderResetCounter += 1;
|
|
43
|
-
}
|
|
47
|
+
this.model.category = i;
|
|
44
48
|
break;
|
|
45
49
|
}
|
|
46
|
-
case
|
|
50
|
+
case a.numericFields: {
|
|
47
51
|
this.model.numericFields = s;
|
|
48
52
|
const i = s.length > 1;
|
|
49
|
-
|
|
50
|
-
const n = await this.updateCustomSortProps();
|
|
51
|
-
this.model.orderByList = n, this.sortOrderResetCounter += 1;
|
|
52
|
-
}
|
|
53
|
+
this.model.standardizeValues = i;
|
|
53
54
|
break;
|
|
54
55
|
}
|
|
55
|
-
case
|
|
56
|
+
case a.splitByField: {
|
|
56
57
|
const i = s[0]?.trim() || "";
|
|
57
58
|
this.model.splitByField = i;
|
|
58
59
|
break;
|
|
59
60
|
}
|
|
60
|
-
case
|
|
61
|
+
case a.sortOrder:
|
|
61
62
|
{
|
|
62
63
|
const i = s[0];
|
|
63
|
-
if (i ===
|
|
64
|
+
if (i === h.customSort) {
|
|
64
65
|
const n = await this.updateCustomSortProps();
|
|
65
66
|
this.model.setDataSortOrder(i, n);
|
|
66
67
|
} else
|
|
@@ -72,11 +73,11 @@ class E extends B {
|
|
|
72
73
|
break;
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
|
-
} catch (
|
|
76
|
-
throw
|
|
76
|
+
} catch (t) {
|
|
77
|
+
throw t instanceof Error && this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
77
78
|
}
|
|
78
79
|
this.requestUpdate();
|
|
79
|
-
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError =
|
|
80
|
+
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = w();
|
|
80
81
|
}
|
|
81
82
|
static {
|
|
82
83
|
this.properties = { selectedCustomSortItemId: 16, sortOrderResetCounter: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0 };
|
|
@@ -85,134 +86,135 @@ class E extends B {
|
|
|
85
86
|
this.styles = D;
|
|
86
87
|
}
|
|
87
88
|
load() {
|
|
88
|
-
this.modelChange(this.model), this.onModelConfigChange(), this.
|
|
89
|
+
this.modelChange(this.model), this.onModelConfigChange(), this.updateCustomSortProps();
|
|
89
90
|
}
|
|
90
|
-
willUpdate(
|
|
91
|
-
|
|
91
|
+
willUpdate(e) {
|
|
92
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), this.disableSplitBy = this.model.numericFields.length === 0 || this.model.numericFields.length > 1 && this.model.category !== u;
|
|
92
93
|
}
|
|
93
94
|
disconnectedCallback() {
|
|
94
|
-
super.disconnectedCallback(), this.boxPlotPopover =
|
|
95
|
+
super.disconnectedCallback(), this.boxPlotPopover = C(this.boxPlotPopover), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), this.model.removeEventListener("arcgisChartsModelDataChange", this.onModelDataChange);
|
|
95
96
|
}
|
|
96
|
-
modelChange(
|
|
97
|
-
|
|
97
|
+
modelChange(e, t) {
|
|
98
|
+
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), t?.removeEventListener("arcgisChartsModelDataChange", this.onModelDataChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelDataChange", this.onModelDataChange);
|
|
98
99
|
}
|
|
99
|
-
onCalciteListOrderChange(
|
|
100
|
-
if (
|
|
101
|
-
const { newIndex:
|
|
102
|
-
this.model.moveCustomSortValuesInOrderByList(s ?? 0,
|
|
100
|
+
onCalciteListOrderChange(e) {
|
|
101
|
+
if (e.detail !== null && e.detail !== void 0) {
|
|
102
|
+
const { newIndex: t, oldIndex: s } = e.detail;
|
|
103
|
+
this.model.moveCustomSortValuesInOrderByList(s ?? 0, t ?? s ?? 0);
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
|
-
onCustomSortItemSelected(
|
|
106
|
-
const { id:
|
|
107
|
-
this.selectedCustomSortItemId = this.selectedCustomSortItemId ===
|
|
106
|
+
onCustomSortItemSelected(e) {
|
|
107
|
+
const { id: t } = e.target;
|
|
108
|
+
this.selectedCustomSortItemId = this.selectedCustomSortItemId === t ? "" : t;
|
|
108
109
|
}
|
|
109
|
-
onCustomSortListClick(
|
|
110
|
-
|
|
110
|
+
onCustomSortListClick(e) {
|
|
111
|
+
e.preventDefault();
|
|
111
112
|
}
|
|
112
|
-
onCustomSortItemMoved(
|
|
113
|
-
const { id:
|
|
113
|
+
onCustomSortItemMoved(e) {
|
|
114
|
+
const { id: t } = e.target;
|
|
114
115
|
let s = this.model.orderByList.length;
|
|
115
116
|
const i = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
116
|
-
|
|
117
|
+
t === c.Up ? s = i - 1 : t === c.Down && (s = i + 1), i >= 0 && s >= 0 && s < this.model.orderByList.length && this.model.moveCustomSortValuesInOrderByList(i, s);
|
|
117
118
|
}
|
|
118
119
|
buildCustomSortListItems() {
|
|
119
|
-
return
|
|
120
|
-
const s =
|
|
121
|
-
return
|
|
120
|
+
return S(this.model.orderByList, (t) => t, (t) => {
|
|
121
|
+
const s = O(this.layerFieldsInfo, t);
|
|
122
|
+
return l`<calcite-list-item id=${t ?? I} .label=${t ?? ""} .description=${s} .value=${t} .selected=${this.selectedCustomSortItemId === t} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`;
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
125
|
buildCustomSortList() {
|
|
125
|
-
return f(this.sortOrderResetCounter,
|
|
126
|
+
return f(this.sortOrderResetCounter, l`<calcite-list label class=${o(r.list)} drag-enabled selection-mode=single selection-appearance=border @click=${this.onCustomSortListClick} @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`);
|
|
126
127
|
}
|
|
127
|
-
buildNumericFieldItem(
|
|
128
|
-
return f(
|
|
128
|
+
buildNumericFieldItem(e) {
|
|
129
|
+
return f(e, l`<calcite-list-item .label=${p(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
129
130
|
}
|
|
130
|
-
onCategorySelect(
|
|
131
|
-
this.categoryElement.value && !this.categoryElement.value.disabled && (this.contentKind =
|
|
131
|
+
onCategorySelect(e) {
|
|
132
|
+
this.categoryElement.value && !this.categoryElement.value.disabled && (this.contentKind = a.category, this.setupPopover(e));
|
|
132
133
|
}
|
|
133
|
-
async onRemoveNumericField(
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
const s = await this.updateCustomSortProps();
|
|
137
|
-
this.model.orderByList = s, this.sortOrderResetCounter += 1;
|
|
138
|
-
}
|
|
134
|
+
async onRemoveNumericField(e) {
|
|
135
|
+
const t = e.target.value;
|
|
136
|
+
this.model.numericFields = this.model.numericFields.filter((s) => s !== t), this.model.numericFields.length === 0 && this.model.resetConfig();
|
|
139
137
|
}
|
|
140
138
|
async updateCustomSortProps() {
|
|
141
|
-
const
|
|
142
|
-
this.originalCustomSortLabels = [...
|
|
143
|
-
const
|
|
144
|
-
return
|
|
139
|
+
const e = await this.model.getCustomSortValues();
|
|
140
|
+
this.originalCustomSortLabels = [...e];
|
|
141
|
+
const t = e.length > g.customSortLimit;
|
|
142
|
+
return t && (this.sortOrderElement.value && (this.sortOrderElement.value.label = this._messages.xAxisAsc), this.model.setDataSortOrder(h.xAxisAsc)), this.isCustomSortDisabled = t, e;
|
|
143
|
+
}
|
|
144
|
+
async updateCustomSortDisabled() {
|
|
145
|
+
const e = await this.model.getCustomSortValues(g.customSortLimit + 1);
|
|
146
|
+
this.isCustomSortDisabled = e.length > g.customSortLimit;
|
|
145
147
|
}
|
|
146
|
-
onStandardizeValuesChange(
|
|
147
|
-
this.model.standardizeValues =
|
|
148
|
+
onStandardizeValuesChange(e) {
|
|
149
|
+
this.model.standardizeValues = e.target.checked;
|
|
148
150
|
}
|
|
149
|
-
onShowOutliersChange(
|
|
150
|
-
this.model.showOutliers =
|
|
151
|
+
onShowOutliersChange(e) {
|
|
152
|
+
this.model.showOutliers = e.target.checked;
|
|
151
153
|
}
|
|
152
|
-
onSplitBySelect(
|
|
153
|
-
this.splitByFieldElement.value && !this.splitByFieldElement.value.disabled && (this.contentKind =
|
|
154
|
+
onSplitBySelect(e) {
|
|
155
|
+
this.splitByFieldElement.value && !this.splitByFieldElement.value.disabled && (this.contentKind = a.splitByField, this.setupPopover(e));
|
|
154
156
|
}
|
|
155
|
-
onSortOrderSelect(
|
|
156
|
-
this.contentKind =
|
|
157
|
+
onSortOrderSelect(e) {
|
|
158
|
+
this.contentKind = a.sortOrder, this.setupPopover(e);
|
|
157
159
|
}
|
|
158
|
-
setupPopover(
|
|
159
|
-
|
|
160
|
-
let
|
|
160
|
+
setupPopover(e) {
|
|
161
|
+
e.stopImmediatePropagation(), this.boxPlotPopover = C(this.boxPlotPopover);
|
|
162
|
+
let t, s, i, n = !1;
|
|
161
163
|
switch (this.contentKind) {
|
|
162
|
-
case
|
|
163
|
-
|
|
164
|
+
case a.category:
|
|
165
|
+
t = this.categoryElement.value, s = this._messages.categoryHeader, i = this.model.category === u ? "" : this.model.category;
|
|
164
166
|
break;
|
|
165
|
-
case
|
|
166
|
-
|
|
167
|
+
case a.numericFields:
|
|
168
|
+
t = this.numericFieldsElement.value, s = this._messages.numericFieldsHeader, i = this.model.numericFields;
|
|
167
169
|
break;
|
|
168
|
-
case
|
|
169
|
-
|
|
170
|
+
case a.splitByField:
|
|
171
|
+
t = this.splitByFieldElement.value, s = this._messages.splitByFieldHeader, i = this.model.splitByField;
|
|
170
172
|
break;
|
|
171
|
-
case
|
|
172
|
-
|
|
173
|
+
case a.sortOrder:
|
|
174
|
+
t = this.sortOrderElement.value, s = this._messages.selectSortOrder, i = this.model.getDataSortOrder(), n = this.isCustomSortDisabled;
|
|
173
175
|
break;
|
|
174
176
|
}
|
|
175
|
-
this.boxPlotPopover =
|
|
177
|
+
this.boxPlotPopover = L(l`<arcgis-charts-config-box-plot-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} .isCustomSortDisabled=${n} @arcgisChartsConfigBoxPlotDataPopoverChange=${this.onBoxPlotDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-box-plot-popover>`), !document.body.contains(this.boxPlotPopover) && this.boxPlotPopover !== null && document.body.appendChild(this.boxPlotPopover);
|
|
176
178
|
}
|
|
177
|
-
onAddNumericFields(
|
|
178
|
-
this.contentKind =
|
|
179
|
+
onAddNumericFields(e) {
|
|
180
|
+
this.contentKind = a.numericFields, this.setupPopover(e);
|
|
179
181
|
}
|
|
180
182
|
getCorrectedSplitByValue() {
|
|
181
|
-
return this.model.splitByField?.trim() === "" ? "" :
|
|
183
|
+
return this.model.splitByField?.trim() === "" ? "" : p(this.layerFieldsInfo, this.model.splitByField);
|
|
182
184
|
}
|
|
183
185
|
getCorrectedCategoryValue() {
|
|
184
|
-
return
|
|
186
|
+
return P({
|
|
185
187
|
fieldName: this.model.category,
|
|
186
188
|
fieldList: this.layerFieldsInfo
|
|
187
|
-
}) ? "" :
|
|
189
|
+
}) ? "" : p(this.layerFieldsInfo, this.model.category);
|
|
188
190
|
}
|
|
189
191
|
resetToOriginalCustomSortLabels() {
|
|
190
192
|
this.selectedCustomSortItemId = "", this.model.orderByList = [...this.originalCustomSortLabels], this.sortOrderResetCounter += 1;
|
|
191
193
|
}
|
|
192
194
|
renderCustomSortUI() {
|
|
193
|
-
const
|
|
194
|
-
return
|
|
195
|
+
const e = this.model.getDataSortOrder(), t = this.model.getAxisValueFormat(0)?.type, s = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
196
|
+
return t === k.CategoryAxisFormat && e === h.customSort && !this.isCustomSortDisabled ? l`<calcite-label class=${o(r.label)}><div class=${o(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s === 0 || s === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${c.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s === -1 || s === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${c.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${y(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.model.category === u ? this._messages.values : this._messages.category}${this.buildCustomSortList()}</calcite-label>` : null;
|
|
195
197
|
}
|
|
196
|
-
renderNumericFields(
|
|
197
|
-
const
|
|
198
|
-
for (const s of
|
|
199
|
-
|
|
200
|
-
return
|
|
198
|
+
renderNumericFields(e) {
|
|
199
|
+
const t = [];
|
|
200
|
+
for (const s of e)
|
|
201
|
+
t.push(this.buildNumericFieldItem(s));
|
|
202
|
+
return l`<calcite-list label class=${o(r.fieldList)} ${m(this.numericFieldsElement)}>${t}</calcite-list>`;
|
|
201
203
|
}
|
|
202
204
|
renderCategory() {
|
|
203
|
-
const
|
|
204
|
-
return
|
|
205
|
+
const e = this.getCorrectedCategoryValue(), t = this.model.numericFields.length === 0 || (this.model.numericFields ?? []).length > 1 && this.model.splitByField !== "";
|
|
206
|
+
return l`<arcgis-charts-config-field-picker .label=${e} .disabled=${t} @click=${this.onCategorySelect} ${m(this.categoryElement)}></arcgis-charts-config-field-picker>`;
|
|
205
207
|
}
|
|
206
208
|
renderSplitBy() {
|
|
207
|
-
const
|
|
208
|
-
return
|
|
209
|
+
const e = this.getCorrectedSplitByValue();
|
|
210
|
+
return l`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
209
211
|
}
|
|
210
212
|
renderSorting() {
|
|
211
|
-
return
|
|
213
|
+
return l`<arcgis-charts-config-field-picker .label=${this._messages[this.model.getDataSortOrder()]} @click=${this.onSortOrderSelect} ${m(this.sortOrderElement)}></arcgis-charts-config-field-picker>`;
|
|
212
214
|
}
|
|
213
215
|
render() {
|
|
214
|
-
const
|
|
215
|
-
return
|
|
216
|
+
const e = this.renderCategory(), t = this.renderNumericFields([...this.model.numericFields ?? []]), s = this.renderSplitBy(), i = this.renderSorting(), n = this.renderCustomSortUI();
|
|
217
|
+
return l`<calcite-label class=${o(r.label)}>${this._messages.numericFields}${t}</calcite-label><div class=${o(r.fab)}><calcite-button appearance=outline-fill kind=neutral scale=m width=auto round icon-start=plus @click=${this.onAddNumericFields}><span>${this._messages.selectNumericFields}</span></calcite-button></div><calcite-label class=${o(r.label)}><div>${this._messages.category} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${e}</calcite-label><calcite-label class=${o(r.label)}><div class=${o(this.disableSplitBy ? r.dimText : "")}>${this._messages.splitBy} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${s}</calcite-label><div>${(this.model.numericFields ?? []).length > 1 ? l`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.standardizeValues}<calcite-switch .checked=${this.model.standardizeValues} @calciteSwitchChange=${this.onStandardizeValuesChange}></calcite-switch></calcite-label>` : null}</div><calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.showOutliers}<calcite-switch .checked=${this.model.showOutliers} @calciteSwitchChange=${this.onShowOutliersChange}></calcite-switch></calcite-label><calcite-label class=${o(r.label)}>${this._messages.sortOrder}${i}</calcite-label>${n}`;
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
220
|
b("arcgis-charts-config-box-plot-data", E);
|
|
@@ -5,6 +5,5 @@ import "../arcgis-charts-config-box-plot-popover/index.js";
|
|
|
5
5
|
import "@esri/calcite-components/components/calcite-label";
|
|
6
6
|
import "@esri/calcite-components/components/calcite-button";
|
|
7
7
|
import "../arcgis-charts-config-field-picker/index.js";
|
|
8
|
-
import "@esri/calcite-components/components/calcite-fab";
|
|
9
8
|
import "@esri/calcite-components/components/calcite-switch";
|
|
10
9
|
export * from "./customElement.js";
|