@arcgis/map-components 5.1.0-next.0 → 5.1.0-next.10
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/README.md +1 -1
- package/dist/cdn/{37TNG76C.js → 24PK3ZLX.js} +1 -1
- package/dist/cdn/{ZURN5EZI.js → 2BJHF4JK.js} +1 -1
- package/dist/cdn/{M65HMJZA.js → 2K45WUVH.js} +1 -1
- package/dist/cdn/2MTWUJIA.js +2 -0
- package/dist/cdn/2PAAPTW5.js +2 -0
- package/dist/cdn/{UKKUFJLL.js → 33U3K3P2.js} +1 -1
- package/dist/cdn/3A7HYDQP.js +2 -0
- package/dist/cdn/3OVSVCGF.js +2 -0
- package/dist/cdn/{TPOLS4YM.js → 4IC3NWKK.js} +1 -1
- package/dist/cdn/{UKNKW6MH.js → 4PWBNKOA.js} +1 -1
- package/dist/cdn/{HH6BDERO.js → 4URF7CKU.js} +1 -1
- package/dist/cdn/{RP5SO6BA.js → 4YQLL44L.js} +1 -1
- package/dist/cdn/{42UR6TXZ.js → 5FZLG5YS.js} +1 -1
- package/dist/cdn/5LD4AU4Q.js +2 -0
- package/dist/cdn/{OSPWEZQJ.js → 5PJEJPFY.js} +1 -1
- package/dist/cdn/{TUW6NLYY.js → 5V7HEV2R.js} +1 -1
- package/dist/cdn/{FJJVAOBW.js → 67IVXIOR.js} +1 -1
- package/dist/cdn/{K27JJT2P.js → 6XJFSJGE.js} +1 -1
- package/dist/cdn/{NGKNECON.js → 7357JBTM.js} +1 -1
- package/dist/cdn/{NRV7VFJ7.js → 77ERVO5S.js} +1 -1
- package/dist/cdn/{J55YUTPM.js → 7CBBWB77.js} +1 -1
- package/dist/cdn/7DTWNSIR.js +2 -0
- package/dist/cdn/7L5TRJUA.js +2 -0
- package/dist/cdn/{2VC2VUTP.js → 7S4WE6H3.js} +1 -1
- package/dist/cdn/7WLTT4K3.js +2 -0
- package/dist/cdn/{EX22SAPL.js → 7ZCMIKP6.js} +1 -1
- package/dist/cdn/{NIUIKBRD.js → ACWGHEWO.js} +1 -1
- package/dist/cdn/{S4XGBADW.js → AIRDJCFV.js} +1 -1
- package/dist/cdn/{FQGKKJL7.js → AN2ZNLDK.js} +1 -1
- package/dist/cdn/BAPY2HFP.js +2 -0
- package/dist/cdn/{PISCYSA5.js → BB5CXHDQ.js} +1 -1
- package/dist/cdn/{HK6EWWUB.js → BM2JTRBY.js} +1 -1
- package/dist/cdn/{YC423DBS.js → BNJXI23I.js} +1 -1
- package/dist/cdn/BX7N3KYH.js +2 -0
- package/dist/cdn/{DTVW3MYT.js → CEJGZMGB.js} +1 -1
- package/dist/cdn/CKBTMA4D.js +2 -0
- package/dist/cdn/{AJHRJ5EA.js → CMWIMRU2.js} +1 -1
- package/dist/cdn/{NZAO2BVV.js → CQ2L75M3.js} +1 -1
- package/dist/cdn/{5RGFRTJS.js → CUWONRT5.js} +1 -1
- package/dist/cdn/{CC53K2CR.js → CXOYV56L.js} +1 -1
- package/dist/cdn/{NVACRYY6.js → CZE43OAC.js} +1 -1
- package/dist/cdn/D6YUW72R.js +2 -0
- package/dist/cdn/{TSPKG2WN.js → D7DDJ2QZ.js} +1 -1
- package/dist/cdn/{UVCYUIKZ.js → DLUXWET4.js} +1 -1
- package/dist/cdn/{UM2FDZJJ.js → DUT3D6UH.js} +1 -1
- package/dist/cdn/{UEW7U33S.js → DWW7KAMQ.js} +1 -1
- package/dist/cdn/{WW6L6XX4.js → E4YMNWRJ.js} +1 -1
- package/dist/cdn/{3XMPN66U.js → EPQN4FJS.js} +1 -1
- package/dist/cdn/ERTOHEVB.js +2 -0
- package/dist/cdn/EVC4MXIZ.js +2 -0
- package/dist/cdn/FANKLSAT.js +2 -0
- package/dist/cdn/{EVRFMTMV.js → FOMIDTAN.js} +1 -1
- package/dist/cdn/{HO4JUZ6N.js → FQJMTGXO.js} +1 -1
- package/dist/cdn/{64OEHFBZ.js → FTBTVD7U.js} +1 -1
- package/dist/cdn/G4A4VLTL.js +2 -0
- package/dist/cdn/{KXF2562U.js → GHA2ANJZ.js} +1 -1
- package/dist/cdn/{3DO7PVNW.js → GLNRLEZE.js} +1 -1
- package/dist/cdn/{HR2OOT3F.js → GQN4ALIE.js} +1 -1
- package/dist/cdn/{H6ILOF27.js → GS43BIES.js} +1 -1
- package/dist/cdn/{YFUI4F5L.js → GUAI5SHN.js} +1 -1
- package/dist/cdn/GXBHOVJY.js +2 -0
- package/dist/cdn/{SZ5MNKOW.js → HVI2FE73.js} +1 -1
- package/dist/cdn/{WGWNMYUH.js → I2WEEE2E.js} +1 -1
- package/dist/cdn/{XO6U6OVM.js → I3PBMKT5.js} +1 -1
- package/dist/cdn/{RCWZGU5T.js → I6ZXIPND.js} +1 -1
- package/dist/cdn/{PMQLTMQ4.js → IIPYTUR3.js} +1 -1
- package/dist/cdn/{AP2IFWYH.js → INS77MCT.js} +1 -1
- package/dist/cdn/IPNIJANM.js +2 -0
- package/dist/cdn/IQPGSWSL.js +2 -0
- package/dist/cdn/IY2G6DLG.js +2 -0
- package/dist/cdn/{2XSXH4TM.js → JC4DYMKT.js} +1 -1
- package/dist/cdn/{M4L5EDRB.js → JCV26SSG.js} +1 -1
- package/dist/cdn/{I5QTPPFJ.js → JLIZWDU5.js} +1 -1
- package/dist/cdn/{LG4PZVHS.js → JMHCIJG4.js} +1 -1
- package/dist/cdn/{556MC5SF.js → JTEJ2NHE.js} +1 -1
- package/dist/cdn/{3YA25S2J.js → KBY7C6QM.js} +1 -1
- package/dist/cdn/{5PRNT4KD.js → KG2M6IQS.js} +1 -1
- package/dist/cdn/KLBNUE5Q.js +2 -0
- package/dist/cdn/{ZVTPU2MO.js → KNJ7PME5.js} +1 -1
- package/dist/cdn/KQNQ6ITI.js +2 -0
- package/dist/cdn/{32K266S4.js → L5EGJLC4.js} +1 -1
- package/dist/cdn/{ORH27QWU.js → L6LZYPWJ.js} +1 -1
- package/dist/cdn/{R4V6HGJH.js → L7NIKN24.js} +1 -1
- package/dist/cdn/LCUXPDUW.js +2 -0
- package/dist/cdn/{WOV3LB6K.js → LLNNQ2ED.js} +1 -1
- package/dist/cdn/{XRP25NGI.js → LMV6L2OF.js} +1 -1
- package/dist/cdn/{C4DJABUI.js → LSF66JVY.js} +1 -1
- package/dist/cdn/LVMJAMRO.js +2 -0
- package/dist/cdn/{KAXJKSFB.js → LVSNYSCO.js} +1 -1
- package/dist/cdn/{52GXKBGP.js → LY735GHL.js} +1 -1
- package/dist/cdn/{QVMTO5BV.js → LZ3PMD7Z.js} +1 -1
- package/dist/cdn/{ZD25GJYW.js → N76CLHYJ.js} +1 -1
- package/dist/cdn/{YZ5ZVEPC.js → OAFAR3NG.js} +1 -1
- package/dist/cdn/{OCEXQCFT.js → OJNMPOYD.js} +1 -1
- package/dist/cdn/OKZSKR6W.js +2 -0
- package/dist/cdn/OMKVQOUI.js +2 -0
- package/dist/cdn/{EQCNO3G4.js → P4PTEXIJ.js} +1 -1
- package/dist/cdn/{7YLXQNEC.js → PESPV6VP.js} +1 -1
- package/dist/cdn/{KNAUIRT6.js → PFYZ7JRB.js} +1 -1
- package/dist/cdn/{JTFZMNCO.js → PI6UQWTD.js} +1 -1
- package/dist/cdn/{GNGZFV2C.js → POEZXWTT.js} +1 -1
- package/dist/cdn/QX27DK37.js +2 -0
- package/dist/cdn/{JLK664TB.js → QXUY4FOY.js} +1 -1
- package/dist/cdn/{T2ZF4XIZ.js → RISVXUI4.js} +1 -1
- package/dist/cdn/RWJKQEMK.js +2 -0
- package/dist/cdn/{KHM3S4Q6.js → RXFUZXUX.js} +1 -1
- package/dist/cdn/S4I3X6AX.js +2 -0
- package/dist/cdn/{KY4FMFIC.js → S52VES4H.js} +1 -1
- package/dist/cdn/{S6G6XXTM.js → SFM3XWUA.js} +1 -1
- package/dist/cdn/{YC6JWXOW.js → SKGRUNAJ.js} +1 -1
- package/dist/cdn/{C7YN3AZA.js → SPACZLHW.js} +1 -1
- package/dist/cdn/{F4HWT5H3.js → SSZMOOL6.js} +1 -1
- package/dist/cdn/{UAO23YMW.js → SZNBYDQI.js} +1 -1
- package/dist/cdn/{4363SIKC.js → TJG4UE24.js} +1 -1
- package/dist/cdn/{EENOVGOS.js → TTR6UUEQ.js} +1 -1
- package/dist/cdn/U5FUT6DD.js +2 -0
- package/dist/cdn/{MAGJWMWM.js → U5HXLA7K.js} +1 -1
- package/dist/cdn/{WJ5HD2YN.js → UDPUTCKL.js} +1 -1
- package/dist/cdn/UZ7KLWGC.js +2 -0
- package/dist/cdn/{IDDSHZVB.js → VGTTCLO3.js} +1 -1
- package/dist/cdn/VPJCFCJU.js +2 -0
- package/dist/cdn/W5T5EBL3.js +2 -0
- package/dist/cdn/XE5UPQ5E.js +2 -0
- package/dist/cdn/{FARFUCNU.js → XEOTORJP.js} +1 -1
- package/dist/cdn/{3PQT2S7Z.js → XTFD35UI.js} +1 -1
- package/dist/cdn/{LHEP4QSS.js → XWAT4IT2.js} +1 -1
- package/dist/cdn/Y6KRMZWJ.js +2 -0
- package/dist/cdn/{E2JLZZFR.js → YA6FUJR2.js} +1 -1
- package/dist/cdn/{FC6W37TT.js → YBJEMNAU.js} +1 -1
- package/dist/cdn/YR3SQWM6.js +2 -0
- package/dist/cdn/{2EJ4XRH4.js → YSDQ5VNK.js} +1 -1
- package/dist/cdn/YZZJQMH4.js +2 -0
- package/dist/cdn/Z4F6DHBB.js +2 -0
- package/dist/cdn/{WTMMFDEH.js → ZIX3WE2Q.js} +1 -1
- package/dist/cdn/assets/elevation-profile/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +106 -99
- package/dist/chunks/feature-utils.js +73 -73
- package/dist/chunks/layer-utils.js +33 -16
- package/dist/chunks/measurementUtils.js +44 -21
- package/dist/chunks/slots.js +20 -20
- package/dist/chunks/time-utils.js +24 -22
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +19 -10
- package/dist/components/arcgis-area-measurement-2d/customElement.js +95 -74
- package/dist/components/arcgis-area-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +21 -19
- package/dist/components/arcgis-area-measurement-3d/customElement.js +58 -67
- package/dist/components/arcgis-area-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-attachments/customElement.d.ts +6 -7
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -5
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +16 -16
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +127 -98
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +3 -3
- package/dist/components/arcgis-bookmarks/customElement.d.ts +19 -24
- package/dist/components/arcgis-bookmarks/types.d.ts +13 -6
- package/dist/components/arcgis-building-explorer/customElement.d.ts +15 -74
- package/dist/components/arcgis-building-explorer/customElement.js +3 -3
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +121 -72
- package/dist/components/arcgis-clipboard/customElement.d.ts +1 -1
- package/dist/components/arcgis-compass/customElement.d.ts +4 -5
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +12 -14
- package/dist/components/arcgis-daylight/customElement.d.ts +19 -20
- package/dist/components/arcgis-daylight/customElement.js +118 -119
- package/dist/components/arcgis-daylight/types.d.ts +1 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +21 -19
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +62 -71
- package/dist/components/arcgis-direct-line-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-directional-pad/customElement.d.ts +3 -5
- package/dist/components/arcgis-directions/customElement.d.ts +9 -10
- package/dist/components/arcgis-directions/customElement.js +5 -5
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +23 -10
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +86 -65
- package/dist/components/arcgis-distance-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-editor/customElement.d.ts +16 -17
- package/dist/components/arcgis-editor/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +31 -30
- package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +25 -31
- package/dist/components/arcgis-expand/customElement.d.ts +7 -8
- package/dist/components/arcgis-expand/types.d.ts +1 -0
- package/dist/components/arcgis-feature/customElement.d.ts +33 -34
- package/dist/components/arcgis-feature/customElement.js +35 -35
- package/dist/components/arcgis-feature-fields/customElement.js +29 -28
- package/dist/components/arcgis-feature-form/customElement.d.ts +31 -12
- package/dist/components/arcgis-feature-form/customElement.js +2 -2
- package/dist/components/arcgis-feature-relationship/customElement.js +13 -13
- package/dist/components/arcgis-feature-table/customElement.d.ts +100 -64
- package/dist/components/arcgis-feature-table/customElement.js +12 -12
- package/dist/components/arcgis-feature-templates/customElement.d.ts +15 -13
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +63 -60
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +9 -9
- package/dist/components/arcgis-features/customElement.d.ts +44 -46
- package/dist/components/arcgis-features/customElement.js +43 -43
- package/dist/components/arcgis-floor-filter/customElement.d.ts +10 -13
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.d.ts +1 -1
- package/dist/components/arcgis-grid-controls/customElement.d.ts +3 -3
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +36 -37
- package/dist/components/arcgis-home/customElement.d.ts +6 -8
- package/dist/components/arcgis-layer-list/customElement.d.ts +46 -47
- package/dist/components/arcgis-legend/customElement.d.ts +37 -38
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +15 -13
- package/dist/components/arcgis-link-chart/customElement.d.ts +70 -60
- package/dist/components/arcgis-link-chart/customElement.js +42 -31
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +2 -3
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +7 -4
- package/dist/components/arcgis-locate/customElement.d.ts +4 -5
- package/dist/components/arcgis-map/customElement.d.ts +151 -141
- package/dist/components/arcgis-map/customElement.js +24 -13
- package/dist/components/arcgis-measurement/customElement.d.ts +6 -7
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +2 -2
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +7 -12
- package/dist/components/arcgis-navigation-toggle/customElement.js +9 -6
- package/dist/components/arcgis-navigation-toggle/types.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +3 -4
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +3 -0
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +18 -6
- package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +264 -120
- package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +115 -114
- package/dist/components/arcgis-paste/customElement.d.ts +2 -2
- package/dist/components/arcgis-paste/customElement.js +6 -7
- package/dist/components/arcgis-popup/customElement.d.ts +33 -34
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +2 -1
- package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +30 -19
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +13 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +40 -33
- package/dist/components/arcgis-scale-bar/customElement.d.ts +3 -3
- package/dist/components/arcgis-scale-bar/customElement.js +7 -7
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +8 -9
- package/dist/components/arcgis-scene/customElement.d.ts +166 -161
- package/dist/components/arcgis-scene/customElement.js +20 -9
- package/dist/components/arcgis-search/customElement.d.ts +40 -33
- package/dist/components/arcgis-search/customElement.js +20 -18
- package/dist/components/arcgis-search-result-renderer/customElement.d.ts +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +62 -18
- package/dist/components/arcgis-sketch/customElement.d.ts +56 -37
- package/dist/components/arcgis-sketch/customElement.js +20 -8
- package/dist/components/arcgis-slice/customElement.d.ts +17 -17
- package/dist/components/arcgis-slice/customElement.js +6 -6
- package/dist/components/arcgis-slice/{SliceViewModel.d.ts → types.d.ts} +1 -1
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +78 -28
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +31 -32
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +33 -38
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +68 -35
- package/dist/components/arcgis-slider-color-legacy/customElement.js +8 -8
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +107 -37
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +8 -11
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +27 -28
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +36 -40
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +2 -3
- package/dist/components/arcgis-swipe/customElement.d.ts +7 -7
- package/dist/components/arcgis-table-list/customElement.d.ts +113 -77
- package/dist/components/arcgis-time-of-day-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-of-day-slider/customElement.js +11 -11
- package/dist/components/arcgis-time-slider/customElement.d.ts +18 -20
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +18 -8
- package/dist/components/arcgis-time-zone-label/customElement.js +39 -45
- package/dist/components/arcgis-time-zone-label/index.js +1 -2
- package/dist/components/arcgis-track/customElement.d.ts +8 -9
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +1 -0
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +6 -7
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +4 -5
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +5 -6
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +48 -49
- package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +30 -25
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +82 -80
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +3 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +52 -49
- package/dist/components/arcgis-utility-network-trace-results/index.js +2 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +2 -3
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +40 -41
- package/dist/components/arcgis-value-picker-legacy/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +4 -4
- package/dist/components/arcgis-video/customElement.d.ts +12 -12
- package/dist/components/arcgis-video-player/customElement.d.ts +6 -6
- package/dist/components/arcgis-video-player/customElement.js +2 -2
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +32 -28
- package/dist/components/arcgis-volume-measurement/customElement.js +211 -211
- package/dist/components/arcgis-volume-measurement/index.js +1 -1
- package/dist/components/arcgis-volume-measurement/types.d.ts +1 -0
- package/dist/components/arcgis-weather/customElement.d.ts +18 -19
- package/dist/components/arcgis-zoom/customElement.d.ts +7 -3
- package/dist/components/types.d.ts +56 -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/index.d.ts +6 -28
- package/dist/loader.js +18 -18
- package/dist/types/lumina.d.ts +17 -38
- package/dist/types/preact.d.ts +17 -42
- package/dist/types/react.d.ts +17 -46
- package/dist/types/stencil.d.ts +17 -38
- package/package.json +5 -5
- package/dist/cdn/3GZCJE62.js +0 -2
- package/dist/cdn/4EAZ4PIQ.js +0 -2
- package/dist/cdn/4TURMTXA.js +0 -2
- package/dist/cdn/55QGHI47.js +0 -2
- package/dist/cdn/5RUIVALH.js +0 -2
- package/dist/cdn/6UX4KWBN.js +0 -2
- package/dist/cdn/7UR4M6PN.js +0 -2
- package/dist/cdn/A4UJ53JS.js +0 -2
- package/dist/cdn/AGYDL2DX.js +0 -2
- package/dist/cdn/B5XR4LXQ.js +0 -2
- package/dist/cdn/DOLELC6W.js +0 -2
- package/dist/cdn/EYNKJZG3.js +0 -2
- package/dist/cdn/I2MQQXVU.js +0 -2
- package/dist/cdn/JDZWJLJX.js +0 -2
- package/dist/cdn/KECAR2NZ.js +0 -2
- package/dist/cdn/LZFDWRYI.js +0 -2
- package/dist/cdn/M7VTEC3S.js +0 -2
- package/dist/cdn/MRE5HCIK.js +0 -2
- package/dist/cdn/MWBGBBXT.js +0 -2
- package/dist/cdn/OVWCXUJH.js +0 -2
- package/dist/cdn/PNDLNFML.js +0 -2
- package/dist/cdn/PQJAXYJ2.js +0 -2
- package/dist/cdn/RJ76OXB6.js +0 -2
- package/dist/cdn/SKW7HQZ6.js +0 -2
- package/dist/cdn/SRSYUCVL.js +0 -2
- package/dist/cdn/U3LH3AZH.js +0 -2
- package/dist/cdn/UTH3SGAS.js +0 -2
- package/dist/cdn/VJMMA6UX.js +0 -2
- package/dist/cdn/W2E5L6DS.js +0 -2
- package/dist/cdn/X6OVNOLQ.js +0 -2
- package/dist/cdn/X7YUU7TS.js +0 -2
- package/dist/cdn/XMZSFKKO.js +0 -2
- package/dist/cdn/Y53D5YAC.js +0 -2
- package/dist/cdn/YGJFZRA4.js +0 -2
- package/dist/cdn/YKTB6AFH.js +0 -2
- package/dist/cdn/YWQGP6MB.js +0 -2
- package/dist/cdn/ZMLRDNKR.js +0 -2
- package/dist/cdn/ZUTQE3OX.js +0 -2
- package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +0 -14
- package/dist/components/arcgis-building-discipline-tree/index.d.ts +0 -1
- package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +0 -20
- package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +0 -93
- package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +0 -24
- package/dist/components/arcgis-building-explorer/support/types.d.ts +0 -11
- package/dist/components/arcgis-building-level-item/customElement.d.ts +0 -25
- package/dist/components/arcgis-building-level-item/index.d.ts +0 -1
- package/dist/components/arcgis-building-level-picker/customElement.d.ts +0 -20
- package/dist/components/arcgis-building-level-picker/index.d.ts +0 -1
- package/dist/components/arcgis-building-phase-picker/customElement.d.ts +0 -19
- package/dist/components/arcgis-building-phase-picker/index.d.ts +0 -1
- package/dist/components/arcgis-daylight/daylight-utils.d.ts +0 -8
- package/dist/components/arcgis-expand/ExpandViewModel.d.ts +0 -44
- package/dist/components/support/goTo.d.ts +0 -37
- package/dist/controllers/useArcgisLoadError.d.ts +0 -9
- package/dist/support/heading.d.ts +0 -1
- package/dist/support/measurementUtils.d.ts +0 -1
- package/dist/utils/action-utils.d.ts +0 -3
- package/dist/utils/component-utils.d.ts +0 -5
- /package/dist/components/arcgis-locate/{LocateViewModel.d.ts → types.d.ts} +0 -0
- /package/dist/components/arcgis-weather/{WeatherViewModel.d.ts → types.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as a } from "lit";
|
|
4
|
-
import
|
|
4
|
+
import l from "@arcgis/core/Camera.js";
|
|
5
5
|
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import v from "@arcgis/core/geometry/Point.js";
|
|
7
7
|
import g from "@arcgis/core/views/SceneView.js";
|
|
@@ -13,15 +13,15 @@ import { U as f, u as b, a as V } from "../../chunks/useArcgisViewReadyError.js"
|
|
|
13
13
|
import { s as C } from "../../chunks/esri-main.js";
|
|
14
14
|
import { s as E, C as w } from "../../chunks/slots.js";
|
|
15
15
|
import { b as _, c as A, p as P, i as D } from "../../chunks/component-utils.js";
|
|
16
|
-
const
|
|
16
|
+
const I = c(u, {}), R = c(g, {});
|
|
17
17
|
class k extends d {
|
|
18
18
|
constructor() {
|
|
19
|
-
super(), this._containerRef = o(), this._mapRef = o(), this._uiController = new f(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map =
|
|
19
|
+
super(), this._containerRef = o(), this._mapRef = o(), this._uiController = new f(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map = I(this), this.view = R(this), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.animationsDisabled = this.view.animationsEnabled, this.attributionMode = this.view.attributionMode, this.autoDestroyDisabled = !1, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.clippingArea = this.view.clippingArea, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.environment = this.view.environment, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.groundView = this.view.groundView, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.qualityProfile = this.view.qualityProfile, this.ready = this.view.ready, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.updating = this.view.updating, this.viewingMode = this.view.viewingMode, this.visibleArea = this.view.visibleArea, this.arcgisViewAnalysisViewCreate = t(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = t(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = t(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = r(), this.arcgisViewClick = t(() => this.view, "click"), this.arcgisViewDoubleClick = t(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = t(() => this.view, "double-tap-drag"), this.arcgisViewDrag = t(() => this.view, "drag"), this.arcgisViewHold = t(() => this.view, "hold"), this.arcgisViewImmediateClick = t(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = t(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = t(() => this.view, "key-down"), this.arcgisViewKeyUp = t(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = t(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = t(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = t(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = t(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = t(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = t(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = t(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = t(() => this.view, "pointer-move"), this.arcgisViewPointerUp = t(() => this.view, "pointer-up"), this.arcgisViewReadyChange = r(), this.arcgisViewVerticalTwoFingerDrag = t(() => this.view, "vertical-two-finger-drag"), this.view.ui = {
|
|
20
20
|
components: []
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
24
|
-
this.properties = { _map: 16, aria: 0, view: 32, allLayerViews: 32, alphaCompositingEnabled: 5, analyses: 0, animationsDisabled: 5, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, basemap: 1, basemapView: 0, camera: 0, cameraFov: 9, cameraHeading: 9, cameraPosition: 1, cameraTilt: 9, center: 1, clippingArea: 0, constraints: 0, displayFilterDisabled: 5, environment: 0, extent: 0, fatalError: 0, floors: 0, focusAreas: 0, gamepad: 32, graphics: 0, ground: 1, groundView: 32, hideAttribution: 5, highlights: 0,
|
|
24
|
+
this.properties = { _map: 16, aria: 0, view: 32, allLayerViews: 32, alphaCompositingEnabled: 5, analyses: 0, animationsDisabled: 5, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, basemap: 1, basemapView: 0, camera: 0, cameraFov: 9, cameraHeading: 9, cameraPosition: 1, cameraTilt: 9, canZoomIn: 36, canZoomOut: 36, center: 1, clippingArea: 0, constraints: 0, displayFilterDisabled: 5, environment: 0, extent: 0, fatalError: 0, floors: 0, focusAreas: 0, gamepad: 32, graphics: 0, ground: 1, groundView: 32, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, padding: 0, performanceInfo: 32, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, qualityProfile: 1, ready: 36, resolution: 32, scale: 9, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, updating: 36, viewingMode: 1, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
|
|
25
25
|
}
|
|
26
26
|
static {
|
|
27
27
|
this.styles = [C, E];
|
|
@@ -68,8 +68,8 @@ class k extends d {
|
|
|
68
68
|
}
|
|
69
69
|
set cameraPosition(i) {
|
|
70
70
|
const e = A(this.view.camera?.position, i);
|
|
71
|
-
e && this._mutateCamera((
|
|
72
|
-
|
|
71
|
+
e && this._mutateCamera((m) => {
|
|
72
|
+
m.position = e;
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
get cameraTilt() {
|
|
@@ -190,6 +190,12 @@ class k extends d {
|
|
|
190
190
|
async whenLayerView(i) {
|
|
191
191
|
return await this.view.whenLayerView(i);
|
|
192
192
|
}
|
|
193
|
+
async zoomIn() {
|
|
194
|
+
this.view.zoomIn();
|
|
195
|
+
}
|
|
196
|
+
async zoomOut() {
|
|
197
|
+
this.view.zoomOut();
|
|
198
|
+
}
|
|
193
199
|
loaded() {
|
|
194
200
|
const i = this;
|
|
195
201
|
i.el.childElem = this._mapRef.value, this.view.container ??= i.el.childElem, this.map ||= this._map, this.manager.onLifecycle(() => [
|
|
@@ -202,6 +208,11 @@ class k extends d {
|
|
|
202
208
|
}, { initial: this.view.ready }),
|
|
203
209
|
s(() => this.view.attributionHeight, (e) => {
|
|
204
210
|
this._uiController.handleAttributionHeightChange(e);
|
|
211
|
+
}, { initial: !0 }),
|
|
212
|
+
// Temporary workaround for https://devtopia.esri.com/WebGIS/arcgis-web-components/issues/12012
|
|
213
|
+
// Until https://devtopia.esri.com/WebGIS/arcgis-js-api/pull/78321 is picked up by components
|
|
214
|
+
s(() => this.view.ready, () => {
|
|
215
|
+
this.view.notifyChange("attributionHeight");
|
|
205
216
|
})
|
|
206
217
|
]);
|
|
207
218
|
}
|
|
@@ -210,7 +221,7 @@ class k extends d {
|
|
|
210
221
|
i(this._cameraProperties);
|
|
211
222
|
return;
|
|
212
223
|
}
|
|
213
|
-
const e = this.view.camera?.clone() ?? new
|
|
224
|
+
const e = this.view.camera?.clone() ?? new l();
|
|
214
225
|
i(e), this.camera = e;
|
|
215
226
|
}
|
|
216
227
|
renderMain() {
|
|
@@ -220,7 +231,7 @@ class k extends d {
|
|
|
220
231
|
return a`${this.renderMain()}<section class=${n(w.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}</section>`;
|
|
221
232
|
}
|
|
222
233
|
}
|
|
223
|
-
|
|
234
|
+
p("arcgis-scene", k);
|
|
224
235
|
export {
|
|
225
236
|
k as ArcgisScene
|
|
226
237
|
};
|
|
@@ -8,9 +8,8 @@ import type PopupTemplate from "@arcgis/core/PopupTemplate.js";
|
|
|
8
8
|
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
9
9
|
import type Graphic2 from "@arcgis/core/Graphic.js";
|
|
10
10
|
import type { SearchViewModelEvents, SearchViewModelSelectResultEvent, SearchViewModelState } from "@arcgis/core/widgets/Search/SearchViewModel.js";
|
|
11
|
-
import type { ArcgisReferenceElement } from "
|
|
11
|
+
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
12
12
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
13
|
-
import type { IconName } from "../../utils/action-utils.js";
|
|
14
13
|
import type { SuggestResult, SearchResponse, SuggestResponse } from "@arcgis/core/widgets/Search/types";
|
|
15
14
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
16
15
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
@@ -44,7 +43,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
44
43
|
accessor activeMenu: ActiveMenu;
|
|
45
44
|
/**
|
|
46
45
|
* The [source](#sources) object currently selected. Can be either a
|
|
47
|
-
* [LayerSearchSource](https://developers.arcgis.com/javascript/latest/
|
|
46
|
+
* [LayerSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LayerSearchSource/) or a [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LocatorSearchSource/).
|
|
48
47
|
*
|
|
49
48
|
* @default null
|
|
50
49
|
*/
|
|
@@ -65,9 +64,9 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
65
64
|
*/
|
|
66
65
|
accessor allPlaceholder: string | null | undefined;
|
|
67
66
|
/**
|
|
68
|
-
* The combined collection of [defaultSources](https://developers.arcgis.com/javascript/latest/
|
|
69
|
-
* and [sources](https://developers.arcgis.com/javascript/latest/
|
|
70
|
-
* The [defaultSources](https://developers.arcgis.com/javascript/latest/
|
|
67
|
+
* The combined collection of [defaultSources](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/SearchViewModel/#defaultSources)
|
|
68
|
+
* and [sources](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/SearchViewModel/#sources).
|
|
69
|
+
* The [defaultSources](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/SearchViewModel/#defaultSources)
|
|
71
70
|
* displays first in the Search UI.
|
|
72
71
|
*
|
|
73
72
|
* @since 4.8
|
|
@@ -77,7 +76,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
77
76
|
* If true, the component will not be destroyed automatically when it is
|
|
78
77
|
* disconnected from the document. This is useful when you want to move the
|
|
79
78
|
* component to a different place on the page, or temporarily hide it. If this
|
|
80
|
-
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-search/#destroy) method when you are done to
|
|
79
|
+
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search/#destroy) method when you are done to
|
|
81
80
|
* prevent memory leaks.
|
|
82
81
|
*
|
|
83
82
|
* @default false
|
|
@@ -100,29 +99,29 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
100
99
|
*/
|
|
101
100
|
accessor autoSelectDisabled: boolean;
|
|
102
101
|
/**
|
|
103
|
-
* A read-only property that is a [Collection](https://developers.arcgis.com/javascript/latest/
|
|
104
|
-
* of [LayerSearchSource](https://developers.arcgis.com/javascript/latest/
|
|
105
|
-
* and/or [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/
|
|
102
|
+
* A read-only property that is a [Collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/)
|
|
103
|
+
* of [LayerSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LayerSearchSource/)
|
|
104
|
+
* and/or [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LocatorSearchSource/). This property
|
|
106
105
|
* may contain [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/)
|
|
107
106
|
* [locators](http://enterprise.arcgis.com/en/server/latest/publish-services/windows/geocode-services.htm)
|
|
108
107
|
* and any web map or web scene [configurable search sources](http://doc.arcgis.com/en/arcgis-online/create-maps/configure-feature-search.htm).
|
|
109
108
|
* Web maps or web scenes may contain
|
|
110
|
-
* [map](https://developers.arcgis.com/javascript/latest/
|
|
111
|
-
* layer(s), and/or [table(s)](https://developers.arcgis.com/javascript/latest/
|
|
109
|
+
* [map](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/)/[feature](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/) service feature
|
|
110
|
+
* layer(s), and/or [table(s)](https://developers.arcgis.com/javascript/latest/references/core/webdoc/applicationProperties/SearchTable/) as sources.
|
|
112
111
|
*
|
|
113
|
-
* This property is used to populate the Search UI if the [sources](https://developers.arcgis.com/javascript/latest/
|
|
112
|
+
* This property is used to populate the Search UI if the [sources](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/SearchViewModel/#sources) property is not set.
|
|
114
113
|
*
|
|
115
114
|
* @since 4.8
|
|
116
115
|
*/
|
|
117
116
|
get defaultSources(): Collection<SupportedSearchSource>;
|
|
118
117
|
/**
|
|
119
|
-
* When
|
|
118
|
+
* When true, the component is visually withdrawn and cannot receive user interaction.
|
|
120
119
|
*
|
|
121
120
|
* @default false
|
|
122
121
|
*/
|
|
123
122
|
accessor disabled: boolean;
|
|
124
123
|
/**
|
|
125
|
-
* This function provides the ability to override either the [arcgis-map.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/#goTo) or [arcgis-scene.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/#goTo) methods.
|
|
124
|
+
* This function provides the ability to override either the [arcgis-map.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#goTo) or [arcgis-scene.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#goTo) methods.
|
|
126
125
|
*
|
|
127
126
|
* @since 4.33
|
|
128
127
|
* @example
|
|
@@ -145,7 +144,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
145
144
|
*/
|
|
146
145
|
accessor icon: IconName;
|
|
147
146
|
/**
|
|
148
|
-
* When `true`, will not include [defaultSources](https://developers.arcgis.com/javascript/latest/
|
|
147
|
+
* When `true`, will not include [defaultSources](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/SearchViewModel/#defaultSources) in the Search UI.
|
|
149
148
|
*
|
|
150
149
|
* @default false
|
|
151
150
|
*/
|
|
@@ -252,15 +251,15 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
252
251
|
*/
|
|
253
252
|
accessor minSuggestCharacters: number;
|
|
254
253
|
/**
|
|
255
|
-
* By default, the graphic can be clicked to display a [Popup](https://developers.arcgis.com/javascript/latest/
|
|
256
|
-
* When `true`, disables displaying the [Popup](https://developers.arcgis.com/javascript/latest/
|
|
254
|
+
* By default, the graphic can be clicked to display a [Popup](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/).
|
|
255
|
+
* When `true`, disables displaying the [Popup](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/) on feature click.
|
|
257
256
|
*
|
|
258
257
|
* @default false
|
|
259
258
|
*/
|
|
260
259
|
accessor popupDisabled: boolean;
|
|
261
260
|
/**
|
|
262
|
-
* A customized [PopupTemplate](https://developers.arcgis.com/javascript/latest/
|
|
263
|
-
* Note that any [templates](https://developers.arcgis.com/javascript/latest/
|
|
261
|
+
* A customized [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) for the selected feature.
|
|
262
|
+
* Note that any [templates](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/)
|
|
264
263
|
* defined on [allSources](#allSources) take precedence over those defined directly on the template.
|
|
265
264
|
*/
|
|
266
265
|
accessor popupTemplate: PopupTemplate | null | undefined;
|
|
@@ -282,8 +281,8 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
282
281
|
*
|
|
283
282
|
* **Note:**
|
|
284
283
|
* A graphic will be placed in the View's
|
|
285
|
-
* [graphics](https://developers.arcgis.com/javascript/latest/
|
|
286
|
-
* for [layer](https://developers.arcgis.com/javascript/latest/
|
|
284
|
+
* [graphics](https://developers.arcgis.com/javascript/latest/references/core/views/View/#graphics)
|
|
285
|
+
* for [layer](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LayerView/)
|
|
287
286
|
* that do not support the `highlight` method.
|
|
288
287
|
*/
|
|
289
288
|
get resultGraphic(): Graphic2 | null | undefined;
|
|
@@ -313,22 +312,22 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
313
312
|
/**
|
|
314
313
|
* The result selected from a search.
|
|
315
314
|
*
|
|
316
|
-
* @see [@arcgisSelectResult](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-search/#arcgisSelectResult)
|
|
317
|
-
* @see [select()](https://developers.arcgis.com/javascript/latest/
|
|
315
|
+
* @see [@arcgisSelectResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search/#event-arcgisSelectResult)
|
|
316
|
+
* @see [select()](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/SearchViewModel/#select)
|
|
318
317
|
*/
|
|
319
318
|
get selectedResult(): SearchResult | null | undefined;
|
|
320
319
|
/**
|
|
321
320
|
* The Search component may be used to search features in a
|
|
322
|
-
* [map](https://developers.arcgis.com/javascript/latest/
|
|
323
|
-
* layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/
|
|
324
|
-
* [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/
|
|
325
|
-
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/
|
|
326
|
-
* [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/
|
|
327
|
-
* or geocode locations with a [locator](https://developers.arcgis.com/javascript/latest/
|
|
321
|
+
* [map](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/)/[feature](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/) service feature
|
|
322
|
+
* layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/) with an associated feature layer,
|
|
323
|
+
* [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/buildingSublayers/BuildingComponentSublayer/) with an associated feature layer,
|
|
324
|
+
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/), [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/) or
|
|
325
|
+
* [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OGCFeatureLayer/), or [table](https://developers.arcgis.com/javascript/latest/references/core/webdoc/applicationProperties/SearchTable/),
|
|
326
|
+
* or geocode locations with a [locator](https://developers.arcgis.com/javascript/latest/references/core/rest/locator/). The `sources` property defines the sources from which
|
|
328
327
|
* to search for the [view](#view) specified by the Search component instance. There are two types of sources:
|
|
329
328
|
*
|
|
330
|
-
* * [LayerSearchSource](https://developers.arcgis.com/javascript/latest/
|
|
331
|
-
* * [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/
|
|
329
|
+
* * [LayerSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LayerSearchSource/)
|
|
330
|
+
* * [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LocatorSearchSource/)
|
|
332
331
|
*
|
|
333
332
|
* Any combination of these sources may be used
|
|
334
333
|
* together in the same instance of the Search component.
|
|
@@ -431,6 +430,14 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
431
430
|
* @default false
|
|
432
431
|
*/
|
|
433
432
|
accessor suggestionsDisabled: boolean;
|
|
433
|
+
/**
|
|
434
|
+
* When true, disables rendering in the top layer (above overlays and modals).
|
|
435
|
+
* This can be useful for controlling stacking context in complex UI layouts.
|
|
436
|
+
*
|
|
437
|
+
* @default false
|
|
438
|
+
* @since 5.0
|
|
439
|
+
*/
|
|
440
|
+
accessor topLayerDisabled: boolean;
|
|
434
441
|
/**
|
|
435
442
|
* The view associated with the component.
|
|
436
443
|
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-search component will be associated with a map or scene component rather than using the `view` property.
|
|
@@ -445,7 +452,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
445
452
|
destroy(): Promise<void>;
|
|
446
453
|
/**
|
|
447
454
|
* Depending on the sources specified, search() queries the feature layer(s) and/or performs
|
|
448
|
-
* address matching using any specified [locator(s)](https://developers.arcgis.com/javascript/latest/
|
|
455
|
+
* address matching using any specified [locator(s)](https://developers.arcgis.com/javascript/latest/references/core/rest/locator/) and
|
|
449
456
|
* returns any applicable results.
|
|
450
457
|
*
|
|
451
458
|
* @param searchItem
|
|
@@ -10,23 +10,23 @@ import { classes as S } from "@arcgis/toolkit/dom";
|
|
|
10
10
|
import { g as y } from "../../chunks/globalCss.js";
|
|
11
11
|
import { isAbortError as C } from "@arcgis/core/core/promiseUtils.js";
|
|
12
12
|
import { m as $ } from "../../chunks/useViewModel.js";
|
|
13
|
-
import { substitute as
|
|
14
|
-
import { usePropertyChange as
|
|
15
|
-
import { u as
|
|
16
|
-
import { watch as d, on as
|
|
17
|
-
const
|
|
13
|
+
import { substitute as R } from "@arcgis/core/intl.js";
|
|
14
|
+
import { usePropertyChange as E } from "@arcgis/lumina/controllers";
|
|
15
|
+
import { u as k } from "../../chunks/useT9n.js";
|
|
16
|
+
import { watch as d, on as D } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
|
+
const T = m`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-hidden{display:none!important}:host{width:240px}.root{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:100%}.dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.autocomplete{flex:1}.container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}.submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}`, A = $(v);
|
|
18
18
|
function h(a) {
|
|
19
19
|
return typeof a == "object" && a !== null && "openPopup" in a && "closePopup" in a;
|
|
20
20
|
}
|
|
21
|
-
class
|
|
21
|
+
class L extends w {
|
|
22
22
|
constructor() {
|
|
23
|
-
super(...arguments), this.viewModel =
|
|
23
|
+
super(...arguments), this.viewModel = A(this), this._currentLocationValue = "search-use-current-location", this._autocompleteEl = void 0, this._searchResultRendererEl = void 0, this._searchResultRendererContentEl = void 0, this._suggestController = void 0, this._searchController = void 0, this._lastSearchTerm = "", this.messages = k({ blocking: !0 }), this._locateFailed = !1, this._showNoResults = !1, this.view = this.viewModel.view, this.goToOverride = this.viewModel.goToOverride, this.icon = "search", this.activeMenu = "none", this.activeSourceIndex = this.viewModel.activeSourceIndex, this.allPlaceholder = this.viewModel.allPlaceholder, this.allSources = this.viewModel.allSources, this.autoNavigateDisabled = this.viewModel.autoNavigate, this.autoSelectDisabled = this.viewModel.autoSelect, this.defaultSources = this.viewModel.defaultSources, this.disabled = !1, this.includeDefaultSourcesDisabled = this.viewModel.includeDefaultSources, this.locationDisabled = this.viewModel.locationEnabled, this.maxResults = this.viewModel.maxResults, this.maxSuggestions = this.viewModel.maxSuggestions, this.minSuggestCharacters = this.viewModel.minSuggestCharacters, this.popupDisabled = this.viewModel.popupEnabled, this.popupTemplate = this.viewModel.popupTemplate, this.portal = this.viewModel.portal, this.resultGraphic = this.viewModel.resultGraphic, this.resultGraphicDisabled = this.viewModel.resultGraphicEnabled, this.results = this.viewModel.results, this.searchAllDisabled = this.viewModel.searchAllEnabled, this.searchTerm = this.viewModel.searchTerm, this.selectedResult = this.viewModel.selectedResult, this.sources = this.viewModel.sources, this.suggestions = this.viewModel.suggestions, this.suggestionsDisabled = this.viewModel.suggestionsEnabled, this.topLayerDisabled = !1, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = E()("state"), this.arcgisReady = f(), this.arcgisSearchClear = l(() => this.viewModel, "search-clear"), this.arcgisSearchComplete = l(() => this.viewModel, "search-complete"), this.arcgisSearchStart = l(() => this.viewModel, "search-start"), this.arcgisSelectResult = l(() => this.viewModel, "select-result"), this.arcgisSuggestComplete = l(() => this.viewModel, "suggest-complete"), this.arcgisSuggestStart = l(() => this.viewModel, "suggest-start");
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.properties = { _locateFailed: 16, _showNoResults: 16, _isDisabled: 16, _showCurrentLocation: 16, _effectiveActiveMenu: 16, view: 0, referenceElement: 1, goToOverride: 0, icon: 1, activeMenu: 1, activeSource: 32, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoNavigateDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 5, includeDefaultSourcesDisabled: 5, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, suggestions: 32, suggestionsDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
26
|
+
this.properties = { _locateFailed: 16, _showNoResults: 16, _isDisabled: 16, _showCurrentLocation: 16, _effectiveActiveMenu: 16, view: 0, referenceElement: 1, goToOverride: 0, icon: 1, activeMenu: 1, activeSource: 32, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoNavigateDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 5, includeDefaultSourcesDisabled: 5, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, suggestions: 32, suggestionsDisabled: 5, topLayerDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
|
-
this.styles =
|
|
29
|
+
this.styles = T;
|
|
30
30
|
}
|
|
31
31
|
get _isDisabled() {
|
|
32
32
|
const { state: e } = this.viewModel;
|
|
@@ -45,7 +45,7 @@ class z extends w {
|
|
|
45
45
|
this._locateFailed = !1, this.viewModel.clear();
|
|
46
46
|
}
|
|
47
47
|
async destroy() {
|
|
48
|
-
await this.
|
|
48
|
+
this._cancelQueries(), await this._searchResultRendererEl?.destroy(), await this._searchResultRendererContentEl?.destroy(), await this.manager.destroy();
|
|
49
49
|
}
|
|
50
50
|
async search(e) {
|
|
51
51
|
this._cancelQueries();
|
|
@@ -81,12 +81,12 @@ class z extends w {
|
|
|
81
81
|
const e = this.viewModel?.defaultPopupTemplate, { _searchResultRendererEl: t } = this;
|
|
82
82
|
if (e && t) {
|
|
83
83
|
const i = document.createElement("div");
|
|
84
|
-
i.appendChild(t), e.content = i;
|
|
84
|
+
i.appendChild(t), e.content = i, this._searchResultRendererContentEl = t;
|
|
85
85
|
}
|
|
86
86
|
}, { initial: !0 }),
|
|
87
87
|
d(() => this.messages, (e) => this.viewModel.messages = e, { initial: !0 }),
|
|
88
88
|
d(() => this.viewModel?.resultGraphic, (e, t) => this._closePopup(t)),
|
|
89
|
-
|
|
89
|
+
D(() => this.viewModel, "select-result", (e) => {
|
|
90
90
|
const { popupEnabled: t } = e;
|
|
91
91
|
t && this._openPopup();
|
|
92
92
|
})
|
|
@@ -96,7 +96,9 @@ class z extends w {
|
|
|
96
96
|
this._searchResultRendererEl = b(o`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-search-result-renderer>`);
|
|
97
97
|
}
|
|
98
98
|
_closePopup(e) {
|
|
99
|
-
h(this.referenceElement)
|
|
99
|
+
if (!h(this.referenceElement))
|
|
100
|
+
return;
|
|
101
|
+
(this.referenceElement.popupElement ?? this.referenceElement.popup)?.selectedFeature === e && this.referenceElement?.closePopup();
|
|
100
102
|
}
|
|
101
103
|
_openPopup() {
|
|
102
104
|
if (h(this.referenceElement)) {
|
|
@@ -178,7 +180,7 @@ class z extends w {
|
|
|
178
180
|
}
|
|
179
181
|
_renderSourcesMenu() {
|
|
180
182
|
const { messages: e, _isDisabled: t, _effectiveActiveMenu: i } = this, { allSources: r, searchAllEnabled: s } = this.viewModel;
|
|
181
|
-
return r.length > 1 ? o`<calcite-dropdown class="dropdown" .disabled=${t} .open=${i === "source"} overlay-positioning=fixed @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${e.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${e.searchIn}>${s ? this._renderSource(-1) : null}${r.map((n, c) => this._renderSource(c)).toArray()}</calcite-dropdown-group></calcite-dropdown>` : null;
|
|
183
|
+
return r.length > 1 ? o`<calcite-dropdown class="dropdown" .disabled=${t} .open=${i === "source"} overlay-positioning=fixed .topLayerDisabled=${this.topLayerDisabled} @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${e.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${e.searchIn}>${s ? this._renderSource(-1) : null}${r.map((n, c) => this._renderSource(c)).toArray()}</calcite-dropdown-group></calcite-dropdown>` : null;
|
|
182
184
|
}
|
|
183
185
|
_renderUseCurrentLocation() {
|
|
184
186
|
const { _currentLocationValue: e } = this;
|
|
@@ -186,7 +188,7 @@ class z extends w {
|
|
|
186
188
|
}
|
|
187
189
|
_renderAutocomplete() {
|
|
188
190
|
const { _effectiveActiveMenu: e, messages: t, _isDisabled: i } = this, { maxInputLength: r, placeholder: s, searchTerm: n, state: c } = this.viewModel, g = this.label ?? t.searchButtonTitle ?? "";
|
|
189
|
-
return o`<calcite-autocomplete autocomplete=off class="autocomplete" .disabled=${i} .icon=${this.icon || void 0} .inputValue=${n} .label=${g} .loading=${c === "searching"} .maxLength=${r} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e === "suggestion"} overlay-positioning=fixed .placeholder=${s} title=${(n ? "" : s) ?? M} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${_(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`;
|
|
191
|
+
return o`<calcite-autocomplete autocomplete=off class="autocomplete" .disabled=${i} .icon=${this.icon || void 0} .inputValue=${n} .label=${g} .loading=${c === "searching"} .maxLength=${r} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e === "suggestion"} overlay-positioning=fixed .placeholder=${s} .topLayerDisabled=${this.topLayerDisabled} title=${(n ? "" : s) ?? M} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${_(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`;
|
|
190
192
|
}
|
|
191
193
|
_renderForm() {
|
|
192
194
|
return o`<form class="form" @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}<button class="submit-button" type=submit>${this.label ?? this.messages.searchButtonTitle ?? ""}</button></form>`;
|
|
@@ -214,7 +216,7 @@ class z extends w {
|
|
|
214
216
|
return o`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e === this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`;
|
|
215
217
|
}
|
|
216
218
|
_renderNoResultsWarning(e) {
|
|
217
|
-
const { messages: t } = this, i = e ?
|
|
219
|
+
const { messages: t } = this, i = e ? R(t.noResultsFoundForValue ?? "", {
|
|
218
220
|
value: `"${e}"`
|
|
219
221
|
}) : t.noResultsFound;
|
|
220
222
|
return o`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${i}</div></calcite-notice>`;
|
|
@@ -226,7 +228,7 @@ class z extends w {
|
|
|
226
228
|
return this._locateFailed ? this._renderLocateError() : this._showNoResults ? this._renderNoResultsWarning(this._lastSearchTerm ?? this.viewModel.searchTerm) : null;
|
|
227
229
|
}
|
|
228
230
|
}
|
|
229
|
-
p("arcgis-search",
|
|
231
|
+
p("arcgis-search", L);
|
|
230
232
|
export {
|
|
231
|
-
|
|
233
|
+
L as ArcgisSearch
|
|
232
234
|
};
|
|
@@ -14,7 +14,7 @@ export abstract class ArcgisSearchResultRenderer extends LitElement {
|
|
|
14
14
|
* If true, the component will not be destroyed automatically when it is
|
|
15
15
|
* disconnected from the document. This is useful when you want to move the
|
|
16
16
|
* component to a different place on the page, or temporarily hide it. If this
|
|
17
|
-
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-search-result-renderer/#destroy) method when you are done to
|
|
17
|
+
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search-result-renderer/#destroy) method when you are done to
|
|
18
18
|
* prevent memory leaks.
|
|
19
19
|
*
|
|
20
20
|
* @default false
|