@arcgis/map-components 5.2.0-next.25 → 5.2.0-next.27
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/{7TE4BSW7.js → 2NYG7G7M.js} +1 -1
- package/dist/cdn/{RDYFXGBG.js → 2SEZT4WZ.js} +1 -1
- 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/3JEAUEUY.js +2 -0
- package/dist/cdn/{NIH6ZDQF.js → 3MDY3AXY.js} +1 -1
- package/dist/cdn/{QBTISG6Z.js → 3PM2WTS4.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/{W67QMPVV.js → 45O57WR4.js} +1 -1
- 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/4LB5GOV2.js +2 -0
- 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/{XDKYOMSQ.js → 7KPJBKO6.js} +1 -1
- 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/{BXDVZQ2A.js → A2Q7UAOI.js} +1 -1
- package/dist/cdn/{AASOO75T.js → A5W6D3EH.js} +1 -1
- 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/BM3NHWBY.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/{HNFXE43W.js → HIHYNNEU.js} +1 -1
- package/dist/cdn/{FT7ETWDM.js → HKTQWWXP.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/{FWRUNJU5.js → IKBRNNUA.js} +1 -1
- package/dist/cdn/{NSE7MO5B.js → IPLVHFN5.js} +1 -1
- package/dist/cdn/{W3HICVNX.js → IQSSVLSC.js} +1 -1
- package/dist/cdn/{B56MNMJP.js → ITCLBS5H.js} +1 -1
- 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/{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/{YKNC7IPO.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/{HUBIN764.js → S7HZFJQZ.js} +1 -1
- 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/{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/{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/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/YNIECEKR.js +2 -0
- 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/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-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-feature-table/customElement.js +34 -34
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +86 -93
- package/dist/components/arcgis-features/customElement.d.ts +2 -2
- package/dist/components/arcgis-features/customElement.js +23 -21
- package/dist/components/arcgis-features-next/customElement.d.ts +0 -7
- package/dist/components/arcgis-features-next/customElement.js +1 -5
- 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-popup/customElement.d.ts +0 -9
- package/dist/components/arcgis-popup/customElement.js +0 -3
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +4 -1
- package/dist/components/arcgis-presentation/customElement.d.ts +7 -0
- package/dist/components/arcgis-presentation/customElement.js +117 -101
- package/dist/components/arcgis-search/customElement.js +5 -5
- package/dist/components/arcgis-shadow-cast/customElement.js +96 -85
- 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/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 +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/package.json +4 -4
- package/dist/cdn/5P3LF4QU.js +0 -2
- package/dist/cdn/5RXWVXJA.js +0 -2
- package/dist/cdn/BGWYOIKY.js +0 -2
- package/dist/cdn/BV6DN77M.js +0 -2
- package/dist/cdn/DKG4Q4BC.js +0 -2
- package/dist/cdn/GOXEUMKX.js +0 -2
- package/dist/cdn/GUBDP7SN.js +0 -2
- package/dist/cdn/IXWSTLNL.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/SRKKE3UN.js +0 -2
- package/dist/cdn/UGOZSFW2.js +0 -2
- package/dist/cdn/VL2VVN6C.js +0 -2
- package/dist/cdn/VVATJD2C.js +0 -2
- package/dist/cdn/VZVNKP6W.js +0 -2
- package/dist/cdn/YAJLIV63.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
|
@@ -647,9 +647,9 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
647
647
|
*/
|
|
648
648
|
setFocus(): Promise<void>;
|
|
649
649
|
/**
|
|
650
|
-
* Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#event-arcgisTriggerAction) event and executes the action
|
|
651
|
-
* at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#actions) array.
|
|
650
|
+
* Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#event-arcgisTriggerAction) event and executes the specified default action.
|
|
652
651
|
*
|
|
652
|
+
* @deprecated since 5.1. Trigger actions with manual user interaction within the component.
|
|
653
653
|
* @param action
|
|
654
654
|
*/
|
|
655
655
|
triggerAction(action: ActionButton | ActionToggle): Promise<void>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as O } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as R, html as a } from "lit";
|
|
4
|
-
import { keyed as
|
|
4
|
+
import { keyed as V } from "lit/directives/keyed.js";
|
|
5
5
|
import B from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
|
|
6
6
|
import { u as L } from "../../chunks/useT9n.js";
|
|
7
|
-
import { log as
|
|
8
|
-
import { classes as
|
|
9
|
-
import { useDirection as S, usePropertyChange as H, bypassReadOnly as
|
|
7
|
+
import { log as A } from "@arcgis/toolkit/log";
|
|
8
|
+
import { classes as x } from "@arcgis/toolkit/dom";
|
|
9
|
+
import { useDirection as S, usePropertyChange as H, bypassReadOnly as y } from "@arcgis/lumina/controllers";
|
|
10
10
|
import { m as P } from "../../chunks/useViewModel.js";
|
|
11
|
-
import { LitElement as z, createEvent as
|
|
11
|
+
import { LitElement as z, createEvent as I, renderElement as U, nothing as h, safeClassMap as T } from "@arcgis/lumina";
|
|
12
12
|
import { substitute as u, formatNumber as C } from "@arcgis/core/intl.js";
|
|
13
13
|
import { watch as r } from "@arcgis/core/core/reactiveUtils.js";
|
|
14
14
|
import { t as Z, z as K } from "../../chunks/action-utils.js";
|
|
15
|
-
import { stripHTML as
|
|
15
|
+
import { stripHTML as k } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
16
16
|
import E from "@arcgis/core/core/Collection.js";
|
|
17
17
|
import { g as j } from "../../chunks/feature-utils.js";
|
|
18
18
|
import { renderingSanitizer as _ } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
@@ -25,8 +25,8 @@ const J = R`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-col
|
|
|
25
25
|
id: "zoom-to-feature",
|
|
26
26
|
title: "{messages.zoom}"
|
|
27
27
|
}), M = Q.clone();
|
|
28
|
-
function Y(
|
|
29
|
-
return
|
|
28
|
+
function Y(D) {
|
|
29
|
+
return D?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
30
30
|
}
|
|
31
31
|
const ee = P(B);
|
|
32
32
|
class te extends z {
|
|
@@ -38,7 +38,7 @@ class te extends z {
|
|
|
38
38
|
}), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = b(), this._featureMenuViewportNode = b(), this._actionBarMenuNode = b(), this._flowContainerNode = b(), this.messages = L(), this._selectedFeatureComponent = b(), this._cancelOpenRelatedFeature = () => {
|
|
39
39
|
const { _openRelatedFeatureAbortController: e } = this;
|
|
40
40
|
e && e.abort(), this._openRelatedFeatureAbortController = null;
|
|
41
|
-
}, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this.viewModel = ee(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = H()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady =
|
|
41
|
+
}, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this.viewModel = ee(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = H()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = I(), this.arcgisClose = I(), this.arcgisTriggerAction = I();
|
|
42
42
|
}
|
|
43
43
|
static {
|
|
44
44
|
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapseDirection: 1, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureViewModelAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
@@ -135,16 +135,18 @@ class te extends z {
|
|
|
135
135
|
this.location = l.location, this.promises = l.pendingFeatures;
|
|
136
136
|
}
|
|
137
137
|
async next() {
|
|
138
|
-
return
|
|
138
|
+
return A("warn", this, "The return type of FeaturesViewModel on the next() method is deprecated. At 6.0, this method will return void."), this.viewModel.next();
|
|
139
139
|
}
|
|
140
140
|
async previous() {
|
|
141
|
-
return
|
|
141
|
+
return A("warn", this, "The return type of FeaturesViewModel on the previous() method is deprecated. At 6.0, this method will return void."), this.viewModel.previous();
|
|
142
142
|
}
|
|
143
143
|
async setFocus() {
|
|
144
144
|
this._flowContainerNode.value?.setFocus();
|
|
145
145
|
}
|
|
146
146
|
async triggerAction(e) {
|
|
147
|
-
if (
|
|
147
|
+
if (A("warn", this, "The triggerAction() method is deprecated since 5.1. Trigger actions with manual user interaction within the component.", {
|
|
148
|
+
once: !0
|
|
149
|
+
}), !e.disabled)
|
|
148
150
|
return e?.type === "toggle" && (e.value = !e.value), await Z(e, this.viewModel);
|
|
149
151
|
}
|
|
150
152
|
connectedCallback() {
|
|
@@ -183,15 +185,15 @@ class te extends z {
|
|
|
183
185
|
}
|
|
184
186
|
updated() {
|
|
185
187
|
const e = this._selectedFeatureComponent.value ?? void 0;
|
|
186
|
-
this.selectedFeatureComponent !== e &&
|
|
188
|
+
this.selectedFeatureComponent !== e && y(() => this.selectedFeatureComponent = e);
|
|
187
189
|
}
|
|
188
190
|
_syncSelectedDrillInFeature() {
|
|
189
191
|
const e = this.flowItems.getItemAt(this.flowItems.length - 1);
|
|
190
|
-
|
|
192
|
+
y(() => this.selectedDrillInFeature = e?.graphic ?? void 0);
|
|
191
193
|
}
|
|
192
194
|
_syncEffectiveHeading() {
|
|
193
195
|
const e = this._calculateEffectiveHeading();
|
|
194
|
-
this.effectiveHeading !== e &&
|
|
196
|
+
this.effectiveHeading !== e && y(() => this.effectiveHeading = e);
|
|
195
197
|
}
|
|
196
198
|
_cancelFetchingFeatures() {
|
|
197
199
|
this._fetchFeaturesController?.abort(), this._fetchFeaturesController = null;
|
|
@@ -367,7 +369,7 @@ class te extends z {
|
|
|
367
369
|
const { messages: e, viewModel: t } = this, s = this._groupResultsByLayer(), i = this.initialDisplayMode === "list" ? "none" : "single";
|
|
368
370
|
return t.featureViewModels.length ? a`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${i}>${Array.from(s.keys(), (o) => {
|
|
369
371
|
const n = s.get(o)?.map((c) => this._renderFeatureMenuItem(c)), l = o ? o.title ?? this.messages.untitled : null;
|
|
370
|
-
return !this.hideFeatureListLayerTitle && l !== null ?
|
|
372
|
+
return !this.hideFeatureListLayerTitle && l !== null ? V(o ?? "map-graphics", a`<calcite-list-item-group .heading=${l}>${n}</calcite-list-item-group>`) : n;
|
|
371
373
|
})}</calcite-list>` : null;
|
|
372
374
|
}
|
|
373
375
|
_renderHeaderAction(e) {
|
|
@@ -382,10 +384,10 @@ class te extends z {
|
|
|
382
384
|
if (c === "list" && !f)
|
|
383
385
|
return null;
|
|
384
386
|
const F = l.length === 0 && o, $ = p ? !p.content : !w;
|
|
385
|
-
return a`<calcite-flow-item class=${
|
|
387
|
+
return a`<calcite-flow-item class=${T(x({
|
|
386
388
|
"content-feature": !0,
|
|
387
389
|
"flow-item-collapsed": s
|
|
388
|
-
}))} .closable=${!t} .closed=${!g} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${i} .headingLevel=${e} .selected=${F} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!v && d ?
|
|
390
|
+
}))} .closable=${!t} .closed=${!g} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${i} .headingLevel=${e} .selected=${F} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!v && d ? k(d) : void 0} ${m(this._rootFlowItemNode)}>${!v && d ? a`<div slot=heading><div .innerHTML=${_.sanitize(d ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${T(x("container", "content-container", {
|
|
389
391
|
"content-hidden": $
|
|
390
392
|
}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
391
393
|
}
|
|
@@ -394,7 +396,7 @@ class te extends z {
|
|
|
394
396
|
if (o === "feature" && !n)
|
|
395
397
|
return null;
|
|
396
398
|
const $ = !l;
|
|
397
|
-
return a`<calcite-flow-item class=${
|
|
399
|
+
return a`<calcite-flow-item class=${T(x({
|
|
398
400
|
"flow-item-collapsed": f
|
|
399
401
|
}))} .closable=${o === "list" && !t} .closed=${!p} .collapsed=${o === "list" && f} .collapseDirection=${this.collapseDirection ?? (v ? "down" : "up")} .collapsible=${o === "list" && c} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} .description=${this.hideFeatureMenuHeading ? void 0 : u(i.total ?? "", {
|
|
400
402
|
total: w.length
|
|
@@ -404,7 +406,7 @@ class te extends z {
|
|
|
404
406
|
}
|
|
405
407
|
_renderFlowItem(e, t) {
|
|
406
408
|
const { messages: s, hideCloseButton: i, hideSelectFeature: o, active: n, hideHeading: l } = this, c = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, f = c && !o, v = e.flowType === "feature-association", g = s.returnToInitialFeature ?? "", p = s?.selectFeature, w = this._getActionTitle(M), d = !this.hideActionBar && v && c;
|
|
407
|
-
return a`<calcite-flow-item .closable=${!i} .closed=${!n} .description=${
|
|
409
|
+
return a`<calcite-flow-item .closable=${!i} .closed=${!n} .description=${k(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${l ? void 0 : k(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(F) => {
|
|
408
410
|
F.preventDefault(), this._handleDrillInBackClick();
|
|
409
411
|
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${l ? null : a`<div slot=heading><div .innerHTML=${_.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${_.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${g ?? ""} title=${g ?? "" ?? h}></calcite-action>${f ? a`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? h}></calcite-action>` : null}${d ? a`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${M.disabled} .icon=${M.icon ?? void 0} .loading=${M.active} scale=s text-enabled .text=${w} title=${w ?? h} @click=${() => K(this.viewModel, M, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
|
|
410
412
|
}
|
|
@@ -424,7 +426,7 @@ class te extends z {
|
|
|
424
426
|
}
|
|
425
427
|
_renderContent() {
|
|
426
428
|
const { content: e, selectedFeatureViewModel: t } = this.viewModel;
|
|
427
|
-
return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ?
|
|
429
|
+
return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ? V(e, a`<div .innerHTML=${_.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
428
430
|
}
|
|
429
431
|
}
|
|
430
432
|
O("arcgis-features", te);
|
|
@@ -600,13 +600,6 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
600
600
|
* @since 5.1
|
|
601
601
|
*/
|
|
602
602
|
setFocus(): Promise<void>;
|
|
603
|
-
/**
|
|
604
|
-
* Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#event-arcgisTriggerAction) event and executes the action
|
|
605
|
-
* at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions) array.
|
|
606
|
-
*
|
|
607
|
-
* @param action
|
|
608
|
-
*/
|
|
609
|
-
triggerAction(action: ActionButton | ActionToggle): Promise<void>;
|
|
610
603
|
/** Emitted when the component's close button is clicked. */
|
|
611
604
|
readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
612
605
|
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
@@ -98,10 +98,6 @@ class te extends P {
|
|
|
98
98
|
async setFocus() {
|
|
99
99
|
await this._focusTrapNode.value?.setFocus();
|
|
100
100
|
}
|
|
101
|
-
async triggerAction(e) {
|
|
102
|
-
if (!e.disabled)
|
|
103
|
-
return e?.type === "toggle" && (e.value = !e.value), await K(e, this.viewModel);
|
|
104
|
-
}
|
|
105
101
|
connectedCallback() {
|
|
106
102
|
super.connectedCallback(), this._createSpinner();
|
|
107
103
|
}
|
|
@@ -242,7 +238,7 @@ class te extends P {
|
|
|
242
238
|
i || !a || e === t || e === -1 || (this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._removeFlowItems(), this._rootFlowItemNode.value?.scrollContentTo({ top: 0 }));
|
|
243
239
|
}
|
|
244
240
|
_triggerAction(e) {
|
|
245
|
-
|
|
241
|
+
e.disabled || (e?.type === "toggle" && (e.value = !e.value), K(e, this.viewModel), this.arcgisTriggerAction.emit({ action: e }));
|
|
246
242
|
}
|
|
247
243
|
_viewScaleChange() {
|
|
248
244
|
const { selectedFeature: e } = this;
|
|
@@ -1,12 +1,54 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import "../../chunks/runtime.js";
|
|
3
|
-
import "lit/directives/ref.js";
|
|
4
|
-
import "lit";
|
|
5
|
-
import "@arcgis/lumina/controllers";
|
|
6
|
-
import "@arcgis/lumina";
|
|
7
|
-
import "../../chunks/layer-list-utils.js";
|
|
8
|
-
import {
|
|
9
|
-
import "@arcgis/toolkit/dom";
|
|
2
|
+
import { c as l } from "../../chunks/runtime.js";
|
|
3
|
+
import { ref as p } from "lit/directives/ref.js";
|
|
4
|
+
import { css as u, html as a } from "lit";
|
|
5
|
+
import { usePropertyChange as m } from "@arcgis/lumina/controllers";
|
|
6
|
+
import { LitElement as d, nothing as g, safeClassMap as h } from "@arcgis/lumina";
|
|
7
|
+
import { f } from "../../chunks/layer-list-utils.js";
|
|
8
|
+
import { c as n } from "../../chunks/css.js";
|
|
9
|
+
import { classes as y } from "@arcgis/toolkit/dom";
|
|
10
|
+
const b = u`:host{margin-inline:var(--calcite-space-sm)}.status-indicator{visibility:hidden}.publishing{visibility:visible;color:var(--calcite-color-text-2);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:2s infinite arcgis-layer-list__publishing-anim}.updating{visibility:visible;animation:2s infinite arcgis-layer-list__updating-anim}.connection-status{visibility:visible;color:var(--calcite-color-status-warning);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl)}.connection-status--connected{color:var(--calcite-color-status-success)}@keyframes arcgis-layer-list__updating-anim{0%,40%{color:transparent}50%,80%{color:var(--calcite-color-brand)}to{color:transparent}}@keyframes arcgis-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`;
|
|
11
|
+
class v extends d {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.autoDestroyDisabled = !1, this.arcgisPropertyChange = m()("item", "parent");
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.properties = { _iconEl: 16, item: 0, parent: 0, messages: 0, autoDestroyDisabled: 5 };
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.styles = [b];
|
|
20
|
+
}
|
|
21
|
+
async destroy() {
|
|
22
|
+
await this.manager.destroy();
|
|
23
|
+
}
|
|
24
|
+
_setIconEl(i) {
|
|
25
|
+
this._iconEl = i;
|
|
26
|
+
}
|
|
27
|
+
getTooltipText(i, o, s, t) {
|
|
28
|
+
const e = (c) => typeof c == "string" ? c : "";
|
|
29
|
+
if (i)
|
|
30
|
+
return e(t?.publishing);
|
|
31
|
+
if (o)
|
|
32
|
+
return e(t?.updating);
|
|
33
|
+
switch (s) {
|
|
34
|
+
case "connected":
|
|
35
|
+
return e(t?.connected);
|
|
36
|
+
case "paused":
|
|
37
|
+
return e(t?.paused);
|
|
38
|
+
default:
|
|
39
|
+
return e(t?.disconnected);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
if (!this.item)
|
|
44
|
+
return null;
|
|
45
|
+
const { publishing: i } = this.item, o = "updating" in this.item && this.item.updating && !this.parent, s = "connectionStatus" in this.item ? this.item.connectionStatus : void 0, t = !!s, e = i || o || t ? f({ connectionStatus: s, publishing: i }) : "blank", { messages: c } = this, r = this.getTooltipText(i, o, s, c);
|
|
46
|
+
return a`<calcite-icon class=${h(y(n.statusIndicator, { [n.publishing]: i }, "updating" in n && { [n.updating]: o }, "connectionStatus" in n && { [n.connectionStatus]: t }, "connectionStatusConnected" in n && {
|
|
47
|
+
[n.connectionStatusConnected]: t && s === "connected"
|
|
48
|
+
}))} title=${c?.connectionStatus ?? g} .icon=${e} scale=s ${p(this._setIconEl)}></calcite-icon>${this._iconEl ? a`<calcite-tooltip placement=top .referenceElement=${this._iconEl}>${r}</calcite-tooltip>` : null}`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
l("arcgis-layer-list-item-indicator", v);
|
|
10
52
|
export {
|
|
11
|
-
|
|
53
|
+
v as ArcgisLayerListItemIndicator
|
|
12
54
|
};
|