@arcgis/map-components 4.34.0-next.5 → 4.34.0-next.51
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/23HAYJDR.js +4 -0
- package/dist/cdn/2CDG6HD7.js +4 -0
- package/dist/cdn/2EKUK755.js +4 -0
- package/dist/cdn/2LEPUYNL.js +4 -0
- package/dist/cdn/2X5HT3OR.js +4 -0
- package/dist/cdn/2X7UJLWL.js +4 -0
- package/dist/cdn/35HMSGLA.js +4 -0
- package/dist/cdn/3DPIAPJU.js +4 -0
- package/dist/cdn/3NF7FJBP.js +4 -0
- package/dist/cdn/3RJTB2MQ.js +4 -0
- package/dist/cdn/44ZQIRNR.js +4 -0
- package/dist/cdn/47QYSQQI.js +4 -0
- package/dist/cdn/47VHUNU6.js +4 -0
- package/dist/cdn/4F6FSL4T.js +4 -0
- package/dist/cdn/4LPNSJCM.js +4 -0
- package/dist/cdn/{4MRPFB2F.js → 4SDYEIKE.js} +2 -2
- package/dist/cdn/4TG2R2QU.js +4 -0
- package/dist/cdn/52EMW3O2.js +4 -0
- package/dist/cdn/57FQE7CG.js +4 -0
- package/dist/cdn/{V32WTVMP.js → 5FKORFL4.js} +1 -1
- package/dist/cdn/5P67NND5.js +4 -0
- package/dist/cdn/{RNMVFT5P.js → 5TUSCZO2.js} +1 -1
- package/dist/cdn/5YR5YPEH.js +4 -0
- package/dist/cdn/5YXRIS4X.js +3 -0
- package/dist/cdn/66PSAFAX.js +4 -0
- package/dist/cdn/6OBEVEH7.js +4 -0
- package/dist/cdn/6ODSFWYE.js +4 -0
- package/dist/cdn/6OS77J7L.js +4 -0
- package/dist/cdn/6OUY3XXG.js +4 -0
- package/dist/cdn/6UFE5NN6.js +4 -0
- package/dist/cdn/6VF4IEDN.js +4 -0
- package/dist/cdn/6XJKM67Q.js +4 -0
- package/dist/cdn/6ZUHPUCU.js +4 -0
- package/dist/cdn/7ABP4YLG.js +5 -0
- package/dist/cdn/7F5MGIQN.js +4 -0
- package/dist/cdn/7KIW5BCC.js +4 -0
- package/dist/cdn/7OHN63MP.js +4 -0
- package/dist/cdn/7PMQXZ6J.js +4 -0
- package/dist/cdn/7VBSLXI6.js +4 -0
- package/dist/cdn/ABY3EJGK.js +4 -0
- package/dist/cdn/AJOE7HMC.js +4 -0
- package/dist/cdn/{54VGZGQT.js → ANEAZJAQ.js} +2 -2
- package/dist/cdn/AOILTLWV.js +4 -0
- package/dist/cdn/APLX2G3G.js +4 -0
- package/dist/cdn/AYT64V4O.js +4 -0
- package/dist/cdn/BPKJF4BQ.js +4 -0
- package/dist/cdn/BQWGRO5F.js +4 -0
- package/dist/cdn/CATEMY5Q.js +4 -0
- package/dist/cdn/CBDJEZIQ.js +4 -0
- package/dist/cdn/CL2KUYAV.js +4 -0
- package/dist/cdn/{RZWKYMUH.js → CNVEHUDF.js} +2 -2
- package/dist/cdn/COBMNV4T.js +4 -0
- package/dist/cdn/D6C2QQQG.js +4 -0
- package/dist/cdn/DGOWPVSJ.js +4 -0
- package/dist/cdn/DNPTHNCU.js +4 -0
- package/dist/cdn/{BNUZVD5L.js → DOC7KVHO.js} +2 -2
- package/dist/cdn/{JE6AJOV2.js → DQFJCFJE.js} +2 -2
- package/dist/cdn/DRDEFATT.js +4 -0
- package/dist/cdn/E6DQN3MY.js +4 -0
- package/dist/cdn/EBPGB4PM.js +4 -0
- package/dist/cdn/EKDI5BRX.js +4 -0
- package/dist/cdn/ENB3QCSY.js +4 -0
- package/dist/cdn/F6A67IBM.js +4 -0
- package/dist/cdn/FGU7NQB3.js +4 -0
- package/dist/cdn/FNDCY6TH.js +4 -0
- package/dist/cdn/FNJ522JF.js +4 -0
- package/dist/cdn/FP6W6INT.js +4 -0
- package/dist/cdn/FQDWKAFC.js +4 -0
- package/dist/cdn/FUOB72QT.js +4 -0
- package/dist/cdn/FXYAWM4G.js +4 -0
- package/dist/cdn/FYTYNQJW.js +4 -0
- package/dist/cdn/G7MO5YNI.js +4 -0
- package/dist/cdn/GAO72ICS.js +4 -0
- package/dist/cdn/GAWSZGSE.js +4 -0
- package/dist/cdn/GCVFIMSI.js +4 -0
- package/dist/cdn/GH5ORWDD.js +4 -0
- package/dist/cdn/GLY2QNU5.js +4 -0
- package/dist/cdn/{UKUTVSTC.js → GOKTRDSW.js} +2 -2
- package/dist/cdn/GTEBKEBT.js +4 -0
- package/dist/cdn/H4XXPWYD.js +4 -0
- package/dist/cdn/HBRDA6ZG.js +4 -0
- package/dist/cdn/HHLBL37Q.js +4 -0
- package/dist/cdn/{AIJ5QKVL.js → HNH26E33.js} +1 -1
- package/dist/cdn/HOBDI6JD.js +4 -0
- package/dist/cdn/HOBYGWBS.js +4 -0
- package/dist/cdn/HQFAH7VM.js +4 -0
- package/dist/cdn/HTTSJGJH.js +4 -0
- package/dist/cdn/HW36UUHG.js +4 -0
- package/dist/cdn/IKLWWK2I.js +4 -0
- package/dist/cdn/IWDZFFZJ.js +4 -0
- package/dist/cdn/{CY2ZUEMG.js → IWRQ325C.js} +2 -2
- package/dist/cdn/IZ33XLJR.js +4 -0
- package/dist/cdn/J42NCWYZ.js +4 -0
- package/dist/cdn/J7AD3VVE.js +4 -0
- package/dist/cdn/JEAYFG3N.js +4 -0
- package/dist/cdn/JEVL26RG.js +4 -0
- package/dist/cdn/JNIAYBSA.js +4 -0
- package/dist/cdn/JO5V6L7X.js +4 -0
- package/dist/cdn/JT2Y2CFS.js +4 -0
- package/dist/cdn/K66BYPYZ.js +4 -0
- package/dist/cdn/K6AWFSFK.js +4 -0
- package/dist/cdn/KG2HQWWR.js +4 -0
- package/dist/cdn/KGR3TOXV.js +4 -0
- package/dist/cdn/KNPHEVWW.js +4 -0
- package/dist/cdn/KRTOFDMU.js +4 -0
- package/dist/cdn/KVN5WZ2F.js +4 -0
- package/dist/cdn/{EPS7HMFS.js → LSZOTLG2.js} +1 -1
- package/dist/cdn/M5EMWKKY.js +4 -0
- package/dist/cdn/M77KTA6U.js +4 -0
- package/dist/cdn/MOI6KAID.js +4 -0
- package/dist/cdn/MR5AO3NN.js +4 -0
- package/dist/cdn/MUMY6GEM.js +4 -0
- package/dist/cdn/N55D5MJJ.js +4 -0
- package/dist/cdn/NJTUC76F.js +4 -0
- package/dist/cdn/NPQISYAT.js +4 -0
- package/dist/cdn/NX654MZD.js +4 -0
- package/dist/cdn/NXKE4IBO.js +4 -0
- package/dist/cdn/NXP472VC.js +4 -0
- package/dist/cdn/NZMUQVNO.js +4 -0
- package/dist/cdn/O33QCB33.js +4 -0
- package/dist/cdn/O4UTHW2Y.js +4 -0
- package/dist/cdn/O7WE7QGS.js +4 -0
- package/dist/cdn/ODI4TZIM.js +4 -0
- package/dist/cdn/OOUQ765K.js +4 -0
- package/dist/cdn/OSBYI6F5.js +4 -0
- package/dist/cdn/OUTJJ7Z2.js +4 -0
- package/dist/cdn/OUURDOBJ.js +4 -0
- package/dist/cdn/PJSU42JM.js +6 -0
- package/dist/cdn/PLDRW24K.js +4 -0
- package/dist/cdn/PPGAVYMR.js +4 -0
- package/dist/cdn/PQMAOWDZ.js +4 -0
- package/dist/cdn/PWHAZRNJ.js +4 -0
- package/dist/cdn/{Z5OKVV3T.js → PZO5SSQT.js} +2 -2
- package/dist/cdn/Q34PXGKN.js +4 -0
- package/dist/cdn/QARQYR3S.js +4 -0
- package/dist/cdn/QHNAGBYU.js +4 -0
- package/dist/cdn/QLTAVM6R.js +4 -0
- package/dist/cdn/REC3WVMB.js +4 -0
- package/dist/cdn/RLRHEVME.js +4 -0
- package/dist/cdn/S3Y6WOSE.js +4 -0
- package/dist/cdn/S72W2EOS.js +4 -0
- package/dist/cdn/SCGFRFEA.js +4 -0
- package/dist/cdn/SDTNEE4Q.js +4 -0
- package/dist/cdn/SELAQDGF.js +4 -0
- package/dist/cdn/SG6XFUPU.js +4 -0
- package/dist/cdn/STPFZ6PG.js +4 -0
- package/dist/cdn/SULU3BCZ.js +4 -0
- package/dist/cdn/T347J3LH.js +4 -0
- package/dist/cdn/T4OF5KMY.js +4 -0
- package/dist/cdn/T4ZGI6ZX.js +4 -0
- package/dist/cdn/TIVO56VB.js +4 -0
- package/dist/cdn/TJLAHABW.js +4 -0
- package/dist/cdn/{5ZZR2J6N.js → TOOG2ECU.js} +2 -2
- package/dist/cdn/TVSLB42C.js +4 -0
- package/dist/cdn/{4GXYTGZZ.js → UHTGJYCW.js} +1 -1
- package/dist/cdn/UW2QFZLI.js +4 -0
- package/dist/cdn/VFCPDEJV.js +4 -0
- package/dist/cdn/VINXCROG.js +4 -0
- package/dist/cdn/VLJ5T5EM.js +4 -0
- package/dist/cdn/VMSV3XLY.js +4 -0
- package/dist/cdn/VT2S6EIP.js +4 -0
- package/dist/cdn/VWC4UHZI.js +4 -0
- package/dist/cdn/W2TJDRTX.js +4 -0
- package/dist/cdn/W6STCPFV.js +4 -0
- package/dist/cdn/{HRVDXQJH.js → W7KNNUEM.js} +1 -1
- package/dist/cdn/WC5PO2WX.js +4 -0
- package/dist/cdn/WJXSWJ6Y.js +4 -0
- package/dist/cdn/WLR2QMDR.js +4 -0
- package/dist/cdn/WMTBPX3C.js +4 -0
- package/dist/cdn/X3YMQ2R4.js +4 -0
- package/dist/cdn/{QIELYIFC.js → X4VRZLRF.js} +2 -2
- package/dist/cdn/X7YZSEGZ.js +4 -0
- package/dist/cdn/XCGQPPDC.js +4 -0
- package/dist/cdn/{ZFZIGRGE.js → XIW72IDH.js} +1 -1
- package/dist/cdn/XYEXAVRU.js +4 -0
- package/dist/cdn/Y6BRCKJZ.js +4 -0
- package/dist/cdn/YAPOF7X6.js +4 -0
- package/dist/cdn/YJD3MIER.js +4 -0
- package/dist/cdn/YRLL2RF2.js +4 -0
- package/dist/cdn/YYZRFHWC.js +4 -0
- package/dist/cdn/{LB4FJL6Z.js → Z2DUVJVT.js} +2 -2
- package/dist/cdn/ZQ3B7VXH.js +4 -0
- package/dist/cdn/{FCPVKFF7.js → ZT3D6RRA.js} +2 -2
- package/dist/cdn/ZYQGIGGR.js +4 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/feature/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +4 -4
- package/dist/chunks/async-utils.js +3 -3
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/chart-utils.js +66 -0
- package/dist/chunks/chartCommon.js +19 -0
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/feature-utils.js +178 -0
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/heading.js +13 -13
- package/dist/chunks/layer-list.js +2 -2
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useHandles.js +4 -4
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +5 -0
- package/dist/components/arcgis-area-measurement-2d/customElement.js +2 -2
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +111 -9
- package/dist/components/arcgis-area-measurement-3d/customElement.js +19 -23
- package/dist/components/arcgis-attachments/customElement.d.ts +12 -1
- package/dist/components/arcgis-attachments/customElement.js +8 -8
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +10 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +18 -19
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +5 -0
- package/dist/components/arcgis-basemap-layer-list/customElement.js +2 -2
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +11 -2
- package/dist/components/arcgis-basemap-toggle/customElement.js +16 -17
- package/dist/components/arcgis-bookmarks/css.d.ts +22 -0
- package/dist/components/arcgis-bookmarks/customElement.d.ts +239 -82
- package/dist/components/arcgis-bookmarks/customElement.js +456 -17
- package/dist/components/arcgis-bookmarks/index.d.ts +21 -0
- package/dist/components/arcgis-bookmarks/index.js +21 -0
- package/dist/components/arcgis-bookmarks/interfaces.d.ts +12 -0
- package/dist/components/arcgis-bookmarks/user-state.d.ts +26 -0
- package/dist/components/arcgis-building-explorer/customElement.d.ts +26 -14
- package/dist/components/arcgis-building-explorer/customElement.js +2 -2
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +5 -0
- package/dist/components/arcgis-catalog-layer-list/customElement.js +2 -2
- package/dist/components/arcgis-compass/customElement.d.ts +10 -1
- package/dist/components/arcgis-compass/customElement.js +15 -16
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +6 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +4 -4
- package/dist/components/arcgis-daylight/customElement.d.ts +27 -13
- package/dist/components/arcgis-daylight/customElement.js +2 -2
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +112 -9
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +13 -17
- package/dist/components/arcgis-directional-pad/customElement.d.ts +10 -1
- package/dist/components/arcgis-directional-pad/customElement.js +20 -21
- package/dist/components/arcgis-directions/customElement.d.ts +7 -2
- package/dist/components/arcgis-directions/customElement.js +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +5 -0
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +2 -2
- package/dist/components/arcgis-editor/customElement.d.ts +6 -1
- package/dist/components/arcgis-editor/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +28 -20
- package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
- package/dist/components/arcgis-expand/customElement.d.ts +10 -4
- package/dist/components/arcgis-expand/customElement.js +2 -2
- package/dist/components/arcgis-feature/customElement.d.ts +179 -87
- package/dist/components/arcgis-feature/customElement.js +192 -21
- package/dist/components/arcgis-feature/index.d.ts +7 -0
- package/dist/components/arcgis-feature/index.js +7 -0
- package/dist/components/arcgis-feature-attachments/customElement.d.ts +17 -0
- package/dist/components/arcgis-feature-attachments/customElement.js +37 -0
- package/dist/components/arcgis-feature-attachments/index.d.ts +3 -0
- package/dist/components/arcgis-feature-attachments/index.js +3 -0
- package/dist/components/arcgis-feature-content/customElement.d.ts +11 -0
- package/dist/components/arcgis-feature-content/customElement.js +65 -0
- package/dist/components/arcgis-feature-content/index.d.ts +2 -0
- package/dist/components/arcgis-feature-content/index.js +2 -0
- package/dist/components/arcgis-feature-element-info/customElement.d.ts +11 -0
- package/dist/components/arcgis-feature-element-info/customElement.js +42 -0
- package/dist/components/arcgis-feature-element-info/index.d.ts +1 -0
- package/dist/components/arcgis-feature-element-info/index.js +1 -0
- package/dist/components/arcgis-feature-expression/customElement.d.ts +21 -0
- package/dist/components/arcgis-feature-expression/customElement.js +248 -0
- package/dist/components/arcgis-feature-expression/index.d.ts +5 -0
- package/dist/components/arcgis-feature-expression/index.js +5 -0
- package/dist/components/arcgis-feature-fields/customElement.d.ts +17 -0
- package/dist/components/arcgis-feature-fields/customElement.js +142 -0
- package/dist/components/arcgis-feature-fields/index.d.ts +2 -0
- package/dist/components/arcgis-feature-fields/index.js +2 -0
- package/dist/components/arcgis-feature-form/customElement.d.ts +7 -2
- package/dist/components/arcgis-feature-form/customElement.js +2 -2
- package/dist/components/arcgis-feature-media/chartCommon.d.ts +1 -0
- package/dist/components/arcgis-feature-media/customElement.d.ts +36 -0
- package/dist/components/arcgis-feature-media/customElement.js +571 -0
- package/dist/components/arcgis-feature-media/index.d.ts +3 -0
- package/dist/components/arcgis-feature-media/index.js +3 -0
- package/dist/components/arcgis-feature-table/customElement.d.ts +7 -1
- package/dist/components/arcgis-feature-table/customElement.js +2 -2
- package/dist/components/arcgis-feature-templates/customElement.d.ts +5 -0
- package/dist/components/arcgis-feature-templates/customElement.js +2 -2
- package/dist/components/arcgis-features/customElement.d.ts +5 -0
- package/dist/components/arcgis-features/customElement.js +2 -2
- package/dist/components/arcgis-floor-filter/customElement.d.ts +5 -0
- package/dist/components/arcgis-floor-filter/customElement.js +2 -2
- package/dist/components/arcgis-fullscreen/customElement.d.ts +21 -2
- package/dist/components/arcgis-fullscreen/customElement.js +32 -19
- package/dist/components/arcgis-grid-controls/customElement.d.ts +10 -1
- package/dist/components/arcgis-grid-controls/customElement.js +15 -16
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +5 -0
- package/dist/components/arcgis-histogram-range-slider/customElement.js +2 -2
- package/dist/components/arcgis-home/customElement.d.ts +39 -16
- package/dist/components/arcgis-home/customElement.js +14 -15
- package/dist/components/arcgis-labeled-switch/customElement.js +10 -11
- package/dist/components/arcgis-layer-list/customElement.d.ts +5 -0
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +2 -2
- package/dist/components/arcgis-legend/customElement.d.ts +5 -0
- package/dist/components/arcgis-legend/customElement.js +2 -2
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +75 -19
- package/dist/components/arcgis-line-of-sight/customElement.js +19 -23
- package/dist/components/arcgis-link-chart/customElement.d.ts +20 -10
- package/dist/components/arcgis-link-chart/customElement.js +20 -9
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +13 -2
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +25 -27
- package/dist/components/arcgis-link-chart-layout-switcher/index.d.ts +1 -2
- package/dist/components/arcgis-link-chart-layout-switcher/index.js +1 -2
- package/dist/components/arcgis-locate/LocateViewModel.d.ts +4 -5
- package/dist/components/arcgis-locate/customElement.d.ts +17 -5
- package/dist/components/arcgis-locate/customElement.js +55 -56
- package/dist/components/arcgis-map/customElement.d.ts +27 -14
- package/dist/components/arcgis-map/customElement.js +26 -15
- package/dist/components/arcgis-measurement/customElement.d.ts +5 -0
- package/dist/components/arcgis-measurement/customElement.js +2 -2
- package/dist/components/arcgis-measurement-content/customElement.js +12 -13
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +17 -13
- package/dist/components/arcgis-navigation-toggle/customElement.js +17 -15
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +5 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +2 -2
- package/dist/components/arcgis-placement/customElement.d.ts +5 -0
- package/dist/components/arcgis-placement/customElement.js +2 -2
- package/dist/components/arcgis-print/customElement.d.ts +55 -41
- package/dist/components/arcgis-print/customElement.js +38 -33
- package/dist/components/arcgis-print/types.d.ts +40 -0
- package/dist/components/arcgis-print/utils.d.ts +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +2 -2
- package/dist/components/arcgis-print-dpi-input/customElement.js +18 -23
- package/dist/components/arcgis-print-export-button/customElement.d.ts +1 -7
- package/dist/components/arcgis-print-export-button/customElement.js +4 -5
- package/dist/components/arcgis-print-exported-link/customElement.d.ts +1 -1
- package/dist/components/arcgis-print-exported-link/customElement.js +24 -25
- package/dist/components/arcgis-print-exports-panel/customElement.d.ts +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +10 -11
- package/dist/components/arcgis-print-format-select/customElement.d.ts +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +3 -3
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +9 -10
- package/dist/components/arcgis-print-layout-panel/customElement.d.ts +1 -7
- package/dist/components/arcgis-print-layout-panel/customElement.js +14 -15
- package/dist/components/arcgis-print-main-panel/customElement.d.ts +2 -8
- package/dist/components/arcgis-print-main-panel/customElement.js +12 -13
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +6 -7
- package/dist/components/arcgis-print-map-only-panel/customElement.d.ts +1 -7
- package/dist/components/arcgis-print-map-only-panel/customElement.js +28 -23
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +26 -22
- package/dist/components/arcgis-print-preview-input/customElement.js +2 -2
- package/dist/components/arcgis-print-scale-section/customElement.js +26 -20
- package/dist/components/arcgis-print-template-select/customElement.js +11 -12
- package/dist/components/arcgis-print-template-selector/customElement.js +9 -10
- package/dist/components/arcgis-scale-bar/customElement.d.ts +11 -2
- package/dist/components/arcgis-scale-bar/customElement.js +3 -3
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +5 -0
- package/dist/components/arcgis-scale-range-slider/customElement.js +2 -2
- package/dist/components/arcgis-scene/customElement.d.ts +144 -81
- package/dist/components/arcgis-scene/customElement.js +28 -17
- package/dist/components/arcgis-search/customElement.d.ts +52 -16
- package/dist/components/arcgis-search/customElement.js +41 -38
- package/dist/components/arcgis-search-result-renderer/customElement.js +14 -15
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +92 -30
- package/dist/components/arcgis-shadow-cast/customElement.js +2 -2
- package/dist/components/arcgis-sketch/customElement.d.ts +5 -0
- package/dist/components/arcgis-sketch/customElement.js +27 -19
- package/dist/components/arcgis-slice/SliceViewModel.d.ts +0 -1
- package/dist/components/arcgis-slice/customElement.d.ts +77 -18
- package/dist/components/arcgis-slice/customElement.js +32 -41
- package/dist/components/arcgis-slider/customElement.d.ts +5 -0
- package/dist/components/arcgis-slider/customElement.js +2 -2
- package/dist/components/arcgis-swipe/customElement.d.ts +28 -2
- package/dist/components/arcgis-swipe/customElement.js +43 -44
- package/dist/components/arcgis-table-list/customElement.d.ts +5 -0
- package/dist/components/arcgis-table-list/customElement.js +2 -2
- package/dist/components/arcgis-time-slider/customElement.d.ts +5 -0
- package/dist/components/arcgis-time-slider/customElement.js +2 -2
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +3 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +10 -11
- package/dist/components/arcgis-track/customElement.d.ts +26 -9
- package/dist/components/arcgis-track/customElement.js +14 -15
- package/dist/components/arcgis-unit-select/customElement.d.ts +6 -2
- package/dist/components/arcgis-unit-select/customElement.js +22 -16
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +16 -13
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +6 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +5 -0
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.d.ts +5 -0
- package/dist/components/arcgis-value-picker/customElement.js +2 -2
- package/dist/components/arcgis-version-management/customElement.d.ts +14 -5
- package/dist/components/arcgis-version-management/customElement.js +49 -51
- package/dist/components/arcgis-version-management-service-item/customElement.d.ts +0 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +19 -20
- package/dist/components/arcgis-version-management-version-item/customElement.d.ts +0 -1
- package/dist/components/arcgis-version-management-version-item/customElement.js +12 -12
- package/dist/components/arcgis-version-management-version-list/customElement.d.ts +0 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +18 -22
- package/dist/components/arcgis-version-management-version-properties/customElement.d.ts +0 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +43 -44
- package/dist/components/arcgis-video/customElement.d.ts +27 -10
- package/dist/components/arcgis-video/customElement.js +15 -24
- package/dist/components/arcgis-video-player/customElement.d.ts +23 -5
- package/dist/components/arcgis-video-player/customElement.js +38 -32
- package/dist/components/arcgis-video-player-action-bar/customElement.js +11 -12
- package/dist/components/arcgis-video-player-actions-group/customElement.js +2 -2
- package/dist/components/arcgis-video-player-controls-group/customElement.js +13 -13
- package/dist/components/arcgis-video-player-metadata/customElement.js +10 -11
- package/dist/components/arcgis-video-player-settings/customElement.js +8 -9
- package/dist/components/arcgis-video-player-slider/customElement.js +6 -7
- package/dist/components/arcgis-weather/WeatherViewModel.d.ts +1 -1
- package/dist/components/arcgis-weather/customElement.d.ts +52 -3
- package/dist/components/arcgis-weather/customElement.js +16 -17
- package/dist/components/arcgis-zoom/customElement.d.ts +10 -1
- package/dist/components/arcgis-zoom/customElement.js +11 -12
- package/dist/controllers/Handles.d.ts +2 -2
- package/dist/controllers/useHandles.d.ts +4 -4
- package/dist/docs/api.json +2220 -656
- package/dist/docs/docs.json +2021 -863
- package/dist/docs/vscode.html-custom-data.json +319 -135
- package/dist/docs/web-types.json +680 -322
- package/dist/geolocation/GeolocationPositioning.d.ts +5 -6
- package/dist/index.d.ts +7 -3
- package/dist/index.js +1 -1
- package/dist/loader.js +26 -20
- package/dist/support/heading.d.ts +2 -1
- package/dist/types/lumina.d.ts +23 -18
- package/dist/types/preact.d.ts +23 -18
- package/dist/types/react.d.ts +23 -18
- package/dist/types/stencil.d.ts +23 -18
- package/dist/utils/chart-utils.d.ts +6 -0
- package/dist/utils/feature-utils.d.ts +33 -0
- package/dist/utils/related-feature-utils.d.ts +6 -0
- package/dist/utils/uri-utils.d.ts +4 -0
- package/package.json +6 -4
- package/dist/cdn/24BGG5B5.js +0 -4
- package/dist/cdn/2ABLOYUQ.js +0 -4
- package/dist/cdn/2MCSN6B6.js +0 -4
- package/dist/cdn/2O4Y7OHR.js +0 -4
- package/dist/cdn/2TWTTB4C.js +0 -4
- package/dist/cdn/2UUPIIJ2.js +0 -4
- package/dist/cdn/3JRMNN7J.js +0 -4
- package/dist/cdn/3PIZQW3M.js +0 -4
- package/dist/cdn/3TK75HC6.js +0 -4
- package/dist/cdn/4O62D3XH.js +0 -4
- package/dist/cdn/4WF35OVZ.js +0 -4
- package/dist/cdn/544SB4EK.js +0 -4
- package/dist/cdn/5AZ345NY.js +0 -4
- package/dist/cdn/5DVI4EBY.js +0 -4
- package/dist/cdn/64ECRPXA.js +0 -4
- package/dist/cdn/6CDNOZQF.js +0 -4
- package/dist/cdn/6SCGGHDS.js +0 -4
- package/dist/cdn/7LOOJUA4.js +0 -4
- package/dist/cdn/7Q2LH4TM.js +0 -4
- package/dist/cdn/7X5UWWAM.js +0 -4
- package/dist/cdn/A2GEUHD7.js +0 -4
- package/dist/cdn/BMYPLHTO.js +0 -4
- package/dist/cdn/BOBGF74Z.js +0 -4
- package/dist/cdn/CEY2DMIN.js +0 -4
- package/dist/cdn/CQG33CHS.js +0 -4
- package/dist/cdn/DB2RVFYE.js +0 -4
- package/dist/cdn/DCAIQVAC.js +0 -4
- package/dist/cdn/EDF5YBMS.js +0 -4
- package/dist/cdn/EE2WJOUL.js +0 -4
- package/dist/cdn/EFPP35S3.js +0 -4
- package/dist/cdn/ETTC3DDE.js +0 -4
- package/dist/cdn/EZXIFOKP.js +0 -4
- package/dist/cdn/FDO7BW3M.js +0 -4
- package/dist/cdn/FIIIUSQA.js +0 -4
- package/dist/cdn/FIQDTOHK.js +0 -4
- package/dist/cdn/FIRY4NWS.js +0 -4
- package/dist/cdn/FKYCCKL6.js +0 -4
- package/dist/cdn/G7FI7ZEJ.js +0 -4
- package/dist/cdn/GTFZYBLH.js +0 -4
- package/dist/cdn/H7WRFI2D.js +0 -4
- package/dist/cdn/HGHOHO2E.js +0 -4
- package/dist/cdn/HHKEZDYI.js +0 -4
- package/dist/cdn/HI5YGVEU.js +0 -4
- package/dist/cdn/HVHKTHJR.js +0 -4
- package/dist/cdn/I4UJICTJ.js +0 -4
- package/dist/cdn/IDRJHSB4.js +0 -4
- package/dist/cdn/INXLPBES.js +0 -4
- package/dist/cdn/IPSPJR6H.js +0 -4
- package/dist/cdn/J3TNLK3O.js +0 -4
- package/dist/cdn/JEGU6LY5.js +0 -4
- package/dist/cdn/JPHNAFYX.js +0 -4
- package/dist/cdn/JWHVUXI7.js +0 -4
- package/dist/cdn/JXEJ2FDT.js +0 -4
- package/dist/cdn/K667RV3F.js +0 -4
- package/dist/cdn/KHHWOKDH.js +0 -4
- package/dist/cdn/KWXFVL5O.js +0 -4
- package/dist/cdn/LNC2FBRF.js +0 -4
- package/dist/cdn/LX2VKBL5.js +0 -4
- package/dist/cdn/LZ4SDJU4.js +0 -4
- package/dist/cdn/M42LA7QJ.js +0 -4
- package/dist/cdn/MHF4R4QG.js +0 -4
- package/dist/cdn/MHXI4R7Q.js +0 -6
- package/dist/cdn/MT6FGRRO.js +0 -4
- package/dist/cdn/MTJFO22N.js +0 -4
- package/dist/cdn/MWH2P5CL.js +0 -4
- package/dist/cdn/MWRQZLPR.js +0 -4
- package/dist/cdn/MZJOI5UH.js +0 -4
- package/dist/cdn/O2E4MNME.js +0 -4
- package/dist/cdn/O7NRUX5I.js +0 -4
- package/dist/cdn/OLDX3JZA.js +0 -4
- package/dist/cdn/OMQCMWFC.js +0 -4
- package/dist/cdn/OQ4Q4IIJ.js +0 -4
- package/dist/cdn/OSKGVTTW.js +0 -4
- package/dist/cdn/OVXJMGHR.js +0 -4
- package/dist/cdn/P2BRHVAB.js +0 -4
- package/dist/cdn/PQ3OUY5L.js +0 -4
- package/dist/cdn/PVTCJ67N.js +0 -4
- package/dist/cdn/RC2PKLFD.js +0 -4
- package/dist/cdn/RLYPTZW6.js +0 -4
- package/dist/cdn/RRJG3CW4.js +0 -4
- package/dist/cdn/SRXUA5WQ.js +0 -4
- package/dist/cdn/T5RGPAAI.js +0 -4
- package/dist/cdn/TEBWJ3I7.js +0 -4
- package/dist/cdn/TISZTZQL.js +0 -4
- package/dist/cdn/UF2KELUQ.js +0 -4
- package/dist/cdn/UF5A7HCA.js +0 -4
- package/dist/cdn/UKX6JNY3.js +0 -4
- package/dist/cdn/UPUPF3OI.js +0 -4
- package/dist/cdn/V5FW6B4I.js +0 -4
- package/dist/cdn/VF2Y76QB.js +0 -4
- package/dist/cdn/W425S3CR.js +0 -4
- package/dist/cdn/WE4HRX3B.js +0 -4
- package/dist/cdn/X7HXAK7T.js +0 -4
- package/dist/cdn/XBWRLYN4.js +0 -4
- package/dist/cdn/XIHWMEJG.js +0 -4
- package/dist/cdn/YGTIT746.js +0 -4
- package/dist/cdn/YJLPPO4D.js +0 -4
- package/dist/cdn/YTVNHZ2T.js +0 -4
- package/dist/cdn/YZO4MONH.js +0 -4
- package/dist/cdn/ZPQ7DJV3.js +0 -4
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { c as e } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as s, html as t } from "lit";
|
|
3
|
+
import { LitElement as a, noShadowRoot as i, safeClassMap as n } from "@arcgis/lumina";
|
|
4
|
+
import { createRef as h, ref as c } from "lit-html/directives/ref.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
+
v4.34.0-next.51 */
|
|
8
|
+
const r = s`@layer{arcgis-feature-attachments{display:block}}`, o = "arcgis-feature-attachments", m = {
|
|
9
|
+
base: o
|
|
10
|
+
};
|
|
11
|
+
class d extends a {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this._attachmentsRef = h(), this.hideSection = !1, this.attachmentsLength = 0, this.headingLevel = 2;
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.properties = { hideSection: 16, attachmentsLength: 16, state: 16, description: 1, displayType: 1, graphic: 0, heading: 1, headingLevel: 9, messages: 0 };
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.styles = r;
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.shadowRootOptions = i;
|
|
23
|
+
}
|
|
24
|
+
_updateAttachmentsState() {
|
|
25
|
+
this.state = this._attachmentsRef.value?.state, this.attachmentsLength = this._attachmentsRef.value?.attachmentInfos?.length ?? 0;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return t`<div class=${n(m.base)}>${this.renderContent()}</div>`;
|
|
29
|
+
}
|
|
30
|
+
renderContent() {
|
|
31
|
+
return t`<div .hidden=${!(this.state === "loading" || this.attachmentsLength > 0)}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info><arcgis-attachments @arcgisPropertyChange=${this._updateAttachmentsState} .graphic=${this.graphic} .displayType=${this.displayType} ${c(this._attachmentsRef)}></arcgis-attachments></div>`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
e("arcgis-feature-attachments", d);
|
|
35
|
+
export {
|
|
36
|
+
d as ArcgisFeatureAttachments
|
|
37
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
3
|
+
import { Nil } from '@arcgis/components-utils';
|
|
4
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
5
|
+
|
|
6
|
+
/** @private */
|
|
7
|
+
export declare class ArcgisFeatureContent extends LitElement {
|
|
8
|
+
creator?: __esri.PopupTemplateContent | __esri.PopupTemplateContentCreator | Promise<__esri.PopupTemplateContent>;
|
|
9
|
+
destroyer?: __esri.PopupTemplateContentDestroyer;
|
|
10
|
+
graphic?: __esri.Graphic;
|
|
11
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { c as l } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as g, html as r } from "lit";
|
|
3
|
+
import { ref as f } from "lit/directives/ref.js";
|
|
4
|
+
import { LitElement as d, noShadowRoot as h, safeClassMap as i } from "@arcgis/lumina";
|
|
5
|
+
import { j as n, h as u } from "../../chunks/feature-utils.js";
|
|
6
|
+
import { watch as m } from "@arcgis/core/core/reactiveUtils.js";
|
|
7
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
+
v4.34.0-next.51 */
|
|
10
|
+
const p = g`@layer{arcgis-feature-content{display:block}.arcgis-feature-content__loader-container{display:flex;align-items:center;justify-content:center;padding:0;height:150px}.arcgis-feature-content{font-size:var(--calcite-font-size-md)}.arcgis-feature-content h1,.arcgis-feature-content h2,.arcgis-feature-content h3,.arcgis-feature-content h4,.arcgis-feature-content h5,.arcgis-feature-content h6{margin:var(--calcite-spacing-sm) 0;line-height:normal;letter-spacing:0;color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-semibold)}.arcgis-feature-content h1{font-size:var(--calcite-font-size-xxl)}.arcgis-feature-content h2{font-size:var(--calcite-font-size-xl)}.arcgis-feature-content h3{font-size:var(--calcite-font-size-lg)}.arcgis-feature-content h4,.arcgis-feature-content h5,.arcgis-feature-content h6{font-size:var(--calcite-font-size)}.arcgis-widget__heading.arcgis-feature-element-info__title{margin-top:0;margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-lg);font-weight:var(--calcite-font-weight-regular)}.arcgis-feature-element-info__description{margin-bottom:var(--calcite-spacing-xs);font-size:var(--calcite-font-weight-regular);font-weight:var(--calcite-font-weight-regular)}.arcgis-feature-content p{margin:0 0 var(--calcite-spacing-xs);font-size:var(--calcite-font-weight-regular)}.arcgis-feature-content p:last-child{margin-block-end:0}.arcgis-feature-content img{max-width:100%;max-height:100%;image-orientation:from-image}.arcgis-feature-content video{max-width:100%;max-height:100%}.arcgis-feature-content figure{margin:0;padding:0}.arcgis-feature-content figcaption{display:block;margin:var(--calcite-spacing-xs) 0 0;padding:0;font-size:var(--calcite-font-size-sm);font-style:italic}.arcgis-feature-content ul,.arcgis-feature-content ol{margin-block:var(--calcite-spacing-sm)}.arcgis-feature-content ul:first-child,.arcgis-feature-content ol:first-child{margin-block-start:0}.arcgis-feature-content a,.arcgis-feature-content a:hover,.arcgis-feature-content a:focus{color:var(--calcite-color-text-link)}}`, c = "arcgis-feature-content", o = {
|
|
11
|
+
base: c,
|
|
12
|
+
loaderContainer: `${c}__loader-container`
|
|
13
|
+
};
|
|
14
|
+
class v extends d {
|
|
15
|
+
static {
|
|
16
|
+
this.properties = { _loadingPromise: 16, _created: 16, creator: 1, destroyer: 0, graphic: 0 };
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.styles = p;
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.shadowRootOptions = h;
|
|
23
|
+
}
|
|
24
|
+
loaded() {
|
|
25
|
+
this.manager.onLifecycle(() => m(() => this.creator, (t) => {
|
|
26
|
+
this._destroyContent(), this._createContent(t);
|
|
27
|
+
}, { initial: !0 }));
|
|
28
|
+
}
|
|
29
|
+
async _createContent(t) {
|
|
30
|
+
const { graphic: e } = this;
|
|
31
|
+
if (!e || !t)
|
|
32
|
+
return;
|
|
33
|
+
const a = n({
|
|
34
|
+
type: "content",
|
|
35
|
+
value: t,
|
|
36
|
+
event: { graphic: e }
|
|
37
|
+
});
|
|
38
|
+
this._loadingPromise = a;
|
|
39
|
+
const s = await a;
|
|
40
|
+
a === this._loadingPromise && (this._loadingPromise = void 0, this._created = s);
|
|
41
|
+
}
|
|
42
|
+
_destroyContent() {
|
|
43
|
+
const { _created: t, graphic: e, destroyer: a } = this;
|
|
44
|
+
t && e && (n({ type: "content", value: a, event: { graphic: e } }), this._created = null);
|
|
45
|
+
}
|
|
46
|
+
_addTargetToAnchors(t) {
|
|
47
|
+
t && Array.from(t.querySelectorAll("a")).forEach((e) => {
|
|
48
|
+
u(e.href) && !e.hasAttribute("target") && e.setAttribute("target", "_blank");
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return r`<div class=${i(o.base)}>${this._loadingPromise ? this._renderLoading() : this._renderCreated()}</div>`;
|
|
53
|
+
}
|
|
54
|
+
_renderLoading() {
|
|
55
|
+
return r`<div class=${i(o.loaderContainer)}><calcite-loader inline label></calcite-loader></div>`;
|
|
56
|
+
}
|
|
57
|
+
_renderCreated() {
|
|
58
|
+
const { _created: t } = this;
|
|
59
|
+
return t instanceof HTMLElement ? t : typeof t == "string" ? r`<div .innerHTML=${t ?? ""} ${f(this._addTargetToAnchors)}></div>` : null;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
l("arcgis-feature-content", v);
|
|
63
|
+
export {
|
|
64
|
+
v as ArcgisFeatureContent
|
|
65
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="../../index.d.ts" />
|
|
2
|
+
import { HeadingLevel } from '../../support/heading';
|
|
3
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
|
+
|
|
5
|
+
/** @private */
|
|
6
|
+
export declare class ArcgisFeatureElementInfo extends LitElement {
|
|
7
|
+
description?: string;
|
|
8
|
+
/** @default 2 */
|
|
9
|
+
headingLevel: HeadingLevel;
|
|
10
|
+
heading?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { c as a } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as o, html as i } from "lit";
|
|
3
|
+
import { H as c } from "../../chunks/heading.js";
|
|
4
|
+
import { LitElement as l, noShadowRoot as d, safeClassMap as s } from "@arcgis/lumina";
|
|
5
|
+
import { renderingSanitizer as r } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
6
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
8
|
+
v4.34.0-next.51 */
|
|
9
|
+
const g = o`@layer{arcgis-feature-element-info{display:block}.arcgis-feature-element-info__heading{margin-top:0;margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size-xl);font-weight:var(--calcite-font-weight-regular)}.arcgis-feature-element-info__description{margin-bottom:var(--calcite-spacing-sm);font-size:var(--calcite-font-line-height-fixed-base);font-weight:var(--calcite-font-weight-regular)}}`, t = "arcgis-feature-element-info", n = {
|
|
10
|
+
base: t,
|
|
11
|
+
heading: `${t}__heading`,
|
|
12
|
+
description: `${t}__description`
|
|
13
|
+
};
|
|
14
|
+
class h extends l {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.headingLevel = 2;
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.properties = { description: 1, headingLevel: 9, heading: 1 };
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.styles = g;
|
|
23
|
+
}
|
|
24
|
+
static {
|
|
25
|
+
this.shadowRootOptions = d;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return i`<div class=${s(n.base)}>${this._renderHeading()}${this._renderDescription()}</div>`;
|
|
29
|
+
}
|
|
30
|
+
_renderHeading() {
|
|
31
|
+
const { heading: e } = this;
|
|
32
|
+
return e ? c({ class: n.heading, level: this.headingLevel, excludeGlobalCss: !0, children: i`<div .innerHTML=${r.sanitize(e) ?? ""}></div>` }) : null;
|
|
33
|
+
}
|
|
34
|
+
_renderDescription() {
|
|
35
|
+
const { description: e } = this;
|
|
36
|
+
return e ? i`<div class=${s(n.description)} .innerHTML=${r.sanitize(e) ?? ""}></div>` : null;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
a("arcgis-feature-element-info", h);
|
|
40
|
+
export {
|
|
41
|
+
h as ArcgisFeatureElementInfo
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
3
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
|
+
import { HeadingLevel } from '../../support/heading';
|
|
5
|
+
import { ArcgisFeature } from '../arcgis-feature/customElement.js';
|
|
6
|
+
|
|
7
|
+
/** @private */
|
|
8
|
+
export declare class ArcgisFeatureExpression extends LitElement {
|
|
9
|
+
values?: HashMap<number | string>;
|
|
10
|
+
fieldInfoMap?: Map<string, __esri.FieldInfo>;
|
|
11
|
+
expressionInfo?: __esri.ElementExpressionInfo;
|
|
12
|
+
graphic?: __esri.Graphic;
|
|
13
|
+
/** @default 2 */
|
|
14
|
+
headingLevel: HeadingLevel;
|
|
15
|
+
interceptor?: __esri.RequestInterceptor;
|
|
16
|
+
location?: __esri.Point;
|
|
17
|
+
messages?: ArcgisFeature["messages"];
|
|
18
|
+
spatialReference?: __esri.SpatialReference;
|
|
19
|
+
map?: __esri.Map;
|
|
20
|
+
view?: __esri.View;
|
|
21
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { c as G } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as X, html as v } from "lit";
|
|
3
|
+
import { LitElement as D, noShadowRoot as H, safeClassMap as O } from "@arcgis/lumina";
|
|
4
|
+
import { watch as q, when as z } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { a as $ } from "../../chunks/maybe.js";
|
|
6
|
+
import { c as w, t as I } from "../../chunks/async-utils.js";
|
|
7
|
+
import K from "@arcgis/core/popup/content/MediaContent.js";
|
|
8
|
+
import Q from "@arcgis/core/popup/content/FieldsContent.js";
|
|
9
|
+
import Y from "@arcgis/core/popup/content/TextContent.js";
|
|
10
|
+
import { compileExpression as Z } from "@arcgis/core/applications/Components/arcadeFeatureUtils.js";
|
|
11
|
+
import { s as ee } from "../../chunks/feature-utils.js";
|
|
12
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
14
|
+
v4.34.0-next.51 */
|
|
15
|
+
var te = typeof global == "object" && global && global.Object === Object && global, ne = typeof self == "object" && self && self.Object === Object && self, W = te || ne || Function("return this")(), b = W.Symbol, J = Object.prototype, ie = J.hasOwnProperty, re = J.toString, T = b ? b.toStringTag : void 0;
|
|
16
|
+
function ae(e) {
|
|
17
|
+
var t = ie.call(e, T), i = e[T];
|
|
18
|
+
try {
|
|
19
|
+
e[T] = void 0;
|
|
20
|
+
var n = !0;
|
|
21
|
+
} catch {
|
|
22
|
+
}
|
|
23
|
+
var r = re.call(e);
|
|
24
|
+
return n && (t ? e[T] = i : delete e[T]), r;
|
|
25
|
+
}
|
|
26
|
+
var se = Object.prototype, oe = se.toString;
|
|
27
|
+
function le(e) {
|
|
28
|
+
return oe.call(e);
|
|
29
|
+
}
|
|
30
|
+
var ce = "[object Null]", fe = "[object Undefined]", L = b ? b.toStringTag : void 0;
|
|
31
|
+
function ue(e) {
|
|
32
|
+
return e == null ? e === void 0 ? fe : ce : L && L in Object(e) ? ae(e) : le(e);
|
|
33
|
+
}
|
|
34
|
+
function de(e) {
|
|
35
|
+
return e != null && typeof e == "object";
|
|
36
|
+
}
|
|
37
|
+
var me = "[object Symbol]";
|
|
38
|
+
function pe(e) {
|
|
39
|
+
return typeof e == "symbol" || de(e) && ue(e) == me;
|
|
40
|
+
}
|
|
41
|
+
var he = /\s/;
|
|
42
|
+
function ge(e) {
|
|
43
|
+
for (var t = e.length; t-- && he.test(e.charAt(t)); )
|
|
44
|
+
;
|
|
45
|
+
return t;
|
|
46
|
+
}
|
|
47
|
+
var ve = /^\s+/;
|
|
48
|
+
function Te(e) {
|
|
49
|
+
return e && e.slice(0, ge(e) + 1).replace(ve, "");
|
|
50
|
+
}
|
|
51
|
+
function x(e) {
|
|
52
|
+
var t = typeof e;
|
|
53
|
+
return e != null && (t == "object" || t == "function");
|
|
54
|
+
}
|
|
55
|
+
var C = NaN, ye = /^[-+]0x[0-9a-f]+$/i, be = /^0b[01]+$/i, xe = /^0o[0-7]+$/i, _e = parseInt;
|
|
56
|
+
function A(e) {
|
|
57
|
+
if (typeof e == "number")
|
|
58
|
+
return e;
|
|
59
|
+
if (pe(e))
|
|
60
|
+
return C;
|
|
61
|
+
if (x(e)) {
|
|
62
|
+
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
63
|
+
e = x(t) ? t + "" : t;
|
|
64
|
+
}
|
|
65
|
+
if (typeof e != "string")
|
|
66
|
+
return e === 0 ? e : +e;
|
|
67
|
+
e = Te(e);
|
|
68
|
+
var i = be.test(e);
|
|
69
|
+
return i || xe.test(e) ? _e(e.slice(2), i ? 2 : 8) : ye.test(e) ? C : +e;
|
|
70
|
+
}
|
|
71
|
+
var k = function() {
|
|
72
|
+
return W.Date.now();
|
|
73
|
+
}, $e = "Expected a function", Ie = Math.max, ke = Math.min;
|
|
74
|
+
function Se(e, t, i) {
|
|
75
|
+
var n, r, o, l, a, c, u = 0, h = !1, d = !1, p = !0;
|
|
76
|
+
if (typeof e != "function")
|
|
77
|
+
throw new TypeError($e);
|
|
78
|
+
t = A(t) || 0, x(i) && (h = !!i.leading, d = "maxWait" in i, o = d ? Ie(A(i.maxWait) || 0, t) : o, p = "trailing" in i ? !!i.trailing : p);
|
|
79
|
+
function f(s) {
|
|
80
|
+
var m = n, g = r;
|
|
81
|
+
return n = r = void 0, u = s, l = e.apply(g, m), l;
|
|
82
|
+
}
|
|
83
|
+
function P(s) {
|
|
84
|
+
return u = s, a = setTimeout(y, t), h ? f(s) : l;
|
|
85
|
+
}
|
|
86
|
+
function V(s) {
|
|
87
|
+
var m = s - c, g = s - u, E = t - m;
|
|
88
|
+
return d ? ke(E, o - g) : E;
|
|
89
|
+
}
|
|
90
|
+
function S(s) {
|
|
91
|
+
var m = s - c, g = s - u;
|
|
92
|
+
return c === void 0 || m >= t || m < 0 || d && g >= o;
|
|
93
|
+
}
|
|
94
|
+
function y() {
|
|
95
|
+
var s = k();
|
|
96
|
+
if (S(s))
|
|
97
|
+
return j(s);
|
|
98
|
+
a = setTimeout(y, V(s));
|
|
99
|
+
}
|
|
100
|
+
function j(s) {
|
|
101
|
+
return a = void 0, p && n ? f(s) : (n = r = void 0, l);
|
|
102
|
+
}
|
|
103
|
+
function B() {
|
|
104
|
+
a !== void 0 && clearTimeout(a), u = 0, n = c = r = a = void 0;
|
|
105
|
+
}
|
|
106
|
+
function U() {
|
|
107
|
+
return a === void 0 ? l : j(k());
|
|
108
|
+
}
|
|
109
|
+
function _() {
|
|
110
|
+
var s = k(), m = S(s);
|
|
111
|
+
if (n = arguments, r = this, c = s, m) {
|
|
112
|
+
if (a === void 0)
|
|
113
|
+
return P(c);
|
|
114
|
+
if (d)
|
|
115
|
+
return clearTimeout(a), a = setTimeout(y, t), f(c);
|
|
116
|
+
}
|
|
117
|
+
return a === void 0 && (a = setTimeout(y, t)), l;
|
|
118
|
+
}
|
|
119
|
+
return _.cancel = B, _.flush = U, _;
|
|
120
|
+
}
|
|
121
|
+
var je = "Expected a function";
|
|
122
|
+
function R(e, t, i) {
|
|
123
|
+
var n = !0, r = !0;
|
|
124
|
+
if (typeof e != "function")
|
|
125
|
+
throw new TypeError(je);
|
|
126
|
+
return x(i) && (n = "leading" in i ? !!i.leading : n, r = "trailing" in i ? !!i.trailing : r), Se(e, t, {
|
|
127
|
+
leading: n,
|
|
128
|
+
maxWait: t,
|
|
129
|
+
trailing: r
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
const Ee = X`@layer{arcgis-feature-expression{display:block}.arcgis-feature-expression__loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}}`, M = 1, N = "arcgis-feature", F = {
|
|
133
|
+
// widget
|
|
134
|
+
base: `${N}-expression`,
|
|
135
|
+
// loading
|
|
136
|
+
loadingSpinnerContainer: `${N}__loading-container`
|
|
137
|
+
};
|
|
138
|
+
class Oe extends D {
|
|
139
|
+
constructor() {
|
|
140
|
+
super(...arguments), this._compileThrottled = R(this._startCompile, M), this._evaluateThrottled = R(this._startEvaluate, M), this.headingLevel = 2;
|
|
141
|
+
}
|
|
142
|
+
static {
|
|
143
|
+
this.properties = { _compileTask: 16, _evaluateTask: 16, values: 0, fieldInfoMap: 0, expressionInfo: 0, graphic: 0, headingLevel: 9, interceptor: 0, location: 0, messages: 0, spatialReference: 0, map: 0, view: 0 };
|
|
144
|
+
}
|
|
145
|
+
static {
|
|
146
|
+
this.styles = Ee;
|
|
147
|
+
}
|
|
148
|
+
static {
|
|
149
|
+
this.shadowRootOptions = H;
|
|
150
|
+
}
|
|
151
|
+
loaded() {
|
|
152
|
+
this.manager.onLifecycle(() => [
|
|
153
|
+
q(() => [this.expressionInfo, this.graphic], () => this._compileThrottled(), { initial: !0 }),
|
|
154
|
+
z(() => {
|
|
155
|
+
if (!this._compileTask?.finished)
|
|
156
|
+
return null;
|
|
157
|
+
const t = this._compileTask.value, i = t?.dependencies, { view: n } = this;
|
|
158
|
+
return [
|
|
159
|
+
t,
|
|
160
|
+
this.spatialReference,
|
|
161
|
+
this.map,
|
|
162
|
+
n,
|
|
163
|
+
i?.has("view-scale") && n && "scale" in n ? n.scale : null,
|
|
164
|
+
i?.has("view-time-extent") ? n?.timeExtent?.start : null,
|
|
165
|
+
i?.has("view-time-extent") ? n?.timeExtent?.end : null
|
|
166
|
+
];
|
|
167
|
+
}, ([t]) => this._evaluateThrottled(t)),
|
|
168
|
+
{
|
|
169
|
+
remove: () => this._cancelThrottles()
|
|
170
|
+
}
|
|
171
|
+
]);
|
|
172
|
+
}
|
|
173
|
+
_cancelThrottles() {
|
|
174
|
+
this._compileThrottled.cancel(), this._evaluateThrottled.cancel();
|
|
175
|
+
}
|
|
176
|
+
_startCompile() {
|
|
177
|
+
this._evaluateTask = $(this._evaluateTask), this._compileTask = $(this._compileTask), this._compileTask = w(async (t) => {
|
|
178
|
+
const { expressionInfo: i, graphic: n } = this, r = i?.expression;
|
|
179
|
+
if (!r || !n)
|
|
180
|
+
return null;
|
|
181
|
+
const o = await Z({
|
|
182
|
+
expression: r,
|
|
183
|
+
graphic: n
|
|
184
|
+
});
|
|
185
|
+
return I(t), o;
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
_startEvaluate(t) {
|
|
189
|
+
this._evaluateTask = $(this._evaluateTask), this._evaluateTask = w(async (i) => {
|
|
190
|
+
const { graphic: n } = this;
|
|
191
|
+
if (!t || !n)
|
|
192
|
+
return null;
|
|
193
|
+
const { interceptor: r, spatialReference: o, map: l, location: a, view: c } = this, u = await t.evaluate({
|
|
194
|
+
graphic: n,
|
|
195
|
+
interceptor: r,
|
|
196
|
+
location: a,
|
|
197
|
+
map: l,
|
|
198
|
+
options: { signal: i },
|
|
199
|
+
spatialReference: o,
|
|
200
|
+
view: c
|
|
201
|
+
});
|
|
202
|
+
I(i);
|
|
203
|
+
const h = u && "castAsJsonAsync" in u && typeof u.castAsJsonAsync == "function" ? u : null;
|
|
204
|
+
if (!h)
|
|
205
|
+
return null;
|
|
206
|
+
const d = await h.castAsJsonAsync(i);
|
|
207
|
+
I(i);
|
|
208
|
+
const p = d?.type, f = p === "media" ? K.fromJSON(d) : p === "text" ? Y.fromJSON(d) : p === "fields" ? Q.fromJSON(d) : null;
|
|
209
|
+
return !f || f.type === "media" && !f.mediaInfos || f.type === "fields" && !f.fieldInfos || f.type === "text" && !f.text ? null : f;
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
render() {
|
|
213
|
+
const t = !this._compileTask?.finished || !this._evaluateTask?.finished;
|
|
214
|
+
return v`<div class=${O(F.base)}>${t ? this._renderLoading() : this._evaluateTask?.value ? this._renderContent() : null}</div>`;
|
|
215
|
+
}
|
|
216
|
+
_renderContent() {
|
|
217
|
+
const { values: t, fieldInfoMap: i } = this, n = this._evaluateTask?.value, r = n?.type;
|
|
218
|
+
if (!r)
|
|
219
|
+
return null;
|
|
220
|
+
if (r === "text") {
|
|
221
|
+
const o = ee({
|
|
222
|
+
values: t,
|
|
223
|
+
fieldInfoMap: i ?? /* @__PURE__ */ new Map(),
|
|
224
|
+
globalValues: t ?? {},
|
|
225
|
+
layer: void 0,
|
|
226
|
+
text: n.text
|
|
227
|
+
});
|
|
228
|
+
return v`<arcgis-feature-content .creator=${o} .graphic=${this.graphic}></arcgis-feature-content>`;
|
|
229
|
+
} else if (r === "media") {
|
|
230
|
+
const { title: o, description: l, mediaInfos: a } = n;
|
|
231
|
+
if (!a?.length)
|
|
232
|
+
return null;
|
|
233
|
+
const c = { ...t, ...n.attributes };
|
|
234
|
+
return v`<arcgis-feature-media .heading=${o ?? ""} .values=${c} .formattedValues=${c} .description=${l ?? ""} .mediaInfos=${a} .messages=${this.messages} .headingLevel=${this.headingLevel}></arcgis-feature-media>`;
|
|
235
|
+
} else if (r === "fields") {
|
|
236
|
+
const { title: o, description: l, fieldInfos: a } = n;
|
|
237
|
+
return a?.length ? v`<arcgis-feature-fields .fieldInfos=${a} .heading=${o ?? ""} .description=${l ?? ""} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-feature-fields>` : null;
|
|
238
|
+
}
|
|
239
|
+
return null;
|
|
240
|
+
}
|
|
241
|
+
_renderLoading() {
|
|
242
|
+
return v`<div class=${O(F.loadingSpinnerContainer)}><calcite-loader inline label></calcite-loader></div>`;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
G("arcgis-feature-expression", Oe);
|
|
246
|
+
export {
|
|
247
|
+
Oe as ArcgisFeatureExpression
|
|
248
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
3
|
+
import { HeadingLevel } from '../../support/heading';
|
|
4
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
5
|
+
import { ArcgisFeature } from '../arcgis-feature/customElement.js';
|
|
6
|
+
|
|
7
|
+
/** @private */
|
|
8
|
+
export declare class ArcgisFeatureFields extends LitElement {
|
|
9
|
+
values?: HashMap<number | string>;
|
|
10
|
+
description?: string;
|
|
11
|
+
expressionInfos?: __esri.ExpressionInfo[];
|
|
12
|
+
fieldInfos?: __esri.FieldInfo[];
|
|
13
|
+
heading?: string;
|
|
14
|
+
/** @default 2 */
|
|
15
|
+
headingLevel: HeadingLevel;
|
|
16
|
+
messages?: ArcgisFeature["messages"];
|
|
17
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { c as u } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as b, html as n } from "lit";
|
|
3
|
+
import { addLTRMark as h } from "@arcgis/components-utils";
|
|
4
|
+
import { LitElement as $, noShadowRoot as v, safeClassMap as d } from "@arcgis/lumina";
|
|
5
|
+
import { renderingSanitizer as p } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
6
|
+
import { replace as f } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
7
|
+
import { e as _ } from "../../chunks/feature-utils.js";
|
|
8
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
10
|
+
v4.34.0-next.51 */
|
|
11
|
+
const w = [
|
|
12
|
+
{
|
|
13
|
+
pattern: /^\s*(https?:\/\/([^\s]+))\s*$/iu,
|
|
14
|
+
target: "_blank",
|
|
15
|
+
label: "{messages.view}"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
pattern: /^\s*(tel:([^\s]+))\s*$/iu,
|
|
19
|
+
label: "{hierPart}"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
pattern: /^\s*(mailto:([^\s]+))\s*$/iu,
|
|
23
|
+
label: "{hierPart}"
|
|
24
|
+
},
|
|
25
|
+
// ArcGIS Apps
|
|
26
|
+
{
|
|
27
|
+
pattern: /^\s*(arcgis-appstudio-player:\/\/([^\s]+))\s*$/iu,
|
|
28
|
+
label: "{messages.openInApp}",
|
|
29
|
+
appName: "App Studio Player"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
pattern: /^\s*(arcgis-collector:\/\/([^\s]+))\s*$/iu,
|
|
33
|
+
label: "{messages.openInApp}",
|
|
34
|
+
appName: "Collector"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
pattern: /^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/iu,
|
|
38
|
+
label: "{messages.openInApp}",
|
|
39
|
+
appName: "Explorer"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
pattern: /^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/iu,
|
|
43
|
+
label: "{messages.openInApp}",
|
|
44
|
+
appName: "Navigator"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
pattern: /^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/iu,
|
|
48
|
+
label: "{messages.openInApp}",
|
|
49
|
+
appName: "Survey123"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
pattern: /^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/iu,
|
|
53
|
+
label: "{messages.openInApp}",
|
|
54
|
+
appName: "Trek2There"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
pattern: /^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/iu,
|
|
58
|
+
label: "{messages.openInApp}",
|
|
59
|
+
appName: "Workforce"
|
|
60
|
+
},
|
|
61
|
+
// Third-Party Apps
|
|
62
|
+
{
|
|
63
|
+
pattern: /^\s*(iform:\/\/([^\s]+))\s*$/iu,
|
|
64
|
+
label: "{messages.openInApp}",
|
|
65
|
+
appName: "iForm"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
pattern: /^\s*(flow:\/\/([^\s]+))\s*$/iu,
|
|
69
|
+
label: "{messages.openInApp}",
|
|
70
|
+
appName: "FlowFinity"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
pattern: /^\s*(lfmobile:\/\/([^\s]+))\s*$/iu,
|
|
74
|
+
label: "{messages.openInApp}",
|
|
75
|
+
appName: "Laserfische"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
pattern: /^\s*(mspbi:\/\/([^\s]+))\s*$/iu,
|
|
79
|
+
label: "{messages.openInApp}",
|
|
80
|
+
appName: "Microsoft Power Bi"
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
function I(c, t) {
|
|
84
|
+
const e = w.find((l) => l.pattern.test(t));
|
|
85
|
+
if (!e)
|
|
86
|
+
return t;
|
|
87
|
+
const r = t.match(e.pattern)?.[2], s = f(
|
|
88
|
+
f(e.label, {
|
|
89
|
+
messages: c,
|
|
90
|
+
hierPart: r
|
|
91
|
+
}),
|
|
92
|
+
{
|
|
93
|
+
appName: e.appName
|
|
94
|
+
}
|
|
95
|
+
), i = e.target ? ` target="${e.target}"` : "", o = e.target === "_blank" ? ' rel="noreferrer"' : "";
|
|
96
|
+
return p.sanitizeUrl(new URL(t, window.location.origin).toString()).replace(e.pattern, `<a${i} href="$1"${o}>${s}</a>`);
|
|
97
|
+
}
|
|
98
|
+
const F = b`@layer{arcgis-feature-fields{display:block}.arcgis-feature-fields__table{border:none;width:100%;border-collapse:collapse;color:var(--calcite-color-text-2)}.arcgis-feature-fields__table caption{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.arcgis-feature-fields__table tr:nth-child(odd){background-color:var(--calcite-color-foreground-1)}.arcgis-feature-fields__table tr:nth-child(2n){background-color:var(--calcite-color-foreground-2)}.arcgis-feature-fields__table tr a{color:var(--calcite-color-text-link)}.arcgis-feature-fields__table tr a:hover,.arcgis-feature-fields__table tr a:focus{color:var(--calcite-color-brand-hover)}.arcgis-feature-fields__table tr td,.arcgis-feature-fields__table tr th{padding:var(--calcite-spacing-xs) var(--calcite-spacing-sm);vertical-align:top;word-break:break-word;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.arcgis-feature-fields__table tr th{border-inline-end:var(--calcite-border-width-md) solid var(--calcite-color-border-3);width:50%;text-align:start}.arcgis-feature-fields__table tr td{width:50%}}`, g = "arcgis-feature-fields", m = {
|
|
99
|
+
base: g,
|
|
100
|
+
table: `${g}__table`
|
|
101
|
+
};
|
|
102
|
+
class N extends $ {
|
|
103
|
+
constructor() {
|
|
104
|
+
super(...arguments), this.headingLevel = 2;
|
|
105
|
+
}
|
|
106
|
+
static {
|
|
107
|
+
this.properties = { values: 0, description: 1, expressionInfos: 0, fieldInfos: 0, heading: 1, headingLevel: 9, messages: 0 };
|
|
108
|
+
}
|
|
109
|
+
static {
|
|
110
|
+
this.styles = F;
|
|
111
|
+
}
|
|
112
|
+
static {
|
|
113
|
+
this.shadowRootOptions = v;
|
|
114
|
+
}
|
|
115
|
+
get formattedFieldInfos() {
|
|
116
|
+
const { expressionInfos: t, fieldInfos: e } = this, a = [];
|
|
117
|
+
return e?.forEach((r) => {
|
|
118
|
+
if (!("visible" in r ? r.visible : !0))
|
|
119
|
+
return;
|
|
120
|
+
const i = r.clone();
|
|
121
|
+
i.label = _(i, t), a.push(i);
|
|
122
|
+
}), a;
|
|
123
|
+
}
|
|
124
|
+
render() {
|
|
125
|
+
return n`<div class=${d(m.base)}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderFields()}</div>`;
|
|
126
|
+
}
|
|
127
|
+
_renderFieldInfo(t) {
|
|
128
|
+
const { values: e } = this, a = t.fieldName || "", r = t.label || a, s = e ? e[a] == null ? "" : e[a] : "", i = !!t.format?.dateFormat, o = {
|
|
129
|
+
openInApp: this.messages?.openInApp ?? "",
|
|
130
|
+
view: this.messages?.view ?? ""
|
|
131
|
+
}, l = typeof s == "number" && !i ? h(`${s}`) : typeof s == "string" ? I(o, s) : `${s}`;
|
|
132
|
+
return n`<tr><th .innerHTML=${p.sanitize(r) ?? ""}></th><td .innerHTML=${p.sanitize(l) ?? ""}></td></tr>`;
|
|
133
|
+
}
|
|
134
|
+
_renderFields() {
|
|
135
|
+
const { formattedFieldInfos: t } = this;
|
|
136
|
+
return t?.length ? n`<table class=${d(m.table)}><caption>${this.messages?.fieldsSummary}</caption><tbody>${t.map((e) => this._renderFieldInfo(e))}</tbody></table>` : null;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
u("arcgis-feature-fields", N);
|
|
140
|
+
export {
|
|
141
|
+
N as ArcgisFeatureFields
|
|
142
|
+
};
|