@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
|
@@ -4,8 +4,7 @@ import { isEqual as r } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as i } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as d,
|
|
8
|
-
import { i as u } from "../../chunks/type-guards.js";
|
|
7
|
+
import { i as d, ca as c, cb as m, bB as f, l as g, cJ as p, v as u } from "../../chunks/index.js";
|
|
9
8
|
const C = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
9
|
class y extends n {
|
|
11
10
|
constructor() {
|
|
@@ -48,7 +47,7 @@ class y extends n {
|
|
|
48
47
|
if (s) {
|
|
49
48
|
await f(s);
|
|
50
49
|
const t = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
|
|
51
|
-
this.layerFieldsInfo =
|
|
50
|
+
this.layerFieldsInfo = g(s) ? p({ layer: s, popupTemplateFieldInfosEnabled: t, chartType: a?.type }) : u(s, t);
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
render() {
|
|
@@ -9,9 +9,8 @@ import { u as B } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as N, html as c } from "lit";
|
|
10
10
|
import { createRef as u, ref as v } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as F, createEvent as D, renderElement as _, safeStyleMap as O, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
-
import { S as H, E as K } from "../../chunks/
|
|
13
|
-
import {
|
|
14
|
-
import { i as U } from "../../chunks/type-guards.js";
|
|
12
|
+
import { S as H, E as K } from "../../chunks/index2.js";
|
|
13
|
+
import { B as A, l as U } from "../../chunks/index.js";
|
|
15
14
|
import { r as z } from "../../chunks/popover-ui-utils.js";
|
|
16
15
|
import { b as R } from "../../chunks/rest-js-object-literals.js";
|
|
17
16
|
import { s as b } from "../../chunks/chart-object-literals.js";
|
|
@@ -10,9 +10,8 @@ import { LitElement as b, createEvent as p, safeClassMap as o } from "@arcgis/lu
|
|
|
10
10
|
import { b as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
import { s } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { r as T } from "../../chunks/index3.js";
|
|
13
|
+
import { b4 as S, B as k } from "../../chunks/index.js";
|
|
14
|
+
import { r as T } from "../../chunks/index2.js";
|
|
16
15
|
const l = {
|
|
17
16
|
symbolPropertyPopover: "symbol-property-popover",
|
|
18
17
|
colorPicker: "color-picker",
|
|
@@ -44,7 +43,7 @@ class x extends b {
|
|
|
44
43
|
if (e === i.numericFields)
|
|
45
44
|
for (let r = 0; r < this.layerFieldsInfo?.length; r += 1) {
|
|
46
45
|
const a = this.layerFieldsInfo[r];
|
|
47
|
-
|
|
46
|
+
S(a) && n.push(c(a.name, t`<calcite-list-item .label=${k(this.layerFieldsInfo, a.name)} .value=${a.name} .selected=${this.selectedNumericField === a.name}></calcite-list-item>`));
|
|
48
47
|
}
|
|
49
48
|
else {
|
|
50
49
|
const r = [
|
|
@@ -4,7 +4,7 @@ import { isEqual as a } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { ca as c, cb as m, v as f, b4 as g, b5 as p } from "../../chunks/index.js";
|
|
8
8
|
const u = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class C extends n {
|
|
10
10
|
constructor() {
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { LitElement as
|
|
2
|
+
import { c as A } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as I } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as x, createEvent as u, renderElement as B, safeClassMap as s } from "@arcgis/lumina";
|
|
5
5
|
import { css as k, html as r } from "lit";
|
|
6
|
-
import { createRef as
|
|
6
|
+
import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
7
7
|
import { u as f } from "../../chunks/useT9n.js";
|
|
8
8
|
import { L as l } from "../../chunks/interfaces.js";
|
|
9
9
|
import { d as p, a as c, r as C, b as T } from "../../chunks/store.js";
|
|
10
10
|
import { isEqual as S } from "es-toolkit/compat";
|
|
11
11
|
import { x as E } from "../../chunks/data.js";
|
|
12
12
|
import { d, e as y, h as g } from "../../chunks/chart-object-literals.js";
|
|
13
|
-
import { J as L, K as P } from "../../chunks/
|
|
14
|
-
import { b,
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
const D = k`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
13
|
+
import { J as L, K as P } from "../../chunks/index2.js";
|
|
14
|
+
import { u as $, B as b, b5 as w, c8 as _ } from "../../chunks/index.js";
|
|
15
|
+
import { r as D } from "../../chunks/popover-ui-utils.js";
|
|
16
|
+
const N = k`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left: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}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
18
17
|
label: "label",
|
|
19
18
|
fieldList: "field-list",
|
|
20
19
|
fab: "fab",
|
|
@@ -22,9 +21,9 @@ const D = k`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
22
21
|
linkContainer: "link-container",
|
|
23
22
|
dimText: "dim-text"
|
|
24
23
|
};
|
|
25
|
-
class U extends
|
|
24
|
+
class U extends x {
|
|
26
25
|
constructor() {
|
|
27
|
-
super(...arguments), this._messages = f(), this.commonStrings = f({ name: "common", blocking: !0 }), this.lineChartPopover = null, this.aggregationElement =
|
|
26
|
+
super(...arguments), this._messages = f(), this.commonStrings = f({ name: "common", blocking: !0 }), this.lineChartPopover = null, this.aggregationElement = h(), this.xAxisFieldElement = h(), this.numericFieldsElement = h(), this.splitByFieldElement = h(), this.intervalAlignmentElement = h(), this.intervalElement = h(), this.onLineChartDataChange = (e) => {
|
|
28
27
|
try {
|
|
29
28
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
30
29
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
@@ -72,7 +71,7 @@ class U extends I {
|
|
|
72
71
|
this.properties = { aggregationLabel: 16, timeAggregationLabel: 16, disableSplitBy: 16, messageOverrides: 0, model: 0, resetTimeInterval: 0, layerFieldsInfo: 0 };
|
|
73
72
|
}
|
|
74
73
|
static {
|
|
75
|
-
this.styles =
|
|
74
|
+
this.styles = N;
|
|
76
75
|
}
|
|
77
76
|
load() {
|
|
78
77
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
@@ -89,7 +88,7 @@ class U extends I {
|
|
|
89
88
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
90
89
|
}
|
|
91
90
|
buildNumericFieldItem(e) {
|
|
92
|
-
return
|
|
91
|
+
return I(e, r`<calcite-list-item .label=${b(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
93
92
|
}
|
|
94
93
|
resetTimeIntervalOriginal(e) {
|
|
95
94
|
this.popoverClose(e), this.model.resetTimeInterval !== void 0 && (this.model.resetTimeInterval(), this.arcgisChartsConfigResetTimeInterval.emit());
|
|
@@ -136,7 +135,7 @@ class U extends I {
|
|
|
136
135
|
}
|
|
137
136
|
shouldShowTimeBinning() {
|
|
138
137
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = this.model.aggregationType !== d.NoAggregation;
|
|
139
|
-
return e !== void 0 &&
|
|
138
|
+
return e !== void 0 && w(e) && t;
|
|
140
139
|
}
|
|
141
140
|
setupPopover(e) {
|
|
142
141
|
e.stopImmediatePropagation(), this.removeLineChartDataPopover();
|
|
@@ -168,48 +167,48 @@ class U extends I {
|
|
|
168
167
|
this.lineChartPopover = B(r`<arcgis-charts-config-line-chart-popover .headingTitle=${a} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${o} @arcgisChartsConfigLineChartDataPopoverChange=${this.onLineChartDataChange} @arcgisChartsConfigLineChartPopoverClose=${this.popoverClose}></arcgis-charts-config-line-chart-popover>`), !document.body.contains(this.lineChartPopover) && this.lineChartPopover !== null && document.body.appendChild(this.lineChartPopover);
|
|
169
168
|
}
|
|
170
169
|
removeLineChartDataPopover() {
|
|
171
|
-
this.lineChartPopover !== null && (this.lineChartPopover.open = !1, this.lineChartPopover =
|
|
170
|
+
this.lineChartPopover !== null && (this.lineChartPopover.open = !1, this.lineChartPopover = D(this.lineChartPopover));
|
|
172
171
|
}
|
|
173
172
|
renderAggregation() {
|
|
174
|
-
return r`<arcgis-charts-config-field-picker .label=${this.model.aggregationType === d.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${
|
|
173
|
+
return r`<arcgis-charts-config-field-picker .label=${this.model.aggregationType === d.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${m(this.aggregationElement)}></arcgis-charts-config-field-picker>`;
|
|
175
174
|
}
|
|
176
175
|
renderXAxisField() {
|
|
177
176
|
const e = this.getCorrectedXAxisValue();
|
|
178
|
-
return r`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${
|
|
177
|
+
return r`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${m(this.xAxisFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
179
178
|
}
|
|
180
179
|
renderSplitBy() {
|
|
181
180
|
const e = this.getCorrectedSplitByValue();
|
|
182
|
-
return r`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${
|
|
181
|
+
return r`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
183
182
|
}
|
|
184
183
|
renderNumericFields(e) {
|
|
185
184
|
const t = $(this.model.layer).idField, i = [];
|
|
186
185
|
for (const a of e)
|
|
187
186
|
a !== t && i.push(this.buildNumericFieldItem(a));
|
|
188
|
-
return r`<calcite-list label class=${s(n.fieldList)} ${
|
|
187
|
+
return r`<calcite-list label class=${s(n.fieldList)} ${m(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
189
188
|
}
|
|
190
189
|
renderInterval() {
|
|
191
|
-
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i =
|
|
190
|
+
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = _(this.model.temporalBinningUnit ?? y.Second, this._messages) ?? "", a = T(c), o = {
|
|
192
191
|
size: this.model.temporalBinningSize,
|
|
193
192
|
unit: this.model.temporalBinningUnit
|
|
194
193
|
}, v = S(o, a);
|
|
195
194
|
return [
|
|
196
195
|
r`<calcite-list label selection-appearance=border><calcite-list-item .value=${e ? "" : `${t} ${i}`} .label=${e ? "" : `${t} ${i}`} @click=${e ? () => {
|
|
197
|
-
} : this.onIntervalSelect} ${
|
|
196
|
+
} : this.onIntervalSelect} ${m(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,
|
|
198
197
|
r`<div class=${s(n.linkContainer)}><calcite-button .disabled=${v} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`
|
|
199
198
|
];
|
|
200
199
|
}
|
|
201
200
|
renderIntervalAlignment() {
|
|
202
|
-
return r`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${
|
|
201
|
+
return r`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${m(this.intervalAlignmentElement)}></arcgis-charts-config-field-picker>`;
|
|
203
202
|
}
|
|
204
203
|
renderEmptyBins() {
|
|
205
204
|
return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${g.Zero} .checked=${this.model.nullPolicy === g.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${g.Interpolate} .checked=${this.model.nullPolicy === g.Interpolate}></calcite-radio-button>${this._messages.connectLine}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${g.Null} .checked=${this.model.nullPolicy === g.Null}></calcite-radio-button>${this._messages.breakLine}</calcite-label></calcite-radio-button-group>`;
|
|
206
205
|
}
|
|
207
206
|
render() {
|
|
208
207
|
const e = this.renderAggregation(), t = this.renderXAxisField(), i = this.renderSplitBy(), a = this.renderNumericFields([...this.model.numericFields]), o = this.renderInterval(), v = this.renderIntervalAlignment(), F = this.renderEmptyBins();
|
|
209
|
-
return r`<calcite-label class=${s(n.label)}>${this._messages.xAxisField}${t}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.numericFields}${a}</calcite-label><div class=${s(n.fab)}><calcite-
|
|
208
|
+
return r`<calcite-label class=${s(n.label)}>${this._messages.xAxisField}${t}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.numericFields}${a}</calcite-label><div class=${s(n.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=${s(n.label)}><span class=${s(this.disableSplitBy ? n.dimText : "")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${s(n.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${s(n.label)}>${this._messages.interval}${o}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.intervalAlignment}${v}</calcite-label><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType !== d.Count ? r`<calcite-label class=${s(n.label)}>${this._messages.emptyBins}${F}</calcite-label>` : null}</div><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label>`;
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
|
-
|
|
211
|
+
A("arcgis-charts-config-line-chart-data", U);
|
|
213
212
|
export {
|
|
214
213
|
U as ArcgisChartsConfigLineChartData
|
|
215
214
|
};
|
|
@@ -7,6 +7,5 @@ import "@esri/calcite-components/components/calcite-button";
|
|
|
7
7
|
import "@esri/calcite-components/components/calcite-radio-button-group";
|
|
8
8
|
import "@esri/calcite-components/components/calcite-label";
|
|
9
9
|
import "@esri/calcite-components/components/calcite-radio-button";
|
|
10
|
-
import "@esri/calcite-components/components/calcite-fab";
|
|
11
10
|
import "@esri/calcite-components/components/calcite-switch";
|
|
12
11
|
export * from "./customElement.js";
|
|
@@ -12,9 +12,8 @@ import { c as $, b as F, e as d, f as I, s as T } from "../../chunks/chart-ui-ut
|
|
|
12
12
|
import { d as x } from "../../chunks/rest-js-object-literals.js";
|
|
13
13
|
import { b as g, e as c } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { e as A, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
|
-
import { J as E, K as S } from "../../chunks/
|
|
16
|
-
import {
|
|
17
|
-
import { bL as N, aQ as L, aR as K, a_ as B } from "../../chunks/index.js";
|
|
15
|
+
import { J as E, K as S } from "../../chunks/index2.js";
|
|
16
|
+
import { B as z, c9 as w, b4 as L, b5 as N, bj as K, c8 as B } from "../../chunks/index.js";
|
|
18
17
|
const _ = 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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, r = {
|
|
19
18
|
name: "line-chart-data-popover",
|
|
20
19
|
header: "header",
|
|
@@ -74,7 +73,7 @@ class H extends k {
|
|
|
74
73
|
case a.xAxisField: {
|
|
75
74
|
for (let l = 0; l < t; l += 1) {
|
|
76
75
|
const i = this.layerFieldsInfo?.[l];
|
|
77
|
-
i && (L(i) ||
|
|
76
|
+
i && (L(i) || N(i) || K(i)) && s.push(this.buildPickListItem(i));
|
|
78
77
|
}
|
|
79
78
|
break;
|
|
80
79
|
}
|
|
@@ -83,7 +82,7 @@ class H extends k {
|
|
|
83
82
|
s.push(l);
|
|
84
83
|
for (let i = 0; i < t; i += 1) {
|
|
85
84
|
const m = this.layerFieldsInfo?.[i];
|
|
86
|
-
m && (
|
|
85
|
+
m && (w(m) || m.type === x.String) && s.push(this.buildPickListItem(m));
|
|
87
86
|
}
|
|
88
87
|
break;
|
|
89
88
|
}
|
|
@@ -152,7 +151,7 @@ class H extends k {
|
|
|
152
151
|
c.Month,
|
|
153
152
|
c.Year
|
|
154
153
|
];
|
|
155
|
-
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${T(e?.size, 1)} ${p(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${p(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${
|
|
154
|
+
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${T(e?.size, 1)} ${p(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${p(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${B(s, this._messages)} .selected=${e?.unit === s}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
156
155
|
}
|
|
157
156
|
renderPopoverInfo() {
|
|
158
157
|
let e;
|
|
@@ -1,54 +1,59 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as u } from "lit/directives/keyed.js";
|
|
4
|
-
import { LitElement as I, renderElement as
|
|
5
|
-
import { css as
|
|
6
|
-
import { repeat as
|
|
4
|
+
import { LitElement as I, renderElement as P, safeStyleMap as $ } from "@arcgis/lumina";
|
|
5
|
+
import { css as L, html as o } from "lit";
|
|
6
|
+
import { repeat as x } from "lit/directives/repeat.js";
|
|
7
7
|
import { u as y } from "../../chunks/useT9n.js";
|
|
8
8
|
import { j as b } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import {
|
|
10
|
-
import { r as
|
|
11
|
-
const O =
|
|
9
|
+
import { x as M } from "../../chunks/index.js";
|
|
10
|
+
import { r as a } from "../../chunks/popover-ui-utils.js";
|
|
11
|
+
const O = L`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`;
|
|
12
12
|
class k extends I {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments), this._messages = y(), this.seriesPopover = null, this.open = !1, this.seriesNameChange = (e) => {
|
|
15
15
|
if (e.detail !== null || e.detail !== void 0) {
|
|
16
|
-
const s = e.detail?.name;
|
|
17
|
-
this.model.setSeriesName(s,
|
|
16
|
+
const s = e.detail?.name, i = this.selectedSeriesIndex;
|
|
17
|
+
i !== void 0 && i >= 0 && this.model.setSeriesName(s, i);
|
|
18
18
|
}
|
|
19
19
|
}, this.seriesColorChange = (e) => {
|
|
20
20
|
if (e.detail !== null && e.detail !== void 0) {
|
|
21
21
|
const { color: s } = e.detail;
|
|
22
|
-
this.model.colorMatch = !1
|
|
22
|
+
this.model.colorMatch = !1;
|
|
23
|
+
const i = this.selectedSeriesIndex;
|
|
24
|
+
s !== void 0 && i !== void 0 && i >= 0 && (this.model.setSeriesColor(s, i), this.model.setSeriesMarkerColor(s, i));
|
|
23
25
|
}
|
|
24
26
|
}, this.seriesLineStyleChange = (e) => {
|
|
25
27
|
if (e.detail !== null && e.detail !== void 0) {
|
|
26
|
-
const { lineStyle: s } = e.detail;
|
|
27
|
-
s !== void 0 && this.model.setSeriesLineStyle(s,
|
|
28
|
+
const { lineStyle: s } = e.detail, i = this.selectedSeriesIndex;
|
|
29
|
+
s !== void 0 && i !== void 0 && i >= 0 && this.model.setSeriesLineStyle(s, i);
|
|
28
30
|
}
|
|
29
31
|
}, this.seriesLineWidthChange = (e) => {
|
|
30
32
|
if (e.detail !== null && e.detail !== void 0) {
|
|
31
|
-
const { lineWidth: s } = e.detail;
|
|
32
|
-
s !== void 0 && (this.model.setSeriesLineWidth(s,
|
|
33
|
+
const { lineWidth: s } = e.detail, i = this.selectedSeriesIndex;
|
|
34
|
+
s !== void 0 && i !== void 0 && i >= 0 && (this.model.setSeriesLineWidth(s, i), this.model.setSeriesMarkerSize(s * 2, i));
|
|
33
35
|
}
|
|
34
36
|
}, this.seriesPopoverClose = (e) => {
|
|
35
37
|
const { selectedSeriesIndex: s } = e.detail;
|
|
36
|
-
this.selectedSeriesIndex === s && (this.seriesPopover =
|
|
38
|
+
this.selectedSeriesIndex === s && (this.seriesPopover = a(this.seriesPopover), this.selectedSeriesId = void 0);
|
|
37
39
|
}, this.onModelConfigChange = () => {
|
|
38
|
-
this.requestUpdate();
|
|
40
|
+
this.selectedSeriesId !== void 0 && this.selectedSeriesIndex === -1 ? (this.removeSeriesPopover(), this.selectedSeriesId = void 0) : this.seriesPopover && (this.seriesPopover.selectedSeriesIndex = this.selectedSeriesIndex), this.requestUpdate();
|
|
39
41
|
}, this.seriesOrderResetCounter = 0, this.activeColorMatch = !1, this.popoverPlacement = "leading";
|
|
40
42
|
}
|
|
41
43
|
static {
|
|
42
|
-
this.properties = {
|
|
44
|
+
this.properties = { selectedSeriesId: 16, seriesOrderResetCounter: 16, messageOverrides: 0, model: 0, activeColorMatch: 5, popoverPlacement: 1 };
|
|
43
45
|
}
|
|
44
46
|
static {
|
|
45
47
|
this.styles = O;
|
|
46
48
|
}
|
|
49
|
+
get selectedSeriesIndex() {
|
|
50
|
+
return this.selectedSeriesId === void 0 ? void 0 : this.model.getSeriesIndex(this.selectedSeriesId);
|
|
51
|
+
}
|
|
47
52
|
load() {
|
|
48
53
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
49
54
|
}
|
|
50
55
|
willUpdate(e) {
|
|
51
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("
|
|
56
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("selectedSeriesId") && this.selectedSeriesChange();
|
|
52
57
|
}
|
|
53
58
|
disconnectedCallback() {
|
|
54
59
|
super.disconnectedCallback(), this.removeSeriesPopover(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -56,41 +61,41 @@ class k extends I {
|
|
|
56
61
|
modelChange(e, s) {
|
|
57
62
|
s?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
58
63
|
}
|
|
59
|
-
|
|
60
|
-
this.selectedSeriesIndex !== void 0 && (this.seriesPopover =
|
|
64
|
+
selectedSeriesChange() {
|
|
65
|
+
this.selectedSeriesIndex !== void 0 && (this.seriesPopover = P(o`<arcgis-charts-config-line-chart-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .placement=${this.popoverPlacement} .open=${this.open} .selectedSeriesIndex=${this.selectedSeriesIndex} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-line-chart-series-popover>`), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover));
|
|
61
66
|
}
|
|
62
67
|
removeSeriesPopover() {
|
|
63
|
-
this.seriesPopover !== void 0 && this.seriesPopover !== null && (this.seriesPopover.open = !1, this.seriesPopover =
|
|
68
|
+
this.seriesPopover !== void 0 && this.seriesPopover !== null && (this.seriesPopover.open = !1, this.seriesPopover = a(this.seriesPopover));
|
|
64
69
|
}
|
|
65
70
|
buildSeriesListItems() {
|
|
66
|
-
const e = this.model.seriesLength, s = Array.from({ length: e }, (
|
|
67
|
-
return
|
|
68
|
-
const r = this.model.getSeriesId(
|
|
69
|
-
let n = "#CCCCCC",
|
|
71
|
+
const e = this.model.seriesLength, s = Array.from({ length: e }, (t, r) => r);
|
|
72
|
+
return x(s, (t) => this.model.getSeriesId(t), (t) => {
|
|
73
|
+
const r = this.model.getSeriesId(t), l = this.model.getSeriesColor(t), h = this.model.getSeriesName(t), c = this.model.chartSubType === M.BarAndLineFromFields ? this._messages.series : r, m = this.model.getSeriesLineStyle(t), g = b(m);
|
|
74
|
+
let n = "#CCCCCC", d = "minus-circle";
|
|
70
75
|
if ((e > 1 || !this.activeColorMatch) && l !== void 0) {
|
|
71
|
-
|
|
72
|
-
const [
|
|
73
|
-
n = `rgba(${
|
|
76
|
+
d = `line-${g}`;
|
|
77
|
+
const [p, C, S, v] = [...l];
|
|
78
|
+
n = `rgba(${p},${C},${S},${v / 255})`;
|
|
74
79
|
}
|
|
75
|
-
return o`<calcite-list-item .label=${h ?? r ?? ""} .description=${c} .value=${r} .selected=${this.
|
|
80
|
+
return o`<calcite-list-item .label=${h ?? r ?? ""} .description=${c} .value=${r} .selected=${this.selectedSeriesId === r} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${d} style=${$({ color: n })}></calcite-icon></calcite-list-item>`;
|
|
76
81
|
});
|
|
77
82
|
}
|
|
78
83
|
buildSeriesList() {
|
|
79
84
|
return u(this.seriesOrderResetCounter, o`<calcite-list label drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
|
|
80
85
|
}
|
|
81
86
|
resetSeriesOriginal() {
|
|
82
|
-
this.
|
|
87
|
+
this.selectedSeriesId = void 0, this.model.resetSeriesStyling(), this.seriesOrderResetCounter += 1;
|
|
83
88
|
}
|
|
84
89
|
onCalciteListOrderChange(e) {
|
|
85
90
|
if (e.detail !== null && e.detail !== void 0) {
|
|
86
|
-
const { newIndex: s, oldIndex:
|
|
87
|
-
this.model.moveSeries(
|
|
91
|
+
const { newIndex: s, oldIndex: i } = e.detail;
|
|
92
|
+
this.model.moveSeries(i ?? 0, s ?? i ?? 0), this.seriesOrderResetCounter += 1;
|
|
88
93
|
}
|
|
89
94
|
}
|
|
90
95
|
openSeriesPopOver(e) {
|
|
91
96
|
e.stopImmediatePropagation(), this.removeSeriesPopover();
|
|
92
|
-
const s = e.target,
|
|
93
|
-
this.open = this.
|
|
97
|
+
const s = e.target, i = s.localName === "calcite-list-item" ? s : s.parentNode;
|
|
98
|
+
this.open = this.selectedSeriesId !== i.value, this.selectedSeriesId = this.open ? i.value : void 0;
|
|
94
99
|
}
|
|
95
100
|
render() {
|
|
96
101
|
return o`<calcite-panel .heading=${this._messages.series}><calcite-button slot=header-actions-end @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent scale=s icon-end=reset>${this._messages.reset}</calcite-button>${this.buildSeriesList()}</calcite-panel>`;
|
|
@@ -6,7 +6,7 @@ import { u as y } from "../../chunks/useT9n.js";
|
|
|
6
6
|
import { createRef as a, ref as o } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement as $, createEvent as s, safeClassMap as l, nothing as c } from "@arcgis/lumina";
|
|
8
8
|
import { e as I } from "../../chunks/popover-ui-utils.js";
|
|
9
|
-
import { r as b } from "../../chunks/
|
|
9
|
+
import { r as b } from "../../chunks/index2.js";
|
|
10
10
|
import { R as i } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const n = {
|
|
12
12
|
sizeSection: "size-section",
|
|
@@ -4,7 +4,7 @@ import { isEqual as n, cloneDeep as h } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as C, createEvent as m } from "@arcgis/lumina";
|
|
5
5
|
import { css as y, html as c } from "lit";
|
|
6
6
|
import { C as d } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { ca as I, cb as F, v } from "../../chunks/index.js";
|
|
8
8
|
import { b } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
const S = y`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class L extends C {
|
|
@@ -2,37 +2,36 @@
|
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
4
4
|
import { P as r } from "../../chunks/interfaces.js";
|
|
5
|
-
import { u
|
|
6
|
-
import { css as
|
|
5
|
+
import { u } from "../../chunks/useT9n.js";
|
|
6
|
+
import { css as C, html as s } from "lit";
|
|
7
7
|
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
|
-
import { LitElement as b, createEvent as
|
|
8
|
+
import { LitElement as b, createEvent as d, renderElement as v, safeClassMap as o } from "@arcgis/lumina";
|
|
9
9
|
import { x as y } from "../../chunks/data.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { d as P } from "../../chunks/chart-object-literals.js";
|
|
10
|
+
import { A as m, B as g, u as F } from "../../chunks/index.js";
|
|
11
|
+
import { r as P } from "../../chunks/popover-ui-utils.js";
|
|
12
|
+
import { d as $ } from "../../chunks/chart-object-literals.js";
|
|
14
13
|
const l = {
|
|
15
14
|
label: "label",
|
|
16
15
|
fieldList: "field-list",
|
|
17
16
|
fab: "fab"
|
|
18
|
-
},
|
|
19
|
-
class
|
|
17
|
+
}, w = C`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{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}`;
|
|
18
|
+
class k extends b {
|
|
20
19
|
constructor() {
|
|
21
|
-
super(...arguments), this._messages =
|
|
20
|
+
super(...arguments), this._messages = u(), this.pieChartPopover = null, this.sortOrderElement = n(), this.categoryElement = n(), this.numericFieldsElement = n(), this.onPieChartDataChange = (e) => {
|
|
22
21
|
try {
|
|
23
22
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
24
23
|
const { contentKind: i } = e.detail, t = [...e.detail.value];
|
|
25
24
|
switch (i) {
|
|
26
25
|
case r.aggregation:
|
|
27
|
-
this.model.aggregationType = t[0] !==
|
|
26
|
+
this.model.aggregationType = t[0] !== $.NoAggregation ? t[0] : "";
|
|
28
27
|
break;
|
|
29
28
|
case r.category: {
|
|
30
|
-
const a = t[0]?.trim() || "",
|
|
31
|
-
|
|
29
|
+
const a = t[0]?.trim() || "", h = this.model.numericFields;
|
|
30
|
+
h.length > 1 && a !== m && (this.model.numericFields = [h[0]]), this.model.category = a, this.model.colorMatch = !0;
|
|
32
31
|
break;
|
|
33
32
|
}
|
|
34
33
|
case r.numericFields:
|
|
35
|
-
(t.length > 1 || t.length > 0 && this.model.category.trim() === "") && (this.model.category =
|
|
34
|
+
(t.length > 1 || t.length > 0 && this.model.category.trim() === "") && (this.model.category = m), this.model.numericFields = t;
|
|
36
35
|
break;
|
|
37
36
|
case r.sortOrder:
|
|
38
37
|
this.model.setDataSortOrder(t[0]);
|
|
@@ -49,13 +48,13 @@ class E extends b {
|
|
|
49
48
|
this.requestUpdate();
|
|
50
49
|
}, this.popoverClose = (e) => {
|
|
51
50
|
this.pieChartPopover === e?.target && this.removePieChartDataPopover();
|
|
52
|
-
}, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError =
|
|
51
|
+
}, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = d(), this.arcgisChartsConfigPieChartDataNumericFieldValidate = d();
|
|
53
52
|
}
|
|
54
53
|
static {
|
|
55
54
|
this.properties = { messageOverrides: 0, model: 0, layerFieldsInfo: 0 };
|
|
56
55
|
}
|
|
57
56
|
static {
|
|
58
|
-
this.styles =
|
|
57
|
+
this.styles = w;
|
|
59
58
|
}
|
|
60
59
|
load() {
|
|
61
60
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
@@ -70,7 +69,7 @@ class E extends b {
|
|
|
70
69
|
i?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
71
70
|
}
|
|
72
71
|
buildNumericFieldItem(e) {
|
|
73
|
-
return f(e, s`<calcite-list-item .label=${
|
|
72
|
+
return f(e, s`<calcite-list-item .label=${g(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
74
73
|
}
|
|
75
74
|
onSortOrderSelect(e) {
|
|
76
75
|
this.contentKind = r.sortOrder, this.setupPopover(e);
|
|
@@ -108,10 +107,10 @@ class E extends b {
|
|
|
108
107
|
return y({
|
|
109
108
|
fieldName: this.model.category,
|
|
110
109
|
fieldList: this.layerFieldsInfo
|
|
111
|
-
}) ? "" :
|
|
110
|
+
}) ? "" : g(this.layerFieldsInfo, this.model.category);
|
|
112
111
|
}
|
|
113
112
|
removePieChartDataPopover() {
|
|
114
|
-
this.pieChartPopover !== null && (this.pieChartPopover.open = !1, this.pieChartPopover =
|
|
113
|
+
this.pieChartPopover !== null && (this.pieChartPopover.open = !1, this.pieChartPopover = P(this.pieChartPopover));
|
|
115
114
|
}
|
|
116
115
|
renderSorting() {
|
|
117
116
|
return s`<arcgis-charts-config-field-picker .label=${this._messages[this.model.getDataSortOrder()]} @click=${this.onSortOrderSelect} ${c(this.sortOrderElement)}></arcgis-charts-config-field-picker>`;
|
|
@@ -130,11 +129,11 @@ class E extends b {
|
|
|
130
129
|
const e = this.renderCategory(), i = this.renderSorting(), t = this.renderNumericFields([...this.model.numericFields]);
|
|
131
130
|
return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[
|
|
132
131
|
s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${t}</calcite-label>`,
|
|
133
|
-
s`<div class=${o(l.fab)}><calcite-
|
|
132
|
+
s`<div class=${o(l.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>`
|
|
134
133
|
]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${i}</calcite-label>`;
|
|
135
134
|
}
|
|
136
135
|
}
|
|
137
|
-
p("arcgis-charts-config-pie-chart-data",
|
|
136
|
+
p("arcgis-charts-config-pie-chart-data", k);
|
|
138
137
|
export {
|
|
139
|
-
|
|
138
|
+
k as ArcgisChartsConfigPieChartData
|
|
140
139
|
};
|
|
@@ -3,6 +3,6 @@ import "../arcgis-charts-config-pie-chart-popover/index.js";
|
|
|
3
3
|
import "../arcgis-charts-config-field-picker/index.js";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-list";
|
|
5
5
|
import "@esri/calcite-components/components/calcite-label";
|
|
6
|
-
import "@esri/calcite-components/components/calcite-
|
|
6
|
+
import "@esri/calcite-components/components/calcite-button";
|
|
7
7
|
import "@esri/calcite-components/components/calcite-switch";
|
|
8
8
|
export * from "./customElement.js";
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
-
import { repeat as
|
|
3
|
+
import { repeat as m } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as g } from "lit/directives/keyed.js";
|
|
5
5
|
import { isEqual as k } from "es-toolkit/compat";
|
|
6
6
|
import { P as o } from "../../chunks/interfaces.js";
|
|
7
7
|
import { p as f, b as $, e as d, f as P } from "../../chunks/chart-ui-utils.js";
|
|
8
8
|
import { u } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as L, html as n } from "lit";
|
|
10
|
-
import { createRef as C, ref as
|
|
10
|
+
import { createRef as C, ref as h } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as y, createEvent as b, safeClassMap as l } from "@arcgis/lumina";
|
|
12
12
|
import { e as F, p as I } from "../../chunks/popover-ui-utils.js";
|
|
13
|
-
import { J as D } from "../../chunks/
|
|
14
|
-
import {
|
|
15
|
-
import { bL as S, aQ as T } from "../../chunks/index.js";
|
|
13
|
+
import { J as D } from "../../chunks/index2.js";
|
|
14
|
+
import { B as x, c9 as S, b4 as T } from "../../chunks/index.js";
|
|
16
15
|
import { d as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
16
|
import { a as r } from "../../chunks/common.js";
|
|
18
17
|
const s = {
|
|
@@ -51,11 +50,11 @@ class A extends y {
|
|
|
51
50
|
this.pickListHasChanged = I(e, t);
|
|
52
51
|
}
|
|
53
52
|
buildAggregationPickListItems() {
|
|
54
|
-
return
|
|
53
|
+
return m(f, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${d(e, this.selectedContent)}></calcite-list-item>`);
|
|
55
54
|
}
|
|
56
55
|
buildSortOrder() {
|
|
57
56
|
const e = Object.keys(r);
|
|
58
|
-
return e.splice(e.indexOf(r.customSort), 1),
|
|
57
|
+
return e.splice(e.indexOf(r.customSort), 1), m(e, (t) => t, (t) => {
|
|
59
58
|
let i = "string";
|
|
60
59
|
const c = "rotate";
|
|
61
60
|
let a = "";
|
|
@@ -134,11 +133,11 @@ class A extends y {
|
|
|
134
133
|
}
|
|
135
134
|
renderCategory() {
|
|
136
135
|
const e = this.buildPickListItems(o.category);
|
|
137
|
-
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${
|
|
136
|
+
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${h(this.picklist)}>${e}</calcite-list>`;
|
|
138
137
|
}
|
|
139
138
|
renderNumericFields() {
|
|
140
139
|
const e = this.buildPickListItems(o.numericFields);
|
|
141
|
-
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${
|
|
140
|
+
return n`<calcite-list label class=${l(s.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${h(this.picklist)}>${e}</calcite-list>`;
|
|
142
141
|
}
|
|
143
142
|
renderSortOrder() {
|
|
144
143
|
const e = this.buildSortOrder();
|
|
@@ -164,7 +163,7 @@ class A extends y {
|
|
|
164
163
|
}
|
|
165
164
|
render() {
|
|
166
165
|
let e;
|
|
167
|
-
return this.contentKind === o.numericFields && (e = n`<div slot=footer><calcite-fab class=${l(s.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div><calcite-popover class=${l(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${
|
|
166
|
+
return this.contentKind === o.numericFields && (e = n`<div slot=footer><calcite-fab class=${l(s.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div><calcite-popover class=${l(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${h(this.popoverElement)}><calcite-panel class=${l(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
168
167
|
}
|
|
169
168
|
}
|
|
170
169
|
v("arcgis-charts-config-pie-chart-popover", A);
|