@arcgis/charts-components 6.0.0-next.2 → 6.0.0-next.20
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/{XAP5PIZ2.js → 23OBJJMY.js} +1 -1
- package/dist/cdn/2CNZDYOY.js +2 -0
- package/dist/cdn/2L3CFU7R.js +2 -0
- package/dist/cdn/{2R2K5DTZ.js → 2TVBBBFB.js} +1 -1
- package/dist/cdn/3D6A3FSY.js +2 -0
- package/dist/cdn/{VTUFKWMW.js → 3FAXIZDY.js} +1 -1
- package/dist/cdn/{6WVZUW3A.js → 3RJA6GU5.js} +1 -1
- package/dist/cdn/3RMCJLPQ.js +2 -0
- package/dist/cdn/{NOWRHZV7.js → 3RXZGLTX.js} +1 -1
- package/dist/cdn/{RKWSCI6H.js → 3XO5QWW2.js} +1 -1
- package/dist/cdn/{IS6WNL3S.js → 4AA4A62W.js} +1 -1
- package/dist/cdn/4DBZXMWZ.js +2 -0
- package/dist/cdn/{D4SDXCEK.js → 4HXGM3VX.js} +1 -1
- package/dist/cdn/4OC5GZ3M.js +4 -0
- package/dist/cdn/57ZRFAP5.js +2 -0
- package/dist/cdn/{TIKPLOJF.js → 5FLPMVDG.js} +1 -1
- package/dist/cdn/5VCVKGKW.js +2 -0
- package/dist/cdn/{Z4MPWA44.js → 5VG5RZKN.js} +1 -1
- package/dist/cdn/{MPSFMJZL.js → 6COGNLWU.js} +1 -1
- package/dist/cdn/6FLJN3FM.js +2 -0
- package/dist/cdn/{S6FQN6HR.js → 6YTUMBO6.js} +1 -1
- package/dist/cdn/73E367AZ.js +2 -0
- package/dist/cdn/74J2YHAH.js +2 -0
- package/dist/cdn/{RKRR2KKS.js → 7CHIKM2Y.js} +1 -1
- package/dist/cdn/7EH2KTOE.js +2 -0
- package/dist/cdn/{ICCD23OE.js → 7EO4DMRO.js} +1 -1
- package/dist/cdn/A5Y7SINJ.js +2 -0
- package/dist/cdn/{C27CFMVY.js → ABHDMXQ7.js} +1 -1
- package/dist/cdn/{KK445MLC.js → ANXI7X33.js} +1 -1
- package/dist/cdn/B2MNXOZC.js +2 -0
- package/dist/cdn/B3YDN37X.js +2 -0
- package/dist/cdn/BXUTY44W.js +2 -0
- package/dist/cdn/CCCVN47Z.js +2 -0
- package/dist/cdn/{HN7A4IOJ.js → CFC3MJF7.js} +1 -1
- package/dist/cdn/{RD2X624K.js → CNQNN4CB.js} +1 -1
- package/dist/cdn/{RANPMLRU.js → CPBCKPO3.js} +1 -1
- package/dist/cdn/CQU7SD5I.js +2 -0
- package/dist/cdn/CXZF73UW.js +2 -0
- package/dist/cdn/D26USL3R.js +2 -0
- package/dist/cdn/{OZSHGMU6.js → D7HVHYVY.js} +1 -1
- package/dist/cdn/DBCZ7X7L.js +2 -0
- package/dist/cdn/DHXZKTF6.js +4 -0
- package/dist/cdn/DO4L5IAM.js +2 -0
- package/dist/cdn/DQJZEIEB.js +2 -0
- package/dist/cdn/{5LR2NVD4.js → DYWTYNT4.js} +1 -1
- package/dist/cdn/EBNM4Q47.js +2 -0
- package/dist/cdn/EBVBQSUD.js +2 -0
- package/dist/cdn/{FGJPWWIL.js → EKWGPT5Y.js} +1 -1
- package/dist/cdn/{RY665VHB.js → EN4TKBF7.js} +1 -1
- package/dist/cdn/{YPTG2SNF.js → EXFLYGOA.js} +1 -1
- package/dist/cdn/F2AEPQP5.js +2 -0
- package/dist/cdn/F76PZBOK.js +2 -0
- package/dist/cdn/GFVKVWUY.js +2 -0
- package/dist/cdn/GQFD2BXB.js +2 -0
- package/dist/cdn/{SLZVSMMS.js → H32ZCMZI.js} +1 -1
- package/dist/cdn/HW5YPNRC.js +2 -0
- package/dist/cdn/HZSR2TZW.js +2 -0
- package/dist/cdn/{UCADTSTO.js → IJ4NLEMH.js} +1 -1
- package/dist/cdn/IQE6TEF7.js +2 -0
- package/dist/cdn/{OXNMXLJF.js → IVMUU655.js} +1 -1
- package/dist/cdn/{H5VCT3XP.js → IVX5JR6I.js} +1 -1
- package/dist/cdn/IYVGK242.js +4 -0
- package/dist/cdn/JNFER2G5.js +2 -0
- package/dist/cdn/{IHAADQBV.js → JP7ADCJN.js} +1 -1
- package/dist/cdn/{BXQLCRCF.js → JSIJJIJ2.js} +1 -1
- package/dist/cdn/JTQIRNPA.js +2 -0
- package/dist/cdn/JWZEPPGG.js +2 -0
- package/dist/cdn/KBUFMYZQ.js +2 -0
- package/dist/cdn/KDVRUUVP.js +2 -0
- package/dist/cdn/{GE5JXYB2.js → KEX2VV73.js} +1 -1
- package/dist/cdn/{ZXXFRYTC.js → KJ2WKS3E.js} +1 -1
- package/dist/cdn/KKAUA5I4.js +2 -0
- package/dist/cdn/KXU3XKM2.js +2 -0
- package/dist/cdn/{3CSWEOBS.js → KZMHSQD6.js} +1 -1
- package/dist/cdn/L5HPMS5V.js +2 -0
- package/dist/cdn/L5U7LDC3.js +2 -0
- package/dist/cdn/{FTEOTYTH.js → L5YQURIU.js} +1 -1
- package/dist/cdn/L6BGXMMO.js +2 -0
- package/dist/cdn/{YR2F7I7M.js → LLQZNNEC.js} +1 -1
- package/dist/cdn/{QNK2HVPS.js → LRZAD7VO.js} +1 -1
- package/dist/cdn/{PIGINE4M.js → M7MSRLEE.js} +1 -1
- package/dist/cdn/MG4XERCZ.js +2 -0
- package/dist/cdn/MIBOTYKP.js +2 -0
- package/dist/cdn/{2HAZBMAW.js → MMZZZC7O.js} +1 -1
- package/dist/cdn/MU55JIYV.js +2 -0
- package/dist/cdn/MVHLKL7W.js +2 -0
- package/dist/cdn/N35DJP7H.js +2 -0
- package/dist/cdn/{ZH7H3YEB.js → N3JX6GNR.js} +27 -27
- package/dist/cdn/{DGDPNLJ6.js → N5QBW4DK.js} +1 -1
- package/dist/cdn/{ADIHYDO7.js → NHKIOS73.js} +1 -1
- package/dist/cdn/NSHVMSOK.js +2 -0
- package/dist/cdn/NWPO6T3D.js +2 -0
- package/dist/cdn/NX3KK4IQ.js +2 -0
- package/dist/cdn/{PME6JKVL.js → NXKWU3DD.js} +1 -1
- package/dist/cdn/OMMWNI5R.js +2 -0
- package/dist/cdn/OZNRLDTD.js +2 -0
- package/dist/cdn/{KBGVSXMS.js → PBFYIRZY.js} +1 -1
- package/dist/cdn/{7YQKCXR4.js → PISJX2S5.js} +1 -1
- package/dist/cdn/Q2SHE4BB.js +2 -0
- package/dist/cdn/{QKV23ZMN.js → Q3KUGWEO.js} +1 -1
- package/dist/cdn/QB5X2DNO.js +2 -0
- package/dist/cdn/{3B2AC6Y3.js → QGCRMKE5.js} +1 -1
- package/dist/cdn/{ZHWH7DPA.js → QJZFHN2U.js} +1 -1
- package/dist/cdn/{ZAXERTST.js → QKRQPIDL.js} +1 -1
- package/dist/cdn/QUOBWCF5.js +2 -0
- package/dist/cdn/R6MIM2PY.js +2 -0
- package/dist/cdn/RDAE2OL3.js +2 -0
- package/dist/cdn/{T4YC5GXW.js → RWTBVIDB.js} +1 -1
- package/dist/cdn/{4BAPCH7E.js → SNAWWD5A.js} +1 -1
- package/dist/cdn/{2CNCTLOI.js → ST6XSWHI.js} +1 -1
- package/dist/cdn/{RPUVDZVR.js → SZWXYTUV.js} +1 -1
- package/dist/cdn/T35SJEP4.js +2 -0
- package/dist/cdn/TRTYIA2G.js +2 -0
- package/dist/cdn/U2MXHNZR.js +2 -0
- package/dist/cdn/UIZELEJD.js +2 -0
- package/dist/cdn/UNFDJW5A.js +2 -0
- package/dist/cdn/{P3D2YICV.js → UXCVVLXG.js} +1 -1
- package/dist/cdn/{GYILUQLN.js → VARG4EGS.js} +1 -1
- package/dist/cdn/{B6EROAY4.js → VJWRWNXG.js} +1 -1
- package/dist/cdn/{INYMF2BQ.js → VKMVMHTT.js} +1 -1
- package/dist/cdn/VTCPVV2K.js +2 -0
- package/dist/cdn/W5I5BEM4.js +2 -0
- package/dist/cdn/{L3CL4LCS.js → WCOMQDTO.js} +1 -1
- package/dist/cdn/WMLMPR4P.js +2 -0
- package/dist/cdn/WO73Q3XE.js +2 -0
- package/dist/cdn/X2YVJPZF.js +2 -0
- package/dist/cdn/X7WYDIZE.js +2 -0
- package/dist/cdn/XCFAVK6F.js +2 -0
- package/dist/cdn/Y2FV4AZ4.js +2 -0
- package/dist/cdn/YJW7KSEK.js +2 -0
- package/dist/cdn/{EYSSZWSX.js → YOVZ4RVH.js} +1 -1
- package/dist/cdn/{RSII6PTR.js → YQPVQLX7.js} +1 -1
- package/dist/cdn/YR2TWUVL.js +2 -0
- package/dist/cdn/{GPQCW5EO.js → Z6PP7BPU.js} +2 -2
- package/dist/cdn/{4USN37PO.js → ZASO3PKX.js} +1 -1
- package/dist/cdn/ZCXMHYL5.js +2 -0
- package/dist/cdn/{WDUFLQ32.js → ZIHB4MW5.js} +1 -1
- package/dist/cdn/ZJKDLNZQ.js +2 -0
- package/dist/cdn/ZOZCGOID.js +2 -0
- package/dist/cdn/ZY5S677G.js +2 -0
- package/dist/cdn/ZYH6RLUY.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- 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 +157 -156
- package/dist/chunks/box-plot-model.js +35 -33
- package/dist/chunks/chart-model.js +27 -29
- package/dist/chunks/chart-ui-utils.js +44 -46
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +20 -20
- 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 +5419 -4251
- 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 +6 -6
- 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 +510 -510
- package/dist/chunks/serial-chart-model.js +69 -66
- 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 +166 -45
- package/dist/components/arcgis-chart/customElement.js +8226 -8013
- 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 +62 -57
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +10 -11
- 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 +106 -104
- 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 +4 -5
- 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 +5 -6
- 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 +8 -9
- 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 +316 -316
- 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 +89 -91
- package/dist/utils/chart-config/utils/index.d.ts +10 -3
- 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/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
package/dist/cdn/TCK5ZVBJ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{d as t}from"./5AKOPV7Z.js";import a from"./STZNZAAW.js";import"./SKI5Z6UH.js";import"./B6APNE72.js";import"./27C6PCQ2.js";import"./WKF53DYD.js";import{b as l}from"./OZSOICXE.js";import"./4DZ3REFU.js";import{B as c,H as h,g as n,i}from"./YF6ML4P6.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{Sb:g,Ub:m,pa:d}])=>{var p=n`: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%}`,r=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let o=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(o)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,popoverPlacement:1,seriesColor:0,page:1,calculatedMinMaxBounds:0,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=p}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let o=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!l(e.get("layer"),this.layer)&&(o=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(o=!0),e.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(o=!0),o&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,o){o?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){this.activeColorMatch=e?.get(0)===void 0,this.model.colorMatch&&e?.forEach((o,s)=>{let a;o&&("fillSymbol"in o?a=o.fillSymbol?.color:"lineSymbol"in o&&(a=o.lineSymbol.color)),e?.get(0)!==void 0&&a!==void 0&&!l(this.model.getSeriesColor(s),a)&&this.model.setSeriesColor(a,s)})}async updateFetchLayerFieldsInfo(e){let o=e??this.model.config,s=this.layer;if(!s){let a=d(o)?o.iLayer:void 0;a&&(s=await g(a))}s&&(await s.load(),this.layerFieldsInfo=m(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}render(){let e;switch(this.page){case t.Data:e=i`<arcgis-charts-config-box-plot-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-box-plot-data>`;break;case t.Series:e=i`<arcgis-charts-config-box-plot-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-box-plot-series>`;break;case t.Axes:e=i`<arcgis-charts-config-axes .model=${this.model} show-min-y-bound-option show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case t.Guides:e=i`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case t.Format:e=i`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case t.General:e=i`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};h("arcgis-charts-config-box-plot",r);return r},a)
|
package/dist/cdn/U6KRV4RA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./MS6S4O2A.js";import{G as f,I as c,c as i}from"./27C6PCQ2.js";import{d}from"./OZSOICXE.js";export default $arcgis.t(([{d:L,e:n}])=>{var v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,y=(t,a,e,l)=>{for(var o=g(a,e),r=t.length-1,b;r>=0;r--)(b=t[r])&&(o=b(a,e,o)||o);return o&&v(a,e,o),o};function h(t){return t!==void 0&&"dataLabelsSymbol"in t}var m=(t,a)=>{if(a!==void 0)return t.series[a]?.dataLabels?.content;for(let e of t.series)if(e.dataLabels!==void 0)return e.dataLabels.content},p=(t,a,e)=>{let l=e!==void 0?[a.series[e]]:a.series;for(let o of l)o!==void 0&&((o.dataLabels===void 0||t===void 0)&&(o.dataLabels=c({text:"",visible:!0,font:f(i.DataLabels),type:i.DataLabels})),t!==void 0&&(o.dataLabels.content=d(t)))},s=class extends L{get dataLabelsSymbol(){return m(this._config)}set dataLabelsSymbol(a){p(a,this._config)}getDataLabelsSymbol(a){return m(this._config,a)}setDataLabelsSymbol(a,e){p(a,this._config,e)}};y([n],s.prototype,"dataLabelsSymbol");y([n],s.prototype,"setDataLabelsSymbol");return{a:h,b:s}},a)
|
package/dist/cdn/UD7VIM4I.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as d}from"./GSCC3FON.js";import{a as m}from"./EYSSZWSX.js";import{d as p}from"./SKI5Z6UH.js";import"./OZSOICXE.js";import"./4DZ3REFU.js";import{A as r,B as n,C as s,H as h,g as l,i as a,n as i,z as o}from"./YF6ML4P6.js";import{k as e}from"./FHN6CIIO.js";import"./TIWCUJOG.js";var g={selectChartComponent:"select-chart-component",panel:"panel"},C=l`.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)}.select-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}calcite-block{width:var(--arcgis-charts-config-calcite-block-default-width);height:var(--arcgis-charts-config-calcite-block-default-height);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.header{margin:0}.panel{max-height:60vh}`,c=class extends n{constructor(){super(...arguments),this._messages=m(),this.selectChartTypePopover=o(),this.open=!1,this.arcgisChartsConfigPopoverClose=i(),this.arcgisChartsConfigSelectChartTypeChange=i()}static{this.properties={messageOverrides:0,headerTitle:1,layerId:1,layerType:1,isRasterBarChartSupported:5,open:5,referenceElement:0,popoverPlacement:1,selectedModelType:1}}static{this.styles=C}async reposition(){await this.selectChartTypePopover.value?.reposition()}updated(){d(this.selectChartTypePopover.value,this.open)}buildRasterChartTypesList(){let t=this.isRasterBarChartSupported===!0;return a`<calcite-list label @click=${this.onChartTypeClick}>${t?a`<calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType===e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item>`:null}<calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType===e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType===e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item></calcite-list>`}buildChartTypesList(){let t;return p(this.layerType)?t=this.buildRasterChartTypesList():t=a`<calcite-list label @click=${this.onChartTypeClick}><calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType===e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.lineChart} .value=${e.LineChart} .selected=${this.selectedModelType===e.LineChart}><calcite-icon slot=content-start icon=graph-time-series></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.pieChart} .value=${e.PieChart} .selected=${this.selectedModelType===e.PieChart}><calcite-icon slot=content-start icon=pie-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType===e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType===e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.boxPlot} .value=${e.BoxPlot} .selected=${this.selectedModelType===e.BoxPlot}><calcite-icon slot=content-start icon=box-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.calendarHeatChart} .value=${e.HeatChart} .selected=${this.selectedModelType===e.HeatChart}><calcite-icon slot=content-start icon=calendar-heat-chart></calcite-icon></calcite-list-item></calcite-list>`,t}onChartTypeClick(t){t.target?.localName==="calcite-list-item"?this.selectedModelType=t.target?.value:this.selectedModelType=t.target?.parentNode?.value,this.arcgisChartsConfigSelectChartTypeChange.emit()}popoverOpen(){setTimeout(()=>{this.selectChartTypePopover.value?.setFocus()},250)}popoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit(),setTimeout(()=>{this.referenceElement?.setFocus()},250)}render(){return a`<div class=${s({[g.selectChartComponent]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top","bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${r(this.selectChartTypePopover)}><calcite-panel class=${s(g.panel)} .heading=${this.headerTitle??this._messages.chooseChartType} closable @calcitePanelClose=${this.popoverClose} .closed=${!this.open}>${this.buildChartTypesList()}</calcite-panel></calcite-popover></div>`}};h("arcgis-charts-config-select-chart-type-popover",c);export{c as ArcgisChartsConfigSelectChartTypePopover};
|
package/dist/cdn/UQS25TZX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as ie}from"./PIGINE4M.js";import{a as Q}from"./H5VCT3XP.js";import{a as ee}from"./GSCC3FON.js";import{b as T}from"./MXTS44AG.js";import d from"./OSBZ6SF2.js";import"./5AKOPV7Z.js";import{a as j}from"./EYSSZWSX.js";import{l as Y,n as W,o as H}from"./O6GVF76X.js";import b from"./WCONWQ4A.js";import a from"./STZNZAAW.js";import"./SKI5Z6UH.js";import"./B6APNE72.js";import{J as U}from"./27C6PCQ2.js";import{b as z,f as m}from"./WKF53DYD.js";import{d as D}from"./OZSOICXE.js";import"./4DZ3REFU.js";import{A as h,B as X,C as o,D as S,F as w,H as N,g as R,i as r,n as V,z as c}from"./YF6ML4P6.js";import"./QGHI4FS2.js";import{j as v}from"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{a as q}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{La:Z,Ma:P,Na:k,la:O,ma:g,uc:p},,{h:C,i:x,n:E,p:J,r:K}])=>{var a={row:"row",column:"column",colorPicker:"color-picker"},se=R`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`,_=class extends X{constructor(){super(...arguments),this._messages=j(),this.startCalciteInput=c(),this.endCalciteInput=c(),this.startDateCalciteInput=c(),this.endDateCalciteInput=c(),this.startTimeCalciteInput=c(),this.endTimeCalciteInput=c(),this.colorElement=c(),this.colorChange=e=>{let i=e.detail,t=this.model.getGuideStart(this.index,this.orientation),n=this.model.getGuideEnd(this.index,this.orientation);if(p(t,n)===m.SLS){let l=D(T.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},color:i};this.lineStyleChange({detail:d})}else this.setColor(i)},this.symbolChange=e=>{let i=e?.detail,t=this.model.getGuideStart(this.index,this.orientation),n=this.model.getGuideEnd(this.index,this.orientation);if(p(t,n)===m.SLS){let l=D(T.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},...g(i)?i:{}};this.lineStyleChange({detail:d})}else i?.color!==void 0&&this.setColor(i.color)},this.onModelConfigChange=()=>{this.requestUpdate()},this.guidePopover=null,this.isGuideStartInvalid=!1,this.isGuideEndInvalid=!1,this.latestGuidePosition=0,this.arcgisChartsConfigGuideChange=V()}static{this.properties={guidePopover:16,isGuideStartInvalid:16,isGuideEndInvalid:16,messageOverrides:0,model:0,timeZone:1,calculatedMinMaxBounds:0,index:9,orientation:1,latestGuidePosition:9}}static{this.styles=se}get isXAxisDateField(){return this.orientation===v.X&&Y(this.model)&&this.model.getAxisValueFormat(0)?.type===q.DateAxisFormat}load(){this.modelChange(this.model)}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}loaded(){this.isXAxisDateField&&this.setGuideDateTimeRange()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}onColorElementSelect(e){this.guidePopover?.open===!0?this.removeGuidePopover():this.setupGuidePopover(e)}setGuideStart(e){let{value:i}=e.target;this.startCalciteInput.value!==void 0&&(i===""?(this.isGuideStartInvalid=!0,C({inputElement:this.startCalciteInput.value,status:x.INVALID})):(this.model.setGuideStart(i,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.isGuideStartInvalid=!1,C({inputElement:this.startCalciteInput.value,status:x.IDLE}))),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideEnd(e){let{value:i}=e.target;this.endCalciteInput.value!==void 0&&(this.model.setGuideEnd(i===""?null:i,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.isGuideEndInvalid=!1,C({inputElement:this.endCalciteInput.value,status:x.IDLE})),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideDateTimeRange(){let e=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.minimum,i=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.maximum,t=typeof e=="number"?new Date(e):new Date,n=typeof i=="number"?new Date(i):new Date,l=new window.Intl.DateTimeFormat().resolvedOptions().timeZone,s=Z(this.timeZone)??l,d=P(t,s),$=k(t,s),G=P(n,s),te=k(n,s),A=this.startDateCalciteInput.value?.value??"",f=A===""?d:A,M=this.startTimeCalciteInput.value?.value??"",F=M===""?$:M,b=this.endDateCalciteInput.value?.value??"",y=b===""?G:b,L=this.endTimeCalciteInput.value?.value??"",B=L===""?te:L,I=!1;if(!Array.isArray(f)&&f!==void 0&&F!==void 0){let u=`${f}T${F}`;this.model.setGuideStart(u,this.index,this.orientation),I=!0}if(!Array.isArray(y)&&y!==void 0&&B!==void 0){let u=b===""?void 0:`${y}T${B}`;this.model.setGuideEnd(u,this.index,this.orientation),I=!0}I&&(this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.guidePopover?.open===!0&&this.removeGuidePopover())}setGuideName(e){let i=e.target.value;this.model.setGuideName(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideLabel(e){let i=e.target.value;this.model.setGuideLabelText(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideRendered(e){let i=e.target?.selectedItem?.value;if(i!==void 0){let t=i===this._messages.inFront;this.model.setGuideAbove(t,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}}lineStyleChange(e){let i=e.detail;this.model.setGuideStyle(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setupGuidePopover(e){e.stopImmediatePropagation();let i=this.model.getGuideStyle(this.index,this.orientation),t=this.model.getGuideStart(this.index,this.orientation),n=this.model.getGuideEnd(this.index,this.orientation),l;p(t,n)===m.SLS?l=g(i)?i:void 0:l=i?.color;let s=this.colorElement.value;Array.isArray(i?.color)?(this.guidePopover=w(r`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`),this.guidePopover!==void 0&&!document.body.contains(this.guidePopover)&&document.body.appendChild(this.guidePopover)):this.removeGuidePopover()}removeGuidePopover(){this.guidePopover!==null&&this.guidePopover!==void 0&&(this.guidePopover=ee(this.guidePopover))}setColor(e){let i=U({opacity:0}),t=this.model.getGuideStyle(this.index,this.orientation),n={...O(t)?t:{},type:m.SFS,color:e,outline:i};this.model.setGuideStyle(n,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}getDateStringFromBound(e){return typeof e=="string"?e.split("T")[0]:""}getTimeStringFromBound(e){return typeof e=="string"?e.split("T")[1]:""}createTooltip(e){let i=e.target,t="";switch(i.icon){case"view-visible":t=this._messages.hideGuide??"";break;case"view-hide":t=this._messages.showGuide??"";break;default:t=this._messages.deleteGuide??"";break}this.tooltip=w(r`<calcite-tooltip style=${S({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}toggleGuide(){let e=this.model.getGuideVisibility(this.index,this.orientation);this.model.setGuideVisibility(!e,this.index,this.orientation)}destroyTooltip(){K(this.tooltip)}deleteGuide(){this.destroyTooltip(),this.orientation===v.X&&W(this.model)?this.model.deleteXAxisGuide(this.index):this.orientation===v.Y&&H(this.model)&&this.model.deleteYAxisGuide(this.index),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!0})}renderColorElement(){let e=this.model.getGuideStyle(this.index,this.orientation),[i,t,n,l]=[...e?.color??[1,1,1,255]],s=this.model.getGuideStart(this.index,this.orientation),d=this.model.getGuideEnd(this.index,this.orientation),$=g(e)?J(e.style):z.Solid,G=p(s,d)===m.SLS?`line-${$}`:"square-f";return r`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(a.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${h(this.colorElement)}><calcite-icon slot=content-end .icon=${G} style=${S({color:`rgba(${i},${t},${n},${l/255})`})}></calcite-icon></calcite-list-item></calcite-list>`}render(){let e=this.model.getGuideStart(this.index,this.orientation),i=this.model.getGuideEnd(this.index,this.orientation),t=this.model.getGuideName(this.index,this.orientation),n=this.model.getGuideLabelText(this.index,this.orientation),l=this.model.getGuideAbove(this.index,this.orientation),s=this.model.getGuideVisibility(this.index,this.orientation),d=this.isXAxisDateField;return r`<calcite-block .heading=${t??""} .expanded=${this.latestGuidePosition===ie(this.index,this.orientation,this.model)} collapsible .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}}><calcite-action slot=actions-end text .icon=${s?"view-visible":"view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.start}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.startDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${E} number-button-type=none .value=${e?.toString()} ${h(this.startCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideStartInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label class=${o(a.column)}>${this._messages.end}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(i)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.endDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${E} number-button-type=none .value=${i?.toString()} ${h(this.endCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideEndInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div>${d?Q("time-picker-row",r`<div class=${o(a.row)}>${e!=null?r`<calcite-label class=${o(a.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}${i!=null?r`<calcite-label class=${o(a.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(i)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}</div>`):null}<div class=${o(a.row)}><div class=${o(a.column)}>${this.renderColorElement()}</div></div><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.guideName}<calcite-input type=text .value=${t} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${n} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`}};N("arcgis-charts-config-guide",_);return _},a,b,d)
|
package/dist/cdn/UZRN5642.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import y from"./Z4MPWA44.js";import x from"./RD2X624K.js";import"./INYMF2BQ.js";import w from"./YW3BJIXP.js";import v from"./QZYHN3H3.js";import u from"./J2HDKV47.js";import t from"./3DUAM7RK.js";import s from"./3PZWFW3T.js";import r from"./FGJPWWIL.js";import q from"./U6KRV4RA.js";import p from"./GPQCW5EO.js";import o from"./D66KCKCQ.js";import n from"./HZQLPN4H.js";import k from"./N4RM5VSS.js";import j from"./XUY3ZVKB.js";import"./O6GVF76X.js";import i from"./GD6OHLIR.js";import h from"./DGDPNLJ6.js";import g from"./7GM6BQNN.js";import f from"./MS6S4O2A.js";import e from"./5LR2NVD4.js";import b from"./WCONWQ4A.js";import a from"./STZNZAAW.js";import"./SKI5Z6UH.js";import"./B6APNE72.js";import{C as c,ca as l,i as S,oa as d}from"./27C6PCQ2.js";import"./WKF53DYD.js";import"./OZSOICXE.js";import"./4DZ3REFU.js";import"./YF6ML4P6.js";import"./QGHI4FS2.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{a as m}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{Wb:o},{s:y},,{e:g},,,,,,,,,,,,,,{ta:f},{b:u,c:p,e:I},{b:b,d:v,f:_,h:k,j:x,t:w},L])=>{var F=Object.defineProperty,D=Object.getOwnPropertyDescriptor,M=(a,e,s,t)=>{for(var i=D(e,s),r=a.length-1,h;r>=0;r--)(h=a[r])&&(i=h(e,s,i)||i);return i&&F(e,s,i),i},n=class extends I{constructor(){super(...arguments),this._chartType=m.LineSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=d(this.commonStrings);return e.series=[l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=c({colorIndex:e,opacity:S});if(p(s,e,this._config),_(s,e,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(e),i=f({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&u(i??t,e,this._config)}b({style:this.defaultSeries?.lineSymbol?.style,seriesIndex:e,config:this._config}),v({width:this.defaultSeries?.lineSymbol?.width,seriesIndex:e,config:this._config}),k({style:this.defaultSeries?.markerSymbol?.style,seriesIndex:e,config:this._config}),x({size:this.defaultSeries?.markerSymbol?.size,seriesIndex:e,config:this._config})}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let i=f({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),r=this.getSeriesName(t);i!==void 0&&i!==this.layerInfo.objectIdField&&i!==r&&(s=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){s=!0;break}}return e||s}};M([g],n.prototype,"resetSeriesStyling");var j=[w,L];y(n,j);return n},a,b,e,f,g,h,i,j,k,n,o,p,q,r,s,t,u,v,w,x,y)
|
package/dist/cdn/VBYDJXIO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as u}from"./GSCC3FON.js";import{a as f}from"./EYSSZWSX.js";import a from"./STZNZAAW.js";import"./SKI5Z6UH.js";import"./B6APNE72.js";import{i as C}from"./27C6PCQ2.js";import"./WKF53DYD.js";import"./OZSOICXE.js";import"./4DZ3REFU.js";import{A as m,B as d,C as i,H as g,g as c,i as p,n as s,z as h}from"./YF6ML4P6.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{dd:v}])=>{var x={panelChildrenContainer:"panel-children-container"},y=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{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}`,o=class extends d{constructor(){super(...arguments),this._messages=f(),this.popoverElement=h(),this.open=!1,this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSeriesPopoverColorChange=s(),this.arcgisChartsConfigSeriesPopoverNameChange=s()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedSeriesIndex:9,placement:1,open:5,nullCategory:0}}static{this.styles=y}async reposition(){await this.popoverElement.value?.reposition()}updated(){u(this.popoverElement.value,this.open)}seriesNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSeriesIndex:this.selectedSeriesIndex??-1})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,r,n]=t,l=C*255;this.selectedColor=[a,r,n,l],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[a,r,n,l]})}render(){let e=v(this.nullCategory)?.color??this.selectedColor,t=this.nullCategory?.text??this.selectedName;return p`<div><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(x.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${i(x.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};g("arcgis-charts-config-bar-chart-series-popover",o);return o},a)
|
package/dist/cdn/W4LSI4AL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as E}from"./OZSHGMU6.js";import{a as h}from"./H5VCT3XP.js";import{b as T,c as B}from"./GSCC3FON.js";import d from"./OSBZ6SF2.js";import{k as o}from"./5AKOPV7Z.js";import{a as I}from"./EYSSZWSX.js";import b from"./WCONWQ4A.js";import a from"./STZNZAAW.js";import"./SKI5Z6UH.js";import{n as x}from"./B6APNE72.js";import"./27C6PCQ2.js";import{a as g}from"./WKF53DYD.js";import"./OZSOICXE.js";import"./4DZ3REFU.js";import{A as p,B as k,C as c,D as y,F as P,H as L,g as $,i as n,n as u,z as f}from"./YF6ML4P6.js";import{b as l}from"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{substitute:O},{$b:b,Pa:F,Xb:D},,{a:v,k:m,o:S,r:w}])=>{var a={name:"bar-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",sortMean:"sort-mean",sortMedian:"sort-median",sortOrderPickList:"sort-order-pick-list",panel:"panel"},z=$`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.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-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`,C=class extends k{constructor(){super(...arguments),this._messages=I(),this.picklist=f(),this.placement="leading",this.popoverElement=f(),this.offsetDistance=-200,this.pickListHasChanged=!1,this.open=!1,this.layerFieldsInfo=[],this.isCustomSortDisabled=!1,this.arcgisChartsConfigBoxPlotDataPopoverChange=u(),this.arcgisChartsConfigPopoverClose=u()}static{this.properties={messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,isCustomSortDisabled:5,selectedContent:1}}static{this.styles=z}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"))}updated(){setTimeout(()=>{typeof this.picklist.value?.setFocus=="function"&&this.picklist.value?.setFocus()},v.PopoverTimer),T(this.popoverElement.value,this.open)}selectedContentChange(e,t){this.pickListHasChanged=B(e,t)}closePopover(){if(this.contentKind===o.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigBoxPlotDataPopoverChange,contentKind:this.contentKind};S(e)}this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigBoxPlotDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}buildPickListItem(e){return h(e.name,n`<calcite-list-item .label=${x(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${m(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case o.numericFields:{for(let s=0;s<t;s+=1){let r=this.layerFieldsInfo[s];D(r)&&i.push(this.buildPickListItem(r))}break}case o.category:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let r=0;r<t;r+=1){let d=this.layerFieldsInfo[r];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}case o.splitByField:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let r=0;r<t;r+=1){let d=this.layerFieldsInfo[r];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}}return i}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}buildSortOrder(){let e=Object.keys(l),t;return E(e,i=>i,i=>{let s="";switch(i){case l.xAxisAsc:{t="a-z-down";break}case l.xAxisDesc:{t="a-z-up";break}case l.meanAsc:t="sort-descending",s=a.sortMean;break;case l.meanDesc:{t="sort-ascending",s=a.sortMean;break}case l.medianAsc:{t="sort-descending",s=a.sortMedian;break}case l.medianDesc:{t="sort-ascending",s=a.sortMedian;break}case l.customSort:{t="arrow-up-down";break}}return n`<calcite-list-item .disabled=${this.isCustomSortDisabled&&i===l.customSort} .label=${this._messages[i]} .selected=${this.selectedContent===i} .value=${l[i]} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}><calcite-icon class=${`sort-icon-color ${s}`} slot=content-start .icon=${t}></calcite-icon></calcite-list-item>`})}onNumericFieldSelectionDone(){this.closePopover()}createTooltip(e){if(e.target?.label===this._messages.customSort&&this.isCustomSortDisabled){let t=e.target,i=F(t),s=new Intl.NumberFormat(i).format(v.customSortLimit),r=O(this._messages.customSortLimit??"",{totalLimit:s});this.tooltip=P(n`<calcite-tooltip style=${y({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${r}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}}destroyTooltip(){w(this.tooltip)}renderCategory(){let e=this.buildPickListItems(o.category);return n`<calcite-list label class=${c(a.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(o.numericFields);return n`<calcite-list label class=${c(a.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSplitByField(){let e=this.buildPickListItems(o.splitByField);return n`<calcite-list label class=${c(a.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return n`<calcite-list label class=${`${a.popoverPickList} ${a.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case o.category:e=this.renderCategory();break;case o.numericFields:e=this.renderNumericFields();break;case o.splitByField:e=this.renderSplitByField();break;case o.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===o.numericFields&&(e=n`<div slot=footer><calcite-fab class=${c(a.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=${c(a.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${c(a.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(a.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};L("arcgis-charts-config-box-plot-popover",C);return C},"intl",a,b,d)
|
package/dist/cdn/W5DI7RYL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"./OSBZ6SF2.js";import"./5AKOPV7Z.js";import{a as S}from"./EYSSZWSX.js";import d from"./WCONWQ4A.js";import b from"./STZNZAAW.js";import"./SKI5Z6UH.js";import"./B6APNE72.js";import"./27C6PCQ2.js";import{b as t,f as u}from"./WKF53DYD.js";import"./OZSOICXE.js";import"./4DZ3REFU.js";import{A as c,B as g,C as l,E as n,H as y,g as m,i as s,n as a,z as o}from"./YF6ML4P6.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([,,{f:v,g:w,h:r,i:h}])=>{var d={sizeSection:"size-section",dropdownText:"dropdown-text",colorPickerContainer:"color-picker-container"},f=m`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto}:host arcgis-charts-config-colors{padding:var(--arcgis-charts-panel-padding);padding-bottom:1rem}:host .size-section{padding:1rem;display:flex}:host .size-section calcite-label{flex:1 1 0px;width:0}:host .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}:host .color-picker-container{display:flex}:host .color-picker-container calcite-label{flex:1 1 0px;width:0}:host .color-picker-container calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}`,p=class extends g{constructor(){super(...arguments),this._messages=S(),this.lineWidthInputElement=o(),this.lineStyleDropdownElement=o(),this.isLineWidthInvalid=!1,this.lineStyle={type:u.SLS},this.open=!1,this.enableClose=!1,this.usePanel=!1,this.arcgisChartsConfigLineStyleChange=a(),this.arcgisChartsConfigLineStyleClose=a()}static{this.properties={isLineWidthInvalid:16,messageOverrides:0,lineStyle:0,header:1,open:5,enableClose:5,usePanel:5}}static{this.styles=f}closePanel(e){e.target.closed&&this.enableClose&&(this.open=!1,this.arcgisChartsConfigLineStyleClose.emit())}colorChange(e){this.lineStyle.color=e.detail,this.emitLineStyleEvent()}lineStyleChange(){let e=this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;this.lineStyle.style!==e&&(this.lineStyle.style=e,this.lineStyle={...this.lineStyle},this.emitLineStyleEvent())}selectedLineStyle(){let e,i;switch(this.lineStyle?.style){case t.Dot:e="line-dotted",i=this._messages.dot??"";break;case t.Dash:e="line-dashed",i=this._messages.dash??"";break;case t.Solid:default:e="line-solid",i=this._messages.solid??"";break}return{icon:e,style:i}}widthChange(){let e=this.lineWidthInputElement.value?.value;e!==void 0&&v(e,this.lineWidthInputElement.value?.min,this.lineWidthInputElement.value?.max)?(this.lineStyle.width=Number.parseInt(e),this.emitLineStyleEvent(),this.lineWidthInputElement.value&&(this.isLineWidthInvalid=!1,r({inputElement:this.lineWidthInputElement.value,status:h.IDLE}))):this.lineWidthInputElement.value&&(this.isLineWidthInvalid=!0,r({inputElement:this.lineWidthInputElement.value,status:h.INVALID}))}emitLineStyleEvent(){Number.isNaN(Number.parseInt(this.lineStyle?.color?.[0]?.toString()??""))&&(this.lineStyle.color=void 0),this.arcgisChartsConfigLineStyleChange.emit(this.lineStyle)}render(){let e=[s`<div class=${l(d.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${c(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.selectedLineStyle().icon} slot=trigger kind=neutral appearance=outline-fill scale=m><label class=${l(d.dropdownText)}>${this.selectedLineStyle().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.lineStyle?.style===t.Solid} accesskey=${t.Solid??n}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.lineStyle?.style===t.Dot} accesskey=${t.Dot??n}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.lineStyle?.style===t.Dash} accesskey=${t.Dash??n}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${w(this.lineStyle?.width)} @calciteInputInput=${this.widthChange} ${c(this.lineWidthInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidLineWidth} .isInvalid=${this.isLineWidthInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div>`,s`<div class=${l(d.colorPickerContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${this.lineStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div>`];return this.usePanel?s`<calcite-panel .heading=${this.header??this._messages.header} .closed=${!this.open} .closable=${this.enableClose} @calcitePanelClose=${this.closePanel}>${e}</calcite-panel>`:e}};y("arcgis-charts-config-line-style",p);return p},b,d,e)
|
package/dist/cdn/WCM6N6ME.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as k}from"./OZSHGMU6.js";import{a as $}from"./H5VCT3XP.js";import{b as _,c as B}from"./GSCC3FON.js";import d from"./OSBZ6SF2.js";import{f as s}from"./5AKOPV7Z.js";import{a as f}from"./EYSSZWSX.js";import c from"./WCONWQ4A.js";import b from"./STZNZAAW.js";import"./SKI5Z6UH.js";import{n as A,u as S}from"./B6APNE72.js";import{Aa as x,Ba as E}from"./27C6PCQ2.js";import{a as I}from"./WKF53DYD.js";import{b as v}from"./OZSOICXE.js";import"./4DZ3REFU.js";import{A as p,B as P,C as o,H as F,g as L,i as a,n as u,z as h}from"./YF6ML4P6.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{k as r,o as m}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{$b:z,Xb:b,Yb:D,_b:T},,{a:w,c:C,g:K,k:d,o:N}])=>{var H=L`.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}`,c={name:"line-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",sizeSection:"size-section",applyButton:"apply-button"},y=class extends P{constructor(){super(...arguments),this._messages=f(),this.commonStrings=f({name:"common",blocking:!0}),this.picklist=h(),this.intervalSizeElement=h(),this.intervalTypeElement=h(),this.popoverElement=h(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigLineChartDataPopoverChange=u(),this.arcgisChartsConfigLineChartPopoverClose=u()}static{this.properties={aggregationLabels:16,timeAggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=H}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=C.map(n=>x(n,this.commonStrings));v(this.aggregationLabels,t)||(this.aggregationLabels=t);let i=[m.Start,m.End].map(n=>E(n,this.commonStrings));v(this.timeAggregationLabels,i)||(this.timeAggregationLabels=i)}updated(){setTimeout(()=>{typeof this.picklist.value?.setFocus=="function"&&this.picklist.value?.setFocus()},w.PopoverTimer),_(this.popoverElement.value,this.open)}selectedContentChange(e,t){this.pickListHasChanged=B(e,t)}buildAggregationPickListItems(){return k(C,e=>e,(e,t)=>a`<calcite-list-item .label=${this.aggregationLabels?.[t]} .value=${e} .selected=${d(e,this.selectedContent)}></calcite-list-item>`)}buildIntervalAlignmentPickListItems(){let e=[m.Start,m.End];return k(e,t=>t,(t,i)=>a`<calcite-list-item .label=${this.timeAggregationLabels?.[i]} .value=${t} .selected=${d(t,this.selectedContent)}></calcite-list-item>`)}buildPickListItem(e){return $(e.name,a`<calcite-list-item .label=${A(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${d(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case s.numericFields:{for(let n=0;n<t;n+=1){let l=this.layerFieldsInfo?.[n];l&&b(l)&&i.push(this.buildPickListItem(l))}break}case s.xAxisField:{for(let n=0;n<t;n+=1){let l=this.layerFieldsInfo?.[n];l&&(b(l)||D(l)||T(l))&&i.push(this.buildPickListItem(l))}break}case s.splitByField:{let n=$(" ",a`<calcite-list-item label=" " value=" " .selected=${d("",this.selectedContent)}></calcite-list-item>`);i.push(n);for(let l=0;l<t;l+=1){let g=this.layerFieldsInfo?.[l];g&&(z(g)||g.type===I.String)&&i.push(this.buildPickListItem(g))}break}}return i}closePopover(){if(this.contentKind===s.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigLineChartDataPopoverChange,contentKind:this.contentKind};N(e)}this.open=!1,this.arcgisChartsConfigLineChartPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigLineChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}intervalChange(){let e=Number.parseInt(this.intervalSizeElement.value?.value??""),t=this.intervalTypeElement.value?.selectedOption?.value;!Number.isNaN(e)&&e>0&&this.arcgisChartsConfigLineChartDataPopoverChange.emit({contentKind:this.contentKind,value:[{intervalSize:e,intervalUnits:t}]}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderXAxisField(){let e=this.buildPickListItems(s.xAxisField);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(s.numericFields);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSplitByField(){let e=this.buildPickListItems(s.splitByField);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderIntervalAlignment(){let e=this.buildIntervalAlignmentPickListItems();return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderInterval(){let e=this.selectedContent,t=[r.Second,r.Minute,r.Hour,r.Day,r.Week,r.Month,r.Year];return a`<div><div class=${o(c.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${K(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(i=>a`<calcite-option .value=${i} .label=${S(i,this._messages)} .selected=${e?.unit===i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(c.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`}renderPopoverInfo(){let e;switch(this.contentKind){case s.aggregation:e=this.renderAggregationType();break;case s.xAxisField:e=this.renderXAxisField();break;case s.numericFields:e=this.renderNumericFields();break;case s.splitByField:e=this.renderSplitByField();break;case s.intervalAlignment:e=this.renderIntervalAlignment();break;case s.interval:e=this.renderInterval();break}return e}render(){let e;return this.contentKind===s.numericFields&&(e=a`<div slot=footer><calcite-fab class=${o(c.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>`),a`<div><calcite-popover class=${o(c.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(c.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};F("arcgis-charts-config-line-chart-popover",y);return y},b,c,d)
|
package/dist/cdn/WCONWQ4A.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./STZNZAAW.js";import{e as b}from"./SKI5Z6UH.js";import{C as J,j as H,n as F,r as D}from"./B6APNE72.js";import{Aa as U,G as P,I as T,K as $,_ as E,c as M,ya as R}from"./27C6PCQ2.js";import{a as S}from"./AUKJ4CBR.js";import{a as n,b as p,f as k,h as V}from"./BNAX4Y53.js";export default $arcgis.t(([{substitute:z},{B:I,Kb:O,Wb:C,bc:K,cc:A,ha:N,wc:Y,za:L}])=>{var ge=t=>{let{config:e,axisIndex:i,callback:a}=t;[i!==void 0?e.axes?.[i]:e.axes].flat().forEach((s,r)=>{s!==void 0&&a(s,i!==void 0?i:r)})},fe=t=>{let{config:e,axisIndex:i,callback:a}=t;[i!==void 0?e.axes?.[i]:e.axes].flat().forEach(s=>{s!==void 0&&L(s.valueFormat)&&a(s)})};function xe(t,e,i){let a=t?.axes?.[e];a?.title!==void 0?a.title.content.text=i:a!==void 0&&(a.title=T({text:i,visible:!0,font:P(M.AxisTitle)}))}function de(t){let{config:e,layerInfo:i,commonStrings:a,numericFields:s,aggregationType:r}=t,o="";if(e)if(H(e)===k.Stacked100)o=a.utilsStrings.statistics.percent;else{let l=U(r,a);if(e.series[0]?.type===n.HeatSeries)o=F(i.layerFieldsInfo,e.series[0].y);else if(s.length===1){let f=F(i.layerFieldsInfo,s[0]),x=C(i.layer).idField;r===p.NoAggregation?o=f:r===p.Count&&x!==void 0&&s[0]===x?o=a.utilsStrings.statistics.count:o=z(a.axisLabels.aggregationOfFieldName,{aggregation:l,fieldName:f})}else s.length>1&&(r===p.NoAggregation?o=a.axisLabels.values:o=z(a.axisLabels.aggregationOfValues,{aggregation:l}))}return o}var W=(t,e,i)=>t.axes?.[e]??E(i,t.type)[e],X=t=>{let{config:e,axis:i,axisIndex:a}=t;e.axes!==void 0&&(e.axes[a]=i)},ue=t=>{let{config:e,axisIndex:i,isMax:a}=t,s=Number.NaN;return a?s=e.axes?.[i]?.maximum:s=e.axes?.[i]?.minimum,s??Number.NaN},G=t=>{let{config:e,value:i,axisIndex:a,isMax:s}=t,r=e?.axes?.[a];r!==void 0&&(s?r.maximum=i:r.minimum=i)},me=t=>t.axes?.[0]?.valueFormat??$(),ye=(t,e,i)=>{let a=W(t,0,e);if(a!==void 0&&i!==void 0){let s={...a,valueFormat:i};X({config:t,axis:s,axisIndex:0})}},pe=(t,e,i)=>{let a=t.axes?.[e];a!==void 0&&(a.integerOnlyValues=i)},ae=t=>{let e=S(t.series);return e===n.BarSeries||e===n.ComboLineAndBarSeries||e===n.LineSeries},ie=t=>{let{axisIndex:e,config:i,isMultiAxis:a}=t,s=!1;return e===0||e===1&&a?s=!0:e===2&&(s=ae(i)),s},ve=t=>{let{axisIndex:e,func:i,config:a}=t;return ie({axisIndex:e,config:a,isMultiAxis:!0})?i(e):void 0},Q=(t,e)=>{let i,a=e.axes?.[t]?.valueFormat;return(t===0||t>=1&&L(a))&&(i=a),i},he=t=>{let{config:e,commonStrings:i,valueFormat:a,axisIndex:s=0}=t,r=W(e,s,i);if(r!==void 0&&a!==void 0){let o={...r,valueFormat:a};X({config:e,axis:o,axisIndex:s})}},Se=(t,e)=>t.axes?.[e]?.isLogarithmic??!1,Fe=t=>{let{config:e,isLogarithmic:i,axisIndex:a}=t,s=e.axes?.[a];s&&(s.isLogarithmic=i,G({config:e,value:null,axisIndex:a,isMax:!0}),G({config:e,value:null,axisIndex:a,isMax:!1}))},be=t=>{let{config:e,scrollbar:i,axisIndex:a}=t;e.axes?.[a]!==void 0&&(e.axes[a].scrollbar=i)};async function Ie(t){let{config:e,layer:i,xAxisField:a,splitByField:s,layerFieldsInfo:r,aggregationFields:o,fetchNullValues:l,chartLimits:f,errorStrings:x}=t,u=r.filter(h=>h.name===s)[0]?.type,m=l!==!0?`${s} IS NOT NULL`:"",c=a&&l!==!0?`${a} IS NOT NULL`:"",B=S(e?.series),{where:Z}=e?.dataFilters??{},_={where:I([Z,m,c]),orderByFields:D(s)?[]:[`${s} ${V.Ascending}`],geometry:e?.dataFilters?.geometry},v="";o?.length===0?v=C(i).idField:o&&([v]=o);let d=i?b(i)?await O({layer:i,category:e?.series[0].x??"",splitByField:s}):await N({queryObject:i,category:e?.series[0].x??"",splitByField:s,queryConfig:_,errorStrings:x}):[],y=R(f),ee={[n.BarSeries]:y.maxBarChartSeriesCount,[n.BoxPlotSeries]:y.maxBoxPlotSeriesCount,[n.LineSeries]:y.maxLineChartSeriesCount,[n.RadarSeries]:y.maxRadarChartSeriesCount},w=(B?ee[B]:void 0)??y.serialChart.series,q=d.length,j=q>w;if(j&&(d=d.slice(0,w)),e){let h=e?.series.map(g=>Y({where:g.query?.where})?.toString()??"").filter(g=>g!==void 0&&g!=="");d=J({arrayA:d,arrayB:h,getKey:g=>g===null?null:g?.toString()})}return{categoriesArray:d,seriesLimitReached:j,totalSeriesCount:q,splitByFieldType:u,numericalField:v}}function Ne(t,e){let i=e==="";for(let a of t)if(e===a.name){i=!0;break}return i}function Le(t,e){let i=K(t),a=e.length===0,s=0;for(let r of e){for(let o of i)if(r===o&&(s+=1),s===e.length){a=!0;break}if(a)break}return a}function Oe(t,e){e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(a=>{Object.defineProperty(t.prototype,a,Object.getOwnPropertyDescriptor(i.prototype,a)||Object.create(null))})})}async function Ce(t){let{layerInfo:e,config:i,category:a,errorStrings:s}=t,{layer:r}=e,{where:o}=i?.dataFilters??{},{fetchNullValues:l}=i?.series?.[0]?.query??{},f=l!==!0?`${a} IS NOT NULL`:"",x={where:I([o,f]),orderByFields:[],geometry:i?.dataFilters?.geometry},u;return b(r)?u=(await O({layer:r,category:a,fetchNullValues:l})).map(m=>{let c=String(m);return A({queryObject:e.layer,fieldName:a,fieldValue:c})??c}):u=(await N({queryObject:r,category:a,queryConfig:x,errorStrings:s})).map(m=>{let c=String(m);return A({queryObject:e.layer,fieldName:a,fieldValue:c})??c}),u}function Ae(t){return t!==void 0&&Q(0,t)?.type===n.CategoryAxisFormat&&Q(1,t)?.type===n.CategoryAxisFormat}return{a:ge,b:fe,c:xe,d:de,e:ue,f:G,g:me,h:ye,i:pe,j:ve,k:Q,l:he,m:Se,n:Fe,o:be,p:Ie,q:Ne,r:Le,s:Oe,t:Ce,u:Ae}},"intl",a)
|
package/dist/cdn/WHUP2W37.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./WCONWQ4A.js";import{a as o}from"./AUKJ4CBR.js";import{a as e}from"./BNAX4Y53.js";export default $arcgis.t(([{u:n}])=>{function b(s){let c=o(s.series),r="graph-bar";switch(c){case e.LineSeries:{r="graph-time-series";break}case e.PieSeries:{r="pie-chart";break}case e.HistogramSeries:{r="graph-histogram";break}case e.ScatterSeries:{r="graph-scatter-plot";break}case e.BoxPlotSeries:{r="box-chart";break}case e.HeatSeries:{r="calendar-heat-chart";break}case e.BarSeries:}return r}function l(s){let{chartType:c,commonStrings:r,config:i}=s,a=r.utilsStrings,t="";switch(c){case e.HistogramSeries:{t=a.chartType.histogram;break}case e.ScatterSeries:{t=a.chartType.scatterplot;break}case e.BarSeries:{t=a.chartType.barChart;break}case e.LineSeries:{t=a.chartType.lineChart;break}case e.PieSeries:{t=a.chartType.pieChart;break}case e.BoxPlotSeries:{t=a.chartType.boxPlot;break}case e.HeatSeries:{i?t=n(i)?a.chartType.matrixHeatChart:a.chartType.calendarHeatChart:t=a.chartType.heatChart;break}}return t}return{a:b,b:l}},a)
|
package/dist/cdn/WMISD5B2.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{i as we}from"./OTV3YYDU.js";import{c as _}from"./5AKOPV7Z.js";import h from"./7TDWD3GC.js";import g from"./CFMPJGNL.js";import f from"./SQOCBFAR.js";import e from"./QZYHN3H3.js";import d from"./3DUAM7RK.js";import c from"./DGDPNLJ6.js";import a from"./STZNZAAW.js";import{c as D,d as b,r as V}from"./B6APNE72.js";import{Fa as le,Ga as W,Ia as k,Ja as ne,p as N,q as E}from"./27C6PCQ2.js";import{a as re}from"./WKF53DYD.js";import{b as ie,i as U,j as Q,r as v}from"./OZSOICXE.js";import{e as G}from"./FHN6CIIO.js";import{a as se}from"./AUKJ4CBR.js";import{a as O,l as A}from"./BNAX4Y53.js";export default $arcgis.t(([{Fb:de,J:fe,Wb:ce,Yb:me,a:K,cc:ye,k:B,mb:I,v:ue,yc:T},{c:X},{f:be,g:q},{na:te,oa:ve,pa:ae},{m:H,n:Y,o:ee,z:ge},{b:xe},{a:pe,c:Le,d:Fe}])=>{function De(l){let{hour:e,minute:t=0,format:a,locale:o="en-US"}=l,i=a&&Object.keys(a).length>0?a:{hour:"numeric",minute:"2-digit",hour12:!1},r=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);r=new Intl.DateTimeFormat(o,i).format(n),r.includes(":")||r.startsWith("0")&&(r=r.slice(1))}return r}function he(l){let{weekdayNumber:e,format:t,locale:a="en-US",firstDayOfWeek:o=7}=l,i=t&&Object.keys(t).length>0?t:{weekday:"long"},r=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(o)&&o>0&&o<=7){let n=(e+o-1)%7,s=new Date(2e3,0,2+n);r=new Intl.DateTimeFormat(a,i).format(s)}return r}function Oe(l){let{monthNumber:e,format:t,locale:a="en-US"}=l,o=t&&Object.keys(t).length>0?t:{month:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let r=new Date(2e3,e-1);i=new Intl.DateTimeFormat(a,o).format(r)}return i}function Ce(l){let{value:e,formatLocale:t,unit:a,config:o,utilsStrings:i}=l,r={label:"",value:e.toString()};switch(a){case A.DayOfWeek:r={label:i.heatChartCalendarDatePartsUnits.dayOfWeek,value:he({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in o?o.firstDayOfWeek:ne,locale:t})};break;case A.MonthOfYear:r={label:i.heatChartCalendarDatePartsUnits.monthOfYear,value:Oe({monthNumber:e,locale:t})};break;case A.HourOfDay:r={label:i.heatChartCalendarDatePartsUnits.hourOfDay,value:De({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case A.DayOfMonth:r={label:i.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case A.DayOfYear:r={label:i.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case A.MinuteOfDay:r={label:i.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case A.WeekOfYear:r={label:i.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case A.QuarterOfYear:r={label:i.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return r}function ke(l,e){return!ie(l,e)}function ut(l,e){return ke(l,e)||l!==e}function $e(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function Me(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Be=l=>{let{value:e,quoteAll:t=!1,locale:a,roundDecimals:o}=l,i=e==null?"":String(e);if(e===null)i="null";else if(e===void 0)i="";else if(typeof e=="number"&&Number.isFinite(e)&&a!==void 0){let r=Me(a),n=o??i.split(r)[1]?.length??2;i=new Intl.NumberFormat(a,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(i))&&(i=`"${i.replace(/"/gu,'""')}"`),i};function ft(l,e={}){let{columns:t,delimiter:a,includeHeader:o=!0,quoteAll:i=!1,locale:r,roundDecimals:n}=e,s=l.length===0,f="";if(!s){let c=t??Object.keys(l[0]),u=[],g=a??$e(r??"en");if(r!==void 0&&g!==","&&(f+=`sep=${g}\r
|
|
3
|
-
`),o){let w=c.map(x=>Be({value:x,quoteAll:i,locale:r,roundDecimals:n}));u.push(w.join(g))}l.forEach(w=>{let x=c.map(p=>Be({value:w[p],quoteAll:i,locale:r,roundDecimals:n}));u.push(x.join(g))}),f+=u.join(`\r
|
|
4
|
-
`)}return f}function dt(l){let{rawData:e,config:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n,formatLocale:s,utilsStrings:f}=l,c=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=se(t?.series);u===O.HistogramSeries?c=Ve(t,e,i):u===O.HeatSeries?c=Re({config:t,rows:e,layer:a,fieldList:o,formatLocale:s,utilsStrings:f}):u===O.BarSeries||u===O.LineSeries||u===O.ComboLineAndBarSeries?c=Te({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===O.PieSeries?c=Ue({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===O.BoxPlotSeries&&(c=We({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}))}return c}function S(l){let{value:e,originalValue:t,formatter:a}=l,o=e;return a!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(o=a(e,t)),o}function M(l){let{field:e,value:t,dataContext:a,layer:o,fieldList:i,formatter:r,timeZone:n}=l,s;if(t==null||typeof t=="boolean"||Array.isArray(t))s=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let f=Ne({fieldName:e,dataContext:a})??(o!==void 0&&(typeof t=="string"||typeof t=="number")?ye({queryObject:o,fieldName:e,fieldValue:t}):void 0);s=Ae({field:e,value:f??t,fieldList:i,timeZone:n})}else s=t;return S({value:s,originalValue:t,formatter:r})}function $(l){let{field:e,row:t,layer:a,fieldList:o,formatter:i,useRendererLabel:r=!1,timeZone:n}=l,s=Object.keys(t).find(u=>u.toLocaleLowerCase()===e.toLocaleLowerCase()),f=t[s??e],c=fe({value:f,dataContext:t,useRendererLabel:r});return M({field:e,value:c,dataContext:t,layer:a,fieldList:o,formatter:i,timeZone:n})}function Ze(l,e){let t=!1;if(l===e)t=!0;else if(l!=null&&e!=null){let a=String(l),o=String(e);t=a===o||!Number.isNaN(Number(a))&&!Number.isNaN(Number(o))&&Number(a)===Number(o)}return t}function Ne(l){let{fieldName:e,dataContext:t}=l,a=D.rendererSymbolField;return e===a&&t!==void 0?de(t):void 0}function Se(l){let{config:e,splitByField:t,splitByValue:a,splitByValueIndex:o,layer:i,fieldList:r,timeZone:n}=l,s,f=e.series[o??-1]?.name;return f!==void 0?s=f:s=M({field:t,value:a,layer:i,fieldList:r,timeZone:n}),s}function Re(l){let{config:e,rows:t,layer:a,fieldList:o,formatLocale:i,utilsStrings:r}=l,[n]=e.series,s=n.x,f=te(e),c=ae(e),u=q({config:e,xAxisField:s,numericFields:c,aggregationType:f,layer:a,fieldList:o});return t.map(g=>{let w=g[E.xField],x=g[E.yField],p=g[E.valueField],F=typeof p=="number"&&Number.isFinite(p)?p.toFixed(2):p,m={label:n.x,value:w},y={label:n.y,value:x};if(n.xTemporalBinning!==void 0){let{label:d,value:L}=Ce({value:Number(w),config:e,formatLocale:i,unit:n.xTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(m={label:d,value:L})}if(n.yTemporalBinning!==void 0){let{label:d,value:L}=Ce({value:Number(x),config:e,formatLocale:i,unit:n.yTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(y={label:d,value:L})}return{[m.label]:m.value,[y.label]:y.value,[u.description]:F}})}function Ve(l,e,t){let a=xe(l),o=`${v(_.Min)} of ${a}`,i=`${v(_.Max)} of ${a}`,r=`${v(_.Count)} of ${a}`;return e.map(n=>{let{minValue:s,maxValue:f,count:c}=n,u=U(s),g=U(f),w=U(c),x={};if(u&&(x[o]=S({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter})),g&&(x[i]=S({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter})),u&&g){let p=S({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter}),F=S({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter});x.Label=`${String(p??"")} - ${String(F??"")}`}return w&&(x[r]=c),x})}function Ie(l,e,t){let a=Object.keys(l),o=[];return t?o=t.map(i=>a.find(r=>r.toLowerCase().includes(i.toLowerCase()))||""):o=a.filter(i=>i.toLowerCase().includes(e.toLowerCase())),o.filter(i=>i.trim()!=="")}function Te(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=be(e),f=te(e),c=v(f),u=ae(e),g=T(e.series),w=X(e),x=ve(e),{idField:p,isTraditionalTypeOID:F}=ce(ue(a)),m=F&&u.length===1&&u[0]===p,y;switch(g){case b.BarAndLineNoAggregation:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),C={[s]:L};return Object.assign(C,...u.map(P=>({[P]:S({value:d[P],originalValue:d[P]})}))),C});break;case b.BarAndLineFromFields:y=Q(u,t).map(([d,L])=>{let C=I(e.series)[0],P={};return L!==void 0&&d!==void 0&&(P.Field=S({value:L[s],originalValue:L[s],formatter:i?.xAxisLabelFormatter}),P.Value=S({value:L[C],originalValue:L[C]})),P});break;case b.BarAndLineMonoField:case b.BarAndLineMultiFields:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),C={[s]:L};return u.forEach((P,h)=>{let Z=q({config:e,xAxisField:s,numericFields:u,aggregationType:f,layer:a,numericFieldIndex:h,fieldList:o}),R=I(e.series)[h],oe=R,J=R;R.toLowerCase()===Z.name.toLowerCase()&&(oe=Z.description,J=Z.name),C[oe]=S({value:d[J],originalValue:d[J]})}),C});break;case b.BarAndLineSplitBy:y=t.flatMap(d=>{let L=I(e.series),C=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});return w.map((P,h)=>{let Z=Se({config:e,splitByField:x,splitByValue:P,splitByValueIndex:h,layer:a,fieldList:o,timeZone:n});return{[s]:C,[x]:Z,[m?c:`${c} of ${u[0]}`]:d[L[h]]}})});break;case b.BarAndLineSplitByNoAggregation:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),C=Ie(d,u[0],w),P=d[x],h=w.findIndex(R=>Ze(R,P)),Z=Se({config:e,splitByField:x,splitByValue:P,splitByValueIndex:h>=0?h:void 0,layer:a,fieldList:o,timeZone:n});return{[s]:L,[x]:Z,[u[0]]:d[C[0]]}});break;default:y=t}return y}function je(l){if(l.length===0)return[];let e=l.reduce((t,a)=>{for(let[o,i]of Object.entries(a))typeof i=="number"&&Number.isFinite(i)&&(t[o]=(t[o]??0)+i);return t},{});return l.map(t=>{let a={...t};for(let[o,i]of Object.entries(t))if(typeof i=="number"&&e[o]>0){let r=i/e[o];a[`${o}${k}`]=r.toPrecision(2)}return a})}function Ue(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=pe(e),f=T(e.series),c=je(t),u=Le(e),g=f!==b.PieFromFields?G.Category:G.Fields,w=Fe(e,g),x=q({config:e,xAxisField:s,numericFields:u,aggregationType:w,mode:g,layer:a,fieldList:o}),p=I(e.series)[0];return f===b.PieFromCategory||f===b.PieNoAggregation?c=c.map(F=>{let m=$({field:s,row:F,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),y={[s]:m},d=p,L=p;return f===b.PieFromCategory&&p.toLowerCase()===x.name.toLowerCase()&&(d=x.description,L=x.name),y[d]=S({value:F[L],originalValue:F[L]}),y[v(k.trim())]=S({value:F[`${L}${k}`],originalValue:F[`${L}${k}`]}),y}):f===b.PieFromFields&&(c=Q(u,c).map(([F,m])=>{let y={};return m!==void 0&&F!==void 0&&(y.Field=S({value:m[s],originalValue:m[s],formatter:i?.xAxisLabelFormatter}),y.Value=S({value:m[p],originalValue:m[p]}),y[v(k.trim())]=S({value:m[`${p}${k}`],originalValue:m[`${p}${k}`]})),y})),c}function z(l){let{rawData:e,keyBase:t="",outRow:a}=l;for(let[o,i]of Object.entries(B)){let r=e[t+i];r!==void 0&&(a[o]=r);let n=e[t+i+le];n!==void 0&&(a[`${o} Outlier`]=n);let s=e[t+i+W];s!==void 0&&(a[`${o} Z-Score`]=s)}}function j(l){let{rawData:e,outRow:t,config:a,boxPlotSubType:o,layer:i,fieldList:r,timeZone:n}=l,s=H(a),f=ee(a),c=Y(a),u=B.Outlier,g=N;switch(o){case b.BoxPlotC3MonoFieldAndCategory:{let p=Ae({field:s,value:e[s],fieldList:r,timeZone:n});t[s]=p,t[v(B.Outlier)]=e[u];break}case b.BoxPlotC4MultiFieldsAndCategory:{t[v(s)]=e[s],u=`${f.find(p=>Object.keys(e).some(F=>F.toLowerCase().includes(p.toLowerCase())))??""}_${u}`,t[v(B.Outlier)]=e[u];break}case b.BoxPlotC5MonoFieldAndSplitBy:case b.BoxPlotC6MultiFieldsAndSplitBy:{let p=String(e[c]),F=M({field:c,value:p,layer:i,fieldList:r,timeZone:n});u=`${p}_${u}`,t.Field=e[g],t[v(c)]=F,t[v(B.Outlier)]=e[u];break}case b.BoxPlotC7MonoFieldAndCategoryAndSplitBy:{let p=String(e[c]),F=M({field:c,value:p,layer:i,fieldList:r,timeZone:n});u=`${p}_${u}`,t[v(s)]=e[s],t[v(c)]=F,t[v(B.Outlier)]=e[u];break}case b.BoxPlotC1MonoField:case b.BoxPlotC2MultiFields:default:{t.Field=e[g],t[v(B.Outlier)]=e[u];break}}let w=`${u}${W}`,x=e[w];x!==void 0&&(t[`${v(B.Outlier)} Z-Score`]=x)}function Ee(l){let{rawData:e,outRow:t,config:a,splitByValue:o,layer:i,fieldList:r,timeZone:n}=l,s=T(a.series),f=e[`${o}_${B.Average}`],c=Y(a),u=H(a),g="";switch(s){case b.BoxPlotC5MonoFieldAndSplitBy:{g=`${o}_${c}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case b.BoxPlotC6MultiFieldsAndSplitBy:{g=`${o}_${B.Average}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case b.BoxPlotC7MonoFieldAndCategoryAndSplitBy:{g=`${o}_${B.Average}`,t[u]=e[u],t[v(c)]=M({field:c,value:o,layer:i,fieldList:r,timeZone:n});break}}t[v(B.Average)]=f;let w=`${String(f)}${W}`,x=e[w];x!==void 0&&(t[`${v(B.Average)} Z-Score`]=x)}function We(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=T(e.series),f=s,c=ge(e),u=Array.isArray(t)&&t.length>0&&t.every(m=>m[D.boxPlot.boxPlotMeanLineMarkerId]!==void 0);c&&!u&&(s===b.BoxPlotC5MonoFieldAndSplitBy?f=b.BoxPlotC1MonoField:s===b.BoxPlotC6MultiFieldsAndSplitBy?f=b.BoxPlotC2MultiFields:s===b.BoxPlotC7MonoFieldAndCategoryAndSplitBy&&(f=b.BoxPlotC3MonoFieldAndCategory));let g=H(e),w=ee(e),x=X(e),p=Y(e),F;switch(f){case b.BoxPlotC1MonoField:case b.BoxPlotC3MonoFieldAndCategory:{F=t.map(m=>{let y={};if(m[D.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===b.BoxPlotC3MonoFieldAndCategory){let d=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});y[g]=d}else f===b.BoxPlotC1MonoField&&(y.Field=m[N]);z({rawData:m,outRow:y})}return y});break}case b.BoxPlotC2MultiFields:{F=t.flatMap(m=>{let y={};return m[D.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(y.Field=m[N],z({rawData:m,outRow:y})),[y]});break}case b.BoxPlotC4MultiFieldsAndCategory:{F=t.flatMap(m=>w.map(y=>{let d={},L="";if(d.Field=y,m[D.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===b.BoxPlotC4MultiFieldsAndCategory){let C=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=C,L=`${y}_`}z({rawData:m,outRow:d,keyBase:L})}return d}));break}case b.BoxPlotC5MonoFieldAndSplitBy:case b.BoxPlotC6MultiFieldsAndSplitBy:case b.BoxPlotC7MonoFieldAndCategoryAndSplitBy:{F=t.flatMap(m=>{if(m[D.boxPlot.boxPlotOutlierId]){let y={};return j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}),[y]}else return m[D.boxPlot.boxPlotMeanLineMarkerId]?x?.map(y=>{let d={};return Ee({rawData:m,outRow:d,splitByValue:y,config:e,layer:a,fieldList:o,timeZone:n}),d}):x.map(y=>{let d={},L=M({field:p,value:y,layer:a,fieldList:o});if(f===b.BoxPlotC7MonoFieldAndCategoryAndSplitBy){let C=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=C}return m[D.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(d[p]=L,z({rawData:m,outRow:d,keyBase:`${y}_`})),d})});break}default:F=t}return F}var Pe=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},_e=(l,e)=>K.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd"),qe=(l,e)=>K.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),Ae=l=>{let{field:e,value:t,fieldList:a,timeZone:o}=l,i=t,r=a?.find(n=>n.name===e);if(r){let n=r.type===re.DateOnly;me(r)&&!n?i=Pe(t)?qe(new Date(t),o):t:n&&typeof t!="string"&&(i=Pe(t)?_e(new Date(t),o):t)}return i};function ct(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:a,syncViewTimeExtent:o}=l,i=e;return t&&(a===we.Refresh||o)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(i={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),i}return{a:De,b:he,c:Oe,d:Ce,e:ke,f:ut,g:ft,h:dt,i:ct}},a,c,d,e,f,g,h)
|
package/dist/cdn/XUY3ZVKB.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{f as d,h as y,i as T,j as b,k as m}from"./O6GVF76X.js";import c from"./7GM6BQNN.js";import a from"./MS6S4O2A.js";import{n as o}from"./B6APNE72.js";import{p as f}from"./27C6PCQ2.js";export default $arcgis.t(([{d:a,e:x},{c:h,d:g,e:u,f:p}])=>{var P=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=(i,t,e,v)=>{for(var s=j(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&P(t,e,s),s};function k(i){return i!==void 0&&"xAxisTitleText"in i}var l=class extends a{get xAxisTitleText(){return h(0,this._config)}set xAxisTitleText(t){g(t,0,this._config)}};O([x],l.prototype,"xAxisTitleText");var _=Object.defineProperty,C=Object.getOwnPropertyDescriptor,F=(i,t,e,v)=>{for(var s=C(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&_(t,e,s),s};function w(i){return i!==void 0&&"xAxisTitleVisibility"in i}var c=class extends a{get xAxisTitleVisibility(){return u(0,this._config)}set xAxisTitleVisibility(t){p({visibility:t,axisIndex:0,config:this._config})}};F([x],c.prototype,"xAxisTitleVisibility");function B(i){return i!==void 0&&"generateXAxisTitle"in i}var A=class extends a{generateXAxisTitle(){let t=this.layerInfo?.layerFieldsInfo;if(t===void 0)return"";if(T(this)||d(this))return o(t,this.xAxisField);if(y(this))return this.category!==f?o(t,this.category):"";if(b(this))return o(t,this.numericField);if(m(this)){let e=this.xTemporalBinning?.unit;return e!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[e]:""}return""}};return{a:k,b:l,c:w,d:c,e:B,f:A}},a,c)
|
package/dist/cdn/YDODEM4F.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import r from"./3PZWFW3T.js";import q from"./FGJPWWIL.js";import p from"./U6KRV4RA.js";import o from"./GPQCW5EO.js";import n from"./D66KCKCQ.js";import l from"./HZQLPN4H.js";import k from"./N4RM5VSS.js";import j from"./XUY3ZVKB.js";import"./O6GVF76X.js";import i from"./GD6OHLIR.js";import h from"./DGDPNLJ6.js";import g from"./7GM6BQNN.js";import f from"./MS6S4O2A.js";import e from"./5LR2NVD4.js";import d from"./WCONWQ4A.js";import a from"./STZNZAAW.js";import"./SKI5Z6UH.js";import{n as c}from"./B6APNE72.js";import{X as b,Y as m,sa as A}from"./27C6PCQ2.js";import"./WKF53DYD.js";import{b as F,q as y}from"./OZSOICXE.js";import"./4DZ3REFU.js";import"./YF6ML4P6.js";import"./QGHI4FS2.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{a as _}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{substitute:re},{$b:L},{c:v,f:g,i:C,s:M},,{e:l},{c:I},{a:O},P,{b:G,d:H,f:J},{b:j,d:q,f:B},{d:W,e:Y},X,{d:p},{b:K},{a:w,b:z,c:E,d:k},{a:D,b:N}])=>{var R=i=>{g({config:i,value:null,axisIndex:0,isMax:!1}),g({config:i,value:null,axisIndex:0,isMax:!0}),g({config:i,value:null,axisIndex:1,isMax:!1}),g({config:i,value:null,axisIndex:1,isMax:!0})},U=i=>{let{name:e,axisIndex:s,config:r,layerInfo:o}=i,{layerFieldsInfo:t}=o,n=t.find(x=>x.name===e),d=n!==void 0&&L(n);C(r,s,d)};function V(i,e,s){let r=T(i,e,s),o=O(i),t=p(i);return r===o||t}function Z(i,e){let{layerFieldsInfo:s}=e,r=c(s,h(i)),o=I(1,i),t=p(i);return r===o||t}function $(i,e){let{layerFieldsInfo:s}=e,r=u(i),o=c(s,r),t=I(0,i),n=p(i);return o===t||n}function T(i,e,s){let r=u(i),o=h(i),{layerFieldsInfo:t}=e,n=c(t,r),d=c(t,o);return re(s.titleLabels.xAndY,{x:n,y:d})}var ee=i=>{let{x:e,y:s,config:r,layerInfo:o,updateChartTitle:t,updateXAxisTitle:n,updateYAxisTitle:d,commonStrings:x}=i,{layerFieldsInfo:S}=o,ie=c(S,e),se=c(S,s);!y(e)&&n&&v(r,0,ie),!y(s)&&d&&v(r,1,se),!y(e)&&!y(s)&&r.title&&t&&(r.title.content.text=T(r,o,x))},u=i=>i.series[0]?.x??"",h=i=>i.series[0]?.y??"",oe=i=>{let{fieldName:e,config:s,layerInfo:r,commonStrings:o}=i,t=V(s,r,o),n=$(s,r),d=Z(s,r);R(s),s.series[0]&&(s.series[0].x=e),ee({x:e,y:h(s),config:s,layerInfo:r,updateChartTitle:t,commonStrings:o,updateXAxisTitle:n,updateYAxisTitle:d}),U({name:e,axisIndex:0,config:s,layerInfo:r})},te=i=>{let{fieldName:e,config:s,layerInfo:r,commonStrings:o}=i,t=V(s,r,o),n=$(s,r),d=Z(s,r);R(s),s.series[0]&&(s.series[0].y=e),ee({x:u(s),y:e,config:s,layerInfo:r,commonStrings:o,updateChartTitle:t,updateXAxisTitle:n,updateYAxisTitle:d}),U({name:e,axisIndex:1,config:s,layerInfo:r})},ne=i=>{let e={};return i.series[0]?.markerSymbol??e},ae=(i,e)=>{e.series[0]&&(e.series[0].markerSymbol=i)},le=i=>i.series[0]?.locationsOfInterest,de=(i,e)=>{e.series[0]&&(e.series[0].locationsOfInterest=i)},fe=i=>(i.series[0]?.overlays?.trendLine?.visible??!0)&&(i.series[0]?.overlays?.trendLine?.created??!1),ce=i=>{let e={};return i.series[0]?.overlays?.trendLine?.symbol??e},me=(i,e)=>{e.series[0].overlays??=m(),e.series[0].overlays.trendLine??=m().trendLine,e.series[0].overlays.trendLine.symbol=i},ye=(i,e)=>{e.series[0].overlays??=m(),e.series[0].overlays.trendLine??=m().trendLine,e.series[0].overlays.trendLine.visible=i},ge=(i,e)=>{!(e.series[0]?.overlays?.trendLine?.created??!1)&&i&&(e.series[0].overlays??=m(),e.series[0].overlays.trendLine??=m().trendLine,e.series[0].overlays.trendLine.created=i),ye(i,e)},Q=i=>i.series[0]?.sizePolicy??b(),pe=(i,e)=>{e.series[0]&&(i!==void 0&&i.field?.trim()!==""?e.series[0].sizePolicy={...e.series[0].sizePolicy,...i}:e.series[0].sizePolicy=void 0)},ue=i=>i?.series?.[0]?.overlays,he=(i,e)=>{e?.series[0]!==void 0&&(e.series[0].overlays=i)},xe=i=>i.series.find(e=>e.additionalTooltipFields!==void 0)?.additionalTooltipFields??[],ve=(i,e)=>{e.series.forEach(s=>{Array.isArray(i)?s.additionalTooltipFields=i:typeof i=="string"?s.additionalTooltipFields=i.trim()===""?[]:[i]:s.additionalTooltipFields=[]})},Ie=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,f=(i,e,s,r)=>{for(var o=Te(e,s),t=i.length-1,n;t>=0;t--)(n=i[t])&&(o=n(e,s,o)||o);return o&&Ie(e,s,o),o},a=class extends P{constructor(){super(...arguments),this._chartType=_.ScatterSeries}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get xAxisField(){return u(this._config)}set xAxisField(e){oe({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get yAxisField(){return h(this._config)}set yAxisField(e){te({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get showLinearTrend(){return fe(this._config)}set showLinearTrend(e){ge(e,this._config)}get linearTrendSymbol(){return ce(this._config)}set linearTrendSymbol(e){me(e,this._config)}get fixedMarkerSymbol(){return ne(this._config)}set fixedMarkerSymbol(e){ae(e,this._config)}get locationsOfInterest(){return le(this._config)}set locationsOfInterest(e){de(e,this._config)}get sizePolicy(){return Q(this._config)}set sizePolicy(e){let s=Q(this._config);F(s,e)||pe(e,this._config)}get seriesOverlays(){return ue(this._config)}set seriesOverlays(e){e!==void 0&&he(e,this._config)}get additionalTooltipField(){return xe(this._config)}set additionalTooltipField(e){ve(e,this._config)}generateChartTitle(){return T(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){let e=this.yAxisField;return c(this.layerInfo.layerFieldsInfo,e)}generateDefaultConfig(){return A(this.commonStrings)}};f([l],a.prototype,"xAxisField");f([l],a.prototype,"yAxisField");f([l],a.prototype,"showLinearTrend");f([l],a.prototype,"linearTrendSymbol");f([l],a.prototype,"fixedMarkerSymbol");f([l],a.prototype,"locationsOfInterest");f([l],a.prototype,"sizePolicy");f([l],a.prototype,"seriesOverlays");f([l],a.prototype,"additionalTooltipField");var Se=[D,w,z,E,k,K,X,N,G,W,H,Y,j,q,B,J];M(a,Se);return a},"intl",a,d,e,f,g,h,i,j,k,l,n,o,p,q,r)
|
package/dist/cdn/YF6ML4P6.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Et=Symbol(),kt=new WeakMap,M=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Et)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&kt.set(e,t))}return t}toString(){return this.cssText}},jt=o=>new M(typeof o=="string"?o:o+"",void 0,Et),Ce=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new M(e,o,Et)},Ht=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},$t=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return jt(e)})(o):o;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Se,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,tt=globalThis,Vt=tt.trustedTypes,De=Vt?Vt.emptyScript:"",xe=tt.reactiveElementPolyfillSupport,k=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?De:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},j=(o,t)=>!we(o,t),zt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Oe(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=Te(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,s=[...Se(e),...Pe(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift($t(n))}else t!==void 0&&e.push($t(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ht(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:X;this._$Em=n;let a=i.fromAttribute(e,r.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,s,n=!1,r){if(t!==void 0){let i=this.constructor;if(n===!1&&(r=this[t]),s??=i.getPropertyOptions(t),!((s.hasChanged??j)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[k("elementProperties")]=new Map,A[k("finalized")]=new Map,xe?.({ReactiveElement:A}),(tt.reactiveElementVersions??=[]).push("2.1.2");var At=globalThis,Bt=o=>o,et=At.trustedTypes,Wt=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,_t="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,Ct="?"+_,Le=`<${Ct}>`,T=document,V=()=>T.createComment(""),z=o=>o===null||typeof o!="object"&&typeof o!="function",wt=Array.isArray,Jt=o=>wt(o)||typeof o?.[Symbol.iterator]=="function",bt=`[
|
|
3
|
-
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,qt=/>/g,w=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Ot=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=Ot(1),ys=Ot(2),gs=Ot(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Qt=new WeakMap,O=T.createTreeWalker(T,129);function Zt(o,t){if(!wt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Xt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Ft:u[1]!==void 0?i=qt:u[2]!==void 0?(Yt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=n??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Kt:Gt):i===Kt||i===Gt?i=w:i===Ft||i===qt?i=H:(i=w,n=void 0);let v=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+Le:h>=0?(s.push(l),c.slice(0,h)+_t+c.slice(h)+_+v):c+_+(h===-2?a:v)}return[Zt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Xt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=O.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(_t)){let m=u[i++],v=n.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?nt:C[1]==="@"?rt:P}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Yt.test(n.tagName)){let h=n.textContent.split(_),m=h.length-1;if(m>0){n.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],V()),O.nextNode(),c.push({type:2,index:++r});n.append(h[m],V())}}}else if(n.nodeType===8)if(n.data===Ct)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:r}),h+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=z(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=S(o,n._$AS(o,t.values),n,s)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);O.currentNode=n;let r=O.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new L(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new it(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=O.nextNode(),i++)}return O.currentNode=T,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},L=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),z(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Zt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new st(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Qt.get(t.strings);return e===void 0&&Qt.set(t.strings,e=new B(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(V()),this.O(V()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Bt(t).nextSibling;Bt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=S(this,t,e,0),i=!z(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!z(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},rt=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},te={M:_t,P:_,A:Ct,C:1,L:Xt,R:st,D:Jt,V:S,I:L,H:P,N:nt,U:rt,B:ot,F:it},Ue=At.litHtmlPolyfillSupport;Ue?.(B,L),(At.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new L(t.insertBefore(V(),r),r,void 0,e??{})}return n._$AI(o),n};var Tt=globalThis,E=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Tt.litElementHydrateSupport?.({LitElement:E});var Re=Tt.litElementPolyfillSupport;Re?.({LitElement:E});(Tt.litElementVersions??=[]).push("4.2.2");var ee=new Set,se;var oe=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ns=(o,t,e,s)=>{let n=oe(t);if(s?.once){let i=`${o}${n}${e}`;if(ee.has(i))return;ee.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;se?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else se?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},ne=o=>{let t=`[${oe(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Ie=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ls=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],lt=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,U,Us=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},Me=()=>{let o=U;return U=void 0,o},ie=async(o,t)=>{let e=ht(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ae=async o=>{let t=ht(o);return await t.ready,t},ht=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Ie(o))return o;let s=Me();if(s!==void 0)return s},ct=!1,Rs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var ce=(o,t)=>{let e=t>ke?je:t/He,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ke=4e3,je=2e3,He=4;var Ve=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(I),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},ze=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Be=(o=[G(),...re()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>Ve(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){ze(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&I();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Be(void 0,n=>o=n.key,s),s},Fe=We.bind(null,""),de;de=q;var St=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(lt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ne(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),ht}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function le(o){p(o,void 0,this)}var he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var pe=St;var{I:qe}=te,ue=o=>o;var dt=o=>o.strings===void 0,fe=()=>document.createComment(""),qs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(fe(),n),i=s.insertBefore(fe(),n);e=new qe(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=ue(c).nextSibling;ue(s).insertBefore(c,n),c=l}}}return e},Gs=(o,t,e=o)=>(o._$AI(t,e),o),Ge={},me=(o,t=Ge)=>o._$AH=t,Ks=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},pt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ye=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Je(t)}};function Ke(o){this._$AN!==void 0?(pt(this),this._$AM=o,ye(this)):this._$AM=o}function Qe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)K(s[r],!1),pt(s[r]);else s!=null&&(K(s,!1),pt(s));else K(this,o)}var Je=o=>{o.type==y.CHILD&&(o._$AP??=Qe,o._$AQ??=Ke)},ut=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),pt(this))}setValue(t){if(dt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ro=()=>new Nt,Nt=class{},Pt=new WeakMap,Dt=$(class extends ut{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ft=o=>o.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var Lt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Ut={};function Rt(){}function It(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,vt=C?.map(([x])=>x),J=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=vt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},mt=Object.defineProperty,ts=o=>{let t=o.split(":");return t.length===1?[t[0],ft(t[0])]:t},es=globalThis.HTMLElement??Rt,xt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])mt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{It(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Lt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var yt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=gt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${gt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),lt(void 0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ce(t,ns)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},ns=1e3,gt="autoDestroyDisabled";var ve=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var Ee="important",rs=" !"+Ee,$e=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?Ee:""):e[s]=n}}return f}});var is=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return me(o),t}});var be=class o extends E{constructor(){super(),this.M=[],this.manager=new yt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Rt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Ut;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??j,i={attribute:s&1&&typeof t=="string"?ft(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{It(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Ut?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??Lt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(W(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(gt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Nn=o=>typeof o=="object"&&o!=null?ve(o):o,Dn=o=>typeof o=="object"&&o!=null?$e(o):o;var Mt=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Dt(this.#e)):Dt(t)}},xn=$(Mt);var Ln=d;var Un=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var Q=_e({defaultAssetPath:"https://jsdev.arcgis.com/6.0.0-next/charts-components/",hydratedAttribute:"hydrated"}),{customElement:jn,getAssetPath:Hn,setAssetPath:Vn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ls as a,D as b,lt as c,re as d,Us as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,St as o,pe as p,Xe as q,y as r,$ as s,g as t,qs as u,Gs as v,me as w,Ks as x,Qs as y,ro as z,Dt as A,be as B,Nn as C,Dn as D,Ln as E,Un as F,Q as G,jn as H,Hn as I};
|
package/dist/cdn/YW3BJIXP.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import r from"./QZYHN3H3.js";import q from"./J2HDKV47.js";import o from"./3DUAM7RK.js";import n from"./3PZWFW3T.js";import l from"./FGJPWWIL.js";import j from"./U6KRV4RA.js";import i from"./GPQCW5EO.js";import h from"./D66KCKCQ.js";import g from"./HZQLPN4H.js";import f from"./N4RM5VSS.js";import e from"./XUY3ZVKB.js";import d from"./GD6OHLIR.js";import c from"./MS6S4O2A.js";import b from"./WCONWQ4A.js";import a from"./STZNZAAW.js";import{M as k,O as w,V as D,_ as P,ea as R}from"./27C6PCQ2.js";import{b as x}from"./OZSOICXE.js";import{a as E}from"./FHN6CIIO.js";import{c as B}from"./AUKJ4CBR.js";import{a as p,b as m,f as F}from"./BNAX4Y53.js";export default $arcgis.t(([{H:y,Wb:V,ra:I,ta:C},{c:N,d:T,f:v,p:M,q:U,r:j,s:W},{e:o},O,{b:xe,d:Fe,f:Be},{b:ue,d:Se,f:_e},{d:me,e:pe},de,{d:Y},{b:Ie},{a:le,b:ge,c:ce,d:he},{a:ye,b:fe},{d:A,e:f,f:z},{b:Ce},{a:q,b:K,c:G,d:H,e:J,f:Q,g:X,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:d,oa:re,pa:u,qa:S,ra:oe,sa:_,ua:b,va:L,wa:ne,xa:ae}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,ve=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=P(r,p.BarSeries)[1]),t.series&&t.series.forEach((l,c)=>{c===i?l.assignToSecondValueAxis=e:c!==i&&l?.assignToSecondValueAxis!==!0&&(l.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(l=>l.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ae=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Le=(s,e)=>{let i=e.series?.[s],t;return C(i)?t=i.fillSymbol?.color:I(i)&&(t=i.lineSymbol?.color),t},Oe=(s,e,i)=>{let t=i.series?.[e];t&&(C(t)?t.fillSymbol={...R(e),...t.fillSymbol,color:s}:I(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},ke=s=>s.series.map(e=>e.id),we=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},De=s=>s.stackedType??F.Side,Pe=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let l=T({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:d(i)});N(i,1,l)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=w():i.axes[1].valueFormat=k()),v({config:i,value:null,axisIndex:1,isMax:!1}),v({config:i,value:null,axisIndex:1,isMax:!0})},Re=s=>{let e={};return s.series.forEach(i=>{B(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===p.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ve=(s,e)=>{s.series.forEach(i=>{B(i)&&(e?i.type===p.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Ee=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Ne(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Ee(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){Q(e,this._config)}get temporalBinningUnit(){return K(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return G(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return H(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return J(this._config)}set nullPolicy(e){X(e,this._config)}resetTimeInterval(){ie(this._config)}};h([o],g.prototype,"temporalBinningSize");h([o],g.prototype,"temporalBinningUnit");h([o],g.prototype,"timeAggregationType");h([o],g.prototype,"trimIncompleteTimeInterval");h([o],g.prototype,"nullPolicy");h([o],g.prototype,"resetTimeInterval");var Me=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,a=(s,e,i,t)=>{for(var r=Ue(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Me(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[],this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0}get chartLimits(){return this._chartLimits}set chartLimits(e){let i=!x(this._chartLimits,e);this._chartLimits=e,i&&this.layerInfo!==void 0&&this._config!==void 0&&this.processSeriesRebuild("chartLimits")}get splitBySeriesLimitReached(){return this._splitBySeriesLimitReached}set splitBySeriesLimitReached(e){this._splitBySeriesLimitReached=e}get splitBySeriesCount(){return this._splitBySeriesCount}set splitBySeriesCount(e){this._splitBySeriesCount=e}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===y){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,oe({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&U(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=j(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===y)&&e.length===0;if(i&&!t){let r=V(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e=[r],this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Te(e,this._config)}setAssignToSecondValueAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Te(e,this._config)}setSeriesToSecondaryYAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getDataSortOrder(){return S(this._config)[0]}setDataSortOrder(e,i){f(e,this._config,i)}getSortOrder(){return S(this._config)[0]}setSortOrder(e,i){f(e,this._config,i)}async getCustomSortValues(){return await L({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=S(this._config)[0];if(i===E.customSort){this.startAsyncUpdate();let t=await L({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});f(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return A(this._config)}set orderByList(e){!Y(this._config)&&b(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&_(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return Ae(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Le(e,this._config)}setSeriesColor(e,i){Oe(e,i,this._config)}getOrderOfSeries(){return ke(this._config)}setOrderOfSeries(e){we(e,this._config)}get stackedType(){return De(this._config)}set stackedType(e){Pe({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=A(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Re(this._config)}set nullCategory(e){let i=this.nullCategory;x(i,e)||Ve(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=d(this._config),this._splitByField=re(this._config),this._numericFields=u(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):(this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0,_(this.getBuildNewSeriesProps())),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await M({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==y?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,chartLimits:this._chartLimits,errorStrings:this.commonStrings?.errorStrings}),this._splitBySeriesLimitReached=this.splitByFieldInfos.seriesLimitReached,this._splitBySeriesCount=this.splitByFieldInfos.totalSeriesCount,this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?T({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:d(this._config)}):""}};a([o],n.prototype,"aggregationType");a([o],n.prototype,"setAssignToSecondValueAxis");a([o],n.prototype,"setSeriesToSecondaryYAxis");a([o],n.prototype,"setDataSortOrder");a([o],n.prototype,"setSortOrder");a([o],n.prototype,"setDataFilters");a([o],n.prototype,"orderByList");a([o],n.prototype,"binTemporalData");a([o],n.prototype,"setSeriesName");a([o],n.prototype,"setSeriesColor");a([o],n.prototype,"setOrderOfSeries");a([o],n.prototype,"stackedType");a([o],n.prototype,"moveSeries");a([o],n.prototype,"moveCustomSortValuesInOrderByList");a([o],n.prototype,"nullCategory");a([o],n.prototype,"resetConfig");var je=[ye,le,ge,ce,Ce,he,Ie,de,fe,g,xe,me,Fe,pe,ue,Se,_e,Be,te];W(n,je);return{a:Ae,b:be,c:Oe,d:Ve,e:n}},a,b,c,d,e,f,g,h,i,j,l,n,o,q,r)
|
package/dist/cdn/YYOQY7YY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as u}from"./OZSHGMU6.js";import{a as f}from"./H5VCT3XP.js";import{a as o}from"./GSCC3FON.js";import d from"./OSBZ6SF2.js";import"./5AKOPV7Z.js";import{a as S}from"./EYSSZWSX.js";import b from"./WCONWQ4A.js";import a from"./STZNZAAW.js";import"./SKI5Z6UH.js";import{d as p}from"./B6APNE72.js";import"./27C6PCQ2.js";import"./WKF53DYD.js";import"./OZSOICXE.js";import"./4DZ3REFU.js";import{B as c,D as m,F as g,H as C,g as h,i as r}from"./YF6ML4P6.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([,,{p:v}])=>{var O=h`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`,l=class extends c{constructor(){super(...arguments),this._messages=S(),this.seriesPopover=null,this.open=!1,this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let s=e.detail?.name;this.model.setSeriesName(s,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:s}=e.detail;this.model.colorMatch=!1,s!==void 0&&(this.model.setSeriesColor(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerColor(s,this.selectedSeriesIndex??-1))}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineStyle:s}=e.detail;s!==void 0&&this.model.setSeriesLineStyle(s,this.selectedSeriesIndex??-1)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineWidth:s}=e.detail;s!==void 0&&(this.model.setSeriesLineWidth(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerSize(s*2,this.selectedSeriesIndex??-1))}},this.seriesPopoverClose=e=>{let{selectedSeriesIndex:s}=e.detail;this.selectedSeriesIndex===s&&(this.seriesPopover=o(this.seriesPopover),this.selectedSeriesIndex=void 0)},this.onModelConfigChange=()=>{this.requestUpdate()},this.seriesOrderResetCounter=0,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesIndex:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,activeColorMatch:5,popoverPlacement:1}}static{this.styles=O}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,s){s?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&(this.seriesPopover=g(r`<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))}removeSeriesPopover(){this.seriesPopover!==void 0&&this.seriesPopover!==null&&(this.seriesPopover.open=!1,this.seriesPopover=o(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,s=Array.from({length:e},(i,t)=>t);return u(s,i=>this.model.getSeriesId(i),i=>{let t=this.model.getSeriesId(i),n=this.model.getSeriesColor(i),I=this.model.getSeriesName(i),x=this.model.chartSubType===p.BarAndLineFromFields?this._messages.series:t,$=this.model.getSeriesLineStyle(i),P=v($),a="#CCCCCC",d="minus-circle";if((e>1||!this.activeColorMatch)&&n!==void 0){d=`line-${P}`;let[L,b,y,M]=[...n];a=`rgba(${L},${b},${y},${M/255})`}return r`<calcite-list-item .label=${I??t??""} .description=${x} .value=${t} .selected=${this.selectedSeriesIndex===i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${d} style=${m({color:a})}></calcite-icon></calcite-list-item>`})}buildSeriesList(){return f(this.seriesOrderResetCounter,r`<calcite-list label drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}resetSeriesOriginal(){this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:s,oldIndex:i}=e.detail;this.model.moveSeries(i??0,s??i??0),this.seriesOrderResetCounter+=1}}openSeriesPopOver(e){e.stopImmediatePropagation(),this.removeSeriesPopover();let s=e.target,i=s.localName==="calcite-list-item"?s:s.parentNode,t=this.model.getSeriesIndex(i.value);this.open=this.selectedSeriesIndex!==t,this.selectedSeriesIndex=this.selectedSeriesIndex!==t?t:void 0}render(){return r`<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>`}};C("arcgis-charts-config-line-chart-series",l);return l},a,b,d)
|
package/dist/chunks/index5.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
const a = {
|
|
3
|
-
DataProcessComplete: "arcgisDataProcessComplete",
|
|
4
|
-
DataFetchComplete: "arcgisDataFetchComplete",
|
|
5
|
-
DataProcessError: "arcgisDataProcessError",
|
|
6
|
-
LegendItemVisibilityChange: "arcgisLegendItemVisibilityChange",
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated since 5.2. Use RenderingComplete from {@link utils/types/#ChartComponentEvents} instead.
|
|
9
|
-
*/
|
|
10
|
-
UpdateComplete: "arcgisUpdateComplete",
|
|
11
|
-
SeriesColorChange: "arcgisSeriesColorChange",
|
|
12
|
-
AxesMinMaxChange: "arcgisAxesMinMaxChange",
|
|
13
|
-
DefaultActionSelect: "arcgisDefaultActionSelect",
|
|
14
|
-
SelectionComplete: "arcgisSelectionComplete",
|
|
15
|
-
ActionBarToggle: "arcgisActionBarToggle",
|
|
16
|
-
NoRenderPropChange: "arcgisNoRenderPropChange",
|
|
17
|
-
BadDataWarningRaise: "arcgisBadDataWarningRaise",
|
|
18
|
-
InvalidConfigRaise: "arcgisInvalidConfigWarningRaise",
|
|
19
|
-
SeriesOrder: "arcgisSeriesOrder",
|
|
20
|
-
RuntimeError: "arcgisRuntimeError",
|
|
21
|
-
ConfigChange: "arcgisConfigChange",
|
|
22
|
-
RenderingComplete: "arcgisRenderingComplete"
|
|
23
|
-
}, t = {
|
|
24
|
-
FilterBySelection: "filterBySelection",
|
|
25
|
-
FilterByViewExtent: "filterByViewExtent",
|
|
26
|
-
Legend: "legend",
|
|
27
|
-
RotateChart: "rotateChart",
|
|
28
|
-
Selection: "selection",
|
|
29
|
-
ClearSelection: "clearSelection",
|
|
30
|
-
SwitchSelection: "switchSelection",
|
|
31
|
-
Zoom: "zoom",
|
|
32
|
-
FullExtent: "fullExtent",
|
|
33
|
-
EditChart: "editChart",
|
|
34
|
-
ExportAsImage: "exportAsImage",
|
|
35
|
-
ExportAsCSV: "exportAsCSV"
|
|
36
|
-
}, i = {
|
|
37
|
-
Active: "active",
|
|
38
|
-
Inactive: "inactive"
|
|
39
|
-
}, n = {
|
|
40
|
-
Enabled: "enabled",
|
|
41
|
-
Disabled: "disabled"
|
|
42
|
-
}, r = {
|
|
43
|
-
Ignore: "ignore",
|
|
44
|
-
Throw: "throw"
|
|
45
|
-
}, e = {
|
|
46
|
-
Ignore: "ignore",
|
|
47
|
-
Refresh: "refresh"
|
|
48
|
-
}, o = e, s = e, c = e, l = e, g = {
|
|
49
|
-
/**
|
|
50
|
-
* Enable syncing selections between chart and layer view
|
|
51
|
-
*/
|
|
52
|
-
Enabled: "enabled",
|
|
53
|
-
/**
|
|
54
|
-
* Disable syncing selections between chart and layer view
|
|
55
|
-
*/
|
|
56
|
-
Disabled: "disabled"
|
|
57
|
-
};
|
|
58
|
-
export {
|
|
59
|
-
i as A,
|
|
60
|
-
a as C,
|
|
61
|
-
t as D,
|
|
62
|
-
r as E,
|
|
63
|
-
o as L,
|
|
64
|
-
g as S,
|
|
65
|
-
l as V,
|
|
66
|
-
s as a,
|
|
67
|
-
c as b,
|
|
68
|
-
n as c
|
|
69
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as s } from "./model-types.js";
|
|
3
|
-
import { a as e } from "./chart-object-literals.js";
|
|
4
|
-
function t(i) {
|
|
5
|
-
return i !== void 0 && "config" in i && // this `satisfies` ensures TypeScript checks that "config" is a key of ChartModel
|
|
6
|
-
"update" in i;
|
|
7
|
-
}
|
|
8
|
-
function a(i) {
|
|
9
|
-
return t(i) && i?.chartType === e.BarSeries;
|
|
10
|
-
}
|
|
11
|
-
function f(i) {
|
|
12
|
-
return t(i) && i?.chartType === e.LineSeries;
|
|
13
|
-
}
|
|
14
|
-
function h(i) {
|
|
15
|
-
return t(i) && i?.chartType === e.RadarSeries;
|
|
16
|
-
}
|
|
17
|
-
function o(i) {
|
|
18
|
-
return t(i) && i?.chartType === e.ComboLineAndBarSeries;
|
|
19
|
-
}
|
|
20
|
-
function p(i) {
|
|
21
|
-
const r = t(i) ? i?.chartType : void 0;
|
|
22
|
-
return r === e.LineSeries || r === e.BarSeries || r === e.ComboLineAndBarSeries || r === e.RadarSeries;
|
|
23
|
-
}
|
|
24
|
-
function u(i) {
|
|
25
|
-
return t(i) && i?.chartType === e.PieSeries;
|
|
26
|
-
}
|
|
27
|
-
function y(i) {
|
|
28
|
-
return t(i) && i?.chartType === e.BoxPlotSeries;
|
|
29
|
-
}
|
|
30
|
-
function M(i) {
|
|
31
|
-
return t(i) && i?.chartType === e.ScatterSeries;
|
|
32
|
-
}
|
|
33
|
-
function S(i) {
|
|
34
|
-
return t(i) && i?.chartType === e.HistogramSeries;
|
|
35
|
-
}
|
|
36
|
-
function T(i) {
|
|
37
|
-
return t(i) && i?.chartType === e.HeatSeries;
|
|
38
|
-
}
|
|
39
|
-
function l(i) {
|
|
40
|
-
return t(i) && i?.chartType === e.GaugeSeries;
|
|
41
|
-
}
|
|
42
|
-
function g(i) {
|
|
43
|
-
const r = [
|
|
44
|
-
e.BarSeries,
|
|
45
|
-
e.BoxPlotSeries,
|
|
46
|
-
e.HistogramSeries,
|
|
47
|
-
e.ScatterSeries,
|
|
48
|
-
e.LineSeries,
|
|
49
|
-
e.ComboLineAndBarSeries,
|
|
50
|
-
e.HeatSeries
|
|
51
|
-
];
|
|
52
|
-
return t(i) && r.includes(i.chartType) && "getAxisTitleText" in i && typeof i.getAxisTitleText == "function";
|
|
53
|
-
}
|
|
54
|
-
function C(i) {
|
|
55
|
-
return i !== void 0 && "setSeriesMarkerColor" in i;
|
|
56
|
-
}
|
|
57
|
-
function x(i) {
|
|
58
|
-
return i !== void 0 && "getDataTooltipVisibility" in i;
|
|
59
|
-
}
|
|
60
|
-
function B(i) {
|
|
61
|
-
return i !== void 0 && "getGuideVisibility" in i && typeof i.getGuideVisibility == "function";
|
|
62
|
-
}
|
|
63
|
-
function v(i) {
|
|
64
|
-
return i !== void 0 && "addXAxisGuide" in i && typeof i.addXAxisGuide == "function";
|
|
65
|
-
}
|
|
66
|
-
function A(i) {
|
|
67
|
-
return i !== void 0 && "addYAxisGuide" in i && typeof i.addYAxisGuide == "function";
|
|
68
|
-
}
|
|
69
|
-
function G(i) {
|
|
70
|
-
return i !== void 0 && "legendVisibility" in i;
|
|
71
|
-
}
|
|
72
|
-
function L(i) {
|
|
73
|
-
return u(i);
|
|
74
|
-
}
|
|
75
|
-
function W(i) {
|
|
76
|
-
return i !== void 0 && "temporalBinningSize" in i;
|
|
77
|
-
}
|
|
78
|
-
function b(i) {
|
|
79
|
-
return a(i) || o(i);
|
|
80
|
-
}
|
|
81
|
-
function H(i, r) {
|
|
82
|
-
const n = s(i?.chartType);
|
|
83
|
-
return i !== void 0 && n === r;
|
|
84
|
-
}
|
|
85
|
-
function P(i) {
|
|
86
|
-
return i !== void 0 && "nullCategory" in i;
|
|
87
|
-
}
|
|
88
|
-
export {
|
|
89
|
-
p as a,
|
|
90
|
-
y as b,
|
|
91
|
-
T as c,
|
|
92
|
-
W as d,
|
|
93
|
-
a as e,
|
|
94
|
-
f,
|
|
95
|
-
o as g,
|
|
96
|
-
h,
|
|
97
|
-
t as i,
|
|
98
|
-
G as j,
|
|
99
|
-
M as k,
|
|
100
|
-
g as l,
|
|
101
|
-
P as m,
|
|
102
|
-
u as n,
|
|
103
|
-
B as o,
|
|
104
|
-
S as p,
|
|
105
|
-
v as q,
|
|
106
|
-
A as r,
|
|
107
|
-
l as s,
|
|
108
|
-
H as t,
|
|
109
|
-
C as u,
|
|
110
|
-
b as v,
|
|
111
|
-
x as w,
|
|
112
|
-
L as x
|
|
113
|
-
};
|