@arcgis/map-components 5.2.0-next.24 → 5.2.0-next.26
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/2NYG7G7M.js +2 -0
- package/dist/cdn/{RDYFXGBG.js → 2SEZT4WZ.js} +1 -1
- package/dist/cdn/32XG4IQO.js +2 -0
- package/dist/cdn/{SLPRDDKL.js → 333FN2FH.js} +1 -1
- package/dist/cdn/{O3S3JGUF.js → 3ACWQZMG.js} +1 -1
- package/dist/cdn/{3ZLJBZUR.js → 3IVI7KSX.js} +1 -1
- package/dist/cdn/{NIH6ZDQF.js → 3MDY3AXY.js} +1 -1
- package/dist/cdn/{CIMTQPRO.js → 3TFVMVSU.js} +1 -1
- package/dist/cdn/{5OIAYTR6.js → 3UEX6WWW.js} +1 -1
- package/dist/cdn/{JDWZTXWP.js → 3XUZ45XB.js} +1 -1
- package/dist/cdn/{OGNQD4YE.js → 3XWUH3TJ.js} +1 -1
- package/dist/cdn/{XHCEMCMK.js → 3YDQP3TL.js} +1 -1
- package/dist/cdn/{WR7D5AWQ.js → 42N4OII5.js} +1 -1
- package/dist/cdn/{ZN5DPJ47.js → 435CL2BU.js} +1 -1
- package/dist/cdn/{TA7BOHI2.js → 43OLIA7Q.js} +1 -1
- package/dist/cdn/45O57WR4.js +2 -0
- package/dist/cdn/{FHL4L2ZY.js → 45OF43WO.js} +1 -1
- package/dist/cdn/{CXHORYLL.js → 4DU47CLL.js} +1 -1
- package/dist/cdn/{7TA73NAM.js → 4ICKT52U.js} +1 -1
- package/dist/cdn/4IKFF53M.js +2 -0
- package/dist/cdn/4JHO27KW.js +2 -0
- package/dist/cdn/{TALJULOQ.js → 4L35X2II.js} +1 -1
- package/dist/cdn/{KDXJMMWU.js → 4NMNJIYV.js} +1 -1
- package/dist/cdn/4RGFCQOB.js +2 -0
- package/dist/cdn/{4BJSMXKG.js → 54WXILYF.js} +1 -1
- package/dist/cdn/{A6O75S47.js → 63RAMAYF.js} +1 -1
- package/dist/cdn/{EVEGXXQF.js → 6EKV3B5S.js} +1 -1
- package/dist/cdn/{MOQQDHMJ.js → 6FOYKQEP.js} +1 -1
- package/dist/cdn/{25YGNXRQ.js → 6HJM34BD.js} +1 -1
- package/dist/cdn/{KHIEG5JF.js → 6HXM4D4W.js} +1 -1
- package/dist/cdn/{ACMQRVHQ.js → 6IEKX6LJ.js} +1 -1
- package/dist/cdn/6JMYHTFN.js +2 -0
- package/dist/cdn/{NGTGQ4VB.js → 6O7GP3C3.js} +1 -1
- package/dist/cdn/{JPLUPA6R.js → 6PS3YIDY.js} +1 -1
- package/dist/cdn/{KVM3SKQX.js → 6S7LUYCJ.js} +1 -1
- package/dist/cdn/{KRXDH2HI.js → 6ZJFTT6R.js} +1 -1
- package/dist/cdn/{IN7S26X4.js → 6ZP6GZS7.js} +1 -1
- package/dist/cdn/{Y62ISVYZ.js → 75PSCL4A.js} +1 -1
- package/dist/cdn/{IFWIGLKK.js → 7ED4UQDB.js} +1 -1
- package/dist/cdn/{HNA422YB.js → 7GXEJLOM.js} +1 -1
- package/dist/cdn/7KPJBKO6.js +2 -0
- package/dist/cdn/{5LM2XZIK.js → 7LRGEABA.js} +1 -1
- package/dist/cdn/{K23ECU7I.js → 7MKSGCWC.js} +1 -1
- package/dist/cdn/{JKGGA54X.js → 7MWEEVVD.js} +1 -1
- package/dist/cdn/{VZNQJ644.js → 7PTCONZB.js} +1 -1
- package/dist/cdn/{4NPLHQZG.js → 7XUCMK3B.js} +1 -1
- package/dist/cdn/{LMNWYSI3.js → 7ZVWCRXE.js} +1 -1
- package/dist/cdn/A2Q7UAOI.js +3 -0
- package/dist/cdn/{XJMQFTSS.js → AEBJAVUX.js} +1 -1
- package/dist/cdn/{K6U6L7EK.js → AGTJNHWI.js} +1 -1
- package/dist/cdn/{YEPPZ46U.js → ATLWKCAP.js} +1 -1
- package/dist/cdn/AU7UZMXF.js +2 -0
- package/dist/cdn/{6EFOGQLH.js → AW7PMR3D.js} +1 -1
- package/dist/cdn/{LKRXUVVK.js → B2ZGMSHQ.js} +1 -1
- package/dist/cdn/{O5TKBG2D.js → B7P66JTS.js} +1 -1
- package/dist/cdn/{USYDTYRK.js → BCXPJXAK.js} +1 -1
- package/dist/cdn/BK6P2PBO.js +2 -0
- package/dist/cdn/{KUUKJIQM.js → BPQPJXPT.js} +1 -1
- package/dist/cdn/{MRDKTBHD.js → BPXKEXYV.js} +1 -1
- package/dist/cdn/{F7ZQA7S5.js → BRDTU3O6.js} +1 -1
- package/dist/cdn/{LLPO63LQ.js → BXLXZYRC.js} +1 -1
- package/dist/cdn/{VG7WYAOD.js → CCFKZSFO.js} +1 -1
- package/dist/cdn/{JXS44YCP.js → COGFFO5G.js} +1 -1
- package/dist/cdn/{5BIMGLS7.js → CTUD7CTJ.js} +1 -1
- package/dist/cdn/{RDFCQM5U.js → CX5LLKOW.js} +1 -1
- package/dist/cdn/DBJFHC3S.js +2 -0
- package/dist/cdn/DFMHSA2D.js +2 -0
- package/dist/cdn/{G46IIKPN.js → DLMGAC2A.js} +1 -1
- package/dist/cdn/{IJQZON2Z.js → DU6OKLV4.js} +1 -1
- package/dist/cdn/{PIRSSTSR.js → DUDVPO32.js} +1 -1
- package/dist/cdn/{OKHEBRQW.js → DUWXDGIW.js} +1 -1
- package/dist/cdn/EBWDF4RR.js +2 -0
- package/dist/cdn/{RP3SPYWY.js → EEF3VY5V.js} +1 -1
- package/dist/cdn/{DYG6G3ZY.js → EFYUNXBG.js} +1 -1
- package/dist/cdn/{LDYIWX26.js → EI7NXMGF.js} +1 -1
- package/dist/cdn/{WGR4TMS3.js → EIHTWPOP.js} +1 -1
- package/dist/cdn/{L4BJVEKK.js → EK44YZYH.js} +1 -1
- package/dist/cdn/{P5N66JAU.js → EK7GAWIV.js} +1 -1
- package/dist/cdn/{AAMJRMEX.js → EL6TAK3S.js} +1 -1
- package/dist/cdn/{MXY2C4UH.js → ENSUS3VL.js} +1 -1
- package/dist/cdn/{JMJ3LJGR.js → ESTUA4YE.js} +1 -1
- package/dist/cdn/{SEG3YDME.js → EVYO2SIO.js} +1 -1
- package/dist/cdn/{FOFJHQ4Z.js → FCRUDE4P.js} +1 -1
- package/dist/cdn/{NGMHPU5E.js → FCRWSG6Z.js} +1 -1
- package/dist/cdn/{76M43EVT.js → FJT2YAI6.js} +1 -1
- package/dist/cdn/{SLTQSWGA.js → G4CPNGQ6.js} +1 -1
- package/dist/cdn/{XIOGQDJH.js → GJIDZ4M6.js} +1 -1
- package/dist/cdn/{P3U6DQN6.js → GLNO2ZMW.js} +1 -1
- package/dist/cdn/{HBEXNLQM.js → GPPU5K5J.js} +1 -1
- package/dist/cdn/{ZUXQKICJ.js → GPVFCWMU.js} +1 -1
- package/dist/cdn/{TOVZMHWU.js → GRUB3M36.js} +1 -1
- package/dist/cdn/{JMRI4LOI.js → H3J6GAKO.js} +1 -1
- package/dist/cdn/H6MYLGUN.js +2 -0
- package/dist/cdn/{HNFXE43W.js → HIHYNNEU.js} +1 -1
- package/dist/cdn/{FT7ETWDM.js → HKTQWWXP.js} +1 -1
- package/dist/cdn/{23VXN3VB.js → HOIUABRJ.js} +1 -1
- package/dist/cdn/I5MVHBKV.js +2 -0
- package/dist/cdn/{BXKNMJRR.js → IDZCPNFC.js} +1 -1
- package/dist/cdn/{XHZ4LEYE.js → IHVHH3Z4.js} +1 -1
- package/dist/cdn/IKBRNNUA.js +2 -0
- package/dist/cdn/{NSE7MO5B.js → IPLVHFN5.js} +1 -1
- package/dist/cdn/{W3HICVNX.js → IQSSVLSC.js} +1 -1
- package/dist/cdn/ITCLBS5H.js +2 -0
- package/dist/cdn/{ZFFLDL4P.js → IZVYML7I.js} +1 -1
- package/dist/cdn/{CM2CNZDR.js → JBD3X2G7.js} +1 -1
- package/dist/cdn/{C4F6EN5S.js → JCHYVWCR.js} +1 -1
- package/dist/cdn/JCRPP54Z.js +2 -0
- package/dist/cdn/{GXVM7UPW.js → JLZJ354E.js} +1 -1
- package/dist/cdn/JSQZYDU6.js +2 -0
- package/dist/cdn/{YJP7TIKT.js → K3BJFKYY.js} +1 -1
- package/dist/cdn/{IGK4DKJ2.js → K5M3ZRVS.js} +1 -1
- package/dist/cdn/{GWZQD2KS.js → K7LJE67S.js} +1 -1
- package/dist/cdn/{FX7YHZMN.js → K7UC43CL.js} +1 -1
- package/dist/cdn/{YJM4JJRY.js → KBHTEAAG.js} +1 -1
- package/dist/cdn/{VOZ7A7UW.js → KG2IHV32.js} +1 -1
- package/dist/cdn/{IXZEUVT2.js → KLXEJCTT.js} +1 -1
- package/dist/cdn/{H47NPYUM.js → KPOSO4HB.js} +1 -1
- package/dist/cdn/{MFNC5YCH.js → KQT5MAFE.js} +1 -1
- package/dist/cdn/{DKH7GP3H.js → KXLCQG2D.js} +1 -1
- package/dist/cdn/{KLZFVT3D.js → KZBBEVWQ.js} +1 -1
- package/dist/cdn/{TMTDOGUQ.js → LA3UYF7I.js} +1 -1
- package/dist/cdn/{OOGQULHG.js → LKR52VUM.js} +1 -1
- package/dist/cdn/{OOLXNUY7.js → MAJ3JPSY.js} +1 -1
- package/dist/cdn/{FKGPQIBN.js → MDXQUNKW.js} +1 -1
- package/dist/cdn/{J33ULIDR.js → MECGUFOT.js} +1 -1
- package/dist/cdn/{UGOZSFW2.js → MGAHLABQ.js} +1 -1
- package/dist/cdn/{UNJTV3EI.js → MMNJNQ3Q.js} +1 -1
- package/dist/cdn/{REGSXPSY.js → MOIULPNJ.js} +1 -1
- package/dist/cdn/{UCPXN4Y5.js → MPYM4XNR.js} +1 -1
- package/dist/cdn/{2HQBEMYE.js → MTYQJ4TB.js} +1 -1
- package/dist/cdn/{6FRKBUG7.js → MZ35VFYR.js} +1 -1
- package/dist/cdn/{6ANMW473.js → N3JXA7DZ.js} +1 -1
- package/dist/cdn/{6HLRQHTF.js → NANWWHJ6.js} +1 -1
- package/dist/cdn/{2ENPU5CD.js → NAWH5P73.js} +1 -1
- package/dist/cdn/{Q6WNAJIC.js → NC472JXT.js} +1 -1
- package/dist/cdn/{BZNHYPVY.js → NCHQCPM6.js} +1 -1
- package/dist/cdn/{PDXPDGIN.js → NQSW6QJ6.js} +1 -1
- package/dist/cdn/{4BGPI3L3.js → NR53EGV6.js} +1 -1
- package/dist/cdn/{HVUITMRU.js → NRYA6EOZ.js} +1 -1
- package/dist/cdn/{EN3H2GBU.js → NVKY5H7W.js} +1 -1
- package/dist/cdn/{TOWBALAU.js → NXELRSXN.js} +1 -1
- package/dist/cdn/{O24XZVUV.js → NYS47GN2.js} +1 -1
- package/dist/cdn/{XDS3ZIHV.js → O7SRECHG.js} +1 -1
- package/dist/cdn/{2DSE5WHM.js → OF562TYT.js} +1 -1
- package/dist/cdn/{FAWJCFZQ.js → OMHMO6DD.js} +1 -1
- package/dist/cdn/{ZRRENPUV.js → OPP5DWFT.js} +1 -1
- package/dist/cdn/{HJ72UWKP.js → PIRA7ITO.js} +1 -1
- package/dist/cdn/{DFZK7FIP.js → PKS3JYAN.js} +1 -1
- package/dist/cdn/{TQHPE2X2.js → PLLSFCLD.js} +1 -1
- package/dist/cdn/{EQSDRIG6.js → PXZ7GYGB.js} +1 -1
- package/dist/cdn/{AC3GTCHJ.js → QAU5TWTZ.js} +1 -1
- package/dist/cdn/{SJIHZIXG.js → QFH7PJYV.js} +1 -1
- package/dist/cdn/{GJNYMDKO.js → QKCBJKWT.js} +1 -1
- package/dist/cdn/{M2MJH2FX.js → R5NVFWFA.js} +1 -1
- package/dist/cdn/R6Y3QBJZ.js +2 -0
- package/dist/cdn/{CFM2RF2I.js → R72MT5TQ.js} +1 -1
- package/dist/cdn/{KVE5RIEE.js → RKXL42SK.js} +1 -1
- package/dist/cdn/{TPZUKUI7.js → RO35U2LW.js} +1 -1
- package/dist/cdn/{J2ZJJKEI.js → ROIAI7KY.js} +1 -1
- package/dist/cdn/{FPX4MV2U.js → S3NMAVL6.js} +1 -1
- package/dist/cdn/S7HZFJQZ.js +2 -0
- package/dist/cdn/SAEE5GTI.js +2 -0
- package/dist/cdn/{KTXZR4IK.js → SBUR54TP.js} +1 -1
- package/dist/cdn/{PGCAY24R.js → SFP62RAJ.js} +1 -1
- package/dist/cdn/{GJMQ36NP.js → SGY36MUJ.js} +1 -1
- package/dist/cdn/{KG7UUIXV.js → SHJGMBBY.js} +1 -1
- package/dist/cdn/{Z42EKLRO.js → SJP5NLRB.js} +1 -1
- package/dist/cdn/{Y34KC34C.js → SNDTIGUT.js} +1 -1
- package/dist/cdn/{EMFCOFJ7.js → SPJCXMMT.js} +1 -1
- package/dist/cdn/{5Y3L2RDW.js → SSVJJAR5.js} +1 -1
- package/dist/cdn/{2HCFI5P5.js → SWKWLPLG.js} +1 -1
- package/dist/cdn/{UCEBZVNP.js → TA7JY4OV.js} +1 -1
- package/dist/cdn/{LDIKIEPN.js → TAFFNLUI.js} +1 -1
- package/dist/cdn/{H2U2JK4T.js → TCFK2EXM.js} +1 -1
- package/dist/cdn/{RMIR7645.js → TCKCE5NB.js} +1 -1
- package/dist/cdn/{BCFML3VR.js → TCS6CS2V.js} +1 -1
- package/dist/cdn/{DPZPIVA7.js → TCYTMU4A.js} +1 -1
- package/dist/cdn/{ITRTOO6W.js → TDEIRM7H.js} +1 -1
- package/dist/cdn/{CTPATSJU.js → TMOESX4H.js} +1 -1
- package/dist/cdn/{TUTJXJ6H.js → TSL4BZHI.js} +1 -1
- package/dist/cdn/{3M2ZWBEY.js → TZAGBPDN.js} +1 -1
- package/dist/cdn/{64S26ZIP.js → TZHGOM2Y.js} +1 -1
- package/dist/cdn/{2MO6LJPR.js → UEYLTX3J.js} +1 -1
- package/dist/cdn/{FG75P4KZ.js → UFGA4NGM.js} +1 -1
- package/dist/cdn/{6LYXJS6X.js → UMJTWBQ3.js} +1 -1
- package/dist/cdn/{ZZRHGYCY.js → UQIJOVPD.js} +1 -1
- package/dist/cdn/{RAUCP5RZ.js → V2FVPSX3.js} +1 -1
- package/dist/cdn/{Q4PNCUBK.js → V7MKCC7O.js} +1 -1
- package/dist/cdn/{QBTISG6Z.js → VAYZZ5OC.js} +1 -1
- package/dist/cdn/{L4UGJGS2.js → VHIOEBAH.js} +1 -1
- package/dist/cdn/{JCTU3MST.js → VJ2SMYNX.js} +1 -1
- package/dist/cdn/{6FMZAOVP.js → VLJKBHDD.js} +1 -1
- package/dist/cdn/{5SZX4F2U.js → VLXRN5II.js} +1 -1
- package/dist/cdn/{RXXEVGCM.js → VRWFW2LF.js} +1 -1
- package/dist/cdn/{YGAY263P.js → VSXLCBBA.js} +1 -1
- package/dist/cdn/{MDHIPDGE.js → VYBNGAPG.js} +1 -1
- package/dist/cdn/{HHSGISLJ.js → W2WYFYTT.js} +1 -1
- package/dist/cdn/{YAJLIV63.js → W5HSEDAR.js} +1 -1
- package/dist/cdn/{IPJSPBVN.js → WBLJSZV4.js} +1 -1
- package/dist/cdn/{KUPGJQBQ.js → WKQXQLLR.js} +1 -1
- package/dist/cdn/XJU225AF.js +2 -0
- package/dist/cdn/{TCQVDAIJ.js → XJVFSXPM.js} +1 -1
- package/dist/cdn/XMBA7QLQ.js +2 -0
- package/dist/cdn/XPSJ37QH.js +2 -0
- package/dist/cdn/{VPF46BTA.js → YCVINCOI.js} +1 -1
- package/dist/cdn/{EM4QPCQL.js → YMCZRMWW.js} +1 -1
- package/dist/cdn/{V6GGLHFM.js → YMHPA3VC.js} +1 -1
- package/dist/cdn/YOXKII2K.js +2 -0
- package/dist/cdn/{SF7HIXTT.js → YSLSCMZ4.js} +1 -1
- package/dist/cdn/{6WOZIOJH.js → YU7SUXHY.js} +1 -1
- package/dist/cdn/{ZAYZVEUD.js → YUCJQ6XI.js} +1 -1
- package/dist/cdn/{LXVRZSZ6.js → YUV3XEWE.js} +1 -1
- package/dist/cdn/{RCRVCOEZ.js → Z66KOPPI.js} +1 -1
- package/dist/cdn/{TI4T3QPS.js → Z77JVENV.js} +1 -1
- package/dist/cdn/{J5LPKT5M.js → ZBWHLMXA.js} +1 -1
- package/dist/cdn/{QXTTJTWV.js → ZQBMKJX7.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/css.js +25 -0
- package/dist/chunks/earth-utils.js +21 -0
- package/dist/chunks/keyboard-utils.js +15 -0
- package/dist/chunks/layer-list-next.js +7 -0
- package/dist/chunks/layer-list-utils.js +6 -6
- package/dist/chunks/runtime.js +5 -5
- package/dist/components/arcgis-basemap-gallery/customElement.js +33 -32
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +108 -125
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +85 -103
- package/dist/components/arcgis-daylight/customElement.js +174 -190
- package/dist/components/arcgis-editor/customElement.js +18 -6
- package/dist/components/arcgis-feature-media/customElement.js +45 -44
- package/dist/components/arcgis-feature-table/customElement.js +34 -34
- package/dist/components/arcgis-features/customElement.js +26 -25
- package/dist/components/arcgis-features-next/customElement.js +22 -21
- package/dist/components/arcgis-floor-filter/customElement.js +3 -3
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +51 -9
- package/dist/components/arcgis-layer-list-next/customElement.js +111 -110
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +45 -26
- package/dist/components/arcgis-navigation-toggle/index.js +1 -0
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +3 -1
- package/dist/components/arcgis-paste/customElement.d.ts +6 -0
- package/dist/components/arcgis-paste/customElement.js +9 -6
- package/dist/components/arcgis-popup/customElement.d.ts +2 -3
- package/dist/components/arcgis-popup/customElement.js +27 -27
- package/dist/components/arcgis-shadow-cast/customElement.js +96 -85
- package/dist/components/arcgis-sketch/customElement.d.ts +16 -1
- package/dist/components/arcgis-sketch/customElement.js +25 -19
- package/dist/components/arcgis-table-list-next/customElement.js +59 -80
- package/dist/components/arcgis-time-of-day-slider/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +105 -110
- 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/loader.js +3 -3
- package/dist/types/lumina.d.ts +2 -1
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/react.d.ts +2 -1
- package/dist/types/stencil.d.ts +2 -1
- package/package.json +4 -4
- package/dist/cdn/5RXWVXJA.js +0 -2
- package/dist/cdn/6LACZH6O.js +0 -2
- package/dist/cdn/BGWYOIKY.js +0 -2
- package/dist/cdn/BV6DN77M.js +0 -2
- package/dist/cdn/GOXEUMKX.js +0 -2
- package/dist/cdn/GQF32YL2.js +0 -2
- package/dist/cdn/GUBDP7SN.js +0 -2
- package/dist/cdn/HTCDJDRI.js +0 -2
- package/dist/cdn/I6IJUCE6.js +0 -2
- package/dist/cdn/IHDXJ4C3.js +0 -2
- package/dist/cdn/IJZYN6XT.js +0 -2
- package/dist/cdn/IXWSTLNL.js +0 -2
- package/dist/cdn/IYEZB6EU.js +0 -2
- package/dist/cdn/JD2JNE73.js +0 -2
- package/dist/cdn/KLKFMZ7U.js +0 -2
- package/dist/cdn/MV56NKNP.js +0 -2
- package/dist/cdn/NR6V3DTH.js +0 -2
- package/dist/cdn/PKBVONJW.js +0 -3
- package/dist/cdn/SRKKE3UN.js +0 -2
- package/dist/cdn/VL2VVN6C.js +0 -2
- package/dist/cdn/VRWFDVP6.js +0 -2
- package/dist/cdn/VVATJD2C.js +0 -2
- package/dist/cdn/VZVNKP6W.js +0 -2
- package/dist/cdn/YUBFK6NS.js +0 -2
- package/dist/chunks/layer-list-item-indicator.js +0 -74
- package/dist/chunks/layer-list-item.js +0 -6
- /package/dist/cdn/{OTZMVWAB.js → H7BPQQ3W.js} +0 -0
|
@@ -973,7 +973,7 @@ function te(e) {
|
|
|
973
973
|
let n = class extends U {
|
|
974
974
|
//#region Lifecycle
|
|
975
975
|
constructor(e) {
|
|
976
|
-
super(e), this.customPasteCommands = new j(), this.bauInvalidFeatures = [], this.bauFormValid = !0, this.bauFormUpdating = !1, this.bauActiveFeatureIndex = -1, this.bauHasTooManyFeatures = !1, this.bauHasTooManyComplexFeatures = !1, this.bauOriginalGraphics = [], this.formViewModelMap = /* @__PURE__ */ new Map(), this.supportedCommands = ["paste-append", "paste-as", "paste-subtract", "paste", "paste-merge"], this.pasteWithMultipleLayersEnabled = !1, this.pasteWithMultipleFeaturesEnabled = !1, this.alwaysShowFeatureForm = !1, this.selectedClipboardItemIndex = -1, this.pasteWithAttributes = !0, this.closeOnApply = !1, this.currentPasteOperation = "", this._activeFlowPage = "commands-page", this.showClipboardItems = !1, this.hideTooltips = !1, this.hideFooter = !1, this.hideFooterCancelButton = !1, this.hideHeaderCloseButton = !1, this.hideViewClipboard = !1, this.hideErrorNotice = !1, this.highlightGroup = "temporary", this._hoverHighlightHandle = null, this.maximumFeatureCount = 200, this.maximumFeatureCountWithComplexForms = 50, this.layerPermissionsCheck = {
|
|
976
|
+
super(e), this.customPasteCommands = new j(), this.bauInvalidFeatures = [], this.bauFormValid = !0, this.bauFormUpdating = !1, this.bauActiveFeatureIndex = -1, this.bauHasTooManyFeatures = !1, this.bauHasTooManyComplexFeatures = !1, this.bauOriginalGraphics = [], this.formViewModelMap = /* @__PURE__ */ new Map(), this.supportedCommands = ["paste-append", "paste-as", "paste-subtract", "paste", "paste-merge"], this.pasteWithMultipleLayersEnabled = !1, this.pasteWithMultipleFeaturesEnabled = !1, this.alwaysShowFeatureForm = !1, this.selectedClipboardItemIndex = -1, this.pasteWithAttributes = !0, this.closeOnApply = !1, this.currentPasteOperation = "", this.disableTemplatesMode = "never", this._activeFlowPage = "commands-page", this.showClipboardItems = !1, this.hideTooltips = !1, this.hideFooter = !1, this.hideFooterCancelButton = !1, this.hideHeaderCloseButton = !1, this.hideViewClipboard = !1, this.hideErrorNotice = !1, this.highlightGroup = "temporary", this._hoverHighlightHandle = null, this.maximumFeatureCount = 200, this.maximumFeatureCountWithComplexForms = 50, this.layerPermissionsCheck = {
|
|
977
977
|
canCreate: (t) => t ? !!t.effectiveCapabilities?.operations.supportsAdd : !1,
|
|
978
978
|
canUpdate: (t) => {
|
|
979
979
|
if (!t)
|
|
@@ -1374,6 +1374,9 @@ c([
|
|
|
1374
1374
|
c([
|
|
1375
1375
|
r()
|
|
1376
1376
|
], n.prototype, "currentPasteOperation", 2);
|
|
1377
|
+
c([
|
|
1378
|
+
r()
|
|
1379
|
+
], n.prototype, "disableTemplatesMode", 2);
|
|
1377
1380
|
c([
|
|
1378
1381
|
r()
|
|
1379
1382
|
], n.prototype, "activeFlowPage", 1);
|
|
@@ -1541,10 +1544,10 @@ M = S([
|
|
|
1541
1544
|
const at = ve(n);
|
|
1542
1545
|
class st extends he {
|
|
1543
1546
|
constructor() {
|
|
1544
|
-
super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages = ge(), this.viewModel = at(this), this.hasPasteCommandsPage = this.viewModel.hasPasteCommandsPage, this.activeCommand = this.viewModel.activeCommand, this.availableCommands = this.viewModel.availableCommands, this._showFloatingChoice = !1, this.activeFlowPage = this.viewModel.activeFlowPage, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.selectedFeature = this.viewModel.selectedFeature, this.closed = !1, this.highlightGroup = this.viewModel.highlightGroup, this.pasteWithMultipleLayersEnabled = this.viewModel.pasteWithMultipleLayersEnabled, this.pasteWithMultipleFeaturesEnabled = this.viewModel.pasteWithMultipleFeaturesEnabled, this.alwaysShowFeatureForm = this.viewModel.alwaysShowFeatureForm, this.closeOnApply = this.viewModel.closeOnApply, this.hideErrorNotice = this.viewModel.hideErrorNotice, this.hideFooterCancelButton = this.viewModel.hideFooterCancelButton, this.hideFooter = this.viewModel.hideFooter, this.hideHeaderCloseButton = this.viewModel.hideHeaderCloseButton, this.hideTooltips = this.viewModel.hideTooltips, this.hideViewClipboard = this.viewModel.hideViewClipboard, this.maximumFeatureCount = this.viewModel.maximumFeatureCount, this.maximumFeatureCountWithComplexForms = this.viewModel.maximumFeatureCountWithComplexForms, this.layerPermissionsCheck = this.viewModel.layerPermissionsCheck, this.pasteCommandsState = this.viewModel.pasteCommandsState, this.arcgisApplyPasteCommand = T(), this.arcgisApplyPasteError = T(), this.arcgisBeforeClipboardMove = T(), this.arcgisClipboardMoveStateChanged = T(), this.arcgisClose = T(), this.arcgisPropertyChange = xe()("pasteCommandsState", "activeFlowPage"), this.arcgisReady = T(), this.listenOn(window, "click", this._handleClickAway), this.listenOn(window, "keydown", this._handleKeyDown);
|
|
1547
|
+
super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages = ge(), this.viewModel = at(this), this.hasPasteCommandsPage = this.viewModel.hasPasteCommandsPage, this.activeCommand = this.viewModel.activeCommand, this.availableCommands = this.viewModel.availableCommands, this._showFloatingChoice = !1, this.activeFlowPage = this.viewModel.activeFlowPage, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.selectedFeature = this.viewModel.selectedFeature, this.closed = !1, this.highlightGroup = this.viewModel.highlightGroup, this.pasteWithMultipleLayersEnabled = this.viewModel.pasteWithMultipleLayersEnabled, this.pasteWithMultipleFeaturesEnabled = this.viewModel.pasteWithMultipleFeaturesEnabled, this.alwaysShowFeatureForm = this.viewModel.alwaysShowFeatureForm, this.closeOnApply = this.viewModel.closeOnApply, this.hideErrorNotice = this.viewModel.hideErrorNotice, this.hideFooterCancelButton = this.viewModel.hideFooterCancelButton, this.hideFooter = this.viewModel.hideFooter, this.hideHeaderCloseButton = this.viewModel.hideHeaderCloseButton, this.hideTooltips = this.viewModel.hideTooltips, this.hideViewClipboard = this.viewModel.hideViewClipboard, this.maximumFeatureCount = this.viewModel.maximumFeatureCount, this.maximumFeatureCountWithComplexForms = this.viewModel.maximumFeatureCountWithComplexForms, this.layerPermissionsCheck = this.viewModel.layerPermissionsCheck, this.pasteCommandsState = this.viewModel.pasteCommandsState, this.disableTemplatesMode = this.viewModel.disableTemplatesMode, this.arcgisApplyPasteCommand = T(), this.arcgisApplyPasteError = T(), this.arcgisBeforeClipboardMove = T(), this.arcgisClipboardMoveStateChanged = T(), this.arcgisClose = T(), this.arcgisPropertyChange = xe()("pasteCommandsState", "activeFlowPage"), this.arcgisReady = T(), this.listenOn(window, "click", this._handleClickAway), this.listenOn(window, "keydown", this._handleKeyDown);
|
|
1545
1548
|
}
|
|
1546
1549
|
static {
|
|
1547
|
-
this.properties = { hasPasteCommandsPage: 16, activeCommand: 16, availableCommands: 16, _showFloatingChoice: 16, activeFlowPage: 32, autoDestroyDisabled: 5, referenceElement: 1, view: 0, selectedFeature: 0, closed: 7, highlightGroup: 1, supportedCommands: 1, pasteWithMultipleLayersEnabled: 5, pasteWithMultipleFeaturesEnabled: 5, alwaysShowFeatureForm: 5, beforeApply: 0, clipboard: 32, closeOnApply: 5, hideErrorNotice: 5, hideFooterCancelButton: 5, hideFooter: 5, hideHeaderCloseButton: 5, hideTooltips: 5, hideViewClipboard: 5, maximumFeatureCount: 9, maximumFeatureCountWithComplexForms: 9, layerPermissionsCheck: 0, pasteCommandsState: 0 };
|
|
1550
|
+
this.properties = { hasPasteCommandsPage: 16, activeCommand: 16, availableCommands: 16, _showFloatingChoice: 16, activeFlowPage: 32, autoDestroyDisabled: 5, referenceElement: 1, view: 0, selectedFeature: 0, closed: 7, highlightGroup: 1, supportedCommands: 1, pasteWithMultipleLayersEnabled: 5, pasteWithMultipleFeaturesEnabled: 5, alwaysShowFeatureForm: 5, beforeApply: 0, clipboard: 32, closeOnApply: 5, hideErrorNotice: 5, hideFooterCancelButton: 5, hideFooter: 5, hideHeaderCloseButton: 5, hideTooltips: 5, hideViewClipboard: 5, maximumFeatureCount: 9, maximumFeatureCountWithComplexForms: 9, layerPermissionsCheck: 0, pasteCommandsState: 0, disableTemplatesMode: 1 };
|
|
1548
1551
|
}
|
|
1549
1552
|
static {
|
|
1550
1553
|
this.styles = $e;
|
|
@@ -1694,9 +1697,9 @@ class st extends he {
|
|
|
1694
1697
|
t.selectedTemplateId !== this.viewModel.pasteTemplate.id && (t.selectedTemplateId = this.viewModel.pasteTemplate.id);
|
|
1695
1698
|
return;
|
|
1696
1699
|
}
|
|
1697
|
-
if (t.effectiveTemplates
|
|
1700
|
+
if (t.effectiveTemplates?.length === 0)
|
|
1698
1701
|
return;
|
|
1699
|
-
const i = t.effectiveTemplates[0].templates[0];
|
|
1702
|
+
const i = t.effectiveTemplates?.[0].templates[0];
|
|
1700
1703
|
i && (this.viewModel.pasteTemplate = i, t.selectedTemplateId = i.id);
|
|
1701
1704
|
});
|
|
1702
1705
|
}
|
|
@@ -1764,7 +1767,7 @@ class st extends he {
|
|
|
1764
1767
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1765
1768
|
}} title=${this._messages.seeMergeOptions ?? ue}>${this._messages.seeMergeOptions}</calcite-link>` : null}</calcite-notice></div>` : null}${this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes) : null}${this.viewModel.clipboardAndTemplateSupportAttributes ? null : this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand !== "paste-merge"} .label=${this._messages.pasteCommandChoices ?? ""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${() => {
|
|
1766
1769
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1767
|
-
}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
|
|
1770
|
+
}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .disableTemplatesMode=${this.disableTemplatesMode} .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
|
|
1768
1771
|
this._checkAndUpdateInitialPasteTemplate();
|
|
1769
1772
|
}} @arcgisSelectTemplate=${(i) => {
|
|
1770
1773
|
this.viewModel.pasteTemplate = i.detail.template;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type Features from "@arcgis/core/popup/Features.js";
|
|
3
2
|
import type ActionButton from "@arcgis/core/support/actions/ActionButton.js";
|
|
4
3
|
import type ActionToggle from "@arcgis/core/support/actions/ActionToggle.js";
|
|
5
4
|
import type Graphic from "@arcgis/core/Graphic.js";
|
|
@@ -600,13 +599,13 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
600
599
|
*
|
|
601
600
|
* @see [selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#selectedFeatureIndex)
|
|
602
601
|
*/
|
|
603
|
-
next(): Promise<
|
|
602
|
+
next(): Promise<void>;
|
|
604
603
|
/**
|
|
605
604
|
* Selects the feature at the previous index in relation to the selected feature.
|
|
606
605
|
*
|
|
607
606
|
* @see [selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#selectedFeatureIndex)
|
|
608
607
|
*/
|
|
609
|
-
previous(): Promise<
|
|
608
|
+
previous(): Promise<void>;
|
|
610
609
|
/** Use this method to give focus to the component if the component is able to be focused. */
|
|
611
610
|
setFocus(): Promise<void>;
|
|
612
611
|
/**
|
|
@@ -55,8 +55,8 @@ class j extends L {
|
|
|
55
55
|
set dockOptions(t) {
|
|
56
56
|
const e = { ...C }, o = this.viewModel?.view?.breakpoints, i = {};
|
|
57
57
|
o && (i.width = o.xsmall, i.height = o.xsmall);
|
|
58
|
-
const s = { ...e, ...t }, n = { ...e.breakpoint, ...i }, { breakpoint:
|
|
59
|
-
typeof
|
|
58
|
+
const s = { ...e, ...t }, n = { ...e.breakpoint, ...i }, { breakpoint: r } = s;
|
|
59
|
+
typeof r == "object" ? s.breakpoint = { ...n, ...r } : r && (s.breakpoint = n), this._dockOptions = s;
|
|
60
60
|
}
|
|
61
61
|
get selectedDrillInFeature() {
|
|
62
62
|
return this._featuresComponent.value?.selectedDrillInFeature ?? null;
|
|
@@ -68,25 +68,25 @@ class j extends L {
|
|
|
68
68
|
return this.viewModel.handleViewClick(t);
|
|
69
69
|
}
|
|
70
70
|
async clear() {
|
|
71
|
-
|
|
71
|
+
this.viewModel.clear();
|
|
72
72
|
}
|
|
73
73
|
async destroy() {
|
|
74
74
|
await this.manager.destroy(), this._dockAction.destroy(), this._popupResizeObserver.disconnect();
|
|
75
75
|
}
|
|
76
76
|
async fetchFeatures(t, e) {
|
|
77
|
-
|
|
77
|
+
await this._featuresComponent.value?.fetchFeatures(t, e);
|
|
78
78
|
}
|
|
79
79
|
async next() {
|
|
80
|
-
|
|
80
|
+
this.viewModel.next();
|
|
81
81
|
}
|
|
82
82
|
async previous() {
|
|
83
|
-
|
|
83
|
+
this.viewModel.previous();
|
|
84
84
|
}
|
|
85
85
|
async setFocus() {
|
|
86
86
|
this._featuresComponent.value?.setFocus();
|
|
87
87
|
}
|
|
88
88
|
async triggerAction(t) {
|
|
89
|
-
|
|
89
|
+
await this._featuresComponent.value?.triggerAction(t);
|
|
90
90
|
}
|
|
91
91
|
connectedCallback() {
|
|
92
92
|
super.connectedCallback(), this._syncPopupResizeObserver();
|
|
@@ -157,7 +157,7 @@ class j extends L {
|
|
|
157
157
|
const { _mainContainerNode: e, _popupRect: o, viewModel: i } = this, { view: s } = i, { screenLocation: n } = this;
|
|
158
158
|
if (n == null || !s || !o || !e.value)
|
|
159
159
|
return "top-center";
|
|
160
|
-
const
|
|
160
|
+
const r = window.getComputedStyle(e.value), l = f(r.maxHeight), a = f(r.height), c = this._getPointerSize(), { height: d, width: k } = o, h = k + c, u = Math.max(d, l, a) + c, z = this._isOutsideView({
|
|
161
161
|
popupHeight: u,
|
|
162
162
|
popupWidth: h,
|
|
163
163
|
screenLocation: n,
|
|
@@ -239,35 +239,35 @@ class j extends L {
|
|
|
239
239
|
_calculateAlignmentPosition(t, e, o, i) {
|
|
240
240
|
if (t < 0 || e < 0 || !o || !i || t > o.width || e > o.height)
|
|
241
241
|
return;
|
|
242
|
-
const { topLayerDisabled: s } = this, n = s ? t : t + o.x,
|
|
243
|
-
if (
|
|
242
|
+
const { topLayerDisabled: s } = this, n = s ? t : t + o.x, r = s ? e : e + o.y, { _direction: l, currentAlignment: a } = this, c = this._getPointerSize(), d = c / 2;
|
|
243
|
+
if (a === "top-left" || a === "top-start" && l === "ltr" || a === "top-end" && l === "rtl")
|
|
244
244
|
return {
|
|
245
|
-
top:
|
|
245
|
+
top: r - (i.height + d),
|
|
246
246
|
left: n - i.width - d
|
|
247
247
|
};
|
|
248
|
-
if (
|
|
248
|
+
if (a === "top-center")
|
|
249
249
|
return {
|
|
250
|
-
top:
|
|
250
|
+
top: r - (i.height + c),
|
|
251
251
|
left: n - i.width / 2
|
|
252
252
|
};
|
|
253
|
-
if (
|
|
253
|
+
if (a === "top-right" || a === "top-end" && l === "ltr" || a === "top-start" && l === "rtl")
|
|
254
254
|
return {
|
|
255
|
-
top:
|
|
255
|
+
top: r - (i.height + d),
|
|
256
256
|
left: n + d
|
|
257
257
|
};
|
|
258
|
-
if (
|
|
258
|
+
if (a === "bottom-left" || a === "bottom-start" && l === "ltr" || a === "bottom-end" && l === "rtl")
|
|
259
259
|
return {
|
|
260
|
-
top:
|
|
260
|
+
top: r + d,
|
|
261
261
|
left: n - i.width - d
|
|
262
262
|
};
|
|
263
|
-
if (
|
|
263
|
+
if (a === "bottom-center")
|
|
264
264
|
return {
|
|
265
|
-
top:
|
|
265
|
+
top: r + c,
|
|
266
266
|
left: n - i.width / 2
|
|
267
267
|
};
|
|
268
|
-
if (
|
|
268
|
+
if (a === "bottom-right" || a === "bottom-end" && l === "ltr" || a === "bottom-start" && l === "rtl")
|
|
269
269
|
return {
|
|
270
|
-
top:
|
|
270
|
+
top: r + d,
|
|
271
271
|
left: n + d
|
|
272
272
|
};
|
|
273
273
|
}
|
|
@@ -287,8 +287,8 @@ class j extends L {
|
|
|
287
287
|
return `inset: ${this._getPositionStyleValue(i.top)} ${this._getPositionStyleValue(i.right)} ${this._getPositionStyleValue(i.bottom)} ${this._getPositionStyleValue(i.left)};`;
|
|
288
288
|
}
|
|
289
289
|
_dockingThresholdCrossed(t, e, o) {
|
|
290
|
-
const [i, s] = t, [n,
|
|
291
|
-
return i <= l && n > l || i > l && n <= l || s <=
|
|
290
|
+
const [i, s] = t, [n, r] = e, { width: l = 0, height: a = 0 } = o ?? {};
|
|
291
|
+
return i <= l && n > l || i > l && n <= l || s <= a && r > a || s > a && r <= a;
|
|
292
292
|
}
|
|
293
293
|
_updateDockEnabledForViewSize(t, e) {
|
|
294
294
|
if (!t || !e || !this.viewModel?.view?.ready)
|
|
@@ -303,14 +303,14 @@ class j extends L {
|
|
|
303
303
|
const { width: i, height: s } = o;
|
|
304
304
|
if (Number.isNaN(i) || Number.isNaN(s) || typeof e != "object")
|
|
305
305
|
return !1;
|
|
306
|
-
const n = typeof e.width == "number" && i <= (e.width ?? 0),
|
|
307
|
-
return n ||
|
|
306
|
+
const n = typeof e.width == "number" && i <= (e.width ?? 0), r = typeof e.height == "number" && s <= (e.height ?? 0);
|
|
307
|
+
return n || r;
|
|
308
308
|
}
|
|
309
309
|
_setDockEnabledForViewSize(t) {
|
|
310
310
|
this.viewModel?.view?.ready && typeof t.breakpoint == "object" && (this.dockEnabled = this._shouldDockAtCurrentViewSize(t));
|
|
311
311
|
}
|
|
312
312
|
render() {
|
|
313
|
-
const { _direction: t, dockEnabled: e, currentAlignment: o, currentDockPosition: i, positionStyle: s } = this, { active: n, view:
|
|
313
|
+
const { _direction: t, dockEnabled: e, currentAlignment: o, currentDockPosition: i, positionStyle: s } = this, { active: n, view: r } = this.viewModel, l = n && e, a = n && !e, c = r?.widthBreakpoint, d = r?.heightBreakpoint, k = {
|
|
314
314
|
"aligned-top-center": o === "top-center",
|
|
315
315
|
"aligned-bottom-center": o === "bottom-center",
|
|
316
316
|
"aligned-top-left": o === "top-left" || o === "top-start" && t === "ltr" || o === "top-end" && t === "rtl",
|
|
@@ -318,7 +318,7 @@ class j extends L {
|
|
|
318
318
|
"aligned-top-right": o === "top-right" || o === "top-end" && t === "ltr" || o === "top-start" && t === "rtl",
|
|
319
319
|
"aligned-bottom-right": o === "bottom-right" || o === "bottom-end" && t === "ltr" || o === "bottom-start" && t === "rtl",
|
|
320
320
|
"is-docked": l,
|
|
321
|
-
shadow:
|
|
321
|
+
shadow: a,
|
|
322
322
|
"is-rtl": this._direction === "rtl",
|
|
323
323
|
"is-docked-top-start": i === "top-start",
|
|
324
324
|
"is-docked-top-end": i === "top-end",
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as M, html as
|
|
3
|
+
import { css as M, html as d } from "lit";
|
|
4
4
|
import { LitElement as O, createEvent as S, nothing as T, safeClassMap as u } from "@arcgis/lumina";
|
|
5
5
|
import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { u as z } from "../../chunks/useT9n.js";
|
|
7
7
|
import { m as k } from "../../chunks/useViewModel.js";
|
|
8
|
-
import { H as
|
|
8
|
+
import { H as f } from "../../chunks/heading.js";
|
|
9
9
|
import { g as m } from "../../chunks/globalCss.js";
|
|
10
10
|
import { V as g } from "../../chunks/visible-element.js";
|
|
11
11
|
import I from "@arcgis/core/analysis/ShadowCastAnalysis.js";
|
|
12
|
-
import { property as
|
|
12
|
+
import { property as r, subclass as P } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
13
13
|
import { A as V } from "../../chunks/AnalysisViewModel.js";
|
|
14
14
|
import { watch as E, whenOnce as L } from "@arcgis/core/core/reactiveUtils.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
import { t as A } from "../../chunks/earth-utils.js";
|
|
16
|
+
import { c as h, g as R } from "../../chunks/time-utils.js";
|
|
17
|
+
import { forceInteractive as H } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
18
|
+
const j = M`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`;
|
|
19
|
+
var U = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, a = (e, i, t, n) => {
|
|
20
|
+
for (var s = n > 1 ? void 0 : n ? Z(i, t) : i, l = e.length - 1, c; l >= 0; l--)
|
|
21
|
+
(c = e[l]) && (s = (n ? c(i, t, s) : c(s)) || s);
|
|
22
|
+
return n && s && U(i, t, s), s;
|
|
22
23
|
};
|
|
23
|
-
const
|
|
24
|
-
let
|
|
24
|
+
const v = /* @__PURE__ */ Symbol("interactiveHandle");
|
|
25
|
+
let o = class extends V {
|
|
25
26
|
constructor() {
|
|
26
27
|
super(...arguments), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Shadow Cast component is only supported in 3D views.", this.shouldForceInteractive = !1, this.minMinDuration = 0, this.maxMinDuration = h(8, "hours", "milliseconds"), this.hideShadowDurationTooltip = !1;
|
|
27
28
|
}
|
|
@@ -36,7 +37,7 @@ let t = class extends V {
|
|
|
36
37
|
tooltipVisible: !this.hideShadowDurationTooltip
|
|
37
38
|
}),
|
|
38
39
|
({ analysisView: e, tooltipVisible: i }) => {
|
|
39
|
-
this.removeHandles(
|
|
40
|
+
this.removeHandles(v), e && (e.interactive = i, i && this.addHandles(H(e), v));
|
|
40
41
|
},
|
|
41
42
|
{ sync: !0, initial: !0 }
|
|
42
43
|
)
|
|
@@ -73,7 +74,7 @@ let t = class extends V {
|
|
|
73
74
|
this.analysis.totalDurationOptions.mode = e;
|
|
74
75
|
}
|
|
75
76
|
get localDate() {
|
|
76
|
-
return
|
|
77
|
+
return R(this.view, this.effectiveUtcOffset);
|
|
77
78
|
}
|
|
78
79
|
get mode() {
|
|
79
80
|
return this.analysis.mode;
|
|
@@ -133,97 +134,107 @@ let t = class extends V {
|
|
|
133
134
|
this.analysis.minDurationOptions.contextOptions.interval = e;
|
|
134
135
|
}
|
|
135
136
|
get utcOffset() {
|
|
136
|
-
return this.analysis.utcOffset;
|
|
137
|
+
return this.analysis.utcOffset ?? void 0;
|
|
137
138
|
}
|
|
138
139
|
set utcOffset(e) {
|
|
139
140
|
this.analysis.utcOffset = e;
|
|
140
141
|
}
|
|
142
|
+
get effectiveUtcOffset() {
|
|
143
|
+
const { utcOffset: e } = this.analysis;
|
|
144
|
+
if (e != null)
|
|
145
|
+
return e;
|
|
146
|
+
const i = this.view?.camera?.position;
|
|
147
|
+
return i ? A(i) : 0;
|
|
148
|
+
}
|
|
141
149
|
async getDurationAtScreen(e) {
|
|
142
150
|
return await (await L(() => this.analysisView)).getDurationAtScreen(e);
|
|
143
151
|
}
|
|
144
152
|
};
|
|
145
153
|
a([
|
|
146
|
-
|
|
147
|
-
],
|
|
154
|
+
r()
|
|
155
|
+
], o.prototype, "date", 1);
|
|
156
|
+
a([
|
|
157
|
+
r()
|
|
158
|
+
], o.prototype, "discreteColor", 1);
|
|
148
159
|
a([
|
|
149
|
-
|
|
150
|
-
],
|
|
160
|
+
r()
|
|
161
|
+
], o.prototype, "discreteInterval", 1);
|
|
151
162
|
a([
|
|
152
|
-
|
|
153
|
-
],
|
|
163
|
+
r()
|
|
164
|
+
], o.prototype, "totalDurationColor", 1);
|
|
154
165
|
a([
|
|
155
|
-
|
|
156
|
-
],
|
|
166
|
+
r()
|
|
167
|
+
], o.prototype, "totalDurationMode", 1);
|
|
157
168
|
a([
|
|
158
|
-
|
|
159
|
-
],
|
|
169
|
+
r()
|
|
170
|
+
], o.prototype, "localDate", 1);
|
|
160
171
|
a([
|
|
161
|
-
|
|
162
|
-
],
|
|
172
|
+
r()
|
|
173
|
+
], o.prototype, "mode", 1);
|
|
163
174
|
a([
|
|
164
|
-
|
|
165
|
-
],
|
|
175
|
+
r()
|
|
176
|
+
], o.prototype, "visualizeSunlight", 1);
|
|
166
177
|
a([
|
|
167
|
-
|
|
168
|
-
],
|
|
178
|
+
r()
|
|
179
|
+
], o.prototype, "startTimeOfDay", 1);
|
|
169
180
|
a([
|
|
170
|
-
|
|
171
|
-
],
|
|
181
|
+
r()
|
|
182
|
+
], o.prototype, "endTimeOfDay", 1);
|
|
172
183
|
a([
|
|
173
|
-
|
|
174
|
-
],
|
|
184
|
+
r()
|
|
185
|
+
], o.prototype, "state", 1);
|
|
175
186
|
a([
|
|
176
|
-
|
|
177
|
-
],
|
|
187
|
+
r()
|
|
188
|
+
], o.prototype, "minDurationColor", 1);
|
|
178
189
|
a([
|
|
179
|
-
|
|
180
|
-
],
|
|
190
|
+
r()
|
|
191
|
+
], o.prototype, "minMinDuration", 2);
|
|
181
192
|
a([
|
|
182
|
-
|
|
183
|
-
],
|
|
193
|
+
r()
|
|
194
|
+
], o.prototype, "maxMinDuration", 2);
|
|
184
195
|
a([
|
|
185
|
-
|
|
186
|
-
],
|
|
196
|
+
r()
|
|
197
|
+
], o.prototype, "minDuration", 1);
|
|
187
198
|
a([
|
|
188
|
-
|
|
189
|
-
],
|
|
199
|
+
r()
|
|
200
|
+
], o.prototype, "minDurationContextEnabled", 1);
|
|
190
201
|
a([
|
|
191
|
-
|
|
192
|
-
],
|
|
202
|
+
r()
|
|
203
|
+
], o.prototype, "minDurationContextColor", 1);
|
|
193
204
|
a([
|
|
194
|
-
|
|
195
|
-
],
|
|
205
|
+
r()
|
|
206
|
+
], o.prototype, "minDurationContextInterval", 1);
|
|
196
207
|
a([
|
|
197
|
-
|
|
198
|
-
],
|
|
208
|
+
r()
|
|
209
|
+
], o.prototype, "utcOffset", 1);
|
|
199
210
|
a([
|
|
200
|
-
|
|
201
|
-
],
|
|
211
|
+
r()
|
|
212
|
+
], o.prototype, "effectiveUtcOffset", 1);
|
|
202
213
|
a([
|
|
203
|
-
|
|
204
|
-
],
|
|
205
|
-
|
|
214
|
+
r()
|
|
215
|
+
], o.prototype, "hideShadowDurationTooltip", 2);
|
|
216
|
+
o = a([
|
|
206
217
|
P("components.shadow-cast.ShadowCastViewModel")
|
|
207
|
-
],
|
|
208
|
-
const
|
|
209
|
-
class
|
|
218
|
+
], o);
|
|
219
|
+
const F = k(o);
|
|
220
|
+
class B extends O {
|
|
210
221
|
constructor() {
|
|
211
|
-
super(...arguments), this.viewModel =
|
|
222
|
+
super(...arguments), this.viewModel = F(this), this.messages = z(), this.analysis = this.viewModel.analysis, this.view = this.viewModel.view, this.visualizeSunlight = this.viewModel.visualizeSunlight, this.visualScale = "m", this.autoDestroyDisabled = !1, this.endTimeOfDay = this.viewModel.endTimeOfDay, this.headingLevel = 4, this.hideTimeRangeSlider = !1, this.hideTimezone = !1, this.hideDatePicker = !1, this.hideShadowDurationTooltip = this.viewModel.hideShadowDurationTooltip, this.hideVisualization = this.viewModel.hideVisualization, this.hideVisualizationOptions = !1, this.hideDiscreteOptions = !1, this.hideDiscreteColorPicker = !1, this.hideDiscreteInterval = !1, this.hideTotalDurationOptions = !1, this.hideTotalDurationColorPicker = !1, this.hideTotalDurationModeSelect = !1, this.hideMinDurationOptions = !1, this.hideMinDurationColorPicker = !1, this.hideMinDurationSlider = !1, this.hideMinDurationContextOptions = !1, this.hideMinDurationContextToggle = !1, this.hideMinDurationContextColorPicker = !1, this.hideMinDurationContextInterval = !1, this.icon = "measure-building-height-shadow", this.mode = this.viewModel.mode, this.startTimeOfDay = this.viewModel.startTimeOfDay, this.state = this.viewModel.state, this.utcOffset = this.viewModel.utcOffset, this.discreteColor = this.viewModel.discreteColor, this.discreteInterval = this.viewModel.discreteInterval, this.totalDurationColor = this.viewModel.totalDurationColor, this.totalDurationMode = this.viewModel.totalDurationMode, this.minDuration = this.viewModel.minDuration, this.minDurationColor = this.viewModel.minDurationColor, this.minMinDuration = this.viewModel.minMinDuration, this.maxMinDuration = this.viewModel.maxMinDuration, this.minDurationContextEnabled = this.viewModel.minDurationContextEnabled, this.minDurationContextColor = this.viewModel.minDurationContextColor, this.minDurationContextInterval = this.viewModel.minDurationContextInterval, this.arcgisPropertyChange = $()("state"), this.arcgisReady = S();
|
|
212
223
|
}
|
|
213
224
|
static {
|
|
214
225
|
this.properties = { analysis: 0, view: 0, visualizeSunlight: 5, visualScale: 3, autoDestroyDisabled: 5, date: 1, endTimeOfDay: 9, headingLevel: 9, hideTimeRangeSlider: 5, hideTimezone: 5, hideDatePicker: 5, hideShadowDurationTooltip: 5, hideVisualization: 5, hideVisualizationOptions: 5, hideDiscreteOptions: 5, hideDiscreteColorPicker: 5, hideDiscreteInterval: 5, hideTotalDurationOptions: 5, hideTotalDurationColorPicker: 5, hideTotalDurationModeSelect: 5, hideMinDurationOptions: 5, hideMinDurationColorPicker: 5, hideMinDurationSlider: 5, hideMinDurationContextOptions: 5, hideMinDurationContextToggle: 5, hideMinDurationContextColorPicker: 5, hideMinDurationContextInterval: 5, icon: 3, label: 1, mode: 1, referenceElement: 1, startTimeOfDay: 9, state: 32, utcOffset: 9, discreteColor: 0, discreteInterval: 9, totalDurationColor: 0, totalDurationMode: 1, minDuration: 9, minDurationColor: 0, minMinDuration: 9, maxMinDuration: 9, minDurationContextEnabled: 5, minDurationContextColor: 0, minDurationContextInterval: 9 };
|
|
215
226
|
}
|
|
216
227
|
static {
|
|
217
|
-
this.styles =
|
|
228
|
+
this.styles = j;
|
|
218
229
|
}
|
|
219
230
|
get _effectiveMessages() {
|
|
220
|
-
const { messages: i, visualizeSunlight:
|
|
231
|
+
const { messages: i, visualizeSunlight: t } = this, { sunlight: n } = i;
|
|
221
232
|
return {
|
|
222
233
|
...i,
|
|
223
|
-
discrete:
|
|
224
|
-
minDuration:
|
|
225
|
-
totalDuration:
|
|
226
|
-
timeInShadow:
|
|
234
|
+
discrete: t ? n?.discrete : i.discrete,
|
|
235
|
+
minDuration: t ? n?.minDuration : i.minDuration,
|
|
236
|
+
totalDuration: t ? n?.totalDuration : i.totalDuration,
|
|
237
|
+
timeInShadow: t ? i.timeInSunlight : i.timeInShadow,
|
|
227
238
|
timeRangeSliderLabel: i.timeRangeSliderLabel
|
|
228
239
|
};
|
|
229
240
|
}
|
|
@@ -241,7 +252,7 @@ class F extends O {
|
|
|
241
252
|
}
|
|
242
253
|
render() {
|
|
243
254
|
const { _effectiveMessages: i } = this;
|
|
244
|
-
return
|
|
255
|
+
return d`<div aria-label=${i.componentLabel ?? T} class=${u({
|
|
245
256
|
root: !0,
|
|
246
257
|
[m.widget]: !0,
|
|
247
258
|
[m.widgetDisabled]: this.viewModel.state === "disabled",
|
|
@@ -251,43 +262,43 @@ class F extends O {
|
|
|
251
262
|
_renderTimeRangeSection() {
|
|
252
263
|
if (!this.analysis || this.hideTimeRangeSlider && this.hideDatePicker)
|
|
253
264
|
return;
|
|
254
|
-
const { _effectiveMessages: i,
|
|
255
|
-
return
|
|
256
|
-
|
|
257
|
-
}}></calcite-input-time-zone></calcite-label>` })}${g({ hidden: this.hideDatePicker, children:
|
|
258
|
-
const
|
|
259
|
-
|
|
265
|
+
const { _effectiveMessages: i, viewModel: t } = this, n = this.visualScale;
|
|
266
|
+
return d`<section class="time-range-section">${f({ level: this.headingLevel, children: i.timeRangeHeading })}${g({ hidden: this.hideTimeRangeSlider, children: this._renderTimeRange() })}${g({ hidden: this.hideTimezone, children: d`<calcite-label .scale=${n}>${i.timezoneLabel}<calcite-input-time-zone mode=offset overlay-positioning=fixed .referenceDate=${t.localDate} .scale=${n} .value=${`${h(t.effectiveUtcOffset, "hours", "minutes")}`} @calciteInputTimeZoneChange=${(s) => {
|
|
267
|
+
t.utcOffset = +s.target.value / 60;
|
|
268
|
+
}}></calcite-input-time-zone></calcite-label>` })}${g({ hidden: this.hideDatePicker, children: d`<calcite-label .scale=${n}>${i.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${n} .valueAsDate=${t.date} @calciteInputDatePickerChange=${(s) => {
|
|
269
|
+
const l = s.currentTarget.valueAsDate;
|
|
270
|
+
t.date = Array.isArray(l) ? l[0] : l;
|
|
260
271
|
}}></calcite-input-date-picker></calcite-label>` })}</section>`;
|
|
261
272
|
}
|
|
262
273
|
_renderTimeRange() {
|
|
263
|
-
const { _effectiveMessages: i, viewModel:
|
|
264
|
-
return
|
|
265
|
-
|
|
274
|
+
const { _effectiveMessages: i, viewModel: t } = this;
|
|
275
|
+
return d`<arcgis-time-of-day-slider mode=range .startTime=${w(this.startTimeOfDay)} .endTime=${w(this.endTimeOfDay)} .label=${i.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({ currentTarget: n }) => {
|
|
276
|
+
t.startTimeOfDay = h(n.startTime, "minutes", "milliseconds"), t.endTimeOfDay = h(n.endTime, "minutes", "milliseconds");
|
|
266
277
|
}}></arcgis-time-of-day-slider>`;
|
|
267
278
|
}
|
|
268
279
|
_renderVisualizationOptionsSection() {
|
|
269
|
-
const { analysis: i, _effectiveMessages:
|
|
280
|
+
const { analysis: i, _effectiveMessages: t, headingLevel: n, viewModel: s } = this;
|
|
270
281
|
if (!i)
|
|
271
282
|
return;
|
|
272
|
-
const { discreteOptions: l, totalDurationOptions:
|
|
273
|
-
return
|
|
283
|
+
const { discreteOptions: l, totalDurationOptions: c, minDurationOptions: D } = i, p = (_, b) => s.mode === _ && !b ? void 0 : "hidden-config", x = this.hideMinDurationContextOptions || this.visualizeSunlight, y = this.hideMinDurationContextToggle || this.visualizeSunlight;
|
|
284
|
+
return d`<section class="visualization-options-section">${f({ level: n, children: t.visualizationLabel })}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(p("min-duration", this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${x} .hideContextToggle=${y} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${t} .options=${D} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(p("total-duration", this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${t} .options=${c} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(p("discrete", this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${t} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`;
|
|
274
285
|
}
|
|
275
286
|
_renderModeSelect() {
|
|
276
|
-
const { _effectiveMessages: i, viewModel:
|
|
277
|
-
return
|
|
287
|
+
const { _effectiveMessages: i, viewModel: t } = this, { mode: n } = t;
|
|
288
|
+
return d`<calcite-select .label=${i.visualizationLabel ?? ""} .scale=${this.visualScale} @calciteSelectChange=${(s) => {
|
|
278
289
|
const l = s.target.selectedOption?.value;
|
|
279
|
-
|
|
290
|
+
t.mode = l ?? "min-duration";
|
|
280
291
|
}}>${[
|
|
281
292
|
{ mode: "min-duration", label: i.minDuration?.optionLabel },
|
|
282
293
|
{ mode: "total-duration", label: i.totalDuration?.optionLabel },
|
|
283
294
|
{ mode: "discrete", label: i.discrete?.optionLabel }
|
|
284
|
-
].map(({ mode: s, label: l }) =>
|
|
295
|
+
].map(({ mode: s, label: l }) => d`<calcite-option .selected=${s === n} .value=${s} .label=${l}></calcite-option>`)}</calcite-select>`;
|
|
285
296
|
}
|
|
286
297
|
}
|
|
287
298
|
function w(e) {
|
|
288
299
|
return Math.round(h(e, "milliseconds", "minutes"));
|
|
289
300
|
}
|
|
290
|
-
C("arcgis-shadow-cast",
|
|
301
|
+
C("arcgis-shadow-cast", B);
|
|
291
302
|
export {
|
|
292
|
-
|
|
303
|
+
B as ArcgisShadowCast
|
|
293
304
|
};
|
|
@@ -11,7 +11,7 @@ import type Collection from "@arcgis/core/core/Collection.js";
|
|
|
11
11
|
import type { SketchGroupName } from "@arcgis/core/applications/ExperienceBuilder/sketchUtils.js";
|
|
12
12
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
13
13
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
14
|
-
import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties, SketchTool, SelectionTool, CreationMode, UpdateOptions, Layout, SketchPointSymbol, SketchPolygonSymbol, SketchPolylineSymbol, State, ToolbarKind } from "@arcgis/core/widgets/Sketch/types.js";
|
|
14
|
+
import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, DuplicateEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties, SketchTool, SelectionTool, CreationMode, UpdateOptions, Layout, SketchPointSymbol, SketchPolygonSymbol, SketchPolylineSymbol, State, ToolbarKind } from "@arcgis/core/widgets/Sketch/types.js";
|
|
15
15
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
16
16
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
17
17
|
import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
|
|
@@ -550,6 +550,12 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
550
550
|
dismissFloatingElements(): Promise<void>;
|
|
551
551
|
duplicate(): Promise<void>;
|
|
552
552
|
redo(): Promise<void>;
|
|
553
|
+
/**
|
|
554
|
+
* @param location
|
|
555
|
+
* @internal
|
|
556
|
+
* @since 5.1
|
|
557
|
+
*/
|
|
558
|
+
setContextualToolLocation(location: "inline-end" | "inline" | "separate"): Promise<void>;
|
|
553
559
|
/**
|
|
554
560
|
* @param createToolOptions
|
|
555
561
|
* @param customActionOptions
|
|
@@ -563,6 +569,12 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
563
569
|
* @since 5.1
|
|
564
570
|
*/
|
|
565
571
|
setGroupAllowCollapseOptions(options: Map<SketchGroupName, boolean>): Promise<void>;
|
|
572
|
+
/**
|
|
573
|
+
* @param priorities
|
|
574
|
+
* @internal
|
|
575
|
+
* @since 5.1
|
|
576
|
+
*/
|
|
577
|
+
setGroupCollapsePriorities(priorities: Map<SketchGroupName, number> | null): Promise<void>;
|
|
566
578
|
/**
|
|
567
579
|
* @param graphic
|
|
568
580
|
* @param updateOptions
|
|
@@ -576,6 +588,8 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
576
588
|
readonly arcgisCreate: import("@arcgis/lumina").TargetedEvent<this, CreateEvent>;
|
|
577
589
|
/** Fires when a user deletes selected graphics by clicking the Delete feature button on the Sketch widget or when the `delete()` method is called. */
|
|
578
590
|
readonly arcgisDelete: import("@arcgis/lumina").TargetedEvent<this, DeleteEvent>;
|
|
591
|
+
/** Fires when the user duplicates selected graphics. */
|
|
592
|
+
readonly arcgisDuplicate: import("@arcgis/lumina").TargetedEvent<this, DuplicateEvent>;
|
|
579
593
|
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
580
594
|
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "state"; }>;
|
|
581
595
|
/** Emitted when the component associated with a map or scene view is ready to be interacted with. */
|
|
@@ -589,6 +603,7 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
589
603
|
readonly "@eventTypes": {
|
|
590
604
|
arcgisCreate: ArcgisSketch["arcgisCreate"]["detail"];
|
|
591
605
|
arcgisDelete: ArcgisSketch["arcgisDelete"]["detail"];
|
|
606
|
+
arcgisDuplicate: ArcgisSketch["arcgisDuplicate"]["detail"];
|
|
592
607
|
arcgisPropertyChange: ArcgisSketch["arcgisPropertyChange"]["detail"];
|
|
593
608
|
arcgisReady: ArcgisSketch["arcgisReady"]["detail"];
|
|
594
609
|
arcgisRedo: ArcgisSketch["arcgisRedo"]["detail"];
|